| ... | ... | @@ -1,5 +1,5 @@ |
| 1 | 1 | // This file is generated by the effect-codex-app-server package. Do not edit manually. |
| 2 | | // Upstream protocol ref: be75785504ff152fa6333e380a2d50642f42fba0 |
| 2 | // Upstream protocol ref: 07b695190f30a450e4921f71f77473e564395c59 |
| 3 | 3 | |
| 4 | 4 | import * as Schema from "effect/Schema"; |
| 5 | 5 | |
| ... | ... | @@ -48,13 +48,14 @@ export const ClientRequest__AbsolutePathBuf = Schema.String.annotate({ |
| 48 | 48 | export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit"; |
| 49 | 49 | export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals(["credits", "usage_limit"]); |
| 50 | 50 | |
| 51 | | export type ClientRequest__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 51 | export type ClientRequest__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 52 | 52 | export const ClientRequest__ApprovalsReviewer = Schema.Literals([ |
| 53 | 53 | "user", |
| 54 | "auto_review", |
| 54 | 55 | "guardian_subagent", |
| 55 | 56 | ]).annotate({ |
| 56 | 57 | description: |
| 57 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 58 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 58 | 59 | }); |
| 59 | 60 | |
| 60 | 61 | export type ClientRequest__AppsListParams = { |
| ... | ... | @@ -220,6 +221,9 @@ export const ClientRequest__CommandExecWriteParams = Schema.Struct({ |
| 220 | 221 | description: "Write stdin bytes to a running `command/exec` session, close stdin, or both.", |
| 221 | 222 | }); |
| 222 | 223 | |
| 224 | export type ClientRequest__CommandMigration = { readonly name: string }; |
| 225 | export const ClientRequest__CommandMigration = Schema.Struct({ name: Schema.String }); |
| 226 | |
| 223 | 227 | export type ClientRequest__ConfigReadParams = { |
| 224 | 228 | readonly cwd?: string | null; |
| 225 | 229 | readonly includeLayers?: boolean; |
| ... | ... | @@ -237,21 +241,6 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({ |
| 237 | 241 | includeLayers: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 238 | 242 | }); |
| 239 | 243 | |
| 240 | | export type ClientRequest__DeviceKeyProtectionPolicy = |
| 241 | | | "hardware_only" |
| 242 | | | "allow_os_protected_nonextractable"; |
| 243 | | export const ClientRequest__DeviceKeyProtectionPolicy = Schema.Literals([ |
| 244 | | "hardware_only", |
| 245 | | "allow_os_protected_nonextractable", |
| 246 | | ]).annotate({ |
| 247 | | description: "Protection policy for creating or loading a controller-local device key.", |
| 248 | | }); |
| 249 | | |
| 250 | | export type ClientRequest__DeviceKeyPublicParams = { readonly keyId: string }; |
| 251 | | export const ClientRequest__DeviceKeyPublicParams = Schema.Struct({ |
| 252 | | keyId: Schema.String, |
| 253 | | }).annotate({ description: "Fetch a controller-local device key public key by id." }); |
| 254 | | |
| 255 | 244 | export type ClientRequest__ExperimentalFeatureEnablementSetParams = { |
| 256 | 245 | readonly enablement: { readonly [x: string]: boolean }; |
| 257 | 246 | }; |
| ... | ... | @@ -313,13 +302,21 @@ export type ClientRequest__ExternalAgentConfigMigrationItemType = |
| 313 | 302 | | "CONFIG" |
| 314 | 303 | | "SKILLS" |
| 315 | 304 | | "PLUGINS" |
| 316 | | | "MCP_SERVER_CONFIG"; |
| 305 | | "MCP_SERVER_CONFIG" |
| 306 | | "SUBAGENTS" |
| 307 | | "HOOKS" |
| 308 | | "COMMANDS" |
| 309 | | "SESSIONS"; |
| 317 | 310 | export const ClientRequest__ExternalAgentConfigMigrationItemType = Schema.Literals([ |
| 318 | 311 | "AGENTS_MD", |
| 319 | 312 | "CONFIG", |
| 320 | 313 | "SKILLS", |
| 321 | 314 | "PLUGINS", |
| 322 | 315 | "MCP_SERVER_CONFIG", |
| 316 | "SUBAGENTS", |
| 317 | "HOOKS", |
| 318 | "COMMANDS", |
| 319 | "SESSIONS", |
| 323 | 320 | ]); |
| 324 | 321 | |
| 325 | 322 | export type ClientRequest__FeedbackUploadParams = { |
| ... | ... | @@ -341,6 +338,43 @@ export const ClientRequest__FeedbackUploadParams = Schema.Struct({ |
| 341 | 338 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 342 | 339 | }); |
| 343 | 340 | |
| 341 | export type ClientRequest__FileSystemAccessMode = "read" | "write" | "none"; |
| 342 | export const ClientRequest__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]); |
| 343 | |
| 344 | export type ClientRequest__FileSystemSpecialPath = |
| 345 | | { readonly kind: "root" } |
| 346 | | { readonly kind: "minimal" } |
| 347 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 348 | | { readonly kind: "tmpdir" } |
| 349 | | { readonly kind: "slash_tmp" } |
| 350 | | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null }; |
| 351 | export const ClientRequest__FileSystemSpecialPath = Schema.Union( |
| 352 | [ |
| 353 | Schema.Struct({ kind: Schema.Literal("root") }).annotate({ |
| 354 | title: "RootFileSystemSpecialPath", |
| 355 | }), |
| 356 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 357 | title: "MinimalFileSystemSpecialPath", |
| 358 | }), |
| 359 | Schema.Struct({ |
| 360 | kind: Schema.Literal("project_roots"), |
| 361 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 362 | }).annotate({ title: "KindFileSystemSpecialPath" }), |
| 363 | Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({ |
| 364 | title: "TmpdirFileSystemSpecialPath", |
| 365 | }), |
| 366 | Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({ |
| 367 | title: "SlashTmpFileSystemSpecialPath", |
| 368 | }), |
| 369 | Schema.Struct({ |
| 370 | kind: Schema.Literal("unknown"), |
| 371 | path: Schema.String, |
| 372 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 373 | }), |
| 374 | ], |
| 375 | { mode: "oneOf" }, |
| 376 | ); |
| 377 | |
| 344 | 378 | export type ClientRequest__FsCopyParams = { |
| 345 | 379 | readonly destinationPath: string; |
| 346 | 380 | readonly recursive?: boolean; |
| ... | ... | @@ -485,18 +519,17 @@ export const ClientRequest__GetAccountParams = Schema.Struct({ |
| 485 | 519 | ), |
| 486 | 520 | }); |
| 487 | 521 | |
| 488 | | export type ClientRequest__GhostCommit = { |
| 489 | | readonly id: string; |
| 490 | | readonly parent?: string | null; |
| 491 | | readonly preexisting_untracked_dirs: ReadonlyArray<string>; |
| 492 | | readonly preexisting_untracked_files: ReadonlyArray<string>; |
| 493 | | }; |
| 494 | | export const ClientRequest__GhostCommit = Schema.Struct({ |
| 495 | | id: Schema.String, |
| 496 | | parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 497 | | preexisting_untracked_dirs: Schema.Array(Schema.String), |
| 498 | | preexisting_untracked_files: Schema.Array(Schema.String), |
| 499 | | }).annotate({ description: "Details of a ghost commit created from a repository state." }); |
| 522 | export type ClientRequest__HookMigration = { readonly name: string }; |
| 523 | export const ClientRequest__HookMigration = Schema.Struct({ name: Schema.String }); |
| 524 | |
| 525 | export type ClientRequest__HooksListParams = { readonly cwds?: ReadonlyArray<string> }; |
| 526 | export const ClientRequest__HooksListParams = Schema.Struct({ |
| 527 | cwds: Schema.optionalKey( |
| 528 | Schema.Array(Schema.String).annotate({ |
| 529 | description: "When empty, defaults to the current session working directory.", |
| 530 | }), |
| 531 | ), |
| 532 | }); |
| 500 | 533 | |
| 501 | 534 | export type ClientRequest__ImageDetail = "auto" | "low" | "high" | "original"; |
| 502 | 535 | export const ClientRequest__ImageDetail = Schema.Literals(["auto", "low", "high", "original"]); |
| ... | ... | @@ -563,7 +596,7 @@ export const ClientRequest__LocalShellStatus = Schema.Literals([ |
| 563 | 596 | |
| 564 | 597 | export type ClientRequest__LoginAccountParams = |
| 565 | 598 | | { readonly apiKey: string; readonly type: "apiKey" } |
| 566 | | | { readonly type: "chatgpt" } |
| 599 | | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" } |
| 567 | 600 | | { readonly type: "chatgptDeviceCode" } |
| 568 | 601 | | { |
| 569 | 602 | readonly accessToken: string; |
| ... | ... | @@ -578,6 +611,7 @@ export const ClientRequest__LoginAccountParams = Schema.Union( |
| 578 | 611 | type: Schema.Literal("apiKey").annotate({ title: "ApiKeyLoginAccountParamsType" }), |
| 579 | 612 | }).annotate({ title: "ApiKeyLoginAccountParams" }), |
| 580 | 613 | Schema.Struct({ |
| 614 | codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean), |
| 581 | 615 | type: Schema.Literal("chatgpt").annotate({ title: "ChatgptLoginAccountParamsType" }), |
| 582 | 616 | }).annotate({ title: "ChatgptLoginAccountParams" }), |
| 583 | 617 | Schema.Struct({ |
| ... | ... | @@ -630,6 +664,11 @@ export const ClientRequest__MarketplaceRemoveParams = Schema.Struct({ |
| 630 | 664 | marketplaceName: Schema.String, |
| 631 | 665 | }); |
| 632 | 666 | |
| 667 | export type ClientRequest__MarketplaceUpgradeParams = { readonly marketplaceName?: string | null }; |
| 668 | export const ClientRequest__MarketplaceUpgradeParams = Schema.Struct({ |
| 669 | marketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 670 | }); |
| 671 | |
| 633 | 672 | export type ClientRequest__McpResourceReadParams = { |
| 634 | 673 | readonly server: string; |
| 635 | 674 | readonly threadId?: string | null; |
| ... | ... | @@ -641,6 +680,9 @@ export const ClientRequest__McpResourceReadParams = Schema.Struct({ |
| 641 | 680 | uri: Schema.String, |
| 642 | 681 | }); |
| 643 | 682 | |
| 683 | export type ClientRequest__McpServerMigration = { readonly name: string }; |
| 684 | export const ClientRequest__McpServerMigration = Schema.Struct({ name: Schema.String }); |
| 685 | |
| 644 | 686 | export type ClientRequest__McpServerOauthLoginParams = { |
| 645 | 687 | readonly name: string; |
| 646 | 688 | readonly scopes?: ReadonlyArray<string> | null; |
| ... | ... | @@ -723,9 +765,60 @@ export const ClientRequest__ModelListParams = Schema.Struct({ |
| 723 | 765 | ), |
| 724 | 766 | }); |
| 725 | 767 | |
| 768 | export type ClientRequest__ModelProviderCapabilitiesReadParams = {}; |
| 769 | export const ClientRequest__ModelProviderCapabilitiesReadParams = Schema.Struct({}); |
| 770 | |
| 771 | export type ClientRequest__PermissionProfileNetworkPermissions = { readonly enabled: boolean }; |
| 772 | export const ClientRequest__PermissionProfileNetworkPermissions = Schema.Struct({ |
| 773 | enabled: Schema.Boolean, |
| 774 | }); |
| 775 | |
| 726 | 776 | export type ClientRequest__Personality = "none" | "friendly" | "pragmatic"; |
| 727 | 777 | export const ClientRequest__Personality = Schema.Literals(["none", "friendly", "pragmatic"]); |
| 728 | 778 | |
| 779 | export type ClientRequest__PluginListMarketplaceKind = |
| 780 | | "local" |
| 781 | | "workspace-directory" |
| 782 | | "shared-with-me"; |
| 783 | export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([ |
| 784 | "local", |
| 785 | "workspace-directory", |
| 786 | "shared-with-me", |
| 787 | ]); |
| 788 | |
| 789 | export type ClientRequest__PluginShareDeleteParams = { readonly remotePluginId: string }; |
| 790 | export const ClientRequest__PluginShareDeleteParams = Schema.Struct({ |
| 791 | remotePluginId: Schema.String, |
| 792 | }); |
| 793 | |
| 794 | export type ClientRequest__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; |
| 795 | export const ClientRequest__PluginShareDiscoverability = Schema.Literals([ |
| 796 | "LISTED", |
| 797 | "UNLISTED", |
| 798 | "PRIVATE", |
| 799 | ]); |
| 800 | |
| 801 | export type ClientRequest__PluginShareListParams = {}; |
| 802 | export const ClientRequest__PluginShareListParams = Schema.Struct({}); |
| 803 | |
| 804 | export type ClientRequest__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 805 | export const ClientRequest__PluginSharePrincipalType = Schema.Literals([ |
| 806 | "user", |
| 807 | "group", |
| 808 | "workspace", |
| 809 | ]); |
| 810 | |
| 811 | export type ClientRequest__PluginSkillReadParams = { |
| 812 | readonly remoteMarketplaceName: string; |
| 813 | readonly remotePluginId: string; |
| 814 | readonly skillName: string; |
| 815 | }; |
| 816 | export const ClientRequest__PluginSkillReadParams = Schema.Struct({ |
| 817 | remoteMarketplaceName: Schema.String, |
| 818 | remotePluginId: Schema.String, |
| 819 | skillName: Schema.String, |
| 820 | }); |
| 821 | |
| 729 | 822 | export type ClientRequest__PluginUninstallParams = { readonly pluginId: string }; |
| 730 | 823 | export const ClientRequest__PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }); |
| 731 | 824 | |
| ... | ... | @@ -804,18 +897,6 @@ export const ClientRequest__ReasoningSummary = Schema.Union( |
| 804 | 897 | "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", |
| 805 | 898 | }); |
| 806 | 899 | |
| 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 | | |
| 819 | 900 | export type ClientRequest__RequestId = string | number; |
| 820 | 901 | export const ClientRequest__RequestId = Schema.Union([ |
| 821 | 902 | Schema.String, |
| ... | ... | @@ -920,8 +1001,16 @@ export const ClientRequest__SandboxMode = Schema.Literals([ |
| 920 | 1001 | "danger-full-access", |
| 921 | 1002 | ]); |
| 922 | 1003 | |
| 923 | | export type ClientRequest__ServiceTier = "fast" | "flex"; |
| 924 | | export const ClientRequest__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 1004 | export type ClientRequest__SessionMigration = { |
| 1005 | readonly cwd: string; |
| 1006 | readonly path: string; |
| 1007 | readonly title?: string | null; |
| 1008 | }; |
| 1009 | export const ClientRequest__SessionMigration = Schema.Struct({ |
| 1010 | cwd: Schema.String, |
| 1011 | path: Schema.String, |
| 1012 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1013 | }); |
| 925 | 1014 | |
| 926 | 1015 | export type ClientRequest__SkillsListExtraRootsForCwd = { |
| 927 | 1016 | readonly cwd: string; |
| ... | ... | @@ -935,6 +1024,9 @@ export const ClientRequest__SkillsListExtraRootsForCwd = Schema.Struct({ |
| 935 | 1024 | export type ClientRequest__SortDirection = "asc" | "desc"; |
| 936 | 1025 | export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]); |
| 937 | 1026 | |
| 1027 | export type ClientRequest__SubagentMigration = { readonly name: string }; |
| 1028 | export const ClientRequest__SubagentMigration = Schema.Struct({ name: Schema.String }); |
| 1029 | |
| 938 | 1030 | export type ClientRequest__TextElement = { |
| 939 | 1031 | readonly byteRange: { readonly end: number; readonly start: number }; |
| 940 | 1032 | readonly placeholder?: string | null; |
| ... | ... | @@ -960,6 +1052,17 @@ export const ClientRequest__TextElement = Schema.Struct({ |
| 960 | 1052 | ), |
| 961 | 1053 | }); |
| 962 | 1054 | |
| 1055 | export type ClientRequest__ThreadApproveGuardianDeniedActionParams = { |
| 1056 | readonly event: unknown; |
| 1057 | readonly threadId: string; |
| 1058 | }; |
| 1059 | export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Struct({ |
| 1060 | event: Schema.Unknown.annotate({ |
| 1061 | description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.", |
| 1062 | }), |
| 1063 | threadId: Schema.String, |
| 1064 | }); |
| 1065 | |
| 963 | 1066 | export type ClientRequest__ThreadArchiveParams = { readonly threadId: string }; |
| 964 | 1067 | export const ClientRequest__ThreadArchiveParams = Schema.Struct({ threadId: Schema.String }); |
| 965 | 1068 | |
| ... | ... | @@ -977,6 +1080,12 @@ export const ClientRequest__ThreadInjectItemsParams = Schema.Struct({ |
| 977 | 1080 | threadId: Schema.String, |
| 978 | 1081 | }); |
| 979 | 1082 | |
| 1083 | export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>; |
| 1084 | export const ClientRequest__ThreadListCwdFilter = Schema.Union([ |
| 1085 | Schema.String, |
| 1086 | Schema.Array(Schema.String), |
| 1087 | ]); |
| 1088 | |
| 980 | 1089 | export type ClientRequest__ThreadLoadedListParams = { |
| 981 | 1090 | readonly cursor?: string | null; |
| 982 | 1091 | readonly limit?: number | null; |
| ... | ... | @@ -1091,6 +1200,13 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({ |
| 1091 | 1200 | export type ClientRequest__ThreadSortKey = "created_at" | "updated_at"; |
| 1092 | 1201 | export const ClientRequest__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]); |
| 1093 | 1202 | |
| 1203 | export type ClientRequest__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 1204 | export const ClientRequest__ThreadSource = Schema.Literals([ |
| 1205 | "user", |
| 1206 | "subagent", |
| 1207 | "memory_consolidation", |
| 1208 | ]); |
| 1209 | |
| 1094 | 1210 | export type ClientRequest__ThreadSourceKind = |
| 1095 | 1211 | | "cli" |
| 1096 | 1212 | | "vscode" |
| ... | ... | @@ -1159,7 +1275,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemAccessMode = Schem |
| 1159 | 1275 | export type CommandExecutionRequestApprovalParams__FileSystemSpecialPath = |
| 1160 | 1276 | | { readonly kind: "root" } |
| 1161 | 1277 | | { readonly kind: "minimal" } |
| 1162 | | | { readonly kind: "current_working_directory" } |
| 1163 | 1278 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 1164 | 1279 | | { readonly kind: "tmpdir" } |
| 1165 | 1280 | | { readonly kind: "slash_tmp" } |
| ... | ... | @@ -1172,9 +1287,6 @@ export const CommandExecutionRequestApprovalParams__FileSystemSpecialPath = Sche |
| 1172 | 1287 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 1173 | 1288 | title: "MinimalFileSystemSpecialPath", |
| 1174 | 1289 | }), |
| 1175 | | Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({ |
| 1176 | | title: "CurrentWorkingDirectoryFileSystemSpecialPath", |
| 1177 | | }), |
| 1178 | 1290 | Schema.Struct({ |
| 1179 | 1291 | kind: Schema.Literal("project_roots"), |
| 1180 | 1292 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -1460,7 +1572,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit |
| 1460 | 1572 | export type PermissionsRequestApprovalParams__FileSystemSpecialPath = |
| 1461 | 1573 | | { readonly kind: "root" } |
| 1462 | 1574 | | { readonly kind: "minimal" } |
| 1463 | | | { readonly kind: "current_working_directory" } |
| 1464 | 1575 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 1465 | 1576 | | { readonly kind: "tmpdir" } |
| 1466 | 1577 | | { readonly kind: "slash_tmp" } |
| ... | ... | @@ -1473,9 +1584,6 @@ export const PermissionsRequestApprovalParams__FileSystemSpecialPath = Schema.Un |
| 1473 | 1584 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 1474 | 1585 | title: "MinimalFileSystemSpecialPath", |
| 1475 | 1586 | }), |
| 1476 | | Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({ |
| 1477 | | title: "CurrentWorkingDirectoryFileSystemSpecialPath", |
| 1478 | | }), |
| 1479 | 1587 | Schema.Struct({ |
| 1480 | 1588 | kind: Schema.Literal("project_roots"), |
| 1481 | 1589 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -1518,7 +1626,6 @@ export const PermissionsRequestApprovalResponse__FileSystemAccessMode = Schema.L |
| 1518 | 1626 | export type PermissionsRequestApprovalResponse__FileSystemSpecialPath = |
| 1519 | 1627 | | { readonly kind: "root" } |
| 1520 | 1628 | | { readonly kind: "minimal" } |
| 1521 | | | { readonly kind: "current_working_directory" } |
| 1522 | 1629 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 1523 | 1630 | | { readonly kind: "tmpdir" } |
| 1524 | 1631 | | { readonly kind: "slash_tmp" } |
| ... | ... | @@ -1531,9 +1638,6 @@ export const PermissionsRequestApprovalResponse__FileSystemSpecialPath = Schema. |
| 1531 | 1638 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 1532 | 1639 | title: "MinimalFileSystemSpecialPath", |
| 1533 | 1640 | }), |
| 1534 | | Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({ |
| 1535 | | title: "CurrentWorkingDirectoryFileSystemSpecialPath", |
| 1536 | | }), |
| 1537 | 1641 | Schema.Struct({ |
| 1538 | 1642 | kind: Schema.Literal("project_roots"), |
| 1539 | 1643 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -1624,11 +1728,16 @@ export const ServerNotification__AppScreenshot = Schema.Struct({ |
| 1624 | 1728 | userPrompt: Schema.String, |
| 1625 | 1729 | }); |
| 1626 | 1730 | |
| 1627 | | export type ServerNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens"; |
| 1731 | export type ServerNotification__AuthMode = |
| 1732 | | "apikey" |
| 1733 | | "chatgpt" |
| 1734 | | "chatgptAuthTokens" |
| 1735 | | "agentIdentity"; |
| 1628 | 1736 | export const ServerNotification__AuthMode = Schema.Literals([ |
| 1629 | 1737 | "apikey", |
| 1630 | 1738 | "chatgpt", |
| 1631 | 1739 | "chatgptAuthTokens", |
| 1740 | "agentIdentity", |
| 1632 | 1741 | ]).annotate({ description: "Authentication mode for OpenAI-backed providers." }); |
| 1633 | 1742 | |
| 1634 | 1743 | export type ServerNotification__AutoReviewDecisionSource = "agent"; |
| ... | ... | @@ -1781,6 +1890,9 @@ export const ServerNotification__FileChangeOutputDeltaNotification = Schema.Stru |
| 1781 | 1890 | itemId: Schema.String, |
| 1782 | 1891 | threadId: Schema.String, |
| 1783 | 1892 | turnId: Schema.String, |
| 1893 | }).annotate({ |
| 1894 | description: |
| 1895 | "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.", |
| 1784 | 1896 | }); |
| 1785 | 1897 | |
| 1786 | 1898 | export type ServerNotification__FileSystemAccessMode = "read" | "write" | "none"; |
| ... | ... | @@ -1789,7 +1901,6 @@ export const ServerNotification__FileSystemAccessMode = Schema.Literals(["read", |
| 1789 | 1901 | export type ServerNotification__FileSystemSpecialPath = |
| 1790 | 1902 | | { readonly kind: "root" } |
| 1791 | 1903 | | { readonly kind: "minimal" } |
| 1792 | | | { readonly kind: "current_working_directory" } |
| 1793 | 1904 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 1794 | 1905 | | { readonly kind: "tmpdir" } |
| 1795 | 1906 | | { readonly kind: "slash_tmp" } |
| ... | ... | @@ -1802,9 +1913,6 @@ export const ServerNotification__FileSystemSpecialPath = Schema.Union( |
| 1802 | 1913 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 1803 | 1914 | title: "MinimalFileSystemSpecialPath", |
| 1804 | 1915 | }), |
| 1805 | | Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({ |
| 1806 | | title: "CurrentWorkingDirectoryFileSystemSpecialPath", |
| 1807 | | }), |
| 1808 | 1916 | Schema.Struct({ |
| 1809 | 1917 | kind: Schema.Literal("project_roots"), |
| 1810 | 1918 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -1878,10 +1986,23 @@ export const ServerNotification__GuardianUserAuthorization = Schema.Literals([ |
| 1878 | 1986 | "high", |
| 1879 | 1987 | ]).annotate({ description: "[UNSTABLE] Authorization level assigned by approval auto-review." }); |
| 1880 | 1988 | |
| 1989 | export type ServerNotification__GuardianWarningNotification = { |
| 1990 | readonly message: string; |
| 1991 | readonly threadId: string; |
| 1992 | }; |
| 1993 | export const ServerNotification__GuardianWarningNotification = Schema.Struct({ |
| 1994 | message: Schema.String.annotate({ |
| 1995 | description: "Concise guardian warning message for the user.", |
| 1996 | }), |
| 1997 | threadId: Schema.String.annotate({ description: "Thread target for the guardian warning." }), |
| 1998 | }); |
| 1999 | |
| 1881 | 2000 | export type ServerNotification__HookEventName = |
| 1882 | 2001 | | "preToolUse" |
| 1883 | 2002 | | "permissionRequest" |
| 1884 | 2003 | | "postToolUse" |
| 2004 | | "preCompact" |
| 2005 | | "postCompact" |
| 1885 | 2006 | | "sessionStart" |
| 1886 | 2007 | | "userPromptSubmit" |
| 1887 | 2008 | | "stop"; |
| ... | ... | @@ -1889,6 +2010,8 @@ export const ServerNotification__HookEventName = Schema.Literals([ |
| 1889 | 2010 | "preToolUse", |
| 1890 | 2011 | "permissionRequest", |
| 1891 | 2012 | "postToolUse", |
| 2013 | "preCompact", |
| 2014 | "postCompact", |
| 1892 | 2015 | "sessionStart", |
| 1893 | 2016 | "userPromptSubmit", |
| 1894 | 2017 | "stop", |
| ... | ... | @@ -2026,6 +2149,9 @@ export const ServerNotification__MessagePhase = Schema.Literals([ |
| 2026 | 2149 | export type ServerNotification__ModelRerouteReason = "highRiskCyberActivity"; |
| 2027 | 2150 | export const ServerNotification__ModelRerouteReason = Schema.Literal("highRiskCyberActivity"); |
| 2028 | 2151 | |
| 2152 | export type ServerNotification__ModelVerification = "trustedAccessForCyber"; |
| 2153 | export const ServerNotification__ModelVerification = Schema.Literal("trustedAccessForCyber"); |
| 2154 | |
| 2029 | 2155 | export type ServerNotification__NetworkApprovalProtocol = |
| 2030 | 2156 | | "http" |
| 2031 | 2157 | | "https" |
| ... | ... | @@ -2117,6 +2243,61 @@ export const ServerNotification__PlanType = Schema.Literals([ |
| 2117 | 2243 | "unknown", |
| 2118 | 2244 | ]); |
| 2119 | 2245 | |
| 2246 | export type ServerNotification__ProcessExitedNotification = { |
| 2247 | readonly exitCode: number; |
| 2248 | readonly processHandle: string; |
| 2249 | readonly stderr: string; |
| 2250 | readonly stderrCapReached: boolean; |
| 2251 | readonly stdout: string; |
| 2252 | readonly stdoutCapReached: boolean; |
| 2253 | }; |
| 2254 | export const ServerNotification__ProcessExitedNotification = Schema.Struct({ |
| 2255 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( |
| 2256 | Schema.isInt(), |
| 2257 | ), |
| 2258 | processHandle: Schema.String.annotate({ |
| 2259 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| 2260 | }), |
| 2261 | stderr: Schema.String.annotate({ |
| 2262 | description: |
| 2263 | "Buffered stderr capture.\n\nEmpty when stderr was streamed via `process/outputDelta`.", |
| 2264 | }), |
| 2265 | stderrCapReached: Schema.Boolean.annotate({ |
| 2266 | description: |
| 2267 | "Whether stderr reached `outputBytesCap`.\n\nIn streaming mode, stderr is empty and cap state is also reported on the final stderr `process/outputDelta` notification.", |
| 2268 | }), |
| 2269 | stdout: Schema.String.annotate({ |
| 2270 | description: |
| 2271 | "Buffered stdout capture.\n\nEmpty when stdout was streamed via `process/outputDelta`.", |
| 2272 | }), |
| 2273 | stdoutCapReached: Schema.Boolean.annotate({ |
| 2274 | description: |
| 2275 | "Whether stdout reached `outputBytesCap`.\n\nIn streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.", |
| 2276 | }), |
| 2277 | }).annotate({ description: "Final process exit notification for `process/spawn`." }); |
| 2278 | |
| 2279 | export type ServerNotification__ProcessOutputDeltaNotification = { |
| 2280 | readonly capReached: boolean; |
| 2281 | readonly deltaBase64: string; |
| 2282 | readonly processHandle: string; |
| 2283 | readonly stream: "stdout" | "stderr"; |
| 2284 | }; |
| 2285 | export const ServerNotification__ProcessOutputDeltaNotification = Schema.Struct({ |
| 2286 | capReached: Schema.Boolean.annotate({ |
| 2287 | description: |
| 2288 | "True on the final streamed chunk for this stream when output was truncated by `outputBytesCap`.", |
| 2289 | }), |
| 2290 | deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }), |
| 2291 | processHandle: Schema.String.annotate({ |
| 2292 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| 2293 | }), |
| 2294 | stream: Schema.Literals(["stdout", "stderr"]).annotate({ |
| 2295 | description: "Stream label for `process/outputDelta` notifications.", |
| 2296 | }), |
| 2297 | }).annotate({ |
| 2298 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", |
| 2299 | }); |
| 2300 | |
| 2120 | 2301 | export type ServerNotification__RateLimitReachedType = |
| 2121 | 2302 | | "rate_limit_reached" |
| 2122 | 2303 | | "workspace_owner_credits_depleted" |
| ... | ... | @@ -2211,6 +2392,18 @@ export const ServerNotification__ReasoningTextDeltaNotification = Schema.Struct( |
| 2211 | 2392 | turnId: Schema.String, |
| 2212 | 2393 | }); |
| 2213 | 2394 | |
| 2395 | export type ServerNotification__RemoteControlConnectionStatus = |
| 2396 | | "disabled" |
| 2397 | | "connecting" |
| 2398 | | "connected" |
| 2399 | | "errored"; |
| 2400 | export const ServerNotification__RemoteControlConnectionStatus = Schema.Literals([ |
| 2401 | "disabled", |
| 2402 | "connecting", |
| 2403 | "connected", |
| 2404 | "errored", |
| 2405 | ]); |
| 2406 | |
| 2214 | 2407 | export type ServerNotification__RequestId = string | number; |
| 2215 | 2408 | export const ServerNotification__RequestId = Schema.Union([ |
| 2216 | 2409 | Schema.String, |
| ... | ... | @@ -2292,6 +2485,23 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({ |
| 2292 | 2485 | threadId: Schema.String, |
| 2293 | 2486 | }); |
| 2294 | 2487 | |
| 2488 | export type ServerNotification__ThreadGoalClearedNotification = { readonly threadId: string }; |
| 2489 | export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({ |
| 2490 | threadId: Schema.String, |
| 2491 | }); |
| 2492 | |
| 2493 | export type ServerNotification__ThreadGoalStatus = |
| 2494 | | "active" |
| 2495 | | "paused" |
| 2496 | | "budgetLimited" |
| 2497 | | "complete"; |
| 2498 | export const ServerNotification__ThreadGoalStatus = Schema.Literals([ |
| 2499 | "active", |
| 2500 | "paused", |
| 2501 | "budgetLimited", |
| 2502 | "complete", |
| 2503 | ]); |
| 2504 | |
| 2295 | 2505 | export type ServerNotification__ThreadId = string; |
| 2296 | 2506 | export const ServerNotification__ThreadId = Schema.String; |
| 2297 | 2507 | |
| ... | ... | @@ -2398,6 +2608,13 @@ export const ServerNotification__ThreadRealtimeTranscriptDoneNotification = Sche |
| 2398 | 2608 | "EXPERIMENTAL - final transcript text emitted when realtime completes a transcript part.", |
| 2399 | 2609 | }); |
| 2400 | 2610 | |
| 2611 | export type ServerNotification__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 2612 | export const ServerNotification__ThreadSource = Schema.Literals([ |
| 2613 | "user", |
| 2614 | "subagent", |
| 2615 | "memory_consolidation", |
| 2616 | ]); |
| 2617 | |
| 2401 | 2618 | export type ServerNotification__ThreadUnarchivedNotification = { readonly threadId: string }; |
| 2402 | 2619 | export const ServerNotification__ThreadUnarchivedNotification = Schema.Struct({ |
| 2403 | 2620 | threadId: Schema.String, |
| ... | ... | @@ -2604,7 +2821,6 @@ export const ServerRequest__FileSystemAccessMode = Schema.Literals(["read", "wri |
| 2604 | 2821 | export type ServerRequest__FileSystemSpecialPath = |
| 2605 | 2822 | | { readonly kind: "root" } |
| 2606 | 2823 | | { readonly kind: "minimal" } |
| 2607 | | | { readonly kind: "current_working_directory" } |
| 2608 | 2824 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 2609 | 2825 | | { readonly kind: "tmpdir" } |
| 2610 | 2826 | | { readonly kind: "slash_tmp" } |
| ... | ... | @@ -2617,9 +2833,6 @@ export const ServerRequest__FileSystemSpecialPath = Schema.Union( |
| 2617 | 2833 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 2618 | 2834 | title: "MinimalFileSystemSpecialPath", |
| 2619 | 2835 | }), |
| 2620 | | Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({ |
| 2621 | | title: "CurrentWorkingDirectoryFileSystemSpecialPath", |
| 2622 | | }), |
| 2623 | 2836 | Schema.Struct({ |
| 2624 | 2837 | kind: Schema.Literal("project_roots"), |
| 2625 | 2838 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -2863,11 +3076,16 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitWindow = Schema.St |
| 2863 | 3076 | ), |
| 2864 | 3077 | }); |
| 2865 | 3078 | |
| 2866 | | export type V2AccountUpdatedNotification__AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens"; |
| 3079 | export type V2AccountUpdatedNotification__AuthMode = |
| 3080 | | "apikey" |
| 3081 | | "chatgpt" |
| 3082 | | "chatgptAuthTokens" |
| 3083 | | "agentIdentity"; |
| 2867 | 3084 | export const V2AccountUpdatedNotification__AuthMode = Schema.Literals([ |
| 2868 | 3085 | "apikey", |
| 2869 | 3086 | "chatgpt", |
| 2870 | 3087 | "chatgptAuthTokens", |
| 3088 | "agentIdentity", |
| 2871 | 3089 | ]).annotate({ description: "Authentication mode for OpenAI-backed providers." }); |
| 2872 | 3090 | |
| 2873 | 3091 | export type V2AccountUpdatedNotification__PlanType = |
| ... | ... | @@ -2991,6 +3209,50 @@ export const V2CommandExecParams__CommandExecTerminalSize = Schema.Struct({ |
| 2991 | 3209 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 2992 | 3210 | }).annotate({ description: "PTY size in character cells for `command/exec` PTY sessions." }); |
| 2993 | 3211 | |
| 3212 | export type V2CommandExecParams__FileSystemAccessMode = "read" | "write" | "none"; |
| 3213 | export const V2CommandExecParams__FileSystemAccessMode = Schema.Literals(["read", "write", "none"]); |
| 3214 | |
| 3215 | export type V2CommandExecParams__FileSystemSpecialPath = |
| 3216 | | { readonly kind: "root" } |
| 3217 | | { readonly kind: "minimal" } |
| 3218 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 3219 | | { readonly kind: "tmpdir" } |
| 3220 | | { readonly kind: "slash_tmp" } |
| 3221 | | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null }; |
| 3222 | export const V2CommandExecParams__FileSystemSpecialPath = Schema.Union( |
| 3223 | [ |
| 3224 | Schema.Struct({ kind: Schema.Literal("root") }).annotate({ |
| 3225 | title: "RootFileSystemSpecialPath", |
| 3226 | }), |
| 3227 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 3228 | title: "MinimalFileSystemSpecialPath", |
| 3229 | }), |
| 3230 | Schema.Struct({ |
| 3231 | kind: Schema.Literal("project_roots"), |
| 3232 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3233 | }).annotate({ title: "KindFileSystemSpecialPath" }), |
| 3234 | Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({ |
| 3235 | title: "TmpdirFileSystemSpecialPath", |
| 3236 | }), |
| 3237 | Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({ |
| 3238 | title: "SlashTmpFileSystemSpecialPath", |
| 3239 | }), |
| 3240 | Schema.Struct({ |
| 3241 | kind: Schema.Literal("unknown"), |
| 3242 | path: Schema.String, |
| 3243 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3244 | }), |
| 3245 | ], |
| 3246 | { mode: "oneOf" }, |
| 3247 | ); |
| 3248 | |
| 3249 | export type V2CommandExecParams__PermissionProfileNetworkPermissions = { |
| 3250 | readonly enabled: boolean; |
| 3251 | }; |
| 3252 | export const V2CommandExecParams__PermissionProfileNetworkPermissions = Schema.Struct({ |
| 3253 | enabled: Schema.Boolean, |
| 3254 | }); |
| 3255 | |
| 2994 | 3256 | export type V2ConfigBatchWriteParams__MergeStrategy = "replace" | "upsert"; |
| 2995 | 3257 | export const V2ConfigBatchWriteParams__MergeStrategy = Schema.Literals(["replace", "upsert"]); |
| 2996 | 3258 | |
| ... | ... | @@ -3015,13 +3277,14 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals(["auto", "p |
| 3015 | 3277 | export type V2ConfigReadResponse__AppToolsConfig = {}; |
| 3016 | 3278 | export const V2ConfigReadResponse__AppToolsConfig = Schema.Struct({}); |
| 3017 | 3279 | |
| 3018 | | export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 3280 | export type V2ConfigReadResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 3019 | 3281 | export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([ |
| 3020 | 3282 | "user", |
| 3283 | "auto_review", |
| 3021 | 3284 | "guardian_subagent", |
| 3022 | 3285 | ]).annotate({ |
| 3023 | 3286 | description: |
| 3024 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 3287 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 3025 | 3288 | }); |
| 3026 | 3289 | |
| 3027 | 3290 | export type V2ConfigReadResponse__AppsDefaultConfig = { |
| ... | ... | @@ -3122,9 +3385,6 @@ export const V2ConfigReadResponse__SandboxWorkspaceWrite = Schema.Struct({ |
| 3122 | 3385 | writable_roots: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 3123 | 3386 | }); |
| 3124 | 3387 | |
| 3125 | | export type V2ConfigReadResponse__ServiceTier = "fast" | "flex"; |
| 3126 | | export const V2ConfigReadResponse__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 3127 | | |
| 3128 | 3388 | export type V2ConfigReadResponse__Verbosity = "low" | "medium" | "high"; |
| 3129 | 3389 | export const V2ConfigReadResponse__Verbosity = Schema.Literals(["low", "medium", "high"]).annotate({ |
| 3130 | 3390 | description: |
| ... | ... | @@ -3184,6 +3444,42 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union( |
| 3184 | 3444 | { mode: "oneOf" }, |
| 3185 | 3445 | ); |
| 3186 | 3446 | |
| 3447 | export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler = |
| 3448 | | { |
| 3449 | readonly async: boolean; |
| 3450 | readonly command: string; |
| 3451 | readonly statusMessage?: string | null; |
| 3452 | readonly timeoutSec?: number | null; |
| 3453 | readonly type: "command"; |
| 3454 | } |
| 3455 | | { readonly type: "prompt" } |
| 3456 | | { readonly type: "agent" }; |
| 3457 | export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Union( |
| 3458 | [ |
| 3459 | Schema.Struct({ |
| 3460 | async: Schema.Boolean, |
| 3461 | command: Schema.String, |
| 3462 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3463 | timeoutSec: Schema.optionalKey( |
| 3464 | Schema.Union([ |
| 3465 | Schema.Number.annotate({ format: "uint64" }) |
| 3466 | .check(Schema.isInt()) |
| 3467 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 3468 | Schema.Null, |
| 3469 | ]), |
| 3470 | ), |
| 3471 | type: Schema.Literal("command").annotate({ title: "CommandConfiguredHookHandlerType" }), |
| 3472 | }).annotate({ title: "CommandConfiguredHookHandler" }), |
| 3473 | Schema.Struct({ |
| 3474 | type: Schema.Literal("prompt").annotate({ title: "PromptConfiguredHookHandlerType" }), |
| 3475 | }).annotate({ title: "PromptConfiguredHookHandler" }), |
| 3476 | Schema.Struct({ |
| 3477 | type: Schema.Literal("agent").annotate({ title: "AgentConfiguredHookHandlerType" }), |
| 3478 | }).annotate({ title: "AgentConfiguredHookHandler" }), |
| 3479 | ], |
| 3480 | { mode: "oneOf" }, |
| 3481 | ); |
| 3482 | |
| 3187 | 3483 | export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny"; |
| 3188 | 3484 | export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([ |
| 3189 | 3485 | "allow", |
| ... | ... | @@ -3244,63 +3540,6 @@ export const V2ConfigWriteResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 3244 | 3540 | export type V2ConfigWriteResponse__WriteStatus = "ok" | "okOverridden"; |
| 3245 | 3541 | export const V2ConfigWriteResponse__WriteStatus = Schema.Literals(["ok", "okOverridden"]); |
| 3246 | 3542 | |
| 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 | | |
| 3304 | 3543 | export type V2ErrorNotification__NonSteerableTurnKind = "review" | "compact"; |
| 3305 | 3544 | export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals(["review", "compact"]); |
| 3306 | 3545 | |
| ... | ... | @@ -3355,14 +3594,43 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str |
| 3355 | 3594 | }), |
| 3356 | 3595 | }); |
| 3357 | 3596 | |
| 3597 | export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string }; |
| 3598 | export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({ |
| 3599 | name: Schema.String, |
| 3600 | }); |
| 3601 | |
| 3358 | 3602 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType = |
| 3359 | 3603 | | "AGENTS_MD" |
| 3360 | 3604 | | "CONFIG" |
| 3361 | 3605 | | "SKILLS" |
| 3362 | 3606 | | "PLUGINS" |
| 3363 | | | "MCP_SERVER_CONFIG"; |
| 3607 | | "MCP_SERVER_CONFIG" |
| 3608 | | "SUBAGENTS" |
| 3609 | | "HOOKS" |
| 3610 | | "COMMANDS" |
| 3611 | | "SESSIONS"; |
| 3364 | 3612 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItemType = |
| 3365 | | Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]); |
| 3613 | Schema.Literals([ |
| 3614 | "AGENTS_MD", |
| 3615 | "CONFIG", |
| 3616 | "SKILLS", |
| 3617 | "PLUGINS", |
| 3618 | "MCP_SERVER_CONFIG", |
| 3619 | "SUBAGENTS", |
| 3620 | "HOOKS", |
| 3621 | "COMMANDS", |
| 3622 | "SESSIONS", |
| 3623 | ]); |
| 3624 | |
| 3625 | export type V2ExternalAgentConfigDetectResponse__HookMigration = { readonly name: string }; |
| 3626 | export const V2ExternalAgentConfigDetectResponse__HookMigration = Schema.Struct({ |
| 3627 | name: Schema.String, |
| 3628 | }); |
| 3629 | |
| 3630 | export type V2ExternalAgentConfigDetectResponse__McpServerMigration = { readonly name: string }; |
| 3631 | export const V2ExternalAgentConfigDetectResponse__McpServerMigration = Schema.Struct({ |
| 3632 | name: Schema.String, |
| 3633 | }); |
| 3366 | 3634 | |
| 3367 | 3635 | export type V2ExternalAgentConfigDetectResponse__PluginsMigration = { |
| 3368 | 3636 | readonly marketplaceName: string; |
| ... | ... | @@ -3373,14 +3641,59 @@ export const V2ExternalAgentConfigDetectResponse__PluginsMigration = Schema.Stru |
| 3373 | 3641 | pluginNames: Schema.Array(Schema.String), |
| 3374 | 3642 | }); |
| 3375 | 3643 | |
| 3644 | export type V2ExternalAgentConfigDetectResponse__SessionMigration = { |
| 3645 | readonly cwd: string; |
| 3646 | readonly path: string; |
| 3647 | readonly title?: string | null; |
| 3648 | }; |
| 3649 | export const V2ExternalAgentConfigDetectResponse__SessionMigration = Schema.Struct({ |
| 3650 | cwd: Schema.String, |
| 3651 | path: Schema.String, |
| 3652 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3653 | }); |
| 3654 | |
| 3655 | export type V2ExternalAgentConfigDetectResponse__SubagentMigration = { readonly name: string }; |
| 3656 | export const V2ExternalAgentConfigDetectResponse__SubagentMigration = Schema.Struct({ |
| 3657 | name: Schema.String, |
| 3658 | }); |
| 3659 | |
| 3660 | export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string }; |
| 3661 | export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({ |
| 3662 | name: Schema.String, |
| 3663 | }); |
| 3664 | |
| 3376 | 3665 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = |
| 3377 | 3666 | | "AGENTS_MD" |
| 3378 | 3667 | | "CONFIG" |
| 3379 | 3668 | | "SKILLS" |
| 3380 | 3669 | | "PLUGINS" |
| 3381 | | | "MCP_SERVER_CONFIG"; |
| 3670 | | "MCP_SERVER_CONFIG" |
| 3671 | | "SUBAGENTS" |
| 3672 | | "HOOKS" |
| 3673 | | "COMMANDS" |
| 3674 | | "SESSIONS"; |
| 3382 | 3675 | export const V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItemType = |
| 3383 | | Schema.Literals(["AGENTS_MD", "CONFIG", "SKILLS", "PLUGINS", "MCP_SERVER_CONFIG"]); |
| 3676 | Schema.Literals([ |
| 3677 | "AGENTS_MD", |
| 3678 | "CONFIG", |
| 3679 | "SKILLS", |
| 3680 | "PLUGINS", |
| 3681 | "MCP_SERVER_CONFIG", |
| 3682 | "SUBAGENTS", |
| 3683 | "HOOKS", |
| 3684 | "COMMANDS", |
| 3685 | "SESSIONS", |
| 3686 | ]); |
| 3687 | |
| 3688 | export type V2ExternalAgentConfigImportParams__HookMigration = { readonly name: string }; |
| 3689 | export const V2ExternalAgentConfigImportParams__HookMigration = Schema.Struct({ |
| 3690 | name: Schema.String, |
| 3691 | }); |
| 3692 | |
| 3693 | export type V2ExternalAgentConfigImportParams__McpServerMigration = { readonly name: string }; |
| 3694 | export const V2ExternalAgentConfigImportParams__McpServerMigration = Schema.Struct({ |
| 3695 | name: Schema.String, |
| 3696 | }); |
| 3384 | 3697 | |
| 3385 | 3698 | export type V2ExternalAgentConfigImportParams__PluginsMigration = { |
| 3386 | 3699 | readonly marketplaceName: string; |
| ... | ... | @@ -3391,6 +3704,22 @@ export const V2ExternalAgentConfigImportParams__PluginsMigration = Schema.Struct |
| 3391 | 3704 | pluginNames: Schema.Array(Schema.String), |
| 3392 | 3705 | }); |
| 3393 | 3706 | |
| 3707 | export type V2ExternalAgentConfigImportParams__SessionMigration = { |
| 3708 | readonly cwd: string; |
| 3709 | readonly path: string; |
| 3710 | readonly title?: string | null; |
| 3711 | }; |
| 3712 | export const V2ExternalAgentConfigImportParams__SessionMigration = Schema.Struct({ |
| 3713 | cwd: Schema.String, |
| 3714 | path: Schema.String, |
| 3715 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3716 | }); |
| 3717 | |
| 3718 | export type V2ExternalAgentConfigImportParams__SubagentMigration = { readonly name: string }; |
| 3719 | export const V2ExternalAgentConfigImportParams__SubagentMigration = Schema.Struct({ |
| 3720 | name: Schema.String, |
| 3721 | }); |
| 3722 | |
| 3394 | 3723 | export type V2FileChangePatchUpdatedNotification__PatchChangeKind = |
| 3395 | 3724 | | { readonly type: "add" } |
| 3396 | 3725 | | { readonly type: "delete" } |
| ... | ... | @@ -3540,6 +3869,8 @@ export type V2HookCompletedNotification__HookEventName = |
| 3540 | 3869 | | "preToolUse" |
| 3541 | 3870 | | "permissionRequest" |
| 3542 | 3871 | | "postToolUse" |
| 3872 | | "preCompact" |
| 3873 | | "postCompact" |
| 3543 | 3874 | | "sessionStart" |
| 3544 | 3875 | | "userPromptSubmit" |
| 3545 | 3876 | | "stop"; |
| ... | ... | @@ -3547,6 +3878,8 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([ |
| 3547 | 3878 | "preToolUse", |
| 3548 | 3879 | "permissionRequest", |
| 3549 | 3880 | "postToolUse", |
| 3881 | "preCompact", |
| 3882 | "postCompact", |
| 3550 | 3883 | "sessionStart", |
| 3551 | 3884 | "userPromptSubmit", |
| 3552 | 3885 | "stop", |
| ... | ... | @@ -3593,6 +3926,76 @@ export const V2HookCompletedNotification__HookRunStatus = Schema.Literals([ |
| 3593 | 3926 | export type V2HookCompletedNotification__HookScope = "thread" | "turn"; |
| 3594 | 3927 | export const V2HookCompletedNotification__HookScope = Schema.Literals(["thread", "turn"]); |
| 3595 | 3928 | |
| 3929 | export type V2HooksListResponse__AbsolutePathBuf = string; |
| 3930 | export const V2HooksListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 3931 | description: |
| 3932 | "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.", |
| 3933 | }); |
| 3934 | |
| 3935 | export type V2HooksListResponse__HookErrorInfo = { |
| 3936 | readonly message: string; |
| 3937 | readonly path: string; |
| 3938 | }; |
| 3939 | export const V2HooksListResponse__HookErrorInfo = Schema.Struct({ |
| 3940 | message: Schema.String, |
| 3941 | path: Schema.String, |
| 3942 | }); |
| 3943 | |
| 3944 | export type V2HooksListResponse__HookEventName = |
| 3945 | | "preToolUse" |
| 3946 | | "permissionRequest" |
| 3947 | | "postToolUse" |
| 3948 | | "preCompact" |
| 3949 | | "postCompact" |
| 3950 | | "sessionStart" |
| 3951 | | "userPromptSubmit" |
| 3952 | | "stop"; |
| 3953 | export const V2HooksListResponse__HookEventName = Schema.Literals([ |
| 3954 | "preToolUse", |
| 3955 | "permissionRequest", |
| 3956 | "postToolUse", |
| 3957 | "preCompact", |
| 3958 | "postCompact", |
| 3959 | "sessionStart", |
| 3960 | "userPromptSubmit", |
| 3961 | "stop", |
| 3962 | ]); |
| 3963 | |
| 3964 | export type V2HooksListResponse__HookHandlerType = "command" | "prompt" | "agent"; |
| 3965 | export const V2HooksListResponse__HookHandlerType = Schema.Literals(["command", "prompt", "agent"]); |
| 3966 | |
| 3967 | export type V2HooksListResponse__HookSource = |
| 3968 | | "system" |
| 3969 | | "user" |
| 3970 | | "project" |
| 3971 | | "mdm" |
| 3972 | | "sessionFlags" |
| 3973 | | "plugin" |
| 3974 | | "cloudRequirements" |
| 3975 | | "legacyManagedConfigFile" |
| 3976 | | "legacyManagedConfigMdm" |
| 3977 | | "unknown"; |
| 3978 | export const V2HooksListResponse__HookSource = Schema.Literals([ |
| 3979 | "system", |
| 3980 | "user", |
| 3981 | "project", |
| 3982 | "mdm", |
| 3983 | "sessionFlags", |
| 3984 | "plugin", |
| 3985 | "cloudRequirements", |
| 3986 | "legacyManagedConfigFile", |
| 3987 | "legacyManagedConfigMdm", |
| 3988 | "unknown", |
| 3989 | ]); |
| 3990 | |
| 3991 | export type V2HooksListResponse__HookTrustStatus = "managed" | "untrusted" | "trusted" | "modified"; |
| 3992 | export const V2HooksListResponse__HookTrustStatus = Schema.Literals([ |
| 3993 | "managed", |
| 3994 | "untrusted", |
| 3995 | "trusted", |
| 3996 | "modified", |
| 3997 | ]); |
| 3998 | |
| 3596 | 3999 | export type V2HookStartedNotification__AbsolutePathBuf = string; |
| 3597 | 4000 | export const V2HookStartedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 3598 | 4001 | description: |
| ... | ... | @@ -3603,6 +4006,8 @@ export type V2HookStartedNotification__HookEventName = |
| 3603 | 4006 | | "preToolUse" |
| 3604 | 4007 | | "permissionRequest" |
| 3605 | 4008 | | "postToolUse" |
| 4009 | | "preCompact" |
| 4010 | | "postCompact" |
| 3606 | 4011 | | "sessionStart" |
| 3607 | 4012 | | "userPromptSubmit" |
| 3608 | 4013 | | "stop"; |
| ... | ... | @@ -3610,6 +4015,8 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([ |
| 3610 | 4015 | "preToolUse", |
| 3611 | 4016 | "permissionRequest", |
| 3612 | 4017 | "postToolUse", |
| 4018 | "preCompact", |
| 4019 | "postCompact", |
| 3613 | 4020 | "sessionStart", |
| 3614 | 4021 | "userPromptSubmit", |
| 3615 | 4022 | "stop", |
| ... | ... | @@ -3918,7 +4325,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess |
| 3918 | 4325 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecialPath = |
| 3919 | 4326 | | { readonly kind: "root" } |
| 3920 | 4327 | | { readonly kind: "minimal" } |
| 3921 | | | { readonly kind: "current_working_directory" } |
| 3922 | 4328 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 3923 | 4329 | | { readonly kind: "tmpdir" } |
| 3924 | 4330 | | { readonly kind: "slash_tmp" } |
| ... | ... | @@ -3932,9 +4338,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSpecia |
| 3932 | 4338 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 3933 | 4339 | title: "MinimalFileSystemSpecialPath", |
| 3934 | 4340 | }), |
| 3935 | | Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({ |
| 3936 | | title: "CurrentWorkingDirectoryFileSystemSpecialPath", |
| 3937 | | }), |
| 3938 | 4341 | Schema.Struct({ |
| 3939 | 4342 | kind: Schema.Literal("project_roots"), |
| 3940 | 4343 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -4021,7 +4424,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo |
| 4021 | 4424 | export type V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialPath = |
| 4022 | 4425 | | { readonly kind: "root" } |
| 4023 | 4426 | | { readonly kind: "minimal" } |
| 4024 | | | { readonly kind: "current_working_directory" } |
| 4025 | 4427 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 4026 | 4428 | | { readonly kind: "tmpdir" } |
| 4027 | 4429 | | { readonly kind: "slash_tmp" } |
| ... | ... | @@ -4034,9 +4436,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemSpecialP |
| 4034 | 4436 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 4035 | 4437 | title: "MinimalFileSystemSpecialPath", |
| 4036 | 4438 | }), |
| 4037 | | Schema.Struct({ kind: Schema.Literal("current_working_directory") }).annotate({ |
| 4038 | | title: "CurrentWorkingDirectoryFileSystemSpecialPath", |
| 4039 | | }), |
| 4040 | 4439 | Schema.Struct({ |
| 4041 | 4440 | kind: Schema.Literal("project_roots"), |
| 4042 | 4441 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -4429,6 +4828,21 @@ export const V2MarketplaceRemoveResponse__AbsolutePathBuf = Schema.String.annota |
| 4429 | 4828 | "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 | 4829 | }); |
| 4431 | 4830 | |
| 4831 | export type V2MarketplaceUpgradeResponse__AbsolutePathBuf = string; |
| 4832 | export const V2MarketplaceUpgradeResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 4833 | description: |
| 4834 | "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.", |
| 4835 | }); |
| 4836 | |
| 4837 | export type V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = { |
| 4838 | readonly marketplaceName: string; |
| 4839 | readonly message: string; |
| 4840 | }; |
| 4841 | export const V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo = Schema.Struct({ |
| 4842 | marketplaceName: Schema.String, |
| 4843 | message: Schema.String, |
| 4844 | }); |
| 4845 | |
| 4432 | 4846 | export type V2McpResourceReadResponse__ResourceContent = |
| 4433 | 4847 | | { |
| 4434 | 4848 | readonly _meta?: unknown; |
| ... | ... | @@ -4477,6 +4891,17 @@ export const V2ModelListResponse__InputModality = Schema.Literals(["text", "imag |
| 4477 | 4891 | export type V2ModelListResponse__ModelAvailabilityNux = { readonly message: string }; |
| 4478 | 4892 | export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ message: Schema.String }); |
| 4479 | 4893 | |
| 4894 | export type V2ModelListResponse__ModelServiceTier = { |
| 4895 | readonly description: string; |
| 4896 | readonly id: string; |
| 4897 | readonly name: string; |
| 4898 | }; |
| 4899 | export const V2ModelListResponse__ModelServiceTier = Schema.Struct({ |
| 4900 | description: Schema.String, |
| 4901 | id: Schema.String, |
| 4902 | name: Schema.String, |
| 4903 | }); |
| 4904 | |
| 4480 | 4905 | export type V2ModelListResponse__ModelUpgradeInfo = { |
| 4481 | 4906 | readonly migrationMarkdown?: string | null; |
| 4482 | 4907 | readonly model: string; |
| ... | ... | @@ -4513,6 +4938,10 @@ export type V2ModelReroutedNotification__ModelRerouteReason = "highRiskCyberActi |
| 4513 | 4938 | export const V2ModelReroutedNotification__ModelRerouteReason = |
| 4514 | 4939 | Schema.Literal("highRiskCyberActivity"); |
| 4515 | 4940 | |
| 4941 | export type V2ModelVerificationNotification__ModelVerification = "trustedAccessForCyber"; |
| 4942 | export const V2ModelVerificationNotification__ModelVerification = |
| 4943 | Schema.Literal("trustedAccessForCyber"); |
| 4944 | |
| 4516 | 4945 | export type V2PluginInstallParams__AbsolutePathBuf = string; |
| 4517 | 4946 | export const V2PluginInstallParams__AbsolutePathBuf = Schema.String.annotate({ |
| 4518 | 4947 | description: |
| ... | ... | @@ -4543,6 +4972,16 @@ export const V2PluginListParams__AbsolutePathBuf = Schema.String.annotate({ |
| 4543 | 4972 | "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.", |
| 4544 | 4973 | }); |
| 4545 | 4974 | |
| 4975 | export type V2PluginListParams__PluginListMarketplaceKind = |
| 4976 | | "local" |
| 4977 | | "workspace-directory" |
| 4978 | | "shared-with-me"; |
| 4979 | export const V2PluginListParams__PluginListMarketplaceKind = Schema.Literals([ |
| 4980 | "local", |
| 4981 | "workspace-directory", |
| 4982 | "shared-with-me", |
| 4983 | ]); |
| 4984 | |
| 4546 | 4985 | export type V2PluginListResponse__AbsolutePathBuf = string; |
| 4547 | 4986 | export const V2PluginListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 4548 | 4987 | description: |
| ... | ... | @@ -4567,6 +5006,13 @@ export const V2PluginListResponse__PluginInstallPolicy = Schema.Literals([ |
| 4567 | 5006 | "INSTALLED_BY_DEFAULT", |
| 4568 | 5007 | ]); |
| 4569 | 5008 | |
| 5009 | export type V2PluginListResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5010 | export const V2PluginListResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5011 | "user", |
| 5012 | "group", |
| 5013 | "workspace", |
| 5014 | ]); |
| 5015 | |
| 4570 | 5016 | export type V2PluginReadParams__AbsolutePathBuf = string; |
| 4571 | 5017 | export const V2PluginReadParams__AbsolutePathBuf = Schema.String.annotate({ |
| 4572 | 5018 | description: |
| ... | ... | @@ -4594,6 +5040,26 @@ export const V2PluginReadResponse__AppSummary = Schema.Struct({ |
| 4594 | 5040 | needsAuth: Schema.Boolean, |
| 4595 | 5041 | }).annotate({ description: "EXPERIMENTAL - app metadata summary for plugin responses." }); |
| 4596 | 5042 | |
| 5043 | export type V2PluginReadResponse__HookEventName = |
| 5044 | | "preToolUse" |
| 5045 | | "permissionRequest" |
| 5046 | | "postToolUse" |
| 5047 | | "preCompact" |
| 5048 | | "postCompact" |
| 5049 | | "sessionStart" |
| 5050 | | "userPromptSubmit" |
| 5051 | | "stop"; |
| 5052 | export const V2PluginReadResponse__HookEventName = Schema.Literals([ |
| 5053 | "preToolUse", |
| 5054 | "permissionRequest", |
| 5055 | "postToolUse", |
| 5056 | "preCompact", |
| 5057 | "postCompact", |
| 5058 | "sessionStart", |
| 5059 | "userPromptSubmit", |
| 5060 | "stop", |
| 5061 | ]); |
| 5062 | |
| 4597 | 5063 | export type V2PluginReadResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; |
| 4598 | 5064 | export const V2PluginReadResponse__PluginAuthPolicy = Schema.Literals(["ON_INSTALL", "ON_USE"]); |
| 4599 | 5065 | |
| ... | ... | @@ -4607,18 +5073,81 @@ export const V2PluginReadResponse__PluginInstallPolicy = Schema.Literals([ |
| 4607 | 5073 | "INSTALLED_BY_DEFAULT", |
| 4608 | 5074 | ]); |
| 4609 | 5075 | |
| 4610 | | export type V2RawResponseItemCompletedNotification__GhostCommit = { |
| 4611 | | readonly id: string; |
| 4612 | | readonly parent?: string | null; |
| 4613 | | readonly preexisting_untracked_dirs: ReadonlyArray<string>; |
| 4614 | | readonly preexisting_untracked_files: ReadonlyArray<string>; |
| 4615 | | }; |
| 4616 | | export const V2RawResponseItemCompletedNotification__GhostCommit = Schema.Struct({ |
| 4617 | | id: Schema.String, |
| 4618 | | parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 4619 | | preexisting_untracked_dirs: Schema.Array(Schema.String), |
| 4620 | | preexisting_untracked_files: Schema.Array(Schema.String), |
| 4621 | | }).annotate({ description: "Details of a ghost commit created from a repository state." }); |
| 5076 | export type V2PluginReadResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5077 | export const V2PluginReadResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5078 | "user", |
| 5079 | "group", |
| 5080 | "workspace", |
| 5081 | ]); |
| 5082 | |
| 5083 | export type V2PluginShareListResponse__AbsolutePathBuf = string; |
| 5084 | export const V2PluginShareListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 5085 | description: |
| 5086 | "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.", |
| 5087 | }); |
| 5088 | |
| 5089 | export type V2PluginShareListResponse__PluginAuthPolicy = "ON_INSTALL" | "ON_USE"; |
| 5090 | export const V2PluginShareListResponse__PluginAuthPolicy = Schema.Literals([ |
| 5091 | "ON_INSTALL", |
| 5092 | "ON_USE", |
| 5093 | ]); |
| 5094 | |
| 5095 | export type V2PluginShareListResponse__PluginInstallPolicy = |
| 5096 | | "NOT_AVAILABLE" |
| 5097 | | "AVAILABLE" |
| 5098 | | "INSTALLED_BY_DEFAULT"; |
| 5099 | export const V2PluginShareListResponse__PluginInstallPolicy = Schema.Literals([ |
| 5100 | "NOT_AVAILABLE", |
| 5101 | "AVAILABLE", |
| 5102 | "INSTALLED_BY_DEFAULT", |
| 5103 | ]); |
| 5104 | |
| 5105 | export type V2PluginShareListResponse__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5106 | export const V2PluginShareListResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5107 | "user", |
| 5108 | "group", |
| 5109 | "workspace", |
| 5110 | ]); |
| 5111 | |
| 5112 | export type V2PluginShareSaveParams__AbsolutePathBuf = string; |
| 5113 | export const V2PluginShareSaveParams__AbsolutePathBuf = Schema.String.annotate({ |
| 5114 | description: |
| 5115 | "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.", |
| 5116 | }); |
| 5117 | |
| 5118 | export type V2PluginShareSaveParams__PluginShareDiscoverability = "LISTED" | "UNLISTED" | "PRIVATE"; |
| 5119 | export const V2PluginShareSaveParams__PluginShareDiscoverability = Schema.Literals([ |
| 5120 | "LISTED", |
| 5121 | "UNLISTED", |
| 5122 | "PRIVATE", |
| 5123 | ]); |
| 5124 | |
| 5125 | export type V2PluginShareSaveParams__PluginSharePrincipalType = "user" | "group" | "workspace"; |
| 5126 | export const V2PluginShareSaveParams__PluginSharePrincipalType = Schema.Literals([ |
| 5127 | "user", |
| 5128 | "group", |
| 5129 | "workspace", |
| 5130 | ]); |
| 5131 | |
| 5132 | export type V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = |
| 5133 | | "user" |
| 5134 | | "group" |
| 5135 | | "workspace"; |
| 5136 | export const V2PluginShareUpdateTargetsParams__PluginSharePrincipalType = Schema.Literals([ |
| 5137 | "user", |
| 5138 | "group", |
| 5139 | "workspace", |
| 5140 | ]); |
| 5141 | |
| 5142 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = |
| 5143 | | "user" |
| 5144 | | "group" |
| 5145 | | "workspace"; |
| 5146 | export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType = Schema.Literals([ |
| 5147 | "user", |
| 5148 | "group", |
| 5149 | "workspace", |
| 5150 | ]); |
| 4622 | 5151 | |
| 4623 | 5152 | export type V2RawResponseItemCompletedNotification__ImageDetail = |
| 4624 | 5153 | | "auto" |
| ... | ... | @@ -4757,6 +5286,14 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction |
| 4757 | 5286 | { mode: "oneOf" }, |
| 4758 | 5287 | ); |
| 4759 | 5288 | |
| 5289 | export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = |
| 5290 | | "disabled" |
| 5291 | | "connecting" |
| 5292 | | "connected" |
| 5293 | | "errored"; |
| 5294 | export const V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = |
| 5295 | Schema.Literals(["disabled", "connecting", "connected", "errored"]); |
| 5296 | |
| 4760 | 5297 | export type V2ReviewStartParams__ReviewDelivery = "inline" | "detached"; |
| 4761 | 5298 | export const V2ReviewStartParams__ReviewDelivery = Schema.Literals(["inline", "detached"]); |
| 4762 | 5299 | |
| ... | ... | @@ -5126,13 +5663,20 @@ export const V2SkillsListResponse__SkillToolDependency = Schema.Struct({ |
| 5126 | 5663 | value: Schema.String, |
| 5127 | 5664 | }); |
| 5128 | 5665 | |
| 5129 | | export type V2ThreadForkParams__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 5666 | export type V2ThreadForkParams__AbsolutePathBuf = string; |
| 5667 | export const V2ThreadForkParams__AbsolutePathBuf = Schema.String.annotate({ |
| 5668 | description: |
| 5669 | "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.", |
| 5670 | }); |
| 5671 | |
| 5672 | export type V2ThreadForkParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 5130 | 5673 | export const V2ThreadForkParams__ApprovalsReviewer = Schema.Literals([ |
| 5131 | 5674 | "user", |
| 5675 | "auto_review", |
| 5132 | 5676 | "guardian_subagent", |
| 5133 | 5677 | ]).annotate({ |
| 5134 | 5678 | description: |
| 5135 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 5679 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 5136 | 5680 | }); |
| 5137 | 5681 | |
| 5138 | 5682 | export type V2ThreadForkParams__AskForApproval = |
| ... | ... | @@ -5175,8 +5719,12 @@ export const V2ThreadForkParams__SandboxMode = Schema.Literals([ |
| 5175 | 5719 | "danger-full-access", |
| 5176 | 5720 | ]); |
| 5177 | 5721 | |
| 5178 | | export type V2ThreadForkParams__ServiceTier = "fast" | "flex"; |
| 5179 | | export const V2ThreadForkParams__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 5722 | export type V2ThreadForkParams__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 5723 | export const V2ThreadForkParams__ThreadSource = Schema.Literals([ |
| 5724 | "user", |
| 5725 | "subagent", |
| 5726 | "memory_consolidation", |
| 5727 | ]); |
| 5180 | 5728 | |
| 5181 | 5729 | export type V2ThreadForkResponse__AbsolutePathBuf = string; |
| 5182 | 5730 | export const V2ThreadForkResponse__AbsolutePathBuf = Schema.String.annotate({ |
| ... | ... | @@ -5275,6 +5823,47 @@ export const V2ThreadForkResponse__DynamicToolCallStatus = Schema.Literals([ |
| 5275 | 5823 | "failed", |
| 5276 | 5824 | ]); |
| 5277 | 5825 | |
| 5826 | export type V2ThreadForkResponse__FileSystemAccessMode = "read" | "write" | "none"; |
| 5827 | export const V2ThreadForkResponse__FileSystemAccessMode = Schema.Literals([ |
| 5828 | "read", |
| 5829 | "write", |
| 5830 | "none", |
| 5831 | ]); |
| 5832 | |
| 5833 | export type V2ThreadForkResponse__FileSystemSpecialPath = |
| 5834 | | { readonly kind: "root" } |
| 5835 | | { readonly kind: "minimal" } |
| 5836 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 5837 | | { readonly kind: "tmpdir" } |
| 5838 | | { readonly kind: "slash_tmp" } |
| 5839 | | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null }; |
| 5840 | export const V2ThreadForkResponse__FileSystemSpecialPath = Schema.Union( |
| 5841 | [ |
| 5842 | Schema.Struct({ kind: Schema.Literal("root") }).annotate({ |
| 5843 | title: "RootFileSystemSpecialPath", |
| 5844 | }), |
| 5845 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 5846 | title: "MinimalFileSystemSpecialPath", |
| 5847 | }), |
| 5848 | Schema.Struct({ |
| 5849 | kind: Schema.Literal("project_roots"), |
| 5850 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5851 | }).annotate({ title: "KindFileSystemSpecialPath" }), |
| 5852 | Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({ |
| 5853 | title: "TmpdirFileSystemSpecialPath", |
| 5854 | }), |
| 5855 | Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({ |
| 5856 | title: "SlashTmpFileSystemSpecialPath", |
| 5857 | }), |
| 5858 | Schema.Struct({ |
| 5859 | kind: Schema.Literal("unknown"), |
| 5860 | path: Schema.String, |
| 5861 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 5862 | }), |
| 5863 | ], |
| 5864 | { mode: "oneOf" }, |
| 5865 | ); |
| 5866 | |
| 5278 | 5867 | export type V2ThreadForkResponse__GitInfo = { |
| 5279 | 5868 | readonly branch?: string | null; |
| 5280 | 5869 | readonly originUrl?: string | null; |
| ... | ... | @@ -5377,6 +5966,13 @@ export const V2ThreadForkResponse__PatchChangeKind = Schema.Union( |
| 5377 | 5966 | { mode: "oneOf" }, |
| 5378 | 5967 | ); |
| 5379 | 5968 | |
| 5969 | export type V2ThreadForkResponse__PermissionProfileNetworkPermissions = { |
| 5970 | readonly enabled: boolean; |
| 5971 | }; |
| 5972 | export const V2ThreadForkResponse__PermissionProfileNetworkPermissions = Schema.Struct({ |
| 5973 | enabled: Schema.Boolean, |
| 5974 | }); |
| 5975 | |
| 5380 | 5976 | export type V2ThreadForkResponse__ReasoningEffort = |
| 5381 | 5977 | | "none" |
| 5382 | 5978 | | "minimal" |
| ... | ... | @@ -5396,9 +5992,6 @@ export const V2ThreadForkResponse__ReasoningEffort = Schema.Literals([ |
| 5396 | 5992 | "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning", |
| 5397 | 5993 | }); |
| 5398 | 5994 | |
| 5399 | | export type V2ThreadForkResponse__ServiceTier = "fast" | "flex"; |
| 5400 | | export const V2ThreadForkResponse__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 5401 | | |
| 5402 | 5995 | export type V2ThreadForkResponse__TextElement = { |
| 5403 | 5996 | readonly byteRange: { readonly end: number; readonly start: number }; |
| 5404 | 5997 | readonly placeholder?: string | null; |
| ... | ... | @@ -5433,6 +6026,13 @@ export const V2ThreadForkResponse__ThreadActiveFlag = Schema.Literals([ |
| 5433 | 6026 | export type V2ThreadForkResponse__ThreadId = string; |
| 5434 | 6027 | export const V2ThreadForkResponse__ThreadId = Schema.String; |
| 5435 | 6028 | |
| 6029 | export type V2ThreadForkResponse__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 6030 | export const V2ThreadForkResponse__ThreadSource = Schema.Literals([ |
| 6031 | "user", |
| 6032 | "subagent", |
| 6033 | "memory_consolidation", |
| 6034 | ]); |
| 6035 | |
| 5436 | 6036 | export type V2ThreadForkResponse__TurnStatus = |
| 5437 | 6037 | | "completed" |
| 5438 | 6038 | | "interrupted" |
| ... | ... | @@ -5477,9 +6077,27 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( |
| 5477 | 6077 | { mode: "oneOf" }, |
| 5478 | 6078 | ); |
| 5479 | 6079 | |
| 6080 | export type V2ThreadGoalUpdatedNotification__ThreadGoalStatus = |
| 6081 | | "active" |
| 6082 | | "paused" |
| 6083 | | "budgetLimited" |
| 6084 | | "complete"; |
| 6085 | export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals([ |
| 6086 | "active", |
| 6087 | "paused", |
| 6088 | "budgetLimited", |
| 6089 | "complete", |
| 6090 | ]); |
| 6091 | |
| 5480 | 6092 | export type V2ThreadListParams__SortDirection = "asc" | "desc"; |
| 5481 | 6093 | export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"]); |
| 5482 | 6094 | |
| 6095 | export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>; |
| 6096 | export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([ |
| 6097 | Schema.String, |
| 6098 | Schema.Array(Schema.String), |
| 6099 | ]); |
| 6100 | |
| 5483 | 6101 | export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at"; |
| 5484 | 6102 | export const V2ThreadListParams__ThreadSortKey = Schema.Literals(["created_at", "updated_at"]); |
| 5485 | 6103 | |
| ... | ... | @@ -5729,6 +6347,13 @@ export const V2ThreadListResponse__ThreadActiveFlag = Schema.Literals([ |
| 5729 | 6347 | export type V2ThreadListResponse__ThreadId = string; |
| 5730 | 6348 | export const V2ThreadListResponse__ThreadId = Schema.String; |
| 5731 | 6349 | |
| 6350 | export type V2ThreadListResponse__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 6351 | export const V2ThreadListResponse__ThreadSource = Schema.Literals([ |
| 6352 | "user", |
| 6353 | "subagent", |
| 6354 | "memory_consolidation", |
| 6355 | ]); |
| 6356 | |
| 5732 | 6357 | export type V2ThreadListResponse__TurnStatus = |
| 5733 | 6358 | | "completed" |
| 5734 | 6359 | | "interrupted" |
| ... | ... | @@ -6043,6 +6668,16 @@ export const V2ThreadMetadataUpdateResponse__ThreadActiveFlag = Schema.Literals( |
| 6043 | 6668 | export type V2ThreadMetadataUpdateResponse__ThreadId = string; |
| 6044 | 6669 | export const V2ThreadMetadataUpdateResponse__ThreadId = Schema.String; |
| 6045 | 6670 | |
| 6671 | export type V2ThreadMetadataUpdateResponse__ThreadSource = |
| 6672 | | "user" |
| 6673 | | "subagent" |
| 6674 | | "memory_consolidation"; |
| 6675 | export const V2ThreadMetadataUpdateResponse__ThreadSource = Schema.Literals([ |
| 6676 | "user", |
| 6677 | "subagent", |
| 6678 | "memory_consolidation", |
| 6679 | ]); |
| 6680 | |
| 6046 | 6681 | export type V2ThreadMetadataUpdateResponse__TurnStatus = |
| 6047 | 6682 | | "completed" |
| 6048 | 6683 | | "interrupted" |
| ... | ... | @@ -6309,6 +6944,13 @@ export const V2ThreadReadResponse__ThreadActiveFlag = Schema.Literals([ |
| 6309 | 6944 | export type V2ThreadReadResponse__ThreadId = string; |
| 6310 | 6945 | export const V2ThreadReadResponse__ThreadId = Schema.String; |
| 6311 | 6946 | |
| 6947 | export type V2ThreadReadResponse__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 6948 | export const V2ThreadReadResponse__ThreadSource = Schema.Literals([ |
| 6949 | "user", |
| 6950 | "subagent", |
| 6951 | "memory_consolidation", |
| 6952 | ]); |
| 6953 | |
| 6312 | 6954 | export type V2ThreadReadResponse__TurnStatus = |
| 6313 | 6955 | | "completed" |
| 6314 | 6956 | | "interrupted" |
| ... | ... | @@ -6387,13 +7029,20 @@ export const V2ThreadRealtimeStartedNotification__RealtimeConversationVersion = |
| 6387 | 7029 | "v2", |
| 6388 | 7030 | ]); |
| 6389 | 7031 | |
| 6390 | | export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 7032 | export type V2ThreadResumeParams__AbsolutePathBuf = string; |
| 7033 | export const V2ThreadResumeParams__AbsolutePathBuf = Schema.String.annotate({ |
| 7034 | description: |
| 7035 | "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.", |
| 7036 | }); |
| 7037 | |
| 7038 | export type V2ThreadResumeParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 6391 | 7039 | export const V2ThreadResumeParams__ApprovalsReviewer = Schema.Literals([ |
| 6392 | 7040 | "user", |
| 7041 | "auto_review", |
| 6393 | 7042 | "guardian_subagent", |
| 6394 | 7043 | ]).annotate({ |
| 6395 | 7044 | description: |
| 6396 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 7045 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 6397 | 7046 | }); |
| 6398 | 7047 | |
| 6399 | 7048 | export type V2ThreadResumeParams__AskForApproval = |
| ... | ... | @@ -6426,19 +7075,6 @@ export const V2ThreadResumeParams__AskForApproval = Schema.Union( |
| 6426 | 7075 | { mode: "oneOf" }, |
| 6427 | 7076 | ); |
| 6428 | 7077 | |
| 6429 | | export type V2ThreadResumeParams__GhostCommit = { |
| 6430 | | readonly id: string; |
| 6431 | | readonly parent?: string | null; |
| 6432 | | readonly preexisting_untracked_dirs: ReadonlyArray<string>; |
| 6433 | | readonly preexisting_untracked_files: ReadonlyArray<string>; |
| 6434 | | }; |
| 6435 | | export const V2ThreadResumeParams__GhostCommit = Schema.Struct({ |
| 6436 | | id: Schema.String, |
| 6437 | | parent: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6438 | | preexisting_untracked_dirs: Schema.Array(Schema.String), |
| 6439 | | preexisting_untracked_files: Schema.Array(Schema.String), |
| 6440 | | }).annotate({ description: "Details of a ghost commit created from a repository state." }); |
| 6441 | | |
| 6442 | 7078 | export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original"; |
| 6443 | 7079 | export const V2ThreadResumeParams__ImageDetail = Schema.Literals([ |
| 6444 | 7080 | "auto", |
| ... | ... | @@ -6582,9 +7218,6 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([ |
| 6582 | 7218 | "danger-full-access", |
| 6583 | 7219 | ]); |
| 6584 | 7220 | |
| 6585 | | export type V2ThreadResumeParams__ServiceTier = "fast" | "flex"; |
| 6586 | | export const V2ThreadResumeParams__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 6587 | | |
| 6588 | 7221 | export type V2ThreadResumeResponse__AbsolutePathBuf = string; |
| 6589 | 7222 | export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 6590 | 7223 | description: |
| ... | ... | @@ -6682,6 +7315,47 @@ export const V2ThreadResumeResponse__DynamicToolCallStatus = Schema.Literals([ |
| 6682 | 7315 | "failed", |
| 6683 | 7316 | ]); |
| 6684 | 7317 | |
| 7318 | export type V2ThreadResumeResponse__FileSystemAccessMode = "read" | "write" | "none"; |
| 7319 | export const V2ThreadResumeResponse__FileSystemAccessMode = Schema.Literals([ |
| 7320 | "read", |
| 7321 | "write", |
| 7322 | "none", |
| 7323 | ]); |
| 7324 | |
| 7325 | export type V2ThreadResumeResponse__FileSystemSpecialPath = |
| 7326 | | { readonly kind: "root" } |
| 7327 | | { readonly kind: "minimal" } |
| 7328 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 7329 | | { readonly kind: "tmpdir" } |
| 7330 | | { readonly kind: "slash_tmp" } |
| 7331 | | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null }; |
| 7332 | export const V2ThreadResumeResponse__FileSystemSpecialPath = Schema.Union( |
| 7333 | [ |
| 7334 | Schema.Struct({ kind: Schema.Literal("root") }).annotate({ |
| 7335 | title: "RootFileSystemSpecialPath", |
| 7336 | }), |
| 7337 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 7338 | title: "MinimalFileSystemSpecialPath", |
| 7339 | }), |
| 7340 | Schema.Struct({ |
| 7341 | kind: Schema.Literal("project_roots"), |
| 7342 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7343 | }).annotate({ title: "KindFileSystemSpecialPath" }), |
| 7344 | Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({ |
| 7345 | title: "TmpdirFileSystemSpecialPath", |
| 7346 | }), |
| 7347 | Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({ |
| 7348 | title: "SlashTmpFileSystemSpecialPath", |
| 7349 | }), |
| 7350 | Schema.Struct({ |
| 7351 | kind: Schema.Literal("unknown"), |
| 7352 | path: Schema.String, |
| 7353 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7354 | }), |
| 7355 | ], |
| 7356 | { mode: "oneOf" }, |
| 7357 | ); |
| 7358 | |
| 6685 | 7359 | export type V2ThreadResumeResponse__GitInfo = { |
| 6686 | 7360 | readonly branch?: string | null; |
| 6687 | 7361 | readonly originUrl?: string | null; |
| ... | ... | @@ -6784,6 +7458,13 @@ export const V2ThreadResumeResponse__PatchChangeKind = Schema.Union( |
| 6784 | 7458 | { mode: "oneOf" }, |
| 6785 | 7459 | ); |
| 6786 | 7460 | |
| 7461 | export type V2ThreadResumeResponse__PermissionProfileNetworkPermissions = { |
| 7462 | readonly enabled: boolean; |
| 7463 | }; |
| 7464 | export const V2ThreadResumeResponse__PermissionProfileNetworkPermissions = Schema.Struct({ |
| 7465 | enabled: Schema.Boolean, |
| 7466 | }); |
| 7467 | |
| 6787 | 7468 | export type V2ThreadResumeResponse__ReasoningEffort = |
| 6788 | 7469 | | "none" |
| 6789 | 7470 | | "minimal" |
| ... | ... | @@ -6803,9 +7484,6 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.Literals([ |
| 6803 | 7484 | "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning", |
| 6804 | 7485 | }); |
| 6805 | 7486 | |
| 6806 | | export type V2ThreadResumeResponse__ServiceTier = "fast" | "flex"; |
| 6807 | | export const V2ThreadResumeResponse__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 6808 | | |
| 6809 | 7487 | export type V2ThreadResumeResponse__TextElement = { |
| 6810 | 7488 | readonly byteRange: { readonly end: number; readonly start: number }; |
| 6811 | 7489 | readonly placeholder?: string | null; |
| ... | ... | @@ -6840,6 +7518,13 @@ export const V2ThreadResumeResponse__ThreadActiveFlag = Schema.Literals([ |
| 6840 | 7518 | export type V2ThreadResumeResponse__ThreadId = string; |
| 6841 | 7519 | export const V2ThreadResumeResponse__ThreadId = Schema.String; |
| 6842 | 7520 | |
| 7521 | export type V2ThreadResumeResponse__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 7522 | export const V2ThreadResumeResponse__ThreadSource = Schema.Literals([ |
| 7523 | "user", |
| 7524 | "subagent", |
| 7525 | "memory_consolidation", |
| 7526 | ]); |
| 7527 | |
| 6843 | 7528 | export type V2ThreadResumeResponse__TurnStatus = |
| 6844 | 7529 | | "completed" |
| 6845 | 7530 | | "interrupted" |
| ... | ... | @@ -7109,6 +7794,13 @@ export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([ |
| 7109 | 7794 | export type V2ThreadRollbackResponse__ThreadId = string; |
| 7110 | 7795 | export const V2ThreadRollbackResponse__ThreadId = Schema.String; |
| 7111 | 7796 | |
| 7797 | export type V2ThreadRollbackResponse__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 7798 | export const V2ThreadRollbackResponse__ThreadSource = Schema.Literals([ |
| 7799 | "user", |
| 7800 | "subagent", |
| 7801 | "memory_consolidation", |
| 7802 | ]); |
| 7803 | |
| 7112 | 7804 | export type V2ThreadRollbackResponse__TurnStatus = |
| 7113 | 7805 | | "completed" |
| 7114 | 7806 | | "interrupted" |
| ... | ... | @@ -7385,6 +8077,16 @@ export const V2ThreadStartedNotification__ThreadActiveFlag = Schema.Literals([ |
| 7385 | 8077 | export type V2ThreadStartedNotification__ThreadId = string; |
| 7386 | 8078 | export const V2ThreadStartedNotification__ThreadId = Schema.String; |
| 7387 | 8079 | |
| 8080 | export type V2ThreadStartedNotification__ThreadSource = |
| 8081 | | "user" |
| 8082 | | "subagent" |
| 8083 | | "memory_consolidation"; |
| 8084 | export const V2ThreadStartedNotification__ThreadSource = Schema.Literals([ |
| 8085 | "user", |
| 8086 | "subagent", |
| 8087 | "memory_consolidation", |
| 8088 | ]); |
| 8089 | |
| 7388 | 8090 | export type V2ThreadStartedNotification__TurnStatus = |
| 7389 | 8091 | | "completed" |
| 7390 | 8092 | | "interrupted" |
| ... | ... | @@ -7429,13 +8131,20 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union( |
| 7429 | 8131 | { mode: "oneOf" }, |
| 7430 | 8132 | ); |
| 7431 | 8133 | |
| 7432 | | export type V2ThreadStartParams__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 8134 | export type V2ThreadStartParams__AbsolutePathBuf = string; |
| 8135 | export const V2ThreadStartParams__AbsolutePathBuf = Schema.String.annotate({ |
| 8136 | description: |
| 8137 | "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.", |
| 8138 | }); |
| 8139 | |
| 8140 | export type V2ThreadStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 7433 | 8141 | export const V2ThreadStartParams__ApprovalsReviewer = Schema.Literals([ |
| 7434 | 8142 | "user", |
| 8143 | "auto_review", |
| 7435 | 8144 | "guardian_subagent", |
| 7436 | 8145 | ]).annotate({ |
| 7437 | 8146 | description: |
| 7438 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 8147 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 7439 | 8148 | }); |
| 7440 | 8149 | |
| 7441 | 8150 | export type V2ThreadStartParams__AskForApproval = |
| ... | ... | @@ -7481,8 +8190,12 @@ export const V2ThreadStartParams__SandboxMode = Schema.Literals([ |
| 7481 | 8190 | "danger-full-access", |
| 7482 | 8191 | ]); |
| 7483 | 8192 | |
| 7484 | | export type V2ThreadStartParams__ServiceTier = "fast" | "flex"; |
| 7485 | | export const V2ThreadStartParams__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 8193 | export type V2ThreadStartParams__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 8194 | export const V2ThreadStartParams__ThreadSource = Schema.Literals([ |
| 8195 | "user", |
| 8196 | "subagent", |
| 8197 | "memory_consolidation", |
| 8198 | ]); |
| 7486 | 8199 | |
| 7487 | 8200 | export type V2ThreadStartParams__ThreadStartSource = "startup" | "clear"; |
| 7488 | 8201 | export const V2ThreadStartParams__ThreadStartSource = Schema.Literals(["startup", "clear"]); |
| ... | ... | @@ -7584,6 +8297,47 @@ export const V2ThreadStartResponse__DynamicToolCallStatus = Schema.Literals([ |
| 7584 | 8297 | "failed", |
| 7585 | 8298 | ]); |
| 7586 | 8299 | |
| 8300 | export type V2ThreadStartResponse__FileSystemAccessMode = "read" | "write" | "none"; |
| 8301 | export const V2ThreadStartResponse__FileSystemAccessMode = Schema.Literals([ |
| 8302 | "read", |
| 8303 | "write", |
| 8304 | "none", |
| 8305 | ]); |
| 8306 | |
| 8307 | export type V2ThreadStartResponse__FileSystemSpecialPath = |
| 8308 | | { readonly kind: "root" } |
| 8309 | | { readonly kind: "minimal" } |
| 8310 | | { readonly kind: "project_roots"; readonly subpath?: string | null } |
| 8311 | | { readonly kind: "tmpdir" } |
| 8312 | | { readonly kind: "slash_tmp" } |
| 8313 | | { readonly kind: "unknown"; readonly path: string; readonly subpath?: string | null }; |
| 8314 | export const V2ThreadStartResponse__FileSystemSpecialPath = Schema.Union( |
| 8315 | [ |
| 8316 | Schema.Struct({ kind: Schema.Literal("root") }).annotate({ |
| 8317 | title: "RootFileSystemSpecialPath", |
| 8318 | }), |
| 8319 | Schema.Struct({ kind: Schema.Literal("minimal") }).annotate({ |
| 8320 | title: "MinimalFileSystemSpecialPath", |
| 8321 | }), |
| 8322 | Schema.Struct({ |
| 8323 | kind: Schema.Literal("project_roots"), |
| 8324 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8325 | }).annotate({ title: "KindFileSystemSpecialPath" }), |
| 8326 | Schema.Struct({ kind: Schema.Literal("tmpdir") }).annotate({ |
| 8327 | title: "TmpdirFileSystemSpecialPath", |
| 8328 | }), |
| 8329 | Schema.Struct({ kind: Schema.Literal("slash_tmp") }).annotate({ |
| 8330 | title: "SlashTmpFileSystemSpecialPath", |
| 8331 | }), |
| 8332 | Schema.Struct({ |
| 8333 | kind: Schema.Literal("unknown"), |
| 8334 | path: Schema.String, |
| 8335 | subpath: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8336 | }), |
| 8337 | ], |
| 8338 | { mode: "oneOf" }, |
| 8339 | ); |
| 8340 | |
| 7587 | 8341 | export type V2ThreadStartResponse__GitInfo = { |
| 7588 | 8342 | readonly branch?: string | null; |
| 7589 | 8343 | readonly originUrl?: string | null; |
| ... | ... | @@ -7686,6 +8440,13 @@ export const V2ThreadStartResponse__PatchChangeKind = Schema.Union( |
| 7686 | 8440 | { mode: "oneOf" }, |
| 7687 | 8441 | ); |
| 7688 | 8442 | |
| 8443 | export type V2ThreadStartResponse__PermissionProfileNetworkPermissions = { |
| 8444 | readonly enabled: boolean; |
| 8445 | }; |
| 8446 | export const V2ThreadStartResponse__PermissionProfileNetworkPermissions = Schema.Struct({ |
| 8447 | enabled: Schema.Boolean, |
| 8448 | }); |
| 8449 | |
| 7689 | 8450 | export type V2ThreadStartResponse__ReasoningEffort = |
| 7690 | 8451 | | "none" |
| 7691 | 8452 | | "minimal" |
| ... | ... | @@ -7705,9 +8466,6 @@ export const V2ThreadStartResponse__ReasoningEffort = Schema.Literals([ |
| 7705 | 8466 | "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning", |
| 7706 | 8467 | }); |
| 7707 | 8468 | |
| 7708 | | export type V2ThreadStartResponse__ServiceTier = "fast" | "flex"; |
| 7709 | | export const V2ThreadStartResponse__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 7710 | | |
| 7711 | 8469 | export type V2ThreadStartResponse__TextElement = { |
| 7712 | 8470 | readonly byteRange: { readonly end: number; readonly start: number }; |
| 7713 | 8471 | readonly placeholder?: string | null; |
| ... | ... | @@ -7742,6 +8500,13 @@ export const V2ThreadStartResponse__ThreadActiveFlag = Schema.Literals([ |
| 7742 | 8500 | export type V2ThreadStartResponse__ThreadId = string; |
| 7743 | 8501 | export const V2ThreadStartResponse__ThreadId = Schema.String; |
| 7744 | 8502 | |
| 8503 | export type V2ThreadStartResponse__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 8504 | export const V2ThreadStartResponse__ThreadSource = Schema.Literals([ |
| 8505 | "user", |
| 8506 | "subagent", |
| 8507 | "memory_consolidation", |
| 8508 | ]); |
| 8509 | |
| 7745 | 8510 | export type V2ThreadStartResponse__TurnStatus = |
| 7746 | 8511 | | "completed" |
| 7747 | 8512 | | "interrupted" |
| ... | ... | @@ -7809,260 +8574,6 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema |
| 7809 | 8574 | totalTokens: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 7810 | 8575 | }); |
| 7811 | 8576 | |
| 7812 | | export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc"; |
| 7813 | | export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]); |
| 7814 | | |
| 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 = |
| 7822 | | | "pendingInit" |
| 7823 | | | "running" |
| 7824 | | | "interrupted" |
| 7825 | | | "completed" |
| 7826 | | | "errored" |
| 7827 | | | "shutdown" |
| 7828 | | | "notFound"; |
| 7829 | | export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([ |
| 7830 | | "pendingInit", |
| 7831 | | "running", |
| 7832 | | "interrupted", |
| 7833 | | "completed", |
| 7834 | | "errored", |
| 7835 | | "shutdown", |
| 7836 | | "notFound", |
| 7837 | | ]); |
| 7838 | | |
| 7839 | | export type V2ThreadTurnsListResponse__CommandExecutionStatus = |
| 7840 | | | "inProgress" |
| 7841 | | | "completed" |
| 7842 | | | "failed" |
| 7843 | | | "declined"; |
| 7844 | | export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([ |
| 7845 | | "inProgress", |
| 7846 | | "completed", |
| 7847 | | "failed", |
| 7848 | | "declined", |
| 7849 | | ]); |
| 7850 | | |
| 7851 | | export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = |
| 7852 | | | { readonly text: string; readonly type: "inputText" } |
| 7853 | | | { readonly imageUrl: string; readonly type: "inputImage" }; |
| 7854 | | export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| 7855 | | [ |
| 7856 | | Schema.Struct({ |
| 7857 | | text: Schema.String, |
| 7858 | | type: Schema.Literal("inputText").annotate({ |
| 7859 | | title: "InputTextDynamicToolCallOutputContentItemType", |
| 7860 | | }), |
| 7861 | | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| 7862 | | Schema.Struct({ |
| 7863 | | imageUrl: Schema.String, |
| 7864 | | type: Schema.Literal("inputImage").annotate({ |
| 7865 | | title: "InputImageDynamicToolCallOutputContentItemType", |
| 7866 | | }), |
| 7867 | | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| 7868 | | ], |
| 7869 | | { mode: "oneOf" }, |
| 7870 | | ); |
| 7871 | | |
| 7872 | | export type V2ThreadTurnsListResponse__DynamicToolCallStatus = |
| 7873 | | | "inProgress" |
| 7874 | | | "completed" |
| 7875 | | | "failed"; |
| 7876 | | export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([ |
| 7877 | | "inProgress", |
| 7878 | | "completed", |
| 7879 | | "failed", |
| 7880 | | ]); |
| 7881 | | |
| 7882 | | export type V2ThreadTurnsListResponse__HookPromptFragment = { |
| 7883 | | readonly hookRunId: string; |
| 7884 | | readonly text: string; |
| 7885 | | }; |
| 7886 | | export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({ |
| 7887 | | hookRunId: Schema.String, |
| 7888 | | text: Schema.String, |
| 7889 | | }); |
| 7890 | | |
| 7891 | | export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string }; |
| 7892 | | export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({ |
| 7893 | | message: Schema.String, |
| 7894 | | }); |
| 7895 | | |
| 7896 | | export type V2ThreadTurnsListResponse__McpToolCallResult = { |
| 7897 | | readonly _meta?: unknown; |
| 7898 | | readonly content: ReadonlyArray<unknown>; |
| 7899 | | readonly structuredContent?: unknown; |
| 7900 | | }; |
| 7901 | | export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({ |
| 7902 | | _meta: Schema.optionalKey(Schema.Unknown), |
| 7903 | | content: Schema.Array(Schema.Unknown), |
| 7904 | | structuredContent: Schema.optionalKey(Schema.Unknown), |
| 7905 | | }); |
| 7906 | | |
| 7907 | | export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 7908 | | export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([ |
| 7909 | | "inProgress", |
| 7910 | | "completed", |
| 7911 | | "failed", |
| 7912 | | ]); |
| 7913 | | |
| 7914 | | export type V2ThreadTurnsListResponse__MemoryCitationEntry = { |
| 7915 | | readonly lineEnd: number; |
| 7916 | | readonly lineStart: number; |
| 7917 | | readonly note: string; |
| 7918 | | readonly path: string; |
| 7919 | | }; |
| 7920 | | export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({ |
| 7921 | | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 7922 | | .check(Schema.isInt()) |
| 7923 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 7924 | | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| 7925 | | .check(Schema.isInt()) |
| 7926 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 7927 | | note: Schema.String, |
| 7928 | | path: Schema.String, |
| 7929 | | }); |
| 7930 | | |
| 7931 | | export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer"; |
| 7932 | | export const V2ThreadTurnsListResponse__MessagePhase = Schema.Literals([ |
| 7933 | | "commentary", |
| 7934 | | "final_answer", |
| 7935 | | ]).annotate({ |
| 7936 | | description: |
| 7937 | | 'Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as "phase unknown" and keep compatibility behavior for legacy models.', |
| 7938 | | }); |
| 7939 | | |
| 7940 | | export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact"; |
| 7941 | | export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([ |
| 7942 | | "review", |
| 7943 | | "compact", |
| 7944 | | ]); |
| 7945 | | |
| 7946 | | export type V2ThreadTurnsListResponse__PatchApplyStatus = |
| 7947 | | | "inProgress" |
| 7948 | | | "completed" |
| 7949 | | | "failed" |
| 7950 | | | "declined"; |
| 7951 | | export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([ |
| 7952 | | "inProgress", |
| 7953 | | "completed", |
| 7954 | | "failed", |
| 7955 | | "declined", |
| 7956 | | ]); |
| 7957 | | |
| 7958 | | export type V2ThreadTurnsListResponse__PatchChangeKind = |
| 7959 | | | { readonly type: "add" } |
| 7960 | | | { readonly type: "delete" } |
| 7961 | | | { readonly move_path?: string | null; readonly type: "update" }; |
| 7962 | | export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union( |
| 7963 | | [ |
| 7964 | | Schema.Struct({ |
| 7965 | | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| 7966 | | }).annotate({ title: "AddPatchChangeKind" }), |
| 7967 | | Schema.Struct({ |
| 7968 | | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| 7969 | | }).annotate({ title: "DeletePatchChangeKind" }), |
| 7970 | | Schema.Struct({ |
| 7971 | | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7972 | | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| 7973 | | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 7974 | | ], |
| 7975 | | { mode: "oneOf" }, |
| 7976 | | ); |
| 7977 | | |
| 7978 | | export type V2ThreadTurnsListResponse__ReasoningEffort = |
| 7979 | | | "none" |
| 7980 | | | "minimal" |
| 7981 | | | "low" |
| 7982 | | | "medium" |
| 7983 | | | "high" |
| 7984 | | | "xhigh"; |
| 7985 | | export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.Literals([ |
| 7986 | | "none", |
| 7987 | | "minimal", |
| 7988 | | "low", |
| 7989 | | "medium", |
| 7990 | | "high", |
| 7991 | | "xhigh", |
| 7992 | | ]).annotate({ |
| 7993 | | description: |
| 7994 | | "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning", |
| 7995 | | }); |
| 7996 | | |
| 7997 | | export type V2ThreadTurnsListResponse__TextElement = { |
| 7998 | | readonly byteRange: { readonly end: number; readonly start: number }; |
| 7999 | | readonly placeholder?: string | null; |
| 8000 | | }; |
| 8001 | | export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({ |
| 8002 | | byteRange: Schema.Struct({ |
| 8003 | | end: Schema.Number.annotate({ format: "uint" }) |
| 8004 | | .check(Schema.isInt()) |
| 8005 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 8006 | | start: Schema.Number.annotate({ format: "uint" }) |
| 8007 | | .check(Schema.isInt()) |
| 8008 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 8009 | | }).annotate({ |
| 8010 | | description: "Byte range in the parent `text` buffer that this element occupies.", |
| 8011 | | }), |
| 8012 | | placeholder: Schema.optionalKey( |
| 8013 | | Schema.Union([ |
| 8014 | | Schema.String.annotate({ |
| 8015 | | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| 8016 | | }), |
| 8017 | | Schema.Null, |
| 8018 | | ]), |
| 8019 | | ), |
| 8020 | | }); |
| 8021 | | |
| 8022 | | export type V2ThreadTurnsListResponse__TurnStatus = |
| 8023 | | | "completed" |
| 8024 | | | "interrupted" |
| 8025 | | | "failed" |
| 8026 | | | "inProgress"; |
| 8027 | | export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([ |
| 8028 | | "completed", |
| 8029 | | "interrupted", |
| 8030 | | "failed", |
| 8031 | | "inProgress", |
| 8032 | | ]); |
| 8033 | | |
| 8034 | | export type V2ThreadTurnsListResponse__WebSearchAction = |
| 8035 | | | { |
| 8036 | | readonly queries?: ReadonlyArray<string> | null; |
| 8037 | | readonly query?: string | null; |
| 8038 | | readonly type: "search"; |
| 8039 | | } |
| 8040 | | | { readonly type: "openPage"; readonly url?: string | null } |
| 8041 | | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } |
| 8042 | | | { readonly type: "other" }; |
| 8043 | | export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union( |
| 8044 | | [ |
| 8045 | | Schema.Struct({ |
| 8046 | | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 8047 | | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8048 | | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), |
| 8049 | | }).annotate({ title: "SearchWebSearchAction" }), |
| 8050 | | Schema.Struct({ |
| 8051 | | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), |
| 8052 | | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8053 | | }).annotate({ title: "OpenPageWebSearchAction" }), |
| 8054 | | Schema.Struct({ |
| 8055 | | pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8056 | | type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }), |
| 8057 | | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8058 | | }).annotate({ title: "FindInPageWebSearchAction" }), |
| 8059 | | Schema.Struct({ |
| 8060 | | type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }), |
| 8061 | | }).annotate({ title: "OtherWebSearchAction" }), |
| 8062 | | ], |
| 8063 | | { mode: "oneOf" }, |
| 8064 | | ); |
| 8065 | | |
| 8066 | 8577 | export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string; |
| 8067 | 8578 | export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 8068 | 8579 | description: |
| ... | ... | @@ -8295,6 +8806,13 @@ export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([ |
| 8295 | 8806 | export type V2ThreadUnarchiveResponse__ThreadId = string; |
| 8296 | 8807 | export const V2ThreadUnarchiveResponse__ThreadId = Schema.String; |
| 8297 | 8808 | |
| 8809 | export type V2ThreadUnarchiveResponse__ThreadSource = "user" | "subagent" | "memory_consolidation"; |
| 8810 | export const V2ThreadUnarchiveResponse__ThreadSource = Schema.Literals([ |
| 8811 | "user", |
| 8812 | "subagent", |
| 8813 | "memory_consolidation", |
| 8814 | ]); |
| 8815 | |
| 8298 | 8816 | export type V2ThreadUnarchiveResponse__TurnStatus = |
| 8299 | 8817 | | "completed" |
| 8300 | 8818 | | "interrupted" |
| ... | ... | @@ -8867,13 +9385,14 @@ export const V2TurnStartParams__AbsolutePathBuf = Schema.String.annotate({ |
| 8867 | 9385 | "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.", |
| 8868 | 9386 | }); |
| 8869 | 9387 | |
| 8870 | | export type V2TurnStartParams__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 9388 | export type V2TurnStartParams__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 8871 | 9389 | export const V2TurnStartParams__ApprovalsReviewer = Schema.Literals([ |
| 8872 | 9390 | "user", |
| 9391 | "auto_review", |
| 8873 | 9392 | "guardian_subagent", |
| 8874 | 9393 | ]).annotate({ |
| 8875 | 9394 | description: |
| 8876 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 9395 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 8877 | 9396 | }); |
| 8878 | 9397 | |
| 8879 | 9398 | export type V2TurnStartParams__AskForApproval = |
| ... | ... | @@ -8945,9 +9464,6 @@ export const V2TurnStartParams__ReasoningSummary = Schema.Union( |
| 8945 | 9464 | "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", |
| 8946 | 9465 | }); |
| 8947 | 9466 | |
| 8948 | | export type V2TurnStartParams__ServiceTier = "fast" | "flex"; |
| 8949 | | export const V2TurnStartParams__ServiceTier = Schema.Literals(["fast", "flex"]); |
| 8950 | | |
| 8951 | 9467 | export type V2TurnStartParams__TextElement = { |
| 8952 | 9468 | readonly byteRange: { readonly end: number; readonly start: number }; |
| 8953 | 9469 | readonly placeholder?: string | null; |
| ... | ... | @@ -9237,6 +9753,16 @@ export const V2TurnSteerParams__TextElement = Schema.Struct({ |
| 9237 | 9753 | ), |
| 9238 | 9754 | }); |
| 9239 | 9755 | |
| 9756 | export type V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = |
| 9757 | | "ready" |
| 9758 | | "notConfigured" |
| 9759 | | "updateRequired"; |
| 9760 | export const V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness = Schema.Literals([ |
| 9761 | "ready", |
| 9762 | "notConfigured", |
| 9763 | "updateRequired", |
| 9764 | ]); |
| 9765 | |
| 9240 | 9766 | export type V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode = |
| 9241 | 9767 | | "elevated" |
| 9242 | 9768 | | "unelevated"; |
| ... | ... | @@ -9266,6 +9792,25 @@ export const ApplyPatchApprovalResponse__NetworkPolicyAmendment = Schema.Struct( |
| 9266 | 9792 | host: Schema.String, |
| 9267 | 9793 | }); |
| 9268 | 9794 | |
| 9795 | export type ClientRequest__PermissionProfileModificationParams = { |
| 9796 | readonly path: ClientRequest__AbsolutePathBuf; |
| 9797 | readonly type: "additionalWritableRoot"; |
| 9798 | }; |
| 9799 | export const ClientRequest__PermissionProfileModificationParams = Schema.Union( |
| 9800 | [ |
| 9801 | Schema.Struct({ |
| 9802 | path: ClientRequest__AbsolutePathBuf, |
| 9803 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 9804 | title: "AdditionalWritableRootPermissionProfileModificationParamsType", |
| 9805 | }), |
| 9806 | }).annotate({ |
| 9807 | title: "AdditionalWritableRootPermissionProfileModificationParams", |
| 9808 | description: "Additional concrete directory that should be writable.", |
| 9809 | }), |
| 9810 | ], |
| 9811 | { mode: "oneOf" }, |
| 9812 | ); |
| 9813 | |
| 9269 | 9814 | export type ClientRequest__PluginInstallParams = { |
| 9270 | 9815 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; |
| 9271 | 9816 | readonly pluginName: string; |
| ... | ... | @@ -9277,21 +9822,6 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({ |
| 9277 | 9822 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9278 | 9823 | }); |
| 9279 | 9824 | |
| 9280 | | export type ClientRequest__PluginListParams = { |
| 9281 | | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; |
| 9282 | | }; |
| 9283 | | export const ClientRequest__PluginListParams = Schema.Struct({ |
| 9284 | | cwds: Schema.optionalKey( |
| 9285 | | Schema.Union([ |
| 9286 | | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ |
| 9287 | | description: |
| 9288 | | "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.", |
| 9289 | | }), |
| 9290 | | Schema.Null, |
| 9291 | | ]), |
| 9292 | | ), |
| 9293 | | }); |
| 9294 | | |
| 9295 | 9825 | export type ClientRequest__PluginReadParams = { |
| 9296 | 9826 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; |
| 9297 | 9827 | readonly pluginName: string; |
| ... | ... | @@ -9305,29 +9835,12 @@ export const ClientRequest__PluginReadParams = Schema.Struct({ |
| 9305 | 9835 | |
| 9306 | 9836 | export type ClientRequest__SandboxPolicy = |
| 9307 | 9837 | | { readonly type: "dangerFullAccess" } |
| 9308 | | | { |
| 9309 | | readonly access?: |
| 9310 | | | { |
| 9311 | | readonly includePlatformDefaults?: boolean; |
| 9312 | | readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>; |
| 9313 | | readonly type: "restricted"; |
| 9314 | | } |
| 9315 | | | { readonly type: "fullAccess" }; |
| 9316 | | readonly networkAccess?: boolean; |
| 9317 | | readonly type: "readOnly"; |
| 9318 | | } |
| 9838 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 9319 | 9839 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 9320 | 9840 | | { |
| 9321 | 9841 | readonly excludeSlashTmp?: boolean; |
| 9322 | 9842 | readonly excludeTmpdirEnvVar?: boolean; |
| 9323 | 9843 | readonly networkAccess?: boolean; |
| 9324 | | readonly readOnlyAccess?: |
| 9325 | | | { |
| 9326 | | readonly includePlatformDefaults?: boolean; |
| 9327 | | readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>; |
| 9328 | | readonly type: "restricted"; |
| 9329 | | } |
| 9330 | | | { readonly type: "fullAccess" }; |
| 9331 | 9844 | readonly type: "workspaceWrite"; |
| 9332 | 9845 | readonly writableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>; |
| 9333 | 9846 | }; |
| ... | ... | @@ -9339,29 +9852,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union( |
| 9339 | 9852 | }), |
| 9340 | 9853 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 9341 | 9854 | Schema.Struct({ |
| 9342 | | access: Schema.optionalKey( |
| 9343 | | Schema.Union( |
| 9344 | | [ |
| 9345 | | Schema.Struct({ |
| 9346 | | includePlatformDefaults: Schema.optionalKey( |
| 9347 | | Schema.Boolean.annotate({ default: true }), |
| 9348 | | ), |
| 9349 | | readableRoots: Schema.optionalKey( |
| 9350 | | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }), |
| 9351 | | ), |
| 9352 | | type: Schema.Literal("restricted").annotate({ |
| 9353 | | title: "RestrictedReadOnlyAccessType", |
| 9354 | | }), |
| 9355 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 9356 | | Schema.Struct({ |
| 9357 | | type: Schema.Literal("fullAccess").annotate({ |
| 9358 | | title: "FullAccessReadOnlyAccessType", |
| 9359 | | }), |
| 9360 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 9361 | | ], |
| 9362 | | { mode: "oneOf" }, |
| 9363 | | ).annotate({ default: { type: "fullAccess" } }), |
| 9364 | | ), |
| 9365 | 9855 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 9366 | 9856 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 9367 | 9857 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| ... | ... | @@ -9377,29 +9867,6 @@ export const ClientRequest__SandboxPolicy = Schema.Union( |
| 9377 | 9867 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 9378 | 9868 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 9379 | 9869 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 9380 | | readOnlyAccess: Schema.optionalKey( |
| 9381 | | Schema.Union( |
| 9382 | | [ |
| 9383 | | Schema.Struct({ |
| 9384 | | includePlatformDefaults: Schema.optionalKey( |
| 9385 | | Schema.Boolean.annotate({ default: true }), |
| 9386 | | ), |
| 9387 | | readableRoots: Schema.optionalKey( |
| 9388 | | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }), |
| 9389 | | ), |
| 9390 | | type: Schema.Literal("restricted").annotate({ |
| 9391 | | title: "RestrictedReadOnlyAccessType", |
| 9392 | | }), |
| 9393 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 9394 | | Schema.Struct({ |
| 9395 | | type: Schema.Literal("fullAccess").annotate({ |
| 9396 | | title: "FullAccessReadOnlyAccessType", |
| 9397 | | }), |
| 9398 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 9399 | | ], |
| 9400 | | { mode: "oneOf" }, |
| 9401 | | ).annotate({ default: { type: "fullAccess" } }), |
| 9402 | | ), |
| 9403 | 9870 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 9404 | 9871 | writableRoots: Schema.optionalKey( |
| 9405 | 9872 | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }), |
| ... | ... | @@ -9433,20 +9900,27 @@ export const ClientRequest__SendAddCreditsNudgeEmailParams = Schema.Struct({ |
| 9433 | 9900 | creditType: ClientRequest__AddCreditsNudgeCreditType, |
| 9434 | 9901 | }); |
| 9435 | 9902 | |
| 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." }); |
| 9903 | export type ClientRequest__FileSystemPath = |
| 9904 | | { readonly path: ClientRequest__AbsolutePathBuf; readonly type: "path" } |
| 9905 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 9906 | | { readonly type: "special"; readonly value: ClientRequest__FileSystemSpecialPath }; |
| 9907 | export const ClientRequest__FileSystemPath = Schema.Union( |
| 9908 | [ |
| 9909 | Schema.Struct({ |
| 9910 | path: ClientRequest__AbsolutePathBuf, |
| 9911 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 9912 | }).annotate({ title: "PathFileSystemPath" }), |
| 9913 | Schema.Struct({ |
| 9914 | pattern: Schema.String, |
| 9915 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| 9916 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| 9917 | Schema.Struct({ |
| 9918 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| 9919 | value: ClientRequest__FileSystemSpecialPath, |
| 9920 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 9921 | ], |
| 9922 | { mode: "oneOf" }, |
| 9923 | ); |
| 9450 | 9924 | |
| 9451 | 9925 | export type ClientRequest__ContentItem = |
| 9452 | 9926 | | { readonly text: string; readonly type: "input_text" } |
| ... | ... | @@ -9582,11 +10056,38 @@ export const ClientRequest__ConfigValueWriteParams = Schema.Struct({ |
| 9582 | 10056 | value: Schema.Unknown, |
| 9583 | 10057 | }); |
| 9584 | 10058 | |
| 9585 | | export type ClientRequest__MigrationDetails = { |
| 9586 | | readonly plugins: ReadonlyArray<ClientRequest__PluginsMigration>; |
| 10059 | export type ClientRequest__PluginListParams = { |
| 10060 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; |
| 10061 | readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null; |
| 9587 | 10062 | }; |
| 9588 | | export const ClientRequest__MigrationDetails = Schema.Struct({ |
| 9589 | | plugins: Schema.Array(ClientRequest__PluginsMigration), |
| 10063 | export const ClientRequest__PluginListParams = Schema.Struct({ |
| 10064 | cwds: Schema.optionalKey( |
| 10065 | Schema.Union([ |
| 10066 | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ |
| 10067 | description: |
| 10068 | "Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.", |
| 10069 | }), |
| 10070 | Schema.Null, |
| 10071 | ]), |
| 10072 | ), |
| 10073 | marketplaceKinds: Schema.optionalKey( |
| 10074 | Schema.Union([ |
| 10075 | Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({ |
| 10076 | description: |
| 10077 | "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.", |
| 10078 | }), |
| 10079 | Schema.Null, |
| 10080 | ]), |
| 10081 | ), |
| 10082 | }); |
| 10083 | |
| 10084 | export type ClientRequest__PluginShareTarget = { |
| 10085 | readonly principalId: string; |
| 10086 | readonly principalType: ClientRequest__PluginSharePrincipalType; |
| 10087 | }; |
| 10088 | export const ClientRequest__PluginShareTarget = Schema.Struct({ |
| 10089 | principalId: Schema.String, |
| 10090 | principalType: ClientRequest__PluginSharePrincipalType, |
| 9590 | 10091 | }); |
| 9591 | 10092 | |
| 9592 | 10093 | export type ClientRequest__Settings = { |
| ... | ... | @@ -9600,102 +10101,6 @@ export const ClientRequest__Settings = Schema.Struct({ |
| 9600 | 10101 | reasoning_effort: Schema.optionalKey(Schema.Union([ClientRequest__ReasoningEffort, Schema.Null])), |
| 9601 | 10102 | }).annotate({ description: "Settings for a collaboration mode." }); |
| 9602 | 10103 | |
| 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 | | |
| 9699 | 10104 | export type ClientRequest__ReviewStartParams = { |
| 9700 | 10105 | readonly delivery?: ClientRequest__ReviewDelivery | null; |
| 9701 | 10106 | readonly target: ClientRequest__ReviewTarget; |
| ... | ... | @@ -9712,54 +10117,6 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({ |
| 9712 | 10117 | threadId: Schema.String, |
| 9713 | 10118 | }); |
| 9714 | 10119 | |
| 9715 | | export type ClientRequest__ThreadForkParams = { |
| 9716 | | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| 9717 | | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| 9718 | | readonly baseInstructions?: string | null; |
| 9719 | | readonly config?: { readonly [x: string]: unknown } | null; |
| 9720 | | readonly cwd?: string | null; |
| 9721 | | readonly developerInstructions?: string | null; |
| 9722 | | readonly ephemeral?: boolean; |
| 9723 | | readonly model?: string | null; |
| 9724 | | readonly modelProvider?: string | null; |
| 9725 | | readonly sandbox?: ClientRequest__SandboxMode | null; |
| 9726 | | readonly serviceTier?: ClientRequest__ServiceTier | null | null; |
| 9727 | | readonly threadId: string; |
| 9728 | | }; |
| 9729 | | export const ClientRequest__ThreadForkParams = Schema.Struct({ |
| 9730 | | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), |
| 9731 | | approvalsReviewer: Schema.optionalKey( |
| 9732 | | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ |
| 9733 | | description: |
| 9734 | | "Override where approval requests are routed for review on this thread and subsequent turns.", |
| 9735 | | }), |
| 9736 | | ), |
| 9737 | | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9738 | | config: Schema.optionalKey( |
| 9739 | | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), |
| 9740 | | ), |
| 9741 | | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9742 | | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9743 | | ephemeral: Schema.optionalKey(Schema.Boolean), |
| 9744 | | model: Schema.optionalKey( |
| 9745 | | Schema.Union([ |
| 9746 | | Schema.String.annotate({ |
| 9747 | | description: "Configuration overrides for the forked thread, if any.", |
| 9748 | | }), |
| 9749 | | Schema.Null, |
| 9750 | | ]), |
| 9751 | | ), |
| 9752 | | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9753 | | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| 9754 | | serviceTier: Schema.optionalKey( |
| 9755 | | Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]), |
| 9756 | | ), |
| 9757 | | threadId: Schema.String, |
| 9758 | | }).annotate({ |
| 9759 | | description: |
| 9760 | | "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.", |
| 9761 | | }); |
| 9762 | | |
| 9763 | 10120 | export type ClientRequest__ThreadResumeParams = { |
| 9764 | 10121 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| 9765 | 10122 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| ... | ... | @@ -9771,7 +10128,7 @@ export type ClientRequest__ThreadResumeParams = { |
| 9771 | 10128 | readonly modelProvider?: string | null; |
| 9772 | 10129 | readonly personality?: ClientRequest__Personality | null; |
| 9773 | 10130 | readonly sandbox?: ClientRequest__SandboxMode | null; |
| 9774 | | readonly serviceTier?: ClientRequest__ServiceTier | null | null; |
| 10131 | readonly serviceTier?: string | null; |
| 9775 | 10132 | readonly threadId: string; |
| 9776 | 10133 | }; |
| 9777 | 10134 | export const ClientRequest__ThreadResumeParams = Schema.Struct({ |
| ... | ... | @@ -9799,9 +10156,7 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({ |
| 9799 | 10156 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9800 | 10157 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), |
| 9801 | 10158 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| 9802 | | serviceTier: Schema.optionalKey( |
| 9803 | | Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]), |
| 9804 | | ), |
| 10159 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9805 | 10160 | threadId: Schema.String, |
| 9806 | 10161 | }).annotate({ |
| 9807 | 10162 | description: |
| ... | ... | @@ -9834,35 +10189,31 @@ export const ClientRequest__SkillsListParams = Schema.Struct({ |
| 9834 | 10189 | ), |
| 9835 | 10190 | }); |
| 9836 | 10191 | |
| 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; |
| 10192 | export type ClientRequest__MigrationDetails = { |
| 10193 | readonly commands?: ReadonlyArray<ClientRequest__CommandMigration>; |
| 10194 | readonly hooks?: ReadonlyArray<ClientRequest__HookMigration>; |
| 10195 | readonly mcpServers?: ReadonlyArray<ClientRequest__McpServerMigration>; |
| 10196 | readonly plugins?: ReadonlyArray<ClientRequest__PluginsMigration>; |
| 10197 | readonly sessions?: ReadonlyArray<ClientRequest__SessionMigration>; |
| 10198 | readonly subagents?: ReadonlyArray<ClientRequest__SubagentMigration>; |
| 9842 | 10199 | }; |
| 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 | | ]), |
| 10200 | export const ClientRequest__MigrationDetails = Schema.Struct({ |
| 10201 | commands: Schema.optionalKey( |
| 10202 | Schema.Array(ClientRequest__CommandMigration).annotate({ default: [] }), |
| 9851 | 10203 | ), |
| 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 | | ]), |
| 10204 | hooks: Schema.optionalKey(Schema.Array(ClientRequest__HookMigration).annotate({ default: [] })), |
| 10205 | mcpServers: Schema.optionalKey( |
| 10206 | Schema.Array(ClientRequest__McpServerMigration).annotate({ default: [] }), |
| 9859 | 10207 | ), |
| 9860 | | sortDirection: Schema.optionalKey( |
| 9861 | | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ |
| 9862 | | description: "Optional turn pagination direction; defaults to descending.", |
| 9863 | | }), |
| 10208 | plugins: Schema.optionalKey( |
| 10209 | Schema.Array(ClientRequest__PluginsMigration).annotate({ default: [] }), |
| 10210 | ), |
| 10211 | sessions: Schema.optionalKey( |
| 10212 | Schema.Array(ClientRequest__SessionMigration).annotate({ default: [] }), |
| 10213 | ), |
| 10214 | subagents: Schema.optionalKey( |
| 10215 | Schema.Array(ClientRequest__SubagentMigration).annotate({ default: [] }), |
| 9864 | 10216 | ), |
| 9865 | | threadId: Schema.String, |
| 9866 | 10217 | }); |
| 9867 | 10218 | |
| 9868 | 10219 | export type ClientRequest__UserInput = |
| ... | ... | @@ -9923,16 +10274,70 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({ |
| 9923 | 10274 | threadId: Schema.String, |
| 9924 | 10275 | }); |
| 9925 | 10276 | |
| 10277 | export type ClientRequest__ThreadForkParams = { |
| 10278 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| 10279 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| 10280 | readonly baseInstructions?: string | null; |
| 10281 | readonly config?: { readonly [x: string]: unknown } | null; |
| 10282 | readonly cwd?: string | null; |
| 10283 | readonly developerInstructions?: string | null; |
| 10284 | readonly ephemeral?: boolean; |
| 10285 | readonly model?: string | null; |
| 10286 | readonly modelProvider?: string | null; |
| 10287 | readonly sandbox?: ClientRequest__SandboxMode | null; |
| 10288 | readonly serviceTier?: string | null; |
| 10289 | readonly threadId: string; |
| 10290 | readonly threadSource?: ClientRequest__ThreadSource | null; |
| 10291 | }; |
| 10292 | export const ClientRequest__ThreadForkParams = Schema.Struct({ |
| 10293 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), |
| 10294 | approvalsReviewer: Schema.optionalKey( |
| 10295 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ |
| 10296 | description: |
| 10297 | "Override where approval requests are routed for review on this thread and subsequent turns.", |
| 10298 | }), |
| 10299 | ), |
| 10300 | baseInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10301 | config: Schema.optionalKey( |
| 10302 | Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]), |
| 10303 | ), |
| 10304 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10305 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10306 | ephemeral: Schema.optionalKey(Schema.Boolean), |
| 10307 | model: Schema.optionalKey( |
| 10308 | Schema.Union([ |
| 10309 | Schema.String.annotate({ |
| 10310 | description: "Configuration overrides for the forked thread, if any.", |
| 10311 | }), |
| 10312 | Schema.Null, |
| 10313 | ]), |
| 10314 | ), |
| 10315 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10316 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| 10317 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10318 | threadId: Schema.String, |
| 10319 | threadSource: Schema.optionalKey( |
| 10320 | Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({ |
| 10321 | description: |
| 10322 | "Optional client-supplied analytics source classification for this forked thread.", |
| 10323 | }), |
| 10324 | ), |
| 10325 | }).annotate({ |
| 10326 | description: |
| 10327 | "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.", |
| 10328 | }); |
| 10329 | |
| 9926 | 10330 | export type ClientRequest__ThreadListParams = { |
| 9927 | 10331 | readonly archived?: boolean | null; |
| 9928 | 10332 | readonly cursor?: string | null; |
| 9929 | | readonly cwd?: string | null; |
| 10333 | readonly cwd?: ClientRequest__ThreadListCwdFilter | null; |
| 9930 | 10334 | readonly limit?: number | null; |
| 9931 | 10335 | readonly modelProviders?: ReadonlyArray<string> | null; |
| 9932 | 10336 | readonly searchTerm?: string | null; |
| 9933 | 10337 | readonly sortDirection?: ClientRequest__SortDirection | null; |
| 9934 | 10338 | readonly sortKey?: ClientRequest__ThreadSortKey | null; |
| 9935 | 10339 | readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null; |
| 10340 | readonly useStateDbOnly?: boolean; |
| 9936 | 10341 | }; |
| 9937 | 10342 | export const ClientRequest__ThreadListParams = Schema.Struct({ |
| 9938 | 10343 | archived: Schema.optionalKey( |
| ... | ... | @@ -9953,13 +10358,10 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ |
| 9953 | 10358 | ]), |
| 9954 | 10359 | ), |
| 9955 | 10360 | cwd: Schema.optionalKey( |
| 9956 | | Schema.Union([ |
| 9957 | | Schema.String.annotate({ |
| 9958 | | description: |
| 9959 | | "Optional cwd filter; when set, only threads whose session cwd exactly matches this path are returned.", |
| 9960 | | }), |
| 9961 | | Schema.Null, |
| 9962 | | ]), |
| 10361 | Schema.Union([ClientRequest__ThreadListCwdFilter, Schema.Null]).annotate({ |
| 10362 | description: |
| 10363 | "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.", |
| 10364 | }), |
| 9963 | 10365 | ), |
| 9964 | 10366 | limit: Schema.optionalKey( |
| 9965 | 10367 | Schema.Union([ |
| ... | ... | @@ -10008,6 +10410,12 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ |
| 10008 | 10410 | Schema.Null, |
| 10009 | 10411 | ]), |
| 10010 | 10412 | ), |
| 10413 | useStateDbOnly: Schema.optionalKey( |
| 10414 | Schema.Boolean.annotate({ |
| 10415 | description: |
| 10416 | "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.", |
| 10417 | }), |
| 10418 | ), |
| 10011 | 10419 | }); |
| 10012 | 10420 | |
| 10013 | 10421 | export type ClientRequest__ThreadStartParams = { |
| ... | ... | @@ -10023,8 +10431,9 @@ export type ClientRequest__ThreadStartParams = { |
| 10023 | 10431 | readonly personality?: ClientRequest__Personality | null; |
| 10024 | 10432 | readonly sandbox?: ClientRequest__SandboxMode | null; |
| 10025 | 10433 | readonly serviceName?: string | null; |
| 10026 | | readonly serviceTier?: ClientRequest__ServiceTier | null | null; |
| 10434 | readonly serviceTier?: string | null; |
| 10027 | 10435 | readonly sessionStartSource?: ClientRequest__ThreadStartSource | null; |
| 10436 | readonly threadSource?: ClientRequest__ThreadSource | null; |
| 10028 | 10437 | }; |
| 10029 | 10438 | export const ClientRequest__ThreadStartParams = Schema.Struct({ |
| 10030 | 10439 | approvalPolicy: Schema.optionalKey(Schema.Union([ClientRequest__AskForApproval, Schema.Null])), |
| ... | ... | @@ -10046,12 +10455,15 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({ |
| 10046 | 10455 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), |
| 10047 | 10456 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| 10048 | 10457 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10049 | | serviceTier: Schema.optionalKey( |
| 10050 | | Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]), |
| 10051 | | ), |
| 10458 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10052 | 10459 | sessionStartSource: Schema.optionalKey( |
| 10053 | 10460 | Schema.Union([ClientRequest__ThreadStartSource, Schema.Null]), |
| 10054 | 10461 | ), |
| 10462 | threadSource: Schema.optionalKey( |
| 10463 | Schema.Union([ClientRequest__ThreadSource, Schema.Null]).annotate({ |
| 10464 | description: "Optional client-supplied analytics source classification for this thread.", |
| 10465 | }), |
| 10466 | ), |
| 10055 | 10467 | }); |
| 10056 | 10468 | |
| 10057 | 10469 | export type ClientRequest__WindowsSandboxSetupStartParams = { |
| ... | ... | @@ -10660,10 +11072,22 @@ export const ServerNotification__ModelReroutedNotification = Schema.Struct({ |
| 10660 | 11072 | turnId: Schema.String, |
| 10661 | 11073 | }); |
| 10662 | 11074 | |
| 11075 | export type ServerNotification__ModelVerificationNotification = { |
| 11076 | readonly threadId: string; |
| 11077 | readonly turnId: string; |
| 11078 | readonly verifications: ReadonlyArray<ServerNotification__ModelVerification>; |
| 11079 | }; |
| 11080 | export const ServerNotification__ModelVerificationNotification = Schema.Struct({ |
| 11081 | threadId: Schema.String, |
| 11082 | turnId: Schema.String, |
| 11083 | verifications: Schema.Array(ServerNotification__ModelVerification), |
| 11084 | }); |
| 11085 | |
| 10663 | 11086 | export type ServerNotification__CodexErrorInfo = |
| 10664 | 11087 | | "contextWindowExceeded" |
| 10665 | 11088 | | "usageLimitExceeded" |
| 10666 | 11089 | | "serverOverloaded" |
| 11090 | | "cyberPolicy" |
| 10667 | 11091 | | "internalServerError" |
| 10668 | 11092 | | "unauthorized" |
| 10669 | 11093 | | "badRequest" |
| ... | ... | @@ -10685,6 +11109,7 @@ export const ServerNotification__CodexErrorInfo = Schema.Union( |
| 10685 | 11109 | "contextWindowExceeded", |
| 10686 | 11110 | "usageLimitExceeded", |
| 10687 | 11111 | "serverOverloaded", |
| 11112 | "cyberPolicy", |
| 10688 | 11113 | "internalServerError", |
| 10689 | 11114 | "unauthorized", |
| 10690 | 11115 | "badRequest", |
| ... | ... | @@ -10806,16 +11231,27 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ |
| 10806 | 11231 | }); |
| 10807 | 11232 | |
| 10808 | 11233 | export type ServerNotification__ThreadRealtimeStartedNotification = { |
| 10809 | | readonly sessionId?: string | null; |
| 11234 | readonly realtimeSessionId?: string | null; |
| 10810 | 11235 | readonly threadId: string; |
| 10811 | 11236 | readonly version: ServerNotification__RealtimeConversationVersion; |
| 10812 | 11237 | }; |
| 10813 | 11238 | export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Struct({ |
| 10814 | | sessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11239 | realtimeSessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10815 | 11240 | threadId: Schema.String, |
| 10816 | 11241 | version: ServerNotification__RealtimeConversationVersion, |
| 10817 | 11242 | }).annotate({ description: "EXPERIMENTAL - emitted when thread realtime startup is accepted." }); |
| 10818 | 11243 | |
| 11244 | export type ServerNotification__RemoteControlStatusChangedNotification = { |
| 11245 | readonly environmentId?: string | null; |
| 11246 | readonly status: ServerNotification__RemoteControlConnectionStatus; |
| 11247 | }; |
| 11248 | export const ServerNotification__RemoteControlStatusChangedNotification = Schema.Struct({ |
| 11249 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11250 | status: ServerNotification__RemoteControlConnectionStatus, |
| 11251 | }).annotate({ |
| 11252 | description: "Current remote-control connection status and environment id exposed to clients.", |
| 11253 | }); |
| 11254 | |
| 10819 | 11255 | export type ServerNotification__ServerRequestResolvedNotification = { |
| 10820 | 11256 | readonly requestId: ServerNotification__RequestId; |
| 10821 | 11257 | readonly threadId: string; |
| ... | ... | @@ -10905,6 +11341,29 @@ export const ServerNotification__ThreadStatus = Schema.Union( |
| 10905 | 11341 | { mode: "oneOf" }, |
| 10906 | 11342 | ); |
| 10907 | 11343 | |
| 11344 | export type ServerNotification__ThreadGoal = { |
| 11345 | readonly createdAt: number; |
| 11346 | readonly objective: string; |
| 11347 | readonly status: ServerNotification__ThreadGoalStatus; |
| 11348 | readonly threadId: string; |
| 11349 | readonly timeUsedSeconds: number; |
| 11350 | readonly tokenBudget?: number | null; |
| 11351 | readonly tokensUsed: number; |
| 11352 | readonly updatedAt: number; |
| 11353 | }; |
| 11354 | export const ServerNotification__ThreadGoal = Schema.Struct({ |
| 11355 | createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 11356 | objective: Schema.String, |
| 11357 | status: ServerNotification__ThreadGoalStatus, |
| 11358 | threadId: Schema.String, |
| 11359 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 11360 | tokenBudget: Schema.optionalKey( |
| 11361 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 11362 | ), |
| 11363 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 11364 | updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 11365 | }); |
| 11366 | |
| 10908 | 11367 | export type ServerNotification__SubAgentSource = |
| 10909 | 11368 | | "review" |
| 10910 | 11369 | | "compact" |
| ... | ... | @@ -11418,29 +11877,12 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({ |
| 11418 | 11877 | |
| 11419 | 11878 | export type V2CommandExecParams__SandboxPolicy = |
| 11420 | 11879 | | { readonly type: "dangerFullAccess" } |
| 11421 | | | { |
| 11422 | | readonly access?: |
| 11423 | | | { |
| 11424 | | readonly includePlatformDefaults?: boolean; |
| 11425 | | readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>; |
| 11426 | | readonly type: "restricted"; |
| 11427 | | } |
| 11428 | | | { readonly type: "fullAccess" }; |
| 11429 | | readonly networkAccess?: boolean; |
| 11430 | | readonly type: "readOnly"; |
| 11431 | | } |
| 11880 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 11432 | 11881 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 11433 | 11882 | | { |
| 11434 | 11883 | readonly excludeSlashTmp?: boolean; |
| 11435 | 11884 | readonly excludeTmpdirEnvVar?: boolean; |
| 11436 | 11885 | readonly networkAccess?: boolean; |
| 11437 | | readonly readOnlyAccess?: |
| 11438 | | | { |
| 11439 | | readonly includePlatformDefaults?: boolean; |
| 11440 | | readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>; |
| 11441 | | readonly type: "restricted"; |
| 11442 | | } |
| 11443 | | | { readonly type: "fullAccess" }; |
| 11444 | 11886 | readonly type: "workspaceWrite"; |
| 11445 | 11887 | readonly writableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>; |
| 11446 | 11888 | }; |
| ... | ... | @@ -11452,29 +11894,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union( |
| 11452 | 11894 | }), |
| 11453 | 11895 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 11454 | 11896 | Schema.Struct({ |
| 11455 | | access: Schema.optionalKey( |
| 11456 | | Schema.Union( |
| 11457 | | [ |
| 11458 | | Schema.Struct({ |
| 11459 | | includePlatformDefaults: Schema.optionalKey( |
| 11460 | | Schema.Boolean.annotate({ default: true }), |
| 11461 | | ), |
| 11462 | | readableRoots: Schema.optionalKey( |
| 11463 | | Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }), |
| 11464 | | ), |
| 11465 | | type: Schema.Literal("restricted").annotate({ |
| 11466 | | title: "RestrictedReadOnlyAccessType", |
| 11467 | | }), |
| 11468 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 11469 | | Schema.Struct({ |
| 11470 | | type: Schema.Literal("fullAccess").annotate({ |
| 11471 | | title: "FullAccessReadOnlyAccessType", |
| 11472 | | }), |
| 11473 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 11474 | | ], |
| 11475 | | { mode: "oneOf" }, |
| 11476 | | ).annotate({ default: { type: "fullAccess" } }), |
| 11477 | | ), |
| 11478 | 11897 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 11479 | 11898 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 11480 | 11899 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| ... | ... | @@ -11490,29 +11909,6 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union( |
| 11490 | 11909 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 11491 | 11910 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 11492 | 11911 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 11493 | | readOnlyAccess: Schema.optionalKey( |
| 11494 | | Schema.Union( |
| 11495 | | [ |
| 11496 | | Schema.Struct({ |
| 11497 | | includePlatformDefaults: Schema.optionalKey( |
| 11498 | | Schema.Boolean.annotate({ default: true }), |
| 11499 | | ), |
| 11500 | | readableRoots: Schema.optionalKey( |
| 11501 | | Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }), |
| 11502 | | ), |
| 11503 | | type: Schema.Literal("restricted").annotate({ |
| 11504 | | title: "RestrictedReadOnlyAccessType", |
| 11505 | | }), |
| 11506 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 11507 | | Schema.Struct({ |
| 11508 | | type: Schema.Literal("fullAccess").annotate({ |
| 11509 | | title: "FullAccessReadOnlyAccessType", |
| 11510 | | }), |
| 11511 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 11512 | | ], |
| 11513 | | { mode: "oneOf" }, |
| 11514 | | ).annotate({ default: { type: "fullAccess" } }), |
| 11515 | | ), |
| 11516 | 11912 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 11517 | 11913 | writableRoots: Schema.optionalKey( |
| 11518 | 11914 | Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }), |
| ... | ... | @@ -11522,6 +11918,28 @@ export const V2CommandExecParams__SandboxPolicy = Schema.Union( |
| 11522 | 11918 | { mode: "oneOf" }, |
| 11523 | 11919 | ); |
| 11524 | 11920 | |
| 11921 | export type V2CommandExecParams__FileSystemPath = |
| 11922 | | { readonly path: V2CommandExecParams__AbsolutePathBuf; readonly type: "path" } |
| 11923 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 11924 | | { readonly type: "special"; readonly value: V2CommandExecParams__FileSystemSpecialPath }; |
| 11925 | export const V2CommandExecParams__FileSystemPath = Schema.Union( |
| 11926 | [ |
| 11927 | Schema.Struct({ |
| 11928 | path: V2CommandExecParams__AbsolutePathBuf, |
| 11929 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 11930 | }).annotate({ title: "PathFileSystemPath" }), |
| 11931 | Schema.Struct({ |
| 11932 | pattern: Schema.String, |
| 11933 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| 11934 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| 11935 | Schema.Struct({ |
| 11936 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| 11937 | value: V2CommandExecParams__FileSystemSpecialPath, |
| 11938 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 11939 | ], |
| 11940 | { mode: "oneOf" }, |
| 11941 | ); |
| 11942 | |
| 11525 | 11943 | export type V2ConfigBatchWriteParams__ConfigEdit = { |
| 11526 | 11944 | readonly keyPath: string; |
| 11527 | 11945 | readonly mergeStrategy: V2ConfigBatchWriteParams__MergeStrategy; |
| ... | ... | @@ -11623,6 +12041,15 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({ |
| 11623 | 12041 | ), |
| 11624 | 12042 | }); |
| 11625 | 12043 | |
| 12044 | export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = { |
| 12045 | readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>; |
| 12046 | readonly matcher?: string | null; |
| 12047 | }; |
| 12048 | export const V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = Schema.Struct({ |
| 12049 | hooks: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookHandler), |
| 12050 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12051 | }); |
| 12052 | |
| 11626 | 12053 | export type V2ConfigRequirementsReadResponse__ConfigRequirements = { |
| 11627 | 12054 | readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null; |
| 11628 | 12055 | readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null; |
| ... | ... | @@ -11732,106 +12159,11 @@ export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( |
| 11732 | 12159 | { mode: "oneOf" }, |
| 11733 | 12160 | ); |
| 11734 | 12161 | |
| 11735 | | export type V2DeviceKeySignParams__DeviceKeySignPayload = |
| 11736 | | | { |
| 11737 | | readonly accountUserId: string; |
| 11738 | | readonly audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience; |
| 11739 | | readonly clientId: string; |
| 11740 | | readonly nonce: string; |
| 11741 | | readonly scopes: ReadonlyArray<string>; |
| 11742 | | readonly sessionId: string; |
| 11743 | | readonly targetOrigin: string; |
| 11744 | | readonly targetPath: string; |
| 11745 | | readonly tokenExpiresAt: number; |
| 11746 | | readonly tokenSha256Base64url: string; |
| 11747 | | readonly type: "remoteControlClientConnection"; |
| 11748 | | } |
| 11749 | | | { |
| 11750 | | readonly accountUserId: string; |
| 11751 | | readonly audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience; |
| 11752 | | readonly challengeExpiresAt: number; |
| 11753 | | readonly challengeId: string; |
| 11754 | | readonly clientId: string; |
| 11755 | | readonly deviceIdentitySha256Base64url: string; |
| 11756 | | readonly nonce: string; |
| 11757 | | readonly targetOrigin: string; |
| 11758 | | readonly targetPath: string; |
| 11759 | | readonly type: "remoteControlClientEnrollment"; |
| 11760 | | }; |
| 11761 | | export const V2DeviceKeySignParams__DeviceKeySignPayload = Schema.Union( |
| 11762 | | [ |
| 11763 | | Schema.Struct({ |
| 11764 | | accountUserId: Schema.String, |
| 11765 | | audience: V2DeviceKeySignParams__RemoteControlClientConnectionAudience, |
| 11766 | | clientId: Schema.String, |
| 11767 | | nonce: Schema.String, |
| 11768 | | scopes: Schema.Array(Schema.String).annotate({ |
| 11769 | | description: "Must contain exactly `remote_control_controller_websocket`.", |
| 11770 | | }), |
| 11771 | | sessionId: Schema.String.annotate({ |
| 11772 | | description: "Backend-issued websocket session id that this proof authorizes.", |
| 11773 | | }), |
| 11774 | | targetOrigin: Schema.String.annotate({ |
| 11775 | | description: |
| 11776 | | "Origin of the backend endpoint that issued the challenge and will verify this proof.", |
| 11777 | | }), |
| 11778 | | targetPath: Schema.String.annotate({ |
| 11779 | | description: "Websocket route path that this proof authorizes.", |
| 11780 | | }), |
| 11781 | | tokenExpiresAt: Schema.Number.annotate({ |
| 11782 | | description: "Remote-control token expiration as Unix seconds.", |
| 11783 | | format: "int64", |
| 11784 | | }).check(Schema.isInt()), |
| 11785 | | tokenSha256Base64url: Schema.String.annotate({ |
| 11786 | | description: |
| 11787 | | "SHA-256 of the controller-scoped remote-control token, encoded as unpadded base64url.", |
| 11788 | | }), |
| 11789 | | type: Schema.Literal("remoteControlClientConnection").annotate({ |
| 11790 | | title: "RemoteControlClientConnectionDeviceKeySignPayloadType", |
| 11791 | | }), |
| 11792 | | }).annotate({ |
| 11793 | | title: "RemoteControlClientConnectionDeviceKeySignPayload", |
| 11794 | | description: |
| 11795 | | "Payload bound to one remote-control controller websocket `/client` connection challenge.", |
| 11796 | | }), |
| 11797 | | Schema.Struct({ |
| 11798 | | accountUserId: Schema.String, |
| 11799 | | audience: V2DeviceKeySignParams__RemoteControlClientEnrollmentAudience, |
| 11800 | | challengeExpiresAt: Schema.Number.annotate({ |
| 11801 | | description: "Enrollment challenge expiration as Unix seconds.", |
| 11802 | | format: "int64", |
| 11803 | | }).check(Schema.isInt()), |
| 11804 | | challengeId: Schema.String.annotate({ |
| 11805 | | description: "Backend-issued enrollment challenge id that this proof authorizes.", |
| 11806 | | }), |
| 11807 | | clientId: Schema.String, |
| 11808 | | deviceIdentitySha256Base64url: Schema.String.annotate({ |
| 11809 | | description: |
| 11810 | | "SHA-256 of the requested device identity operation, encoded as unpadded base64url.", |
| 11811 | | }), |
| 11812 | | nonce: Schema.String, |
| 11813 | | targetOrigin: Schema.String.annotate({ |
| 11814 | | description: |
| 11815 | | "Origin of the backend endpoint that issued the challenge and will verify this proof.", |
| 11816 | | }), |
| 11817 | | targetPath: Schema.String.annotate({ |
| 11818 | | description: "HTTP route path that this proof authorizes.", |
| 11819 | | }), |
| 11820 | | type: Schema.Literal("remoteControlClientEnrollment").annotate({ |
| 11821 | | title: "RemoteControlClientEnrollmentDeviceKeySignPayloadType", |
| 11822 | | }), |
| 11823 | | }).annotate({ |
| 11824 | | title: "RemoteControlClientEnrollmentDeviceKeySignPayload", |
| 11825 | | description: "Payload bound to a remote-control client `/client/enroll` ownership challenge.", |
| 11826 | | }), |
| 11827 | | ], |
| 11828 | | { mode: "oneOf" }, |
| 11829 | | ).annotate({ description: "Structured payloads accepted by `device/key/sign`." }); |
| 11830 | | |
| 11831 | 12162 | export type V2ErrorNotification__CodexErrorInfo = |
| 11832 | 12163 | | "contextWindowExceeded" |
| 11833 | 12164 | | "usageLimitExceeded" |
| 11834 | 12165 | | "serverOverloaded" |
| 12166 | | "cyberPolicy" |
| 11835 | 12167 | | "internalServerError" |
| 11836 | 12168 | | "unauthorized" |
| 11837 | 12169 | | "badRequest" |
| ... | ... | @@ -11853,6 +12185,7 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 11853 | 12185 | "contextWindowExceeded", |
| 11854 | 12186 | "usageLimitExceeded", |
| 11855 | 12187 | "serverOverloaded", |
| 12188 | "cyberPolicy", |
| 11856 | 12189 | "internalServerError", |
| 11857 | 12190 | "unauthorized", |
| 11858 | 12191 | "badRequest", |
| ... | ... | @@ -11935,17 +12268,61 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 11935 | 12268 | }); |
| 11936 | 12269 | |
| 11937 | 12270 | export type V2ExternalAgentConfigDetectResponse__MigrationDetails = { |
| 11938 | | readonly plugins: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>; |
| 12271 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>; |
| 12272 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>; |
| 12273 | readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__McpServerMigration>; |
| 12274 | readonly plugins?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__PluginsMigration>; |
| 12275 | readonly sessions?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SessionMigration>; |
| 12276 | readonly subagents?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__SubagentMigration>; |
| 11939 | 12277 | }; |
| 11940 | 12278 | export const V2ExternalAgentConfigDetectResponse__MigrationDetails = Schema.Struct({ |
| 11941 | | plugins: Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration), |
| 12279 | commands: Schema.optionalKey( |
| 12280 | Schema.Array(V2ExternalAgentConfigDetectResponse__CommandMigration).annotate({ default: [] }), |
| 12281 | ), |
| 12282 | hooks: Schema.optionalKey( |
| 12283 | Schema.Array(V2ExternalAgentConfigDetectResponse__HookMigration).annotate({ default: [] }), |
| 12284 | ), |
| 12285 | mcpServers: Schema.optionalKey( |
| 12286 | Schema.Array(V2ExternalAgentConfigDetectResponse__McpServerMigration).annotate({ default: [] }), |
| 12287 | ), |
| 12288 | plugins: Schema.optionalKey( |
| 12289 | Schema.Array(V2ExternalAgentConfigDetectResponse__PluginsMigration).annotate({ default: [] }), |
| 12290 | ), |
| 12291 | sessions: Schema.optionalKey( |
| 12292 | Schema.Array(V2ExternalAgentConfigDetectResponse__SessionMigration).annotate({ default: [] }), |
| 12293 | ), |
| 12294 | subagents: Schema.optionalKey( |
| 12295 | Schema.Array(V2ExternalAgentConfigDetectResponse__SubagentMigration).annotate({ default: [] }), |
| 12296 | ), |
| 11942 | 12297 | }); |
| 11943 | 12298 | |
| 11944 | 12299 | export type V2ExternalAgentConfigImportParams__MigrationDetails = { |
| 11945 | | readonly plugins: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>; |
| 12300 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>; |
| 12301 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>; |
| 12302 | readonly mcpServers?: ReadonlyArray<V2ExternalAgentConfigImportParams__McpServerMigration>; |
| 12303 | readonly plugins?: ReadonlyArray<V2ExternalAgentConfigImportParams__PluginsMigration>; |
| 12304 | readonly sessions?: ReadonlyArray<V2ExternalAgentConfigImportParams__SessionMigration>; |
| 12305 | readonly subagents?: ReadonlyArray<V2ExternalAgentConfigImportParams__SubagentMigration>; |
| 11946 | 12306 | }; |
| 11947 | 12307 | export const V2ExternalAgentConfigImportParams__MigrationDetails = Schema.Struct({ |
| 11948 | | plugins: Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration), |
| 12308 | commands: Schema.optionalKey( |
| 12309 | Schema.Array(V2ExternalAgentConfigImportParams__CommandMigration).annotate({ default: [] }), |
| 12310 | ), |
| 12311 | hooks: Schema.optionalKey( |
| 12312 | Schema.Array(V2ExternalAgentConfigImportParams__HookMigration).annotate({ default: [] }), |
| 12313 | ), |
| 12314 | mcpServers: Schema.optionalKey( |
| 12315 | Schema.Array(V2ExternalAgentConfigImportParams__McpServerMigration).annotate({ default: [] }), |
| 12316 | ), |
| 12317 | plugins: Schema.optionalKey( |
| 12318 | Schema.Array(V2ExternalAgentConfigImportParams__PluginsMigration).annotate({ default: [] }), |
| 12319 | ), |
| 12320 | sessions: Schema.optionalKey( |
| 12321 | Schema.Array(V2ExternalAgentConfigImportParams__SessionMigration).annotate({ default: [] }), |
| 12322 | ), |
| 12323 | subagents: Schema.optionalKey( |
| 12324 | Schema.Array(V2ExternalAgentConfigImportParams__SubagentMigration).annotate({ default: [] }), |
| 12325 | ), |
| 11949 | 12326 | }); |
| 11950 | 12327 | |
| 11951 | 12328 | export type V2FileChangePatchUpdatedNotification__FileUpdateChange = { |
| ... | ... | @@ -11994,7 +12371,8 @@ export type V2GetAccountResponse__Account = |
| 11994 | 12371 | readonly email: string; |
| 11995 | 12372 | readonly planType: V2GetAccountResponse__PlanType; |
| 11996 | 12373 | readonly type: "chatgpt"; |
| 11997 | | }; |
| 12374 | } |
| 12375 | | { readonly type: "amazonBedrock" }; |
| 11998 | 12376 | export const V2GetAccountResponse__Account = Schema.Union( |
| 11999 | 12377 | [ |
| 12000 | 12378 | Schema.Struct({ |
| ... | ... | @@ -12005,6 +12383,9 @@ export const V2GetAccountResponse__Account = Schema.Union( |
| 12005 | 12383 | planType: V2GetAccountResponse__PlanType, |
| 12006 | 12384 | type: Schema.Literal("chatgpt").annotate({ title: "ChatgptAccountType" }), |
| 12007 | 12385 | }).annotate({ title: "ChatgptAccount" }), |
| 12386 | Schema.Struct({ |
| 12387 | type: Schema.Literal("amazonBedrock").annotate({ title: "AmazonBedrockAccountType" }), |
| 12388 | }).annotate({ title: "AmazonBedrockAccount" }), |
| 12008 | 12389 | ], |
| 12009 | 12390 | { mode: "oneOf" }, |
| 12010 | 12391 | ); |
| ... | ... | @@ -12018,6 +12399,43 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({ |
| 12018 | 12399 | text: Schema.String, |
| 12019 | 12400 | }); |
| 12020 | 12401 | |
| 12402 | export type V2HooksListResponse__HookMetadata = { |
| 12403 | readonly command?: string | null; |
| 12404 | readonly currentHash: string; |
| 12405 | readonly displayOrder: number; |
| 12406 | readonly enabled: boolean; |
| 12407 | readonly eventName: V2HooksListResponse__HookEventName; |
| 12408 | readonly handlerType: V2HooksListResponse__HookHandlerType; |
| 12409 | readonly isManaged: boolean; |
| 12410 | readonly key: string; |
| 12411 | readonly matcher?: string | null; |
| 12412 | readonly pluginId?: string | null; |
| 12413 | readonly source: V2HooksListResponse__HookSource; |
| 12414 | readonly sourcePath: V2HooksListResponse__AbsolutePathBuf; |
| 12415 | readonly statusMessage?: string | null; |
| 12416 | readonly timeoutSec: number; |
| 12417 | readonly trustStatus: V2HooksListResponse__HookTrustStatus; |
| 12418 | }; |
| 12419 | export const V2HooksListResponse__HookMetadata = Schema.Struct({ |
| 12420 | command: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12421 | currentHash: Schema.String, |
| 12422 | displayOrder: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 12423 | enabled: Schema.Boolean, |
| 12424 | eventName: V2HooksListResponse__HookEventName, |
| 12425 | handlerType: V2HooksListResponse__HookHandlerType, |
| 12426 | isManaged: Schema.Boolean, |
| 12427 | key: Schema.String, |
| 12428 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12429 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12430 | source: V2HooksListResponse__HookSource, |
| 12431 | sourcePath: V2HooksListResponse__AbsolutePathBuf, |
| 12432 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12433 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) |
| 12434 | .check(Schema.isInt()) |
| 12435 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 12436 | trustStatus: V2HooksListResponse__HookTrustStatus, |
| 12437 | }); |
| 12438 | |
| 12021 | 12439 | export type V2HookStartedNotification__HookOutputEntry = { |
| 12022 | 12440 | readonly kind: V2HookStartedNotification__HookOutputEntryKind; |
| 12023 | 12441 | readonly text: string; |
| ... | ... | @@ -12503,6 +12921,17 @@ export const V2PluginListResponse__PluginSource = Schema.Union( |
| 12503 | 12921 | { mode: "oneOf" }, |
| 12504 | 12922 | ); |
| 12505 | 12923 | |
| 12924 | export type V2PluginListResponse__PluginSharePrincipal = { |
| 12925 | readonly name: string; |
| 12926 | readonly principalId: string; |
| 12927 | readonly principalType: V2PluginListResponse__PluginSharePrincipalType; |
| 12928 | }; |
| 12929 | export const V2PluginListResponse__PluginSharePrincipal = Schema.Struct({ |
| 12930 | name: Schema.String, |
| 12931 | principalId: Schema.String, |
| 12932 | principalType: V2PluginListResponse__PluginSharePrincipalType, |
| 12933 | }); |
| 12934 | |
| 12506 | 12935 | export type V2PluginReadResponse__PluginInterface = { |
| 12507 | 12936 | readonly brandColor?: string | null; |
| 12508 | 12937 | readonly capabilities: ReadonlyArray<string>; |
| ... | ... | @@ -12623,6 +13052,169 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({ |
| 12623 | 13052 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12624 | 13053 | }); |
| 12625 | 13054 | |
| 13055 | export type V2PluginReadResponse__PluginHookSummary = { |
| 13056 | readonly eventName: V2PluginReadResponse__HookEventName; |
| 13057 | readonly key: string; |
| 13058 | }; |
| 13059 | export const V2PluginReadResponse__PluginHookSummary = Schema.Struct({ |
| 13060 | eventName: V2PluginReadResponse__HookEventName, |
| 13061 | key: Schema.String, |
| 13062 | }); |
| 13063 | |
| 13064 | export type V2PluginReadResponse__PluginSharePrincipal = { |
| 13065 | readonly name: string; |
| 13066 | readonly principalId: string; |
| 13067 | readonly principalType: V2PluginReadResponse__PluginSharePrincipalType; |
| 13068 | }; |
| 13069 | export const V2PluginReadResponse__PluginSharePrincipal = Schema.Struct({ |
| 13070 | name: Schema.String, |
| 13071 | principalId: Schema.String, |
| 13072 | principalType: V2PluginReadResponse__PluginSharePrincipalType, |
| 13073 | }); |
| 13074 | |
| 13075 | export type V2PluginShareListResponse__PluginInterface = { |
| 13076 | readonly brandColor?: string | null; |
| 13077 | readonly capabilities: ReadonlyArray<string>; |
| 13078 | readonly category?: string | null; |
| 13079 | readonly composerIcon?: V2PluginShareListResponse__AbsolutePathBuf | null; |
| 13080 | readonly composerIconUrl?: string | null; |
| 13081 | readonly defaultPrompt?: ReadonlyArray<string> | null; |
| 13082 | readonly developerName?: string | null; |
| 13083 | readonly displayName?: string | null; |
| 13084 | readonly logo?: V2PluginShareListResponse__AbsolutePathBuf | null; |
| 13085 | readonly logoUrl?: string | null; |
| 13086 | readonly longDescription?: string | null; |
| 13087 | readonly privacyPolicyUrl?: string | null; |
| 13088 | readonly screenshotUrls: ReadonlyArray<string>; |
| 13089 | readonly screenshots: ReadonlyArray<V2PluginShareListResponse__AbsolutePathBuf>; |
| 13090 | readonly shortDescription?: string | null; |
| 13091 | readonly termsOfServiceUrl?: string | null; |
| 13092 | readonly websiteUrl?: string | null; |
| 13093 | }; |
| 13094 | export const V2PluginShareListResponse__PluginInterface = Schema.Struct({ |
| 13095 | brandColor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13096 | capabilities: Schema.Array(Schema.String), |
| 13097 | category: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13098 | composerIcon: Schema.optionalKey( |
| 13099 | Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| 13100 | description: "Local composer icon path, resolved from the installed plugin package.", |
| 13101 | }), |
| 13102 | ), |
| 13103 | composerIconUrl: Schema.optionalKey( |
| 13104 | Schema.Union([ |
| 13105 | Schema.String.annotate({ description: "Remote composer icon URL from the plugin catalog." }), |
| 13106 | Schema.Null, |
| 13107 | ]), |
| 13108 | ), |
| 13109 | defaultPrompt: Schema.optionalKey( |
| 13110 | Schema.Union([ |
| 13111 | Schema.Array(Schema.String).annotate({ |
| 13112 | description: |
| 13113 | "Starter prompts for the plugin. Capped at 3 entries with a maximum of 128 characters per entry.", |
| 13114 | }), |
| 13115 | Schema.Null, |
| 13116 | ]), |
| 13117 | ), |
| 13118 | developerName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13119 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13120 | logo: Schema.optionalKey( |
| 13121 | Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| 13122 | description: "Local logo path, resolved from the installed plugin package.", |
| 13123 | }), |
| 13124 | ), |
| 13125 | logoUrl: Schema.optionalKey( |
| 13126 | Schema.Union([ |
| 13127 | Schema.String.annotate({ description: "Remote logo URL from the plugin catalog." }), |
| 13128 | Schema.Null, |
| 13129 | ]), |
| 13130 | ), |
| 13131 | longDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13132 | privacyPolicyUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13133 | screenshotUrls: Schema.Array(Schema.String).annotate({ |
| 13134 | description: "Remote screenshot URLs from the plugin catalog.", |
| 13135 | }), |
| 13136 | screenshots: Schema.Array(V2PluginShareListResponse__AbsolutePathBuf).annotate({ |
| 13137 | description: "Local screenshot paths, resolved from the installed plugin package.", |
| 13138 | }), |
| 13139 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13140 | termsOfServiceUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13141 | websiteUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13142 | }); |
| 13143 | |
| 13144 | export type V2PluginShareListResponse__PluginSource = |
| 13145 | | { readonly path: V2PluginShareListResponse__AbsolutePathBuf; readonly type: "local" } |
| 13146 | | { |
| 13147 | readonly path?: string | null; |
| 13148 | readonly refName?: string | null; |
| 13149 | readonly sha?: string | null; |
| 13150 | readonly type: "git"; |
| 13151 | readonly url: string; |
| 13152 | } |
| 13153 | | { readonly type: "remote" }; |
| 13154 | export const V2PluginShareListResponse__PluginSource = Schema.Union( |
| 13155 | [ |
| 13156 | Schema.Struct({ |
| 13157 | path: V2PluginShareListResponse__AbsolutePathBuf, |
| 13158 | type: Schema.Literal("local").annotate({ title: "LocalPluginSourceType" }), |
| 13159 | }).annotate({ title: "LocalPluginSource" }), |
| 13160 | Schema.Struct({ |
| 13161 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13162 | refName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13163 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13164 | type: Schema.Literal("git").annotate({ title: "GitPluginSourceType" }), |
| 13165 | url: Schema.String, |
| 13166 | }).annotate({ title: "GitPluginSource" }), |
| 13167 | Schema.Struct({ |
| 13168 | type: Schema.Literal("remote").annotate({ title: "RemotePluginSourceType" }), |
| 13169 | }).annotate({ |
| 13170 | title: "RemotePluginSource", |
| 13171 | description: |
| 13172 | "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.", |
| 13173 | }), |
| 13174 | ], |
| 13175 | { mode: "oneOf" }, |
| 13176 | ); |
| 13177 | |
| 13178 | export type V2PluginShareListResponse__PluginSharePrincipal = { |
| 13179 | readonly name: string; |
| 13180 | readonly principalId: string; |
| 13181 | readonly principalType: V2PluginShareListResponse__PluginSharePrincipalType; |
| 13182 | }; |
| 13183 | export const V2PluginShareListResponse__PluginSharePrincipal = Schema.Struct({ |
| 13184 | name: Schema.String, |
| 13185 | principalId: Schema.String, |
| 13186 | principalType: V2PluginShareListResponse__PluginSharePrincipalType, |
| 13187 | }); |
| 13188 | |
| 13189 | export type V2PluginShareSaveParams__PluginShareTarget = { |
| 13190 | readonly principalId: string; |
| 13191 | readonly principalType: V2PluginShareSaveParams__PluginSharePrincipalType; |
| 13192 | }; |
| 13193 | export const V2PluginShareSaveParams__PluginShareTarget = Schema.Struct({ |
| 13194 | principalId: Schema.String, |
| 13195 | principalType: V2PluginShareSaveParams__PluginSharePrincipalType, |
| 13196 | }); |
| 13197 | |
| 13198 | export type V2PluginShareUpdateTargetsParams__PluginShareTarget = { |
| 13199 | readonly principalId: string; |
| 13200 | readonly principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType; |
| 13201 | }; |
| 13202 | export const V2PluginShareUpdateTargetsParams__PluginShareTarget = Schema.Struct({ |
| 13203 | principalId: Schema.String, |
| 13204 | principalType: V2PluginShareUpdateTargetsParams__PluginSharePrincipalType, |
| 13205 | }); |
| 13206 | |
| 13207 | export type V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = { |
| 13208 | readonly name: string; |
| 13209 | readonly principalId: string; |
| 13210 | readonly principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType; |
| 13211 | }; |
| 13212 | export const V2PluginShareUpdateTargetsResponse__PluginSharePrincipal = Schema.Struct({ |
| 13213 | name: Schema.String, |
| 13214 | principalId: Schema.String, |
| 13215 | principalType: V2PluginShareUpdateTargetsResponse__PluginSharePrincipalType, |
| 13216 | }); |
| 13217 | |
| 12626 | 13218 | export type V2RawResponseItemCompletedNotification__ContentItem = |
| 12627 | 13219 | | { readonly text: string; readonly type: "input_text" } |
| 12628 | 13220 | | { |
| ... | ... | @@ -12747,6 +13339,7 @@ export type V2ReviewStartResponse__CodexErrorInfo = |
| 12747 | 13339 | | "contextWindowExceeded" |
| 12748 | 13340 | | "usageLimitExceeded" |
| 12749 | 13341 | | "serverOverloaded" |
| 13342 | | "cyberPolicy" |
| 12750 | 13343 | | "internalServerError" |
| 12751 | 13344 | | "unauthorized" |
| 12752 | 13345 | | "badRequest" |
| ... | ... | @@ -12768,6 +13361,7 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 12768 | 13361 | "contextWindowExceeded", |
| 12769 | 13362 | "usageLimitExceeded", |
| 12770 | 13363 | "serverOverloaded", |
| 13364 | "cyberPolicy", |
| 12771 | 13365 | "internalServerError", |
| 12772 | 13366 | "unauthorized", |
| 12773 | 13367 | "badRequest", |
| ... | ... | @@ -12928,6 +13522,44 @@ export const V2SkillsListResponse__SkillDependencies = Schema.Struct({ |
| 12928 | 13522 | tools: Schema.Array(V2SkillsListResponse__SkillToolDependency), |
| 12929 | 13523 | }); |
| 12930 | 13524 | |
| 13525 | export type V2ThreadForkParams__PermissionProfileModificationParams = { |
| 13526 | readonly path: V2ThreadForkParams__AbsolutePathBuf; |
| 13527 | readonly type: "additionalWritableRoot"; |
| 13528 | }; |
| 13529 | export const V2ThreadForkParams__PermissionProfileModificationParams = Schema.Union( |
| 13530 | [ |
| 13531 | Schema.Struct({ |
| 13532 | path: V2ThreadForkParams__AbsolutePathBuf, |
| 13533 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 13534 | title: "AdditionalWritableRootPermissionProfileModificationParamsType", |
| 13535 | }), |
| 13536 | }).annotate({ |
| 13537 | title: "AdditionalWritableRootPermissionProfileModificationParams", |
| 13538 | description: "Additional concrete directory that should be writable.", |
| 13539 | }), |
| 13540 | ], |
| 13541 | { mode: "oneOf" }, |
| 13542 | ); |
| 13543 | |
| 13544 | export type V2ThreadForkResponse__ActivePermissionProfileModification = { |
| 13545 | readonly path: V2ThreadForkResponse__AbsolutePathBuf; |
| 13546 | readonly type: "additionalWritableRoot"; |
| 13547 | }; |
| 13548 | export const V2ThreadForkResponse__ActivePermissionProfileModification = Schema.Union( |
| 13549 | [ |
| 13550 | Schema.Struct({ |
| 13551 | path: V2ThreadForkResponse__AbsolutePathBuf, |
| 13552 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 13553 | title: "AdditionalWritableRootActivePermissionProfileModificationType", |
| 13554 | }), |
| 13555 | }).annotate({ |
| 13556 | title: "AdditionalWritableRootActivePermissionProfileModification", |
| 13557 | description: "Additional concrete directory that should be writable.", |
| 13558 | }), |
| 13559 | ], |
| 13560 | { mode: "oneOf" }, |
| 13561 | ); |
| 13562 | |
| 12931 | 13563 | export type V2ThreadForkResponse__CommandAction = |
| 12932 | 13564 | | { |
| 12933 | 13565 | readonly command: string; |
| ... | ... | @@ -12970,112 +13602,6 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union( |
| 12970 | 13602 | { mode: "oneOf" }, |
| 12971 | 13603 | ); |
| 12972 | 13604 | |
| 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({ |
| 13005 | | title: "DangerFullAccessSandboxPolicyType", |
| 13006 | | }), |
| 13007 | | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 13008 | | Schema.Struct({ |
| 13009 | | access: Schema.optionalKey( |
| 13010 | | Schema.Union( |
| 13011 | | [ |
| 13012 | | Schema.Struct({ |
| 13013 | | includePlatformDefaults: Schema.optionalKey( |
| 13014 | | Schema.Boolean.annotate({ default: true }), |
| 13015 | | ), |
| 13016 | | readableRoots: Schema.optionalKey( |
| 13017 | | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 13018 | | ), |
| 13019 | | type: Schema.Literal("restricted").annotate({ |
| 13020 | | title: "RestrictedReadOnlyAccessType", |
| 13021 | | }), |
| 13022 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 13023 | | Schema.Struct({ |
| 13024 | | type: Schema.Literal("fullAccess").annotate({ |
| 13025 | | title: "FullAccessReadOnlyAccessType", |
| 13026 | | }), |
| 13027 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 13028 | | ], |
| 13029 | | { mode: "oneOf" }, |
| 13030 | | ).annotate({ default: { type: "fullAccess" } }), |
| 13031 | | ), |
| 13032 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 13033 | | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 13034 | | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 13035 | | Schema.Struct({ |
| 13036 | | networkAccess: Schema.optionalKey( |
| 13037 | | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 13038 | | ), |
| 13039 | | type: Schema.Literal("externalSandbox").annotate({ |
| 13040 | | title: "ExternalSandboxSandboxPolicyType", |
| 13041 | | }), |
| 13042 | | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 13043 | | Schema.Struct({ |
| 13044 | | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 13045 | | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 13046 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 13047 | | readOnlyAccess: Schema.optionalKey( |
| 13048 | | Schema.Union( |
| 13049 | | [ |
| 13050 | | Schema.Struct({ |
| 13051 | | includePlatformDefaults: Schema.optionalKey( |
| 13052 | | Schema.Boolean.annotate({ default: true }), |
| 13053 | | ), |
| 13054 | | readableRoots: Schema.optionalKey( |
| 13055 | | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 13056 | | ), |
| 13057 | | type: Schema.Literal("restricted").annotate({ |
| 13058 | | title: "RestrictedReadOnlyAccessType", |
| 13059 | | }), |
| 13060 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 13061 | | Schema.Struct({ |
| 13062 | | type: Schema.Literal("fullAccess").annotate({ |
| 13063 | | title: "FullAccessReadOnlyAccessType", |
| 13064 | | }), |
| 13065 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 13066 | | ], |
| 13067 | | { mode: "oneOf" }, |
| 13068 | | ).annotate({ default: { type: "fullAccess" } }), |
| 13069 | | ), |
| 13070 | | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 13071 | | writableRoots: Schema.optionalKey( |
| 13072 | | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 13073 | | ), |
| 13074 | | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 13075 | | ], |
| 13076 | | { mode: "oneOf" }, |
| 13077 | | ); |
| 13078 | | |
| 13079 | 13605 | export type V2ThreadForkResponse__CollabAgentState = { |
| 13080 | 13606 | readonly message?: string | null; |
| 13081 | 13607 | readonly status: V2ThreadForkResponse__CollabAgentStatus; |
| ... | ... | @@ -13085,6 +13611,28 @@ export const V2ThreadForkResponse__CollabAgentState = Schema.Struct({ |
| 13085 | 13611 | status: V2ThreadForkResponse__CollabAgentStatus, |
| 13086 | 13612 | }); |
| 13087 | 13613 | |
| 13614 | export type V2ThreadForkResponse__FileSystemPath = |
| 13615 | | { readonly path: V2ThreadForkResponse__AbsolutePathBuf; readonly type: "path" } |
| 13616 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 13617 | | { readonly type: "special"; readonly value: V2ThreadForkResponse__FileSystemSpecialPath }; |
| 13618 | export const V2ThreadForkResponse__FileSystemPath = Schema.Union( |
| 13619 | [ |
| 13620 | Schema.Struct({ |
| 13621 | path: V2ThreadForkResponse__AbsolutePathBuf, |
| 13622 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 13623 | }).annotate({ title: "PathFileSystemPath" }), |
| 13624 | Schema.Struct({ |
| 13625 | pattern: Schema.String, |
| 13626 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| 13627 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| 13628 | Schema.Struct({ |
| 13629 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| 13630 | value: V2ThreadForkResponse__FileSystemSpecialPath, |
| 13631 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 13632 | ], |
| 13633 | { mode: "oneOf" }, |
| 13634 | ); |
| 13635 | |
| 13088 | 13636 | export type V2ThreadForkResponse__MemoryCitation = { |
| 13089 | 13637 | readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>; |
| 13090 | 13638 | readonly threadIds: ReadonlyArray<string>; |
| ... | ... | @@ -13098,6 +13646,7 @@ export type V2ThreadForkResponse__CodexErrorInfo = |
| 13098 | 13646 | | "contextWindowExceeded" |
| 13099 | 13647 | | "usageLimitExceeded" |
| 13100 | 13648 | | "serverOverloaded" |
| 13649 | | "cyberPolicy" |
| 13101 | 13650 | | "internalServerError" |
| 13102 | 13651 | | "unauthorized" |
| 13103 | 13652 | | "badRequest" |
| ... | ... | @@ -13119,6 +13668,7 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 13119 | 13668 | "contextWindowExceeded", |
| 13120 | 13669 | "usageLimitExceeded", |
| 13121 | 13670 | "serverOverloaded", |
| 13671 | "cyberPolicy", |
| 13122 | 13672 | "internalServerError", |
| 13123 | 13673 | "unauthorized", |
| 13124 | 13674 | "badRequest", |
| ... | ... | @@ -13288,6 +13838,29 @@ export const V2ThreadForkResponse__SubAgentSource = Schema.Union( |
| 13288 | 13838 | { mode: "oneOf" }, |
| 13289 | 13839 | ); |
| 13290 | 13840 | |
| 13841 | export type V2ThreadGoalUpdatedNotification__ThreadGoal = { |
| 13842 | readonly createdAt: number; |
| 13843 | readonly objective: string; |
| 13844 | readonly status: V2ThreadGoalUpdatedNotification__ThreadGoalStatus; |
| 13845 | readonly threadId: string; |
| 13846 | readonly timeUsedSeconds: number; |
| 13847 | readonly tokenBudget?: number | null; |
| 13848 | readonly tokensUsed: number; |
| 13849 | readonly updatedAt: number; |
| 13850 | }; |
| 13851 | export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({ |
| 13852 | createdAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 13853 | objective: Schema.String, |
| 13854 | status: V2ThreadGoalUpdatedNotification__ThreadGoalStatus, |
| 13855 | threadId: Schema.String, |
| 13856 | timeUsedSeconds: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 13857 | tokenBudget: Schema.optionalKey( |
| 13858 | Schema.Union([Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), Schema.Null]), |
| 13859 | ), |
| 13860 | tokensUsed: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 13861 | updatedAt: Schema.Number.annotate({ format: "int64" }).check(Schema.isInt()), |
| 13862 | }); |
| 13863 | |
| 13291 | 13864 | export type V2ThreadListResponse__CommandAction = |
| 13292 | 13865 | | { |
| 13293 | 13866 | readonly command: string; |
| ... | ... | @@ -13352,6 +13925,7 @@ export type V2ThreadListResponse__CodexErrorInfo = |
| 13352 | 13925 | | "contextWindowExceeded" |
| 13353 | 13926 | | "usageLimitExceeded" |
| 13354 | 13927 | | "serverOverloaded" |
| 13928 | | "cyberPolicy" |
| 13355 | 13929 | | "internalServerError" |
| 13356 | 13930 | | "unauthorized" |
| 13357 | 13931 | | "badRequest" |
| ... | ... | @@ -13373,6 +13947,7 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 13373 | 13947 | "contextWindowExceeded", |
| 13374 | 13948 | "usageLimitExceeded", |
| 13375 | 13949 | "serverOverloaded", |
| 13950 | "cyberPolicy", |
| 13376 | 13951 | "internalServerError", |
| 13377 | 13952 | "unauthorized", |
| 13378 | 13953 | "badRequest", |
| ... | ... | @@ -13606,6 +14181,7 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo = |
| 13606 | 14181 | | "contextWindowExceeded" |
| 13607 | 14182 | | "usageLimitExceeded" |
| 13608 | 14183 | | "serverOverloaded" |
| 14184 | | "cyberPolicy" |
| 13609 | 14185 | | "internalServerError" |
| 13610 | 14186 | | "unauthorized" |
| 13611 | 14187 | | "badRequest" |
| ... | ... | @@ -13627,6 +14203,7 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 13627 | 14203 | "contextWindowExceeded", |
| 13628 | 14204 | "usageLimitExceeded", |
| 13629 | 14205 | "serverOverloaded", |
| 14206 | "cyberPolicy", |
| 13630 | 14207 | "internalServerError", |
| 13631 | 14208 | "unauthorized", |
| 13632 | 14209 | "badRequest", |
| ... | ... | @@ -13860,6 +14437,7 @@ export type V2ThreadReadResponse__CodexErrorInfo = |
| 13860 | 14437 | | "contextWindowExceeded" |
| 13861 | 14438 | | "usageLimitExceeded" |
| 13862 | 14439 | | "serverOverloaded" |
| 14440 | | "cyberPolicy" |
| 13863 | 14441 | | "internalServerError" |
| 13864 | 14442 | | "unauthorized" |
| 13865 | 14443 | | "badRequest" |
| ... | ... | @@ -13881,6 +14459,7 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 13881 | 14459 | "contextWindowExceeded", |
| 13882 | 14460 | "usageLimitExceeded", |
| 13883 | 14461 | "serverOverloaded", |
| 14462 | "cyberPolicy", |
| 13884 | 14463 | "internalServerError", |
| 13885 | 14464 | "unauthorized", |
| 13886 | 14465 | "badRequest", |
| ... | ... | @@ -14050,6 +14629,25 @@ export const V2ThreadReadResponse__SubAgentSource = Schema.Union( |
| 14050 | 14629 | { mode: "oneOf" }, |
| 14051 | 14630 | ); |
| 14052 | 14631 | |
| 14632 | export type V2ThreadResumeParams__PermissionProfileModificationParams = { |
| 14633 | readonly path: V2ThreadResumeParams__AbsolutePathBuf; |
| 14634 | readonly type: "additionalWritableRoot"; |
| 14635 | }; |
| 14636 | export const V2ThreadResumeParams__PermissionProfileModificationParams = Schema.Union( |
| 14637 | [ |
| 14638 | Schema.Struct({ |
| 14639 | path: V2ThreadResumeParams__AbsolutePathBuf, |
| 14640 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 14641 | title: "AdditionalWritableRootPermissionProfileModificationParamsType", |
| 14642 | }), |
| 14643 | }).annotate({ |
| 14644 | title: "AdditionalWritableRootPermissionProfileModificationParams", |
| 14645 | description: "Additional concrete directory that should be writable.", |
| 14646 | }), |
| 14647 | ], |
| 14648 | { mode: "oneOf" }, |
| 14649 | ); |
| 14650 | |
| 14053 | 14651 | export type V2ThreadResumeParams__ContentItem = |
| 14054 | 14652 | | { readonly text: string; readonly type: "input_text" } |
| 14055 | 14653 | | { |
| ... | ... | @@ -14106,6 +14704,25 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( |
| 14106 | 14704 | "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.", |
| 14107 | 14705 | }); |
| 14108 | 14706 | |
| 14707 | export type V2ThreadResumeResponse__ActivePermissionProfileModification = { |
| 14708 | readonly path: V2ThreadResumeResponse__AbsolutePathBuf; |
| 14709 | readonly type: "additionalWritableRoot"; |
| 14710 | }; |
| 14711 | export const V2ThreadResumeResponse__ActivePermissionProfileModification = Schema.Union( |
| 14712 | [ |
| 14713 | Schema.Struct({ |
| 14714 | path: V2ThreadResumeResponse__AbsolutePathBuf, |
| 14715 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 14716 | title: "AdditionalWritableRootActivePermissionProfileModificationType", |
| 14717 | }), |
| 14718 | }).annotate({ |
| 14719 | title: "AdditionalWritableRootActivePermissionProfileModification", |
| 14720 | description: "Additional concrete directory that should be writable.", |
| 14721 | }), |
| 14722 | ], |
| 14723 | { mode: "oneOf" }, |
| 14724 | ); |
| 14725 | |
| 14109 | 14726 | export type V2ThreadResumeResponse__CommandAction = |
| 14110 | 14727 | | { |
| 14111 | 14728 | readonly command: string; |
| ... | ... | @@ -14148,112 +14765,6 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union( |
| 14148 | 14765 | { mode: "oneOf" }, |
| 14149 | 14766 | ); |
| 14150 | 14767 | |
| 14151 | | export type V2ThreadResumeResponse__SandboxPolicy = |
| 14152 | | | { readonly type: "dangerFullAccess" } |
| 14153 | | | { |
| 14154 | | readonly access?: |
| 14155 | | | { |
| 14156 | | readonly includePlatformDefaults?: boolean; |
| 14157 | | readonly readableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 14158 | | readonly type: "restricted"; |
| 14159 | | } |
| 14160 | | | { readonly type: "fullAccess" }; |
| 14161 | | readonly networkAccess?: boolean; |
| 14162 | | readonly type: "readOnly"; |
| 14163 | | } |
| 14164 | | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 14165 | | | { |
| 14166 | | readonly excludeSlashTmp?: boolean; |
| 14167 | | readonly excludeTmpdirEnvVar?: boolean; |
| 14168 | | readonly networkAccess?: boolean; |
| 14169 | | readonly readOnlyAccess?: |
| 14170 | | | { |
| 14171 | | readonly includePlatformDefaults?: boolean; |
| 14172 | | readonly readableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 14173 | | readonly type: "restricted"; |
| 14174 | | } |
| 14175 | | | { readonly type: "fullAccess" }; |
| 14176 | | readonly type: "workspaceWrite"; |
| 14177 | | readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 14178 | | }; |
| 14179 | | export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union( |
| 14180 | | [ |
| 14181 | | Schema.Struct({ |
| 14182 | | type: Schema.Literal("dangerFullAccess").annotate({ |
| 14183 | | title: "DangerFullAccessSandboxPolicyType", |
| 14184 | | }), |
| 14185 | | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 14186 | | Schema.Struct({ |
| 14187 | | access: Schema.optionalKey( |
| 14188 | | Schema.Union( |
| 14189 | | [ |
| 14190 | | Schema.Struct({ |
| 14191 | | includePlatformDefaults: Schema.optionalKey( |
| 14192 | | Schema.Boolean.annotate({ default: true }), |
| 14193 | | ), |
| 14194 | | readableRoots: Schema.optionalKey( |
| 14195 | | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 14196 | | ), |
| 14197 | | type: Schema.Literal("restricted").annotate({ |
| 14198 | | title: "RestrictedReadOnlyAccessType", |
| 14199 | | }), |
| 14200 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 14201 | | Schema.Struct({ |
| 14202 | | type: Schema.Literal("fullAccess").annotate({ |
| 14203 | | title: "FullAccessReadOnlyAccessType", |
| 14204 | | }), |
| 14205 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 14206 | | ], |
| 14207 | | { mode: "oneOf" }, |
| 14208 | | ).annotate({ default: { type: "fullAccess" } }), |
| 14209 | | ), |
| 14210 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 14211 | | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 14212 | | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 14213 | | Schema.Struct({ |
| 14214 | | networkAccess: Schema.optionalKey( |
| 14215 | | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 14216 | | ), |
| 14217 | | type: Schema.Literal("externalSandbox").annotate({ |
| 14218 | | title: "ExternalSandboxSandboxPolicyType", |
| 14219 | | }), |
| 14220 | | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 14221 | | Schema.Struct({ |
| 14222 | | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 14223 | | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 14224 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 14225 | | readOnlyAccess: Schema.optionalKey( |
| 14226 | | Schema.Union( |
| 14227 | | [ |
| 14228 | | Schema.Struct({ |
| 14229 | | includePlatformDefaults: Schema.optionalKey( |
| 14230 | | Schema.Boolean.annotate({ default: true }), |
| 14231 | | ), |
| 14232 | | readableRoots: Schema.optionalKey( |
| 14233 | | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 14234 | | ), |
| 14235 | | type: Schema.Literal("restricted").annotate({ |
| 14236 | | title: "RestrictedReadOnlyAccessType", |
| 14237 | | }), |
| 14238 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 14239 | | Schema.Struct({ |
| 14240 | | type: Schema.Literal("fullAccess").annotate({ |
| 14241 | | title: "FullAccessReadOnlyAccessType", |
| 14242 | | }), |
| 14243 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 14244 | | ], |
| 14245 | | { mode: "oneOf" }, |
| 14246 | | ).annotate({ default: { type: "fullAccess" } }), |
| 14247 | | ), |
| 14248 | | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 14249 | | writableRoots: Schema.optionalKey( |
| 14250 | | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 14251 | | ), |
| 14252 | | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 14253 | | ], |
| 14254 | | { mode: "oneOf" }, |
| 14255 | | ); |
| 14256 | | |
| 14257 | 14768 | export type V2ThreadResumeResponse__CollabAgentState = { |
| 14258 | 14769 | readonly message?: string | null; |
| 14259 | 14770 | readonly status: V2ThreadResumeResponse__CollabAgentStatus; |
| ... | ... | @@ -14263,6 +14774,28 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({ |
| 14263 | 14774 | status: V2ThreadResumeResponse__CollabAgentStatus, |
| 14264 | 14775 | }); |
| 14265 | 14776 | |
| 14777 | export type V2ThreadResumeResponse__FileSystemPath = |
| 14778 | | { readonly path: V2ThreadResumeResponse__AbsolutePathBuf; readonly type: "path" } |
| 14779 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 14780 | | { readonly type: "special"; readonly value: V2ThreadResumeResponse__FileSystemSpecialPath }; |
| 14781 | export const V2ThreadResumeResponse__FileSystemPath = Schema.Union( |
| 14782 | [ |
| 14783 | Schema.Struct({ |
| 14784 | path: V2ThreadResumeResponse__AbsolutePathBuf, |
| 14785 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 14786 | }).annotate({ title: "PathFileSystemPath" }), |
| 14787 | Schema.Struct({ |
| 14788 | pattern: Schema.String, |
| 14789 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| 14790 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| 14791 | Schema.Struct({ |
| 14792 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| 14793 | value: V2ThreadResumeResponse__FileSystemSpecialPath, |
| 14794 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 14795 | ], |
| 14796 | { mode: "oneOf" }, |
| 14797 | ); |
| 14798 | |
| 14266 | 14799 | export type V2ThreadResumeResponse__MemoryCitation = { |
| 14267 | 14800 | readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>; |
| 14268 | 14801 | readonly threadIds: ReadonlyArray<string>; |
| ... | ... | @@ -14276,6 +14809,7 @@ export type V2ThreadResumeResponse__CodexErrorInfo = |
| 14276 | 14809 | | "contextWindowExceeded" |
| 14277 | 14810 | | "usageLimitExceeded" |
| 14278 | 14811 | | "serverOverloaded" |
| 14812 | | "cyberPolicy" |
| 14279 | 14813 | | "internalServerError" |
| 14280 | 14814 | | "unauthorized" |
| 14281 | 14815 | | "badRequest" |
| ... | ... | @@ -14297,6 +14831,7 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 14297 | 14831 | "contextWindowExceeded", |
| 14298 | 14832 | "usageLimitExceeded", |
| 14299 | 14833 | "serverOverloaded", |
| 14834 | "cyberPolicy", |
| 14300 | 14835 | "internalServerError", |
| 14301 | 14836 | "unauthorized", |
| 14302 | 14837 | "badRequest", |
| ... | ... | @@ -14530,6 +15065,7 @@ export type V2ThreadRollbackResponse__CodexErrorInfo = |
| 14530 | 15065 | | "contextWindowExceeded" |
| 14531 | 15066 | | "usageLimitExceeded" |
| 14532 | 15067 | | "serverOverloaded" |
| 15068 | | "cyberPolicy" |
| 14533 | 15069 | | "internalServerError" |
| 14534 | 15070 | | "unauthorized" |
| 14535 | 15071 | | "badRequest" |
| ... | ... | @@ -14551,6 +15087,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 14551 | 15087 | "contextWindowExceeded", |
| 14552 | 15088 | "usageLimitExceeded", |
| 14553 | 15089 | "serverOverloaded", |
| 15090 | "cyberPolicy", |
| 14554 | 15091 | "internalServerError", |
| 14555 | 15092 | "unauthorized", |
| 14556 | 15093 | "badRequest", |
| ... | ... | @@ -14784,6 +15321,7 @@ export type V2ThreadStartedNotification__CodexErrorInfo = |
| 14784 | 15321 | | "contextWindowExceeded" |
| 14785 | 15322 | | "usageLimitExceeded" |
| 14786 | 15323 | | "serverOverloaded" |
| 15324 | | "cyberPolicy" |
| 14787 | 15325 | | "internalServerError" |
| 14788 | 15326 | | "unauthorized" |
| 14789 | 15327 | | "badRequest" |
| ... | ... | @@ -14805,6 +15343,7 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 14805 | 15343 | "contextWindowExceeded", |
| 14806 | 15344 | "usageLimitExceeded", |
| 14807 | 15345 | "serverOverloaded", |
| 15346 | "cyberPolicy", |
| 14808 | 15347 | "internalServerError", |
| 14809 | 15348 | "unauthorized", |
| 14810 | 15349 | "badRequest", |
| ... | ... | @@ -14974,6 +15513,44 @@ export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( |
| 14974 | 15513 | { mode: "oneOf" }, |
| 14975 | 15514 | ); |
| 14976 | 15515 | |
| 15516 | export type V2ThreadStartParams__PermissionProfileModificationParams = { |
| 15517 | readonly path: V2ThreadStartParams__AbsolutePathBuf; |
| 15518 | readonly type: "additionalWritableRoot"; |
| 15519 | }; |
| 15520 | export const V2ThreadStartParams__PermissionProfileModificationParams = Schema.Union( |
| 15521 | [ |
| 15522 | Schema.Struct({ |
| 15523 | path: V2ThreadStartParams__AbsolutePathBuf, |
| 15524 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 15525 | title: "AdditionalWritableRootPermissionProfileModificationParamsType", |
| 15526 | }), |
| 15527 | }).annotate({ |
| 15528 | title: "AdditionalWritableRootPermissionProfileModificationParams", |
| 15529 | description: "Additional concrete directory that should be writable.", |
| 15530 | }), |
| 15531 | ], |
| 15532 | { mode: "oneOf" }, |
| 15533 | ); |
| 15534 | |
| 15535 | export type V2ThreadStartResponse__ActivePermissionProfileModification = { |
| 15536 | readonly path: V2ThreadStartResponse__AbsolutePathBuf; |
| 15537 | readonly type: "additionalWritableRoot"; |
| 15538 | }; |
| 15539 | export const V2ThreadStartResponse__ActivePermissionProfileModification = Schema.Union( |
| 15540 | [ |
| 15541 | Schema.Struct({ |
| 15542 | path: V2ThreadStartResponse__AbsolutePathBuf, |
| 15543 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 15544 | title: "AdditionalWritableRootActivePermissionProfileModificationType", |
| 15545 | }), |
| 15546 | }).annotate({ |
| 15547 | title: "AdditionalWritableRootActivePermissionProfileModification", |
| 15548 | description: "Additional concrete directory that should be writable.", |
| 15549 | }), |
| 15550 | ], |
| 15551 | { mode: "oneOf" }, |
| 15552 | ); |
| 15553 | |
| 14977 | 15554 | export type V2ThreadStartResponse__CommandAction = |
| 14978 | 15555 | | { |
| 14979 | 15556 | readonly command: string; |
| ... | ... | @@ -15016,112 +15593,6 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union( |
| 15016 | 15593 | { mode: "oneOf" }, |
| 15017 | 15594 | ); |
| 15018 | 15595 | |
| 15019 | | export type V2ThreadStartResponse__SandboxPolicy = |
| 15020 | | | { readonly type: "dangerFullAccess" } |
| 15021 | | | { |
| 15022 | | readonly access?: |
| 15023 | | | { |
| 15024 | | readonly includePlatformDefaults?: boolean; |
| 15025 | | readonly readableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 15026 | | readonly type: "restricted"; |
| 15027 | | } |
| 15028 | | | { readonly type: "fullAccess" }; |
| 15029 | | readonly networkAccess?: boolean; |
| 15030 | | readonly type: "readOnly"; |
| 15031 | | } |
| 15032 | | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 15033 | | | { |
| 15034 | | readonly excludeSlashTmp?: boolean; |
| 15035 | | readonly excludeTmpdirEnvVar?: boolean; |
| 15036 | | readonly networkAccess?: boolean; |
| 15037 | | readonly readOnlyAccess?: |
| 15038 | | | { |
| 15039 | | readonly includePlatformDefaults?: boolean; |
| 15040 | | readonly readableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 15041 | | readonly type: "restricted"; |
| 15042 | | } |
| 15043 | | | { readonly type: "fullAccess" }; |
| 15044 | | readonly type: "workspaceWrite"; |
| 15045 | | readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 15046 | | }; |
| 15047 | | export const V2ThreadStartResponse__SandboxPolicy = Schema.Union( |
| 15048 | | [ |
| 15049 | | Schema.Struct({ |
| 15050 | | type: Schema.Literal("dangerFullAccess").annotate({ |
| 15051 | | title: "DangerFullAccessSandboxPolicyType", |
| 15052 | | }), |
| 15053 | | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 15054 | | Schema.Struct({ |
| 15055 | | access: Schema.optionalKey( |
| 15056 | | Schema.Union( |
| 15057 | | [ |
| 15058 | | Schema.Struct({ |
| 15059 | | includePlatformDefaults: Schema.optionalKey( |
| 15060 | | Schema.Boolean.annotate({ default: true }), |
| 15061 | | ), |
| 15062 | | readableRoots: Schema.optionalKey( |
| 15063 | | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 15064 | | ), |
| 15065 | | type: Schema.Literal("restricted").annotate({ |
| 15066 | | title: "RestrictedReadOnlyAccessType", |
| 15067 | | }), |
| 15068 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 15069 | | Schema.Struct({ |
| 15070 | | type: Schema.Literal("fullAccess").annotate({ |
| 15071 | | title: "FullAccessReadOnlyAccessType", |
| 15072 | | }), |
| 15073 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 15074 | | ], |
| 15075 | | { mode: "oneOf" }, |
| 15076 | | ).annotate({ default: { type: "fullAccess" } }), |
| 15077 | | ), |
| 15078 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15079 | | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 15080 | | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 15081 | | Schema.Struct({ |
| 15082 | | networkAccess: Schema.optionalKey( |
| 15083 | | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 15084 | | ), |
| 15085 | | type: Schema.Literal("externalSandbox").annotate({ |
| 15086 | | title: "ExternalSandboxSandboxPolicyType", |
| 15087 | | }), |
| 15088 | | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 15089 | | Schema.Struct({ |
| 15090 | | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15091 | | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15092 | | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 15093 | | readOnlyAccess: Schema.optionalKey( |
| 15094 | | Schema.Union( |
| 15095 | | [ |
| 15096 | | Schema.Struct({ |
| 15097 | | includePlatformDefaults: Schema.optionalKey( |
| 15098 | | Schema.Boolean.annotate({ default: true }), |
| 15099 | | ), |
| 15100 | | readableRoots: Schema.optionalKey( |
| 15101 | | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 15102 | | ), |
| 15103 | | type: Schema.Literal("restricted").annotate({ |
| 15104 | | title: "RestrictedReadOnlyAccessType", |
| 15105 | | }), |
| 15106 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 15107 | | Schema.Struct({ |
| 15108 | | type: Schema.Literal("fullAccess").annotate({ |
| 15109 | | title: "FullAccessReadOnlyAccessType", |
| 15110 | | }), |
| 15111 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 15112 | | ], |
| 15113 | | { mode: "oneOf" }, |
| 15114 | | ).annotate({ default: { type: "fullAccess" } }), |
| 15115 | | ), |
| 15116 | | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 15117 | | writableRoots: Schema.optionalKey( |
| 15118 | | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 15119 | | ), |
| 15120 | | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 15121 | | ], |
| 15122 | | { mode: "oneOf" }, |
| 15123 | | ); |
| 15124 | | |
| 15125 | 15596 | export type V2ThreadStartResponse__CollabAgentState = { |
| 15126 | 15597 | readonly message?: string | null; |
| 15127 | 15598 | readonly status: V2ThreadStartResponse__CollabAgentStatus; |
| ... | ... | @@ -15131,6 +15602,28 @@ export const V2ThreadStartResponse__CollabAgentState = Schema.Struct({ |
| 15131 | 15602 | status: V2ThreadStartResponse__CollabAgentStatus, |
| 15132 | 15603 | }); |
| 15133 | 15604 | |
| 15605 | export type V2ThreadStartResponse__FileSystemPath = |
| 15606 | | { readonly path: V2ThreadStartResponse__AbsolutePathBuf; readonly type: "path" } |
| 15607 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| 15608 | | { readonly type: "special"; readonly value: V2ThreadStartResponse__FileSystemSpecialPath }; |
| 15609 | export const V2ThreadStartResponse__FileSystemPath = Schema.Union( |
| 15610 | [ |
| 15611 | Schema.Struct({ |
| 15612 | path: V2ThreadStartResponse__AbsolutePathBuf, |
| 15613 | type: Schema.Literal("path").annotate({ title: "PathFileSystemPathType" }), |
| 15614 | }).annotate({ title: "PathFileSystemPath" }), |
| 15615 | Schema.Struct({ |
| 15616 | pattern: Schema.String, |
| 15617 | type: Schema.Literal("glob_pattern").annotate({ title: "GlobPatternFileSystemPathType" }), |
| 15618 | }).annotate({ title: "GlobPatternFileSystemPath" }), |
| 15619 | Schema.Struct({ |
| 15620 | type: Schema.Literal("special").annotate({ title: "SpecialFileSystemPathType" }), |
| 15621 | value: V2ThreadStartResponse__FileSystemSpecialPath, |
| 15622 | }).annotate({ title: "SpecialFileSystemPath" }), |
| 15623 | ], |
| 15624 | { mode: "oneOf" }, |
| 15625 | ); |
| 15626 | |
| 15134 | 15627 | export type V2ThreadStartResponse__MemoryCitation = { |
| 15135 | 15628 | readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>; |
| 15136 | 15629 | readonly threadIds: ReadonlyArray<string>; |
| ... | ... | @@ -15144,6 +15637,7 @@ export type V2ThreadStartResponse__CodexErrorInfo = |
| 15144 | 15637 | | "contextWindowExceeded" |
| 15145 | 15638 | | "usageLimitExceeded" |
| 15146 | 15639 | | "serverOverloaded" |
| 15640 | | "cyberPolicy" |
| 15147 | 15641 | | "internalServerError" |
| 15148 | 15642 | | "unauthorized" |
| 15149 | 15643 | | "badRequest" |
| ... | ... | @@ -15165,6 +15659,7 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 15165 | 15659 | "contextWindowExceeded", |
| 15166 | 15660 | "usageLimitExceeded", |
| 15167 | 15661 | "serverOverloaded", |
| 15662 | "cyberPolicy", |
| 15168 | 15663 | "internalServerError", |
| 15169 | 15664 | "unauthorized", |
| 15170 | 15665 | "badRequest", |
| ... | ... | @@ -15374,11 +15869,11 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St |
| 15374 | 15869 | total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, |
| 15375 | 15870 | }); |
| 15376 | 15871 | |
| 15377 | | export type V2ThreadTurnsListResponse__CommandAction = |
| 15872 | export type V2ThreadUnarchiveResponse__CommandAction = |
| 15378 | 15873 | | { |
| 15379 | 15874 | readonly command: string; |
| 15380 | 15875 | readonly name: string; |
| 15381 | | readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf; |
| 15876 | readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf; |
| 15382 | 15877 | readonly type: "read"; |
| 15383 | 15878 | } |
| 15384 | 15879 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | ... | @@ -15389,12 +15884,12 @@ export type V2ThreadTurnsListResponse__CommandAction = |
| 15389 | 15884 | readonly type: "search"; |
| 15390 | 15885 | } |
| 15391 | 15886 | | { readonly command: string; readonly type: "unknown" }; |
| 15392 | | export const V2ThreadTurnsListResponse__CommandAction = Schema.Union( |
| 15887 | export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( |
| 15393 | 15888 | [ |
| 15394 | 15889 | Schema.Struct({ |
| 15395 | 15890 | command: Schema.String, |
| 15396 | 15891 | name: Schema.String, |
| 15397 | | path: V2ThreadTurnsListResponse__AbsolutePathBuf, |
| 15892 | path: V2ThreadUnarchiveResponse__AbsolutePathBuf, |
| 15398 | 15893 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 15399 | 15894 | }).annotate({ title: "ReadCommandAction" }), |
| 15400 | 15895 | Schema.Struct({ |
| ... | ... | @@ -15416,28 +15911,29 @@ export const V2ThreadTurnsListResponse__CommandAction = Schema.Union( |
| 15416 | 15911 | { mode: "oneOf" }, |
| 15417 | 15912 | ); |
| 15418 | 15913 | |
| 15419 | | export type V2ThreadTurnsListResponse__CollabAgentState = { |
| 15914 | export type V2ThreadUnarchiveResponse__CollabAgentState = { |
| 15420 | 15915 | readonly message?: string | null; |
| 15421 | | readonly status: V2ThreadTurnsListResponse__CollabAgentStatus; |
| 15916 | readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus; |
| 15422 | 15917 | }; |
| 15423 | | export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({ |
| 15918 | export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({ |
| 15424 | 15919 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15425 | | status: V2ThreadTurnsListResponse__CollabAgentStatus, |
| 15920 | status: V2ThreadUnarchiveResponse__CollabAgentStatus, |
| 15426 | 15921 | }); |
| 15427 | 15922 | |
| 15428 | | export type V2ThreadTurnsListResponse__MemoryCitation = { |
| 15429 | | readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>; |
| 15923 | export type V2ThreadUnarchiveResponse__MemoryCitation = { |
| 15924 | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; |
| 15430 | 15925 | readonly threadIds: ReadonlyArray<string>; |
| 15431 | 15926 | }; |
| 15432 | | export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({ |
| 15433 | | entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry), |
| 15927 | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ |
| 15928 | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), |
| 15434 | 15929 | threadIds: Schema.Array(Schema.String), |
| 15435 | 15930 | }); |
| 15436 | 15931 | |
| 15437 | | export type V2ThreadTurnsListResponse__CodexErrorInfo = |
| 15932 | export type V2ThreadUnarchiveResponse__CodexErrorInfo = |
| 15438 | 15933 | | "contextWindowExceeded" |
| 15439 | 15934 | | "usageLimitExceeded" |
| 15440 | 15935 | | "serverOverloaded" |
| 15936 | | "cyberPolicy" |
| 15441 | 15937 | | "internalServerError" |
| 15442 | 15938 | | "unauthorized" |
| 15443 | 15939 | | "badRequest" |
| ... | ... | @@ -15450,15 +15946,16 @@ export type V2ThreadTurnsListResponse__CodexErrorInfo = |
| 15450 | 15946 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 15451 | 15947 | | { |
| 15452 | 15948 | readonly activeTurnNotSteerable: { |
| 15453 | | readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind; |
| 15949 | readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind; |
| 15454 | 15950 | }; |
| 15455 | 15951 | }; |
| 15456 | | export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union( |
| 15952 | export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 15457 | 15953 | [ |
| 15458 | 15954 | Schema.Literals([ |
| 15459 | 15955 | "contextWindowExceeded", |
| 15460 | 15956 | "usageLimitExceeded", |
| 15461 | 15957 | "serverOverloaded", |
| 15958 | "cyberPolicy", |
| 15462 | 15959 | "internalServerError", |
| 15463 | 15960 | "unauthorized", |
| 15464 | 15961 | "badRequest", |
| ... | ... | @@ -15526,7 +16023,7 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union( |
| 15526 | 16023 | }), |
| 15527 | 16024 | Schema.Struct({ |
| 15528 | 16025 | activeTurnNotSteerable: Schema.Struct({ |
| 15529 | | turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind, |
| 16026 | turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind, |
| 15530 | 16027 | }), |
| 15531 | 16028 | }).annotate({ |
| 15532 | 16029 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | ... | @@ -15540,33 +16037,33 @@ export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union( |
| 15540 | 16037 | "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.", |
| 15541 | 16038 | }); |
| 15542 | 16039 | |
| 15543 | | export type V2ThreadTurnsListResponse__FileUpdateChange = { |
| 16040 | export type V2ThreadUnarchiveResponse__FileUpdateChange = { |
| 15544 | 16041 | readonly diff: string; |
| 15545 | | readonly kind: V2ThreadTurnsListResponse__PatchChangeKind; |
| 16042 | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; |
| 15546 | 16043 | readonly path: string; |
| 15547 | 16044 | }; |
| 15548 | | export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({ |
| 16045 | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ |
| 15549 | 16046 | diff: Schema.String, |
| 15550 | | kind: V2ThreadTurnsListResponse__PatchChangeKind, |
| 16047 | kind: V2ThreadUnarchiveResponse__PatchChangeKind, |
| 15551 | 16048 | path: Schema.String, |
| 15552 | 16049 | }); |
| 15553 | 16050 | |
| 15554 | | export type V2ThreadTurnsListResponse__UserInput = |
| 16051 | export type V2ThreadUnarchiveResponse__UserInput = |
| 15555 | 16052 | | { |
| 15556 | 16053 | readonly text: string; |
| 15557 | | readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>; |
| 16054 | readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>; |
| 15558 | 16055 | readonly type: "text"; |
| 15559 | 16056 | } |
| 15560 | 16057 | | { readonly type: "image"; readonly url: string } |
| 15561 | 16058 | | { readonly path: string; readonly type: "localImage" } |
| 15562 | 16059 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 15563 | 16060 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 15564 | | export const V2ThreadTurnsListResponse__UserInput = Schema.Union( |
| 16061 | export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( |
| 15565 | 16062 | [ |
| 15566 | 16063 | Schema.Struct({ |
| 15567 | 16064 | text: Schema.String, |
| 15568 | 16065 | text_elements: Schema.optionalKey( |
| 15569 | | Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({ |
| 16066 | Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({ |
| 15570 | 16067 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 15571 | 16068 | default: [], |
| 15572 | 16069 | }), |
| ... | ... | @@ -15595,11 +16092,44 @@ export const V2ThreadTurnsListResponse__UserInput = Schema.Union( |
| 15595 | 16092 | { mode: "oneOf" }, |
| 15596 | 16093 | ); |
| 15597 | 16094 | |
| 15598 | | export type V2ThreadUnarchiveResponse__CommandAction = |
| 16095 | export type V2ThreadUnarchiveResponse__SubAgentSource = |
| 16096 | | "review" |
| 16097 | | "compact" |
| 16098 | | "memory_consolidation" |
| 16099 | | { |
| 16100 | readonly thread_spawn: { |
| 16101 | readonly agent_nickname?: string | null; |
| 16102 | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; |
| 16103 | readonly agent_role?: string | null; |
| 16104 | readonly depth: number; |
| 16105 | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; |
| 16106 | }; |
| 16107 | } |
| 16108 | | { readonly other: string }; |
| 16109 | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( |
| 16110 | [ |
| 16111 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 16112 | Schema.Struct({ |
| 16113 | thread_spawn: Schema.Struct({ |
| 16114 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16115 | agent_path: Schema.optionalKey( |
| 16116 | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), |
| 16117 | ), |
| 16118 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16119 | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), |
| 16120 | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, |
| 16121 | }), |
| 16122 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 16123 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 16124 | ], |
| 16125 | { mode: "oneOf" }, |
| 16126 | ); |
| 16127 | |
| 16128 | export type V2TurnCompletedNotification__CommandAction = |
| 15599 | 16129 | | { |
| 15600 | 16130 | readonly command: string; |
| 15601 | 16131 | readonly name: string; |
| 15602 | | readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf; |
| 16132 | readonly path: V2TurnCompletedNotification__AbsolutePathBuf; |
| 15603 | 16133 | readonly type: "read"; |
| 15604 | 16134 | } |
| 15605 | 16135 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | ... | @@ -15610,12 +16140,12 @@ export type V2ThreadUnarchiveResponse__CommandAction = |
| 15610 | 16140 | readonly type: "search"; |
| 15611 | 16141 | } |
| 15612 | 16142 | | { readonly command: string; readonly type: "unknown" }; |
| 15613 | | export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( |
| 16143 | export const V2TurnCompletedNotification__CommandAction = Schema.Union( |
| 15614 | 16144 | [ |
| 15615 | 16145 | Schema.Struct({ |
| 15616 | 16146 | command: Schema.String, |
| 15617 | 16147 | name: Schema.String, |
| 15618 | | path: V2ThreadUnarchiveResponse__AbsolutePathBuf, |
| 16148 | path: V2TurnCompletedNotification__AbsolutePathBuf, |
| 15619 | 16149 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 15620 | 16150 | }).annotate({ title: "ReadCommandAction" }), |
| 15621 | 16151 | Schema.Struct({ |
| ... | ... | @@ -15637,28 +16167,29 @@ export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( |
| 15637 | 16167 | { mode: "oneOf" }, |
| 15638 | 16168 | ); |
| 15639 | 16169 | |
| 15640 | | export type V2ThreadUnarchiveResponse__CollabAgentState = { |
| 16170 | export type V2TurnCompletedNotification__CollabAgentState = { |
| 15641 | 16171 | readonly message?: string | null; |
| 15642 | | readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus; |
| 16172 | readonly status: V2TurnCompletedNotification__CollabAgentStatus; |
| 15643 | 16173 | }; |
| 15644 | | export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({ |
| 16174 | export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({ |
| 15645 | 16175 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15646 | | status: V2ThreadUnarchiveResponse__CollabAgentStatus, |
| 16176 | status: V2TurnCompletedNotification__CollabAgentStatus, |
| 15647 | 16177 | }); |
| 15648 | 16178 | |
| 15649 | | export type V2ThreadUnarchiveResponse__MemoryCitation = { |
| 15650 | | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; |
| 16179 | export type V2TurnCompletedNotification__MemoryCitation = { |
| 16180 | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; |
| 15651 | 16181 | readonly threadIds: ReadonlyArray<string>; |
| 15652 | 16182 | }; |
| 15653 | | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ |
| 15654 | | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), |
| 16183 | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ |
| 16184 | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), |
| 15655 | 16185 | threadIds: Schema.Array(Schema.String), |
| 15656 | 16186 | }); |
| 15657 | 16187 | |
| 15658 | | export type V2ThreadUnarchiveResponse__CodexErrorInfo = |
| 16188 | export type V2TurnCompletedNotification__CodexErrorInfo = |
| 15659 | 16189 | | "contextWindowExceeded" |
| 15660 | 16190 | | "usageLimitExceeded" |
| 15661 | 16191 | | "serverOverloaded" |
| 16192 | | "cyberPolicy" |
| 15662 | 16193 | | "internalServerError" |
| 15663 | 16194 | | "unauthorized" |
| 15664 | 16195 | | "badRequest" |
| ... | ... | @@ -15671,15 +16202,16 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo = |
| 15671 | 16202 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 15672 | 16203 | | { |
| 15673 | 16204 | readonly activeTurnNotSteerable: { |
| 15674 | | readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind; |
| 16205 | readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind; |
| 15675 | 16206 | }; |
| 15676 | 16207 | }; |
| 15677 | | export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 16208 | export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 15678 | 16209 | [ |
| 15679 | 16210 | Schema.Literals([ |
| 15680 | 16211 | "contextWindowExceeded", |
| 15681 | 16212 | "usageLimitExceeded", |
| 15682 | 16213 | "serverOverloaded", |
| 16214 | "cyberPolicy", |
| 15683 | 16215 | "internalServerError", |
| 15684 | 16216 | "unauthorized", |
| 15685 | 16217 | "badRequest", |
| ... | ... | @@ -15747,7 +16279,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 15747 | 16279 | }), |
| 15748 | 16280 | Schema.Struct({ |
| 15749 | 16281 | activeTurnNotSteerable: Schema.Struct({ |
| 15750 | | turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind, |
| 16282 | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, |
| 15751 | 16283 | }), |
| 15752 | 16284 | }).annotate({ |
| 15753 | 16285 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | ... | @@ -15761,33 +16293,33 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 15761 | 16293 | "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.", |
| 15762 | 16294 | }); |
| 15763 | 16295 | |
| 15764 | | export type V2ThreadUnarchiveResponse__FileUpdateChange = { |
| 16296 | export type V2TurnCompletedNotification__FileUpdateChange = { |
| 15765 | 16297 | readonly diff: string; |
| 15766 | | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; |
| 16298 | readonly kind: V2TurnCompletedNotification__PatchChangeKind; |
| 15767 | 16299 | readonly path: string; |
| 15768 | 16300 | }; |
| 15769 | | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ |
| 16301 | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ |
| 15770 | 16302 | diff: Schema.String, |
| 15771 | | kind: V2ThreadUnarchiveResponse__PatchChangeKind, |
| 16303 | kind: V2TurnCompletedNotification__PatchChangeKind, |
| 15772 | 16304 | path: Schema.String, |
| 15773 | 16305 | }); |
| 15774 | 16306 | |
| 15775 | | export type V2ThreadUnarchiveResponse__UserInput = |
| 16307 | export type V2TurnCompletedNotification__UserInput = |
| 15776 | 16308 | | { |
| 15777 | 16309 | readonly text: string; |
| 15778 | | readonly text_elements?: ReadonlyArray<V2ThreadUnarchiveResponse__TextElement>; |
| 16310 | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; |
| 15779 | 16311 | readonly type: "text"; |
| 15780 | 16312 | } |
| 15781 | 16313 | | { readonly type: "image"; readonly url: string } |
| 15782 | 16314 | | { readonly path: string; readonly type: "localImage" } |
| 15783 | 16315 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 15784 | 16316 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 15785 | | export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( |
| 16317 | export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| 15786 | 16318 | [ |
| 15787 | 16319 | Schema.Struct({ |
| 15788 | 16320 | text: Schema.String, |
| 15789 | 16321 | text_elements: Schema.optionalKey( |
| 15790 | | Schema.Array(V2ThreadUnarchiveResponse__TextElement).annotate({ |
| 16322 | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ |
| 15791 | 16323 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 15792 | 16324 | default: [], |
| 15793 | 16325 | }), |
| ... | ... | @@ -15816,44 +16348,20 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( |
| 15816 | 16348 | { mode: "oneOf" }, |
| 15817 | 16349 | ); |
| 15818 | 16350 | |
| 15819 | | export type V2ThreadUnarchiveResponse__SubAgentSource = |
| 15820 | | | "review" |
| 15821 | | | "compact" |
| 15822 | | | "memory_consolidation" |
| 15823 | | | { |
| 15824 | | readonly thread_spawn: { |
| 15825 | | readonly agent_nickname?: string | null; |
| 15826 | | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; |
| 15827 | | readonly agent_role?: string | null; |
| 15828 | | readonly depth: number; |
| 15829 | | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; |
| 15830 | | }; |
| 15831 | | } |
| 15832 | | | { readonly other: string }; |
| 15833 | | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( |
| 15834 | | [ |
| 15835 | | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 15836 | | Schema.Struct({ |
| 15837 | | thread_spawn: Schema.Struct({ |
| 15838 | | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15839 | | agent_path: Schema.optionalKey( |
| 15840 | | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), |
| 15841 | | ), |
| 15842 | | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15843 | | depth: Schema.Number.annotate({ format: "int32" }).check(Schema.isInt()), |
| 15844 | | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, |
| 15845 | | }), |
| 15846 | | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 15847 | | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 15848 | | ], |
| 15849 | | { mode: "oneOf" }, |
| 15850 | | ); |
| 16351 | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { |
| 16352 | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; |
| 16353 | readonly step: string; |
| 16354 | }; |
| 16355 | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ |
| 16356 | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, |
| 16357 | step: Schema.String, |
| 16358 | }); |
| 15851 | 16359 | |
| 15852 | | export type V2TurnCompletedNotification__CommandAction = |
| 16360 | export type V2TurnStartedNotification__CommandAction = |
| 15853 | 16361 | | { |
| 15854 | 16362 | readonly command: string; |
| 15855 | 16363 | readonly name: string; |
| 15856 | | readonly path: V2TurnCompletedNotification__AbsolutePathBuf; |
| 16364 | readonly path: V2TurnStartedNotification__AbsolutePathBuf; |
| 15857 | 16365 | readonly type: "read"; |
| 15858 | 16366 | } |
| 15859 | 16367 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | ... | @@ -15864,242 +16372,12 @@ export type V2TurnCompletedNotification__CommandAction = |
| 15864 | 16372 | readonly type: "search"; |
| 15865 | 16373 | } |
| 15866 | 16374 | | { readonly command: string; readonly type: "unknown" }; |
| 15867 | | export const V2TurnCompletedNotification__CommandAction = Schema.Union( |
| 16375 | export const V2TurnStartedNotification__CommandAction = Schema.Union( |
| 15868 | 16376 | [ |
| 15869 | 16377 | Schema.Struct({ |
| 15870 | 16378 | command: Schema.String, |
| 15871 | 16379 | name: Schema.String, |
| 15872 | | path: V2TurnCompletedNotification__AbsolutePathBuf, |
| 15873 | | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 15874 | | }).annotate({ title: "ReadCommandAction" }), |
| 15875 | | Schema.Struct({ |
| 15876 | | command: Schema.String, |
| 15877 | | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15878 | | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| 15879 | | }).annotate({ title: "ListFilesCommandAction" }), |
| 15880 | | Schema.Struct({ |
| 15881 | | command: Schema.String, |
| 15882 | | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15883 | | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15884 | | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| 15885 | | }).annotate({ title: "SearchCommandAction" }), |
| 15886 | | Schema.Struct({ |
| 15887 | | command: Schema.String, |
| 15888 | | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| 15889 | | }).annotate({ title: "UnknownCommandAction" }), |
| 15890 | | ], |
| 15891 | | { mode: "oneOf" }, |
| 15892 | | ); |
| 15893 | | |
| 15894 | | export type V2TurnCompletedNotification__CollabAgentState = { |
| 15895 | | readonly message?: string | null; |
| 15896 | | readonly status: V2TurnCompletedNotification__CollabAgentStatus; |
| 15897 | | }; |
| 15898 | | export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({ |
| 15899 | | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15900 | | status: V2TurnCompletedNotification__CollabAgentStatus, |
| 15901 | | }); |
| 15902 | | |
| 15903 | | export type V2TurnCompletedNotification__MemoryCitation = { |
| 15904 | | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; |
| 15905 | | readonly threadIds: ReadonlyArray<string>; |
| 15906 | | }; |
| 15907 | | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ |
| 15908 | | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), |
| 15909 | | threadIds: Schema.Array(Schema.String), |
| 15910 | | }); |
| 15911 | | |
| 15912 | | export type V2TurnCompletedNotification__CodexErrorInfo = |
| 15913 | | | "contextWindowExceeded" |
| 15914 | | | "usageLimitExceeded" |
| 15915 | | | "serverOverloaded" |
| 15916 | | | "internalServerError" |
| 15917 | | | "unauthorized" |
| 15918 | | | "badRequest" |
| 15919 | | | "threadRollbackFailed" |
| 15920 | | | "sandboxError" |
| 15921 | | | "other" |
| 15922 | | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 15923 | | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 15924 | | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } |
| 15925 | | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 15926 | | | { |
| 15927 | | readonly activeTurnNotSteerable: { |
| 15928 | | readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind; |
| 15929 | | }; |
| 15930 | | }; |
| 15931 | | export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 15932 | | [ |
| 15933 | | Schema.Literals([ |
| 15934 | | "contextWindowExceeded", |
| 15935 | | "usageLimitExceeded", |
| 15936 | | "serverOverloaded", |
| 15937 | | "internalServerError", |
| 15938 | | "unauthorized", |
| 15939 | | "badRequest", |
| 15940 | | "threadRollbackFailed", |
| 15941 | | "sandboxError", |
| 15942 | | "other", |
| 15943 | | ]), |
| 15944 | | Schema.Struct({ |
| 15945 | | httpConnectionFailed: Schema.Struct({ |
| 15946 | | httpStatusCode: Schema.optionalKey( |
| 15947 | | Schema.Union([ |
| 15948 | | Schema.Number.annotate({ format: "uint16" }) |
| 15949 | | .check(Schema.isInt()) |
| 15950 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 15951 | | Schema.Null, |
| 15952 | | ]), |
| 15953 | | ), |
| 15954 | | }), |
| 15955 | | }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }), |
| 15956 | | Schema.Struct({ |
| 15957 | | responseStreamConnectionFailed: Schema.Struct({ |
| 15958 | | httpStatusCode: Schema.optionalKey( |
| 15959 | | Schema.Union([ |
| 15960 | | Schema.Number.annotate({ format: "uint16" }) |
| 15961 | | .check(Schema.isInt()) |
| 15962 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 15963 | | Schema.Null, |
| 15964 | | ]), |
| 15965 | | ), |
| 15966 | | }), |
| 15967 | | }).annotate({ |
| 15968 | | title: "ResponseStreamConnectionFailedCodexErrorInfo", |
| 15969 | | description: "Failed to connect to the response SSE stream.", |
| 15970 | | }), |
| 15971 | | Schema.Struct({ |
| 15972 | | responseStreamDisconnected: Schema.Struct({ |
| 15973 | | httpStatusCode: Schema.optionalKey( |
| 15974 | | Schema.Union([ |
| 15975 | | Schema.Number.annotate({ format: "uint16" }) |
| 15976 | | .check(Schema.isInt()) |
| 15977 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 15978 | | Schema.Null, |
| 15979 | | ]), |
| 15980 | | ), |
| 15981 | | }), |
| 15982 | | }).annotate({ |
| 15983 | | title: "ResponseStreamDisconnectedCodexErrorInfo", |
| 15984 | | description: |
| 15985 | | "The response SSE stream disconnected in the middle of a turn before completion.", |
| 15986 | | }), |
| 15987 | | Schema.Struct({ |
| 15988 | | responseTooManyFailedAttempts: Schema.Struct({ |
| 15989 | | httpStatusCode: Schema.optionalKey( |
| 15990 | | Schema.Union([ |
| 15991 | | Schema.Number.annotate({ format: "uint16" }) |
| 15992 | | .check(Schema.isInt()) |
| 15993 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 15994 | | Schema.Null, |
| 15995 | | ]), |
| 15996 | | ), |
| 15997 | | }), |
| 15998 | | }).annotate({ |
| 15999 | | title: "ResponseTooManyFailedAttemptsCodexErrorInfo", |
| 16000 | | description: "Reached the retry limit for responses.", |
| 16001 | | }), |
| 16002 | | Schema.Struct({ |
| 16003 | | activeTurnNotSteerable: Schema.Struct({ |
| 16004 | | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, |
| 16005 | | }), |
| 16006 | | }).annotate({ |
| 16007 | | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| 16008 | | description: |
| 16009 | | "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.", |
| 16010 | | }), |
| 16011 | | ], |
| 16012 | | { mode: "oneOf" }, |
| 16013 | | ).annotate({ |
| 16014 | | description: |
| 16015 | | "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
| 16016 | | }); |
| 16017 | | |
| 16018 | | export type V2TurnCompletedNotification__FileUpdateChange = { |
| 16019 | | readonly diff: string; |
| 16020 | | readonly kind: V2TurnCompletedNotification__PatchChangeKind; |
| 16021 | | readonly path: string; |
| 16022 | | }; |
| 16023 | | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ |
| 16024 | | diff: Schema.String, |
| 16025 | | kind: V2TurnCompletedNotification__PatchChangeKind, |
| 16026 | | path: Schema.String, |
| 16027 | | }); |
| 16028 | | |
| 16029 | | export type V2TurnCompletedNotification__UserInput = |
| 16030 | | | { |
| 16031 | | readonly text: string; |
| 16032 | | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; |
| 16033 | | readonly type: "text"; |
| 16034 | | } |
| 16035 | | | { readonly type: "image"; readonly url: string } |
| 16036 | | | { readonly path: string; readonly type: "localImage" } |
| 16037 | | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 16038 | | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 16039 | | export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| 16040 | | [ |
| 16041 | | Schema.Struct({ |
| 16042 | | text: Schema.String, |
| 16043 | | text_elements: Schema.optionalKey( |
| 16044 | | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ |
| 16045 | | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 16046 | | default: [], |
| 16047 | | }), |
| 16048 | | ), |
| 16049 | | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 16050 | | }).annotate({ title: "TextUserInput" }), |
| 16051 | | Schema.Struct({ |
| 16052 | | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 16053 | | url: Schema.String, |
| 16054 | | }).annotate({ title: "ImageUserInput" }), |
| 16055 | | Schema.Struct({ |
| 16056 | | path: Schema.String, |
| 16057 | | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 16058 | | }).annotate({ title: "LocalImageUserInput" }), |
| 16059 | | Schema.Struct({ |
| 16060 | | name: Schema.String, |
| 16061 | | path: Schema.String, |
| 16062 | | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| 16063 | | }).annotate({ title: "SkillUserInput" }), |
| 16064 | | Schema.Struct({ |
| 16065 | | name: Schema.String, |
| 16066 | | path: Schema.String, |
| 16067 | | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| 16068 | | }).annotate({ title: "MentionUserInput" }), |
| 16069 | | ], |
| 16070 | | { mode: "oneOf" }, |
| 16071 | | ); |
| 16072 | | |
| 16073 | | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { |
| 16074 | | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; |
| 16075 | | readonly step: string; |
| 16076 | | }; |
| 16077 | | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ |
| 16078 | | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, |
| 16079 | | step: Schema.String, |
| 16080 | | }); |
| 16081 | | |
| 16082 | | export type V2TurnStartedNotification__CommandAction = |
| 16083 | | | { |
| 16084 | | readonly command: string; |
| 16085 | | readonly name: string; |
| 16086 | | readonly path: V2TurnStartedNotification__AbsolutePathBuf; |
| 16087 | | readonly type: "read"; |
| 16088 | | } |
| 16089 | | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| 16090 | | | { |
| 16091 | | readonly command: string; |
| 16092 | | readonly path?: string | null; |
| 16093 | | readonly query?: string | null; |
| 16094 | | readonly type: "search"; |
| 16095 | | } |
| 16096 | | | { readonly command: string; readonly type: "unknown" }; |
| 16097 | | export const V2TurnStartedNotification__CommandAction = Schema.Union( |
| 16098 | | [ |
| 16099 | | Schema.Struct({ |
| 16100 | | command: Schema.String, |
| 16101 | | name: Schema.String, |
| 16102 | | path: V2TurnStartedNotification__AbsolutePathBuf, |
| 16380 | path: V2TurnStartedNotification__AbsolutePathBuf, |
| 16103 | 16381 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 16104 | 16382 | }).annotate({ title: "ReadCommandAction" }), |
| 16105 | 16383 | Schema.Struct({ |
| ... | ... | @@ -16143,6 +16421,7 @@ export type V2TurnStartedNotification__CodexErrorInfo = |
| 16143 | 16421 | | "contextWindowExceeded" |
| 16144 | 16422 | | "usageLimitExceeded" |
| 16145 | 16423 | | "serverOverloaded" |
| 16424 | | "cyberPolicy" |
| 16146 | 16425 | | "internalServerError" |
| 16147 | 16426 | | "unauthorized" |
| 16148 | 16427 | | "badRequest" |
| ... | ... | @@ -16164,6 +16443,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 16164 | 16443 | "contextWindowExceeded", |
| 16165 | 16444 | "usageLimitExceeded", |
| 16166 | 16445 | "serverOverloaded", |
| 16446 | "cyberPolicy", |
| 16167 | 16447 | "internalServerError", |
| 16168 | 16448 | "unauthorized", |
| 16169 | 16449 | "badRequest", |
| ... | ... | @@ -16300,31 +16580,33 @@ export const V2TurnStartedNotification__UserInput = Schema.Union( |
| 16300 | 16580 | { mode: "oneOf" }, |
| 16301 | 16581 | ); |
| 16302 | 16582 | |
| 16583 | export type V2TurnStartParams__PermissionProfileModificationParams = { |
| 16584 | readonly path: V2TurnStartParams__AbsolutePathBuf; |
| 16585 | readonly type: "additionalWritableRoot"; |
| 16586 | }; |
| 16587 | export const V2TurnStartParams__PermissionProfileModificationParams = Schema.Union( |
| 16588 | [ |
| 16589 | Schema.Struct({ |
| 16590 | path: V2TurnStartParams__AbsolutePathBuf, |
| 16591 | type: Schema.Literal("additionalWritableRoot").annotate({ |
| 16592 | title: "AdditionalWritableRootPermissionProfileModificationParamsType", |
| 16593 | }), |
| 16594 | }).annotate({ |
| 16595 | title: "AdditionalWritableRootPermissionProfileModificationParams", |
| 16596 | description: "Additional concrete directory that should be writable.", |
| 16597 | }), |
| 16598 | ], |
| 16599 | { mode: "oneOf" }, |
| 16600 | ); |
| 16601 | |
| 16303 | 16602 | export type V2TurnStartParams__SandboxPolicy = |
| 16304 | 16603 | | { readonly type: "dangerFullAccess" } |
| 16305 | | | { |
| 16306 | | readonly access?: |
| 16307 | | | { |
| 16308 | | readonly includePlatformDefaults?: boolean; |
| 16309 | | readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 16310 | | readonly type: "restricted"; |
| 16311 | | } |
| 16312 | | | { readonly type: "fullAccess" }; |
| 16313 | | readonly networkAccess?: boolean; |
| 16314 | | readonly type: "readOnly"; |
| 16315 | | } |
| 16604 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 16316 | 16605 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 16317 | 16606 | | { |
| 16318 | 16607 | readonly excludeSlashTmp?: boolean; |
| 16319 | 16608 | readonly excludeTmpdirEnvVar?: boolean; |
| 16320 | 16609 | readonly networkAccess?: boolean; |
| 16321 | | readonly readOnlyAccess?: |
| 16322 | | | { |
| 16323 | | readonly includePlatformDefaults?: boolean; |
| 16324 | | readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 16325 | | readonly type: "restricted"; |
| 16326 | | } |
| 16327 | | | { readonly type: "fullAccess" }; |
| 16328 | 16610 | readonly type: "workspaceWrite"; |
| 16329 | 16611 | readonly writableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 16330 | 16612 | }; |
| ... | ... | @@ -16336,29 +16618,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union( |
| 16336 | 16618 | }), |
| 16337 | 16619 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 16338 | 16620 | Schema.Struct({ |
| 16339 | | access: Schema.optionalKey( |
| 16340 | | Schema.Union( |
| 16341 | | [ |
| 16342 | | Schema.Struct({ |
| 16343 | | includePlatformDefaults: Schema.optionalKey( |
| 16344 | | Schema.Boolean.annotate({ default: true }), |
| 16345 | | ), |
| 16346 | | readableRoots: Schema.optionalKey( |
| 16347 | | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 16348 | | ), |
| 16349 | | type: Schema.Literal("restricted").annotate({ |
| 16350 | | title: "RestrictedReadOnlyAccessType", |
| 16351 | | }), |
| 16352 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 16353 | | Schema.Struct({ |
| 16354 | | type: Schema.Literal("fullAccess").annotate({ |
| 16355 | | title: "FullAccessReadOnlyAccessType", |
| 16356 | | }), |
| 16357 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 16358 | | ], |
| 16359 | | { mode: "oneOf" }, |
| 16360 | | ).annotate({ default: { type: "fullAccess" } }), |
| 16361 | | ), |
| 16362 | 16621 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16363 | 16622 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 16364 | 16623 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| ... | ... | @@ -16374,29 +16633,6 @@ export const V2TurnStartParams__SandboxPolicy = Schema.Union( |
| 16374 | 16633 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16375 | 16634 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16376 | 16635 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 16377 | | readOnlyAccess: Schema.optionalKey( |
| 16378 | | Schema.Union( |
| 16379 | | [ |
| 16380 | | Schema.Struct({ |
| 16381 | | includePlatformDefaults: Schema.optionalKey( |
| 16382 | | Schema.Boolean.annotate({ default: true }), |
| 16383 | | ), |
| 16384 | | readableRoots: Schema.optionalKey( |
| 16385 | | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 16386 | | ), |
| 16387 | | type: Schema.Literal("restricted").annotate({ |
| 16388 | | title: "RestrictedReadOnlyAccessType", |
| 16389 | | }), |
| 16390 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 16391 | | Schema.Struct({ |
| 16392 | | type: Schema.Literal("fullAccess").annotate({ |
| 16393 | | title: "FullAccessReadOnlyAccessType", |
| 16394 | | }), |
| 16395 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 16396 | | ], |
| 16397 | | { mode: "oneOf" }, |
| 16398 | | ).annotate({ default: { type: "fullAccess" } }), |
| 16399 | | ), |
| 16400 | 16636 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 16401 | 16637 | writableRoots: Schema.optionalKey( |
| 16402 | 16638 | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| ... | ... | @@ -16527,6 +16763,7 @@ export type V2TurnStartResponse__CodexErrorInfo = |
| 16527 | 16763 | | "contextWindowExceeded" |
| 16528 | 16764 | | "usageLimitExceeded" |
| 16529 | 16765 | | "serverOverloaded" |
| 16766 | | "cyberPolicy" |
| 16530 | 16767 | | "internalServerError" |
| 16531 | 16768 | | "unauthorized" |
| 16532 | 16769 | | "badRequest" |
| ... | ... | @@ -16548,6 +16785,7 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 16548 | 16785 | "contextWindowExceeded", |
| 16549 | 16786 | "usageLimitExceeded", |
| 16550 | 16787 | "serverOverloaded", |
| 16788 | "cyberPolicy", |
| 16551 | 16789 | "internalServerError", |
| 16552 | 16790 | "unauthorized", |
| 16553 | 16791 | "badRequest", |
| ... | ... | @@ -16858,7 +17096,7 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 16858 | 17096 | sandboxPolicy: Schema.optionalKey( |
| 16859 | 17097 | Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({ |
| 16860 | 17098 | description: |
| 16861 | | "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.", |
| 17099 | "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with `permissionProfile`.", |
| 16862 | 17100 | }), |
| 16863 | 17101 | ), |
| 16864 | 17102 | size: Schema.optionalKey( |
| ... | ... | @@ -16898,6 +17136,15 @@ export const ClientRequest__CommandExecParams = Schema.Struct({ |
| 16898 | 17136 | "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.", |
| 16899 | 17137 | }); |
| 16900 | 17138 | |
| 17139 | export type ClientRequest__FileSystemSandboxEntry = { |
| 17140 | readonly access: ClientRequest__FileSystemAccessMode; |
| 17141 | readonly path: ClientRequest__FileSystemPath; |
| 17142 | }; |
| 17143 | export const ClientRequest__FileSystemSandboxEntry = Schema.Struct({ |
| 17144 | access: ClientRequest__FileSystemAccessMode, |
| 17145 | path: ClientRequest__FileSystemPath, |
| 17146 | }); |
| 17147 | |
| 16901 | 17148 | export type ClientRequest__FunctionCallOutputBody = |
| 16902 | 17149 | | string |
| 16903 | 17150 | | ReadonlyArray<ClientRequest__FunctionCallOutputContentItem>; |
| ... | ... | @@ -16932,6 +17179,32 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({ |
| 16932 | 17179 | ), |
| 16933 | 17180 | }); |
| 16934 | 17181 | |
| 17182 | export type ClientRequest__PluginShareSaveParams = { |
| 17183 | readonly discoverability?: ClientRequest__PluginShareDiscoverability | null; |
| 17184 | readonly pluginPath: ClientRequest__AbsolutePathBuf; |
| 17185 | readonly remotePluginId?: string | null; |
| 17186 | readonly shareTargets?: ReadonlyArray<ClientRequest__PluginShareTarget> | null; |
| 17187 | }; |
| 17188 | export const ClientRequest__PluginShareSaveParams = Schema.Struct({ |
| 17189 | discoverability: Schema.optionalKey( |
| 17190 | Schema.Union([ClientRequest__PluginShareDiscoverability, Schema.Null]), |
| 17191 | ), |
| 17192 | pluginPath: ClientRequest__AbsolutePathBuf, |
| 17193 | remotePluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17194 | shareTargets: Schema.optionalKey( |
| 17195 | Schema.Union([Schema.Array(ClientRequest__PluginShareTarget), Schema.Null]), |
| 17196 | ), |
| 17197 | }); |
| 17198 | |
| 17199 | export type ClientRequest__PluginShareUpdateTargetsParams = { |
| 17200 | readonly remotePluginId: string; |
| 17201 | readonly shareTargets: ReadonlyArray<ClientRequest__PluginShareTarget>; |
| 17202 | }; |
| 17203 | export const ClientRequest__PluginShareUpdateTargetsParams = Schema.Struct({ |
| 17204 | remotePluginId: Schema.String, |
| 17205 | shareTargets: Schema.Array(ClientRequest__PluginShareTarget), |
| 17206 | }); |
| 17207 | |
| 16935 | 17208 | export type ClientRequest__ExternalAgentConfigMigrationItem = { |
| 16936 | 17209 | readonly cwd?: string | null; |
| 16937 | 17210 | readonly description: string; |
| ... | ... | @@ -16953,17 +17226,6 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({ |
| 16953 | 17226 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, |
| 16954 | 17227 | }); |
| 16955 | 17228 | |
| 16956 | | export type ClientRequest__DeviceKeySignParams = { |
| 16957 | | readonly keyId: string; |
| 16958 | | readonly payload: ClientRequest__DeviceKeySignPayload; |
| 16959 | | }; |
| 16960 | | export const ClientRequest__DeviceKeySignParams = Schema.Struct({ |
| 16961 | | keyId: Schema.String, |
| 16962 | | payload: ClientRequest__DeviceKeySignPayload, |
| 16963 | | }).annotate({ |
| 16964 | | description: "Sign an accepted structured payload with a controller-local device key.", |
| 16965 | | }); |
| 16966 | | |
| 16967 | 17229 | export type ClientRequest__TurnStartParams = { |
| 16968 | 17230 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| 16969 | 17231 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| ... | ... | @@ -16974,7 +17236,7 @@ export type ClientRequest__TurnStartParams = { |
| 16974 | 17236 | readonly outputSchema?: unknown; |
| 16975 | 17237 | readonly personality?: ClientRequest__Personality | null; |
| 16976 | 17238 | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; |
| 16977 | | readonly serviceTier?: ClientRequest__ServiceTier | null | null; |
| 17239 | readonly serviceTier?: string | null; |
| 16978 | 17240 | readonly summary?: ClientRequest__ReasoningSummary | null; |
| 16979 | 17241 | readonly threadId: string; |
| 16980 | 17242 | }; |
| ... | ... | @@ -17029,9 +17291,12 @@ export const ClientRequest__TurnStartParams = Schema.Struct({ |
| 17029 | 17291 | }), |
| 17030 | 17292 | ), |
| 17031 | 17293 | serviceTier: Schema.optionalKey( |
| 17032 | | Schema.Union([Schema.Union([ClientRequest__ServiceTier, Schema.Null]), Schema.Null]).annotate({ |
| 17033 | | description: "Override the service tier for this turn and subsequent turns.", |
| 17034 | | }), |
| 17294 | Schema.Union([ |
| 17295 | Schema.String.annotate({ |
| 17296 | description: "Override the service tier for this turn and subsequent turns.", |
| 17297 | }), |
| 17298 | Schema.Null, |
| 17299 | ]), |
| 17035 | 17300 | ), |
| 17036 | 17301 | summary: Schema.optionalKey( |
| 17037 | 17302 | Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({ |
| ... | ... | @@ -17343,6 +17608,8 @@ export type ServerNotification__HookRunSummary = { |
| 17343 | 17608 | | "project" |
| 17344 | 17609 | | "mdm" |
| 17345 | 17610 | | "sessionFlags" |
| 17611 | | "plugin" |
| 17612 | | "cloudRequirements" |
| 17346 | 17613 | | "legacyManagedConfigFile" |
| 17347 | 17614 | | "legacyManagedConfigMdm" |
| 17348 | 17615 | | "unknown"; |
| ... | ... | @@ -17372,6 +17639,8 @@ export const ServerNotification__HookRunSummary = Schema.Struct({ |
| 17372 | 17639 | "project", |
| 17373 | 17640 | "mdm", |
| 17374 | 17641 | "sessionFlags", |
| 17642 | "plugin", |
| 17643 | "cloudRequirements", |
| 17375 | 17644 | "legacyManagedConfigFile", |
| 17376 | 17645 | "legacyManagedConfigMdm", |
| 17377 | 17646 | "unknown", |
| ... | ... | @@ -17793,6 +18062,17 @@ export const ServerNotification__ThreadStatusChangedNotification = Schema.Struct |
| 17793 | 18062 | threadId: Schema.String, |
| 17794 | 18063 | }); |
| 17795 | 18064 | |
| 18065 | export type ServerNotification__ThreadGoalUpdatedNotification = { |
| 18066 | readonly goal: ServerNotification__ThreadGoal; |
| 18067 | readonly threadId: string; |
| 18068 | readonly turnId?: string | null; |
| 18069 | }; |
| 18070 | export const ServerNotification__ThreadGoalUpdatedNotification = Schema.Struct({ |
| 18071 | goal: ServerNotification__ThreadGoal, |
| 18072 | threadId: Schema.String, |
| 18073 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18074 | }); |
| 18075 | |
| 17796 | 18076 | export type ServerNotification__ThreadTokenUsageUpdatedNotification = { |
| 17797 | 18077 | readonly threadId: string; |
| 17798 | 18078 | readonly tokenUsage: ServerNotification__ThreadTokenUsage; |
| ... | ... | @@ -18073,6 +18353,15 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({ |
| 18073 | 18353 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 18074 | 18354 | }).annotate({ description: "EXPERIMENTAL - app metadata returned by app-list APIs." }); |
| 18075 | 18355 | |
| 18356 | export type V2CommandExecParams__FileSystemSandboxEntry = { |
| 18357 | readonly access: V2CommandExecParams__FileSystemAccessMode; |
| 18358 | readonly path: V2CommandExecParams__FileSystemPath; |
| 18359 | }; |
| 18360 | export const V2CommandExecParams__FileSystemSandboxEntry = Schema.Struct({ |
| 18361 | access: V2CommandExecParams__FileSystemAccessMode, |
| 18362 | path: V2CommandExecParams__FileSystemPath, |
| 18363 | }); |
| 18364 | |
| 18076 | 18365 | export type V2ConfigReadResponse__ConfigLayer = { |
| 18077 | 18366 | readonly config: unknown; |
| 18078 | 18367 | readonly disabledReason?: string | null; |
| ... | ... | @@ -18190,6 +18479,8 @@ export type V2HookCompletedNotification__HookRunSummary = { |
| 18190 | 18479 | | "project" |
| 18191 | 18480 | | "mdm" |
| 18192 | 18481 | | "sessionFlags" |
| 18482 | | "plugin" |
| 18483 | | "cloudRequirements" |
| 18193 | 18484 | | "legacyManagedConfigFile" |
| 18194 | 18485 | | "legacyManagedConfigMdm" |
| 18195 | 18486 | | "unknown"; |
| ... | ... | @@ -18219,6 +18510,8 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ |
| 18219 | 18510 | "project", |
| 18220 | 18511 | "mdm", |
| 18221 | 18512 | "sessionFlags", |
| 18513 | "plugin", |
| 18514 | "cloudRequirements", |
| 18222 | 18515 | "legacyManagedConfigFile", |
| 18223 | 18516 | "legacyManagedConfigMdm", |
| 18224 | 18517 | "unknown", |
| ... | ... | @@ -18230,6 +18523,19 @@ export const V2HookCompletedNotification__HookRunSummary = Schema.Struct({ |
| 18230 | 18523 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18231 | 18524 | }); |
| 18232 | 18525 | |
| 18526 | export type V2HooksListResponse__HooksListEntry = { |
| 18527 | readonly cwd: string; |
| 18528 | readonly errors: ReadonlyArray<V2HooksListResponse__HookErrorInfo>; |
| 18529 | readonly hooks: ReadonlyArray<V2HooksListResponse__HookMetadata>; |
| 18530 | readonly warnings: ReadonlyArray<string>; |
| 18531 | }; |
| 18532 | export const V2HooksListResponse__HooksListEntry = Schema.Struct({ |
| 18533 | cwd: Schema.String, |
| 18534 | errors: Schema.Array(V2HooksListResponse__HookErrorInfo), |
| 18535 | hooks: Schema.Array(V2HooksListResponse__HookMetadata), |
| 18536 | warnings: Schema.Array(Schema.String), |
| 18537 | }); |
| 18538 | |
| 18233 | 18539 | export type V2HookStartedNotification__HookRunSummary = { |
| 18234 | 18540 | readonly completedAt?: number | null; |
| 18235 | 18541 | readonly displayOrder: number; |
| ... | ... | @@ -18246,6 +18552,8 @@ export type V2HookStartedNotification__HookRunSummary = { |
| 18246 | 18552 | | "project" |
| 18247 | 18553 | | "mdm" |
| 18248 | 18554 | | "sessionFlags" |
| 18555 | | "plugin" |
| 18556 | | "cloudRequirements" |
| 18249 | 18557 | | "legacyManagedConfigFile" |
| 18250 | 18558 | | "legacyManagedConfigMdm" |
| 18251 | 18559 | | "unknown"; |
| ... | ... | @@ -18275,6 +18583,8 @@ export const V2HookStartedNotification__HookRunSummary = Schema.Struct({ |
| 18275 | 18583 | "project", |
| 18276 | 18584 | "mdm", |
| 18277 | 18585 | "sessionFlags", |
| 18586 | "plugin", |
| 18587 | "cloudRequirements", |
| 18278 | 18588 | "legacyManagedConfigFile", |
| 18279 | 18589 | "legacyManagedConfigMdm", |
| 18280 | 18590 | "unknown", |
| ... | ... | @@ -19011,13 +19321,19 @@ export type V2ModelListResponse__Model = { |
| 19011 | 19321 | readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>; |
| 19012 | 19322 | readonly isDefault: boolean; |
| 19013 | 19323 | readonly model: string; |
| 19324 | readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>; |
| 19014 | 19325 | readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>; |
| 19015 | 19326 | readonly supportsPersonality?: boolean; |
| 19016 | 19327 | readonly upgrade?: string | null; |
| 19017 | 19328 | readonly upgradeInfo?: V2ModelListResponse__ModelUpgradeInfo | null; |
| 19018 | 19329 | }; |
| 19019 | 19330 | export const V2ModelListResponse__Model = Schema.Struct({ |
| 19020 | | additionalSpeedTiers: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 19331 | additionalSpeedTiers: Schema.optionalKey( |
| 19332 | Schema.Array(Schema.String).annotate({ |
| 19333 | description: "Deprecated: use `serviceTiers` instead.", |
| 19334 | default: [], |
| 19335 | }), |
| 19336 | ), |
| 19021 | 19337 | availabilityNux: Schema.optionalKey( |
| 19022 | 19338 | Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]), |
| 19023 | 19339 | ), |
| ... | ... | @@ -19031,6 +19347,9 @@ export const V2ModelListResponse__Model = Schema.Struct({ |
| 19031 | 19347 | ), |
| 19032 | 19348 | isDefault: Schema.Boolean, |
| 19033 | 19349 | model: Schema.String, |
| 19350 | serviceTiers: Schema.optionalKey( |
| 19351 | Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }), |
| 19352 | ), |
| 19034 | 19353 | supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption), |
| 19035 | 19354 | supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 19036 | 19355 | upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | ... | @@ -19039,46 +19358,21 @@ export const V2ModelListResponse__Model = Schema.Struct({ |
| 19039 | 19358 | ), |
| 19040 | 19359 | }); |
| 19041 | 19360 | |
| 19042 | | export type V2PluginListResponse__PluginSummary = { |
| 19043 | | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; |
| 19044 | | readonly enabled: boolean; |
| 19045 | | readonly id: string; |
| 19046 | | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; |
| 19047 | | readonly installed: boolean; |
| 19048 | | readonly interface?: V2PluginListResponse__PluginInterface | null; |
| 19049 | | readonly name: string; |
| 19050 | | readonly source: V2PluginListResponse__PluginSource; |
| 19051 | | }; |
| 19052 | | export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| 19053 | | authPolicy: V2PluginListResponse__PluginAuthPolicy, |
| 19054 | | enabled: Schema.Boolean, |
| 19055 | | id: Schema.String, |
| 19056 | | installPolicy: V2PluginListResponse__PluginInstallPolicy, |
| 19057 | | installed: Schema.Boolean, |
| 19058 | | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), |
| 19059 | | name: Schema.String, |
| 19060 | | source: V2PluginListResponse__PluginSource, |
| 19061 | | }); |
| 19062 | | |
| 19063 | | export type V2PluginReadResponse__PluginSummary = { |
| 19064 | | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; |
| 19065 | | readonly enabled: boolean; |
| 19066 | | readonly id: string; |
| 19067 | | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; |
| 19068 | | readonly installed: boolean; |
| 19069 | | readonly interface?: V2PluginReadResponse__PluginInterface | null; |
| 19070 | | readonly name: string; |
| 19071 | | readonly source: V2PluginReadResponse__PluginSource; |
| 19361 | export type V2PluginListResponse__PluginShareContext = { |
| 19362 | readonly creatorAccountUserId?: string | null; |
| 19363 | readonly creatorName?: string | null; |
| 19364 | readonly remotePluginId: string; |
| 19365 | readonly shareTargets?: ReadonlyArray<V2PluginListResponse__PluginSharePrincipal> | null; |
| 19366 | readonly shareUrl?: string | null; |
| 19072 | 19367 | }; |
| 19073 | | export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| 19074 | | authPolicy: V2PluginReadResponse__PluginAuthPolicy, |
| 19075 | | enabled: Schema.Boolean, |
| 19076 | | id: Schema.String, |
| 19077 | | installPolicy: V2PluginReadResponse__PluginInstallPolicy, |
| 19078 | | installed: Schema.Boolean, |
| 19079 | | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), |
| 19080 | | name: Schema.String, |
| 19081 | | source: V2PluginReadResponse__PluginSource, |
| 19368 | export const V2PluginListResponse__PluginShareContext = Schema.Struct({ |
| 19369 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19370 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19371 | remotePluginId: Schema.String, |
| 19372 | shareTargets: Schema.optionalKey( |
| 19373 | Schema.Union([Schema.Array(V2PluginListResponse__PluginSharePrincipal), Schema.Null]), |
| 19374 | ), |
| 19375 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19082 | 19376 | }); |
| 19083 | 19377 | |
| 19084 | 19378 | export type V2PluginReadResponse__SkillSummary = { |
| ... | ... | @@ -19086,7 +19380,7 @@ export type V2PluginReadResponse__SkillSummary = { |
| 19086 | 19380 | readonly enabled: boolean; |
| 19087 | 19381 | readonly interface?: V2PluginReadResponse__SkillInterface | null; |
| 19088 | 19382 | readonly name: string; |
| 19089 | | readonly path: V2PluginReadResponse__AbsolutePathBuf; |
| 19383 | readonly path?: V2PluginReadResponse__AbsolutePathBuf | null; |
| 19090 | 19384 | readonly shortDescription?: string | null; |
| 19091 | 19385 | }; |
| 19092 | 19386 | export const V2PluginReadResponse__SkillSummary = Schema.Struct({ |
| ... | ... | @@ -19094,10 +19388,44 @@ export const V2PluginReadResponse__SkillSummary = Schema.Struct({ |
| 19094 | 19388 | enabled: Schema.Boolean, |
| 19095 | 19389 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__SkillInterface, Schema.Null])), |
| 19096 | 19390 | name: Schema.String, |
| 19097 | | path: V2PluginReadResponse__AbsolutePathBuf, |
| 19391 | path: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| 19098 | 19392 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19099 | 19393 | }); |
| 19100 | 19394 | |
| 19395 | export type V2PluginReadResponse__PluginShareContext = { |
| 19396 | readonly creatorAccountUserId?: string | null; |
| 19397 | readonly creatorName?: string | null; |
| 19398 | readonly remotePluginId: string; |
| 19399 | readonly shareTargets?: ReadonlyArray<V2PluginReadResponse__PluginSharePrincipal> | null; |
| 19400 | readonly shareUrl?: string | null; |
| 19401 | }; |
| 19402 | export const V2PluginReadResponse__PluginShareContext = Schema.Struct({ |
| 19403 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19404 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19405 | remotePluginId: Schema.String, |
| 19406 | shareTargets: Schema.optionalKey( |
| 19407 | Schema.Union([Schema.Array(V2PluginReadResponse__PluginSharePrincipal), Schema.Null]), |
| 19408 | ), |
| 19409 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19410 | }); |
| 19411 | |
| 19412 | export type V2PluginShareListResponse__PluginShareContext = { |
| 19413 | readonly creatorAccountUserId?: string | null; |
| 19414 | readonly creatorName?: string | null; |
| 19415 | readonly remotePluginId: string; |
| 19416 | readonly shareTargets?: ReadonlyArray<V2PluginShareListResponse__PluginSharePrincipal> | null; |
| 19417 | readonly shareUrl?: string | null; |
| 19418 | }; |
| 19419 | export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({ |
| 19420 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19421 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19422 | remotePluginId: Schema.String, |
| 19423 | shareTargets: Schema.optionalKey( |
| 19424 | Schema.Union([Schema.Array(V2PluginShareListResponse__PluginSharePrincipal), Schema.Null]), |
| 19425 | ), |
| 19426 | shareUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 19427 | }); |
| 19428 | |
| 19101 | 19429 | export type V2RawResponseItemCompletedNotification__FunctionCallOutputBody = |
| 19102 | 19430 | | string |
| 19103 | 19431 | | ReadonlyArray<V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem>; |
| ... | ... | @@ -19493,6 +19821,15 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({ |
| 19493 | 19821 | ), |
| 19494 | 19822 | }); |
| 19495 | 19823 | |
| 19824 | export type V2ThreadForkResponse__FileSystemSandboxEntry = { |
| 19825 | readonly access: V2ThreadForkResponse__FileSystemAccessMode; |
| 19826 | readonly path: V2ThreadForkResponse__FileSystemPath; |
| 19827 | }; |
| 19828 | export const V2ThreadForkResponse__FileSystemSandboxEntry = Schema.Struct({ |
| 19829 | access: V2ThreadForkResponse__FileSystemAccessMode, |
| 19830 | path: V2ThreadForkResponse__FileSystemPath, |
| 19831 | }); |
| 19832 | |
| 19496 | 19833 | export type V2ThreadForkResponse__TurnError = { |
| 19497 | 19834 | readonly additionalDetails?: string | null; |
| 19498 | 19835 | readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null; |
| ... | ... | @@ -20930,6 +21267,15 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([ |
| 20930 | 21267 | Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem), |
| 20931 | 21268 | ]); |
| 20932 | 21269 | |
| 21270 | export type V2ThreadResumeResponse__FileSystemSandboxEntry = { |
| 21271 | readonly access: V2ThreadResumeResponse__FileSystemAccessMode; |
| 21272 | readonly path: V2ThreadResumeResponse__FileSystemPath; |
| 21273 | }; |
| 21274 | export const V2ThreadResumeResponse__FileSystemSandboxEntry = Schema.Struct({ |
| 21275 | access: V2ThreadResumeResponse__FileSystemAccessMode, |
| 21276 | path: V2ThreadResumeResponse__FileSystemPath, |
| 21277 | }); |
| 21278 | |
| 20933 | 21279 | export type V2ThreadResumeResponse__TurnError = { |
| 20934 | 21280 | readonly additionalDetails?: string | null; |
| 20935 | 21281 | readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null; |
| ... | ... | @@ -22006,6 +22352,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 22006 | 22352 | { mode: "oneOf" }, |
| 22007 | 22353 | ); |
| 22008 | 22354 | |
| 22355 | export type V2ThreadStartResponse__FileSystemSandboxEntry = { |
| 22356 | readonly access: V2ThreadStartResponse__FileSystemAccessMode; |
| 22357 | readonly path: V2ThreadStartResponse__FileSystemPath; |
| 22358 | }; |
| 22359 | export const V2ThreadStartResponse__FileSystemSandboxEntry = Schema.Struct({ |
| 22360 | access: V2ThreadStartResponse__FileSystemAccessMode, |
| 22361 | path: V2ThreadStartResponse__FileSystemPath, |
| 22362 | }); |
| 22363 | |
| 22009 | 22364 | export type V2ThreadStartResponse__TurnError = { |
| 22010 | 22365 | readonly additionalDetails?: string | null; |
| 22011 | 22366 | readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null; |
| ... | ... | @@ -22362,34 +22717,34 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 22362 | 22717 | { mode: "oneOf" }, |
| 22363 | 22718 | ); |
| 22364 | 22719 | |
| 22365 | | export type V2ThreadTurnsListResponse__TurnError = { |
| 22720 | export type V2ThreadUnarchiveResponse__TurnError = { |
| 22366 | 22721 | readonly additionalDetails?: string | null; |
| 22367 | | readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null; |
| 22722 | readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null; |
| 22368 | 22723 | readonly message: string; |
| 22369 | 22724 | }; |
| 22370 | | export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({ |
| 22725 | export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ |
| 22371 | 22726 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22372 | 22727 | codexErrorInfo: Schema.optionalKey( |
| 22373 | | Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]), |
| 22728 | Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]), |
| 22374 | 22729 | ), |
| 22375 | 22730 | message: Schema.String, |
| 22376 | 22731 | }); |
| 22377 | 22732 | |
| 22378 | | export type V2ThreadTurnsListResponse__ThreadItem = |
| 22733 | export type V2ThreadUnarchiveResponse__ThreadItem = |
| 22379 | 22734 | | { |
| 22380 | | readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>; |
| 22735 | readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>; |
| 22381 | 22736 | readonly id: string; |
| 22382 | 22737 | readonly type: "userMessage"; |
| 22383 | 22738 | } |
| 22384 | 22739 | | { |
| 22385 | | readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>; |
| 22740 | readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>; |
| 22386 | 22741 | readonly id: string; |
| 22387 | 22742 | readonly type: "hookPrompt"; |
| 22388 | 22743 | } |
| 22389 | 22744 | | { |
| 22390 | 22745 | readonly id: string; |
| 22391 | | readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null; |
| 22392 | | readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null; |
| 22746 | readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null; |
| 22747 | readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null; |
| 22393 | 22748 | readonly text: string; |
| 22394 | 22749 | readonly type: "agentMessage"; |
| 22395 | 22750 | } |
| ... | ... | @@ -22403,51 +22758,51 @@ export type V2ThreadTurnsListResponse__ThreadItem = |
| 22403 | 22758 | | { |
| 22404 | 22759 | readonly aggregatedOutput?: string | null; |
| 22405 | 22760 | readonly command: string; |
| 22406 | | readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>; |
| 22761 | readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>; |
| 22407 | 22762 | readonly cwd: string; |
| 22408 | 22763 | readonly durationMs?: number | null; |
| 22409 | 22764 | readonly exitCode?: number | null; |
| 22410 | 22765 | readonly id: string; |
| 22411 | 22766 | readonly processId?: string | null; |
| 22412 | 22767 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 22413 | | readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus; |
| 22768 | readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus; |
| 22414 | 22769 | readonly type: "commandExecution"; |
| 22415 | 22770 | } |
| 22416 | 22771 | | { |
| 22417 | | readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>; |
| 22772 | readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>; |
| 22418 | 22773 | readonly id: string; |
| 22419 | | readonly status: V2ThreadTurnsListResponse__PatchApplyStatus; |
| 22774 | readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus; |
| 22420 | 22775 | readonly type: "fileChange"; |
| 22421 | 22776 | } |
| 22422 | 22777 | | { |
| 22423 | 22778 | readonly arguments: unknown; |
| 22424 | 22779 | readonly durationMs?: number | null; |
| 22425 | | readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null; |
| 22780 | readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null; |
| 22426 | 22781 | readonly id: string; |
| 22427 | 22782 | readonly mcpAppResourceUri?: string | null; |
| 22428 | | readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null; |
| 22783 | readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null; |
| 22429 | 22784 | readonly server: string; |
| 22430 | | readonly status: V2ThreadTurnsListResponse__McpToolCallStatus; |
| 22785 | readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus; |
| 22431 | 22786 | readonly tool: string; |
| 22432 | 22787 | readonly type: "mcpToolCall"; |
| 22433 | 22788 | } |
| 22434 | 22789 | | { |
| 22435 | 22790 | readonly arguments: unknown; |
| 22436 | | readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null; |
| 22791 | readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null; |
| 22437 | 22792 | readonly durationMs?: number | null; |
| 22438 | 22793 | readonly id: string; |
| 22439 | 22794 | readonly namespace?: string | null; |
| 22440 | | readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus; |
| 22795 | readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus; |
| 22441 | 22796 | readonly success?: boolean | null; |
| 22442 | 22797 | readonly tool: string; |
| 22443 | 22798 | readonly type: "dynamicToolCall"; |
| 22444 | 22799 | } |
| 22445 | 22800 | | { |
| 22446 | | readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState }; |
| 22801 | readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState }; |
| 22447 | 22802 | readonly id: string; |
| 22448 | 22803 | readonly model?: string | null; |
| 22449 | 22804 | readonly prompt?: string | null; |
| 22450 | | readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null; |
| 22805 | readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null; |
| 22451 | 22806 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 22452 | 22807 | readonly senderThreadId: string; |
| 22453 | 22808 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -22455,46 +22810,46 @@ export type V2ThreadTurnsListResponse__ThreadItem = |
| 22455 | 22810 | readonly type: "collabAgentToolCall"; |
| 22456 | 22811 | } |
| 22457 | 22812 | | { |
| 22458 | | readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null; |
| 22813 | readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null; |
| 22459 | 22814 | readonly id: string; |
| 22460 | 22815 | readonly query: string; |
| 22461 | 22816 | readonly type: "webSearch"; |
| 22462 | 22817 | } |
| 22463 | 22818 | | { |
| 22464 | 22819 | readonly id: string; |
| 22465 | | readonly path: V2ThreadTurnsListResponse__AbsolutePathBuf; |
| 22820 | readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf; |
| 22466 | 22821 | readonly type: "imageView"; |
| 22467 | 22822 | } |
| 22468 | 22823 | | { |
| 22469 | 22824 | readonly id: string; |
| 22470 | 22825 | readonly result: string; |
| 22471 | 22826 | readonly revisedPrompt?: string | null; |
| 22472 | | readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null; |
| 22827 | readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null; |
| 22473 | 22828 | readonly status: string; |
| 22474 | 22829 | readonly type: "imageGeneration"; |
| 22475 | 22830 | } |
| 22476 | 22831 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 22477 | 22832 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 22478 | 22833 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 22479 | | export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22834 | export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 22480 | 22835 | [ |
| 22481 | 22836 | Schema.Struct({ |
| 22482 | | content: Schema.Array(V2ThreadTurnsListResponse__UserInput), |
| 22837 | content: Schema.Array(V2ThreadUnarchiveResponse__UserInput), |
| 22483 | 22838 | id: Schema.String, |
| 22484 | 22839 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 22485 | 22840 | }).annotate({ title: "UserMessageThreadItem" }), |
| 22486 | 22841 | Schema.Struct({ |
| 22487 | | fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment), |
| 22842 | fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment), |
| 22488 | 22843 | id: Schema.String, |
| 22489 | 22844 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 22490 | 22845 | }).annotate({ title: "HookPromptThreadItem" }), |
| 22491 | 22846 | Schema.Struct({ |
| 22492 | 22847 | id: Schema.String, |
| 22493 | 22848 | memoryCitation: Schema.optionalKey( |
| 22494 | | Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]), |
| 22849 | Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]), |
| 22495 | 22850 | ), |
| 22496 | 22851 | phase: Schema.optionalKey( |
| 22497 | | Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]), |
| 22852 | Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]), |
| 22498 | 22853 | ), |
| 22499 | 22854 | text: Schema.String, |
| 22500 | 22855 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| ... | ... | @@ -22524,7 +22879,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22524 | 22879 | ]), |
| 22525 | 22880 | ), |
| 22526 | 22881 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 22527 | | commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({ |
| 22882 | commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({ |
| 22528 | 22883 | description: |
| 22529 | 22884 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 22530 | 22885 | }), |
| ... | ... | @@ -22567,15 +22922,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22567 | 22922 | "unifiedExecInteraction", |
| 22568 | 22923 | ]).annotate({ default: "agent" }), |
| 22569 | 22924 | ), |
| 22570 | | status: V2ThreadTurnsListResponse__CommandExecutionStatus, |
| 22925 | status: V2ThreadUnarchiveResponse__CommandExecutionStatus, |
| 22571 | 22926 | type: Schema.Literal("commandExecution").annotate({ |
| 22572 | 22927 | title: "CommandExecutionThreadItemType", |
| 22573 | 22928 | }), |
| 22574 | 22929 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 22575 | 22930 | Schema.Struct({ |
| 22576 | | changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange), |
| 22931 | changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange), |
| 22577 | 22932 | id: Schema.String, |
| 22578 | | status: V2ThreadTurnsListResponse__PatchApplyStatus, |
| 22933 | status: V2ThreadUnarchiveResponse__PatchApplyStatus, |
| 22579 | 22934 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 22580 | 22935 | }).annotate({ title: "FileChangeThreadItem" }), |
| 22581 | 22936 | Schema.Struct({ |
| ... | ... | @@ -22590,15 +22945,15 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22590 | 22945 | ]), |
| 22591 | 22946 | ), |
| 22592 | 22947 | error: Schema.optionalKey( |
| 22593 | | Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]), |
| 22948 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]), |
| 22594 | 22949 | ), |
| 22595 | 22950 | id: Schema.String, |
| 22596 | 22951 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22597 | 22952 | result: Schema.optionalKey( |
| 22598 | | Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]), |
| 22953 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]), |
| 22599 | 22954 | ), |
| 22600 | 22955 | server: Schema.String, |
| 22601 | | status: V2ThreadTurnsListResponse__McpToolCallStatus, |
| 22956 | status: V2ThreadUnarchiveResponse__McpToolCallStatus, |
| 22602 | 22957 | tool: Schema.String, |
| 22603 | 22958 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 22604 | 22959 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -22606,7 +22961,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22606 | 22961 | arguments: Schema.Unknown, |
| 22607 | 22962 | contentItems: Schema.optionalKey( |
| 22608 | 22963 | Schema.Union([ |
| 22609 | | Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem), |
| 22964 | Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem), |
| 22610 | 22965 | Schema.Null, |
| 22611 | 22966 | ]), |
| 22612 | 22967 | ), |
| ... | ... | @@ -22621,7 +22976,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22621 | 22976 | ), |
| 22622 | 22977 | id: Schema.String, |
| 22623 | 22978 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22624 | | status: V2ThreadTurnsListResponse__DynamicToolCallStatus, |
| 22979 | status: V2ThreadUnarchiveResponse__DynamicToolCallStatus, |
| 22625 | 22980 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 22626 | 22981 | tool: Schema.String, |
| 22627 | 22982 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| ... | ... | @@ -22629,7 +22984,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22629 | 22984 | Schema.Struct({ |
| 22630 | 22985 | agentsStates: Schema.Record( |
| 22631 | 22986 | Schema.String, |
| 22632 | | V2ThreadTurnsListResponse__CollabAgentState, |
| 22987 | V2ThreadUnarchiveResponse__CollabAgentState, |
| 22633 | 22988 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 22634 | 22989 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 22635 | 22990 | model: Schema.optionalKey( |
| ... | ... | @@ -22649,7 +23004,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22649 | 23004 | ]), |
| 22650 | 23005 | ), |
| 22651 | 23006 | reasoningEffort: Schema.optionalKey( |
| 22652 | | Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 23007 | Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 22653 | 23008 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 22654 | 23009 | }), |
| 22655 | 23010 | ), |
| ... | ... | @@ -22676,7 +23031,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22676 | 23031 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 22677 | 23032 | Schema.Struct({ |
| 22678 | 23033 | action: Schema.optionalKey( |
| 22679 | | Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]), |
| 23034 | Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]), |
| 22680 | 23035 | ), |
| 22681 | 23036 | id: Schema.String, |
| 22682 | 23037 | query: Schema.String, |
| ... | ... | @@ -22684,7 +23039,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22684 | 23039 | }).annotate({ title: "WebSearchThreadItem" }), |
| 22685 | 23040 | Schema.Struct({ |
| 22686 | 23041 | id: Schema.String, |
| 22687 | | path: V2ThreadTurnsListResponse__AbsolutePathBuf, |
| 23042 | path: V2ThreadUnarchiveResponse__AbsolutePathBuf, |
| 22688 | 23043 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 22689 | 23044 | }).annotate({ title: "ImageViewThreadItem" }), |
| 22690 | 23045 | Schema.Struct({ |
| ... | ... | @@ -22692,7 +23047,7 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22692 | 23047 | result: Schema.String, |
| 22693 | 23048 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22694 | 23049 | savedPath: Schema.optionalKey( |
| 22695 | | Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]), |
| 23050 | Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]), |
| 22696 | 23051 | ), |
| 22697 | 23052 | status: Schema.String, |
| 22698 | 23053 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | ... | @@ -22721,34 +23076,34 @@ export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 22721 | 23076 | { mode: "oneOf" }, |
| 22722 | 23077 | ); |
| 22723 | 23078 | |
| 22724 | | export type V2ThreadUnarchiveResponse__TurnError = { |
| 23079 | export type V2TurnCompletedNotification__TurnError = { |
| 22725 | 23080 | readonly additionalDetails?: string | null; |
| 22726 | | readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null; |
| 23081 | readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null; |
| 22727 | 23082 | readonly message: string; |
| 22728 | 23083 | }; |
| 22729 | | export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ |
| 23084 | export const V2TurnCompletedNotification__TurnError = Schema.Struct({ |
| 22730 | 23085 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22731 | 23086 | codexErrorInfo: Schema.optionalKey( |
| 22732 | | Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]), |
| 23087 | Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]), |
| 22733 | 23088 | ), |
| 22734 | 23089 | message: Schema.String, |
| 22735 | 23090 | }); |
| 22736 | 23091 | |
| 22737 | | export type V2ThreadUnarchiveResponse__ThreadItem = |
| 23092 | export type V2TurnCompletedNotification__ThreadItem = |
| 22738 | 23093 | | { |
| 22739 | | readonly content: ReadonlyArray<V2ThreadUnarchiveResponse__UserInput>; |
| 23094 | readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>; |
| 22740 | 23095 | readonly id: string; |
| 22741 | 23096 | readonly type: "userMessage"; |
| 22742 | 23097 | } |
| 22743 | 23098 | | { |
| 22744 | | readonly fragments: ReadonlyArray<V2ThreadUnarchiveResponse__HookPromptFragment>; |
| 23099 | readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>; |
| 22745 | 23100 | readonly id: string; |
| 22746 | 23101 | readonly type: "hookPrompt"; |
| 22747 | 23102 | } |
| 22748 | 23103 | | { |
| 22749 | 23104 | readonly id: string; |
| 22750 | | readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null; |
| 22751 | | readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null; |
| 23105 | readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null; |
| 23106 | readonly phase?: V2TurnCompletedNotification__MessagePhase | null; |
| 22752 | 23107 | readonly text: string; |
| 22753 | 23108 | readonly type: "agentMessage"; |
| 22754 | 23109 | } |
| ... | ... | @@ -22762,51 +23117,53 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 22762 | 23117 | | { |
| 22763 | 23118 | readonly aggregatedOutput?: string | null; |
| 22764 | 23119 | readonly command: string; |
| 22765 | | readonly commandActions: ReadonlyArray<V2ThreadUnarchiveResponse__CommandAction>; |
| 23120 | readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>; |
| 22766 | 23121 | readonly cwd: string; |
| 22767 | 23122 | readonly durationMs?: number | null; |
| 22768 | 23123 | readonly exitCode?: number | null; |
| 22769 | 23124 | readonly id: string; |
| 22770 | 23125 | readonly processId?: string | null; |
| 22771 | 23126 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 22772 | | readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus; |
| 23127 | readonly status: V2TurnCompletedNotification__CommandExecutionStatus; |
| 22773 | 23128 | readonly type: "commandExecution"; |
| 22774 | 23129 | } |
| 22775 | 23130 | | { |
| 22776 | | readonly changes: ReadonlyArray<V2ThreadUnarchiveResponse__FileUpdateChange>; |
| 23131 | readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>; |
| 22777 | 23132 | readonly id: string; |
| 22778 | | readonly status: V2ThreadUnarchiveResponse__PatchApplyStatus; |
| 23133 | readonly status: V2TurnCompletedNotification__PatchApplyStatus; |
| 22779 | 23134 | readonly type: "fileChange"; |
| 22780 | 23135 | } |
| 22781 | 23136 | | { |
| 22782 | 23137 | readonly arguments: unknown; |
| 22783 | 23138 | readonly durationMs?: number | null; |
| 22784 | | readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null; |
| 23139 | readonly error?: V2TurnCompletedNotification__McpToolCallError | null; |
| 22785 | 23140 | readonly id: string; |
| 22786 | 23141 | readonly mcpAppResourceUri?: string | null; |
| 22787 | | readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null; |
| 23142 | readonly result?: V2TurnCompletedNotification__McpToolCallResult | null; |
| 22788 | 23143 | readonly server: string; |
| 22789 | | readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus; |
| 23144 | readonly status: V2TurnCompletedNotification__McpToolCallStatus; |
| 22790 | 23145 | readonly tool: string; |
| 22791 | 23146 | readonly type: "mcpToolCall"; |
| 22792 | 23147 | } |
| 22793 | 23148 | | { |
| 22794 | 23149 | readonly arguments: unknown; |
| 22795 | | readonly contentItems?: ReadonlyArray<V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem> | null; |
| 23150 | readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null; |
| 22796 | 23151 | readonly durationMs?: number | null; |
| 22797 | 23152 | readonly id: string; |
| 22798 | 23153 | readonly namespace?: string | null; |
| 22799 | | readonly status: V2ThreadUnarchiveResponse__DynamicToolCallStatus; |
| 23154 | readonly status: V2TurnCompletedNotification__DynamicToolCallStatus; |
| 22800 | 23155 | readonly success?: boolean | null; |
| 22801 | 23156 | readonly tool: string; |
| 22802 | 23157 | readonly type: "dynamicToolCall"; |
| 22803 | 23158 | } |
| 22804 | 23159 | | { |
| 22805 | | readonly agentsStates: { readonly [x: string]: V2ThreadUnarchiveResponse__CollabAgentState }; |
| 23160 | readonly agentsStates: { |
| 23161 | readonly [x: string]: V2TurnCompletedNotification__CollabAgentState; |
| 23162 | }; |
| 22806 | 23163 | readonly id: string; |
| 22807 | 23164 | readonly model?: string | null; |
| 22808 | 23165 | readonly prompt?: string | null; |
| 22809 | | readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null; |
| 23166 | readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null; |
| 22810 | 23167 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 22811 | 23168 | readonly senderThreadId: string; |
| 22812 | 23169 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -22814,46 +23171,46 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 22814 | 23171 | readonly type: "collabAgentToolCall"; |
| 22815 | 23172 | } |
| 22816 | 23173 | | { |
| 22817 | | readonly action?: V2ThreadUnarchiveResponse__WebSearchAction | null; |
| 23174 | readonly action?: V2TurnCompletedNotification__WebSearchAction | null; |
| 22818 | 23175 | readonly id: string; |
| 22819 | 23176 | readonly query: string; |
| 22820 | 23177 | readonly type: "webSearch"; |
| 22821 | 23178 | } |
| 22822 | 23179 | | { |
| 22823 | 23180 | readonly id: string; |
| 22824 | | readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf; |
| 23181 | readonly path: V2TurnCompletedNotification__AbsolutePathBuf; |
| 22825 | 23182 | readonly type: "imageView"; |
| 22826 | 23183 | } |
| 22827 | 23184 | | { |
| 22828 | 23185 | readonly id: string; |
| 22829 | 23186 | readonly result: string; |
| 22830 | 23187 | readonly revisedPrompt?: string | null; |
| 22831 | | readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null; |
| 23188 | readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null; |
| 22832 | 23189 | readonly status: string; |
| 22833 | 23190 | readonly type: "imageGeneration"; |
| 22834 | 23191 | } |
| 22835 | 23192 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 22836 | 23193 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 22837 | 23194 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 22838 | | export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 23195 | export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 22839 | 23196 | [ |
| 22840 | 23197 | Schema.Struct({ |
| 22841 | | content: Schema.Array(V2ThreadUnarchiveResponse__UserInput), |
| 23198 | content: Schema.Array(V2TurnCompletedNotification__UserInput), |
| 22842 | 23199 | id: Schema.String, |
| 22843 | 23200 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 22844 | 23201 | }).annotate({ title: "UserMessageThreadItem" }), |
| 22845 | 23202 | Schema.Struct({ |
| 22846 | | fragments: Schema.Array(V2ThreadUnarchiveResponse__HookPromptFragment), |
| 23203 | fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment), |
| 22847 | 23204 | id: Schema.String, |
| 22848 | 23205 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 22849 | 23206 | }).annotate({ title: "HookPromptThreadItem" }), |
| 22850 | 23207 | Schema.Struct({ |
| 22851 | 23208 | id: Schema.String, |
| 22852 | 23209 | memoryCitation: Schema.optionalKey( |
| 22853 | | Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]), |
| 23210 | Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]), |
| 22854 | 23211 | ), |
| 22855 | 23212 | phase: Schema.optionalKey( |
| 22856 | | Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]), |
| 23213 | Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]), |
| 22857 | 23214 | ), |
| 22858 | 23215 | text: Schema.String, |
| 22859 | 23216 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| ... | ... | @@ -22883,7 +23240,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 22883 | 23240 | ]), |
| 22884 | 23241 | ), |
| 22885 | 23242 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 22886 | | commandActions: Schema.Array(V2ThreadUnarchiveResponse__CommandAction).annotate({ |
| 23243 | commandActions: Schema.Array(V2TurnCompletedNotification__CommandAction).annotate({ |
| 22887 | 23244 | description: |
| 22888 | 23245 | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 22889 | 23246 | }), |
| ... | ... | @@ -22926,15 +23283,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 22926 | 23283 | "unifiedExecInteraction", |
| 22927 | 23284 | ]).annotate({ default: "agent" }), |
| 22928 | 23285 | ), |
| 22929 | | status: V2ThreadUnarchiveResponse__CommandExecutionStatus, |
| 23286 | status: V2TurnCompletedNotification__CommandExecutionStatus, |
| 22930 | 23287 | type: Schema.Literal("commandExecution").annotate({ |
| 22931 | 23288 | title: "CommandExecutionThreadItemType", |
| 22932 | 23289 | }), |
| 22933 | 23290 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 22934 | 23291 | Schema.Struct({ |
| 22935 | | changes: Schema.Array(V2ThreadUnarchiveResponse__FileUpdateChange), |
| 23292 | changes: Schema.Array(V2TurnCompletedNotification__FileUpdateChange), |
| 22936 | 23293 | id: Schema.String, |
| 22937 | | status: V2ThreadUnarchiveResponse__PatchApplyStatus, |
| 23294 | status: V2TurnCompletedNotification__PatchApplyStatus, |
| 22938 | 23295 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 22939 | 23296 | }).annotate({ title: "FileChangeThreadItem" }), |
| 22940 | 23297 | Schema.Struct({ |
| ... | ... | @@ -22949,15 +23306,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 22949 | 23306 | ]), |
| 22950 | 23307 | ), |
| 22951 | 23308 | error: Schema.optionalKey( |
| 22952 | | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallError, Schema.Null]), |
| 23309 | Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]), |
| 22953 | 23310 | ), |
| 22954 | 23311 | id: Schema.String, |
| 22955 | 23312 | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22956 | 23313 | result: Schema.optionalKey( |
| 22957 | | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]), |
| 23314 | Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]), |
| 22958 | 23315 | ), |
| 22959 | 23316 | server: Schema.String, |
| 22960 | | status: V2ThreadUnarchiveResponse__McpToolCallStatus, |
| 23317 | status: V2TurnCompletedNotification__McpToolCallStatus, |
| 22961 | 23318 | tool: Schema.String, |
| 22962 | 23319 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 22963 | 23320 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | ... | @@ -22965,7 +23322,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 22965 | 23322 | arguments: Schema.Unknown, |
| 22966 | 23323 | contentItems: Schema.optionalKey( |
| 22967 | 23324 | Schema.Union([ |
| 22968 | | Schema.Array(V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem), |
| 23325 | Schema.Array(V2TurnCompletedNotification__DynamicToolCallOutputContentItem), |
| 22969 | 23326 | Schema.Null, |
| 22970 | 23327 | ]), |
| 22971 | 23328 | ), |
| ... | ... | @@ -22980,7 +23337,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 22980 | 23337 | ), |
| 22981 | 23338 | id: Schema.String, |
| 22982 | 23339 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 22983 | | status: V2ThreadUnarchiveResponse__DynamicToolCallStatus, |
| 23340 | status: V2TurnCompletedNotification__DynamicToolCallStatus, |
| 22984 | 23341 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 22985 | 23342 | tool: Schema.String, |
| 22986 | 23343 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| ... | ... | @@ -22988,7 +23345,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 22988 | 23345 | Schema.Struct({ |
| 22989 | 23346 | agentsStates: Schema.Record( |
| 22990 | 23347 | Schema.String, |
| 22991 | | V2ThreadUnarchiveResponse__CollabAgentState, |
| 23348 | V2TurnCompletedNotification__CollabAgentState, |
| 22992 | 23349 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 22993 | 23350 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 22994 | 23351 | model: Schema.optionalKey( |
| ... | ... | @@ -23008,7 +23365,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 23008 | 23365 | ]), |
| 23009 | 23366 | ), |
| 23010 | 23367 | reasoningEffort: Schema.optionalKey( |
| 23011 | | Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 23368 | Schema.Union([V2TurnCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 23012 | 23369 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 23013 | 23370 | }), |
| 23014 | 23371 | ), |
| ... | ... | @@ -23035,7 +23392,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 23035 | 23392 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 23036 | 23393 | Schema.Struct({ |
| 23037 | 23394 | action: Schema.optionalKey( |
| 23038 | | Schema.Union([V2ThreadUnarchiveResponse__WebSearchAction, Schema.Null]), |
| 23395 | Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]), |
| 23039 | 23396 | ), |
| 23040 | 23397 | id: Schema.String, |
| 23041 | 23398 | query: Schema.String, |
| ... | ... | @@ -23043,7 +23400,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 23043 | 23400 | }).annotate({ title: "WebSearchThreadItem" }), |
| 23044 | 23401 | Schema.Struct({ |
| 23045 | 23402 | id: Schema.String, |
| 23046 | | path: V2ThreadUnarchiveResponse__AbsolutePathBuf, |
| 23403 | path: V2TurnCompletedNotification__AbsolutePathBuf, |
| 23047 | 23404 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 23048 | 23405 | }).annotate({ title: "ImageViewThreadItem" }), |
| 23049 | 23406 | Schema.Struct({ |
| ... | ... | @@ -23051,7 +23408,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 23051 | 23408 | result: Schema.String, |
| 23052 | 23409 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23053 | 23410 | savedPath: Schema.optionalKey( |
| 23054 | | Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]), |
| 23411 | Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 23055 | 23412 | ), |
| 23056 | 23413 | status: Schema.String, |
| 23057 | 23414 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| ... | ... | @@ -23080,34 +23437,34 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 23080 | 23437 | { mode: "oneOf" }, |
| 23081 | 23438 | ); |
| 23082 | 23439 | |
| 23083 | | export type V2TurnCompletedNotification__TurnError = { |
| 23440 | export type V2TurnStartedNotification__TurnError = { |
| 23084 | 23441 | readonly additionalDetails?: string | null; |
| 23085 | | readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null; |
| 23442 | readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null; |
| 23086 | 23443 | readonly message: string; |
| 23087 | 23444 | }; |
| 23088 | | export const V2TurnCompletedNotification__TurnError = Schema.Struct({ |
| 23445 | export const V2TurnStartedNotification__TurnError = Schema.Struct({ |
| 23089 | 23446 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23090 | 23447 | codexErrorInfo: Schema.optionalKey( |
| 23091 | | Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]), |
| 23448 | Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]), |
| 23092 | 23449 | ), |
| 23093 | 23450 | message: Schema.String, |
| 23094 | 23451 | }); |
| 23095 | 23452 | |
| 23096 | | export type V2TurnCompletedNotification__ThreadItem = |
| 23453 | export type V2TurnStartedNotification__ThreadItem = |
| 23097 | 23454 | | { |
| 23098 | | readonly content: ReadonlyArray<V2TurnCompletedNotification__UserInput>; |
| 23455 | readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>; |
| 23099 | 23456 | readonly id: string; |
| 23100 | 23457 | readonly type: "userMessage"; |
| 23101 | 23458 | } |
| 23102 | 23459 | | { |
| 23103 | | readonly fragments: ReadonlyArray<V2TurnCompletedNotification__HookPromptFragment>; |
| 23460 | readonly fragments: ReadonlyArray<V2TurnStartedNotification__HookPromptFragment>; |
| 23104 | 23461 | readonly id: string; |
| 23105 | 23462 | readonly type: "hookPrompt"; |
| 23106 | 23463 | } |
| 23107 | 23464 | | { |
| 23108 | 23465 | readonly id: string; |
| 23109 | | readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null; |
| 23110 | | readonly phase?: V2TurnCompletedNotification__MessagePhase | null; |
| 23466 | readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null; |
| 23467 | readonly phase?: V2TurnStartedNotification__MessagePhase | null; |
| 23111 | 23468 | readonly text: string; |
| 23112 | 23469 | readonly type: "agentMessage"; |
| 23113 | 23470 | } |
| ... | ... | @@ -23121,53 +23478,51 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 23121 | 23478 | | { |
| 23122 | 23479 | readonly aggregatedOutput?: string | null; |
| 23123 | 23480 | readonly command: string; |
| 23124 | | readonly commandActions: ReadonlyArray<V2TurnCompletedNotification__CommandAction>; |
| 23481 | readonly commandActions: ReadonlyArray<V2TurnStartedNotification__CommandAction>; |
| 23125 | 23482 | readonly cwd: string; |
| 23126 | 23483 | readonly durationMs?: number | null; |
| 23127 | 23484 | readonly exitCode?: number | null; |
| 23128 | 23485 | readonly id: string; |
| 23129 | 23486 | readonly processId?: string | null; |
| 23130 | 23487 | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 23131 | | readonly status: V2TurnCompletedNotification__CommandExecutionStatus; |
| 23488 | readonly status: V2TurnStartedNotification__CommandExecutionStatus; |
| 23132 | 23489 | readonly type: "commandExecution"; |
| 23133 | 23490 | } |
| 23134 | 23491 | | { |
| 23135 | | readonly changes: ReadonlyArray<V2TurnCompletedNotification__FileUpdateChange>; |
| 23492 | readonly changes: ReadonlyArray<V2TurnStartedNotification__FileUpdateChange>; |
| 23136 | 23493 | readonly id: string; |
| 23137 | | readonly status: V2TurnCompletedNotification__PatchApplyStatus; |
| 23494 | readonly status: V2TurnStartedNotification__PatchApplyStatus; |
| 23138 | 23495 | readonly type: "fileChange"; |
| 23139 | 23496 | } |
| 23140 | 23497 | | { |
| 23141 | 23498 | readonly arguments: unknown; |
| 23142 | 23499 | readonly durationMs?: number | null; |
| 23143 | | readonly error?: V2TurnCompletedNotification__McpToolCallError | null; |
| 23500 | readonly error?: V2TurnStartedNotification__McpToolCallError | null; |
| 23144 | 23501 | readonly id: string; |
| 23145 | 23502 | readonly mcpAppResourceUri?: string | null; |
| 23146 | | readonly result?: V2TurnCompletedNotification__McpToolCallResult | null; |
| 23503 | readonly result?: V2TurnStartedNotification__McpToolCallResult | null; |
| 23147 | 23504 | readonly server: string; |
| 23148 | | readonly status: V2TurnCompletedNotification__McpToolCallStatus; |
| 23505 | readonly status: V2TurnStartedNotification__McpToolCallStatus; |
| 23149 | 23506 | readonly tool: string; |
| 23150 | 23507 | readonly type: "mcpToolCall"; |
| 23151 | 23508 | } |
| 23152 | 23509 | | { |
| 23153 | 23510 | readonly arguments: unknown; |
| 23154 | | readonly contentItems?: ReadonlyArray<V2TurnCompletedNotification__DynamicToolCallOutputContentItem> | null; |
| 23511 | readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 23155 | 23512 | readonly durationMs?: number | null; |
| 23156 | 23513 | readonly id: string; |
| 23157 | 23514 | readonly namespace?: string | null; |
| 23158 | | readonly status: V2TurnCompletedNotification__DynamicToolCallStatus; |
| 23515 | readonly status: V2TurnStartedNotification__DynamicToolCallStatus; |
| 23159 | 23516 | readonly success?: boolean | null; |
| 23160 | 23517 | readonly tool: string; |
| 23161 | 23518 | readonly type: "dynamicToolCall"; |
| 23162 | 23519 | } |
| 23163 | 23520 | | { |
| 23164 | | readonly agentsStates: { |
| 23165 | | readonly [x: string]: V2TurnCompletedNotification__CollabAgentState; |
| 23166 | | }; |
| 23521 | readonly agentsStates: { readonly [x: string]: V2TurnStartedNotification__CollabAgentState }; |
| 23167 | 23522 | readonly id: string; |
| 23168 | 23523 | readonly model?: string | null; |
| 23169 | 23524 | readonly prompt?: string | null; |
| 23170 | | readonly reasoningEffort?: V2TurnCompletedNotification__ReasoningEffort | null; |
| 23525 | readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null; |
| 23171 | 23526 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 23172 | 23527 | readonly senderThreadId: string; |
| 23173 | 23528 | readonly status: "inProgress" | "completed" | "failed"; |
| ... | ... | @@ -23175,405 +23530,46 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 23175 | 23530 | readonly type: "collabAgentToolCall"; |
| 23176 | 23531 | } |
| 23177 | 23532 | | { |
| 23178 | | readonly action?: V2TurnCompletedNotification__WebSearchAction | null; |
| 23533 | readonly action?: V2TurnStartedNotification__WebSearchAction | null; |
| 23179 | 23534 | readonly id: string; |
| 23180 | 23535 | readonly query: string; |
| 23181 | 23536 | readonly type: "webSearch"; |
| 23182 | 23537 | } |
| 23183 | 23538 | | { |
| 23184 | 23539 | readonly id: string; |
| 23185 | | readonly path: V2TurnCompletedNotification__AbsolutePathBuf; |
| 23540 | readonly path: V2TurnStartedNotification__AbsolutePathBuf; |
| 23186 | 23541 | readonly type: "imageView"; |
| 23187 | 23542 | } |
| 23188 | 23543 | | { |
| 23189 | 23544 | readonly id: string; |
| 23190 | 23545 | readonly result: string; |
| 23191 | 23546 | readonly revisedPrompt?: string | null; |
| 23192 | | readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null; |
| 23547 | readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null; |
| 23193 | 23548 | readonly status: string; |
| 23194 | 23549 | readonly type: "imageGeneration"; |
| 23195 | 23550 | } |
| 23196 | 23551 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 23197 | 23552 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 23198 | 23553 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 23199 | | export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 23554 | export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 23200 | 23555 | [ |
| 23201 | 23556 | Schema.Struct({ |
| 23202 | | content: Schema.Array(V2TurnCompletedNotification__UserInput), |
| 23557 | content: Schema.Array(V2TurnStartedNotification__UserInput), |
| 23203 | 23558 | id: Schema.String, |
| 23204 | 23559 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 23205 | 23560 | }).annotate({ title: "UserMessageThreadItem" }), |
| 23206 | 23561 | Schema.Struct({ |
| 23207 | | fragments: Schema.Array(V2TurnCompletedNotification__HookPromptFragment), |
| 23562 | fragments: Schema.Array(V2TurnStartedNotification__HookPromptFragment), |
| 23208 | 23563 | id: Schema.String, |
| 23209 | 23564 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 23210 | 23565 | }).annotate({ title: "HookPromptThreadItem" }), |
| 23211 | 23566 | Schema.Struct({ |
| 23212 | 23567 | id: Schema.String, |
| 23213 | 23568 | memoryCitation: Schema.optionalKey( |
| 23214 | | Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]), |
| 23569 | Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]), |
| 23215 | 23570 | ), |
| 23216 | 23571 | phase: Schema.optionalKey( |
| 23217 | | Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]), |
| 23218 | | ), |
| 23219 | | text: Schema.String, |
| 23220 | | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 23221 | | }).annotate({ title: "AgentMessageThreadItem" }), |
| 23222 | | Schema.Struct({ |
| 23223 | | id: Schema.String, |
| 23224 | | text: Schema.String, |
| 23225 | | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| 23226 | | }).annotate({ |
| 23227 | | title: "PlanThreadItem", |
| 23228 | | description: |
| 23229 | | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| 23230 | | }), |
| 23231 | | Schema.Struct({ |
| 23232 | | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 23233 | | id: Schema.String, |
| 23234 | | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 23235 | | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| 23236 | | }).annotate({ title: "ReasoningThreadItem" }), |
| 23237 | | Schema.Struct({ |
| 23238 | | aggregatedOutput: Schema.optionalKey( |
| 23239 | | Schema.Union([ |
| 23240 | | Schema.String.annotate({ |
| 23241 | | description: "The command's output, aggregated from stdout and stderr.", |
| 23242 | | }), |
| 23243 | | Schema.Null, |
| 23244 | | ]), |
| 23245 | | ), |
| 23246 | | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 23247 | | commandActions: Schema.Array(V2TurnCompletedNotification__CommandAction).annotate({ |
| 23248 | | description: |
| 23249 | | "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.", |
| 23250 | | }), |
| 23251 | | cwd: Schema.String.annotate({ |
| 23252 | | description: |
| 23253 | | "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.", |
| 23254 | | }), |
| 23255 | | durationMs: Schema.optionalKey( |
| 23256 | | Schema.Union([ |
| 23257 | | Schema.Number.annotate({ |
| 23258 | | description: "The duration of the command execution in milliseconds.", |
| 23259 | | format: "int64", |
| 23260 | | }).check(Schema.isInt()), |
| 23261 | | Schema.Null, |
| 23262 | | ]), |
| 23263 | | ), |
| 23264 | | exitCode: Schema.optionalKey( |
| 23265 | | Schema.Union([ |
| 23266 | | Schema.Number.annotate({ |
| 23267 | | description: "The command's exit code.", |
| 23268 | | format: "int32", |
| 23269 | | }).check(Schema.isInt()), |
| 23270 | | Schema.Null, |
| 23271 | | ]), |
| 23272 | | ), |
| 23273 | | id: Schema.String, |
| 23274 | | processId: Schema.optionalKey( |
| 23275 | | Schema.Union([ |
| 23276 | | Schema.String.annotate({ |
| 23277 | | description: "Identifier for the underlying PTY process (when available).", |
| 23278 | | }), |
| 23279 | | Schema.Null, |
| 23280 | | ]), |
| 23281 | | ), |
| 23282 | | source: Schema.optionalKey( |
| 23283 | | Schema.Literals([ |
| 23284 | | "agent", |
| 23285 | | "userShell", |
| 23286 | | "unifiedExecStartup", |
| 23287 | | "unifiedExecInteraction", |
| 23288 | | ]).annotate({ default: "agent" }), |
| 23289 | | ), |
| 23290 | | status: V2TurnCompletedNotification__CommandExecutionStatus, |
| 23291 | | type: Schema.Literal("commandExecution").annotate({ |
| 23292 | | title: "CommandExecutionThreadItemType", |
| 23293 | | }), |
| 23294 | | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 23295 | | Schema.Struct({ |
| 23296 | | changes: Schema.Array(V2TurnCompletedNotification__FileUpdateChange), |
| 23297 | | id: Schema.String, |
| 23298 | | status: V2TurnCompletedNotification__PatchApplyStatus, |
| 23299 | | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 23300 | | }).annotate({ title: "FileChangeThreadItem" }), |
| 23301 | | Schema.Struct({ |
| 23302 | | arguments: Schema.Unknown, |
| 23303 | | durationMs: Schema.optionalKey( |
| 23304 | | Schema.Union([ |
| 23305 | | Schema.Number.annotate({ |
| 23306 | | description: "The duration of the MCP tool call in milliseconds.", |
| 23307 | | format: "int64", |
| 23308 | | }).check(Schema.isInt()), |
| 23309 | | Schema.Null, |
| 23310 | | ]), |
| 23311 | | ), |
| 23312 | | error: Schema.optionalKey( |
| 23313 | | Schema.Union([V2TurnCompletedNotification__McpToolCallError, Schema.Null]), |
| 23314 | | ), |
| 23315 | | id: Schema.String, |
| 23316 | | mcpAppResourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23317 | | result: Schema.optionalKey( |
| 23318 | | Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]), |
| 23319 | | ), |
| 23320 | | server: Schema.String, |
| 23321 | | status: V2TurnCompletedNotification__McpToolCallStatus, |
| 23322 | | tool: Schema.String, |
| 23323 | | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 23324 | | }).annotate({ title: "McpToolCallThreadItem" }), |
| 23325 | | Schema.Struct({ |
| 23326 | | arguments: Schema.Unknown, |
| 23327 | | contentItems: Schema.optionalKey( |
| 23328 | | Schema.Union([ |
| 23329 | | Schema.Array(V2TurnCompletedNotification__DynamicToolCallOutputContentItem), |
| 23330 | | Schema.Null, |
| 23331 | | ]), |
| 23332 | | ), |
| 23333 | | durationMs: Schema.optionalKey( |
| 23334 | | Schema.Union([ |
| 23335 | | Schema.Number.annotate({ |
| 23336 | | description: "The duration of the dynamic tool call in milliseconds.", |
| 23337 | | format: "int64", |
| 23338 | | }).check(Schema.isInt()), |
| 23339 | | Schema.Null, |
| 23340 | | ]), |
| 23341 | | ), |
| 23342 | | id: Schema.String, |
| 23343 | | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23344 | | status: V2TurnCompletedNotification__DynamicToolCallStatus, |
| 23345 | | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 23346 | | tool: Schema.String, |
| 23347 | | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 23348 | | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 23349 | | Schema.Struct({ |
| 23350 | | agentsStates: Schema.Record( |
| 23351 | | Schema.String, |
| 23352 | | V2TurnCompletedNotification__CollabAgentState, |
| 23353 | | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 23354 | | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 23355 | | model: Schema.optionalKey( |
| 23356 | | Schema.Union([ |
| 23357 | | Schema.String.annotate({ |
| 23358 | | description: "Model requested for the spawned agent, when applicable.", |
| 23359 | | }), |
| 23360 | | Schema.Null, |
| 23361 | | ]), |
| 23362 | | ), |
| 23363 | | prompt: Schema.optionalKey( |
| 23364 | | Schema.Union([ |
| 23365 | | Schema.String.annotate({ |
| 23366 | | description: "Prompt text sent as part of the collab tool call, when available.", |
| 23367 | | }), |
| 23368 | | Schema.Null, |
| 23369 | | ]), |
| 23370 | | ), |
| 23371 | | reasoningEffort: Schema.optionalKey( |
| 23372 | | Schema.Union([V2TurnCompletedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 23373 | | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 23374 | | }), |
| 23375 | | ), |
| 23376 | | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| 23377 | | description: |
| 23378 | | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| 23379 | | }), |
| 23380 | | senderThreadId: Schema.String.annotate({ |
| 23381 | | description: "Thread ID of the agent issuing the collab request.", |
| 23382 | | }), |
| 23383 | | status: Schema.Literals(["inProgress", "completed", "failed"]).annotate({ |
| 23384 | | description: "Current status of the collab tool call.", |
| 23385 | | }), |
| 23386 | | tool: Schema.Literals([ |
| 23387 | | "spawnAgent", |
| 23388 | | "sendInput", |
| 23389 | | "resumeAgent", |
| 23390 | | "wait", |
| 23391 | | "closeAgent", |
| 23392 | | ]).annotate({ description: "Name of the collab tool that was invoked." }), |
| 23393 | | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 23394 | | title: "CollabAgentToolCallThreadItemType", |
| 23395 | | }), |
| 23396 | | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| 23397 | | Schema.Struct({ |
| 23398 | | action: Schema.optionalKey( |
| 23399 | | Schema.Union([V2TurnCompletedNotification__WebSearchAction, Schema.Null]), |
| 23400 | | ), |
| 23401 | | id: Schema.String, |
| 23402 | | query: Schema.String, |
| 23403 | | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| 23404 | | }).annotate({ title: "WebSearchThreadItem" }), |
| 23405 | | Schema.Struct({ |
| 23406 | | id: Schema.String, |
| 23407 | | path: V2TurnCompletedNotification__AbsolutePathBuf, |
| 23408 | | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 23409 | | }).annotate({ title: "ImageViewThreadItem" }), |
| 23410 | | Schema.Struct({ |
| 23411 | | id: Schema.String, |
| 23412 | | result: Schema.String, |
| 23413 | | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23414 | | savedPath: Schema.optionalKey( |
| 23415 | | Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 23416 | | ), |
| 23417 | | status: Schema.String, |
| 23418 | | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 23419 | | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 23420 | | Schema.Struct({ |
| 23421 | | id: Schema.String, |
| 23422 | | review: Schema.String, |
| 23423 | | type: Schema.Literal("enteredReviewMode").annotate({ |
| 23424 | | title: "EnteredReviewModeThreadItemType", |
| 23425 | | }), |
| 23426 | | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| 23427 | | Schema.Struct({ |
| 23428 | | id: Schema.String, |
| 23429 | | review: Schema.String, |
| 23430 | | type: Schema.Literal("exitedReviewMode").annotate({ |
| 23431 | | title: "ExitedReviewModeThreadItemType", |
| 23432 | | }), |
| 23433 | | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| 23434 | | Schema.Struct({ |
| 23435 | | id: Schema.String, |
| 23436 | | type: Schema.Literal("contextCompaction").annotate({ |
| 23437 | | title: "ContextCompactionThreadItemType", |
| 23438 | | }), |
| 23439 | | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 23440 | | ], |
| 23441 | | { mode: "oneOf" }, |
| 23442 | | ); |
| 23443 | | |
| 23444 | | export type V2TurnStartedNotification__TurnError = { |
| 23445 | | readonly additionalDetails?: string | null; |
| 23446 | | readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null; |
| 23447 | | readonly message: string; |
| 23448 | | }; |
| 23449 | | export const V2TurnStartedNotification__TurnError = Schema.Struct({ |
| 23450 | | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23451 | | codexErrorInfo: Schema.optionalKey( |
| 23452 | | Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]), |
| 23453 | | ), |
| 23454 | | message: Schema.String, |
| 23455 | | }); |
| 23456 | | |
| 23457 | | export type V2TurnStartedNotification__ThreadItem = |
| 23458 | | | { |
| 23459 | | readonly content: ReadonlyArray<V2TurnStartedNotification__UserInput>; |
| 23460 | | readonly id: string; |
| 23461 | | readonly type: "userMessage"; |
| 23462 | | } |
| 23463 | | | { |
| 23464 | | readonly fragments: ReadonlyArray<V2TurnStartedNotification__HookPromptFragment>; |
| 23465 | | readonly id: string; |
| 23466 | | readonly type: "hookPrompt"; |
| 23467 | | } |
| 23468 | | | { |
| 23469 | | readonly id: string; |
| 23470 | | readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null; |
| 23471 | | readonly phase?: V2TurnStartedNotification__MessagePhase | null; |
| 23472 | | readonly text: string; |
| 23473 | | readonly type: "agentMessage"; |
| 23474 | | } |
| 23475 | | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 23476 | | | { |
| 23477 | | readonly content?: ReadonlyArray<string>; |
| 23478 | | readonly id: string; |
| 23479 | | readonly summary?: ReadonlyArray<string>; |
| 23480 | | readonly type: "reasoning"; |
| 23481 | | } |
| 23482 | | | { |
| 23483 | | readonly aggregatedOutput?: string | null; |
| 23484 | | readonly command: string; |
| 23485 | | readonly commandActions: ReadonlyArray<V2TurnStartedNotification__CommandAction>; |
| 23486 | | readonly cwd: string; |
| 23487 | | readonly durationMs?: number | null; |
| 23488 | | readonly exitCode?: number | null; |
| 23489 | | readonly id: string; |
| 23490 | | readonly processId?: string | null; |
| 23491 | | readonly source?: "agent" | "userShell" | "unifiedExecStartup" | "unifiedExecInteraction"; |
| 23492 | | readonly status: V2TurnStartedNotification__CommandExecutionStatus; |
| 23493 | | readonly type: "commandExecution"; |
| 23494 | | } |
| 23495 | | | { |
| 23496 | | readonly changes: ReadonlyArray<V2TurnStartedNotification__FileUpdateChange>; |
| 23497 | | readonly id: string; |
| 23498 | | readonly status: V2TurnStartedNotification__PatchApplyStatus; |
| 23499 | | readonly type: "fileChange"; |
| 23500 | | } |
| 23501 | | | { |
| 23502 | | readonly arguments: unknown; |
| 23503 | | readonly durationMs?: number | null; |
| 23504 | | readonly error?: V2TurnStartedNotification__McpToolCallError | null; |
| 23505 | | readonly id: string; |
| 23506 | | readonly mcpAppResourceUri?: string | null; |
| 23507 | | readonly result?: V2TurnStartedNotification__McpToolCallResult | null; |
| 23508 | | readonly server: string; |
| 23509 | | readonly status: V2TurnStartedNotification__McpToolCallStatus; |
| 23510 | | readonly tool: string; |
| 23511 | | readonly type: "mcpToolCall"; |
| 23512 | | } |
| 23513 | | | { |
| 23514 | | readonly arguments: unknown; |
| 23515 | | readonly contentItems?: ReadonlyArray<V2TurnStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 23516 | | readonly durationMs?: number | null; |
| 23517 | | readonly id: string; |
| 23518 | | readonly namespace?: string | null; |
| 23519 | | readonly status: V2TurnStartedNotification__DynamicToolCallStatus; |
| 23520 | | readonly success?: boolean | null; |
| 23521 | | readonly tool: string; |
| 23522 | | readonly type: "dynamicToolCall"; |
| 23523 | | } |
| 23524 | | | { |
| 23525 | | readonly agentsStates: { readonly [x: string]: V2TurnStartedNotification__CollabAgentState }; |
| 23526 | | readonly id: string; |
| 23527 | | readonly model?: string | null; |
| 23528 | | readonly prompt?: string | null; |
| 23529 | | readonly reasoningEffort?: V2TurnStartedNotification__ReasoningEffort | null; |
| 23530 | | readonly receiverThreadIds: ReadonlyArray<string>; |
| 23531 | | readonly senderThreadId: string; |
| 23532 | | readonly status: "inProgress" | "completed" | "failed"; |
| 23533 | | readonly tool: "spawnAgent" | "sendInput" | "resumeAgent" | "wait" | "closeAgent"; |
| 23534 | | readonly type: "collabAgentToolCall"; |
| 23535 | | } |
| 23536 | | | { |
| 23537 | | readonly action?: V2TurnStartedNotification__WebSearchAction | null; |
| 23538 | | readonly id: string; |
| 23539 | | readonly query: string; |
| 23540 | | readonly type: "webSearch"; |
| 23541 | | } |
| 23542 | | | { |
| 23543 | | readonly id: string; |
| 23544 | | readonly path: V2TurnStartedNotification__AbsolutePathBuf; |
| 23545 | | readonly type: "imageView"; |
| 23546 | | } |
| 23547 | | | { |
| 23548 | | readonly id: string; |
| 23549 | | readonly result: string; |
| 23550 | | readonly revisedPrompt?: string | null; |
| 23551 | | readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null; |
| 23552 | | readonly status: string; |
| 23553 | | readonly type: "imageGeneration"; |
| 23554 | | } |
| 23555 | | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 23556 | | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 23557 | | | { readonly id: string; readonly type: "contextCompaction" }; |
| 23558 | | export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 23559 | | [ |
| 23560 | | Schema.Struct({ |
| 23561 | | content: Schema.Array(V2TurnStartedNotification__UserInput), |
| 23562 | | id: Schema.String, |
| 23563 | | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 23564 | | }).annotate({ title: "UserMessageThreadItem" }), |
| 23565 | | Schema.Struct({ |
| 23566 | | fragments: Schema.Array(V2TurnStartedNotification__HookPromptFragment), |
| 23567 | | id: Schema.String, |
| 23568 | | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 23569 | | }).annotate({ title: "HookPromptThreadItem" }), |
| 23570 | | Schema.Struct({ |
| 23571 | | id: Schema.String, |
| 23572 | | memoryCitation: Schema.optionalKey( |
| 23573 | | Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]), |
| 23574 | | ), |
| 23575 | | phase: Schema.optionalKey( |
| 23576 | | Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]), |
| 23572 | Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]), |
| 23577 | 23573 | ), |
| 23578 | 23574 | text: Schema.String, |
| 23579 | 23575 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| ... | ... | @@ -24152,6 +24148,38 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 24152 | 24148 | { mode: "oneOf" }, |
| 24153 | 24149 | ); |
| 24154 | 24150 | |
| 24151 | export type ClientRequest__PermissionProfileFileSystemPermissions = |
| 24152 | | { |
| 24153 | readonly entries: ReadonlyArray<ClientRequest__FileSystemSandboxEntry>; |
| 24154 | readonly globScanMaxDepth?: number | null; |
| 24155 | readonly type: "restricted"; |
| 24156 | } |
| 24157 | | { readonly type: "unrestricted" }; |
| 24158 | export const ClientRequest__PermissionProfileFileSystemPermissions = Schema.Union( |
| 24159 | [ |
| 24160 | Schema.Struct({ |
| 24161 | entries: Schema.Array(ClientRequest__FileSystemSandboxEntry), |
| 24162 | globScanMaxDepth: Schema.optionalKey( |
| 24163 | Schema.Union([ |
| 24164 | Schema.Number.annotate({ format: "uint" }) |
| 24165 | .check(Schema.isInt()) |
| 24166 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24167 | Schema.Null, |
| 24168 | ]), |
| 24169 | ), |
| 24170 | type: Schema.Literal("restricted").annotate({ |
| 24171 | title: "RestrictedPermissionProfileFileSystemPermissionsType", |
| 24172 | }), |
| 24173 | }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }), |
| 24174 | Schema.Struct({ |
| 24175 | type: Schema.Literal("unrestricted").annotate({ |
| 24176 | title: "UnrestrictedPermissionProfileFileSystemPermissionsType", |
| 24177 | }), |
| 24178 | }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }), |
| 24179 | ], |
| 24180 | { mode: "oneOf" }, |
| 24181 | ); |
| 24182 | |
| 24155 | 24183 | export type ClientRequest__ExternalAgentConfigImportParams = { |
| 24156 | 24184 | readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>; |
| 24157 | 24185 | }; |
| ... | ... | @@ -24183,13 +24211,17 @@ export const CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissi |
| 24183 | 24211 | ), |
| 24184 | 24212 | read: Schema.optionalKey( |
| 24185 | 24213 | Schema.Union([ |
| 24186 | | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf), |
| 24214 | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({ |
| 24215 | description: "This will be removed in favor of `entries`.", |
| 24216 | }), |
| 24187 | 24217 | Schema.Null, |
| 24188 | 24218 | ]), |
| 24189 | 24219 | ), |
| 24190 | 24220 | write: Schema.optionalKey( |
| 24191 | 24221 | Schema.Union([ |
| 24192 | | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf), |
| 24222 | Schema.Array(CommandExecutionRequestApprovalParams__AbsolutePathBuf).annotate({ |
| 24223 | description: "This will be removed in favor of `entries`.", |
| 24224 | }), |
| 24193 | 24225 | Schema.Null, |
| 24194 | 24226 | ]), |
| 24195 | 24227 | ), |
| ... | ... | @@ -24226,10 +24258,20 @@ export const PermissionsRequestApprovalParams__AdditionalFileSystemPermissions = |
| 24226 | 24258 | ]), |
| 24227 | 24259 | ), |
| 24228 | 24260 | read: Schema.optionalKey( |
| 24229 | | Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]), |
| 24261 | Schema.Union([ |
| 24262 | Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf).annotate({ |
| 24263 | description: "This will be removed in favor of `entries`.", |
| 24264 | }), |
| 24265 | Schema.Null, |
| 24266 | ]), |
| 24230 | 24267 | ), |
| 24231 | 24268 | write: Schema.optionalKey( |
| 24232 | | Schema.Union([Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf), Schema.Null]), |
| 24269 | Schema.Union([ |
| 24270 | Schema.Array(PermissionsRequestApprovalParams__AbsolutePathBuf).annotate({ |
| 24271 | description: "This will be removed in favor of `entries`.", |
| 24272 | }), |
| 24273 | Schema.Null, |
| 24274 | ]), |
| 24233 | 24275 | ), |
| 24234 | 24276 | }); |
| 24235 | 24277 | |
| ... | ... | @@ -24255,10 +24297,20 @@ export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions |
| 24255 | 24297 | ]), |
| 24256 | 24298 | ), |
| 24257 | 24299 | read: Schema.optionalKey( |
| 24258 | | Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]), |
| 24300 | Schema.Union([ |
| 24301 | Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf).annotate({ |
| 24302 | description: "This will be removed in favor of `entries`.", |
| 24303 | }), |
| 24304 | Schema.Null, |
| 24305 | ]), |
| 24259 | 24306 | ), |
| 24260 | 24307 | write: Schema.optionalKey( |
| 24261 | | Schema.Union([Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf), Schema.Null]), |
| 24308 | Schema.Union([ |
| 24309 | Schema.Array(PermissionsRequestApprovalResponse__AbsolutePathBuf).annotate({ |
| 24310 | description: "This will be removed in favor of `entries`.", |
| 24311 | }), |
| 24312 | Schema.Null, |
| 24313 | ]), |
| 24262 | 24314 | ), |
| 24263 | 24315 | }); |
| 24264 | 24316 | |
| ... | ... | @@ -24288,10 +24340,20 @@ export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct |
| 24288 | 24340 | ]), |
| 24289 | 24341 | ), |
| 24290 | 24342 | read: Schema.optionalKey( |
| 24291 | | Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]), |
| 24343 | Schema.Union([ |
| 24344 | Schema.Array(ServerNotification__AbsolutePathBuf).annotate({ |
| 24345 | description: "This will be removed in favor of `entries`.", |
| 24346 | }), |
| 24347 | Schema.Null, |
| 24348 | ]), |
| 24292 | 24349 | ), |
| 24293 | 24350 | write: Schema.optionalKey( |
| 24294 | | Schema.Union([Schema.Array(ServerNotification__AbsolutePathBuf), Schema.Null]), |
| 24351 | Schema.Union([ |
| 24352 | Schema.Array(ServerNotification__AbsolutePathBuf).annotate({ |
| 24353 | description: "This will be removed in favor of `entries`.", |
| 24354 | }), |
| 24355 | Schema.Null, |
| 24356 | ]), |
| 24295 | 24357 | ), |
| 24296 | 24358 | }); |
| 24297 | 24359 | |
| ... | ... | @@ -24331,11 +24393,16 @@ export const ServerNotification__ErrorNotification = Schema.Struct({ |
| 24331 | 24393 | }); |
| 24332 | 24394 | |
| 24333 | 24395 | export type ServerNotification__ItemCompletedNotification = { |
| 24396 | readonly completedAtMs: number; |
| 24334 | 24397 | readonly item: ServerNotification__ThreadItem; |
| 24335 | 24398 | readonly threadId: string; |
| 24336 | 24399 | readonly turnId: string; |
| 24337 | 24400 | }; |
| 24338 | 24401 | export const ServerNotification__ItemCompletedNotification = Schema.Struct({ |
| 24402 | completedAtMs: Schema.Number.annotate({ |
| 24403 | description: "Unix timestamp (in milliseconds) when this item lifecycle completed.", |
| 24404 | format: "int64", |
| 24405 | }).check(Schema.isInt()), |
| 24339 | 24406 | item: ServerNotification__ThreadItem, |
| 24340 | 24407 | threadId: Schema.String, |
| 24341 | 24408 | turnId: Schema.String, |
| ... | ... | @@ -24343,11 +24410,16 @@ export const ServerNotification__ItemCompletedNotification = Schema.Struct({ |
| 24343 | 24410 | |
| 24344 | 24411 | export type ServerNotification__ItemStartedNotification = { |
| 24345 | 24412 | readonly item: ServerNotification__ThreadItem; |
| 24413 | readonly startedAtMs: number; |
| 24346 | 24414 | readonly threadId: string; |
| 24347 | 24415 | readonly turnId: string; |
| 24348 | 24416 | }; |
| 24349 | 24417 | export const ServerNotification__ItemStartedNotification = Schema.Struct({ |
| 24350 | 24418 | item: ServerNotification__ThreadItem, |
| 24419 | startedAtMs: Schema.Number.annotate({ |
| 24420 | description: "Unix timestamp (in milliseconds) when this item lifecycle started.", |
| 24421 | format: "int64", |
| 24422 | }).check(Schema.isInt()), |
| 24351 | 24423 | threadId: Schema.String, |
| 24352 | 24424 | turnId: Schema.String, |
| 24353 | 24425 | }); |
| ... | ... | @@ -24358,6 +24430,7 @@ export type ServerNotification__Turn = { |
| 24358 | 24430 | readonly error?: ServerNotification__TurnError | null; |
| 24359 | 24431 | readonly id: string; |
| 24360 | 24432 | readonly items: ReadonlyArray<ServerNotification__ThreadItem>; |
| 24433 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 24361 | 24434 | readonly startedAt?: number | null; |
| 24362 | 24435 | readonly status: ServerNotification__TurnStatus; |
| 24363 | 24436 | }; |
| ... | ... | @@ -24387,9 +24460,14 @@ export const ServerNotification__Turn = Schema.Struct({ |
| 24387 | 24460 | ), |
| 24388 | 24461 | id: Schema.String, |
| 24389 | 24462 | items: Schema.Array(ServerNotification__ThreadItem).annotate({ |
| 24390 | | description: |
| 24391 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 24463 | description: "Thread items currently included in this turn payload.", |
| 24392 | 24464 | }), |
| 24465 | itemsView: Schema.optionalKey( |
| 24466 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 24467 | description: "Describes how much of `items` has been loaded for this turn.", |
| 24468 | default: "full", |
| 24469 | }), |
| 24470 | ), |
| 24393 | 24471 | startedAt: Schema.optionalKey( |
| 24394 | 24472 | Schema.Union([ |
| 24395 | 24473 | Schema.Number.annotate({ |
| ... | ... | @@ -24421,10 +24499,20 @@ export const ServerRequest__AdditionalFileSystemPermissions = Schema.Struct({ |
| 24421 | 24499 | ]), |
| 24422 | 24500 | ), |
| 24423 | 24501 | read: Schema.optionalKey( |
| 24424 | | Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]), |
| 24502 | Schema.Union([ |
| 24503 | Schema.Array(ServerRequest__AbsolutePathBuf).annotate({ |
| 24504 | description: "This will be removed in favor of `entries`.", |
| 24505 | }), |
| 24506 | Schema.Null, |
| 24507 | ]), |
| 24425 | 24508 | ), |
| 24426 | 24509 | write: Schema.optionalKey( |
| 24427 | | Schema.Union([Schema.Array(ServerRequest__AbsolutePathBuf), Schema.Null]), |
| 24510 | Schema.Union([ |
| 24511 | Schema.Array(ServerRequest__AbsolutePathBuf).annotate({ |
| 24512 | description: "This will be removed in favor of `entries`.", |
| 24513 | }), |
| 24514 | Schema.Null, |
| 24515 | ]), |
| 24428 | 24516 | ), |
| 24429 | 24517 | }); |
| 24430 | 24518 | |
| ... | ... | @@ -24436,6 +24524,38 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([ |
| 24436 | 24524 | ServerRequest__McpElicitationTitledMultiSelectEnumSchema, |
| 24437 | 24525 | ]); |
| 24438 | 24526 | |
| 24527 | export type V2CommandExecParams__PermissionProfileFileSystemPermissions = |
| 24528 | | { |
| 24529 | readonly entries: ReadonlyArray<V2CommandExecParams__FileSystemSandboxEntry>; |
| 24530 | readonly globScanMaxDepth?: number | null; |
| 24531 | readonly type: "restricted"; |
| 24532 | } |
| 24533 | | { readonly type: "unrestricted" }; |
| 24534 | export const V2CommandExecParams__PermissionProfileFileSystemPermissions = Schema.Union( |
| 24535 | [ |
| 24536 | Schema.Struct({ |
| 24537 | entries: Schema.Array(V2CommandExecParams__FileSystemSandboxEntry), |
| 24538 | globScanMaxDepth: Schema.optionalKey( |
| 24539 | Schema.Union([ |
| 24540 | Schema.Number.annotate({ format: "uint" }) |
| 24541 | .check(Schema.isInt()) |
| 24542 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 24543 | Schema.Null, |
| 24544 | ]), |
| 24545 | ), |
| 24546 | type: Schema.Literal("restricted").annotate({ |
| 24547 | title: "RestrictedPermissionProfileFileSystemPermissionsType", |
| 24548 | }), |
| 24549 | }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }), |
| 24550 | Schema.Struct({ |
| 24551 | type: Schema.Literal("unrestricted").annotate({ |
| 24552 | title: "UnrestrictedPermissionProfileFileSystemPermissionsType", |
| 24553 | }), |
| 24554 | }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }), |
| 24555 | ], |
| 24556 | { mode: "oneOf" }, |
| 24557 | ); |
| 24558 | |
| 24439 | 24559 | export type V2ConfigReadResponse__ProfileV2 = { |
| 24440 | 24560 | readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null; |
| 24441 | 24561 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; |
| ... | ... | @@ -24445,7 +24565,7 @@ export type V2ConfigReadResponse__ProfileV2 = { |
| 24445 | 24565 | readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null; |
| 24446 | 24566 | readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null; |
| 24447 | 24567 | readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null; |
| 24448 | | readonly service_tier?: V2ConfigReadResponse__ServiceTier | null; |
| 24568 | readonly service_tier?: string | null; |
| 24449 | 24569 | readonly tools?: V2ConfigReadResponse__ToolsV2 | null; |
| 24450 | 24570 | readonly web_search?: V2ConfigReadResponse__WebSearchMode | null; |
| 24451 | 24571 | readonly [x: string]: unknown; |
| ... | ... | @@ -24473,9 +24593,7 @@ export const V2ConfigReadResponse__ProfileV2 = Schema.StructWithRest( |
| 24473 | 24593 | model_verbosity: Schema.optionalKey( |
| 24474 | 24594 | Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]), |
| 24475 | 24595 | ), |
| 24476 | | service_tier: Schema.optionalKey( |
| 24477 | | Schema.Union([V2ConfigReadResponse__ServiceTier, Schema.Null]), |
| 24478 | | ), |
| 24596 | service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24479 | 24597 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])), |
| 24480 | 24598 | web_search: Schema.optionalKey( |
| 24481 | 24599 | Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]), |
| ... | ... | @@ -24519,13 +24637,17 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSy |
| 24519 | 24637 | ), |
| 24520 | 24638 | read: Schema.optionalKey( |
| 24521 | 24639 | Schema.Union([ |
| 24522 | | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf), |
| 24640 | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({ |
| 24641 | description: "This will be removed in favor of `entries`.", |
| 24642 | }), |
| 24523 | 24643 | Schema.Null, |
| 24524 | 24644 | ]), |
| 24525 | 24645 | ), |
| 24526 | 24646 | write: Schema.optionalKey( |
| 24527 | 24647 | Schema.Union([ |
| 24528 | | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf), |
| 24648 | Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf).annotate({ |
| 24649 | description: "This will be removed in favor of `entries`.", |
| 24650 | }), |
| 24529 | 24651 | Schema.Null, |
| 24530 | 24652 | ]), |
| 24531 | 24653 | ), |
| ... | ... | @@ -24555,61 +24677,135 @@ export const V2ItemGuardianApprovalReviewStartedNotification__AdditionalFileSyst |
| 24555 | 24677 | ), |
| 24556 | 24678 | read: Schema.optionalKey( |
| 24557 | 24679 | Schema.Union([ |
| 24558 | | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf), |
| 24680 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({ |
| 24681 | description: "This will be removed in favor of `entries`.", |
| 24682 | }), |
| 24559 | 24683 | Schema.Null, |
| 24560 | 24684 | ]), |
| 24561 | 24685 | ), |
| 24562 | 24686 | write: Schema.optionalKey( |
| 24563 | 24687 | Schema.Union([ |
| 24564 | | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf), |
| 24688 | Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf).annotate({ |
| 24689 | description: "This will be removed in favor of `entries`.", |
| 24690 | }), |
| 24565 | 24691 | Schema.Null, |
| 24566 | 24692 | ]), |
| 24567 | 24693 | ), |
| 24568 | 24694 | }); |
| 24569 | 24695 | |
| 24570 | | export type V2PluginListResponse__PluginMarketplaceEntry = { |
| 24571 | | readonly interface?: V2PluginListResponse__MarketplaceInterface | null; |
| 24696 | export type V2PluginListResponse__PluginSummary = { |
| 24697 | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; |
| 24698 | readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| 24699 | readonly enabled: boolean; |
| 24700 | readonly id: string; |
| 24701 | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; |
| 24702 | readonly installed: boolean; |
| 24703 | readonly interface?: V2PluginListResponse__PluginInterface | null; |
| 24704 | readonly keywords?: ReadonlyArray<string>; |
| 24572 | 24705 | readonly name: string; |
| 24573 | | readonly path?: V2PluginListResponse__AbsolutePathBuf | null; |
| 24574 | | readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>; |
| 24706 | readonly shareContext?: V2PluginListResponse__PluginShareContext | null; |
| 24707 | readonly source: V2PluginListResponse__PluginSource; |
| 24575 | 24708 | }; |
| 24576 | | export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({ |
| 24577 | | interface: Schema.optionalKey( |
| 24578 | | Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]), |
| 24709 | export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| 24710 | authPolicy: V2PluginListResponse__PluginAuthPolicy, |
| 24711 | availability: Schema.optionalKey( |
| 24712 | Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({ |
| 24713 | description: "Availability state for installing and using the plugin.", |
| 24714 | default: "AVAILABLE", |
| 24715 | }), |
| 24579 | 24716 | ), |
| 24717 | enabled: Schema.Boolean, |
| 24718 | id: Schema.String, |
| 24719 | installPolicy: V2PluginListResponse__PluginInstallPolicy, |
| 24720 | installed: Schema.Boolean, |
| 24721 | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), |
| 24722 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 24580 | 24723 | name: Schema.String, |
| 24581 | | path: Schema.optionalKey( |
| 24582 | | Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| 24583 | | description: |
| 24584 | | "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.", |
| 24724 | shareContext: Schema.optionalKey( |
| 24725 | Schema.Union([V2PluginListResponse__PluginShareContext, Schema.Null]).annotate({ |
| 24726 | description: "Remote sharing context associated with this plugin when available.", |
| 24585 | 24727 | }), |
| 24586 | 24728 | ), |
| 24587 | | plugins: Schema.Array(V2PluginListResponse__PluginSummary), |
| 24729 | source: V2PluginListResponse__PluginSource, |
| 24588 | 24730 | }); |
| 24589 | 24731 | |
| 24590 | | export type V2PluginReadResponse__PluginDetail = { |
| 24591 | | readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>; |
| 24592 | | readonly description?: string | null; |
| 24593 | | readonly marketplaceName: string; |
| 24594 | | readonly marketplacePath: V2PluginReadResponse__AbsolutePathBuf; |
| 24595 | | readonly mcpServers: ReadonlyArray<string>; |
| 24596 | | readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>; |
| 24597 | | readonly summary: V2PluginReadResponse__PluginSummary; |
| 24732 | export type V2PluginReadResponse__PluginSummary = { |
| 24733 | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; |
| 24734 | readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| 24735 | readonly enabled: boolean; |
| 24736 | readonly id: string; |
| 24737 | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; |
| 24738 | readonly installed: boolean; |
| 24739 | readonly interface?: V2PluginReadResponse__PluginInterface | null; |
| 24740 | readonly keywords?: ReadonlyArray<string>; |
| 24741 | readonly name: string; |
| 24742 | readonly shareContext?: V2PluginReadResponse__PluginShareContext | null; |
| 24743 | readonly source: V2PluginReadResponse__PluginSource; |
| 24598 | 24744 | }; |
| 24599 | | export const V2PluginReadResponse__PluginDetail = Schema.Struct({ |
| 24600 | | apps: Schema.Array(V2PluginReadResponse__AppSummary), |
| 24601 | | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24602 | | marketplaceName: Schema.String, |
| 24603 | | marketplacePath: V2PluginReadResponse__AbsolutePathBuf, |
| 24604 | | mcpServers: Schema.Array(Schema.String), |
| 24605 | | skills: Schema.Array(V2PluginReadResponse__SkillSummary), |
| 24606 | | summary: V2PluginReadResponse__PluginSummary, |
| 24745 | export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| 24746 | authPolicy: V2PluginReadResponse__PluginAuthPolicy, |
| 24747 | availability: Schema.optionalKey( |
| 24748 | Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({ |
| 24749 | description: "Availability state for installing and using the plugin.", |
| 24750 | default: "AVAILABLE", |
| 24751 | }), |
| 24752 | ), |
| 24753 | enabled: Schema.Boolean, |
| 24754 | id: Schema.String, |
| 24755 | installPolicy: V2PluginReadResponse__PluginInstallPolicy, |
| 24756 | installed: Schema.Boolean, |
| 24757 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), |
| 24758 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 24759 | name: Schema.String, |
| 24760 | shareContext: Schema.optionalKey( |
| 24761 | Schema.Union([V2PluginReadResponse__PluginShareContext, Schema.Null]).annotate({ |
| 24762 | description: "Remote sharing context associated with this plugin when available.", |
| 24763 | }), |
| 24764 | ), |
| 24765 | source: V2PluginReadResponse__PluginSource, |
| 24766 | }); |
| 24767 | |
| 24768 | export type V2PluginShareListResponse__PluginSummary = { |
| 24769 | readonly authPolicy: V2PluginShareListResponse__PluginAuthPolicy; |
| 24770 | readonly availability?: "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| 24771 | readonly enabled: boolean; |
| 24772 | readonly id: string; |
| 24773 | readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy; |
| 24774 | readonly installed: boolean; |
| 24775 | readonly interface?: V2PluginShareListResponse__PluginInterface | null; |
| 24776 | readonly keywords?: ReadonlyArray<string>; |
| 24777 | readonly name: string; |
| 24778 | readonly shareContext?: V2PluginShareListResponse__PluginShareContext | null; |
| 24779 | readonly source: V2PluginShareListResponse__PluginSource; |
| 24780 | }; |
| 24781 | export const V2PluginShareListResponse__PluginSummary = Schema.Struct({ |
| 24782 | authPolicy: V2PluginShareListResponse__PluginAuthPolicy, |
| 24783 | availability: Schema.optionalKey( |
| 24784 | Schema.Literals(["DISABLED_BY_ADMIN", "AVAILABLE"]).annotate({ |
| 24785 | description: "Availability state for installing and using the plugin.", |
| 24786 | default: "AVAILABLE", |
| 24787 | }), |
| 24788 | ), |
| 24789 | enabled: Schema.Boolean, |
| 24790 | id: Schema.String, |
| 24791 | installPolicy: V2PluginShareListResponse__PluginInstallPolicy, |
| 24792 | installed: Schema.Boolean, |
| 24793 | interface: Schema.optionalKey( |
| 24794 | Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]), |
| 24795 | ), |
| 24796 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 24797 | name: Schema.String, |
| 24798 | shareContext: Schema.optionalKey( |
| 24799 | Schema.Union([V2PluginShareListResponse__PluginShareContext, Schema.Null]).annotate({ |
| 24800 | description: "Remote sharing context associated with this plugin when available.", |
| 24801 | }), |
| 24802 | ), |
| 24803 | source: V2PluginShareListResponse__PluginSource, |
| 24607 | 24804 | }); |
| 24608 | 24805 | |
| 24609 | 24806 | export type V2RawResponseItemCompletedNotification__ResponseItem = |
| 24610 | 24807 | | { |
| 24611 | 24808 | readonly content: ReadonlyArray<V2RawResponseItemCompletedNotification__ContentItem>; |
| 24612 | | readonly end_turn?: boolean | null; |
| 24613 | 24809 | readonly id?: string | null; |
| 24614 | 24810 | readonly phase?: V2RawResponseItemCompletedNotification__MessagePhase | null; |
| 24615 | 24811 | readonly role: string; |
| ... | ... | @@ -24683,17 +24879,13 @@ export type V2RawResponseItemCompletedNotification__ResponseItem = |
| 24683 | 24879 | readonly status: string; |
| 24684 | 24880 | readonly type: "image_generation_call"; |
| 24685 | 24881 | } |
| 24686 | | | { |
| 24687 | | readonly ghost_commit: V2RawResponseItemCompletedNotification__GhostCommit; |
| 24688 | | readonly type: "ghost_snapshot"; |
| 24689 | | } |
| 24690 | 24882 | | { readonly encrypted_content: string; readonly type: "compaction" } |
| 24883 | | { readonly encrypted_content?: string | null; readonly type: "context_compaction" } |
| 24691 | 24884 | | { readonly type: "other" }; |
| 24692 | 24885 | export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union( |
| 24693 | 24886 | [ |
| 24694 | 24887 | Schema.Struct({ |
| 24695 | 24888 | content: Schema.Array(V2RawResponseItemCompletedNotification__ContentItem), |
| 24696 | | end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 24697 | 24889 | id: Schema.optionalKey( |
| 24698 | 24890 | Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]), |
| 24699 | 24891 | ), |
| ... | ... | @@ -24816,14 +25008,16 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union |
| 24816 | 25008 | title: "ImageGenerationCallResponseItemType", |
| 24817 | 25009 | }), |
| 24818 | 25010 | }).annotate({ title: "ImageGenerationCallResponseItem" }), |
| 24819 | | Schema.Struct({ |
| 24820 | | ghost_commit: V2RawResponseItemCompletedNotification__GhostCommit, |
| 24821 | | type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }), |
| 24822 | | }).annotate({ title: "GhostSnapshotResponseItem" }), |
| 24823 | 25011 | Schema.Struct({ |
| 24824 | 25012 | encrypted_content: Schema.String, |
| 24825 | 25013 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), |
| 24826 | 25014 | }).annotate({ title: "CompactionResponseItem" }), |
| 25015 | Schema.Struct({ |
| 25016 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25017 | type: Schema.Literal("context_compaction").annotate({ |
| 25018 | title: "ContextCompactionResponseItemType", |
| 25019 | }), |
| 25020 | }).annotate({ title: "ContextCompactionResponseItem" }), |
| 24827 | 25021 | Schema.Struct({ |
| 24828 | 25022 | type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }), |
| 24829 | 25023 | }).annotate({ title: "OtherResponseItem" }), |
| ... | ... | @@ -24837,6 +25031,7 @@ export type V2ReviewStartResponse__Turn = { |
| 24837 | 25031 | readonly error?: V2ReviewStartResponse__TurnError | null; |
| 24838 | 25032 | readonly id: string; |
| 24839 | 25033 | readonly items: ReadonlyArray<V2ReviewStartResponse__ThreadItem>; |
| 25034 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 24840 | 25035 | readonly startedAt?: number | null; |
| 24841 | 25036 | readonly status: V2ReviewStartResponse__TurnStatus; |
| 24842 | 25037 | }; |
| ... | ... | @@ -24866,9 +25061,14 @@ export const V2ReviewStartResponse__Turn = Schema.Struct({ |
| 24866 | 25061 | ), |
| 24867 | 25062 | id: Schema.String, |
| 24868 | 25063 | items: Schema.Array(V2ReviewStartResponse__ThreadItem).annotate({ |
| 24869 | | description: |
| 24870 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25064 | description: "Thread items currently included in this turn payload.", |
| 24871 | 25065 | }), |
| 25066 | itemsView: Schema.optionalKey( |
| 25067 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25068 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25069 | default: "full", |
| 25070 | }), |
| 25071 | ), |
| 24872 | 25072 | startedAt: Schema.optionalKey( |
| 24873 | 25073 | Schema.Union([ |
| 24874 | 25074 | Schema.Number.annotate({ |
| ... | ... | @@ -24892,12 +25092,45 @@ export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({ |
| 24892 | 25092 | skills: Schema.Array(V2SkillsListResponse__SkillMetadata), |
| 24893 | 25093 | }); |
| 24894 | 25094 | |
| 25095 | export type V2ThreadForkResponse__PermissionProfileFileSystemPermissions = |
| 25096 | | { |
| 25097 | readonly entries: ReadonlyArray<V2ThreadForkResponse__FileSystemSandboxEntry>; |
| 25098 | readonly globScanMaxDepth?: number | null; |
| 25099 | readonly type: "restricted"; |
| 25100 | } |
| 25101 | | { readonly type: "unrestricted" }; |
| 25102 | export const V2ThreadForkResponse__PermissionProfileFileSystemPermissions = Schema.Union( |
| 25103 | [ |
| 25104 | Schema.Struct({ |
| 25105 | entries: Schema.Array(V2ThreadForkResponse__FileSystemSandboxEntry), |
| 25106 | globScanMaxDepth: Schema.optionalKey( |
| 25107 | Schema.Union([ |
| 25108 | Schema.Number.annotate({ format: "uint" }) |
| 25109 | .check(Schema.isInt()) |
| 25110 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 25111 | Schema.Null, |
| 25112 | ]), |
| 25113 | ), |
| 25114 | type: Schema.Literal("restricted").annotate({ |
| 25115 | title: "RestrictedPermissionProfileFileSystemPermissionsType", |
| 25116 | }), |
| 25117 | }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }), |
| 25118 | Schema.Struct({ |
| 25119 | type: Schema.Literal("unrestricted").annotate({ |
| 25120 | title: "UnrestrictedPermissionProfileFileSystemPermissionsType", |
| 25121 | }), |
| 25122 | }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }), |
| 25123 | ], |
| 25124 | { mode: "oneOf" }, |
| 25125 | ); |
| 25126 | |
| 24895 | 25127 | export type V2ThreadForkResponse__Turn = { |
| 24896 | 25128 | readonly completedAt?: number | null; |
| 24897 | 25129 | readonly durationMs?: number | null; |
| 24898 | 25130 | readonly error?: V2ThreadForkResponse__TurnError | null; |
| 24899 | 25131 | readonly id: string; |
| 24900 | 25132 | readonly items: ReadonlyArray<V2ThreadForkResponse__ThreadItem>; |
| 25133 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 24901 | 25134 | readonly startedAt?: number | null; |
| 24902 | 25135 | readonly status: V2ThreadForkResponse__TurnStatus; |
| 24903 | 25136 | }; |
| ... | ... | @@ -24927,9 +25160,14 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ |
| 24927 | 25160 | ), |
| 24928 | 25161 | id: Schema.String, |
| 24929 | 25162 | items: Schema.Array(V2ThreadForkResponse__ThreadItem).annotate({ |
| 24930 | | description: |
| 24931 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25163 | description: "Thread items currently included in this turn payload.", |
| 24932 | 25164 | }), |
| 25165 | itemsView: Schema.optionalKey( |
| 25166 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25167 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25168 | default: "full", |
| 25169 | }), |
| 25170 | ), |
| 24933 | 25171 | startedAt: Schema.optionalKey( |
| 24934 | 25172 | Schema.Union([ |
| 24935 | 25173 | Schema.Number.annotate({ |
| ... | ... | @@ -24948,6 +25186,7 @@ export type V2ThreadListResponse__Turn = { |
| 24948 | 25186 | readonly error?: V2ThreadListResponse__TurnError | null; |
| 24949 | 25187 | readonly id: string; |
| 24950 | 25188 | readonly items: ReadonlyArray<V2ThreadListResponse__ThreadItem>; |
| 25189 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 24951 | 25190 | readonly startedAt?: number | null; |
| 24952 | 25191 | readonly status: V2ThreadListResponse__TurnStatus; |
| 24953 | 25192 | }; |
| ... | ... | @@ -24977,9 +25216,14 @@ export const V2ThreadListResponse__Turn = Schema.Struct({ |
| 24977 | 25216 | ), |
| 24978 | 25217 | id: Schema.String, |
| 24979 | 25218 | items: Schema.Array(V2ThreadListResponse__ThreadItem).annotate({ |
| 24980 | | description: |
| 24981 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25219 | description: "Thread items currently included in this turn payload.", |
| 24982 | 25220 | }), |
| 25221 | itemsView: Schema.optionalKey( |
| 25222 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25223 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25224 | default: "full", |
| 25225 | }), |
| 25226 | ), |
| 24983 | 25227 | startedAt: Schema.optionalKey( |
| 24984 | 25228 | Schema.Union([ |
| 24985 | 25229 | Schema.Number.annotate({ |
| ... | ... | @@ -24998,6 +25242,7 @@ export type V2ThreadMetadataUpdateResponse__Turn = { |
| 24998 | 25242 | readonly error?: V2ThreadMetadataUpdateResponse__TurnError | null; |
| 24999 | 25243 | readonly id: string; |
| 25000 | 25244 | readonly items: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadItem>; |
| 25245 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25001 | 25246 | readonly startedAt?: number | null; |
| 25002 | 25247 | readonly status: V2ThreadMetadataUpdateResponse__TurnStatus; |
| 25003 | 25248 | }; |
| ... | ... | @@ -25027,9 +25272,14 @@ export const V2ThreadMetadataUpdateResponse__Turn = Schema.Struct({ |
| 25027 | 25272 | ), |
| 25028 | 25273 | id: Schema.String, |
| 25029 | 25274 | items: Schema.Array(V2ThreadMetadataUpdateResponse__ThreadItem).annotate({ |
| 25030 | | description: |
| 25031 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25275 | description: "Thread items currently included in this turn payload.", |
| 25032 | 25276 | }), |
| 25277 | itemsView: Schema.optionalKey( |
| 25278 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25279 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25280 | default: "full", |
| 25281 | }), |
| 25282 | ), |
| 25033 | 25283 | startedAt: Schema.optionalKey( |
| 25034 | 25284 | Schema.Union([ |
| 25035 | 25285 | Schema.Number.annotate({ |
| ... | ... | @@ -25048,6 +25298,7 @@ export type V2ThreadReadResponse__Turn = { |
| 25048 | 25298 | readonly error?: V2ThreadReadResponse__TurnError | null; |
| 25049 | 25299 | readonly id: string; |
| 25050 | 25300 | readonly items: ReadonlyArray<V2ThreadReadResponse__ThreadItem>; |
| 25301 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25051 | 25302 | readonly startedAt?: number | null; |
| 25052 | 25303 | readonly status: V2ThreadReadResponse__TurnStatus; |
| 25053 | 25304 | }; |
| ... | ... | @@ -25077,9 +25328,14 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ |
| 25077 | 25328 | ), |
| 25078 | 25329 | id: Schema.String, |
| 25079 | 25330 | items: Schema.Array(V2ThreadReadResponse__ThreadItem).annotate({ |
| 25080 | | description: |
| 25081 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25331 | description: "Thread items currently included in this turn payload.", |
| 25082 | 25332 | }), |
| 25333 | itemsView: Schema.optionalKey( |
| 25334 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25335 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25336 | default: "full", |
| 25337 | }), |
| 25338 | ), |
| 25083 | 25339 | startedAt: Schema.optionalKey( |
| 25084 | 25340 | Schema.Union([ |
| 25085 | 25341 | Schema.Number.annotate({ |
| ... | ... | @@ -25092,12 +25348,45 @@ export const V2ThreadReadResponse__Turn = Schema.Struct({ |
| 25092 | 25348 | status: V2ThreadReadResponse__TurnStatus, |
| 25093 | 25349 | }); |
| 25094 | 25350 | |
| 25351 | export type V2ThreadResumeResponse__PermissionProfileFileSystemPermissions = |
| 25352 | | { |
| 25353 | readonly entries: ReadonlyArray<V2ThreadResumeResponse__FileSystemSandboxEntry>; |
| 25354 | readonly globScanMaxDepth?: number | null; |
| 25355 | readonly type: "restricted"; |
| 25356 | } |
| 25357 | | { readonly type: "unrestricted" }; |
| 25358 | export const V2ThreadResumeResponse__PermissionProfileFileSystemPermissions = Schema.Union( |
| 25359 | [ |
| 25360 | Schema.Struct({ |
| 25361 | entries: Schema.Array(V2ThreadResumeResponse__FileSystemSandboxEntry), |
| 25362 | globScanMaxDepth: Schema.optionalKey( |
| 25363 | Schema.Union([ |
| 25364 | Schema.Number.annotate({ format: "uint" }) |
| 25365 | .check(Schema.isInt()) |
| 25366 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 25367 | Schema.Null, |
| 25368 | ]), |
| 25369 | ), |
| 25370 | type: Schema.Literal("restricted").annotate({ |
| 25371 | title: "RestrictedPermissionProfileFileSystemPermissionsType", |
| 25372 | }), |
| 25373 | }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }), |
| 25374 | Schema.Struct({ |
| 25375 | type: Schema.Literal("unrestricted").annotate({ |
| 25376 | title: "UnrestrictedPermissionProfileFileSystemPermissionsType", |
| 25377 | }), |
| 25378 | }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }), |
| 25379 | ], |
| 25380 | { mode: "oneOf" }, |
| 25381 | ); |
| 25382 | |
| 25095 | 25383 | export type V2ThreadResumeResponse__Turn = { |
| 25096 | 25384 | readonly completedAt?: number | null; |
| 25097 | 25385 | readonly durationMs?: number | null; |
| 25098 | 25386 | readonly error?: V2ThreadResumeResponse__TurnError | null; |
| 25099 | 25387 | readonly id: string; |
| 25100 | 25388 | readonly items: ReadonlyArray<V2ThreadResumeResponse__ThreadItem>; |
| 25389 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25101 | 25390 | readonly startedAt?: number | null; |
| 25102 | 25391 | readonly status: V2ThreadResumeResponse__TurnStatus; |
| 25103 | 25392 | }; |
| ... | ... | @@ -25127,9 +25416,14 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ |
| 25127 | 25416 | ), |
| 25128 | 25417 | id: Schema.String, |
| 25129 | 25418 | items: Schema.Array(V2ThreadResumeResponse__ThreadItem).annotate({ |
| 25130 | | description: |
| 25131 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25419 | description: "Thread items currently included in this turn payload.", |
| 25132 | 25420 | }), |
| 25421 | itemsView: Schema.optionalKey( |
| 25422 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25423 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25424 | default: "full", |
| 25425 | }), |
| 25426 | ), |
| 25133 | 25427 | startedAt: Schema.optionalKey( |
| 25134 | 25428 | Schema.Union([ |
| 25135 | 25429 | Schema.Number.annotate({ |
| ... | ... | @@ -25148,6 +25442,7 @@ export type V2ThreadRollbackResponse__Turn = { |
| 25148 | 25442 | readonly error?: V2ThreadRollbackResponse__TurnError | null; |
| 25149 | 25443 | readonly id: string; |
| 25150 | 25444 | readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>; |
| 25445 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25151 | 25446 | readonly startedAt?: number | null; |
| 25152 | 25447 | readonly status: V2ThreadRollbackResponse__TurnStatus; |
| 25153 | 25448 | }; |
| ... | ... | @@ -25177,9 +25472,14 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ |
| 25177 | 25472 | ), |
| 25178 | 25473 | id: Schema.String, |
| 25179 | 25474 | items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({ |
| 25180 | | description: |
| 25181 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25475 | description: "Thread items currently included in this turn payload.", |
| 25182 | 25476 | }), |
| 25477 | itemsView: Schema.optionalKey( |
| 25478 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25479 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25480 | default: "full", |
| 25481 | }), |
| 25482 | ), |
| 25183 | 25483 | startedAt: Schema.optionalKey( |
| 25184 | 25484 | Schema.Union([ |
| 25185 | 25485 | Schema.Number.annotate({ |
| ... | ... | @@ -25198,6 +25498,7 @@ export type V2ThreadStartedNotification__Turn = { |
| 25198 | 25498 | readonly error?: V2ThreadStartedNotification__TurnError | null; |
| 25199 | 25499 | readonly id: string; |
| 25200 | 25500 | readonly items: ReadonlyArray<V2ThreadStartedNotification__ThreadItem>; |
| 25501 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25201 | 25502 | readonly startedAt?: number | null; |
| 25202 | 25503 | readonly status: V2ThreadStartedNotification__TurnStatus; |
| 25203 | 25504 | }; |
| ... | ... | @@ -25227,9 +25528,14 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ |
| 25227 | 25528 | ), |
| 25228 | 25529 | id: Schema.String, |
| 25229 | 25530 | items: Schema.Array(V2ThreadStartedNotification__ThreadItem).annotate({ |
| 25230 | | description: |
| 25231 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25531 | description: "Thread items currently included in this turn payload.", |
| 25232 | 25532 | }), |
| 25533 | itemsView: Schema.optionalKey( |
| 25534 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25535 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25536 | default: "full", |
| 25537 | }), |
| 25538 | ), |
| 25233 | 25539 | startedAt: Schema.optionalKey( |
| 25234 | 25540 | Schema.Union([ |
| 25235 | 25541 | Schema.Number.annotate({ |
| ... | ... | @@ -25242,12 +25548,45 @@ export const V2ThreadStartedNotification__Turn = Schema.Struct({ |
| 25242 | 25548 | status: V2ThreadStartedNotification__TurnStatus, |
| 25243 | 25549 | }); |
| 25244 | 25550 | |
| 25551 | export type V2ThreadStartResponse__PermissionProfileFileSystemPermissions = |
| 25552 | | { |
| 25553 | readonly entries: ReadonlyArray<V2ThreadStartResponse__FileSystemSandboxEntry>; |
| 25554 | readonly globScanMaxDepth?: number | null; |
| 25555 | readonly type: "restricted"; |
| 25556 | } |
| 25557 | | { readonly type: "unrestricted" }; |
| 25558 | export const V2ThreadStartResponse__PermissionProfileFileSystemPermissions = Schema.Union( |
| 25559 | [ |
| 25560 | Schema.Struct({ |
| 25561 | entries: Schema.Array(V2ThreadStartResponse__FileSystemSandboxEntry), |
| 25562 | globScanMaxDepth: Schema.optionalKey( |
| 25563 | Schema.Union([ |
| 25564 | Schema.Number.annotate({ format: "uint" }) |
| 25565 | .check(Schema.isInt()) |
| 25566 | .check(Schema.isGreaterThanOrEqualTo(1)), |
| 25567 | Schema.Null, |
| 25568 | ]), |
| 25569 | ), |
| 25570 | type: Schema.Literal("restricted").annotate({ |
| 25571 | title: "RestrictedPermissionProfileFileSystemPermissionsType", |
| 25572 | }), |
| 25573 | }).annotate({ title: "RestrictedPermissionProfileFileSystemPermissions" }), |
| 25574 | Schema.Struct({ |
| 25575 | type: Schema.Literal("unrestricted").annotate({ |
| 25576 | title: "UnrestrictedPermissionProfileFileSystemPermissionsType", |
| 25577 | }), |
| 25578 | }).annotate({ title: "UnrestrictedPermissionProfileFileSystemPermissions" }), |
| 25579 | ], |
| 25580 | { mode: "oneOf" }, |
| 25581 | ); |
| 25582 | |
| 25245 | 25583 | export type V2ThreadStartResponse__Turn = { |
| 25246 | 25584 | readonly completedAt?: number | null; |
| 25247 | 25585 | readonly durationMs?: number | null; |
| 25248 | 25586 | readonly error?: V2ThreadStartResponse__TurnError | null; |
| 25249 | 25587 | readonly id: string; |
| 25250 | 25588 | readonly items: ReadonlyArray<V2ThreadStartResponse__ThreadItem>; |
| 25589 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25251 | 25590 | readonly startedAt?: number | null; |
| 25252 | 25591 | readonly status: V2ThreadStartResponse__TurnStatus; |
| 25253 | 25592 | }; |
| ... | ... | @@ -25277,59 +25616,14 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ |
| 25277 | 25616 | ), |
| 25278 | 25617 | id: Schema.String, |
| 25279 | 25618 | items: Schema.Array(V2ThreadStartResponse__ThreadItem).annotate({ |
| 25280 | | description: |
| 25281 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25619 | description: "Thread items currently included in this turn payload.", |
| 25282 | 25620 | }), |
| 25283 | | startedAt: Schema.optionalKey( |
| 25284 | | Schema.Union([ |
| 25285 | | Schema.Number.annotate({ |
| 25286 | | description: "Unix timestamp (in seconds) when the turn started.", |
| 25287 | | format: "int64", |
| 25288 | | }).check(Schema.isInt()), |
| 25289 | | Schema.Null, |
| 25290 | | ]), |
| 25291 | | ), |
| 25292 | | status: V2ThreadStartResponse__TurnStatus, |
| 25293 | | }); |
| 25294 | | |
| 25295 | | export type V2ThreadTurnsListResponse__Turn = { |
| 25296 | | readonly completedAt?: number | null; |
| 25297 | | readonly durationMs?: number | null; |
| 25298 | | readonly error?: V2ThreadTurnsListResponse__TurnError | null; |
| 25299 | | readonly id: string; |
| 25300 | | readonly items: ReadonlyArray<V2ThreadTurnsListResponse__ThreadItem>; |
| 25301 | | readonly startedAt?: number | null; |
| 25302 | | readonly status: V2ThreadTurnsListResponse__TurnStatus; |
| 25303 | | }; |
| 25304 | | export const V2ThreadTurnsListResponse__Turn = Schema.Struct({ |
| 25305 | | completedAt: Schema.optionalKey( |
| 25306 | | Schema.Union([ |
| 25307 | | Schema.Number.annotate({ |
| 25308 | | description: "Unix timestamp (in seconds) when the turn completed.", |
| 25309 | | format: "int64", |
| 25310 | | }).check(Schema.isInt()), |
| 25311 | | Schema.Null, |
| 25312 | | ]), |
| 25313 | | ), |
| 25314 | | durationMs: Schema.optionalKey( |
| 25315 | | Schema.Union([ |
| 25316 | | Schema.Number.annotate({ |
| 25317 | | description: "Duration between turn start and completion in milliseconds, if known.", |
| 25318 | | format: "int64", |
| 25319 | | }).check(Schema.isInt()), |
| 25320 | | Schema.Null, |
| 25321 | | ]), |
| 25322 | | ), |
| 25323 | | error: Schema.optionalKey( |
| 25324 | | Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({ |
| 25325 | | description: "Only populated when the Turn's status is failed.", |
| 25621 | itemsView: Schema.optionalKey( |
| 25622 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25623 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25624 | default: "full", |
| 25326 | 25625 | }), |
| 25327 | 25626 | ), |
| 25328 | | id: Schema.String, |
| 25329 | | items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({ |
| 25330 | | description: |
| 25331 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25332 | | }), |
| 25333 | 25627 | startedAt: Schema.optionalKey( |
| 25334 | 25628 | Schema.Union([ |
| 25335 | 25629 | Schema.Number.annotate({ |
| ... | ... | @@ -25339,7 +25633,7 @@ export const V2ThreadTurnsListResponse__Turn = Schema.Struct({ |
| 25339 | 25633 | Schema.Null, |
| 25340 | 25634 | ]), |
| 25341 | 25635 | ), |
| 25342 | | status: V2ThreadTurnsListResponse__TurnStatus, |
| 25636 | status: V2ThreadStartResponse__TurnStatus, |
| 25343 | 25637 | }); |
| 25344 | 25638 | |
| 25345 | 25639 | export type V2ThreadUnarchiveResponse__Turn = { |
| ... | ... | @@ -25348,6 +25642,7 @@ export type V2ThreadUnarchiveResponse__Turn = { |
| 25348 | 25642 | readonly error?: V2ThreadUnarchiveResponse__TurnError | null; |
| 25349 | 25643 | readonly id: string; |
| 25350 | 25644 | readonly items: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadItem>; |
| 25645 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25351 | 25646 | readonly startedAt?: number | null; |
| 25352 | 25647 | readonly status: V2ThreadUnarchiveResponse__TurnStatus; |
| 25353 | 25648 | }; |
| ... | ... | @@ -25377,9 +25672,14 @@ export const V2ThreadUnarchiveResponse__Turn = Schema.Struct({ |
| 25377 | 25672 | ), |
| 25378 | 25673 | id: Schema.String, |
| 25379 | 25674 | items: Schema.Array(V2ThreadUnarchiveResponse__ThreadItem).annotate({ |
| 25380 | | description: |
| 25381 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25675 | description: "Thread items currently included in this turn payload.", |
| 25382 | 25676 | }), |
| 25677 | itemsView: Schema.optionalKey( |
| 25678 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25679 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25680 | default: "full", |
| 25681 | }), |
| 25682 | ), |
| 25383 | 25683 | startedAt: Schema.optionalKey( |
| 25384 | 25684 | Schema.Union([ |
| 25385 | 25685 | Schema.Number.annotate({ |
| ... | ... | @@ -25398,6 +25698,7 @@ export type V2TurnCompletedNotification__Turn = { |
| 25398 | 25698 | readonly error?: V2TurnCompletedNotification__TurnError | null; |
| 25399 | 25699 | readonly id: string; |
| 25400 | 25700 | readonly items: ReadonlyArray<V2TurnCompletedNotification__ThreadItem>; |
| 25701 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25401 | 25702 | readonly startedAt?: number | null; |
| 25402 | 25703 | readonly status: V2TurnCompletedNotification__TurnStatus; |
| 25403 | 25704 | }; |
| ... | ... | @@ -25427,9 +25728,14 @@ export const V2TurnCompletedNotification__Turn = Schema.Struct({ |
| 25427 | 25728 | ), |
| 25428 | 25729 | id: Schema.String, |
| 25429 | 25730 | items: Schema.Array(V2TurnCompletedNotification__ThreadItem).annotate({ |
| 25430 | | description: |
| 25431 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25731 | description: "Thread items currently included in this turn payload.", |
| 25432 | 25732 | }), |
| 25733 | itemsView: Schema.optionalKey( |
| 25734 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25735 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25736 | default: "full", |
| 25737 | }), |
| 25738 | ), |
| 25433 | 25739 | startedAt: Schema.optionalKey( |
| 25434 | 25740 | Schema.Union([ |
| 25435 | 25741 | Schema.Number.annotate({ |
| ... | ... | @@ -25448,6 +25754,7 @@ export type V2TurnStartedNotification__Turn = { |
| 25448 | 25754 | readonly error?: V2TurnStartedNotification__TurnError | null; |
| 25449 | 25755 | readonly id: string; |
| 25450 | 25756 | readonly items: ReadonlyArray<V2TurnStartedNotification__ThreadItem>; |
| 25757 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25451 | 25758 | readonly startedAt?: number | null; |
| 25452 | 25759 | readonly status: V2TurnStartedNotification__TurnStatus; |
| 25453 | 25760 | }; |
| ... | ... | @@ -25477,9 +25784,14 @@ export const V2TurnStartedNotification__Turn = Schema.Struct({ |
| 25477 | 25784 | ), |
| 25478 | 25785 | id: Schema.String, |
| 25479 | 25786 | items: Schema.Array(V2TurnStartedNotification__ThreadItem).annotate({ |
| 25480 | | description: |
| 25481 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25787 | description: "Thread items currently included in this turn payload.", |
| 25482 | 25788 | }), |
| 25789 | itemsView: Schema.optionalKey( |
| 25790 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25791 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25792 | default: "full", |
| 25793 | }), |
| 25794 | ), |
| 25483 | 25795 | startedAt: Schema.optionalKey( |
| 25484 | 25796 | Schema.Union([ |
| 25485 | 25797 | Schema.Number.annotate({ |
| ... | ... | @@ -25498,6 +25810,7 @@ export type V2TurnStartResponse__Turn = { |
| 25498 | 25810 | readonly error?: V2TurnStartResponse__TurnError | null; |
| 25499 | 25811 | readonly id: string; |
| 25500 | 25812 | readonly items: ReadonlyArray<V2TurnStartResponse__ThreadItem>; |
| 25813 | readonly itemsView?: "notLoaded" | "summary" | "full"; |
| 25501 | 25814 | readonly startedAt?: number | null; |
| 25502 | 25815 | readonly status: V2TurnStartResponse__TurnStatus; |
| 25503 | 25816 | }; |
| ... | ... | @@ -25527,9 +25840,14 @@ export const V2TurnStartResponse__Turn = Schema.Struct({ |
| 25527 | 25840 | ), |
| 25528 | 25841 | id: Schema.String, |
| 25529 | 25842 | items: Schema.Array(V2TurnStartResponse__ThreadItem).annotate({ |
| 25530 | | description: |
| 25531 | | "Only populated on a `thread/resume` or `thread/fork` response. For all other responses and notifications returning a Turn, the items field will be an empty list.", |
| 25843 | description: "Thread items currently included in this turn payload.", |
| 25532 | 25844 | }), |
| 25845 | itemsView: Schema.optionalKey( |
| 25846 | Schema.Literals(["notLoaded", "summary", "full"]).annotate({ |
| 25847 | description: "Describes how much of `items` has been loaded for this turn.", |
| 25848 | default: "full", |
| 25849 | }), |
| 25850 | ), |
| 25533 | 25851 | startedAt: Schema.optionalKey( |
| 25534 | 25852 | Schema.Union([ |
| 25535 | 25853 | Schema.Number.annotate({ |
| ... | ... | @@ -25608,6 +25926,7 @@ export type ServerNotification__Thread = { |
| 25608 | 25926 | readonly name?: string | null; |
| 25609 | 25927 | readonly path?: string | null; |
| 25610 | 25928 | readonly preview: string; |
| 25929 | readonly sessionId: string; |
| 25611 | 25930 | readonly source: |
| 25612 | 25931 | | "cli" |
| 25613 | 25932 | | "vscode" |
| ... | ... | @@ -25624,6 +25943,7 @@ export type ServerNotification__Thread = { |
| 25624 | 25943 | readonly activeFlags: ReadonlyArray<ServerNotification__ThreadActiveFlag>; |
| 25625 | 25944 | readonly type: "active"; |
| 25626 | 25945 | }; |
| 25946 | readonly threadSource?: ServerNotification__ThreadSource | null; |
| 25627 | 25947 | readonly turns: ReadonlyArray<ServerNotification__Turn>; |
| 25628 | 25948 | readonly updatedAt: number; |
| 25629 | 25949 | }; |
| ... | ... | @@ -25691,6 +26011,9 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 25691 | 26011 | preview: Schema.String.annotate({ |
| 25692 | 26012 | description: "Usually the first user message in the thread, if available.", |
| 25693 | 26013 | }), |
| 26014 | sessionId: Schema.String.annotate({ |
| 26015 | description: "Session id shared by threads that belong to the same session tree.", |
| 26016 | }), |
| 25694 | 26017 | source: Schema.Union( |
| 25695 | 26018 | [ |
| 25696 | 26019 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -25721,6 +26044,11 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 25721 | 26044 | ], |
| 25722 | 26045 | { mode: "oneOf" }, |
| 25723 | 26046 | ).annotate({ description: "Current runtime status for the thread." }), |
| 26047 | threadSource: Schema.optionalKey( |
| 26048 | Schema.Union([ServerNotification__ThreadSource, Schema.Null]).annotate({ |
| 26049 | description: "Optional analytics source classification for this thread.", |
| 26050 | }), |
| 26051 | ), |
| 25724 | 26052 | turns: Schema.Array(ServerNotification__Turn).annotate({ |
| 25725 | 26053 | description: |
| 25726 | 26054 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -25793,7 +26121,7 @@ export type V2ConfigReadResponse__Config = { |
| 25793 | 26121 | readonly review_model?: string | null; |
| 25794 | 26122 | readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null; |
| 25795 | 26123 | readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null; |
| 25796 | | readonly service_tier?: V2ConfigReadResponse__ServiceTier | null; |
| 26124 | readonly service_tier?: string | null; |
| 25797 | 26125 | readonly tools?: V2ConfigReadResponse__ToolsV2 | null; |
| 25798 | 26126 | readonly web_search?: V2ConfigReadResponse__WebSearchMode | null; |
| 25799 | 26127 | readonly [x: string]: unknown; |
| ... | ... | @@ -25853,9 +26181,7 @@ export const V2ConfigReadResponse__Config = Schema.StructWithRest( |
| 25853 | 26181 | sandbox_workspace_write: Schema.optionalKey( |
| 25854 | 26182 | Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]), |
| 25855 | 26183 | ), |
| 25856 | | service_tier: Schema.optionalKey( |
| 25857 | | Schema.Union([V2ConfigReadResponse__ServiceTier, Schema.Null]), |
| 25858 | | ), |
| 26184 | service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 25859 | 26185 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])), |
| 25860 | 26186 | web_search: Schema.optionalKey( |
| 25861 | 26187 | Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]), |
| ... | ... | @@ -25904,6 +26230,62 @@ export const V2ItemGuardianApprovalReviewStartedNotification__RequestPermissionP |
| 25904 | 26230 | ), |
| 25905 | 26231 | }); |
| 25906 | 26232 | |
| 26233 | export type V2PluginListResponse__PluginMarketplaceEntry = { |
| 26234 | readonly interface?: V2PluginListResponse__MarketplaceInterface | null; |
| 26235 | readonly name: string; |
| 26236 | readonly path?: V2PluginListResponse__AbsolutePathBuf | null; |
| 26237 | readonly plugins: ReadonlyArray<V2PluginListResponse__PluginSummary>; |
| 26238 | }; |
| 26239 | export const V2PluginListResponse__PluginMarketplaceEntry = Schema.Struct({ |
| 26240 | interface: Schema.optionalKey( |
| 26241 | Schema.Union([V2PluginListResponse__MarketplaceInterface, Schema.Null]), |
| 26242 | ), |
| 26243 | name: Schema.String, |
| 26244 | path: Schema.optionalKey( |
| 26245 | Schema.Union([V2PluginListResponse__AbsolutePathBuf, Schema.Null]).annotate({ |
| 26246 | description: |
| 26247 | "Local marketplace file path when the marketplace is backed by a local file. Remote-only catalog marketplaces do not have a local path.", |
| 26248 | }), |
| 26249 | ), |
| 26250 | plugins: Schema.Array(V2PluginListResponse__PluginSummary), |
| 26251 | }); |
| 26252 | |
| 26253 | export type V2PluginReadResponse__PluginDetail = { |
| 26254 | readonly apps: ReadonlyArray<V2PluginReadResponse__AppSummary>; |
| 26255 | readonly description?: string | null; |
| 26256 | readonly hooks: ReadonlyArray<V2PluginReadResponse__PluginHookSummary>; |
| 26257 | readonly marketplaceName: string; |
| 26258 | readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null; |
| 26259 | readonly mcpServers: ReadonlyArray<string>; |
| 26260 | readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>; |
| 26261 | readonly summary: V2PluginReadResponse__PluginSummary; |
| 26262 | }; |
| 26263 | export const V2PluginReadResponse__PluginDetail = Schema.Struct({ |
| 26264 | apps: Schema.Array(V2PluginReadResponse__AppSummary), |
| 26265 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 26266 | hooks: Schema.Array(V2PluginReadResponse__PluginHookSummary), |
| 26267 | marketplaceName: Schema.String, |
| 26268 | marketplacePath: Schema.optionalKey( |
| 26269 | Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]), |
| 26270 | ), |
| 26271 | mcpServers: Schema.Array(Schema.String), |
| 26272 | skills: Schema.Array(V2PluginReadResponse__SkillSummary), |
| 26273 | summary: V2PluginReadResponse__PluginSummary, |
| 26274 | }); |
| 26275 | |
| 26276 | export type V2PluginShareListResponse__PluginShareListItem = { |
| 26277 | readonly localPluginPath?: V2PluginShareListResponse__AbsolutePathBuf | null; |
| 26278 | readonly plugin: V2PluginShareListResponse__PluginSummary; |
| 26279 | readonly shareUrl: string; |
| 26280 | }; |
| 26281 | export const V2PluginShareListResponse__PluginShareListItem = Schema.Struct({ |
| 26282 | localPluginPath: Schema.optionalKey( |
| 26283 | Schema.Union([V2PluginShareListResponse__AbsolutePathBuf, Schema.Null]), |
| 26284 | ), |
| 26285 | plugin: V2PluginShareListResponse__PluginSummary, |
| 26286 | shareUrl: Schema.String, |
| 26287 | }); |
| 26288 | |
| 25907 | 26289 | export type V2ThreadForkResponse__Thread = { |
| 25908 | 26290 | readonly agentNickname?: string | null; |
| 25909 | 26291 | readonly agentRole?: string | null; |
| ... | ... | @@ -25918,6 +26300,7 @@ export type V2ThreadForkResponse__Thread = { |
| 25918 | 26300 | readonly name?: string | null; |
| 25919 | 26301 | readonly path?: string | null; |
| 25920 | 26302 | readonly preview: string; |
| 26303 | readonly sessionId: string; |
| 25921 | 26304 | readonly source: |
| 25922 | 26305 | | "cli" |
| 25923 | 26306 | | "vscode" |
| ... | ... | @@ -25934,6 +26317,7 @@ export type V2ThreadForkResponse__Thread = { |
| 25934 | 26317 | readonly activeFlags: ReadonlyArray<V2ThreadForkResponse__ThreadActiveFlag>; |
| 25935 | 26318 | readonly type: "active"; |
| 25936 | 26319 | }; |
| 26320 | readonly threadSource?: V2ThreadForkResponse__ThreadSource | null; |
| 25937 | 26321 | readonly turns: ReadonlyArray<V2ThreadForkResponse__Turn>; |
| 25938 | 26322 | readonly updatedAt: number; |
| 25939 | 26323 | }; |
| ... | ... | @@ -26001,6 +26385,9 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 26001 | 26385 | preview: Schema.String.annotate({ |
| 26002 | 26386 | description: "Usually the first user message in the thread, if available.", |
| 26003 | 26387 | }), |
| 26388 | sessionId: Schema.String.annotate({ |
| 26389 | description: "Session id shared by threads that belong to the same session tree.", |
| 26390 | }), |
| 26004 | 26391 | source: Schema.Union( |
| 26005 | 26392 | [ |
| 26006 | 26393 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26031,6 +26418,11 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 26031 | 26418 | ], |
| 26032 | 26419 | { mode: "oneOf" }, |
| 26033 | 26420 | ).annotate({ description: "Current runtime status for the thread." }), |
| 26421 | threadSource: Schema.optionalKey( |
| 26422 | Schema.Union([V2ThreadForkResponse__ThreadSource, Schema.Null]).annotate({ |
| 26423 | description: "Optional analytics source classification for this thread.", |
| 26424 | }), |
| 26425 | ), |
| 26034 | 26426 | turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({ |
| 26035 | 26427 | description: |
| 26036 | 26428 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -26055,6 +26447,7 @@ export type V2ThreadListResponse__Thread = { |
| 26055 | 26447 | readonly name?: string | null; |
| 26056 | 26448 | readonly path?: string | null; |
| 26057 | 26449 | readonly preview: string; |
| 26450 | readonly sessionId: string; |
| 26058 | 26451 | readonly source: |
| 26059 | 26452 | | "cli" |
| 26060 | 26453 | | "vscode" |
| ... | ... | @@ -26071,6 +26464,7 @@ export type V2ThreadListResponse__Thread = { |
| 26071 | 26464 | readonly activeFlags: ReadonlyArray<V2ThreadListResponse__ThreadActiveFlag>; |
| 26072 | 26465 | readonly type: "active"; |
| 26073 | 26466 | }; |
| 26467 | readonly threadSource?: V2ThreadListResponse__ThreadSource | null; |
| 26074 | 26468 | readonly turns: ReadonlyArray<V2ThreadListResponse__Turn>; |
| 26075 | 26469 | readonly updatedAt: number; |
| 26076 | 26470 | }; |
| ... | ... | @@ -26138,6 +26532,9 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 26138 | 26532 | preview: Schema.String.annotate({ |
| 26139 | 26533 | description: "Usually the first user message in the thread, if available.", |
| 26140 | 26534 | }), |
| 26535 | sessionId: Schema.String.annotate({ |
| 26536 | description: "Session id shared by threads that belong to the same session tree.", |
| 26537 | }), |
| 26141 | 26538 | source: Schema.Union( |
| 26142 | 26539 | [ |
| 26143 | 26540 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26168,6 +26565,11 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 26168 | 26565 | ], |
| 26169 | 26566 | { mode: "oneOf" }, |
| 26170 | 26567 | ).annotate({ description: "Current runtime status for the thread." }), |
| 26568 | threadSource: Schema.optionalKey( |
| 26569 | Schema.Union([V2ThreadListResponse__ThreadSource, Schema.Null]).annotate({ |
| 26570 | description: "Optional analytics source classification for this thread.", |
| 26571 | }), |
| 26572 | ), |
| 26171 | 26573 | turns: Schema.Array(V2ThreadListResponse__Turn).annotate({ |
| 26172 | 26574 | description: |
| 26173 | 26575 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -26192,6 +26594,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = { |
| 26192 | 26594 | readonly name?: string | null; |
| 26193 | 26595 | readonly path?: string | null; |
| 26194 | 26596 | readonly preview: string; |
| 26597 | readonly sessionId: string; |
| 26195 | 26598 | readonly source: |
| 26196 | 26599 | | "cli" |
| 26197 | 26600 | | "vscode" |
| ... | ... | @@ -26208,6 +26611,7 @@ export type V2ThreadMetadataUpdateResponse__Thread = { |
| 26208 | 26611 | readonly activeFlags: ReadonlyArray<V2ThreadMetadataUpdateResponse__ThreadActiveFlag>; |
| 26209 | 26612 | readonly type: "active"; |
| 26210 | 26613 | }; |
| 26614 | readonly threadSource?: V2ThreadMetadataUpdateResponse__ThreadSource | null; |
| 26211 | 26615 | readonly turns: ReadonlyArray<V2ThreadMetadataUpdateResponse__Turn>; |
| 26212 | 26616 | readonly updatedAt: number; |
| 26213 | 26617 | }; |
| ... | ... | @@ -26275,6 +26679,9 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 26275 | 26679 | preview: Schema.String.annotate({ |
| 26276 | 26680 | description: "Usually the first user message in the thread, if available.", |
| 26277 | 26681 | }), |
| 26682 | sessionId: Schema.String.annotate({ |
| 26683 | description: "Session id shared by threads that belong to the same session tree.", |
| 26684 | }), |
| 26278 | 26685 | source: Schema.Union( |
| 26279 | 26686 | [ |
| 26280 | 26687 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26305,6 +26712,11 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 26305 | 26712 | ], |
| 26306 | 26713 | { mode: "oneOf" }, |
| 26307 | 26714 | ).annotate({ description: "Current runtime status for the thread." }), |
| 26715 | threadSource: Schema.optionalKey( |
| 26716 | Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({ |
| 26717 | description: "Optional analytics source classification for this thread.", |
| 26718 | }), |
| 26719 | ), |
| 26308 | 26720 | turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({ |
| 26309 | 26721 | description: |
| 26310 | 26722 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -26329,6 +26741,7 @@ export type V2ThreadReadResponse__Thread = { |
| 26329 | 26741 | readonly name?: string | null; |
| 26330 | 26742 | readonly path?: string | null; |
| 26331 | 26743 | readonly preview: string; |
| 26744 | readonly sessionId: string; |
| 26332 | 26745 | readonly source: |
| 26333 | 26746 | | "cli" |
| 26334 | 26747 | | "vscode" |
| ... | ... | @@ -26345,6 +26758,7 @@ export type V2ThreadReadResponse__Thread = { |
| 26345 | 26758 | readonly activeFlags: ReadonlyArray<V2ThreadReadResponse__ThreadActiveFlag>; |
| 26346 | 26759 | readonly type: "active"; |
| 26347 | 26760 | }; |
| 26761 | readonly threadSource?: V2ThreadReadResponse__ThreadSource | null; |
| 26348 | 26762 | readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>; |
| 26349 | 26763 | readonly updatedAt: number; |
| 26350 | 26764 | }; |
| ... | ... | @@ -26412,6 +26826,9 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| 26412 | 26826 | preview: Schema.String.annotate({ |
| 26413 | 26827 | description: "Usually the first user message in the thread, if available.", |
| 26414 | 26828 | }), |
| 26829 | sessionId: Schema.String.annotate({ |
| 26830 | description: "Session id shared by threads that belong to the same session tree.", |
| 26831 | }), |
| 26415 | 26832 | source: Schema.Union( |
| 26416 | 26833 | [ |
| 26417 | 26834 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26442,6 +26859,11 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| 26442 | 26859 | ], |
| 26443 | 26860 | { mode: "oneOf" }, |
| 26444 | 26861 | ).annotate({ description: "Current runtime status for the thread." }), |
| 26862 | threadSource: Schema.optionalKey( |
| 26863 | Schema.Union([V2ThreadReadResponse__ThreadSource, Schema.Null]).annotate({ |
| 26864 | description: "Optional analytics source classification for this thread.", |
| 26865 | }), |
| 26866 | ), |
| 26445 | 26867 | turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({ |
| 26446 | 26868 | description: |
| 26447 | 26869 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -26466,6 +26888,7 @@ export type V2ThreadResumeResponse__Thread = { |
| 26466 | 26888 | readonly name?: string | null; |
| 26467 | 26889 | readonly path?: string | null; |
| 26468 | 26890 | readonly preview: string; |
| 26891 | readonly sessionId: string; |
| 26469 | 26892 | readonly source: |
| 26470 | 26893 | | "cli" |
| 26471 | 26894 | | "vscode" |
| ... | ... | @@ -26482,6 +26905,7 @@ export type V2ThreadResumeResponse__Thread = { |
| 26482 | 26905 | readonly activeFlags: ReadonlyArray<V2ThreadResumeResponse__ThreadActiveFlag>; |
| 26483 | 26906 | readonly type: "active"; |
| 26484 | 26907 | }; |
| 26908 | readonly threadSource?: V2ThreadResumeResponse__ThreadSource | null; |
| 26485 | 26909 | readonly turns: ReadonlyArray<V2ThreadResumeResponse__Turn>; |
| 26486 | 26910 | readonly updatedAt: number; |
| 26487 | 26911 | }; |
| ... | ... | @@ -26549,6 +26973,9 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 26549 | 26973 | preview: Schema.String.annotate({ |
| 26550 | 26974 | description: "Usually the first user message in the thread, if available.", |
| 26551 | 26975 | }), |
| 26976 | sessionId: Schema.String.annotate({ |
| 26977 | description: "Session id shared by threads that belong to the same session tree.", |
| 26978 | }), |
| 26552 | 26979 | source: Schema.Union( |
| 26553 | 26980 | [ |
| 26554 | 26981 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26579,6 +27006,11 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 26579 | 27006 | ], |
| 26580 | 27007 | { mode: "oneOf" }, |
| 26581 | 27008 | ).annotate({ description: "Current runtime status for the thread." }), |
| 27009 | threadSource: Schema.optionalKey( |
| 27010 | Schema.Union([V2ThreadResumeResponse__ThreadSource, Schema.Null]).annotate({ |
| 27011 | description: "Optional analytics source classification for this thread.", |
| 27012 | }), |
| 27013 | ), |
| 26582 | 27014 | turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({ |
| 26583 | 27015 | description: |
| 26584 | 27016 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -26603,6 +27035,7 @@ export type V2ThreadStartedNotification__Thread = { |
| 26603 | 27035 | readonly name?: string | null; |
| 26604 | 27036 | readonly path?: string | null; |
| 26605 | 27037 | readonly preview: string; |
| 27038 | readonly sessionId: string; |
| 26606 | 27039 | readonly source: |
| 26607 | 27040 | | "cli" |
| 26608 | 27041 | | "vscode" |
| ... | ... | @@ -26619,6 +27052,7 @@ export type V2ThreadStartedNotification__Thread = { |
| 26619 | 27052 | readonly activeFlags: ReadonlyArray<V2ThreadStartedNotification__ThreadActiveFlag>; |
| 26620 | 27053 | readonly type: "active"; |
| 26621 | 27054 | }; |
| 27055 | readonly threadSource?: V2ThreadStartedNotification__ThreadSource | null; |
| 26622 | 27056 | readonly turns: ReadonlyArray<V2ThreadStartedNotification__Turn>; |
| 26623 | 27057 | readonly updatedAt: number; |
| 26624 | 27058 | }; |
| ... | ... | @@ -26686,6 +27120,9 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 26686 | 27120 | preview: Schema.String.annotate({ |
| 26687 | 27121 | description: "Usually the first user message in the thread, if available.", |
| 26688 | 27122 | }), |
| 27123 | sessionId: Schema.String.annotate({ |
| 27124 | description: "Session id shared by threads that belong to the same session tree.", |
| 27125 | }), |
| 26689 | 27126 | source: Schema.Union( |
| 26690 | 27127 | [ |
| 26691 | 27128 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26716,6 +27153,11 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 26716 | 27153 | ], |
| 26717 | 27154 | { mode: "oneOf" }, |
| 26718 | 27155 | ).annotate({ description: "Current runtime status for the thread." }), |
| 27156 | threadSource: Schema.optionalKey( |
| 27157 | Schema.Union([V2ThreadStartedNotification__ThreadSource, Schema.Null]).annotate({ |
| 27158 | description: "Optional analytics source classification for this thread.", |
| 27159 | }), |
| 27160 | ), |
| 26719 | 27161 | turns: Schema.Array(V2ThreadStartedNotification__Turn).annotate({ |
| 26720 | 27162 | description: |
| 26721 | 27163 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -26740,6 +27182,7 @@ export type V2ThreadStartResponse__Thread = { |
| 26740 | 27182 | readonly name?: string | null; |
| 26741 | 27183 | readonly path?: string | null; |
| 26742 | 27184 | readonly preview: string; |
| 27185 | readonly sessionId: string; |
| 26743 | 27186 | readonly source: |
| 26744 | 27187 | | "cli" |
| 26745 | 27188 | | "vscode" |
| ... | ... | @@ -26756,6 +27199,7 @@ export type V2ThreadStartResponse__Thread = { |
| 26756 | 27199 | readonly activeFlags: ReadonlyArray<V2ThreadStartResponse__ThreadActiveFlag>; |
| 26757 | 27200 | readonly type: "active"; |
| 26758 | 27201 | }; |
| 27202 | readonly threadSource?: V2ThreadStartResponse__ThreadSource | null; |
| 26759 | 27203 | readonly turns: ReadonlyArray<V2ThreadStartResponse__Turn>; |
| 26760 | 27204 | readonly updatedAt: number; |
| 26761 | 27205 | }; |
| ... | ... | @@ -26823,6 +27267,9 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 26823 | 27267 | preview: Schema.String.annotate({ |
| 26824 | 27268 | description: "Usually the first user message in the thread, if available.", |
| 26825 | 27269 | }), |
| 27270 | sessionId: Schema.String.annotate({ |
| 27271 | description: "Session id shared by threads that belong to the same session tree.", |
| 27272 | }), |
| 26826 | 27273 | source: Schema.Union( |
| 26827 | 27274 | [ |
| 26828 | 27275 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26853,6 +27300,11 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 26853 | 27300 | ], |
| 26854 | 27301 | { mode: "oneOf" }, |
| 26855 | 27302 | ).annotate({ description: "Current runtime status for the thread." }), |
| 27303 | threadSource: Schema.optionalKey( |
| 27304 | Schema.Union([V2ThreadStartResponse__ThreadSource, Schema.Null]).annotate({ |
| 27305 | description: "Optional analytics source classification for this thread.", |
| 27306 | }), |
| 27307 | ), |
| 26856 | 27308 | turns: Schema.Array(V2ThreadStartResponse__Turn).annotate({ |
| 26857 | 27309 | description: |
| 26858 | 27310 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -26877,6 +27329,7 @@ export type V2ThreadUnarchiveResponse__Thread = { |
| 26877 | 27329 | readonly name?: string | null; |
| 26878 | 27330 | readonly path?: string | null; |
| 26879 | 27331 | readonly preview: string; |
| 27332 | readonly sessionId: string; |
| 26880 | 27333 | readonly source: |
| 26881 | 27334 | | "cli" |
| 26882 | 27335 | | "vscode" |
| ... | ... | @@ -26893,6 +27346,7 @@ export type V2ThreadUnarchiveResponse__Thread = { |
| 26893 | 27346 | readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>; |
| 26894 | 27347 | readonly type: "active"; |
| 26895 | 27348 | }; |
| 27349 | readonly threadSource?: V2ThreadUnarchiveResponse__ThreadSource | null; |
| 26896 | 27350 | readonly turns: ReadonlyArray<V2ThreadUnarchiveResponse__Turn>; |
| 26897 | 27351 | readonly updatedAt: number; |
| 26898 | 27352 | }; |
| ... | ... | @@ -26960,6 +27414,9 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 26960 | 27414 | preview: Schema.String.annotate({ |
| 26961 | 27415 | description: "Usually the first user message in the thread, if available.", |
| 26962 | 27416 | }), |
| 27417 | sessionId: Schema.String.annotate({ |
| 27418 | description: "Session id shared by threads that belong to the same session tree.", |
| 27419 | }), |
| 26963 | 27420 | source: Schema.Union( |
| 26964 | 27421 | [ |
| 26965 | 27422 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -26990,6 +27447,11 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 26990 | 27447 | ], |
| 26991 | 27448 | { mode: "oneOf" }, |
| 26992 | 27449 | ).annotate({ description: "Current runtime status for the thread." }), |
| 27450 | threadSource: Schema.optionalKey( |
| 27451 | Schema.Union([V2ThreadUnarchiveResponse__ThreadSource, Schema.Null]).annotate({ |
| 27452 | description: "Optional analytics source classification for this thread.", |
| 27453 | }), |
| 27454 | ), |
| 26993 | 27455 | turns: Schema.Array(V2ThreadUnarchiveResponse__Turn).annotate({ |
| 26994 | 27456 | description: |
| 26995 | 27457 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -27629,6 +28091,11 @@ export type ClientRequest = |
| 27629 | 28091 | readonly method: "thread/shellCommand"; |
| 27630 | 28092 | readonly params: ClientRequest__ThreadShellCommandParams; |
| 27631 | 28093 | } |
| 28094 | | { |
| 28095 | readonly id: ClientRequest__RequestId; |
| 28096 | readonly method: "thread/approveGuardianDeniedAction"; |
| 28097 | readonly params: ClientRequest__ThreadApproveGuardianDeniedActionParams; |
| 28098 | } |
| 27632 | 28099 | | { |
| 27633 | 28100 | readonly id: ClientRequest__RequestId; |
| 27634 | 28101 | readonly method: "thread/rollback"; |
| ... | ... | @@ -27649,11 +28116,6 @@ export type ClientRequest = |
| 27649 | 28116 | readonly method: "thread/read"; |
| 27650 | 28117 | readonly params: ClientRequest__ThreadReadParams; |
| 27651 | 28118 | } |
| 27652 | | | { |
| 27653 | | readonly id: ClientRequest__RequestId; |
| 27654 | | readonly method: "thread/turns/list"; |
| 27655 | | readonly params: ClientRequest__ThreadTurnsListParams; |
| 27656 | | } |
| 27657 | 28119 | | { |
| 27658 | 28120 | readonly id: ClientRequest__RequestId; |
| 27659 | 28121 | readonly method: "thread/inject_items"; |
| ... | ... | @@ -27664,6 +28126,11 @@ export type ClientRequest = |
| 27664 | 28126 | readonly method: "skills/list"; |
| 27665 | 28127 | readonly params: ClientRequest__SkillsListParams; |
| 27666 | 28128 | } |
| 28129 | | { |
| 28130 | readonly id: ClientRequest__RequestId; |
| 28131 | readonly method: "hooks/list"; |
| 28132 | readonly params: ClientRequest__HooksListParams; |
| 28133 | } |
| 27667 | 28134 | | { |
| 27668 | 28135 | readonly id: ClientRequest__RequestId; |
| 27669 | 28136 | readonly method: "marketplace/add"; |
| ... | ... | @@ -27674,6 +28141,11 @@ export type ClientRequest = |
| 27674 | 28141 | readonly method: "marketplace/remove"; |
| 27675 | 28142 | readonly params: ClientRequest__MarketplaceRemoveParams; |
| 27676 | 28143 | } |
| 28144 | | { |
| 28145 | readonly id: ClientRequest__RequestId; |
| 28146 | readonly method: "marketplace/upgrade"; |
| 28147 | readonly params: ClientRequest__MarketplaceUpgradeParams; |
| 28148 | } |
| 27677 | 28149 | | { |
| 27678 | 28150 | readonly id: ClientRequest__RequestId; |
| 27679 | 28151 | readonly method: "plugin/list"; |
| ... | ... | @@ -27686,23 +28158,33 @@ export type ClientRequest = |
| 27686 | 28158 | } |
| 27687 | 28159 | | { |
| 27688 | 28160 | readonly id: ClientRequest__RequestId; |
| 27689 | | readonly method: "app/list"; |
| 27690 | | readonly params: ClientRequest__AppsListParams; |
| 28161 | readonly method: "plugin/skill/read"; |
| 28162 | readonly params: ClientRequest__PluginSkillReadParams; |
| 27691 | 28163 | } |
| 27692 | 28164 | | { |
| 27693 | 28165 | readonly id: ClientRequest__RequestId; |
| 27694 | | readonly method: "device/key/create"; |
| 27695 | | readonly params: ClientRequest__DeviceKeyCreateParams; |
| 28166 | readonly method: "plugin/share/save"; |
| 28167 | readonly params: ClientRequest__PluginShareSaveParams; |
| 27696 | 28168 | } |
| 27697 | 28169 | | { |
| 27698 | 28170 | readonly id: ClientRequest__RequestId; |
| 27699 | | readonly method: "device/key/public"; |
| 27700 | | readonly params: ClientRequest__DeviceKeyPublicParams; |
| 28171 | readonly method: "plugin/share/updateTargets"; |
| 28172 | readonly params: ClientRequest__PluginShareUpdateTargetsParams; |
| 27701 | 28173 | } |
| 27702 | 28174 | | { |
| 27703 | 28175 | readonly id: ClientRequest__RequestId; |
| 27704 | | readonly method: "device/key/sign"; |
| 27705 | | readonly params: ClientRequest__DeviceKeySignParams; |
| 28176 | readonly method: "plugin/share/list"; |
| 28177 | readonly params: ClientRequest__PluginShareListParams; |
| 28178 | } |
| 28179 | | { |
| 28180 | readonly id: ClientRequest__RequestId; |
| 28181 | readonly method: "plugin/share/delete"; |
| 28182 | readonly params: ClientRequest__PluginShareDeleteParams; |
| 28183 | } |
| 28184 | | { |
| 28185 | readonly id: ClientRequest__RequestId; |
| 28186 | readonly method: "app/list"; |
| 28187 | readonly params: ClientRequest__AppsListParams; |
| 27706 | 28188 | } |
| 27707 | 28189 | | { |
| 27708 | 28190 | readonly id: ClientRequest__RequestId; |
| ... | ... | @@ -27789,6 +28271,11 @@ export type ClientRequest = |
| 27789 | 28271 | readonly method: "model/list"; |
| 27790 | 28272 | readonly params: ClientRequest__ModelListParams; |
| 27791 | 28273 | } |
| 28274 | | { |
| 28275 | readonly id: ClientRequest__RequestId; |
| 28276 | readonly method: "modelProvider/capabilities/read"; |
| 28277 | readonly params: ClientRequest__ModelProviderCapabilitiesReadParams; |
| 28278 | } |
| 27792 | 28279 | | { |
| 27793 | 28280 | readonly id: ClientRequest__RequestId; |
| 27794 | 28281 | readonly method: "experimentalFeature/list"; |
| ... | ... | @@ -27829,6 +28316,11 @@ export type ClientRequest = |
| 27829 | 28316 | readonly method: "windowsSandbox/setupStart"; |
| 27830 | 28317 | readonly params: ClientRequest__WindowsSandboxSetupStartParams; |
| 27831 | 28318 | } |
| 28319 | | { |
| 28320 | readonly id: ClientRequest__RequestId; |
| 28321 | readonly method: "windowsSandbox/readiness"; |
| 28322 | readonly params?: null; |
| 28323 | } |
| 27832 | 28324 | | { |
| 27833 | 28325 | readonly id: ClientRequest__RequestId; |
| 27834 | 28326 | readonly method: "account/login/start"; |
| ... | ... | @@ -27986,6 +28478,13 @@ export const ClientRequest = Schema.Union( |
| 27986 | 28478 | }), |
| 27987 | 28479 | params: ClientRequest__ThreadShellCommandParams, |
| 27988 | 28480 | }).annotate({ title: "Thread/shellCommandRequest" }), |
| 28481 | Schema.Struct({ |
| 28482 | id: ClientRequest__RequestId, |
| 28483 | method: Schema.Literal("thread/approveGuardianDeniedAction").annotate({ |
| 28484 | title: "Thread/approveGuardianDeniedActionRequestMethod", |
| 28485 | }), |
| 28486 | params: ClientRequest__ThreadApproveGuardianDeniedActionParams, |
| 28487 | }).annotate({ title: "Thread/approveGuardianDeniedActionRequest" }), |
| 27989 | 28488 | Schema.Struct({ |
| 27990 | 28489 | id: ClientRequest__RequestId, |
| 27991 | 28490 | method: Schema.Literal("thread/rollback").annotate({ title: "Thread/rollbackRequestMethod" }), |
| ... | ... | @@ -28008,13 +28507,6 @@ export const ClientRequest = Schema.Union( |
| 28008 | 28507 | method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }), |
| 28009 | 28508 | params: ClientRequest__ThreadReadParams, |
| 28010 | 28509 | }).annotate({ title: "Thread/readRequest" }), |
| 28011 | | Schema.Struct({ |
| 28012 | | id: ClientRequest__RequestId, |
| 28013 | | method: Schema.Literal("thread/turns/list").annotate({ |
| 28014 | | title: "Thread/turns/listRequestMethod", |
| 28015 | | }), |
| 28016 | | params: ClientRequest__ThreadTurnsListParams, |
| 28017 | | }).annotate({ title: "Thread/turns/listRequest" }), |
| 28018 | 28510 | Schema.Struct({ |
| 28019 | 28511 | id: ClientRequest__RequestId, |
| 28020 | 28512 | method: Schema.Literal("thread/inject_items").annotate({ |
| ... | ... | @@ -28031,6 +28523,11 @@ export const ClientRequest = Schema.Union( |
| 28031 | 28523 | method: Schema.Literal("skills/list").annotate({ title: "Skills/listRequestMethod" }), |
| 28032 | 28524 | params: ClientRequest__SkillsListParams, |
| 28033 | 28525 | }).annotate({ title: "Skills/listRequest" }), |
| 28526 | Schema.Struct({ |
| 28527 | id: ClientRequest__RequestId, |
| 28528 | method: Schema.Literal("hooks/list").annotate({ title: "Hooks/listRequestMethod" }), |
| 28529 | params: ClientRequest__HooksListParams, |
| 28530 | }).annotate({ title: "Hooks/listRequest" }), |
| 28034 | 28531 | Schema.Struct({ |
| 28035 | 28532 | id: ClientRequest__RequestId, |
| 28036 | 28533 | method: Schema.Literal("marketplace/add").annotate({ title: "Marketplace/addRequestMethod" }), |
| ... | ... | @@ -28043,6 +28540,13 @@ export const ClientRequest = Schema.Union( |
| 28043 | 28540 | }), |
| 28044 | 28541 | params: ClientRequest__MarketplaceRemoveParams, |
| 28045 | 28542 | }).annotate({ title: "Marketplace/removeRequest" }), |
| 28543 | Schema.Struct({ |
| 28544 | id: ClientRequest__RequestId, |
| 28545 | method: Schema.Literal("marketplace/upgrade").annotate({ |
| 28546 | title: "Marketplace/upgradeRequestMethod", |
| 28547 | }), |
| 28548 | params: ClientRequest__MarketplaceUpgradeParams, |
| 28549 | }).annotate({ title: "Marketplace/upgradeRequest" }), |
| 28046 | 28550 | Schema.Struct({ |
| 28047 | 28551 | id: ClientRequest__RequestId, |
| 28048 | 28552 | method: Schema.Literal("plugin/list").annotate({ title: "Plugin/listRequestMethod" }), |
| ... | ... | @@ -28055,28 +28559,44 @@ export const ClientRequest = Schema.Union( |
| 28055 | 28559 | }).annotate({ title: "Plugin/readRequest" }), |
| 28056 | 28560 | Schema.Struct({ |
| 28057 | 28561 | id: ClientRequest__RequestId, |
| 28058 | | method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }), |
| 28059 | | params: ClientRequest__AppsListParams, |
| 28060 | | }).annotate({ title: "App/listRequest" }), |
| 28562 | method: Schema.Literal("plugin/skill/read").annotate({ |
| 28563 | title: "Plugin/skill/readRequestMethod", |
| 28564 | }), |
| 28565 | params: ClientRequest__PluginSkillReadParams, |
| 28566 | }).annotate({ title: "Plugin/skill/readRequest" }), |
| 28567 | Schema.Struct({ |
| 28568 | id: ClientRequest__RequestId, |
| 28569 | method: Schema.Literal("plugin/share/save").annotate({ |
| 28570 | title: "Plugin/share/saveRequestMethod", |
| 28571 | }), |
| 28572 | params: ClientRequest__PluginShareSaveParams, |
| 28573 | }).annotate({ title: "Plugin/share/saveRequest" }), |
| 28574 | Schema.Struct({ |
| 28575 | id: ClientRequest__RequestId, |
| 28576 | method: Schema.Literal("plugin/share/updateTargets").annotate({ |
| 28577 | title: "Plugin/share/updateTargetsRequestMethod", |
| 28578 | }), |
| 28579 | params: ClientRequest__PluginShareUpdateTargetsParams, |
| 28580 | }).annotate({ title: "Plugin/share/updateTargetsRequest" }), |
| 28061 | 28581 | Schema.Struct({ |
| 28062 | 28582 | id: ClientRequest__RequestId, |
| 28063 | | method: Schema.Literal("device/key/create").annotate({ |
| 28064 | | title: "Device/key/createRequestMethod", |
| 28583 | method: Schema.Literal("plugin/share/list").annotate({ |
| 28584 | title: "Plugin/share/listRequestMethod", |
| 28065 | 28585 | }), |
| 28066 | | params: ClientRequest__DeviceKeyCreateParams, |
| 28067 | | }).annotate({ title: "Device/key/createRequest" }), |
| 28586 | params: ClientRequest__PluginShareListParams, |
| 28587 | }).annotate({ title: "Plugin/share/listRequest" }), |
| 28068 | 28588 | Schema.Struct({ |
| 28069 | 28589 | id: ClientRequest__RequestId, |
| 28070 | | method: Schema.Literal("device/key/public").annotate({ |
| 28071 | | title: "Device/key/publicRequestMethod", |
| 28590 | method: Schema.Literal("plugin/share/delete").annotate({ |
| 28591 | title: "Plugin/share/deleteRequestMethod", |
| 28072 | 28592 | }), |
| 28073 | | params: ClientRequest__DeviceKeyPublicParams, |
| 28074 | | }).annotate({ title: "Device/key/publicRequest" }), |
| 28593 | params: ClientRequest__PluginShareDeleteParams, |
| 28594 | }).annotate({ title: "Plugin/share/deleteRequest" }), |
| 28075 | 28595 | Schema.Struct({ |
| 28076 | 28596 | id: ClientRequest__RequestId, |
| 28077 | | method: Schema.Literal("device/key/sign").annotate({ title: "Device/key/signRequestMethod" }), |
| 28078 | | params: ClientRequest__DeviceKeySignParams, |
| 28079 | | }).annotate({ title: "Device/key/signRequest" }), |
| 28597 | method: Schema.Literal("app/list").annotate({ title: "App/listRequestMethod" }), |
| 28598 | params: ClientRequest__AppsListParams, |
| 28599 | }).annotate({ title: "App/listRequest" }), |
| 28080 | 28600 | Schema.Struct({ |
| 28081 | 28601 | id: ClientRequest__RequestId, |
| 28082 | 28602 | method: Schema.Literal("fs/readFile").annotate({ title: "Fs/readFileRequestMethod" }), |
| ... | ... | @@ -28170,6 +28690,13 @@ export const ClientRequest = Schema.Union( |
| 28170 | 28690 | method: Schema.Literal("model/list").annotate({ title: "Model/listRequestMethod" }), |
| 28171 | 28691 | params: ClientRequest__ModelListParams, |
| 28172 | 28692 | }).annotate({ title: "Model/listRequest" }), |
| 28693 | Schema.Struct({ |
| 28694 | id: ClientRequest__RequestId, |
| 28695 | method: Schema.Literal("modelProvider/capabilities/read").annotate({ |
| 28696 | title: "ModelProvider/capabilities/readRequestMethod", |
| 28697 | }), |
| 28698 | params: ClientRequest__ModelProviderCapabilitiesReadParams, |
| 28699 | }).annotate({ title: "ModelProvider/capabilities/readRequest" }), |
| 28173 | 28700 | Schema.Struct({ |
| 28174 | 28701 | id: ClientRequest__RequestId, |
| 28175 | 28702 | method: Schema.Literal("experimentalFeature/list").annotate({ |
| ... | ... | @@ -28226,6 +28753,13 @@ export const ClientRequest = Schema.Union( |
| 28226 | 28753 | }), |
| 28227 | 28754 | params: ClientRequest__WindowsSandboxSetupStartParams, |
| 28228 | 28755 | }).annotate({ title: "WindowsSandbox/setupStartRequest" }), |
| 28756 | Schema.Struct({ |
| 28757 | id: ClientRequest__RequestId, |
| 28758 | method: Schema.Literal("windowsSandbox/readiness").annotate({ |
| 28759 | title: "WindowsSandbox/readinessRequestMethod", |
| 28760 | }), |
| 28761 | params: Schema.optionalKey(Schema.Null), |
| 28762 | }).annotate({ title: "WindowsSandbox/readinessRequest" }), |
| 28229 | 28763 | Schema.Struct({ |
| 28230 | 28764 | id: ClientRequest__RequestId, |
| 28231 | 28765 | method: Schema.Literal("account/login/start").annotate({ |
| ... | ... | @@ -28394,29 +28928,87 @@ export const ClientRequest__DynamicToolSpec = Schema.Struct({ |
| 28394 | 28928 | export type ClientRequest__NetworkAccess = "restricted" | "enabled"; |
| 28395 | 28929 | export const ClientRequest__NetworkAccess = Schema.Literals(["restricted", "enabled"]); |
| 28396 | 28930 | |
| 28397 | | export type ClientRequest__ReadOnlyAccess = |
| 28931 | export type ClientRequest__PermissionProfile = |
| 28398 | 28932 | | { |
| 28399 | | readonly includePlatformDefaults?: boolean; |
| 28400 | | readonly readableRoots?: ReadonlyArray<ClientRequest__AbsolutePathBuf>; |
| 28401 | | readonly type: "restricted"; |
| 28933 | readonly fileSystem: ClientRequest__PermissionProfileFileSystemPermissions; |
| 28934 | readonly network: ClientRequest__PermissionProfileNetworkPermissions; |
| 28935 | readonly type: "managed"; |
| 28402 | 28936 | } |
| 28403 | | | { readonly type: "fullAccess" }; |
| 28404 | | export const ClientRequest__ReadOnlyAccess = Schema.Union( |
| 28937 | | { readonly type: "disabled" } |
| 28938 | | { |
| 28939 | readonly network: ClientRequest__PermissionProfileNetworkPermissions; |
| 28940 | readonly type: "external"; |
| 28941 | }; |
| 28942 | export const ClientRequest__PermissionProfile = Schema.Union( |
| 28405 | 28943 | [ |
| 28406 | 28944 | Schema.Struct({ |
| 28407 | | includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 28408 | | readableRoots: Schema.optionalKey( |
| 28409 | | Schema.Array(ClientRequest__AbsolutePathBuf).annotate({ default: [] }), |
| 28410 | | ), |
| 28411 | | type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }), |
| 28412 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 28945 | fileSystem: ClientRequest__PermissionProfileFileSystemPermissions, |
| 28946 | network: ClientRequest__PermissionProfileNetworkPermissions, |
| 28947 | type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }), |
| 28948 | }).annotate({ |
| 28949 | title: "ManagedPermissionProfile", |
| 28950 | description: "Codex owns sandbox construction for this profile.", |
| 28951 | }), |
| 28952 | Schema.Struct({ |
| 28953 | type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }), |
| 28954 | }).annotate({ |
| 28955 | title: "DisabledPermissionProfile", |
| 28956 | description: "Do not apply an outer sandbox.", |
| 28957 | }), |
| 28413 | 28958 | Schema.Struct({ |
| 28414 | | type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }), |
| 28415 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 28959 | network: ClientRequest__PermissionProfileNetworkPermissions, |
| 28960 | type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }), |
| 28961 | }).annotate({ |
| 28962 | title: "ExternalPermissionProfile", |
| 28963 | description: "Filesystem isolation is enforced by an external caller.", |
| 28964 | }), |
| 28965 | ], |
| 28966 | { mode: "oneOf" }, |
| 28967 | ); |
| 28968 | |
| 28969 | export type ClientRequest__PermissionProfileSelectionParams = { |
| 28970 | readonly id: string; |
| 28971 | readonly modifications?: ReadonlyArray<ClientRequest__PermissionProfileModificationParams> | null; |
| 28972 | readonly type: "profile"; |
| 28973 | }; |
| 28974 | export const ClientRequest__PermissionProfileSelectionParams = Schema.Union( |
| 28975 | [ |
| 28976 | Schema.Struct({ |
| 28977 | id: Schema.String, |
| 28978 | modifications: Schema.optionalKey( |
| 28979 | Schema.Union([ |
| 28980 | Schema.Array(ClientRequest__PermissionProfileModificationParams), |
| 28981 | Schema.Null, |
| 28982 | ]), |
| 28983 | ), |
| 28984 | type: Schema.Literal("profile").annotate({ |
| 28985 | title: "ProfilePermissionProfileSelectionParamsType", |
| 28986 | }), |
| 28987 | }).annotate({ |
| 28988 | title: "ProfilePermissionProfileSelectionParams", |
| 28989 | description: |
| 28990 | "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.", |
| 28991 | }), |
| 28416 | 28992 | ], |
| 28417 | 28993 | { mode: "oneOf" }, |
| 28418 | 28994 | ); |
| 28419 | 28995 | |
| 28996 | export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number }; |
| 28997 | export const ClientRequest__ProcessTerminalSize = Schema.Struct({ |
| 28998 | cols: Schema.Number.annotate({ |
| 28999 | description: "Terminal width in character cells.", |
| 29000 | format: "uint16", |
| 29001 | }) |
| 29002 | .check(Schema.isInt()) |
| 29003 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 29004 | rows: Schema.Number.annotate({ |
| 29005 | description: "Terminal height in character cells.", |
| 29006 | format: "uint16", |
| 29007 | }) |
| 29008 | .check(Schema.isInt()) |
| 29009 | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 29010 | }).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." }); |
| 29011 | |
| 28420 | 29012 | export type ClientRequest__RealtimeOutputModality = "text" | "audio"; |
| 28421 | 29013 | export const ClientRequest__RealtimeOutputModality = Schema.Literals(["text", "audio"]); |
| 28422 | 29014 | |
| ... | ... | @@ -28465,7 +29057,6 @@ export const ClientRequest__RealtimeVoice = Schema.Literals([ |
| 28465 | 29057 | export type ClientRequest__ResponseItem = |
| 28466 | 29058 | | { |
| 28467 | 29059 | readonly content: ReadonlyArray<ClientRequest__ContentItem>; |
| 28468 | | readonly end_turn?: boolean | null; |
| 28469 | 29060 | readonly id?: string | null; |
| 28470 | 29061 | readonly phase?: ClientRequest__MessagePhase | null; |
| 28471 | 29062 | readonly role: string; |
| ... | ... | @@ -28539,14 +29130,13 @@ export type ClientRequest__ResponseItem = |
| 28539 | 29130 | readonly status: string; |
| 28540 | 29131 | readonly type: "image_generation_call"; |
| 28541 | 29132 | } |
| 28542 | | | { readonly ghost_commit: ClientRequest__GhostCommit; readonly type: "ghost_snapshot" } |
| 28543 | 29133 | | { readonly encrypted_content: string; readonly type: "compaction" } |
| 29134 | | { readonly encrypted_content?: string | null; readonly type: "context_compaction" } |
| 28544 | 29135 | | { readonly type: "other" }; |
| 28545 | 29136 | export const ClientRequest__ResponseItem = Schema.Union( |
| 28546 | 29137 | [ |
| 28547 | 29138 | Schema.Struct({ |
| 28548 | 29139 | content: Schema.Array(ClientRequest__ContentItem), |
| 28549 | | end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28550 | 29140 | id: Schema.optionalKey( |
| 28551 | 29141 | Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]), |
| 28552 | 29142 | ), |
| ... | ... | @@ -28661,14 +29251,16 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 28661 | 29251 | title: "ImageGenerationCallResponseItemType", |
| 28662 | 29252 | }), |
| 28663 | 29253 | }).annotate({ title: "ImageGenerationCallResponseItem" }), |
| 28664 | | Schema.Struct({ |
| 28665 | | ghost_commit: ClientRequest__GhostCommit, |
| 28666 | | type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }), |
| 28667 | | }).annotate({ title: "GhostSnapshotResponseItem" }), |
| 28668 | 29254 | Schema.Struct({ |
| 28669 | 29255 | encrypted_content: Schema.String, |
| 28670 | 29256 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), |
| 28671 | 29257 | }).annotate({ title: "CompactionResponseItem" }), |
| 29258 | Schema.Struct({ |
| 29259 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29260 | type: Schema.Literal("context_compaction").annotate({ |
| 29261 | title: "ContextCompactionResponseItemType", |
| 29262 | }), |
| 29263 | }).annotate({ title: "ContextCompactionResponseItem" }), |
| 28672 | 29264 | Schema.Struct({ |
| 28673 | 29265 | type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }), |
| 28674 | 29266 | }).annotate({ title: "OtherResponseItem" }), |
| ... | ... | @@ -28676,6 +29268,14 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 28676 | 29268 | { mode: "oneOf" }, |
| 28677 | 29269 | ); |
| 28678 | 29270 | |
| 29271 | export type ClientRequest__ThreadGoalStatus = "active" | "paused" | "budgetLimited" | "complete"; |
| 29272 | export const ClientRequest__ThreadGoalStatus = Schema.Literals([ |
| 29273 | "active", |
| 29274 | "paused", |
| 29275 | "budgetLimited", |
| 29276 | "complete", |
| 29277 | ]); |
| 29278 | |
| 28679 | 29279 | export type ClientRequest__ThreadMemoryMode = "enabled" | "disabled"; |
| 28680 | 29280 | export const ClientRequest__ThreadMemoryMode = Schema.Literals(["enabled", "disabled"]); |
| 28681 | 29281 | |
| ... | ... | @@ -28726,6 +29326,18 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union( |
| 28726 | 29326 | { mode: "oneOf" }, |
| 28727 | 29327 | ).annotate({ description: "EXPERIMENTAL - transport used by thread realtime." }); |
| 28728 | 29328 | |
| 29329 | export type ClientRequest__TurnEnvironmentParams = { |
| 29330 | readonly cwd: ClientRequest__AbsolutePathBuf; |
| 29331 | readonly environmentId: string; |
| 29332 | }; |
| 29333 | export const ClientRequest__TurnEnvironmentParams = Schema.Struct({ |
| 29334 | cwd: ClientRequest__AbsolutePathBuf, |
| 29335 | environmentId: Schema.String, |
| 29336 | }); |
| 29337 | |
| 29338 | export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 29339 | export const ClientRequest__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]); |
| 29340 | |
| 28729 | 29341 | export type CommandExecutionRequestApprovalParams = { |
| 28730 | 29342 | readonly approvalId?: string | null; |
| 28731 | 29343 | readonly command?: string | null; |
| ... | ... | @@ -28820,7 +29432,7 @@ export const CommandExecutionRequestApprovalParams__AdditionalPermissionProfile |
| 28820 | 29432 | Schema.Union([ |
| 28821 | 29433 | CommandExecutionRequestApprovalParams__AdditionalNetworkPermissions, |
| 28822 | 29434 | Schema.Null, |
| 28823 | | ]), |
| 29435 | ]).annotate({ description: "Partial overlay used for per-command permission requests." }), |
| 28824 | 29436 | ), |
| 28825 | 29437 | }); |
| 28826 | 29438 | |
| ... | ... | @@ -29230,10 +29842,20 @@ export const PermissionsRequestApprovalParams = Schema.Struct({ |
| 29230 | 29842 | export type PermissionsRequestApprovalResponse = { |
| 29231 | 29843 | readonly permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile; |
| 29232 | 29844 | readonly scope?: "turn" | "session"; |
| 29845 | readonly strictAutoReview?: boolean | null; |
| 29233 | 29846 | }; |
| 29234 | 29847 | export const PermissionsRequestApprovalResponse = Schema.Struct({ |
| 29235 | 29848 | permissions: PermissionsRequestApprovalResponse__GrantedPermissionProfile, |
| 29236 | 29849 | scope: Schema.optionalKey(Schema.Literals(["turn", "session"]).annotate({ default: "turn" })), |
| 29850 | strictAutoReview: Schema.optionalKey( |
| 29851 | Schema.Union([ |
| 29852 | Schema.Boolean.annotate({ |
| 29853 | description: |
| 29854 | "Review every subsequent command in this turn before normal sandboxed execution.", |
| 29855 | }), |
| 29856 | Schema.Null, |
| 29857 | ]), |
| 29858 | ), |
| 29237 | 29859 | }).annotate({ title: "PermissionsRequestApprovalResponse" }); |
| 29238 | 29860 | |
| 29239 | 29861 | export type PermissionsRequestApprovalResponse__PermissionGrantScope = "turn" | "session"; |
| ... | ... | @@ -29278,6 +29900,14 @@ export type ServerNotification = |
| 29278 | 29900 | readonly method: "thread/name/updated"; |
| 29279 | 29901 | readonly params: ServerNotification__ThreadNameUpdatedNotification; |
| 29280 | 29902 | } |
| 29903 | | { |
| 29904 | readonly method: "thread/goal/updated"; |
| 29905 | readonly params: ServerNotification__ThreadGoalUpdatedNotification; |
| 29906 | } |
| 29907 | | { |
| 29908 | readonly method: "thread/goal/cleared"; |
| 29909 | readonly params: ServerNotification__ThreadGoalClearedNotification; |
| 29910 | } |
| 29281 | 29911 | | { |
| 29282 | 29912 | readonly method: "thread/tokenUsage/updated"; |
| 29283 | 29913 | readonly params: ServerNotification__ThreadTokenUsageUpdatedNotification; |
| ... | ... | @@ -29334,6 +29964,14 @@ export type ServerNotification = |
| 29334 | 29964 | readonly method: "command/exec/outputDelta"; |
| 29335 | 29965 | readonly params: ServerNotification__CommandExecOutputDeltaNotification; |
| 29336 | 29966 | } |
| 29967 | | { |
| 29968 | readonly method: "process/outputDelta"; |
| 29969 | readonly params: ServerNotification__ProcessOutputDeltaNotification; |
| 29970 | } |
| 29971 | | { |
| 29972 | readonly method: "process/exited"; |
| 29973 | readonly params: ServerNotification__ProcessExitedNotification; |
| 29974 | } |
| 29337 | 29975 | | { |
| 29338 | 29976 | readonly method: "item/commandExecution/outputDelta"; |
| 29339 | 29977 | readonly params: ServerNotification__CommandExecutionOutputDeltaNotification; |
| ... | ... | @@ -29378,6 +30016,10 @@ export type ServerNotification = |
| 29378 | 30016 | readonly method: "app/list/updated"; |
| 29379 | 30017 | readonly params: ServerNotification__AppListUpdatedNotification; |
| 29380 | 30018 | } |
| 30019 | | { |
| 30020 | readonly method: "remoteControl/status/changed"; |
| 30021 | readonly params: ServerNotification__RemoteControlStatusChangedNotification; |
| 30022 | } |
| 29381 | 30023 | | { |
| 29382 | 30024 | readonly method: "externalAgentConfig/import/completed"; |
| 29383 | 30025 | readonly params: ServerNotification__ExternalAgentConfigImportCompletedNotification; |
| ... | ... | @@ -29403,7 +30045,15 @@ export type ServerNotification = |
| 29403 | 30045 | readonly method: "model/rerouted"; |
| 29404 | 30046 | readonly params: ServerNotification__ModelReroutedNotification; |
| 29405 | 30047 | } |
| 30048 | | { |
| 30049 | readonly method: "model/verification"; |
| 30050 | readonly params: ServerNotification__ModelVerificationNotification; |
| 30051 | } |
| 29406 | 30052 | | { readonly method: "warning"; readonly params: ServerNotification__WarningNotification } |
| 30053 | | { |
| 30054 | readonly method: "guardianWarning"; |
| 30055 | readonly params: ServerNotification__GuardianWarningNotification; |
| 30056 | } |
| 29407 | 30057 | | { |
| 29408 | 30058 | readonly method: "deprecationNotice"; |
| 29409 | 30059 | readonly params: ServerNotification__DeprecationNoticeNotification; |
| ... | ... | @@ -29512,6 +30162,18 @@ export const ServerNotification = Schema.Union( |
| 29512 | 30162 | }), |
| 29513 | 30163 | params: ServerNotification__ThreadNameUpdatedNotification, |
| 29514 | 30164 | }).annotate({ title: "Thread/name/updatedNotification" }), |
| 30165 | Schema.Struct({ |
| 30166 | method: Schema.Literal("thread/goal/updated").annotate({ |
| 30167 | title: "Thread/goal/updatedNotificationMethod", |
| 30168 | }), |
| 30169 | params: ServerNotification__ThreadGoalUpdatedNotification, |
| 30170 | }).annotate({ title: "Thread/goal/updatedNotification" }), |
| 30171 | Schema.Struct({ |
| 30172 | method: Schema.Literal("thread/goal/cleared").annotate({ |
| 30173 | title: "Thread/goal/clearedNotificationMethod", |
| 30174 | }), |
| 30175 | params: ServerNotification__ThreadGoalClearedNotification, |
| 30176 | }).annotate({ title: "Thread/goal/clearedNotification" }), |
| 29515 | 30177 | Schema.Struct({ |
| 29516 | 30178 | method: Schema.Literal("thread/tokenUsage/updated").annotate({ |
| 29517 | 30179 | title: "Thread/tokenUsage/updatedNotificationMethod", |
| ... | ... | @@ -29597,6 +30259,25 @@ export const ServerNotification = Schema.Union( |
| 29597 | 30259 | description: |
| 29598 | 30260 | "Stream base64-encoded stdout/stderr chunks for a running `command/exec` session.", |
| 29599 | 30261 | }), |
| 30262 | Schema.Struct({ |
| 30263 | method: Schema.Literal("process/outputDelta").annotate({ |
| 30264 | title: "Process/outputDeltaNotificationMethod", |
| 30265 | }), |
| 30266 | params: ServerNotification__ProcessOutputDeltaNotification, |
| 30267 | }).annotate({ |
| 30268 | title: "Process/outputDeltaNotification", |
| 30269 | description: |
| 30270 | "Stream base64-encoded stdout/stderr chunks for a running `process/spawn` session.", |
| 30271 | }), |
| 30272 | Schema.Struct({ |
| 30273 | method: Schema.Literal("process/exited").annotate({ |
| 30274 | title: "Process/exitedNotificationMethod", |
| 30275 | }), |
| 30276 | params: ServerNotification__ProcessExitedNotification, |
| 30277 | }).annotate({ |
| 30278 | title: "Process/exitedNotification", |
| 30279 | description: "Final exit notification for a `process/spawn` session.", |
| 30280 | }), |
| 29600 | 30281 | Schema.Struct({ |
| 29601 | 30282 | method: Schema.Literal("item/commandExecution/outputDelta").annotate({ |
| 29602 | 30283 | title: "Item/commandExecution/outputDeltaNotificationMethod", |
| ... | ... | @@ -29614,7 +30295,10 @@ export const ServerNotification = Schema.Union( |
| 29614 | 30295 | title: "Item/fileChange/outputDeltaNotificationMethod", |
| 29615 | 30296 | }), |
| 29616 | 30297 | params: ServerNotification__FileChangeOutputDeltaNotification, |
| 29617 | | }).annotate({ title: "Item/fileChange/outputDeltaNotification" }), |
| 30298 | }).annotate({ |
| 30299 | title: "Item/fileChange/outputDeltaNotification", |
| 30300 | description: "Deprecated legacy apply_patch output stream notification.", |
| 30301 | }), |
| 29618 | 30302 | Schema.Struct({ |
| 29619 | 30303 | method: Schema.Literal("item/fileChange/patchUpdated").annotate({ |
| 29620 | 30304 | title: "Item/fileChange/patchUpdatedNotificationMethod", |
| ... | ... | @@ -29663,6 +30347,12 @@ export const ServerNotification = Schema.Union( |
| 29663 | 30347 | }), |
| 29664 | 30348 | params: ServerNotification__AppListUpdatedNotification, |
| 29665 | 30349 | }).annotate({ title: "App/list/updatedNotification" }), |
| 30350 | Schema.Struct({ |
| 30351 | method: Schema.Literal("remoteControl/status/changed").annotate({ |
| 30352 | title: "RemoteControl/status/changedNotificationMethod", |
| 30353 | }), |
| 30354 | params: ServerNotification__RemoteControlStatusChangedNotification, |
| 30355 | }).annotate({ title: "RemoteControl/status/changedNotification" }), |
| 29666 | 30356 | Schema.Struct({ |
| 29667 | 30357 | method: Schema.Literal("externalAgentConfig/import/completed").annotate({ |
| 29668 | 30358 | title: "ExternalAgentConfig/import/completedNotificationMethod", |
| ... | ... | @@ -29706,10 +30396,22 @@ export const ServerNotification = Schema.Union( |
| 29706 | 30396 | }), |
| 29707 | 30397 | params: ServerNotification__ModelReroutedNotification, |
| 29708 | 30398 | }).annotate({ title: "Model/reroutedNotification" }), |
| 30399 | Schema.Struct({ |
| 30400 | method: Schema.Literal("model/verification").annotate({ |
| 30401 | title: "Model/verificationNotificationMethod", |
| 30402 | }), |
| 30403 | params: ServerNotification__ModelVerificationNotification, |
| 30404 | }).annotate({ title: "Model/verificationNotification" }), |
| 29709 | 30405 | Schema.Struct({ |
| 29710 | 30406 | method: Schema.Literal("warning").annotate({ title: "WarningNotificationMethod" }), |
| 29711 | 30407 | params: ServerNotification__WarningNotification, |
| 29712 | 30408 | }).annotate({ title: "WarningNotification" }), |
| 30409 | Schema.Struct({ |
| 30410 | method: Schema.Literal("guardianWarning").annotate({ |
| 30411 | title: "GuardianWarningNotificationMethod", |
| 30412 | }), |
| 30413 | params: ServerNotification__GuardianWarningNotification, |
| 30414 | }).annotate({ title: "GuardianWarningNotification" }), |
| 29713 | 30415 | Schema.Struct({ |
| 29714 | 30416 | method: Schema.Literal("deprecationNotice").annotate({ |
| 29715 | 30417 | title: "DeprecationNoticeNotificationMethod", |
| ... | ... | @@ -29866,6 +30568,8 @@ export type ServerNotification__HookSource = |
| 29866 | 30568 | | "project" |
| 29867 | 30569 | | "mdm" |
| 29868 | 30570 | | "sessionFlags" |
| 30571 | | "plugin" |
| 30572 | | "cloudRequirements" |
| 29869 | 30573 | | "legacyManagedConfigFile" |
| 29870 | 30574 | | "legacyManagedConfigMdm" |
| 29871 | 30575 | | "unknown"; |
| ... | ... | @@ -29875,11 +30579,19 @@ export const ServerNotification__HookSource = Schema.Literals([ |
| 29875 | 30579 | "project", |
| 29876 | 30580 | "mdm", |
| 29877 | 30581 | "sessionFlags", |
| 30582 | "plugin", |
| 30583 | "cloudRequirements", |
| 29878 | 30584 | "legacyManagedConfigFile", |
| 29879 | 30585 | "legacyManagedConfigMdm", |
| 29880 | 30586 | "unknown", |
| 29881 | 30587 | ]); |
| 29882 | 30588 | |
| 30589 | export type ServerNotification__ProcessOutputStream = "stdout" | "stderr"; |
| 30590 | export const ServerNotification__ProcessOutputStream = Schema.Literals([ |
| 30591 | "stdout", |
| 30592 | "stderr", |
| 30593 | ]).annotate({ description: "Stream label for `process/outputDelta` notifications." }); |
| 30594 | |
| 29883 | 30595 | export type ServerNotification__SessionSource = |
| 29884 | 30596 | | "cli" |
| 29885 | 30597 | | "vscode" |
| ... | ... | @@ -29899,6 +30611,9 @@ export const ServerNotification__SessionSource = Schema.Union( |
| 29899 | 30611 | { mode: "oneOf" }, |
| 29900 | 30612 | ); |
| 29901 | 30613 | |
| 30614 | export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 30615 | export const ServerNotification__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]); |
| 30616 | |
| 29902 | 30617 | export type ServerRequest = |
| 29903 | 30618 | | { |
| 29904 | 30619 | readonly id: ServerRequest__RequestId; |
| ... | ... | @@ -30052,7 +30767,9 @@ export const ServerRequest__AdditionalPermissionProfile = Schema.Struct({ |
| 30052 | 30767 | Schema.Union([ServerRequest__AdditionalFileSystemPermissions, Schema.Null]), |
| 30053 | 30768 | ), |
| 30054 | 30769 | network: Schema.optionalKey( |
| 30055 | | Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]), |
| 30770 | Schema.Union([ServerRequest__AdditionalNetworkPermissions, Schema.Null]).annotate({ |
| 30771 | description: "Partial overlay used for per-command permission requests.", |
| 30772 | }), |
| 30056 | 30773 | ), |
| 30057 | 30774 | }); |
| 30058 | 30775 | |
| ... | ... | @@ -30399,7 +31116,7 @@ export const V2CommandExecParams = Schema.Struct({ |
| 30399 | 31116 | sandboxPolicy: Schema.optionalKey( |
| 30400 | 31117 | Schema.Union([V2CommandExecParams__SandboxPolicy, Schema.Null]).annotate({ |
| 30401 | 31118 | description: |
| 30402 | | "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted.", |
| 31119 | "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with `permissionProfile`.", |
| 30403 | 31120 | }), |
| 30404 | 31121 | ), |
| 30405 | 31122 | size: Schema.optionalKey( |
| ... | ... | @@ -30443,25 +31160,40 @@ export const V2CommandExecParams = Schema.Struct({ |
| 30443 | 31160 | export type V2CommandExecParams__NetworkAccess = "restricted" | "enabled"; |
| 30444 | 31161 | export const V2CommandExecParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]); |
| 30445 | 31162 | |
| 30446 | | export type V2CommandExecParams__ReadOnlyAccess = |
| 31163 | export type V2CommandExecParams__PermissionProfile = |
| 30447 | 31164 | | { |
| 30448 | | readonly includePlatformDefaults?: boolean; |
| 30449 | | readonly readableRoots?: ReadonlyArray<V2CommandExecParams__AbsolutePathBuf>; |
| 30450 | | readonly type: "restricted"; |
| 31165 | readonly fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions; |
| 31166 | readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions; |
| 31167 | readonly type: "managed"; |
| 30451 | 31168 | } |
| 30452 | | | { readonly type: "fullAccess" }; |
| 30453 | | export const V2CommandExecParams__ReadOnlyAccess = Schema.Union( |
| 31169 | | { readonly type: "disabled" } |
| 31170 | | { |
| 31171 | readonly network: V2CommandExecParams__PermissionProfileNetworkPermissions; |
| 31172 | readonly type: "external"; |
| 31173 | }; |
| 31174 | export const V2CommandExecParams__PermissionProfile = Schema.Union( |
| 30454 | 31175 | [ |
| 30455 | 31176 | Schema.Struct({ |
| 30456 | | includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 30457 | | readableRoots: Schema.optionalKey( |
| 30458 | | Schema.Array(V2CommandExecParams__AbsolutePathBuf).annotate({ default: [] }), |
| 30459 | | ), |
| 30460 | | type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }), |
| 30461 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 31177 | fileSystem: V2CommandExecParams__PermissionProfileFileSystemPermissions, |
| 31178 | network: V2CommandExecParams__PermissionProfileNetworkPermissions, |
| 31179 | type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }), |
| 31180 | }).annotate({ |
| 31181 | title: "ManagedPermissionProfile", |
| 31182 | description: "Codex owns sandbox construction for this profile.", |
| 31183 | }), |
| 31184 | Schema.Struct({ |
| 31185 | type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }), |
| 31186 | }).annotate({ |
| 31187 | title: "DisabledPermissionProfile", |
| 31188 | description: "Do not apply an outer sandbox.", |
| 31189 | }), |
| 30462 | 31190 | Schema.Struct({ |
| 30463 | | type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }), |
| 30464 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 31191 | network: V2CommandExecParams__PermissionProfileNetworkPermissions, |
| 31192 | type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }), |
| 31193 | }).annotate({ |
| 31194 | title: "ExternalPermissionProfile", |
| 31195 | description: "Filesystem isolation is enforced by an external caller.", |
| 31196 | }), |
| 30465 | 31197 | ], |
| 30466 | 31198 | { mode: "oneOf" }, |
| 30467 | 31199 | ); |
| ... | ... | @@ -30707,13 +31439,42 @@ export const V2ConfigRequirementsReadResponse = Schema.Struct({ |
| 30707 | 31439 | ), |
| 30708 | 31440 | }).annotate({ title: "ConfigRequirementsReadResponse" }); |
| 30709 | 31441 | |
| 30710 | | export type V2ConfigRequirementsReadResponse__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 31442 | export type V2ConfigRequirementsReadResponse__ApprovalsReviewer = |
| 31443 | | "user" |
| 31444 | | "auto_review" |
| 31445 | | "guardian_subagent"; |
| 30711 | 31446 | export const V2ConfigRequirementsReadResponse__ApprovalsReviewer = Schema.Literals([ |
| 30712 | 31447 | "user", |
| 31448 | "auto_review", |
| 30713 | 31449 | "guardian_subagent", |
| 30714 | 31450 | ]).annotate({ |
| 30715 | 31451 | description: |
| 30716 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 31452 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 31453 | }); |
| 31454 | |
| 31455 | export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = { |
| 31456 | readonly PermissionRequest: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31457 | readonly PostCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31458 | readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31459 | readonly PreCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31460 | readonly PreToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31461 | readonly SessionStart: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31462 | readonly Stop: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31463 | readonly UserPromptSubmit: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 31464 | readonly managedDir?: string | null; |
| 31465 | readonly windowsManagedDir?: string | null; |
| 31466 | }; |
| 31467 | export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema.Struct({ |
| 31468 | PermissionRequest: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31469 | PostCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31470 | PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31471 | PreCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31472 | PreToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31473 | SessionStart: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31474 | Stop: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31475 | UserPromptSubmit: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 31476 | managedDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31477 | windowsManagedDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30717 | 31478 | }); |
| 30718 | 31479 | |
| 30719 | 31480 | export type V2ConfigRequirementsReadResponse__NetworkRequirements = { |
| ... | ... | @@ -30907,97 +31668,6 @@ export const V2DeprecationNoticeNotification = Schema.Struct({ |
| 30907 | 31668 | summary: Schema.String.annotate({ description: "Concise summary of what is deprecated." }), |
| 30908 | 31669 | }).annotate({ title: "DeprecationNoticeNotification" }); |
| 30909 | 31670 | |
| 30910 | | export type V2DeviceKeyCreateParams = { |
| 30911 | | readonly accountUserId: string; |
| 30912 | | readonly clientId: string; |
| 30913 | | readonly protectionPolicy?: V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy | null; |
| 30914 | | }; |
| 30915 | | export const V2DeviceKeyCreateParams = Schema.Struct({ |
| 30916 | | accountUserId: Schema.String, |
| 30917 | | clientId: Schema.String, |
| 30918 | | protectionPolicy: Schema.optionalKey( |
| 30919 | | Schema.Union([V2DeviceKeyCreateParams__DeviceKeyProtectionPolicy, Schema.Null]).annotate({ |
| 30920 | | description: "Defaults to `hardware_only` when omitted.", |
| 30921 | | }), |
| 30922 | | ), |
| 30923 | | }).annotate({ |
| 30924 | | title: "DeviceKeyCreateParams", |
| 30925 | | description: "Create a controller-local device key with a random key id.", |
| 30926 | | }); |
| 30927 | | |
| 30928 | | export type V2DeviceKeyCreateResponse = { |
| 30929 | | readonly algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm; |
| 30930 | | readonly keyId: string; |
| 30931 | | readonly protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass; |
| 30932 | | readonly publicKeySpkiDerBase64: string; |
| 30933 | | }; |
| 30934 | | export const V2DeviceKeyCreateResponse = Schema.Struct({ |
| 30935 | | algorithm: V2DeviceKeyCreateResponse__DeviceKeyAlgorithm, |
| 30936 | | keyId: Schema.String, |
| 30937 | | protectionClass: V2DeviceKeyCreateResponse__DeviceKeyProtectionClass, |
| 30938 | | publicKeySpkiDerBase64: Schema.String.annotate({ |
| 30939 | | description: "SubjectPublicKeyInfo DER encoded as base64.", |
| 30940 | | }), |
| 30941 | | }).annotate({ |
| 30942 | | title: "DeviceKeyCreateResponse", |
| 30943 | | description: "Device-key metadata and public key returned by create/public APIs.", |
| 30944 | | }); |
| 30945 | | |
| 30946 | | export type V2DeviceKeyPublicParams = { readonly keyId: string }; |
| 30947 | | export const V2DeviceKeyPublicParams = Schema.Struct({ keyId: Schema.String }).annotate({ |
| 30948 | | title: "DeviceKeyPublicParams", |
| 30949 | | description: "Fetch a controller-local device key public key by id.", |
| 30950 | | }); |
| 30951 | | |
| 30952 | | export type V2DeviceKeyPublicResponse = { |
| 30953 | | readonly algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm; |
| 30954 | | readonly keyId: string; |
| 30955 | | readonly protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass; |
| 30956 | | readonly publicKeySpkiDerBase64: string; |
| 30957 | | }; |
| 30958 | | export const V2DeviceKeyPublicResponse = Schema.Struct({ |
| 30959 | | algorithm: V2DeviceKeyPublicResponse__DeviceKeyAlgorithm, |
| 30960 | | keyId: Schema.String, |
| 30961 | | protectionClass: V2DeviceKeyPublicResponse__DeviceKeyProtectionClass, |
| 30962 | | publicKeySpkiDerBase64: Schema.String.annotate({ |
| 30963 | | description: "SubjectPublicKeyInfo DER encoded as base64.", |
| 30964 | | }), |
| 30965 | | }).annotate({ |
| 30966 | | title: "DeviceKeyPublicResponse", |
| 30967 | | description: "Device-key public metadata returned by `device/key/public`.", |
| 30968 | | }); |
| 30969 | | |
| 30970 | | export type V2DeviceKeySignParams = { |
| 30971 | | readonly keyId: string; |
| 30972 | | readonly payload: V2DeviceKeySignParams__DeviceKeySignPayload; |
| 30973 | | }; |
| 30974 | | export const V2DeviceKeySignParams = Schema.Struct({ |
| 30975 | | keyId: Schema.String, |
| 30976 | | payload: V2DeviceKeySignParams__DeviceKeySignPayload, |
| 30977 | | }).annotate({ |
| 30978 | | title: "DeviceKeySignParams", |
| 30979 | | description: "Sign an accepted structured payload with a controller-local device key.", |
| 30980 | | }); |
| 30981 | | |
| 30982 | | export type V2DeviceKeySignResponse = { |
| 30983 | | readonly algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm; |
| 30984 | | readonly signatureDerBase64: string; |
| 30985 | | readonly signedPayloadBase64: string; |
| 30986 | | }; |
| 30987 | | export const V2DeviceKeySignResponse = Schema.Struct({ |
| 30988 | | algorithm: V2DeviceKeySignResponse__DeviceKeyAlgorithm, |
| 30989 | | signatureDerBase64: Schema.String.annotate({ |
| 30990 | | description: "ECDSA signature DER encoded as base64.", |
| 30991 | | }), |
| 30992 | | signedPayloadBase64: Schema.String.annotate({ |
| 30993 | | description: |
| 30994 | | "Exact bytes signed by the device key, encoded as base64. Verifiers must verify this byte string directly and must not reserialize `payload`.", |
| 30995 | | }), |
| 30996 | | }).annotate({ |
| 30997 | | title: "DeviceKeySignResponse", |
| 30998 | | description: "ASN.1 DER signature returned by `device/key/sign`.", |
| 30999 | | }); |
| 31000 | | |
| 31001 | 31671 | export type V2ErrorNotification = { |
| 31002 | 31672 | readonly error: V2ErrorNotification__TurnError; |
| 31003 | 31673 | readonly threadId: string; |
| ... | ... | @@ -31166,7 +31836,11 @@ export const V2FileChangeOutputDeltaNotification = Schema.Struct({ |
| 31166 | 31836 | itemId: Schema.String, |
| 31167 | 31837 | threadId: Schema.String, |
| 31168 | 31838 | turnId: Schema.String, |
| 31169 | | }).annotate({ title: "FileChangeOutputDeltaNotification" }); |
| 31839 | }).annotate({ |
| 31840 | title: "FileChangeOutputDeltaNotification", |
| 31841 | description: |
| 31842 | "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.", |
| 31843 | }); |
| 31170 | 31844 | |
| 31171 | 31845 | export type V2FileChangePatchUpdatedNotification = { |
| 31172 | 31846 | readonly changes: ReadonlyArray<V2FileChangePatchUpdatedNotification__FileUpdateChange>; |
| ... | ... | @@ -31543,6 +32217,14 @@ export const V2GetAccountResponse = Schema.Struct({ |
| 31543 | 32217 | requiresOpenaiAuth: Schema.Boolean, |
| 31544 | 32218 | }).annotate({ title: "GetAccountResponse" }); |
| 31545 | 32219 | |
| 32220 | export type V2GuardianWarningNotification = { readonly message: string; readonly threadId: string }; |
| 32221 | export const V2GuardianWarningNotification = Schema.Struct({ |
| 32222 | message: Schema.String.annotate({ |
| 32223 | description: "Concise guardian warning message for the user.", |
| 32224 | }), |
| 32225 | threadId: Schema.String.annotate({ description: "Thread target for the guardian warning." }), |
| 32226 | }).annotate({ title: "GuardianWarningNotification" }); |
| 32227 | |
| 31546 | 32228 | export type V2HookCompletedNotification = { |
| 31547 | 32229 | readonly run: V2HookCompletedNotification__HookRunSummary; |
| 31548 | 32230 | readonly threadId: string; |
| ... | ... | @@ -31560,6 +32242,8 @@ export type V2HookCompletedNotification__HookSource = |
| 31560 | 32242 | | "project" |
| 31561 | 32243 | | "mdm" |
| 31562 | 32244 | | "sessionFlags" |
| 32245 | | "plugin" |
| 32246 | | "cloudRequirements" |
| 31563 | 32247 | | "legacyManagedConfigFile" |
| 31564 | 32248 | | "legacyManagedConfigMdm" |
| 31565 | 32249 | | "unknown"; |
| ... | ... | @@ -31569,11 +32253,29 @@ export const V2HookCompletedNotification__HookSource = Schema.Literals([ |
| 31569 | 32253 | "project", |
| 31570 | 32254 | "mdm", |
| 31571 | 32255 | "sessionFlags", |
| 32256 | "plugin", |
| 32257 | "cloudRequirements", |
| 31572 | 32258 | "legacyManagedConfigFile", |
| 31573 | 32259 | "legacyManagedConfigMdm", |
| 31574 | 32260 | "unknown", |
| 31575 | 32261 | ]); |
| 31576 | 32262 | |
| 32263 | export type V2HooksListParams = { readonly cwds?: ReadonlyArray<string> }; |
| 32264 | export const V2HooksListParams = Schema.Struct({ |
| 32265 | cwds: Schema.optionalKey( |
| 32266 | Schema.Array(Schema.String).annotate({ |
| 32267 | description: "When empty, defaults to the current session working directory.", |
| 32268 | }), |
| 32269 | ), |
| 32270 | }).annotate({ title: "HooksListParams" }); |
| 32271 | |
| 32272 | export type V2HooksListResponse = { |
| 32273 | readonly data: ReadonlyArray<V2HooksListResponse__HooksListEntry>; |
| 32274 | }; |
| 32275 | export const V2HooksListResponse = Schema.Struct({ |
| 32276 | data: Schema.Array(V2HooksListResponse__HooksListEntry), |
| 32277 | }).annotate({ title: "HooksListResponse" }); |
| 32278 | |
| 31577 | 32279 | export type V2HookStartedNotification = { |
| 31578 | 32280 | readonly run: V2HookStartedNotification__HookRunSummary; |
| 31579 | 32281 | readonly threadId: string; |
| ... | ... | @@ -31591,6 +32293,8 @@ export type V2HookStartedNotification__HookSource = |
| 31591 | 32293 | | "project" |
| 31592 | 32294 | | "mdm" |
| 31593 | 32295 | | "sessionFlags" |
| 32296 | | "plugin" |
| 32297 | | "cloudRequirements" |
| 31594 | 32298 | | "legacyManagedConfigFile" |
| 31595 | 32299 | | "legacyManagedConfigMdm" |
| 31596 | 32300 | | "unknown"; |
| ... | ... | @@ -31600,17 +32304,24 @@ export const V2HookStartedNotification__HookSource = Schema.Literals([ |
| 31600 | 32304 | "project", |
| 31601 | 32305 | "mdm", |
| 31602 | 32306 | "sessionFlags", |
| 32307 | "plugin", |
| 32308 | "cloudRequirements", |
| 31603 | 32309 | "legacyManagedConfigFile", |
| 31604 | 32310 | "legacyManagedConfigMdm", |
| 31605 | 32311 | "unknown", |
| 31606 | 32312 | ]); |
| 31607 | 32313 | |
| 31608 | 32314 | export type V2ItemCompletedNotification = { |
| 32315 | readonly completedAtMs: number; |
| 31609 | 32316 | readonly item: V2ItemCompletedNotification__ThreadItem; |
| 31610 | 32317 | readonly threadId: string; |
| 31611 | 32318 | readonly turnId: string; |
| 31612 | 32319 | }; |
| 31613 | 32320 | export const V2ItemCompletedNotification = Schema.Struct({ |
| 32321 | completedAtMs: Schema.Number.annotate({ |
| 32322 | description: "Unix timestamp (in milliseconds) when this item lifecycle completed.", |
| 32323 | format: "int64", |
| 32324 | }).check(Schema.isInt()), |
| 31614 | 32325 | item: V2ItemCompletedNotification__ThreadItem, |
| 31615 | 32326 | threadId: Schema.String, |
| 31616 | 32327 | turnId: Schema.String, |
| ... | ... | @@ -31727,11 +32438,16 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ |
| 31727 | 32438 | |
| 31728 | 32439 | export type V2ItemStartedNotification = { |
| 31729 | 32440 | readonly item: V2ItemStartedNotification__ThreadItem; |
| 32441 | readonly startedAtMs: number; |
| 31730 | 32442 | readonly threadId: string; |
| 31731 | 32443 | readonly turnId: string; |
| 31732 | 32444 | }; |
| 31733 | 32445 | export const V2ItemStartedNotification = Schema.Struct({ |
| 31734 | 32446 | item: V2ItemStartedNotification__ThreadItem, |
| 32447 | startedAtMs: Schema.Number.annotate({ |
| 32448 | description: "Unix timestamp (in milliseconds) when this item lifecycle started.", |
| 32449 | format: "int64", |
| 32450 | }).check(Schema.isInt()), |
| 31735 | 32451 | threadId: Schema.String, |
| 31736 | 32452 | turnId: Schema.String, |
| 31737 | 32453 | }).annotate({ title: "ItemStartedNotification" }); |
| ... | ... | @@ -31834,7 +32550,7 @@ export const V2ListMcpServerStatusResponse = Schema.Struct({ |
| 31834 | 32550 | |
| 31835 | 32551 | export type V2LoginAccountParams = |
| 31836 | 32552 | | { readonly apiKey: string; readonly type: "apiKey" } |
| 31837 | | | { readonly type: "chatgpt" } |
| 32553 | | { readonly codexStreamlinedLogin?: boolean; readonly type: "chatgpt" } |
| 31838 | 32554 | | { readonly type: "chatgptDeviceCode" } |
| 31839 | 32555 | | { |
| 31840 | 32556 | readonly accessToken: string; |
| ... | ... | @@ -31849,6 +32565,7 @@ export const V2LoginAccountParams = Schema.Union( |
| 31849 | 32565 | type: Schema.Literal("apiKey").annotate({ title: "ApiKeyv2::LoginAccountParamsType" }), |
| 31850 | 32566 | }).annotate({ title: "ApiKeyv2::LoginAccountParams" }), |
| 31851 | 32567 | Schema.Struct({ |
| 32568 | codexStreamlinedLogin: Schema.optionalKey(Schema.Boolean), |
| 31852 | 32569 | type: Schema.Literal("chatgpt").annotate({ title: "Chatgptv2::LoginAccountParamsType" }), |
| 31853 | 32570 | }).annotate({ title: "Chatgptv2::LoginAccountParams" }), |
| 31854 | 32571 | Schema.Struct({ |
| ... | ... | @@ -31972,6 +32689,22 @@ export const V2MarketplaceRemoveResponse = Schema.Struct({ |
| 31972 | 32689 | marketplaceName: Schema.String, |
| 31973 | 32690 | }).annotate({ title: "MarketplaceRemoveResponse" }); |
| 31974 | 32691 | |
| 32692 | export type V2MarketplaceUpgradeParams = { readonly marketplaceName?: string | null }; |
| 32693 | export const V2MarketplaceUpgradeParams = Schema.Struct({ |
| 32694 | marketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 32695 | }).annotate({ title: "MarketplaceUpgradeParams" }); |
| 32696 | |
| 32697 | export type V2MarketplaceUpgradeResponse = { |
| 32698 | readonly errors: ReadonlyArray<V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo>; |
| 32699 | readonly selectedMarketplaces: ReadonlyArray<string>; |
| 32700 | readonly upgradedRoots: ReadonlyArray<V2MarketplaceUpgradeResponse__AbsolutePathBuf>; |
| 32701 | }; |
| 32702 | export const V2MarketplaceUpgradeResponse = Schema.Struct({ |
| 32703 | errors: Schema.Array(V2MarketplaceUpgradeResponse__MarketplaceUpgradeErrorInfo), |
| 32704 | selectedMarketplaces: Schema.Array(Schema.String), |
| 32705 | upgradedRoots: Schema.Array(V2MarketplaceUpgradeResponse__AbsolutePathBuf), |
| 32706 | }).annotate({ title: "MarketplaceUpgradeResponse" }); |
| 32707 | |
| 31975 | 32708 | export type V2McpResourceReadParams = { |
| 31976 | 32709 | readonly server: string; |
| 31977 | 32710 | readonly threadId?: string | null; |
| ... | ... | @@ -32128,6 +32861,22 @@ export const V2ModelListResponse = Schema.Struct({ |
| 32128 | 32861 | ), |
| 32129 | 32862 | }).annotate({ title: "ModelListResponse" }); |
| 32130 | 32863 | |
| 32864 | export type V2ModelProviderCapabilitiesReadParams = {}; |
| 32865 | export const V2ModelProviderCapabilitiesReadParams = Schema.Struct({}).annotate({ |
| 32866 | title: "ModelProviderCapabilitiesReadParams", |
| 32867 | }); |
| 32868 | |
| 32869 | export type V2ModelProviderCapabilitiesReadResponse = { |
| 32870 | readonly imageGeneration: boolean; |
| 32871 | readonly namespaceTools: boolean; |
| 32872 | readonly webSearch: boolean; |
| 32873 | }; |
| 32874 | export const V2ModelProviderCapabilitiesReadResponse = Schema.Struct({ |
| 32875 | imageGeneration: Schema.Boolean, |
| 32876 | namespaceTools: Schema.Boolean, |
| 32877 | webSearch: Schema.Boolean, |
| 32878 | }).annotate({ title: "ModelProviderCapabilitiesReadResponse" }); |
| 32879 | |
| 32131 | 32880 | export type V2ModelReroutedNotification = { |
| 32132 | 32881 | readonly fromModel: string; |
| 32133 | 32882 | readonly reason: V2ModelReroutedNotification__ModelRerouteReason; |
| ... | ... | @@ -32143,6 +32892,17 @@ export const V2ModelReroutedNotification = Schema.Struct({ |
| 32143 | 32892 | turnId: Schema.String, |
| 32144 | 32893 | }).annotate({ title: "ModelReroutedNotification" }); |
| 32145 | 32894 | |
| 32895 | export type V2ModelVerificationNotification = { |
| 32896 | readonly threadId: string; |
| 32897 | readonly turnId: string; |
| 32898 | readonly verifications: ReadonlyArray<V2ModelVerificationNotification__ModelVerification>; |
| 32899 | }; |
| 32900 | export const V2ModelVerificationNotification = Schema.Struct({ |
| 32901 | threadId: Schema.String, |
| 32902 | turnId: Schema.String, |
| 32903 | verifications: Schema.Array(V2ModelVerificationNotification__ModelVerification), |
| 32904 | }).annotate({ title: "ModelVerificationNotification" }); |
| 32905 | |
| 32146 | 32906 | export type V2PlanDeltaNotification = { |
| 32147 | 32907 | readonly delta: string; |
| 32148 | 32908 | readonly itemId: string; |
| ... | ... | @@ -32184,6 +32944,7 @@ export const V2PluginInstallResponse = Schema.Struct({ |
| 32184 | 32944 | |
| 32185 | 32945 | export type V2PluginListParams = { |
| 32186 | 32946 | readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null; |
| 32947 | readonly marketplaceKinds?: ReadonlyArray<V2PluginListParams__PluginListMarketplaceKind> | null; |
| 32187 | 32948 | }; |
| 32188 | 32949 | export const V2PluginListParams = Schema.Struct({ |
| 32189 | 32950 | cwds: Schema.optionalKey( |
| ... | ... | @@ -32195,6 +32956,15 @@ export const V2PluginListParams = Schema.Struct({ |
| 32195 | 32956 | Schema.Null, |
| 32196 | 32957 | ]), |
| 32197 | 32958 | ), |
| 32959 | marketplaceKinds: Schema.optionalKey( |
| 32960 | Schema.Union([ |
| 32961 | Schema.Array(V2PluginListParams__PluginListMarketplaceKind).annotate({ |
| 32962 | description: |
| 32963 | "Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.", |
| 32964 | }), |
| 32965 | Schema.Null, |
| 32966 | ]), |
| 32967 | ), |
| 32198 | 32968 | }).annotate({ title: "PluginListParams" }); |
| 32199 | 32969 | |
| 32200 | 32970 | export type V2PluginListResponse = { |
| ... | ... | @@ -32210,6 +32980,12 @@ export const V2PluginListResponse = Schema.Struct({ |
| 32210 | 32980 | marketplaces: Schema.Array(V2PluginListResponse__PluginMarketplaceEntry), |
| 32211 | 32981 | }).annotate({ title: "PluginListResponse" }); |
| 32212 | 32982 | |
| 32983 | export type V2PluginListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| 32984 | export const V2PluginListResponse__PluginAvailability = Schema.Literals([ |
| 32985 | "DISABLED_BY_ADMIN", |
| 32986 | "AVAILABLE", |
| 32987 | ]); |
| 32988 | |
| 32213 | 32989 | export type V2PluginReadParams = { |
| 32214 | 32990 | readonly marketplacePath?: V2PluginReadParams__AbsolutePathBuf | null; |
| 32215 | 32991 | readonly pluginName: string; |
| ... | ... | @@ -32228,6 +33004,98 @@ export const V2PluginReadResponse = Schema.Struct({ |
| 32228 | 33004 | plugin: V2PluginReadResponse__PluginDetail, |
| 32229 | 33005 | }).annotate({ title: "PluginReadResponse" }); |
| 32230 | 33006 | |
| 33007 | export type V2PluginReadResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| 33008 | export const V2PluginReadResponse__PluginAvailability = Schema.Literals([ |
| 33009 | "DISABLED_BY_ADMIN", |
| 33010 | "AVAILABLE", |
| 33011 | ]); |
| 33012 | |
| 33013 | export type V2PluginShareDeleteParams = { readonly remotePluginId: string }; |
| 33014 | export const V2PluginShareDeleteParams = Schema.Struct({ remotePluginId: Schema.String }).annotate({ |
| 33015 | title: "PluginShareDeleteParams", |
| 33016 | }); |
| 33017 | |
| 33018 | export type V2PluginShareDeleteResponse = {}; |
| 33019 | export const V2PluginShareDeleteResponse = Schema.Struct({}).annotate({ |
| 33020 | title: "PluginShareDeleteResponse", |
| 33021 | }); |
| 33022 | |
| 33023 | export type V2PluginShareListParams = {}; |
| 33024 | export const V2PluginShareListParams = Schema.Struct({}).annotate({ |
| 33025 | title: "PluginShareListParams", |
| 33026 | }); |
| 33027 | |
| 33028 | export type V2PluginShareListResponse = { |
| 33029 | readonly data: ReadonlyArray<V2PluginShareListResponse__PluginShareListItem>; |
| 33030 | }; |
| 33031 | export const V2PluginShareListResponse = Schema.Struct({ |
| 33032 | data: Schema.Array(V2PluginShareListResponse__PluginShareListItem), |
| 33033 | }).annotate({ title: "PluginShareListResponse" }); |
| 33034 | |
| 33035 | export type V2PluginShareListResponse__PluginAvailability = "DISABLED_BY_ADMIN" | "AVAILABLE"; |
| 33036 | export const V2PluginShareListResponse__PluginAvailability = Schema.Literals([ |
| 33037 | "DISABLED_BY_ADMIN", |
| 33038 | "AVAILABLE", |
| 33039 | ]); |
| 33040 | |
| 33041 | export type V2PluginShareSaveParams = { |
| 33042 | readonly discoverability?: V2PluginShareSaveParams__PluginShareDiscoverability | null; |
| 33043 | readonly pluginPath: V2PluginShareSaveParams__AbsolutePathBuf; |
| 33044 | readonly remotePluginId?: string | null; |
| 33045 | readonly shareTargets?: ReadonlyArray<V2PluginShareSaveParams__PluginShareTarget> | null; |
| 33046 | }; |
| 33047 | export const V2PluginShareSaveParams = Schema.Struct({ |
| 33048 | discoverability: Schema.optionalKey( |
| 33049 | Schema.Union([V2PluginShareSaveParams__PluginShareDiscoverability, Schema.Null]), |
| 33050 | ), |
| 33051 | pluginPath: V2PluginShareSaveParams__AbsolutePathBuf, |
| 33052 | remotePluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33053 | shareTargets: Schema.optionalKey( |
| 33054 | Schema.Union([Schema.Array(V2PluginShareSaveParams__PluginShareTarget), Schema.Null]), |
| 33055 | ), |
| 33056 | }).annotate({ title: "PluginShareSaveParams" }); |
| 33057 | |
| 33058 | export type V2PluginShareSaveResponse = { |
| 33059 | readonly remotePluginId: string; |
| 33060 | readonly shareUrl: string; |
| 33061 | }; |
| 33062 | export const V2PluginShareSaveResponse = Schema.Struct({ |
| 33063 | remotePluginId: Schema.String, |
| 33064 | shareUrl: Schema.String, |
| 33065 | }).annotate({ title: "PluginShareSaveResponse" }); |
| 33066 | |
| 33067 | export type V2PluginShareUpdateTargetsParams = { |
| 33068 | readonly remotePluginId: string; |
| 33069 | readonly shareTargets: ReadonlyArray<V2PluginShareUpdateTargetsParams__PluginShareTarget>; |
| 33070 | }; |
| 33071 | export const V2PluginShareUpdateTargetsParams = Schema.Struct({ |
| 33072 | remotePluginId: Schema.String, |
| 33073 | shareTargets: Schema.Array(V2PluginShareUpdateTargetsParams__PluginShareTarget), |
| 33074 | }).annotate({ title: "PluginShareUpdateTargetsParams" }); |
| 33075 | |
| 33076 | export type V2PluginShareUpdateTargetsResponse = { |
| 33077 | readonly principals: ReadonlyArray<V2PluginShareUpdateTargetsResponse__PluginSharePrincipal>; |
| 33078 | }; |
| 33079 | export const V2PluginShareUpdateTargetsResponse = Schema.Struct({ |
| 33080 | principals: Schema.Array(V2PluginShareUpdateTargetsResponse__PluginSharePrincipal), |
| 33081 | }).annotate({ title: "PluginShareUpdateTargetsResponse" }); |
| 33082 | |
| 33083 | export type V2PluginSkillReadParams = { |
| 33084 | readonly remoteMarketplaceName: string; |
| 33085 | readonly remotePluginId: string; |
| 33086 | readonly skillName: string; |
| 33087 | }; |
| 33088 | export const V2PluginSkillReadParams = Schema.Struct({ |
| 33089 | remoteMarketplaceName: Schema.String, |
| 33090 | remotePluginId: Schema.String, |
| 33091 | skillName: Schema.String, |
| 33092 | }).annotate({ title: "PluginSkillReadParams" }); |
| 33093 | |
| 33094 | export type V2PluginSkillReadResponse = { readonly contents?: string | null }; |
| 33095 | export const V2PluginSkillReadResponse = Schema.Struct({ |
| 33096 | contents: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33097 | }).annotate({ title: "PluginSkillReadResponse" }); |
| 33098 | |
| 32231 | 33099 | export type V2PluginUninstallParams = { readonly pluginId: string }; |
| 32232 | 33100 | export const V2PluginUninstallParams = Schema.Struct({ pluginId: Schema.String }).annotate({ |
| 32233 | 33101 | title: "PluginUninstallParams", |
| ... | ... | @@ -32238,6 +33106,71 @@ export const V2PluginUninstallResponse = Schema.Struct({}).annotate({ |
| 32238 | 33106 | title: "PluginUninstallResponse", |
| 32239 | 33107 | }); |
| 32240 | 33108 | |
| 33109 | export type V2ProcessExitedNotification = { |
| 33110 | readonly exitCode: number; |
| 33111 | readonly processHandle: string; |
| 33112 | readonly stderr: string; |
| 33113 | readonly stderrCapReached: boolean; |
| 33114 | readonly stdout: string; |
| 33115 | readonly stdoutCapReached: boolean; |
| 33116 | }; |
| 33117 | export const V2ProcessExitedNotification = Schema.Struct({ |
| 33118 | exitCode: Schema.Number.annotate({ description: "Process exit code.", format: "int32" }).check( |
| 33119 | Schema.isInt(), |
| 33120 | ), |
| 33121 | processHandle: Schema.String.annotate({ |
| 33122 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| 33123 | }), |
| 33124 | stderr: Schema.String.annotate({ |
| 33125 | description: |
| 33126 | "Buffered stderr capture.\n\nEmpty when stderr was streamed via `process/outputDelta`.", |
| 33127 | }), |
| 33128 | stderrCapReached: Schema.Boolean.annotate({ |
| 33129 | description: |
| 33130 | "Whether stderr reached `outputBytesCap`.\n\nIn streaming mode, stderr is empty and cap state is also reported on the final stderr `process/outputDelta` notification.", |
| 33131 | }), |
| 33132 | stdout: Schema.String.annotate({ |
| 33133 | description: |
| 33134 | "Buffered stdout capture.\n\nEmpty when stdout was streamed via `process/outputDelta`.", |
| 33135 | }), |
| 33136 | stdoutCapReached: Schema.Boolean.annotate({ |
| 33137 | description: |
| 33138 | "Whether stdout reached `outputBytesCap`.\n\nIn streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.", |
| 33139 | }), |
| 33140 | }).annotate({ |
| 33141 | title: "ProcessExitedNotification", |
| 33142 | description: "Final process exit notification for `process/spawn`.", |
| 33143 | }); |
| 33144 | |
| 33145 | export type V2ProcessOutputDeltaNotification = { |
| 33146 | readonly capReached: boolean; |
| 33147 | readonly deltaBase64: string; |
| 33148 | readonly processHandle: string; |
| 33149 | readonly stream: "stdout" | "stderr"; |
| 33150 | }; |
| 33151 | export const V2ProcessOutputDeltaNotification = Schema.Struct({ |
| 33152 | capReached: Schema.Boolean.annotate({ |
| 33153 | description: |
| 33154 | "True on the final streamed chunk for this stream when output was truncated by `outputBytesCap`.", |
| 33155 | }), |
| 33156 | deltaBase64: Schema.String.annotate({ description: "Base64-encoded output bytes." }), |
| 33157 | processHandle: Schema.String.annotate({ |
| 33158 | description: "Client-supplied, connection-scoped `processHandle` from `process/spawn`.", |
| 33159 | }), |
| 33160 | stream: Schema.Literals(["stdout", "stderr"]).annotate({ |
| 33161 | description: "Stream label for `process/outputDelta` notifications.", |
| 33162 | }), |
| 33163 | }).annotate({ |
| 33164 | title: "ProcessOutputDeltaNotification", |
| 33165 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", |
| 33166 | }); |
| 33167 | |
| 33168 | export type V2ProcessOutputDeltaNotification__ProcessOutputStream = "stdout" | "stderr"; |
| 33169 | export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Literals([ |
| 33170 | "stdout", |
| 33171 | "stderr", |
| 33172 | ]).annotate({ description: "Stream label for `process/outputDelta` notifications." }); |
| 33173 | |
| 32241 | 33174 | export type V2RawResponseItemCompletedNotification = { |
| 32242 | 33175 | readonly item: V2RawResponseItemCompletedNotification__ResponseItem; |
| 32243 | 33176 | readonly threadId: string; |
| ... | ... | @@ -32292,6 +33225,18 @@ export const V2ReasoningTextDeltaNotification = Schema.Struct({ |
| 32292 | 33225 | turnId: Schema.String, |
| 32293 | 33226 | }).annotate({ title: "ReasoningTextDeltaNotification" }); |
| 32294 | 33227 | |
| 33228 | export type V2RemoteControlStatusChangedNotification = { |
| 33229 | readonly environmentId?: string | null; |
| 33230 | readonly status: V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus; |
| 33231 | }; |
| 33232 | export const V2RemoteControlStatusChangedNotification = Schema.Struct({ |
| 33233 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33234 | status: V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus, |
| 33235 | }).annotate({ |
| 33236 | title: "RemoteControlStatusChangedNotification", |
| 33237 | description: "Current remote-control connection status and environment id exposed to clients.", |
| 33238 | }); |
| 33239 | |
| 32295 | 33240 | export type V2ReviewStartParams = { |
| 32296 | 33241 | readonly delivery?: V2ReviewStartParams__ReviewDelivery | null; |
| 32297 | 33242 | readonly target: V2ReviewStartParams__ReviewTarget; |
| ... | ... | @@ -32366,6 +33311,13 @@ export const V2ReviewStartResponse__CommandExecutionSource = Schema.Literals([ |
| 32366 | 33311 | "unifiedExecInteraction", |
| 32367 | 33312 | ]); |
| 32368 | 33313 | |
| 33314 | export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 33315 | export const V2ReviewStartResponse__TurnItemsView = Schema.Literals([ |
| 33316 | "notLoaded", |
| 33317 | "summary", |
| 33318 | "full", |
| 33319 | ]); |
| 33320 | |
| 32369 | 33321 | export type V2SendAddCreditsNudgeEmailParams = { |
| 32370 | 33322 | readonly creditType: V2SendAddCreditsNudgeEmailParams__AddCreditsNudgeCreditType; |
| 32371 | 33323 | }; |
| ... | ... | @@ -32466,6 +33418,22 @@ export const V2TerminalInteractionNotification = Schema.Struct({ |
| 32466 | 33418 | turnId: Schema.String, |
| 32467 | 33419 | }).annotate({ title: "TerminalInteractionNotification" }); |
| 32468 | 33420 | |
| 33421 | export type V2ThreadApproveGuardianDeniedActionParams = { |
| 33422 | readonly event: unknown; |
| 33423 | readonly threadId: string; |
| 33424 | }; |
| 33425 | export const V2ThreadApproveGuardianDeniedActionParams = Schema.Struct({ |
| 33426 | event: Schema.Unknown.annotate({ |
| 33427 | description: "Serialized `codex_protocol::protocol::GuardianAssessmentEvent`.", |
| 33428 | }), |
| 33429 | threadId: Schema.String, |
| 33430 | }).annotate({ title: "ThreadApproveGuardianDeniedActionParams" }); |
| 33431 | |
| 33432 | export type V2ThreadApproveGuardianDeniedActionResponse = {}; |
| 33433 | export const V2ThreadApproveGuardianDeniedActionResponse = Schema.Struct({}).annotate({ |
| 33434 | title: "ThreadApproveGuardianDeniedActionResponse", |
| 33435 | }); |
| 33436 | |
| 32469 | 33437 | export type V2ThreadArchivedNotification = { readonly threadId: string }; |
| 32470 | 33438 | export const V2ThreadArchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 32471 | 33439 | title: "ThreadArchivedNotification", |
| ... | ... | @@ -32507,8 +33475,9 @@ export type V2ThreadForkParams = { |
| 32507 | 33475 | readonly model?: string | null; |
| 32508 | 33476 | readonly modelProvider?: string | null; |
| 32509 | 33477 | readonly sandbox?: V2ThreadForkParams__SandboxMode | null; |
| 32510 | | readonly serviceTier?: V2ThreadForkParams__ServiceTier | null | null; |
| 33478 | readonly serviceTier?: string | null; |
| 32511 | 33479 | readonly threadId: string; |
| 33480 | readonly threadSource?: V2ThreadForkParams__ThreadSource | null; |
| 32512 | 33481 | }; |
| 32513 | 33482 | export const V2ThreadForkParams = Schema.Struct({ |
| 32514 | 33483 | approvalPolicy: Schema.optionalKey( |
| ... | ... | @@ -32537,33 +33506,74 @@ export const V2ThreadForkParams = Schema.Struct({ |
| 32537 | 33506 | ), |
| 32538 | 33507 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 32539 | 33508 | sandbox: Schema.optionalKey(Schema.Union([V2ThreadForkParams__SandboxMode, Schema.Null])), |
| 32540 | | serviceTier: Schema.optionalKey( |
| 32541 | | Schema.Union([Schema.Union([V2ThreadForkParams__ServiceTier, Schema.Null]), Schema.Null]), |
| 32542 | | ), |
| 33509 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 32543 | 33510 | threadId: Schema.String, |
| 33511 | threadSource: Schema.optionalKey( |
| 33512 | Schema.Union([V2ThreadForkParams__ThreadSource, Schema.Null]).annotate({ |
| 33513 | description: |
| 33514 | "Optional client-supplied analytics source classification for this forked thread.", |
| 33515 | }), |
| 33516 | ), |
| 32544 | 33517 | }).annotate({ |
| 32545 | 33518 | title: "ThreadForkParams", |
| 32546 | 33519 | description: |
| 32547 | 33520 | "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.", |
| 32548 | 33521 | }); |
| 32549 | 33522 | |
| 33523 | export type V2ThreadForkParams__PermissionProfileSelectionParams = { |
| 33524 | readonly id: string; |
| 33525 | readonly modifications?: ReadonlyArray<V2ThreadForkParams__PermissionProfileModificationParams> | null; |
| 33526 | readonly type: "profile"; |
| 33527 | }; |
| 33528 | export const V2ThreadForkParams__PermissionProfileSelectionParams = Schema.Union( |
| 33529 | [ |
| 33530 | Schema.Struct({ |
| 33531 | id: Schema.String, |
| 33532 | modifications: Schema.optionalKey( |
| 33533 | Schema.Union([ |
| 33534 | Schema.Array(V2ThreadForkParams__PermissionProfileModificationParams), |
| 33535 | Schema.Null, |
| 33536 | ]), |
| 33537 | ), |
| 33538 | type: Schema.Literal("profile").annotate({ |
| 33539 | title: "ProfilePermissionProfileSelectionParamsType", |
| 33540 | }), |
| 33541 | }).annotate({ |
| 33542 | title: "ProfilePermissionProfileSelectionParams", |
| 33543 | description: |
| 33544 | "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.", |
| 33545 | }), |
| 33546 | ], |
| 33547 | { mode: "oneOf" }, |
| 33548 | ); |
| 33549 | |
| 32550 | 33550 | export type V2ThreadForkResponse = { |
| 32551 | 33551 | readonly approvalPolicy: V2ThreadForkResponse__AskForApproval; |
| 32552 | | readonly approvalsReviewer: "user" | "guardian_subagent"; |
| 33552 | readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent"; |
| 32553 | 33553 | readonly cwd: V2ThreadForkResponse__AbsolutePathBuf; |
| 32554 | 33554 | readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; |
| 32555 | 33555 | readonly model: string; |
| 32556 | 33556 | readonly modelProvider: string; |
| 32557 | 33557 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| 32558 | | readonly sandbox: V2ThreadForkResponse__SandboxPolicy; |
| 32559 | | readonly serviceTier?: V2ThreadForkResponse__ServiceTier | null; |
| 33558 | readonly sandbox: |
| 33559 | | { readonly type: "dangerFullAccess" } |
| 33560 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 33561 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 33562 | | { |
| 33563 | readonly excludeSlashTmp?: boolean; |
| 33564 | readonly excludeTmpdirEnvVar?: boolean; |
| 33565 | readonly networkAccess?: boolean; |
| 33566 | readonly type: "workspaceWrite"; |
| 33567 | readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; |
| 33568 | }; |
| 33569 | readonly serviceTier?: string | null; |
| 32560 | 33570 | readonly thread: V2ThreadForkResponse__Thread; |
| 32561 | 33571 | }; |
| 32562 | 33572 | export const V2ThreadForkResponse = Schema.Struct({ |
| 32563 | 33573 | approvalPolicy: V2ThreadForkResponse__AskForApproval, |
| 32564 | | approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({ |
| 33574 | approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({ |
| 32565 | 33575 | description: |
| 32566 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 33576 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 32567 | 33577 | }), |
| 32568 | 33578 | cwd: V2ThreadForkResponse__AbsolutePathBuf, |
| 32569 | 33579 | instructionSources: Schema.optionalKey( |
| ... | ... | @@ -32577,18 +33587,82 @@ export const V2ThreadForkResponse = Schema.Struct({ |
| 32577 | 33587 | reasoningEffort: Schema.optionalKey( |
| 32578 | 33588 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]), |
| 32579 | 33589 | ), |
| 32580 | | sandbox: V2ThreadForkResponse__SandboxPolicy, |
| 32581 | | serviceTier: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ServiceTier, Schema.Null])), |
| 33590 | sandbox: Schema.Union( |
| 33591 | [ |
| 33592 | Schema.Struct({ |
| 33593 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 33594 | title: "DangerFullAccessSandboxPolicyType", |
| 33595 | }), |
| 33596 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 33597 | Schema.Struct({ |
| 33598 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33599 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 33600 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 33601 | Schema.Struct({ |
| 33602 | networkAccess: Schema.optionalKey( |
| 33603 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 33604 | ), |
| 33605 | type: Schema.Literal("externalSandbox").annotate({ |
| 33606 | title: "ExternalSandboxSandboxPolicyType", |
| 33607 | }), |
| 33608 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 33609 | Schema.Struct({ |
| 33610 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33611 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33612 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33613 | type: Schema.Literal("workspaceWrite").annotate({ |
| 33614 | title: "WorkspaceWriteSandboxPolicyType", |
| 33615 | }), |
| 33616 | writableRoots: Schema.optionalKey( |
| 33617 | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 33618 | ), |
| 33619 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 33620 | ], |
| 33621 | { mode: "oneOf" }, |
| 33622 | ).annotate({ |
| 33623 | description: |
| 33624 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.", |
| 33625 | }), |
| 33626 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 32582 | 33627 | thread: V2ThreadForkResponse__Thread, |
| 32583 | 33628 | }).annotate({ title: "ThreadForkResponse" }); |
| 32584 | 33629 | |
| 32585 | | export type V2ThreadForkResponse__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 33630 | export type V2ThreadForkResponse__ActivePermissionProfile = { |
| 33631 | readonly extends?: string | null; |
| 33632 | readonly id: string; |
| 33633 | readonly modifications?: ReadonlyArray<V2ThreadForkResponse__ActivePermissionProfileModification>; |
| 33634 | }; |
| 33635 | export const V2ThreadForkResponse__ActivePermissionProfile = Schema.Struct({ |
| 33636 | extends: Schema.optionalKey( |
| 33637 | Schema.Union([ |
| 33638 | Schema.String.annotate({ |
| 33639 | description: |
| 33640 | "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.", |
| 33641 | }), |
| 33642 | Schema.Null, |
| 33643 | ]), |
| 33644 | ), |
| 33645 | id: Schema.String.annotate({ |
| 33646 | description: |
| 33647 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", |
| 33648 | }), |
| 33649 | modifications: Schema.optionalKey( |
| 33650 | Schema.Array(V2ThreadForkResponse__ActivePermissionProfileModification).annotate({ |
| 33651 | description: |
| 33652 | "Bounded user-requested modifications applied on top of the named profile, if any.", |
| 33653 | default: [], |
| 33654 | }), |
| 33655 | ), |
| 33656 | }); |
| 33657 | |
| 33658 | export type V2ThreadForkResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 32586 | 33659 | export const V2ThreadForkResponse__ApprovalsReviewer = Schema.Literals([ |
| 32587 | 33660 | "user", |
| 33661 | "auto_review", |
| 32588 | 33662 | "guardian_subagent", |
| 32589 | 33663 | ]).annotate({ |
| 32590 | 33664 | description: |
| 32591 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 33665 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 32592 | 33666 | }); |
| 32593 | 33667 | |
| 32594 | 33668 | export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number }; |
| ... | ... | @@ -32637,25 +33711,83 @@ export const V2ThreadForkResponse__CommandExecutionSource = Schema.Literals([ |
| 32637 | 33711 | export type V2ThreadForkResponse__NetworkAccess = "restricted" | "enabled"; |
| 32638 | 33712 | export const V2ThreadForkResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]); |
| 32639 | 33713 | |
| 32640 | | export type V2ThreadForkResponse__ReadOnlyAccess = |
| 33714 | export type V2ThreadForkResponse__PermissionProfile = |
| 32641 | 33715 | | { |
| 32642 | | readonly includePlatformDefaults?: boolean; |
| 32643 | | readonly readableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; |
| 32644 | | readonly type: "restricted"; |
| 33716 | readonly fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions; |
| 33717 | readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions; |
| 33718 | readonly type: "managed"; |
| 32645 | 33719 | } |
| 32646 | | | { readonly type: "fullAccess" }; |
| 32647 | | export const V2ThreadForkResponse__ReadOnlyAccess = Schema.Union( |
| 33720 | | { readonly type: "disabled" } |
| 33721 | | { |
| 33722 | readonly network: V2ThreadForkResponse__PermissionProfileNetworkPermissions; |
| 33723 | readonly type: "external"; |
| 33724 | }; |
| 33725 | export const V2ThreadForkResponse__PermissionProfile = Schema.Union( |
| 32648 | 33726 | [ |
| 32649 | 33727 | Schema.Struct({ |
| 32650 | | includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 32651 | | readableRoots: Schema.optionalKey( |
| 32652 | | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 33728 | fileSystem: V2ThreadForkResponse__PermissionProfileFileSystemPermissions, |
| 33729 | network: V2ThreadForkResponse__PermissionProfileNetworkPermissions, |
| 33730 | type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }), |
| 33731 | }).annotate({ |
| 33732 | title: "ManagedPermissionProfile", |
| 33733 | description: "Codex owns sandbox construction for this profile.", |
| 33734 | }), |
| 33735 | Schema.Struct({ |
| 33736 | type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }), |
| 33737 | }).annotate({ |
| 33738 | title: "DisabledPermissionProfile", |
| 33739 | description: "Do not apply an outer sandbox.", |
| 33740 | }), |
| 33741 | Schema.Struct({ |
| 33742 | network: V2ThreadForkResponse__PermissionProfileNetworkPermissions, |
| 33743 | type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }), |
| 33744 | }).annotate({ |
| 33745 | title: "ExternalPermissionProfile", |
| 33746 | description: "Filesystem isolation is enforced by an external caller.", |
| 33747 | }), |
| 33748 | ], |
| 33749 | { mode: "oneOf" }, |
| 33750 | ); |
| 33751 | |
| 33752 | export type V2ThreadForkResponse__SandboxPolicy = |
| 33753 | | { readonly type: "dangerFullAccess" } |
| 33754 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 33755 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 33756 | | { |
| 33757 | readonly excludeSlashTmp?: boolean; |
| 33758 | readonly excludeTmpdirEnvVar?: boolean; |
| 33759 | readonly networkAccess?: boolean; |
| 33760 | readonly type: "workspaceWrite"; |
| 33761 | readonly writableRoots?: ReadonlyArray<V2ThreadForkResponse__AbsolutePathBuf>; |
| 33762 | }; |
| 33763 | export const V2ThreadForkResponse__SandboxPolicy = Schema.Union( |
| 33764 | [ |
| 33765 | Schema.Struct({ |
| 33766 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 33767 | title: "DangerFullAccessSandboxPolicyType", |
| 33768 | }), |
| 33769 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 33770 | Schema.Struct({ |
| 33771 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33772 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 33773 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 33774 | Schema.Struct({ |
| 33775 | networkAccess: Schema.optionalKey( |
| 33776 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 32653 | 33777 | ), |
| 32654 | | type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }), |
| 32655 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 33778 | type: Schema.Literal("externalSandbox").annotate({ |
| 33779 | title: "ExternalSandboxSandboxPolicyType", |
| 33780 | }), |
| 33781 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 32656 | 33782 | Schema.Struct({ |
| 32657 | | type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }), |
| 32658 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 33783 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33784 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33785 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 33786 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 33787 | writableRoots: Schema.optionalKey( |
| 33788 | Schema.Array(V2ThreadForkResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 33789 | ), |
| 33790 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 32659 | 33791 | ], |
| 32660 | 33792 | { mode: "oneOf" }, |
| 32661 | 33793 | ); |
| ... | ... | @@ -32706,6 +33838,29 @@ export const V2ThreadForkResponse__ThreadStatus = Schema.Union( |
| 32706 | 33838 | { mode: "oneOf" }, |
| 32707 | 33839 | ); |
| 32708 | 33840 | |
| 33841 | export type V2ThreadForkResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 33842 | export const V2ThreadForkResponse__TurnItemsView = Schema.Literals([ |
| 33843 | "notLoaded", |
| 33844 | "summary", |
| 33845 | "full", |
| 33846 | ]); |
| 33847 | |
| 33848 | export type V2ThreadGoalClearedNotification = { readonly threadId: string }; |
| 33849 | export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 33850 | title: "ThreadGoalClearedNotification", |
| 33851 | }); |
| 33852 | |
| 33853 | export type V2ThreadGoalUpdatedNotification = { |
| 33854 | readonly goal: V2ThreadGoalUpdatedNotification__ThreadGoal; |
| 33855 | readonly threadId: string; |
| 33856 | readonly turnId?: string | null; |
| 33857 | }; |
| 33858 | export const V2ThreadGoalUpdatedNotification = Schema.Struct({ |
| 33859 | goal: V2ThreadGoalUpdatedNotification__ThreadGoal, |
| 33860 | threadId: Schema.String, |
| 33861 | turnId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33862 | }).annotate({ title: "ThreadGoalUpdatedNotification" }); |
| 33863 | |
| 32709 | 33864 | export type V2ThreadInjectItemsParams = { |
| 32710 | 33865 | readonly items: ReadonlyArray<unknown>; |
| 32711 | 33866 | readonly threadId: string; |
| ... | ... | @@ -32725,13 +33880,14 @@ export const V2ThreadInjectItemsResponse = Schema.Struct({}).annotate({ |
| 32725 | 33880 | export type V2ThreadListParams = { |
| 32726 | 33881 | readonly archived?: boolean | null; |
| 32727 | 33882 | readonly cursor?: string | null; |
| 32728 | | readonly cwd?: string | null; |
| 33883 | readonly cwd?: V2ThreadListParams__ThreadListCwdFilter | null; |
| 32729 | 33884 | readonly limit?: number | null; |
| 32730 | 33885 | readonly modelProviders?: ReadonlyArray<string> | null; |
| 32731 | 33886 | readonly searchTerm?: string | null; |
| 32732 | 33887 | readonly sortDirection?: V2ThreadListParams__SortDirection | null; |
| 32733 | 33888 | readonly sortKey?: V2ThreadListParams__ThreadSortKey | null; |
| 32734 | 33889 | readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null; |
| 33890 | readonly useStateDbOnly?: boolean; |
| 32735 | 33891 | }; |
| 32736 | 33892 | export const V2ThreadListParams = Schema.Struct({ |
| 32737 | 33893 | archived: Schema.optionalKey( |
| ... | ... | @@ -32752,13 +33908,10 @@ export const V2ThreadListParams = Schema.Struct({ |
| 32752 | 33908 | ]), |
| 32753 | 33909 | ), |
| 32754 | 33910 | cwd: Schema.optionalKey( |
| 32755 | | Schema.Union([ |
| 32756 | | Schema.String.annotate({ |
| 32757 | | description: |
| 32758 | | "Optional cwd filter; when set, only threads whose session cwd exactly matches this path are returned.", |
| 32759 | | }), |
| 32760 | | Schema.Null, |
| 32761 | | ]), |
| 33911 | Schema.Union([V2ThreadListParams__ThreadListCwdFilter, Schema.Null]).annotate({ |
| 33912 | description: |
| 33913 | "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.", |
| 33914 | }), |
| 32762 | 33915 | ), |
| 32763 | 33916 | limit: Schema.optionalKey( |
| 32764 | 33917 | Schema.Union([ |
| ... | ... | @@ -32807,6 +33960,12 @@ export const V2ThreadListParams = Schema.Struct({ |
| 32807 | 33960 | Schema.Null, |
| 32808 | 33961 | ]), |
| 32809 | 33962 | ), |
| 33963 | useStateDbOnly: Schema.optionalKey( |
| 33964 | Schema.Boolean.annotate({ |
| 33965 | description: |
| 33966 | "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.", |
| 33967 | }), |
| 33968 | ), |
| 32810 | 33969 | }).annotate({ title: "ThreadListParams" }); |
| 32811 | 33970 | |
| 32812 | 33971 | export type V2ThreadListResponse = { |
| ... | ... | @@ -32925,6 +34084,13 @@ export const V2ThreadListResponse__ThreadStatus = Schema.Union( |
| 32925 | 34084 | { mode: "oneOf" }, |
| 32926 | 34085 | ); |
| 32927 | 34086 | |
| 34087 | export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 34088 | export const V2ThreadListResponse__TurnItemsView = Schema.Literals([ |
| 34089 | "notLoaded", |
| 34090 | "summary", |
| 34091 | "full", |
| 34092 | ]); |
| 34093 | |
| 32928 | 34094 | export type V2ThreadLoadedListParams = { |
| 32929 | 34095 | readonly cursor?: string | null; |
| 32930 | 34096 | readonly limit?: number | null; |
| ... | ... | @@ -33089,6 +34255,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadStatus = Schema.Union( |
| 33089 | 34255 | { mode: "oneOf" }, |
| 33090 | 34256 | ); |
| 33091 | 34257 | |
| 34258 | export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 34259 | export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Literals([ |
| 34260 | "notLoaded", |
| 34261 | "summary", |
| 34262 | "full", |
| 34263 | ]); |
| 34264 | |
| 33092 | 34265 | export type V2ThreadNameUpdatedNotification = { |
| 33093 | 34266 | readonly threadId: string; |
| 33094 | 34267 | readonly threadName?: string | null; |
| ... | ... | @@ -33203,6 +34376,13 @@ export const V2ThreadReadResponse__ThreadStatus = Schema.Union( |
| 33203 | 34376 | { mode: "oneOf" }, |
| 33204 | 34377 | ); |
| 33205 | 34378 | |
| 34379 | export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 34380 | export const V2ThreadReadResponse__TurnItemsView = Schema.Literals([ |
| 34381 | "notLoaded", |
| 34382 | "summary", |
| 34383 | "full", |
| 34384 | ]); |
| 34385 | |
| 33206 | 34386 | export type V2ThreadRealtimeClosedNotification = { |
| 33207 | 34387 | readonly reason?: string | null; |
| 33208 | 34388 | readonly threadId: string; |
| ... | ... | @@ -33261,12 +34441,12 @@ export const V2ThreadRealtimeSdpNotification = Schema.Struct({ |
| 33261 | 34441 | }); |
| 33262 | 34442 | |
| 33263 | 34443 | export type V2ThreadRealtimeStartedNotification = { |
| 33264 | | readonly sessionId?: string | null; |
| 34444 | readonly realtimeSessionId?: string | null; |
| 33265 | 34445 | readonly threadId: string; |
| 33266 | 34446 | readonly version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion; |
| 33267 | 34447 | }; |
| 33268 | 34448 | export const V2ThreadRealtimeStartedNotification = Schema.Struct({ |
| 33269 | | sessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34449 | realtimeSessionId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33270 | 34450 | threadId: Schema.String, |
| 33271 | 34451 | version: V2ThreadRealtimeStartedNotification__RealtimeConversationVersion, |
| 33272 | 34452 | }).annotate({ |
| ... | ... | @@ -33315,7 +34495,7 @@ export type V2ThreadResumeParams = { |
| 33315 | 34495 | readonly modelProvider?: string | null; |
| 33316 | 34496 | readonly personality?: V2ThreadResumeParams__Personality | null; |
| 33317 | 34497 | readonly sandbox?: V2ThreadResumeParams__SandboxMode | null; |
| 33318 | | readonly serviceTier?: V2ThreadResumeParams__ServiceTier | null | null; |
| 34498 | readonly serviceTier?: string | null; |
| 33319 | 34499 | readonly threadId: string; |
| 33320 | 34500 | }; |
| 33321 | 34501 | export const V2ThreadResumeParams = Schema.Struct({ |
| ... | ... | @@ -33345,9 +34525,7 @@ export const V2ThreadResumeParams = Schema.Struct({ |
| 33345 | 34525 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33346 | 34526 | personality: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__Personality, Schema.Null])), |
| 33347 | 34527 | sandbox: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__SandboxMode, Schema.Null])), |
| 33348 | | serviceTier: Schema.optionalKey( |
| 33349 | | Schema.Union([Schema.Union([V2ThreadResumeParams__ServiceTier, Schema.Null]), Schema.Null]), |
| 33350 | | ), |
| 34528 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33351 | 34529 | threadId: Schema.String, |
| 33352 | 34530 | }).annotate({ |
| 33353 | 34531 | title: "ThreadResumeParams", |
| ... | ... | @@ -33355,10 +34533,36 @@ export const V2ThreadResumeParams = Schema.Struct({ |
| 33355 | 34533 | "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nThe precedence is: history > path > thread_id. If using history or path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.", |
| 33356 | 34534 | }); |
| 33357 | 34535 | |
| 34536 | export type V2ThreadResumeParams__PermissionProfileSelectionParams = { |
| 34537 | readonly id: string; |
| 34538 | readonly modifications?: ReadonlyArray<V2ThreadResumeParams__PermissionProfileModificationParams> | null; |
| 34539 | readonly type: "profile"; |
| 34540 | }; |
| 34541 | export const V2ThreadResumeParams__PermissionProfileSelectionParams = Schema.Union( |
| 34542 | [ |
| 34543 | Schema.Struct({ |
| 34544 | id: Schema.String, |
| 34545 | modifications: Schema.optionalKey( |
| 34546 | Schema.Union([ |
| 34547 | Schema.Array(V2ThreadResumeParams__PermissionProfileModificationParams), |
| 34548 | Schema.Null, |
| 34549 | ]), |
| 34550 | ), |
| 34551 | type: Schema.Literal("profile").annotate({ |
| 34552 | title: "ProfilePermissionProfileSelectionParamsType", |
| 34553 | }), |
| 34554 | }).annotate({ |
| 34555 | title: "ProfilePermissionProfileSelectionParams", |
| 34556 | description: |
| 34557 | "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.", |
| 34558 | }), |
| 34559 | ], |
| 34560 | { mode: "oneOf" }, |
| 34561 | ); |
| 34562 | |
| 33358 | 34563 | export type V2ThreadResumeParams__ResponseItem = |
| 33359 | 34564 | | { |
| 33360 | 34565 | readonly content: ReadonlyArray<V2ThreadResumeParams__ContentItem>; |
| 33361 | | readonly end_turn?: boolean | null; |
| 33362 | 34566 | readonly id?: string | null; |
| 33363 | 34567 | readonly phase?: V2ThreadResumeParams__MessagePhase | null; |
| 33364 | 34568 | readonly role: string; |
| ... | ... | @@ -33432,14 +34636,13 @@ export type V2ThreadResumeParams__ResponseItem = |
| 33432 | 34636 | readonly status: string; |
| 33433 | 34637 | readonly type: "image_generation_call"; |
| 33434 | 34638 | } |
| 33435 | | | { readonly ghost_commit: V2ThreadResumeParams__GhostCommit; readonly type: "ghost_snapshot" } |
| 33436 | 34639 | | { readonly encrypted_content: string; readonly type: "compaction" } |
| 34640 | | { readonly encrypted_content?: string | null; readonly type: "context_compaction" } |
| 33437 | 34641 | | { readonly type: "other" }; |
| 33438 | 34642 | export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 33439 | 34643 | [ |
| 33440 | 34644 | Schema.Struct({ |
| 33441 | 34645 | content: Schema.Array(V2ThreadResumeParams__ContentItem), |
| 33442 | | end_turn: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 33443 | 34646 | id: Schema.optionalKey( |
| 33444 | 34647 | Schema.Union([Schema.String.annotate({ writeOnly: true }), Schema.Null]), |
| 33445 | 34648 | ), |
| ... | ... | @@ -33554,14 +34757,16 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 33554 | 34757 | title: "ImageGenerationCallResponseItemType", |
| 33555 | 34758 | }), |
| 33556 | 34759 | }).annotate({ title: "ImageGenerationCallResponseItem" }), |
| 33557 | | Schema.Struct({ |
| 33558 | | ghost_commit: V2ThreadResumeParams__GhostCommit, |
| 33559 | | type: Schema.Literal("ghost_snapshot").annotate({ title: "GhostSnapshotResponseItemType" }), |
| 33560 | | }).annotate({ title: "GhostSnapshotResponseItem" }), |
| 33561 | 34760 | Schema.Struct({ |
| 33562 | 34761 | encrypted_content: Schema.String, |
| 33563 | 34762 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), |
| 33564 | 34763 | }).annotate({ title: "CompactionResponseItem" }), |
| 34764 | Schema.Struct({ |
| 34765 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34766 | type: Schema.Literal("context_compaction").annotate({ |
| 34767 | title: "ContextCompactionResponseItemType", |
| 34768 | }), |
| 34769 | }).annotate({ title: "ContextCompactionResponseItem" }), |
| 33565 | 34770 | Schema.Struct({ |
| 33566 | 34771 | type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }), |
| 33567 | 34772 | }).annotate({ title: "OtherResponseItem" }), |
| ... | ... | @@ -33571,21 +34776,31 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 33571 | 34776 | |
| 33572 | 34777 | export type V2ThreadResumeResponse = { |
| 33573 | 34778 | readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval; |
| 33574 | | readonly approvalsReviewer: "user" | "guardian_subagent"; |
| 34779 | readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent"; |
| 33575 | 34780 | readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf; |
| 33576 | 34781 | readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 33577 | 34782 | readonly model: string; |
| 33578 | 34783 | readonly modelProvider: string; |
| 33579 | 34784 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 33580 | | readonly sandbox: V2ThreadResumeResponse__SandboxPolicy; |
| 33581 | | readonly serviceTier?: V2ThreadResumeResponse__ServiceTier | null; |
| 34785 | readonly sandbox: |
| 34786 | | { readonly type: "dangerFullAccess" } |
| 34787 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 34788 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 34789 | | { |
| 34790 | readonly excludeSlashTmp?: boolean; |
| 34791 | readonly excludeTmpdirEnvVar?: boolean; |
| 34792 | readonly networkAccess?: boolean; |
| 34793 | readonly type: "workspaceWrite"; |
| 34794 | readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 34795 | }; |
| 34796 | readonly serviceTier?: string | null; |
| 33582 | 34797 | readonly thread: V2ThreadResumeResponse__Thread; |
| 33583 | 34798 | }; |
| 33584 | 34799 | export const V2ThreadResumeResponse = Schema.Struct({ |
| 33585 | 34800 | approvalPolicy: V2ThreadResumeResponse__AskForApproval, |
| 33586 | | approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({ |
| 34801 | approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({ |
| 33587 | 34802 | description: |
| 33588 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 34803 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 33589 | 34804 | }), |
| 33590 | 34805 | cwd: V2ThreadResumeResponse__AbsolutePathBuf, |
| 33591 | 34806 | instructionSources: Schema.optionalKey( |
| ... | ... | @@ -33599,18 +34814,85 @@ export const V2ThreadResumeResponse = Schema.Struct({ |
| 33599 | 34814 | reasoningEffort: Schema.optionalKey( |
| 33600 | 34815 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]), |
| 33601 | 34816 | ), |
| 33602 | | sandbox: V2ThreadResumeResponse__SandboxPolicy, |
| 33603 | | serviceTier: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ServiceTier, Schema.Null])), |
| 34817 | sandbox: Schema.Union( |
| 34818 | [ |
| 34819 | Schema.Struct({ |
| 34820 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 34821 | title: "DangerFullAccessSandboxPolicyType", |
| 34822 | }), |
| 34823 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 34824 | Schema.Struct({ |
| 34825 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 34826 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 34827 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 34828 | Schema.Struct({ |
| 34829 | networkAccess: Schema.optionalKey( |
| 34830 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 34831 | ), |
| 34832 | type: Schema.Literal("externalSandbox").annotate({ |
| 34833 | title: "ExternalSandboxSandboxPolicyType", |
| 34834 | }), |
| 34835 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 34836 | Schema.Struct({ |
| 34837 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 34838 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 34839 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 34840 | type: Schema.Literal("workspaceWrite").annotate({ |
| 34841 | title: "WorkspaceWriteSandboxPolicyType", |
| 34842 | }), |
| 34843 | writableRoots: Schema.optionalKey( |
| 34844 | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 34845 | ), |
| 34846 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 34847 | ], |
| 34848 | { mode: "oneOf" }, |
| 34849 | ).annotate({ |
| 34850 | description: |
| 34851 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.", |
| 34852 | }), |
| 34853 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 33604 | 34854 | thread: V2ThreadResumeResponse__Thread, |
| 33605 | 34855 | }).annotate({ title: "ThreadResumeResponse" }); |
| 33606 | 34856 | |
| 33607 | | export type V2ThreadResumeResponse__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 34857 | export type V2ThreadResumeResponse__ActivePermissionProfile = { |
| 34858 | readonly extends?: string | null; |
| 34859 | readonly id: string; |
| 34860 | readonly modifications?: ReadonlyArray<V2ThreadResumeResponse__ActivePermissionProfileModification>; |
| 34861 | }; |
| 34862 | export const V2ThreadResumeResponse__ActivePermissionProfile = Schema.Struct({ |
| 34863 | extends: Schema.optionalKey( |
| 34864 | Schema.Union([ |
| 34865 | Schema.String.annotate({ |
| 34866 | description: |
| 34867 | "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.", |
| 34868 | }), |
| 34869 | Schema.Null, |
| 34870 | ]), |
| 34871 | ), |
| 34872 | id: Schema.String.annotate({ |
| 34873 | description: |
| 34874 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", |
| 34875 | }), |
| 34876 | modifications: Schema.optionalKey( |
| 34877 | Schema.Array(V2ThreadResumeResponse__ActivePermissionProfileModification).annotate({ |
| 34878 | description: |
| 34879 | "Bounded user-requested modifications applied on top of the named profile, if any.", |
| 34880 | default: [], |
| 34881 | }), |
| 34882 | ), |
| 34883 | }); |
| 34884 | |
| 34885 | export type V2ThreadResumeResponse__ApprovalsReviewer = |
| 34886 | | "user" |
| 34887 | | "auto_review" |
| 34888 | | "guardian_subagent"; |
| 33608 | 34889 | export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([ |
| 33609 | 34890 | "user", |
| 34891 | "auto_review", |
| 33610 | 34892 | "guardian_subagent", |
| 33611 | 34893 | ]).annotate({ |
| 33612 | 34894 | description: |
| 33613 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 34895 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 33614 | 34896 | }); |
| 33615 | 34897 | |
| 33616 | 34898 | export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number }; |
| ... | ... | @@ -33662,25 +34944,83 @@ export const V2ThreadResumeResponse__CommandExecutionSource = Schema.Literals([ |
| 33662 | 34944 | export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled"; |
| 33663 | 34945 | export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]); |
| 33664 | 34946 | |
| 33665 | | export type V2ThreadResumeResponse__ReadOnlyAccess = |
| 34947 | export type V2ThreadResumeResponse__PermissionProfile = |
| 33666 | 34948 | | { |
| 33667 | | readonly includePlatformDefaults?: boolean; |
| 33668 | | readonly readableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 33669 | | readonly type: "restricted"; |
| 34949 | readonly fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions; |
| 34950 | readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions; |
| 34951 | readonly type: "managed"; |
| 33670 | 34952 | } |
| 33671 | | | { readonly type: "fullAccess" }; |
| 33672 | | export const V2ThreadResumeResponse__ReadOnlyAccess = Schema.Union( |
| 34953 | | { readonly type: "disabled" } |
| 34954 | | { |
| 34955 | readonly network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions; |
| 34956 | readonly type: "external"; |
| 34957 | }; |
| 34958 | export const V2ThreadResumeResponse__PermissionProfile = Schema.Union( |
| 33673 | 34959 | [ |
| 33674 | 34960 | Schema.Struct({ |
| 33675 | | includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 33676 | | readableRoots: Schema.optionalKey( |
| 33677 | | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 34961 | fileSystem: V2ThreadResumeResponse__PermissionProfileFileSystemPermissions, |
| 34962 | network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions, |
| 34963 | type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }), |
| 34964 | }).annotate({ |
| 34965 | title: "ManagedPermissionProfile", |
| 34966 | description: "Codex owns sandbox construction for this profile.", |
| 34967 | }), |
| 34968 | Schema.Struct({ |
| 34969 | type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }), |
| 34970 | }).annotate({ |
| 34971 | title: "DisabledPermissionProfile", |
| 34972 | description: "Do not apply an outer sandbox.", |
| 34973 | }), |
| 34974 | Schema.Struct({ |
| 34975 | network: V2ThreadResumeResponse__PermissionProfileNetworkPermissions, |
| 34976 | type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }), |
| 34977 | }).annotate({ |
| 34978 | title: "ExternalPermissionProfile", |
| 34979 | description: "Filesystem isolation is enforced by an external caller.", |
| 34980 | }), |
| 34981 | ], |
| 34982 | { mode: "oneOf" }, |
| 34983 | ); |
| 34984 | |
| 34985 | export type V2ThreadResumeResponse__SandboxPolicy = |
| 34986 | | { readonly type: "dangerFullAccess" } |
| 34987 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 34988 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 34989 | | { |
| 34990 | readonly excludeSlashTmp?: boolean; |
| 34991 | readonly excludeTmpdirEnvVar?: boolean; |
| 34992 | readonly networkAccess?: boolean; |
| 34993 | readonly type: "workspaceWrite"; |
| 34994 | readonly writableRoots?: ReadonlyArray<V2ThreadResumeResponse__AbsolutePathBuf>; |
| 34995 | }; |
| 34996 | export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union( |
| 34997 | [ |
| 34998 | Schema.Struct({ |
| 34999 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 35000 | title: "DangerFullAccessSandboxPolicyType", |
| 35001 | }), |
| 35002 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 35003 | Schema.Struct({ |
| 35004 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35005 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 35006 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 35007 | Schema.Struct({ |
| 35008 | networkAccess: Schema.optionalKey( |
| 35009 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 33678 | 35010 | ), |
| 33679 | | type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }), |
| 33680 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 35011 | type: Schema.Literal("externalSandbox").annotate({ |
| 35012 | title: "ExternalSandboxSandboxPolicyType", |
| 35013 | }), |
| 35014 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 33681 | 35015 | Schema.Struct({ |
| 33682 | | type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }), |
| 33683 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 35016 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35017 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35018 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35019 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 35020 | writableRoots: Schema.optionalKey( |
| 35021 | Schema.Array(V2ThreadResumeResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 35022 | ), |
| 35023 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 33684 | 35024 | ], |
| 33685 | 35025 | { mode: "oneOf" }, |
| 33686 | 35026 | ); |
| ... | ... | @@ -33731,6 +35071,13 @@ export const V2ThreadResumeResponse__ThreadStatus = Schema.Union( |
| 33731 | 35071 | { mode: "oneOf" }, |
| 33732 | 35072 | ); |
| 33733 | 35073 | |
| 35074 | export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 35075 | export const V2ThreadResumeResponse__TurnItemsView = Schema.Literals([ |
| 35076 | "notLoaded", |
| 35077 | "summary", |
| 35078 | "full", |
| 35079 | ]); |
| 35080 | |
| 33734 | 35081 | export type V2ThreadRollbackParams = { readonly numTurns: number; readonly threadId: string }; |
| 33735 | 35082 | export const V2ThreadRollbackParams = Schema.Struct({ |
| 33736 | 35083 | numTurns: Schema.Number.annotate({ |
| ... | ... | @@ -33758,6 +35105,7 @@ export type V2ThreadRollbackResponse = { |
| 33758 | 35105 | readonly name?: string | null; |
| 33759 | 35106 | readonly path?: string | null; |
| 33760 | 35107 | readonly preview: string; |
| 35108 | readonly sessionId: string; |
| 33761 | 35109 | readonly source: |
| 33762 | 35110 | | "cli" |
| 33763 | 35111 | | "vscode" |
| ... | ... | @@ -33774,6 +35122,7 @@ export type V2ThreadRollbackResponse = { |
| 33774 | 35122 | readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>; |
| 33775 | 35123 | readonly type: "active"; |
| 33776 | 35124 | }; |
| 35125 | readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null; |
| 33777 | 35126 | readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>; |
| 33778 | 35127 | readonly updatedAt: number; |
| 33779 | 35128 | }; |
| ... | ... | @@ -33843,6 +35192,9 @@ export const V2ThreadRollbackResponse = Schema.Struct({ |
| 33843 | 35192 | preview: Schema.String.annotate({ |
| 33844 | 35193 | description: "Usually the first user message in the thread, if available.", |
| 33845 | 35194 | }), |
| 35195 | sessionId: Schema.String.annotate({ |
| 35196 | description: "Session id shared by threads that belong to the same session tree.", |
| 35197 | }), |
| 33846 | 35198 | source: Schema.Union( |
| 33847 | 35199 | [ |
| 33848 | 35200 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -33873,6 +35225,11 @@ export const V2ThreadRollbackResponse = Schema.Struct({ |
| 33873 | 35225 | ], |
| 33874 | 35226 | { mode: "oneOf" }, |
| 33875 | 35227 | ).annotate({ description: "Current runtime status for the thread." }), |
| 35228 | threadSource: Schema.optionalKey( |
| 35229 | Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({ |
| 35230 | description: "Optional analytics source classification for this thread.", |
| 35231 | }), |
| 35232 | ), |
| 33876 | 35233 | turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({ |
| 33877 | 35234 | description: |
| 33878 | 35235 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -33966,6 +35323,7 @@ export type V2ThreadRollbackResponse__Thread = { |
| 33966 | 35323 | readonly name?: string | null; |
| 33967 | 35324 | readonly path?: string | null; |
| 33968 | 35325 | readonly preview: string; |
| 35326 | readonly sessionId: string; |
| 33969 | 35327 | readonly source: |
| 33970 | 35328 | | "cli" |
| 33971 | 35329 | | "vscode" |
| ... | ... | @@ -33982,6 +35340,7 @@ export type V2ThreadRollbackResponse__Thread = { |
| 33982 | 35340 | readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>; |
| 33983 | 35341 | readonly type: "active"; |
| 33984 | 35342 | }; |
| 35343 | readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null; |
| 33985 | 35344 | readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>; |
| 33986 | 35345 | readonly updatedAt: number; |
| 33987 | 35346 | }; |
| ... | ... | @@ -34049,6 +35408,9 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 34049 | 35408 | preview: Schema.String.annotate({ |
| 34050 | 35409 | description: "Usually the first user message in the thread, if available.", |
| 34051 | 35410 | }), |
| 35411 | sessionId: Schema.String.annotate({ |
| 35412 | description: "Session id shared by threads that belong to the same session tree.", |
| 35413 | }), |
| 34052 | 35414 | source: Schema.Union( |
| 34053 | 35415 | [ |
| 34054 | 35416 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| ... | ... | @@ -34079,6 +35441,11 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 34079 | 35441 | ], |
| 34080 | 35442 | { mode: "oneOf" }, |
| 34081 | 35443 | ).annotate({ description: "Current runtime status for the thread." }), |
| 35444 | threadSource: Schema.optionalKey( |
| 35445 | Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({ |
| 35446 | description: "Optional analytics source classification for this thread.", |
| 35447 | }), |
| 35448 | ), |
| 34082 | 35449 | turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({ |
| 34083 | 35450 | description: |
| 34084 | 35451 | "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.", |
| ... | ... | @@ -34116,6 +35483,13 @@ export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union( |
| 34116 | 35483 | { mode: "oneOf" }, |
| 34117 | 35484 | ); |
| 34118 | 35485 | |
| 35486 | export type V2ThreadRollbackResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 35487 | export const V2ThreadRollbackResponse__TurnItemsView = Schema.Literals([ |
| 35488 | "notLoaded", |
| 35489 | "summary", |
| 35490 | "full", |
| 35491 | ]); |
| 35492 | |
| 34119 | 35493 | export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string }; |
| 34120 | 35494 | export const V2ThreadSetNameParams = Schema.Struct({ |
| 34121 | 35495 | name: Schema.String, |
| ... | ... | @@ -34241,6 +35615,13 @@ export const V2ThreadStartedNotification__ThreadStatus = Schema.Union( |
| 34241 | 35615 | { mode: "oneOf" }, |
| 34242 | 35616 | ); |
| 34243 | 35617 | |
| 35618 | export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 35619 | export const V2ThreadStartedNotification__TurnItemsView = Schema.Literals([ |
| 35620 | "notLoaded", |
| 35621 | "summary", |
| 35622 | "full", |
| 35623 | ]); |
| 35624 | |
| 34244 | 35625 | export type V2ThreadStartParams = { |
| 34245 | 35626 | readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null; |
| 34246 | 35627 | readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null; |
| ... | ... | @@ -34254,8 +35635,9 @@ export type V2ThreadStartParams = { |
| 34254 | 35635 | readonly personality?: V2ThreadStartParams__Personality | null; |
| 34255 | 35636 | readonly sandbox?: V2ThreadStartParams__SandboxMode | null; |
| 34256 | 35637 | readonly serviceName?: string | null; |
| 34257 | | readonly serviceTier?: V2ThreadStartParams__ServiceTier | null | null; |
| 35638 | readonly serviceTier?: string | null; |
| 34258 | 35639 | readonly sessionStartSource?: V2ThreadStartParams__ThreadStartSource | null; |
| 35640 | readonly threadSource?: V2ThreadStartParams__ThreadSource | null; |
| 34259 | 35641 | }; |
| 34260 | 35642 | export const V2ThreadStartParams = Schema.Struct({ |
| 34261 | 35643 | approvalPolicy: Schema.optionalKey( |
| ... | ... | @@ -34279,12 +35661,15 @@ export const V2ThreadStartParams = Schema.Struct({ |
| 34279 | 35661 | personality: Schema.optionalKey(Schema.Union([V2ThreadStartParams__Personality, Schema.Null])), |
| 34280 | 35662 | sandbox: Schema.optionalKey(Schema.Union([V2ThreadStartParams__SandboxMode, Schema.Null])), |
| 34281 | 35663 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34282 | | serviceTier: Schema.optionalKey( |
| 34283 | | Schema.Union([Schema.Union([V2ThreadStartParams__ServiceTier, Schema.Null]), Schema.Null]), |
| 34284 | | ), |
| 35664 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34285 | 35665 | sessionStartSource: Schema.optionalKey( |
| 34286 | 35666 | Schema.Union([V2ThreadStartParams__ThreadStartSource, Schema.Null]), |
| 34287 | 35667 | ), |
| 35668 | threadSource: Schema.optionalKey( |
| 35669 | Schema.Union([V2ThreadStartParams__ThreadSource, Schema.Null]).annotate({ |
| 35670 | description: "Optional client-supplied analytics source classification for this thread.", |
| 35671 | }), |
| 35672 | ), |
| 34288 | 35673 | }).annotate({ title: "ThreadStartParams" }); |
| 34289 | 35674 | |
| 34290 | 35675 | export type V2ThreadStartParams__DynamicToolSpec = { |
| ... | ... | @@ -34302,23 +35687,69 @@ export const V2ThreadStartParams__DynamicToolSpec = Schema.Struct({ |
| 34302 | 35687 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34303 | 35688 | }); |
| 34304 | 35689 | |
| 35690 | export type V2ThreadStartParams__PermissionProfileSelectionParams = { |
| 35691 | readonly id: string; |
| 35692 | readonly modifications?: ReadonlyArray<V2ThreadStartParams__PermissionProfileModificationParams> | null; |
| 35693 | readonly type: "profile"; |
| 35694 | }; |
| 35695 | export const V2ThreadStartParams__PermissionProfileSelectionParams = Schema.Union( |
| 35696 | [ |
| 35697 | Schema.Struct({ |
| 35698 | id: Schema.String, |
| 35699 | modifications: Schema.optionalKey( |
| 35700 | Schema.Union([ |
| 35701 | Schema.Array(V2ThreadStartParams__PermissionProfileModificationParams), |
| 35702 | Schema.Null, |
| 35703 | ]), |
| 35704 | ), |
| 35705 | type: Schema.Literal("profile").annotate({ |
| 35706 | title: "ProfilePermissionProfileSelectionParamsType", |
| 35707 | }), |
| 35708 | }).annotate({ |
| 35709 | title: "ProfilePermissionProfileSelectionParams", |
| 35710 | description: |
| 35711 | "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.", |
| 35712 | }), |
| 35713 | ], |
| 35714 | { mode: "oneOf" }, |
| 35715 | ); |
| 35716 | |
| 35717 | export type V2ThreadStartParams__TurnEnvironmentParams = { |
| 35718 | readonly cwd: V2ThreadStartParams__AbsolutePathBuf; |
| 35719 | readonly environmentId: string; |
| 35720 | }; |
| 35721 | export const V2ThreadStartParams__TurnEnvironmentParams = Schema.Struct({ |
| 35722 | cwd: V2ThreadStartParams__AbsolutePathBuf, |
| 35723 | environmentId: Schema.String, |
| 35724 | }); |
| 35725 | |
| 34305 | 35726 | export type V2ThreadStartResponse = { |
| 34306 | 35727 | readonly approvalPolicy: V2ThreadStartResponse__AskForApproval; |
| 34307 | | readonly approvalsReviewer: "user" | "guardian_subagent"; |
| 35728 | readonly approvalsReviewer: "user" | "auto_review" | "guardian_subagent"; |
| 34308 | 35729 | readonly cwd: V2ThreadStartResponse__AbsolutePathBuf; |
| 34309 | 35730 | readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 34310 | 35731 | readonly model: string; |
| 34311 | 35732 | readonly modelProvider: string; |
| 34312 | 35733 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| 34313 | | readonly sandbox: V2ThreadStartResponse__SandboxPolicy; |
| 34314 | | readonly serviceTier?: V2ThreadStartResponse__ServiceTier | null; |
| 35734 | readonly sandbox: |
| 35735 | | { readonly type: "dangerFullAccess" } |
| 35736 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 35737 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 35738 | | { |
| 35739 | readonly excludeSlashTmp?: boolean; |
| 35740 | readonly excludeTmpdirEnvVar?: boolean; |
| 35741 | readonly networkAccess?: boolean; |
| 35742 | readonly type: "workspaceWrite"; |
| 35743 | readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 35744 | }; |
| 35745 | readonly serviceTier?: string | null; |
| 34315 | 35746 | readonly thread: V2ThreadStartResponse__Thread; |
| 34316 | 35747 | }; |
| 34317 | 35748 | export const V2ThreadStartResponse = Schema.Struct({ |
| 34318 | 35749 | approvalPolicy: V2ThreadStartResponse__AskForApproval, |
| 34319 | | approvalsReviewer: Schema.Literals(["user", "guardian_subagent"]).annotate({ |
| 35750 | approvalsReviewer: Schema.Literals(["user", "auto_review", "guardian_subagent"]).annotate({ |
| 34320 | 35751 | description: |
| 34321 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 35752 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 34322 | 35753 | }), |
| 34323 | 35754 | cwd: V2ThreadStartResponse__AbsolutePathBuf, |
| 34324 | 35755 | instructionSources: Schema.optionalKey( |
| ... | ... | @@ -34332,18 +35763,82 @@ export const V2ThreadStartResponse = Schema.Struct({ |
| 34332 | 35763 | reasoningEffort: Schema.optionalKey( |
| 34333 | 35764 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]), |
| 34334 | 35765 | ), |
| 34335 | | sandbox: V2ThreadStartResponse__SandboxPolicy, |
| 34336 | | serviceTier: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ServiceTier, Schema.Null])), |
| 35766 | sandbox: Schema.Union( |
| 35767 | [ |
| 35768 | Schema.Struct({ |
| 35769 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 35770 | title: "DangerFullAccessSandboxPolicyType", |
| 35771 | }), |
| 35772 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 35773 | Schema.Struct({ |
| 35774 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35775 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 35776 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 35777 | Schema.Struct({ |
| 35778 | networkAccess: Schema.optionalKey( |
| 35779 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 35780 | ), |
| 35781 | type: Schema.Literal("externalSandbox").annotate({ |
| 35782 | title: "ExternalSandboxSandboxPolicyType", |
| 35783 | }), |
| 35784 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 35785 | Schema.Struct({ |
| 35786 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35787 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35788 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35789 | type: Schema.Literal("workspaceWrite").annotate({ |
| 35790 | title: "WorkspaceWriteSandboxPolicyType", |
| 35791 | }), |
| 35792 | writableRoots: Schema.optionalKey( |
| 35793 | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 35794 | ), |
| 35795 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 35796 | ], |
| 35797 | { mode: "oneOf" }, |
| 35798 | ).annotate({ |
| 35799 | description: |
| 35800 | "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.", |
| 35801 | }), |
| 35802 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 34337 | 35803 | thread: V2ThreadStartResponse__Thread, |
| 34338 | 35804 | }).annotate({ title: "ThreadStartResponse" }); |
| 34339 | 35805 | |
| 34340 | | export type V2ThreadStartResponse__ApprovalsReviewer = "user" | "guardian_subagent"; |
| 35806 | export type V2ThreadStartResponse__ActivePermissionProfile = { |
| 35807 | readonly extends?: string | null; |
| 35808 | readonly id: string; |
| 35809 | readonly modifications?: ReadonlyArray<V2ThreadStartResponse__ActivePermissionProfileModification>; |
| 35810 | }; |
| 35811 | export const V2ThreadStartResponse__ActivePermissionProfile = Schema.Struct({ |
| 35812 | extends: Schema.optionalKey( |
| 35813 | Schema.Union([ |
| 35814 | Schema.String.annotate({ |
| 35815 | description: |
| 35816 | "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.", |
| 35817 | }), |
| 35818 | Schema.Null, |
| 35819 | ]), |
| 35820 | ), |
| 35821 | id: Schema.String.annotate({ |
| 35822 | description: |
| 35823 | "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.", |
| 35824 | }), |
| 35825 | modifications: Schema.optionalKey( |
| 35826 | Schema.Array(V2ThreadStartResponse__ActivePermissionProfileModification).annotate({ |
| 35827 | description: |
| 35828 | "Bounded user-requested modifications applied on top of the named profile, if any.", |
| 35829 | default: [], |
| 35830 | }), |
| 35831 | ), |
| 35832 | }); |
| 35833 | |
| 35834 | export type V2ThreadStartResponse__ApprovalsReviewer = "user" | "auto_review" | "guardian_subagent"; |
| 34341 | 35835 | export const V2ThreadStartResponse__ApprovalsReviewer = Schema.Literals([ |
| 34342 | 35836 | "user", |
| 35837 | "auto_review", |
| 34343 | 35838 | "guardian_subagent", |
| 34344 | 35839 | ]).annotate({ |
| 34345 | 35840 | description: |
| 34346 | | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `guardian_subagent` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request.", |
| 35841 | "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.", |
| 34347 | 35842 | }); |
| 34348 | 35843 | |
| 34349 | 35844 | export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number }; |
| ... | ... | @@ -34395,25 +35890,83 @@ export const V2ThreadStartResponse__CommandExecutionSource = Schema.Literals([ |
| 34395 | 35890 | export type V2ThreadStartResponse__NetworkAccess = "restricted" | "enabled"; |
| 34396 | 35891 | export const V2ThreadStartResponse__NetworkAccess = Schema.Literals(["restricted", "enabled"]); |
| 34397 | 35892 | |
| 34398 | | export type V2ThreadStartResponse__ReadOnlyAccess = |
| 35893 | export type V2ThreadStartResponse__PermissionProfile = |
| 34399 | 35894 | | { |
| 34400 | | readonly includePlatformDefaults?: boolean; |
| 34401 | | readonly readableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 34402 | | readonly type: "restricted"; |
| 35895 | readonly fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions; |
| 35896 | readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions; |
| 35897 | readonly type: "managed"; |
| 34403 | 35898 | } |
| 34404 | | | { readonly type: "fullAccess" }; |
| 34405 | | export const V2ThreadStartResponse__ReadOnlyAccess = Schema.Union( |
| 35899 | | { readonly type: "disabled" } |
| 35900 | | { |
| 35901 | readonly network: V2ThreadStartResponse__PermissionProfileNetworkPermissions; |
| 35902 | readonly type: "external"; |
| 35903 | }; |
| 35904 | export const V2ThreadStartResponse__PermissionProfile = Schema.Union( |
| 34406 | 35905 | [ |
| 34407 | 35906 | Schema.Struct({ |
| 34408 | | includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 34409 | | readableRoots: Schema.optionalKey( |
| 34410 | | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 35907 | fileSystem: V2ThreadStartResponse__PermissionProfileFileSystemPermissions, |
| 35908 | network: V2ThreadStartResponse__PermissionProfileNetworkPermissions, |
| 35909 | type: Schema.Literal("managed").annotate({ title: "ManagedPermissionProfileType" }), |
| 35910 | }).annotate({ |
| 35911 | title: "ManagedPermissionProfile", |
| 35912 | description: "Codex owns sandbox construction for this profile.", |
| 35913 | }), |
| 35914 | Schema.Struct({ |
| 35915 | type: Schema.Literal("disabled").annotate({ title: "DisabledPermissionProfileType" }), |
| 35916 | }).annotate({ |
| 35917 | title: "DisabledPermissionProfile", |
| 35918 | description: "Do not apply an outer sandbox.", |
| 35919 | }), |
| 35920 | Schema.Struct({ |
| 35921 | network: V2ThreadStartResponse__PermissionProfileNetworkPermissions, |
| 35922 | type: Schema.Literal("external").annotate({ title: "ExternalPermissionProfileType" }), |
| 35923 | }).annotate({ |
| 35924 | title: "ExternalPermissionProfile", |
| 35925 | description: "Filesystem isolation is enforced by an external caller.", |
| 35926 | }), |
| 35927 | ], |
| 35928 | { mode: "oneOf" }, |
| 35929 | ); |
| 35930 | |
| 35931 | export type V2ThreadStartResponse__SandboxPolicy = |
| 35932 | | { readonly type: "dangerFullAccess" } |
| 35933 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| 35934 | | { readonly networkAccess?: "restricted" | "enabled"; readonly type: "externalSandbox" } |
| 35935 | | { |
| 35936 | readonly excludeSlashTmp?: boolean; |
| 35937 | readonly excludeTmpdirEnvVar?: boolean; |
| 35938 | readonly networkAccess?: boolean; |
| 35939 | readonly type: "workspaceWrite"; |
| 35940 | readonly writableRoots?: ReadonlyArray<V2ThreadStartResponse__AbsolutePathBuf>; |
| 35941 | }; |
| 35942 | export const V2ThreadStartResponse__SandboxPolicy = Schema.Union( |
| 35943 | [ |
| 35944 | Schema.Struct({ |
| 35945 | type: Schema.Literal("dangerFullAccess").annotate({ |
| 35946 | title: "DangerFullAccessSandboxPolicyType", |
| 35947 | }), |
| 35948 | }).annotate({ title: "DangerFullAccessSandboxPolicy" }), |
| 35949 | Schema.Struct({ |
| 35950 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35951 | type: Schema.Literal("readOnly").annotate({ title: "ReadOnlySandboxPolicyType" }), |
| 35952 | }).annotate({ title: "ReadOnlySandboxPolicy" }), |
| 35953 | Schema.Struct({ |
| 35954 | networkAccess: Schema.optionalKey( |
| 35955 | Schema.Literals(["restricted", "enabled"]).annotate({ default: "restricted" }), |
| 34411 | 35956 | ), |
| 34412 | | type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }), |
| 34413 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 35957 | type: Schema.Literal("externalSandbox").annotate({ |
| 35958 | title: "ExternalSandboxSandboxPolicyType", |
| 35959 | }), |
| 35960 | }).annotate({ title: "ExternalSandboxSandboxPolicy" }), |
| 34414 | 35961 | Schema.Struct({ |
| 34415 | | type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }), |
| 34416 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 35962 | excludeSlashTmp: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35963 | excludeTmpdirEnvVar: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35964 | networkAccess: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 35965 | type: Schema.Literal("workspaceWrite").annotate({ title: "WorkspaceWriteSandboxPolicyType" }), |
| 35966 | writableRoots: Schema.optionalKey( |
| 35967 | Schema.Array(V2ThreadStartResponse__AbsolutePathBuf).annotate({ default: [] }), |
| 35968 | ), |
| 35969 | }).annotate({ title: "WorkspaceWriteSandboxPolicy" }), |
| 34417 | 35970 | ], |
| 34418 | 35971 | { mode: "oneOf" }, |
| 34419 | 35972 | ); |
| ... | ... | @@ -34464,6 +36017,13 @@ export const V2ThreadStartResponse__ThreadStatus = Schema.Union( |
| 34464 | 36017 | { mode: "oneOf" }, |
| 34465 | 36018 | ); |
| 34466 | 36019 | |
| 36020 | export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 36021 | export const V2ThreadStartResponse__TurnItemsView = Schema.Literals([ |
| 36022 | "notLoaded", |
| 36023 | "summary", |
| 36024 | "full", |
| 36025 | ]); |
| 36026 | |
| 34467 | 36027 | export type V2ThreadStatusChangedNotification = { |
| 34468 | 36028 | readonly status: V2ThreadStatusChangedNotification__ThreadStatus; |
| 34469 | 36029 | readonly threadId: string; |
| ... | ... | @@ -34484,110 +36044,6 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({ |
| 34484 | 36044 | turnId: Schema.String, |
| 34485 | 36045 | }).annotate({ title: "ThreadTokenUsageUpdatedNotification" }); |
| 34486 | 36046 | |
| 34487 | | export type V2ThreadTurnsListParams = { |
| 34488 | | readonly cursor?: string | null; |
| 34489 | | readonly limit?: number | null; |
| 34490 | | readonly sortDirection?: V2ThreadTurnsListParams__SortDirection | null; |
| 34491 | | readonly threadId: string; |
| 34492 | | }; |
| 34493 | | export const V2ThreadTurnsListParams = Schema.Struct({ |
| 34494 | | cursor: Schema.optionalKey( |
| 34495 | | Schema.Union([ |
| 34496 | | Schema.String.annotate({ |
| 34497 | | description: "Opaque cursor to pass to the next call to continue after the last turn.", |
| 34498 | | }), |
| 34499 | | Schema.Null, |
| 34500 | | ]), |
| 34501 | | ), |
| 34502 | | limit: Schema.optionalKey( |
| 34503 | | Schema.Union([ |
| 34504 | | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) |
| 34505 | | .check(Schema.isInt()) |
| 34506 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 34507 | | Schema.Null, |
| 34508 | | ]), |
| 34509 | | ), |
| 34510 | | sortDirection: Schema.optionalKey( |
| 34511 | | Schema.Union([V2ThreadTurnsListParams__SortDirection, Schema.Null]).annotate({ |
| 34512 | | description: "Optional turn pagination direction; defaults to descending.", |
| 34513 | | }), |
| 34514 | | ), |
| 34515 | | threadId: Schema.String, |
| 34516 | | }).annotate({ title: "ThreadTurnsListParams" }); |
| 34517 | | |
| 34518 | | export type V2ThreadTurnsListResponse = { |
| 34519 | | readonly backwardsCursor?: string | null; |
| 34520 | | readonly data: ReadonlyArray<V2ThreadTurnsListResponse__Turn>; |
| 34521 | | readonly nextCursor?: string | null; |
| 34522 | | }; |
| 34523 | | export const V2ThreadTurnsListResponse = Schema.Struct({ |
| 34524 | | backwardsCursor: Schema.optionalKey( |
| 34525 | | Schema.Union([ |
| 34526 | | Schema.String.annotate({ |
| 34527 | | description: |
| 34528 | | "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.", |
| 34529 | | }), |
| 34530 | | Schema.Null, |
| 34531 | | ]), |
| 34532 | | ), |
| 34533 | | data: Schema.Array(V2ThreadTurnsListResponse__Turn), |
| 34534 | | nextCursor: Schema.optionalKey( |
| 34535 | | Schema.Union([ |
| 34536 | | Schema.String.annotate({ |
| 34537 | | description: |
| 34538 | | "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.", |
| 34539 | | }), |
| 34540 | | Schema.Null, |
| 34541 | | ]), |
| 34542 | | ), |
| 34543 | | }).annotate({ title: "ThreadTurnsListResponse" }); |
| 34544 | | |
| 34545 | | export type V2ThreadTurnsListResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 34546 | | export const V2ThreadTurnsListResponse__ByteRange = Schema.Struct({ |
| 34547 | | end: Schema.Number.annotate({ format: "uint" }) |
| 34548 | | .check(Schema.isInt()) |
| 34549 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 34550 | | start: Schema.Number.annotate({ format: "uint" }) |
| 34551 | | .check(Schema.isInt()) |
| 34552 | | .check(Schema.isGreaterThanOrEqualTo(0)), |
| 34553 | | }); |
| 34554 | | |
| 34555 | | export type V2ThreadTurnsListResponse__CollabAgentTool = |
| 34556 | | | "spawnAgent" |
| 34557 | | | "sendInput" |
| 34558 | | | "resumeAgent" |
| 34559 | | | "wait" |
| 34560 | | | "closeAgent"; |
| 34561 | | export const V2ThreadTurnsListResponse__CollabAgentTool = Schema.Literals([ |
| 34562 | | "spawnAgent", |
| 34563 | | "sendInput", |
| 34564 | | "resumeAgent", |
| 34565 | | "wait", |
| 34566 | | "closeAgent", |
| 34567 | | ]); |
| 34568 | | |
| 34569 | | export type V2ThreadTurnsListResponse__CollabAgentToolCallStatus = |
| 34570 | | | "inProgress" |
| 34571 | | | "completed" |
| 34572 | | | "failed"; |
| 34573 | | export const V2ThreadTurnsListResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| 34574 | | "inProgress", |
| 34575 | | "completed", |
| 34576 | | "failed", |
| 34577 | | ]); |
| 34578 | | |
| 34579 | | export type V2ThreadTurnsListResponse__CommandExecutionSource = |
| 34580 | | | "agent" |
| 34581 | | | "userShell" |
| 34582 | | | "unifiedExecStartup" |
| 34583 | | | "unifiedExecInteraction"; |
| 34584 | | export const V2ThreadTurnsListResponse__CommandExecutionSource = Schema.Literals([ |
| 34585 | | "agent", |
| 34586 | | "userShell", |
| 34587 | | "unifiedExecStartup", |
| 34588 | | "unifiedExecInteraction", |
| 34589 | | ]); |
| 34590 | | |
| 34591 | 36047 | export type V2ThreadUnarchivedNotification = { readonly threadId: string }; |
| 34592 | 36048 | export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 34593 | 36049 | title: "ThreadUnarchivedNotification", |
| ... | ... | @@ -34695,6 +36151,13 @@ export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union( |
| 34695 | 36151 | { mode: "oneOf" }, |
| 34696 | 36152 | ); |
| 34697 | 36153 | |
| 36154 | export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 36155 | export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Literals([ |
| 36156 | "notLoaded", |
| 36157 | "summary", |
| 36158 | "full", |
| 36159 | ]); |
| 36160 | |
| 34698 | 36161 | export type V2ThreadUnsubscribeParams = { readonly threadId: string }; |
| 34699 | 36162 | export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 34700 | 36163 | title: "ThreadUnsubscribeParams", |
| ... | ... | @@ -34765,6 +36228,13 @@ export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Litera |
| 34765 | 36228 | "unifiedExecInteraction", |
| 34766 | 36229 | ]); |
| 34767 | 36230 | |
| 36231 | export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 36232 | export const V2TurnCompletedNotification__TurnItemsView = Schema.Literals([ |
| 36233 | "notLoaded", |
| 36234 | "summary", |
| 36235 | "full", |
| 36236 | ]); |
| 36237 | |
| 34768 | 36238 | export type V2TurnDiffUpdatedNotification = { |
| 34769 | 36239 | readonly diff: string; |
| 34770 | 36240 | readonly threadId: string; |
| ... | ... | @@ -34859,6 +36329,13 @@ export const V2TurnStartedNotification__CommandExecutionSource = Schema.Literals |
| 34859 | 36329 | "unifiedExecInteraction", |
| 34860 | 36330 | ]); |
| 34861 | 36331 | |
| 36332 | export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 36333 | export const V2TurnStartedNotification__TurnItemsView = Schema.Literals([ |
| 36334 | "notLoaded", |
| 36335 | "summary", |
| 36336 | "full", |
| 36337 | ]); |
| 36338 | |
| 34862 | 36339 | export type V2TurnStartParams = { |
| 34863 | 36340 | readonly approvalPolicy?: V2TurnStartParams__AskForApproval | null; |
| 34864 | 36341 | readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null; |
| ... | ... | @@ -34869,7 +36346,7 @@ export type V2TurnStartParams = { |
| 34869 | 36346 | readonly outputSchema?: unknown; |
| 34870 | 36347 | readonly personality?: V2TurnStartParams__Personality | null; |
| 34871 | 36348 | readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null; |
| 34872 | | readonly serviceTier?: V2TurnStartParams__ServiceTier | null | null; |
| 36349 | readonly serviceTier?: string | null; |
| 34873 | 36350 | readonly summary?: V2TurnStartParams__ReasoningSummary | null; |
| 34874 | 36351 | readonly threadId: string; |
| 34875 | 36352 | }; |
| ... | ... | @@ -34925,9 +36402,11 @@ export const V2TurnStartParams = Schema.Struct({ |
| 34925 | 36402 | ), |
| 34926 | 36403 | serviceTier: Schema.optionalKey( |
| 34927 | 36404 | Schema.Union([ |
| 34928 | | Schema.Union([V2TurnStartParams__ServiceTier, Schema.Null]), |
| 36405 | Schema.String.annotate({ |
| 36406 | description: "Override the service tier for this turn and subsequent turns.", |
| 36407 | }), |
| 34929 | 36408 | Schema.Null, |
| 34930 | | ]).annotate({ description: "Override the service tier for this turn and subsequent turns." }), |
| 36409 | ]), |
| 34931 | 36410 | ), |
| 34932 | 36411 | summary: Schema.optionalKey( |
| 34933 | 36412 | Schema.Union([V2TurnStartParams__ReasoningSummary, Schema.Null]).annotate({ |
| ... | ... | @@ -34959,29 +36438,42 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({ |
| 34959 | 36438 | export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled"; |
| 34960 | 36439 | export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]); |
| 34961 | 36440 | |
| 34962 | | export type V2TurnStartParams__ReadOnlyAccess = |
| 34963 | | | { |
| 34964 | | readonly includePlatformDefaults?: boolean; |
| 34965 | | readonly readableRoots?: ReadonlyArray<V2TurnStartParams__AbsolutePathBuf>; |
| 34966 | | readonly type: "restricted"; |
| 34967 | | } |
| 34968 | | | { readonly type: "fullAccess" }; |
| 34969 | | export const V2TurnStartParams__ReadOnlyAccess = Schema.Union( |
| 36441 | export type V2TurnStartParams__PermissionProfileSelectionParams = { |
| 36442 | readonly id: string; |
| 36443 | readonly modifications?: ReadonlyArray<V2TurnStartParams__PermissionProfileModificationParams> | null; |
| 36444 | readonly type: "profile"; |
| 36445 | }; |
| 36446 | export const V2TurnStartParams__PermissionProfileSelectionParams = Schema.Union( |
| 34970 | 36447 | [ |
| 34971 | 36448 | Schema.Struct({ |
| 34972 | | includePlatformDefaults: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 34973 | | readableRoots: Schema.optionalKey( |
| 34974 | | Schema.Array(V2TurnStartParams__AbsolutePathBuf).annotate({ default: [] }), |
| 36449 | id: Schema.String, |
| 36450 | modifications: Schema.optionalKey( |
| 36451 | Schema.Union([ |
| 36452 | Schema.Array(V2TurnStartParams__PermissionProfileModificationParams), |
| 36453 | Schema.Null, |
| 36454 | ]), |
| 34975 | 36455 | ), |
| 34976 | | type: Schema.Literal("restricted").annotate({ title: "RestrictedReadOnlyAccessType" }), |
| 34977 | | }).annotate({ title: "RestrictedReadOnlyAccess" }), |
| 34978 | | Schema.Struct({ |
| 34979 | | type: Schema.Literal("fullAccess").annotate({ title: "FullAccessReadOnlyAccessType" }), |
| 34980 | | }).annotate({ title: "FullAccessReadOnlyAccess" }), |
| 36456 | type: Schema.Literal("profile").annotate({ |
| 36457 | title: "ProfilePermissionProfileSelectionParamsType", |
| 36458 | }), |
| 36459 | }).annotate({ |
| 36460 | title: "ProfilePermissionProfileSelectionParams", |
| 36461 | description: |
| 36462 | "Select a named built-in or user-defined profile and optionally apply bounded modifications that Codex knows how to validate.", |
| 36463 | }), |
| 34981 | 36464 | ], |
| 34982 | 36465 | { mode: "oneOf" }, |
| 34983 | 36466 | ); |
| 34984 | 36467 | |
| 36468 | export type V2TurnStartParams__TurnEnvironmentParams = { |
| 36469 | readonly cwd: V2TurnStartParams__AbsolutePathBuf; |
| 36470 | readonly environmentId: string; |
| 36471 | }; |
| 36472 | export const V2TurnStartParams__TurnEnvironmentParams = Schema.Struct({ |
| 36473 | cwd: V2TurnStartParams__AbsolutePathBuf, |
| 36474 | environmentId: Schema.String, |
| 36475 | }); |
| 36476 | |
| 34985 | 36477 | export type V2TurnStartResponse = { readonly turn: V2TurnStartResponse__Turn }; |
| 34986 | 36478 | export const V2TurnStartResponse = Schema.Struct({ turn: V2TurnStartResponse__Turn }).annotate({ |
| 34987 | 36479 | title: "TurnStartResponse", |
| ... | ... | @@ -35030,6 +36522,9 @@ export const V2TurnStartResponse__CommandExecutionSource = Schema.Literals([ |
| 35030 | 36522 | "unifiedExecInteraction", |
| 35031 | 36523 | ]); |
| 35032 | 36524 | |
| 36525 | export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 36526 | export const V2TurnStartResponse__TurnItemsView = Schema.Literals(["notLoaded", "summary", "full"]); |
| 36527 | |
| 35033 | 36528 | export type V2TurnSteerParams = { |
| 35034 | 36529 | readonly expectedTurnId: string; |
| 35035 | 36530 | readonly input: ReadonlyArray<V2TurnSteerParams__UserInput>; |
| ... | ... | @@ -35072,6 +36567,13 @@ export const V2WarningNotification = Schema.Struct({ |
| 35072 | 36567 | ), |
| 35073 | 36568 | }).annotate({ title: "WarningNotification" }); |
| 35074 | 36569 | |
| 36570 | export type V2WindowsSandboxReadinessResponse = { |
| 36571 | readonly status: V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness; |
| 36572 | }; |
| 36573 | export const V2WindowsSandboxReadinessResponse = Schema.Struct({ |
| 36574 | status: V2WindowsSandboxReadinessResponse__WindowsSandboxReadiness, |
| 36575 | }).annotate({ title: "WindowsSandboxReadinessResponse" }); |
| 36576 | |
| 35075 | 36577 | export type V2WindowsSandboxSetupCompletedNotification = { |
| 35076 | 36578 | readonly error?: string | null; |
| 35077 | 36579 | readonly mode: V2WindowsSandboxSetupCompletedNotification__WindowsSandboxSetupMode; |