| ... | @@ -1,5 +1,5 @@ | ... | @@ -1,5 +1,5 @@ |
| 1 | // This file is generated by the effect-codex-app-server package. Do not edit manually. | 1 | // This file is generated by the effect-codex-app-server package. Do not edit manually. |
| 2 | // Upstream protocol ref: 678157acaa819d5510adfe359abb5d0392cfe461 | 2 | // Upstream protocol ref: fe74a774532af67b5a4a3dec03ce9469e17f89af |
| 3 | | 3 | |
| 4 | import * as Schema from "effect/Schema"; | 4 | import * as Schema from "effect/Schema"; |
| 5 | | 5 | |
| ... | @@ -57,6 +57,7 @@ export const ClientRequest__RequestId = Schema.Union([ | ... | @@ -57,6 +57,7 @@ export const ClientRequest__RequestId = Schema.Union([ |
| 57 | | 57 | |
| 58 | export type ClientRequest__InitializeCapabilities = { | 58 | export type ClientRequest__InitializeCapabilities = { |
| 59 | readonly experimentalApi?: boolean; | 59 | readonly experimentalApi?: boolean; |
| | 60 | readonly extensions?: { readonly [x: string]: Schema.Json } | null; |
| 60 | readonly mcpServerOpenaiFormElicitation?: boolean; | 61 | readonly mcpServerOpenaiFormElicitation?: boolean; |
| 61 | readonly optOutNotificationMethods?: ReadonlyArray<string> | null; | 62 | readonly optOutNotificationMethods?: ReadonlyArray<string> | null; |
| 62 | readonly requestAttestation?: boolean; | 63 | readonly requestAttestation?: boolean; |
| ... | @@ -68,9 +69,18 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({ | ... | @@ -68,9 +69,18 @@ export const ClientRequest__InitializeCapabilities = Schema.Struct({ |
| 68 | default: false, | 69 | default: false, |
| 69 | }), | 70 | }), |
| 70 | ), | 71 | ), |
| | 72 | extensions: Schema.optionalKey( |
| | 73 | Schema.Union([ |
| | 74 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 75 | description: "MCP extension settings declared by the app-server client.", |
| | 76 | }), |
| | 77 | Schema.Null, |
| | 78 | ]), |
| | 79 | ), |
| 71 | mcpServerOpenaiFormElicitation: Schema.optionalKey( | 80 | mcpServerOpenaiFormElicitation: Schema.optionalKey( |
| 72 | Schema.Boolean.annotate({ | 81 | Schema.Boolean.annotate({ |
| 73 | description: "Allow downstream MCP servers to request OpenAI extended form elicitations.", | 82 | description: |
| | 83 | "Legacy opt-in for the `openai/form` MCP extension.\n\nNew clients should declare `openai/form` in [`Self::extensions`].", |
| 74 | }), | 84 | }), |
| 75 | ), | 85 | ), |
| 76 | optOutNotificationMethods: Schema.optionalKey( | 86 | optOutNotificationMethods: Schema.optionalKey( |
| ... | @@ -149,7 +159,10 @@ export const ClientRequest__Personality = Schema.Literals([ | ... | @@ -149,7 +159,10 @@ export const ClientRequest__Personality = Schema.Literals([ |
| 149 | "none", | 159 | "none", |
| 150 | "friendly", | 160 | "friendly", |
| 151 | "pragmatic", | 161 | "pragmatic", |
| 152 | ]).annotate({ identifier: "ClientRequest__Personality" }); | 162 | ]).annotate({ |
| | 163 | description: "Deprecated: `friendly` and `pragmatic` no longer select a style.", |
| | 164 | identifier: "ClientRequest__Personality", |
| | 165 | }); |
| 153 | | 166 | |
| 154 | export type ClientRequest__SandboxMode = "read-only" | "workspace-write" | "danger-full-access"; | 167 | export type ClientRequest__SandboxMode = "read-only" | "workspace-write" | "danger-full-access"; |
| 155 | export const ClientRequest__SandboxMode = Schema.Literals([ | 168 | export const ClientRequest__SandboxMode = Schema.Literals([ |
| ... | @@ -253,6 +266,89 @@ export const ClientRequest__ThreadMetadataGitInfoUpdateParams = Schema.Struct({ | ... | @@ -253,6 +266,89 @@ export const ClientRequest__ThreadMetadataGitInfoUpdateParams = Schema.Struct({ |
| 253 | ), | 266 | ), |
| 254 | }).annotate({ identifier: "ClientRequest__ThreadMetadataGitInfoUpdateParams" }); | 267 | }).annotate({ identifier: "ClientRequest__ThreadMetadataGitInfoUpdateParams" }); |
| 255 | | 268 | |
| | 269 | export type ClientRequest__ThreadAttachmentAddParams = { |
| | 270 | readonly attachmentType: string; |
| | 271 | readonly identityKey: string; |
| | 272 | readonly payload: Schema.Json; |
| | 273 | readonly threadId: string; |
| | 274 | }; |
| | 275 | export const ClientRequest__ThreadAttachmentAddParams = Schema.Struct({ |
| | 276 | attachmentType: Schema.String, |
| | 277 | identityKey: Schema.String, |
| | 278 | payload: Schema.Json.annotate({ expected: "JSON value" }), |
| | 279 | threadId: Schema.String, |
| | 280 | }).annotate({ |
| | 281 | description: "Parameters for creating or locating an attachment on its owning thread.", |
| | 282 | identifier: "ClientRequest__ThreadAttachmentAddParams", |
| | 283 | }); |
| | 284 | |
| | 285 | export type ClientRequest__ThreadAttachmentListParams = { |
| | 286 | readonly cursor?: string | null; |
| | 287 | readonly limit?: number | null; |
| | 288 | readonly threadId: string; |
| | 289 | }; |
| | 290 | export const ClientRequest__ThreadAttachmentListParams = Schema.Struct({ |
| | 291 | cursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 292 | limit: Schema.optionalKey( |
| | 293 | Schema.Union([ |
| | 294 | Schema.Number.annotate({ format: "uint32" }) |
| | 295 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 296 | .check( |
| | 297 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 298 | expected: "a value greater than or equal to 0", |
| | 299 | }), |
| | 300 | ), |
| | 301 | Schema.Null, |
| | 302 | ]), |
| | 303 | ), |
| | 304 | threadId: Schema.String, |
| | 305 | }).annotate({ |
| | 306 | description: "Parameters for listing attachments from one thread.", |
| | 307 | identifier: "ClientRequest__ThreadAttachmentListParams", |
| | 308 | }); |
| | 309 | |
| | 310 | export type ClientRequest__ThreadAttachmentRemoveParams = { |
| | 311 | readonly attachmentType: string; |
| | 312 | readonly identityKey: string; |
| | 313 | readonly threadId: string; |
| | 314 | }; |
| | 315 | export const ClientRequest__ThreadAttachmentRemoveParams = Schema.Struct({ |
| | 316 | attachmentType: Schema.String, |
| | 317 | identityKey: Schema.String, |
| | 318 | threadId: Schema.String, |
| | 319 | }).annotate({ |
| | 320 | description: "Parameters for deleting an attachment by its stable thread-local identity.", |
| | 321 | identifier: "ClientRequest__ThreadAttachmentRemoveParams", |
| | 322 | }); |
| | 323 | |
| | 324 | export type ClientRequest__ThreadSectionMoveParams = { |
| | 325 | readonly beforeThreadId?: string | null; |
| | 326 | readonly sectionId: string | null; |
| | 327 | readonly threadId: string; |
| | 328 | }; |
| | 329 | export const ClientRequest__ThreadSectionMoveParams = Schema.Struct({ |
| | 330 | beforeThreadId: Schema.optionalKey( |
| | 331 | Schema.Union([ |
| | 332 | Schema.String.annotate({ |
| | 333 | description: "Existing thread to insert before; omission or null appends to the section.", |
| | 334 | }), |
| | 335 | Schema.Null, |
| | 336 | ]), |
| | 337 | ), |
| | 338 | sectionId: Schema.Union([ |
| | 339 | Schema.String.annotate({ |
| | 340 | description: "Destination section, or `null` to remove the thread from its section.", |
| | 341 | }), |
| | 342 | Schema.Null, |
| | 343 | ]), |
| | 344 | threadId: Schema.String.annotate({ |
| | 345 | description: "Thread to move into, within, or out of a section.", |
| | 346 | }), |
| | 347 | }).annotate({ |
| | 348 | description: "Parameters for moving a thread within a server-owned section ordering.", |
| | 349 | identifier: "ClientRequest__ThreadSectionMoveParams", |
| | 350 | }); |
| | 351 | |
| 256 | export type ClientRequest__ThreadUnarchiveParams = { readonly threadId: string }; | 352 | export type ClientRequest__ThreadUnarchiveParams = { readonly threadId: string }; |
| 257 | export const ClientRequest__ThreadUnarchiveParams = Schema.Struct({ | 353 | export const ClientRequest__ThreadUnarchiveParams = Schema.Struct({ |
| 258 | threadId: Schema.String, | 354 | threadId: Schema.String, |
| ... | @@ -266,6 +362,7 @@ export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ | ... | @@ -266,6 +362,7 @@ export const ClientRequest__ThreadCompactStartParams = Schema.Struct({ |
| 266 | export type ClientRequest__ThreadShellCommandParams = { | 362 | export type ClientRequest__ThreadShellCommandParams = { |
| 267 | readonly command: string; | 363 | readonly command: string; |
| 268 | readonly threadId: string; | 364 | readonly threadId: string; |
| | 365 | readonly timeoutMs?: number | null; |
| 269 | }; | 366 | }; |
| 270 | export const ClientRequest__ThreadShellCommandParams = Schema.Struct({ | 367 | export const ClientRequest__ThreadShellCommandParams = Schema.Struct({ |
| 271 | command: Schema.String.annotate({ | 368 | command: Schema.String.annotate({ |
| ... | @@ -273,6 +370,16 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({ | ... | @@ -273,6 +370,16 @@ export const ClientRequest__ThreadShellCommandParams = Schema.Struct({ |
| 273 | "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.", | 370 | "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.", |
| 274 | }), | 371 | }), |
| 275 | threadId: Schema.String, | 372 | threadId: Schema.String, |
| | 373 | timeoutMs: Schema.optionalKey( |
| | 374 | Schema.Union([ |
| | 375 | Schema.Number.annotate({ |
| | 376 | description: |
| | 377 | "Maximum execution time in milliseconds. Defaults to one hour when omitted or null. Must be non-negative; zero requests an immediate timeout, not unlimited execution. Does not affect the immediate RPC acknowledgement.", |
| | 378 | format: "int64", |
| | 379 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 380 | Schema.Null, |
| | 381 | ]), |
| | 382 | ), |
| 276 | }).annotate({ identifier: "ClientRequest__ThreadShellCommandParams" }); | 383 | }).annotate({ identifier: "ClientRequest__ThreadShellCommandParams" }); |
| 277 | | 384 | |
| 278 | export type ClientRequest__ThreadApproveGuardianDeniedActionParams = { | 385 | export type ClientRequest__ThreadApproveGuardianDeniedActionParams = { |
| ... | @@ -287,24 +394,19 @@ export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Str | ... | @@ -287,24 +394,19 @@ export const ClientRequest__ThreadApproveGuardianDeniedActionParams = Schema.Str |
| 287 | threadId: Schema.String, | 394 | threadId: Schema.String, |
| 288 | }).annotate({ identifier: "ClientRequest__ThreadApproveGuardianDeniedActionParams" }); | 395 | }).annotate({ identifier: "ClientRequest__ThreadApproveGuardianDeniedActionParams" }); |
| 289 | | 396 | |
| 290 | export type ClientRequest__ThreadRollbackParams = { | 397 | export type ClientRequest__ThreadRevertParams = { |
| 291 | readonly numTurns: number; | 398 | readonly beforeTurnId: string; |
| 292 | readonly threadId: string; | 399 | readonly threadId: string; |
| 293 | }; | 400 | }; |
| 294 | export const ClientRequest__ThreadRollbackParams = Schema.Struct({ | 401 | export const ClientRequest__ThreadRevertParams = Schema.Struct({ |
| 295 | numTurns: Schema.Number.annotate({ | 402 | beforeTurnId: Schema.String.annotate({ |
| 296 | description: | 403 | description: "Turn excluded from the replacement history, together with every later turn.", |
| 297 | "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.", | 404 | }), |
| 298 | format: "uint32", | | |
| 299 | }) | | |
| 300 | .check(Schema.isInt().annotate({ expected: "an integer" })) | | |
| 301 | .check( | | |
| 302 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), | | |
| 303 | ), | | |
| 304 | threadId: Schema.String, | 405 | threadId: Schema.String, |
| 305 | }).annotate({ | 406 | }).annotate({ |
| 306 | description: "DEPRECATED: `thread/rollback` will be removed soon.", | 407 | description: |
| 307 | identifier: "ClientRequest__ThreadRollbackParams", | 408 | "Replace a paginated thread's durable history with the prefix before one turn.\n\nThis only changes persisted conversation history. It does not revert local file changes.", |
| | 409 | identifier: "ClientRequest__ThreadRevertParams", |
| 308 | }); | 410 | }); |
| 309 | | 411 | |
| 310 | export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>; | 412 | export type ClientRequest__ThreadListCwdFilter = string | ReadonlyArray<string>; |
| ... | @@ -318,11 +420,16 @@ export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]).ann | ... | @@ -318,11 +420,16 @@ export const ClientRequest__SortDirection = Schema.Literals(["asc", "desc"]).ann |
| 318 | identifier: "ClientRequest__SortDirection", | 420 | identifier: "ClientRequest__SortDirection", |
| 319 | }); | 421 | }); |
| 320 | | 422 | |
| 321 | export type ClientRequest__ThreadSortKey = "created_at" | "updated_at" | "recency_at"; | 423 | export type ClientRequest__ThreadSortKey = |
| | 424 | | "created_at" |
| | 425 | | "updated_at" |
| | 426 | | "recency_at" |
| | 427 | | "section_position"; |
| 322 | export const ClientRequest__ThreadSortKey = Schema.Literals([ | 428 | export const ClientRequest__ThreadSortKey = Schema.Literals([ |
| 323 | "created_at", | 429 | "created_at", |
| 324 | "updated_at", | 430 | "updated_at", |
| 325 | "recency_at", | 431 | "recency_at", |
| | 432 | "section_position", |
| 326 | ]).annotate({ identifier: "ClientRequest__ThreadSortKey" }); | 433 | ]).annotate({ identifier: "ClientRequest__ThreadSortKey" }); |
| 327 | | 434 | |
| 328 | export type ClientRequest__ThreadSourceKind = | 435 | export type ClientRequest__ThreadSourceKind = |
| ... | @@ -349,6 +456,61 @@ export const ClientRequest__ThreadSourceKind = Schema.Literals([ | ... | @@ -349,6 +456,61 @@ export const ClientRequest__ThreadSourceKind = Schema.Literals([ |
| 349 | "unknown", | 456 | "unknown", |
| 350 | ]).annotate({ identifier: "ClientRequest__ThreadSourceKind" }); | 457 | ]).annotate({ identifier: "ClientRequest__ThreadSourceKind" }); |
| 351 | | 458 | |
| | 459 | export type ClientRequest__ThreadSectionListParams = { |
| | 460 | readonly cursor?: string | null; |
| | 461 | readonly limit?: number | null; |
| | 462 | }; |
| | 463 | export const ClientRequest__ThreadSectionListParams = Schema.Struct({ |
| | 464 | cursor: Schema.optionalKey( |
| | 465 | Schema.Union([ |
| | 466 | Schema.String.annotate({ |
| | 467 | description: "Opaque pagination cursor returned by a previous call.", |
| | 468 | }), |
| | 469 | Schema.Null, |
| | 470 | ]), |
| | 471 | ), |
| | 472 | limit: Schema.optionalKey( |
| | 473 | Schema.Union([ |
| | 474 | Schema.Number.annotate({ |
| | 475 | description: "Maximum number of sections to return.", |
| | 476 | format: "uint32", |
| | 477 | }) |
| | 478 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 479 | .check( |
| | 480 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 481 | expected: "a value greater than or equal to 0", |
| | 482 | }), |
| | 483 | ), |
| | 484 | Schema.Null, |
| | 485 | ]), |
| | 486 | ), |
| | 487 | }).annotate({ |
| | 488 | description: "Parameters for listing independently persisted thread sections.", |
| | 489 | identifier: "ClientRequest__ThreadSectionListParams", |
| | 490 | }); |
| | 491 | |
| | 492 | export type ClientRequest__ThreadSectionAppearance = { |
| | 493 | readonly color?: string | null; |
| | 494 | readonly icon?: string | null; |
| | 495 | }; |
| | 496 | export const ClientRequest__ThreadSectionAppearance = Schema.Struct({ |
| | 497 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 498 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 499 | }).annotate({ |
| | 500 | description: "Extensible visual presentation for a custom thread section.", |
| | 501 | identifier: "ClientRequest__ThreadSectionAppearance", |
| | 502 | }); |
| | 503 | |
| | 504 | export type ClientRequest__ThreadSectionDeleteParams = { readonly sectionId: string }; |
| | 505 | export const ClientRequest__ThreadSectionDeleteParams = Schema.Struct({ |
| | 506 | sectionId: Schema.String.annotate({ |
| | 507 | description: "The stable, server-generated identity of the section to delete.", |
| | 508 | }), |
| | 509 | }).annotate({ |
| | 510 | description: "Parameters for deleting an independently persisted thread section.", |
| | 511 | identifier: "ClientRequest__ThreadSectionDeleteParams", |
| | 512 | }); |
| | 513 | |
| 352 | export type ClientRequest__ThreadLoadedListParams = { | 514 | export type ClientRequest__ThreadLoadedListParams = { |
| 353 | readonly cursor?: string | null; | 515 | readonly cursor?: string | null; |
| 354 | readonly limit?: number | null; | 516 | readonly limit?: number | null; |
| ... | @@ -386,12 +548,30 @@ export type ClientRequest__ThreadReadParams = { | ... | @@ -386,12 +548,30 @@ export type ClientRequest__ThreadReadParams = { |
| 386 | export const ClientRequest__ThreadReadParams = Schema.Struct({ | 548 | export const ClientRequest__ThreadReadParams = Schema.Struct({ |
| 387 | includeTurns: Schema.optionalKey( | 549 | includeTurns: Schema.optionalKey( |
| 388 | Schema.Boolean.annotate({ | 550 | Schema.Boolean.annotate({ |
| 389 | description: "When true, include turns and their items from rollout history.", | 551 | description: |
| | 552 | "When true, include turns and their items from rollout history. Full-history hydration is deprecated for paginated threads; prefer a metadata-only read and page with `thread/turns/list` and `thread/items/list`.", |
| 390 | }), | 553 | }), |
| 391 | ), | 554 | ), |
| 392 | threadId: Schema.String, | 555 | threadId: Schema.String, |
| 393 | }).annotate({ identifier: "ClientRequest__ThreadReadParams" }); | 556 | }).annotate({ identifier: "ClientRequest__ThreadReadParams" }); |
| 394 | | 557 | |
| | 558 | export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 559 | export const ClientRequest__TurnItemsView = Schema.Union( |
| | 560 | [ |
| | 561 | Schema.Literal("notLoaded").annotate({ |
| | 562 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 563 | }), |
| | 564 | Schema.Literal("summary").annotate({ |
| | 565 | description: "`items` contains only a display summary for this turn.", |
| | 566 | }), |
| | 567 | Schema.Literal("full").annotate({ |
| | 568 | description: |
| | 569 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 570 | }), |
| | 571 | ], |
| | 572 | { mode: "oneOf" }, |
| | 573 | ).annotate({ identifier: "ClientRequest__TurnItemsView" }); |
| | 574 | |
| 395 | export type ClientRequest__ThreadInjectItemsParams = { | 575 | export type ClientRequest__ThreadInjectItemsParams = { |
| 396 | readonly items: ReadonlyArray<Schema.Json>; | 576 | readonly items: ReadonlyArray<Schema.Json>; |
| 397 | readonly threadId: string; | 577 | readonly threadId: string; |
| ... | @@ -471,6 +651,18 @@ export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([ | ... | @@ -471,6 +651,18 @@ export const ClientRequest__PluginListMarketplaceKind = Schema.Literals([ |
| 471 | "created-by-me-remote", | 651 | "created-by-me-remote", |
| 472 | ]).annotate({ identifier: "ClientRequest__PluginListMarketplaceKind" }); | 652 | ]).annotate({ identifier: "ClientRequest__PluginListMarketplaceKind" }); |
| 473 | | 653 | |
| | 654 | export type ClientRequest__PluginReconcileParams = { readonly reason?: string | null }; |
| | 655 | export const ClientRequest__PluginReconcileParams = Schema.Struct({ |
| | 656 | reason: Schema.optionalKey( |
| | 657 | Schema.Union([ |
| | 658 | Schema.String.annotate({ |
| | 659 | description: "Optional client-provided reason recorded with the reconciliation attempt.", |
| | 660 | }), |
| | 661 | Schema.Null, |
| | 662 | ]), |
| | 663 | ), |
| | 664 | }).annotate({ identifier: "ClientRequest__PluginReconcileParams" }); |
| | 665 | |
| 474 | export type ClientRequest__PluginSkillReadParams = { | 666 | export type ClientRequest__PluginSkillReadParams = { |
| 475 | readonly remoteMarketplaceName: string; | 667 | readonly remoteMarketplaceName: string; |
| 476 | readonly remotePluginId: string; | 668 | readonly remotePluginId: string; |
| ... | @@ -527,6 +719,7 @@ export const ClientRequest__PluginShareDeleteParams = Schema.Struct({ | ... | @@ -527,6 +719,7 @@ export const ClientRequest__PluginShareDeleteParams = Schema.Struct({ |
| 527 | export type ClientRequest__AppsReadParams = { | 719 | export type ClientRequest__AppsReadParams = { |
| 528 | readonly appIds: ReadonlyArray<string>; | 720 | readonly appIds: ReadonlyArray<string>; |
| 529 | readonly includeTools?: boolean; | 721 | readonly includeTools?: boolean; |
| | 722 | readonly threadId?: string | null; |
| 530 | }; | 723 | }; |
| 531 | export const ClientRequest__AppsReadParams = Schema.Struct({ | 724 | export const ClientRequest__AppsReadParams = Schema.Struct({ |
| 532 | appIds: Schema.Array(Schema.String).annotate({ | 725 | appIds: Schema.Array(Schema.String).annotate({ |
| ... | @@ -539,6 +732,14 @@ export const ClientRequest__AppsReadParams = Schema.Struct({ | ... | @@ -539,6 +732,14 @@ export const ClientRequest__AppsReadParams = Schema.Struct({ |
| 539 | "When true, include display-only public tool summaries in the returned metadata.", | 732 | "When true, include display-only public tool summaries in the returned metadata.", |
| 540 | }), | 733 | }), |
| 541 | ), | 734 | ), |
| | 735 | threadId: Schema.optionalKey( |
| | 736 | Schema.Union([ |
| | 737 | Schema.String.annotate({ |
| | 738 | description: "Optional loaded thread id used to evaluate effective app configuration.", |
| | 739 | }), |
| | 740 | Schema.Null, |
| | 741 | ]), |
| | 742 | ), |
| 542 | }).annotate({ | 743 | }).annotate({ |
| 543 | description: "EXPERIMENTAL - read metadata for specific apps/connectors.", | 744 | description: "EXPERIMENTAL - read metadata for specific apps/connectors.", |
| 544 | identifier: "ClientRequest__AppsReadParams", | 745 | identifier: "ClientRequest__AppsReadParams", |
| ... | @@ -880,25 +1081,12 @@ export const ClientRequest__ExperimentalFeatureEnablementSetParams = Schema.Stru | ... | @@ -880,25 +1081,12 @@ export const ClientRequest__ExperimentalFeatureEnablementSetParams = Schema.Stru |
| 880 | }), | 1081 | }), |
| 881 | }).annotate({ identifier: "ClientRequest__ExperimentalFeatureEnablementSetParams" }); | 1082 | }).annotate({ identifier: "ClientRequest__ExperimentalFeatureEnablementSetParams" }); |
| 882 | | 1083 | |
| 883 | export type ClientRequest__McpServerOauthLoginParams = { | 1084 | export type ClientRequest__McpServerOauthClientRegistration = "auto" | "cimd" | "dcr"; |
| 884 | readonly name: string; | 1085 | export const ClientRequest__McpServerOauthClientRegistration = Schema.Literals([ |
| 885 | readonly scopes?: ReadonlyArray<string> | null; | 1086 | "auto", |
| 886 | readonly threadId?: string | null; | 1087 | "cimd", |
| 887 | readonly timeoutSecs?: number | null; | 1088 | "dcr", |
| 888 | }; | 1089 | ]).annotate({ identifier: "ClientRequest__McpServerOauthClientRegistration" }); |
| 889 | export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({ | | |
| 890 | name: Schema.String, | | |
| 891 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 892 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 893 | timeoutSecs: Schema.optionalKey( | | |
| 894 | Schema.Union([ | | |
| 895 | Schema.Number.annotate({ format: "int64" }).check( | | |
| 896 | Schema.isInt().annotate({ expected: "an integer" }), | | |
| 897 | ), | | |
| 898 | Schema.Null, | | |
| 899 | ]), | | |
| 900 | ), | | |
| 901 | }).annotate({ identifier: "ClientRequest__McpServerOauthLoginParams" }); | | |
| 902 | | 1090 | |
| 903 | export type ClientRequest__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; | 1091 | export type ClientRequest__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; |
| 904 | export const ClientRequest__McpServerStatusDetail = Schema.Literals([ | 1092 | export const ClientRequest__McpServerStatusDetail = Schema.Literals([ |
| ... | @@ -907,11 +1095,22 @@ export const ClientRequest__McpServerStatusDetail = Schema.Literals([ | ... | @@ -907,11 +1095,22 @@ export const ClientRequest__McpServerStatusDetail = Schema.Literals([ |
| 907 | ]).annotate({ identifier: "ClientRequest__McpServerStatusDetail" }); | 1095 | ]).annotate({ identifier: "ClientRequest__McpServerStatusDetail" }); |
| 908 | | 1096 | |
| 909 | export type ClientRequest__McpResourceReadParams = { | 1097 | export type ClientRequest__McpResourceReadParams = { |
| | 1098 | readonly connectorId?: string | null; |
| | 1099 | readonly originCallId?: string | null; |
| 910 | readonly server: string; | 1100 | readonly server: string; |
| 911 | readonly threadId?: string | null; | 1101 | readonly threadId?: string | null; |
| 912 | readonly uri: string; | 1102 | readonly uri: string; |
| 913 | }; | 1103 | }; |
| 914 | export const ClientRequest__McpResourceReadParams = Schema.Struct({ | 1104 | export const ClientRequest__McpResourceReadParams = Schema.Struct({ |
| | 1105 | connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 1106 | originCallId: Schema.optionalKey( |
| | 1107 | Schema.Union([ |
| | 1108 | Schema.String.annotate({ |
| | 1109 | description: "Originating MCP tool call used to select the resource's app.", |
| | 1110 | }), |
| | 1111 | Schema.Null, |
| | 1112 | ]), |
| | 1113 | ), |
| 915 | server: Schema.String, | 1114 | server: Schema.String, |
| 916 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 1115 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 917 | uri: Schema.String, | 1116 | uri: Schema.String, |
| ... | @@ -948,6 +1147,29 @@ export const ClientRequest__CancelLoginAccountParams = Schema.Struct({ | ... | @@ -948,6 +1147,29 @@ export const ClientRequest__CancelLoginAccountParams = Schema.Struct({ |
| 948 | loginId: Schema.String, | 1147 | loginId: Schema.String, |
| 949 | }).annotate({ identifier: "ClientRequest__CancelLoginAccountParams" }); | 1148 | }).annotate({ identifier: "ClientRequest__CancelLoginAccountParams" }); |
| 950 | | 1149 | |
| | 1150 | export type ClientRequest__GetAccountRateLimitsParams = { |
| | 1151 | readonly excludeResetCreditDetails?: boolean; |
| | 1152 | readonly supportsLunaReserve?: boolean; |
| | 1153 | }; |
| | 1154 | export const ClientRequest__GetAccountRateLimitsParams = Schema.Struct({ |
| | 1155 | excludeResetCreditDetails: Schema.optionalKey( |
| | 1156 | Schema.Boolean.annotate({ |
| | 1157 | description: |
| | 1158 | "Skip the separate reset-credit detail lookup for background usage polls. The usage response still includes the available count; omitted/false preserves detailed reads.", |
| | 1159 | }), |
| | 1160 | ), |
| | 1161 | supportsLunaReserve: Schema.optionalKey( |
| | 1162 | Schema.Boolean.annotate({ |
| | 1163 | description: |
| | 1164 | "The client supports automatic Luna Reserve fallback. For eligible ChatGPT CLI users, allow the backend to record experiment exposure after ordinary usage is blocked.", |
| | 1165 | }), |
| | 1166 | ), |
| | 1167 | }).annotate({ |
| | 1168 | description: |
| | 1169 | "Usage-read capabilities of the requesting client, never inferred from its experiment arm.", |
| | 1170 | identifier: "ClientRequest__GetAccountRateLimitsParams", |
| | 1171 | }); |
| | 1172 | |
| 951 | export type ClientRequest__ConsumeAccountRateLimitResetCreditParams = { | 1173 | export type ClientRequest__ConsumeAccountRateLimitResetCreditParams = { |
| 952 | readonly creditId?: string | null; | 1174 | readonly creditId?: string | null; |
| 953 | readonly idempotencyKey: string; | 1175 | readonly idempotencyKey: string; |
| ... | @@ -968,6 +1190,19 @@ export const ClientRequest__ConsumeAccountRateLimitResetCreditParams = Schema.St | ... | @@ -968,6 +1190,19 @@ export const ClientRequest__ConsumeAccountRateLimitResetCreditParams = Schema.St |
| 968 | }), | 1190 | }), |
| 969 | }).annotate({ identifier: "ClientRequest__ConsumeAccountRateLimitResetCreditParams" }); | 1191 | }).annotate({ identifier: "ClientRequest__ConsumeAccountRateLimitResetCreditParams" }); |
| 970 | | 1192 | |
| | 1193 | export type ClientRequest__GetAccountTokenUsageParams = { readonly threadId?: string | null }; |
| | 1194 | export const ClientRequest__GetAccountTokenUsageParams = Schema.Struct({ |
| | 1195 | threadId: Schema.optionalKey( |
| | 1196 | Schema.Union([ |
| | 1197 | Schema.String.annotate({ |
| | 1198 | description: |
| | 1199 | "When present, read estimated usage for this thread instead of account-wide token activity.", |
| | 1200 | }), |
| | 1201 | Schema.Null, |
| | 1202 | ]), |
| | 1203 | ), |
| | 1204 | }).annotate({ identifier: "ClientRequest__GetAccountTokenUsageParams" }); |
| | 1205 | |
| 971 | export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit"; | 1206 | export type ClientRequest__AddCreditsNudgeCreditType = "credits" | "usage_limit"; |
| 972 | export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals([ | 1207 | export const ClientRequest__AddCreditsNudgeCreditType = Schema.Literals([ |
| 973 | "credits", | 1208 | "credits", |
| ... | @@ -1076,6 +1311,8 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({ | ... | @@ -1076,6 +1311,8 @@ export const ClientRequest__ConfigReadParams = Schema.Struct({ |
| 1076 | export type ClientRequest__ExternalAgentConfigDetectParams = { | 1311 | export type ClientRequest__ExternalAgentConfigDetectParams = { |
| 1077 | readonly cwds?: ReadonlyArray<string> | null; | 1312 | readonly cwds?: ReadonlyArray<string> | null; |
| 1078 | readonly includeHome?: boolean; | 1313 | readonly includeHome?: boolean; |
| | 1314 | readonly maxSessionAgeDays?: number | null; |
| | 1315 | readonly maxSessions?: number | null; |
| 1079 | readonly migrationSource?: string | null; | 1316 | readonly migrationSource?: string | null; |
| 1080 | readonly source?: string | null; | 1317 | readonly source?: string | null; |
| 1081 | }; | 1318 | }; |
| ... | @@ -1093,6 +1330,37 @@ export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({ | ... | @@ -1093,6 +1330,37 @@ export const ClientRequest__ExternalAgentConfigDetectParams = Schema.Struct({ |
| 1093 | description: "If true, include detection under the user's home directory.", | 1330 | description: "If true, include detection under the user's home directory.", |
| 1094 | }), | 1331 | }), |
| 1095 | ), | 1332 | ), |
| | 1333 | maxSessionAgeDays: Schema.optionalKey( |
| | 1334 | Schema.Union([ |
| | 1335 | Schema.Number.annotate({ |
| | 1336 | description: |
| | 1337 | "Maximum age in days for detected sessions. Missing values use the default limit.", |
| | 1338 | format: "uint32", |
| | 1339 | }) |
| | 1340 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1341 | .check( |
| | 1342 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 1343 | expected: "a value greater than or equal to 0", |
| | 1344 | }), |
| | 1345 | ), |
| | 1346 | Schema.Null, |
| | 1347 | ]), |
| | 1348 | ), |
| | 1349 | maxSessions: Schema.optionalKey( |
| | 1350 | Schema.Union([ |
| | 1351 | Schema.Number.annotate({ |
| | 1352 | description: "Maximum number of sessions to detect. Missing values use the default limit.", |
| | 1353 | format: "uint32", |
| | 1354 | }) |
| | 1355 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 1356 | .check( |
| | 1357 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 1358 | expected: "a value greater than or equal to 0", |
| | 1359 | }), |
| | 1360 | ), |
| | 1361 | Schema.Null, |
| | 1362 | ]), |
| | 1363 | ), |
| 1096 | migrationSource: Schema.optionalKey( | 1364 | migrationSource: Schema.optionalKey( |
| 1097 | Schema.Union([ | 1365 | Schema.Union([ |
| 1098 | Schema.String.annotate({ | 1366 | Schema.String.annotate({ |
| ... | @@ -1440,40 +1708,27 @@ export const ClientRequest__ConversationTextRole = Schema.Literals([ | ... | @@ -1440,40 +1708,27 @@ export const ClientRequest__ConversationTextRole = Schema.Literals([ |
| 1440 | "assistant", | 1708 | "assistant", |
| 1441 | ]).annotate({ identifier: "ClientRequest__ConversationTextRole" }); | 1709 | ]).annotate({ identifier: "ClientRequest__ConversationTextRole" }); |
| 1442 | | 1710 | |
| 1443 | export type ClientRequest__TurnItemsView = "notLoaded" | "summary" | "full"; | | |
| 1444 | export const ClientRequest__TurnItemsView = Schema.Union( | | |
| 1445 | [ | | |
| 1446 | Schema.Literal("notLoaded").annotate({ | | |
| 1447 | description: "`items` was not loaded for this turn. The field is intentionally empty.", | | |
| 1448 | }), | | |
| 1449 | Schema.Literal("summary").annotate({ | | |
| 1450 | description: "`items` contains only a display summary for this turn.", | | |
| 1451 | }), | | |
| 1452 | Schema.Literal("full").annotate({ | | |
| 1453 | description: | | |
| 1454 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", | | |
| 1455 | }), | | |
| 1456 | ], | | |
| 1457 | { mode: "oneOf" }, | | |
| 1458 | ).annotate({ identifier: "ClientRequest__TurnItemsView" }); | | |
| 1459 | | | |
| 1460 | export type ClientRequest__LegacyAppPathString = string; | 1711 | export type ClientRequest__LegacyAppPathString = string; |
| 1461 | export const ClientRequest__LegacyAppPathString = Schema.String.annotate({ | 1712 | export const ClientRequest__LegacyAppPathString = Schema.String.annotate({ |
| 1462 | identifier: "ClientRequest__LegacyAppPathString", | 1713 | identifier: "ClientRequest__LegacyAppPathString", |
| 1463 | }); | 1714 | }); |
| 1464 | | 1715 | |
| 1465 | export type CommandExecutionRequestApprovalParams__AbsolutePathBuf = string; | | |
| 1466 | export const CommandExecutionRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({ | | |
| 1467 | description: | | |
| 1468 | "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.", | | |
| 1469 | identifier: "CommandExecutionRequestApprovalParams__AbsolutePathBuf", | | |
| 1470 | }); | | |
| 1471 | | | |
| 1472 | export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string; | 1716 | export type CommandExecutionRequestApprovalParams__LegacyAppPathString = string; |
| 1473 | export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({ | 1717 | export const CommandExecutionRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({ |
| 1474 | identifier: "CommandExecutionRequestApprovalParams__LegacyAppPathString", | 1718 | identifier: "CommandExecutionRequestApprovalParams__LegacyAppPathString", |
| 1475 | }); | 1719 | }); |
| 1476 | | 1720 | |
| | 1721 | export type CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind = |
| | 1722 | | "command" |
| | 1723 | | "writeStdin"; |
| | 1724 | export const CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind = Schema.Literals([ |
| | 1725 | "command", |
| | 1726 | "writeStdin", |
| | 1727 | ]).annotate({ |
| | 1728 | description: "Distinguishes a command approval from input sent to an existing terminal.", |
| | 1729 | identifier: "CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind", |
| | 1730 | }); |
| | 1731 | |
| 1477 | export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol = | 1732 | export type CommandExecutionRequestApprovalParams__NetworkApprovalProtocol = |
| 1478 | | "http" | 1733 | | "http" |
| 1479 | | "https" | 1734 | | "https" |
| ... | @@ -1772,11 +2027,9 @@ export const McpServerElicitationRequestResponse__McpServerElicitationAction = S | ... | @@ -1772,11 +2027,9 @@ export const McpServerElicitationRequestResponse__McpServerElicitationAction = S |
| 1772 | "cancel", | 2027 | "cancel", |
| 1773 | ]).annotate({ identifier: "McpServerElicitationRequestResponse__McpServerElicitationAction" }); | 2028 | ]).annotate({ identifier: "McpServerElicitationRequestResponse__McpServerElicitationAction" }); |
| 1774 | | 2029 | |
| 1775 | export type PermissionsRequestApprovalParams__AbsolutePathBuf = string; | 2030 | export type PermissionsRequestApprovalParams__LegacyAppPathString = string; |
| 1776 | export const PermissionsRequestApprovalParams__AbsolutePathBuf = Schema.String.annotate({ | 2031 | export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({ |
| 1777 | description: | 2032 | identifier: "PermissionsRequestApprovalParams__LegacyAppPathString", |
| 1778 | "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.", | | |
| 1779 | identifier: "PermissionsRequestApprovalParams__AbsolutePathBuf", | | |
| 1780 | }); | 2033 | }); |
| 1781 | | 2034 | |
| 1782 | export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny"; | 2035 | export type PermissionsRequestApprovalParams__FileSystemAccessMode = "read" | "write" | "deny"; |
| ... | @@ -1786,11 +2039,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit | ... | @@ -1786,11 +2039,6 @@ export const PermissionsRequestApprovalParams__FileSystemAccessMode = Schema.Lit |
| 1786 | "deny", | 2039 | "deny", |
| 1787 | ]).annotate({ identifier: "PermissionsRequestApprovalParams__FileSystemAccessMode" }); | 2040 | ]).annotate({ identifier: "PermissionsRequestApprovalParams__FileSystemAccessMode" }); |
| 1788 | | 2041 | |
| 1789 | export type PermissionsRequestApprovalParams__LegacyAppPathString = string; | | |
| 1790 | export const PermissionsRequestApprovalParams__LegacyAppPathString = Schema.String.annotate({ | | |
| 1791 | identifier: "PermissionsRequestApprovalParams__LegacyAppPathString", | | |
| 1792 | }); | | |
| 1793 | | | |
| 1794 | export type PermissionsRequestApprovalParams__AdditionalNetworkPermissions = { | 2042 | export type PermissionsRequestApprovalParams__AdditionalNetworkPermissions = { |
| 1795 | readonly enabled?: boolean | null; | 2043 | readonly enabled?: boolean | null; |
| 1796 | }; | 2044 | }; |
| ... | @@ -1829,6 +2077,11 @@ export const ServerNotification__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -1829,6 +2077,11 @@ export const ServerNotification__NonSteerableTurnKind = Schema.Literals([ |
| 1829 | "compact", | 2077 | "compact", |
| 1830 | ]).annotate({ identifier: "ServerNotification__NonSteerableTurnKind" }); | 2078 | ]).annotate({ identifier: "ServerNotification__NonSteerableTurnKind" }); |
| 1831 | | 2079 | |
| | 2080 | export type ServerNotification__MisalignmentSteer = { readonly message: string }; |
| | 2081 | export const ServerNotification__MisalignmentSteer = Schema.Struct({ |
| | 2082 | message: Schema.String, |
| | 2083 | }).annotate({ identifier: "ServerNotification__MisalignmentSteer" }); |
| | 2084 | |
| 1832 | export type ServerNotification__AbsolutePathBuf = string; | 2085 | export type ServerNotification__AbsolutePathBuf = string; |
| 1833 | export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({ | 2086 | export const ServerNotification__AbsolutePathBuf = Schema.String.annotate({ |
| 1834 | description: | 2087 | description: |
| ... | @@ -1847,6 +2100,34 @@ export const ServerNotification__GitInfo = Schema.Struct({ | ... | @@ -1847,6 +2100,34 @@ export const ServerNotification__GitInfo = Schema.Struct({ |
| 1847 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2100 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 1848 | }).annotate({ identifier: "ServerNotification__GitInfo" }); | 2101 | }).annotate({ identifier: "ServerNotification__GitInfo" }); |
| 1849 | | 2102 | |
| | 2103 | export type ServerNotification__ThreadHistoryMode = "legacy" | "paginated"; |
| | 2104 | export const ServerNotification__ThreadHistoryMode = Schema.Literals([ |
| | 2105 | "legacy", |
| | 2106 | "paginated", |
| | 2107 | ]).annotate({ identifier: "ServerNotification__ThreadHistoryMode" }); |
| | 2108 | |
| | 2109 | export type ServerNotification__ReasoningEffort = string; |
| | 2110 | export const ServerNotification__ReasoningEffort = Schema.String.annotate({ |
| | 2111 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 2112 | }).check( |
| | 2113 | Schema.isMinLength(1).annotate({ |
| | 2114 | expected: "a value with a length of at least 1", |
| | 2115 | identifier: "ServerNotification__ReasoningEffort", |
| | 2116 | }), |
| | 2117 | ); |
| | 2118 | |
| | 2119 | export type ServerNotification__ThreadSectionAppearance = { |
| | 2120 | readonly color?: string | null; |
| | 2121 | readonly icon?: string | null; |
| | 2122 | }; |
| | 2123 | export const ServerNotification__ThreadSectionAppearance = Schema.Struct({ |
| | 2124 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2125 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 2126 | }).annotate({ |
| | 2127 | description: "Extensible visual presentation for a custom thread section.", |
| | 2128 | identifier: "ServerNotification__ThreadSectionAppearance", |
| | 2129 | }); |
| | 2130 | |
| 1850 | export type ServerNotification__AgentPath = string; | 2131 | export type ServerNotification__AgentPath = string; |
| 1851 | export const ServerNotification__AgentPath = Schema.String.annotate({ | 2132 | export const ServerNotification__AgentPath = Schema.String.annotate({ |
| 1852 | identifier: "ServerNotification__AgentPath", | 2133 | identifier: "ServerNotification__AgentPath", |
| ... | @@ -1899,6 +2180,11 @@ export const ServerNotification__HookPromptFragment = Schema.Struct({ | ... | @@ -1899,6 +2180,11 @@ export const ServerNotification__HookPromptFragment = Schema.Struct({ |
| 1899 | text: Schema.String, | 2180 | text: Schema.String, |
| 1900 | }).annotate({ identifier: "ServerNotification__HookPromptFragment" }); | 2181 | }).annotate({ identifier: "ServerNotification__HookPromptFragment" }); |
| 1901 | | 2182 | |
| | 2183 | export type ServerNotification__AgentMessageDelivery = "async"; |
| | 2184 | export const ServerNotification__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 2185 | identifier: "ServerNotification__AgentMessageDelivery", |
| | 2186 | }); |
| | 2187 | |
| 1902 | export type ServerNotification__MemoryCitationEntry = { | 2188 | export type ServerNotification__MemoryCitationEntry = { |
| 1903 | readonly lineEnd: number; | 2189 | readonly lineEnd: number; |
| 1904 | readonly lineStart: number; | 2190 | readonly lineStart: number; |
| ... | @@ -1938,6 +2224,15 @@ export const ServerNotification__MessagePhase = Schema.Union( | ... | @@ -1938,6 +2224,15 @@ export const ServerNotification__MessagePhase = Schema.Union( |
| 1938 | identifier: "ServerNotification__MessagePhase", | 2224 | identifier: "ServerNotification__MessagePhase", |
| 1939 | }); | 2225 | }); |
| 1940 | | 2226 | |
| | 2227 | export type ServerNotification__AsyncUserInputQuestion = { |
| | 2228 | readonly options?: ReadonlyArray<string> | null; |
| | 2229 | readonly title: string; |
| | 2230 | }; |
| | 2231 | export const ServerNotification__AsyncUserInputQuestion = Schema.Struct({ |
| | 2232 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 2233 | title: Schema.String, |
| | 2234 | }).annotate({ identifier: "ServerNotification__AsyncUserInputQuestion" }); |
| | 2235 | |
| 1941 | export type ServerNotification__LegacyAppPathString = string; | 2236 | export type ServerNotification__LegacyAppPathString = string; |
| 1942 | export const ServerNotification__LegacyAppPathString = Schema.String.annotate({ | 2237 | export const ServerNotification__LegacyAppPathString = Schema.String.annotate({ |
| 1943 | identifier: "ServerNotification__LegacyAppPathString", | 2238 | identifier: "ServerNotification__LegacyAppPathString", |
| ... | @@ -2019,6 +2314,12 @@ export const ServerNotification__McpToolCallError = Schema.Struct({ | ... | @@ -2019,6 +2314,12 @@ export const ServerNotification__McpToolCallError = Schema.Struct({ |
| 2019 | message: Schema.String, | 2314 | message: Schema.String, |
| 2020 | }).annotate({ identifier: "ServerNotification__McpToolCallError" }); | 2315 | }).annotate({ identifier: "ServerNotification__McpToolCallError" }); |
| 2021 | | 2316 | |
| | 2317 | export type ServerNotification__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 2318 | export const ServerNotification__McpAppDisplayMode = Schema.Literals([ |
| | 2319 | "inline", |
| | 2320 | "fullscreen", |
| | 2321 | ]).annotate({ identifier: "ServerNotification__McpAppDisplayMode" }); |
| | 2322 | |
| 2022 | export type ServerNotification__McpToolCallResult = { | 2323 | export type ServerNotification__McpToolCallResult = { |
| 2023 | readonly _meta?: Schema.Json; | 2324 | readonly _meta?: Schema.Json; |
| 2024 | readonly content: ReadonlyArray<Schema.Json>; | 2325 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -2090,16 +2391,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([ | ... | @@ -2090,16 +2391,6 @@ export const ServerNotification__CollabAgentStatus = Schema.Literals([ |
| 2090 | "notFound", | 2391 | "notFound", |
| 2091 | ]).annotate({ identifier: "ServerNotification__CollabAgentStatus" }); | 2392 | ]).annotate({ identifier: "ServerNotification__CollabAgentStatus" }); |
| 2092 | | 2393 | |
| 2093 | export type ServerNotification__ReasoningEffort = string; | | |
| 2094 | export const ServerNotification__ReasoningEffort = Schema.String.annotate({ | | |
| 2095 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 2096 | }).check( | | |
| 2097 | Schema.isMinLength(1).annotate({ | | |
| 2098 | expected: "a value with a length of at least 1", | | |
| 2099 | identifier: "ServerNotification__ReasoningEffort", | | |
| 2100 | }), | | |
| 2101 | ); | | |
| 2102 | | | |
| 2103 | export type ServerNotification__CollabAgentToolCallStatus = | 2394 | export type ServerNotification__CollabAgentToolCallStatus = |
| 2104 | | "inProgress" | 2395 | | "inProgress" |
| 2105 | | "completed" | 2396 | | "completed" |
| ... | @@ -2178,6 +2469,31 @@ export const ServerNotification__WebSearchAction = Schema.Union( | ... | @@ -2178,6 +2469,31 @@ export const ServerNotification__WebSearchAction = Schema.Union( |
| 2178 | { mode: "oneOf" }, | 2469 | { mode: "oneOf" }, |
| 2179 | ).annotate({ identifier: "ServerNotification__WebSearchAction" }); | 2470 | ).annotate({ identifier: "ServerNotification__WebSearchAction" }); |
| 2180 | | 2471 | |
| | 2472 | export type ServerNotification__ImageGenerationFailure = { |
| | 2473 | readonly limitId: string; |
| | 2474 | readonly resetsAt?: number | null; |
| | 2475 | readonly type: "usageLimitExceeded"; |
| | 2476 | }; |
| | 2477 | export const ServerNotification__ImageGenerationFailure = Schema.Union( |
| | 2478 | [ |
| | 2479 | Schema.Struct({ |
| | 2480 | limitId: Schema.String, |
| | 2481 | resetsAt: Schema.optionalKey( |
| | 2482 | Schema.Union([ |
| | 2483 | Schema.Number.annotate({ format: "int64" }).check( |
| | 2484 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 2485 | ), |
| | 2486 | Schema.Null, |
| | 2487 | ]), |
| | 2488 | ), |
| | 2489 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 2490 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 2491 | }), |
| | 2492 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 2493 | ], |
| | 2494 | { mode: "oneOf" }, |
| | 2495 | ).annotate({ identifier: "ServerNotification__ImageGenerationFailure" }); |
| | 2496 | |
| 2181 | export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | 2497 | export type ServerNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 2182 | export const ServerNotification__TurnItemsView = Schema.Union( | 2498 | export const ServerNotification__TurnItemsView = Schema.Union( |
| 2183 | [ | 2499 | [ |
| ... | @@ -2223,6 +2539,11 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({ | ... | @@ -2223,6 +2539,11 @@ export const ServerNotification__ThreadClosedNotification = Schema.Struct({ |
| 2223 | threadId: Schema.String, | 2539 | threadId: Schema.String, |
| 2224 | }).annotate({ identifier: "ServerNotification__ThreadClosedNotification" }); | 2540 | }).annotate({ identifier: "ServerNotification__ThreadClosedNotification" }); |
| 2225 | | 2541 | |
| | 2542 | export type ServerNotification__ThreadRevertedNotification = { readonly threadId: string }; |
| | 2543 | export const ServerNotification__ThreadRevertedNotification = Schema.Struct({ |
| | 2544 | threadId: Schema.String, |
| | 2545 | }).annotate({ identifier: "ServerNotification__ThreadRevertedNotification" }); |
| | 2546 | |
| 2226 | export type ServerNotification__SkillsChangedNotification = { readonly [x: string]: Schema.Json }; | 2547 | export type ServerNotification__SkillsChangedNotification = { readonly [x: string]: Schema.Json }; |
| 2227 | export const ServerNotification__SkillsChangedNotification = Schema.Record( | 2548 | export const ServerNotification__SkillsChangedNotification = Schema.Record( |
| 2228 | Schema.String, | 2549 | Schema.String, |
| ... | @@ -2242,6 +2563,15 @@ export const ServerNotification__ThreadNameUpdatedNotification = Schema.Struct({ | ... | @@ -2242,6 +2563,15 @@ export const ServerNotification__ThreadNameUpdatedNotification = Schema.Struct({ |
| 2242 | threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 2563 | threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 2243 | }).annotate({ identifier: "ServerNotification__ThreadNameUpdatedNotification" }); | 2564 | }).annotate({ identifier: "ServerNotification__ThreadNameUpdatedNotification" }); |
| 2244 | | 2565 | |
| | 2566 | export type ServerNotification__ThreadAttachmentOperation = "created" | "deleted"; |
| | 2567 | export const ServerNotification__ThreadAttachmentOperation = Schema.Literals([ |
| | 2568 | "created", |
| | 2569 | "deleted", |
| | 2570 | ]).annotate({ |
| | 2571 | description: "The persisted attachment change represented by a notification.", |
| | 2572 | identifier: "ServerNotification__ThreadAttachmentOperation", |
| | 2573 | }); |
| | 2574 | |
| 2245 | export type ServerNotification__ThreadGoalStatus = | 2575 | export type ServerNotification__ThreadGoalStatus = |
| 2246 | | "active" | 2576 | | "active" |
| 2247 | | "paused" | 2577 | | "paused" |
| ... | @@ -2263,6 +2593,27 @@ export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({ | ... | @@ -2263,6 +2593,27 @@ export const ServerNotification__ThreadGoalClearedNotification = Schema.Struct({ |
| 2263 | threadId: Schema.String, | 2593 | threadId: Schema.String, |
| 2264 | }).annotate({ identifier: "ServerNotification__ThreadGoalClearedNotification" }); | 2594 | }).annotate({ identifier: "ServerNotification__ThreadGoalClearedNotification" }); |
| 2265 | | 2595 | |
| | 2596 | export type ServerNotification__ThreadQueueChangedNotification = { readonly threadId: string }; |
| | 2597 | export const ServerNotification__ThreadQueueChangedNotification = Schema.Struct({ |
| | 2598 | threadId: Schema.String, |
| | 2599 | }).annotate({ identifier: "ServerNotification__ThreadQueueChangedNotification" }); |
| | 2600 | |
| | 2601 | export type ServerNotification__ProjectChangeType = "created" | "updated" | "deleted"; |
| | 2602 | export const ServerNotification__ProjectChangeType = Schema.Literals([ |
| | 2603 | "created", |
| | 2604 | "updated", |
| | 2605 | "deleted", |
| | 2606 | ]).annotate({ identifier: "ServerNotification__ProjectChangeType" }); |
| | 2607 | |
| | 2608 | export type ServerNotification__ThreadProjectUpdatedNotification = { |
| | 2609 | readonly projectId: string | null; |
| | 2610 | readonly threadId: string; |
| | 2611 | }; |
| | 2612 | export const ServerNotification__ThreadProjectUpdatedNotification = Schema.Struct({ |
| | 2613 | projectId: Schema.Union([Schema.String, Schema.Null]), |
| | 2614 | threadId: Schema.String, |
| | 2615 | }).annotate({ identifier: "ServerNotification__ThreadProjectUpdatedNotification" }); |
| | 2616 | |
| 2266 | export type ServerNotification__EnvironmentConnectionNotification = { | 2617 | export type ServerNotification__EnvironmentConnectionNotification = { |
| 2267 | readonly environmentId: string; | 2618 | readonly environmentId: string; |
| 2268 | readonly threadId: string; | 2619 | readonly threadId: string; |
| ... | @@ -2343,7 +2694,10 @@ export const ServerNotification__Personality = Schema.Literals([ | ... | @@ -2343,7 +2694,10 @@ export const ServerNotification__Personality = Schema.Literals([ |
| 2343 | "none", | 2694 | "none", |
| 2344 | "friendly", | 2695 | "friendly", |
| 2345 | "pragmatic", | 2696 | "pragmatic", |
| 2346 | ]).annotate({ identifier: "ServerNotification__Personality" }); | 2697 | ]).annotate({ |
| | 2698 | description: "Deprecated: `friendly` and `pragmatic` no longer select a style.", |
| | 2699 | identifier: "ServerNotification__Personality", |
| | 2700 | }); |
| 2347 | | 2701 | |
| 2348 | export type ServerNotification__NetworkAccess = "restricted" | "enabled"; | 2702 | export type ServerNotification__NetworkAccess = "restricted" | "enabled"; |
| 2349 | export const ServerNotification__NetworkAccess = Schema.Literals([ | 2703 | export const ServerNotification__NetworkAccess = Schema.Literals([ |
| ... | @@ -2420,7 +2774,8 @@ export type ServerNotification__HookEventName = | ... | @@ -2420,7 +2774,8 @@ export type ServerNotification__HookEventName = |
| 2420 | | "userPromptSubmit" | 2774 | | "userPromptSubmit" |
| 2421 | | "subagentStart" | 2775 | | "subagentStart" |
| 2422 | | "subagentStop" | 2776 | | "subagentStop" |
| 2423 | | "stop"; | 2777 | | "stop" |
| | 2778 | | "interrupt"; |
| 2424 | export const ServerNotification__HookEventName = Schema.Literals([ | 2779 | export const ServerNotification__HookEventName = Schema.Literals([ |
| 2425 | "preToolUse", | 2780 | "preToolUse", |
| 2426 | "permissionRequest", | 2781 | "permissionRequest", |
| ... | @@ -2433,6 +2788,7 @@ export const ServerNotification__HookEventName = Schema.Literals([ | ... | @@ -2433,6 +2788,7 @@ export const ServerNotification__HookEventName = Schema.Literals([ |
| 2433 | "subagentStart", | 2788 | "subagentStart", |
| 2434 | "subagentStop", | 2789 | "subagentStop", |
| 2435 | "stop", | 2790 | "stop", |
| | 2791 | "interrupt", |
| 2436 | ]).annotate({ identifier: "ServerNotification__HookEventName" }); | 2792 | ]).annotate({ identifier: "ServerNotification__HookEventName" }); |
| 2437 | | 2793 | |
| 2438 | export type ServerNotification__HookExecutionMode = "sync" | "async"; | 2794 | export type ServerNotification__HookExecutionMode = "sync" | "async"; |
| ... | @@ -2440,9 +2796,10 @@ export const ServerNotification__HookExecutionMode = Schema.Literals(["sync", "a | ... | @@ -2440,9 +2796,10 @@ export const ServerNotification__HookExecutionMode = Schema.Literals(["sync", "a |
| 2440 | identifier: "ServerNotification__HookExecutionMode", | 2796 | identifier: "ServerNotification__HookExecutionMode", |
| 2441 | }); | 2797 | }); |
| 2442 | | 2798 | |
| 2443 | export type ServerNotification__HookHandlerType = "command" | "prompt" | "agent"; | 2799 | export type ServerNotification__HookHandlerType = "command" | "mcpTool" | "prompt" | "agent"; |
| 2444 | export const ServerNotification__HookHandlerType = Schema.Literals([ | 2800 | export const ServerNotification__HookHandlerType = Schema.Literals([ |
| 2445 | "command", | 2801 | "command", |
| | 2802 | "mcpTool", |
| 2446 | "prompt", | 2803 | "prompt", |
| 2447 | "agent", | 2804 | "agent", |
| 2448 | ]).annotate({ identifier: "ServerNotification__HookHandlerType" }); | 2805 | ]).annotate({ identifier: "ServerNotification__HookHandlerType" }); |
| ... | @@ -2591,6 +2948,20 @@ export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agen | ... | @@ -2591,6 +2948,20 @@ export const ServerNotification__AutoReviewDecisionSource = Schema.Literal("agen |
| 2591 | identifier: "ServerNotification__AutoReviewDecisionSource", | 2948 | identifier: "ServerNotification__AutoReviewDecisionSource", |
| 2592 | }); | 2949 | }); |
| 2593 | | 2950 | |
| | 2951 | export type ServerNotification__StrictReviewRequiredNotification = { |
| | 2952 | readonly startedAtMs: number; |
| | 2953 | readonly threadId: string; |
| | 2954 | readonly turnId: string; |
| | 2955 | }; |
| | 2956 | export const ServerNotification__StrictReviewRequiredNotification = Schema.Struct({ |
| | 2957 | startedAtMs: Schema.Number.annotate({ |
| | 2958 | description: "Unix timestamp (in milliseconds) when this review started.", |
| | 2959 | format: "int64", |
| | 2960 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 2961 | threadId: Schema.String, |
| | 2962 | turnId: Schema.String, |
| | 2963 | }).annotate({ identifier: "ServerNotification__StrictReviewRequiredNotification" }); |
| | 2964 | |
| 2594 | export type ServerNotification__AgentMessageDeltaNotification = { | 2965 | export type ServerNotification__AgentMessageDeltaNotification = { |
| 2595 | readonly delta: string; | 2966 | readonly delta: string; |
| 2596 | readonly itemId: string; | 2967 | readonly itemId: string; |
| ... | @@ -2781,6 +3152,15 @@ export const ServerNotification__McpServerStartupState = Schema.Literals([ | ... | @@ -2781,6 +3152,15 @@ export const ServerNotification__McpServerStartupState = Schema.Literals([ |
| 2781 | "cancelled", | 3152 | "cancelled", |
| 2782 | ]).annotate({ identifier: "ServerNotification__McpServerStartupState" }); | 3153 | ]).annotate({ identifier: "ServerNotification__McpServerStartupState" }); |
| 2783 | | 3154 | |
| | 3155 | export type ServerNotification__McpServerEventNotification = { |
| | 3156 | readonly method: string; |
| | 3157 | readonly params: Schema.Json; |
| | 3158 | }; |
| | 3159 | export const ServerNotification__McpServerEventNotification = Schema.Struct({ |
| | 3160 | method: Schema.String, |
| | 3161 | params: Schema.Json.annotate({ expected: "JSON value" }), |
| | 3162 | }).annotate({ identifier: "ServerNotification__McpServerEventNotification" }); |
| | 3163 | |
| 2784 | export type ServerNotification__AuthMode = | 3164 | export type ServerNotification__AuthMode = |
| 2785 | | "apikey" | 3165 | | "apikey" |
| 2786 | | "chatgpt" | 3166 | | "chatgpt" |
| ... | @@ -2788,7 +3168,8 @@ export type ServerNotification__AuthMode = | ... | @@ -2788,7 +3168,8 @@ export type ServerNotification__AuthMode = |
| 2788 | | "headers" | 3168 | | "headers" |
| 2789 | | "agentIdentity" | 3169 | | "agentIdentity" |
| 2790 | | "personalAccessToken" | 3170 | | "personalAccessToken" |
| 2791 | | "bedrockApiKey"; | 3171 | | "bedrockApiKey" |
| | 3172 | | "bedrockAccessKeys"; |
| 2792 | export const ServerNotification__AuthMode = Schema.Union( | 3173 | export const ServerNotification__AuthMode = Schema.Union( |
| 2793 | [ | 3174 | [ |
| 2794 | Schema.Literal("apikey").annotate({ | 3175 | Schema.Literal("apikey").annotate({ |
| ... | @@ -2813,6 +3194,9 @@ export const ServerNotification__AuthMode = Schema.Union( | ... | @@ -2813,6 +3194,9 @@ export const ServerNotification__AuthMode = Schema.Union( |
| 2813 | Schema.Literal("bedrockApiKey").annotate({ | 3194 | Schema.Literal("bedrockApiKey").annotate({ |
| 2814 | description: "Amazon Bedrock bearer token managed by Codex.", | 3195 | description: "Amazon Bedrock bearer token managed by Codex.", |
| 2815 | }), | 3196 | }), |
| | 3197 | Schema.Literal("bedrockAccessKeys").annotate({ |
| | 3198 | description: "Amazon Bedrock AWS access keys managed by Codex.", |
| | 3199 | }), |
| 2816 | ], | 3200 | ], |
| 2817 | { mode: "oneOf" }, | 3201 | { mode: "oneOf" }, |
| 2818 | ).annotate({ | 3202 | ).annotate({ |
| ... | @@ -3070,6 +3454,19 @@ export const ServerNotification__ModelVerification = Schema.Literal( | ... | @@ -3070,6 +3454,19 @@ export const ServerNotification__ModelVerification = Schema.Literal( |
| 3070 | "trustedAccessForCyber", | 3454 | "trustedAccessForCyber", |
| 3071 | ).annotate({ identifier: "ServerNotification__ModelVerification" }); | 3455 | ).annotate({ identifier: "ServerNotification__ModelVerification" }); |
| 3072 | | 3456 | |
| | 3457 | export type ServerNotification__AuthRecoveryNotification = { |
| | 3458 | readonly message: string; |
| | 3459 | readonly provider: string; |
| | 3460 | readonly threadId: string; |
| | 3461 | readonly turnId: string; |
| | 3462 | }; |
| | 3463 | export const ServerNotification__AuthRecoveryNotification = Schema.Struct({ |
| | 3464 | message: Schema.String, |
| | 3465 | provider: Schema.String, |
| | 3466 | threadId: Schema.String, |
| | 3467 | turnId: Schema.String, |
| | 3468 | }).annotate({ identifier: "ServerNotification__AuthRecoveryNotification" }); |
| | 3469 | |
| 3073 | export type ServerNotification__TurnModerationMetadataNotification = { | 3470 | export type ServerNotification__TurnModerationMetadataNotification = { |
| 3074 | readonly metadata: Schema.Json; | 3471 | readonly metadata: Schema.Json; |
| 3075 | readonly threadId: string; | 3472 | readonly threadId: string; |
| ... | @@ -3192,6 +3589,67 @@ export const ServerNotification__ThreadRealtimeItemAddedNotification = Schema.St | ... | @@ -3192,6 +3589,67 @@ export const ServerNotification__ThreadRealtimeItemAddedNotification = Schema.St |
| 3192 | identifier: "ServerNotification__ThreadRealtimeItemAddedNotification", | 3589 | identifier: "ServerNotification__ThreadRealtimeItemAddedNotification", |
| 3193 | }); | 3590 | }); |
| 3194 | | 3591 | |
| | 3592 | export type ServerNotification__ThreadRealtimeTranscriptRole = "user" | "assistant"; |
| | 3593 | export const ServerNotification__ThreadRealtimeTranscriptRole = Schema.Literals([ |
| | 3594 | "user", |
| | 3595 | "assistant", |
| | 3596 | ]).annotate({ identifier: "ServerNotification__ThreadRealtimeTranscriptRole" }); |
| | 3597 | |
| | 3598 | export type ServerNotification__ThreadRealtimeBemItemPresentation = |
| | 3599 | | { readonly type: "wholeItem" } |
| | 3600 | | { readonly type: "inlineMarkdown" } |
| | 3601 | | { readonly index: number; readonly type: "inlineVisualization" }; |
| | 3602 | export const ServerNotification__ThreadRealtimeBemItemPresentation = Schema.Union( |
| | 3603 | [ |
| | 3604 | Schema.Struct({ |
| | 3605 | type: Schema.Literal("wholeItem").annotate({ |
| | 3606 | title: "WholeItemThreadRealtimeBemItemPresentationType", |
| | 3607 | }), |
| | 3608 | }).annotate({ title: "WholeItemThreadRealtimeBemItemPresentation" }), |
| | 3609 | Schema.Struct({ |
| | 3610 | type: Schema.Literal("inlineMarkdown").annotate({ |
| | 3611 | title: "InlineMarkdownThreadRealtimeBemItemPresentationType", |
| | 3612 | }), |
| | 3613 | }).annotate({ title: "InlineMarkdownThreadRealtimeBemItemPresentation" }), |
| | 3614 | Schema.Struct({ |
| | 3615 | index: Schema.Number.annotate({ format: "uint32" }) |
| | 3616 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 3617 | .check( |
| | 3618 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 3619 | expected: "a value greater than or equal to 0", |
| | 3620 | }), |
| | 3621 | ), |
| | 3622 | type: Schema.Literal("inlineVisualization").annotate({ |
| | 3623 | title: "InlineVisualizationThreadRealtimeBemItemPresentationType", |
| | 3624 | }), |
| | 3625 | }).annotate({ title: "InlineVisualizationThreadRealtimeBemItemPresentation" }), |
| | 3626 | ], |
| | 3627 | { mode: "oneOf" }, |
| | 3628 | ).annotate({ |
| | 3629 | description: "EXPERIMENTAL - how an existing agent item appears in a realtime conversation.", |
| | 3630 | identifier: "ServerNotification__ThreadRealtimeBemItemPresentation", |
| | 3631 | }); |
| | 3632 | |
| | 3633 | export type ServerNotification__ThreadRealtimeSessionOutcome = "ended" | "failed"; |
| | 3634 | export const ServerNotification__ThreadRealtimeSessionOutcome = Schema.Literals([ |
| | 3635 | "ended", |
| | 3636 | "failed", |
| | 3637 | ]).annotate({ identifier: "ServerNotification__ThreadRealtimeSessionOutcome" }); |
| | 3638 | |
| | 3639 | export type ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification = { |
| | 3640 | readonly delta: string; |
| | 3641 | readonly itemId: string; |
| | 3642 | readonly threadId: string; |
| | 3643 | }; |
| | 3644 | export const ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification = Schema.Struct({ |
| | 3645 | delta: Schema.String, |
| | 3646 | itemId: Schema.String, |
| | 3647 | threadId: Schema.String, |
| | 3648 | }).annotate({ |
| | 3649 | description: "EXPERIMENTAL - text appended to an active realtime transcript item.", |
| | 3650 | identifier: "ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification", |
| | 3651 | }); |
| | 3652 | |
| 3195 | export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = { | 3653 | export type ServerNotification__ThreadRealtimeTranscriptDeltaNotification = { |
| 3196 | readonly delta: string; | 3654 | readonly delta: string; |
| 3197 | readonly role: string; | 3655 | readonly role: string; |
| ... | @@ -3316,16 +3774,10 @@ export const ServerNotification__WindowsSandboxSetupMode = Schema.Literals([ | ... | @@ -3316,16 +3774,10 @@ export const ServerNotification__WindowsSandboxSetupMode = Schema.Literals([ |
| 3316 | "unelevated", | 3774 | "unelevated", |
| 3317 | ]).annotate({ identifier: "ServerNotification__WindowsSandboxSetupMode" }); | 3775 | ]).annotate({ identifier: "ServerNotification__WindowsSandboxSetupMode" }); |
| 3318 | | 3776 | |
| 3319 | export type ServerNotification__AccountLoginCompletedNotification = { | 3777 | export type ServerNotification__DesktopOnboardingEntrypoint = "life_sciences"; |
| 3320 | readonly error?: string | null; | 3778 | export const ServerNotification__DesktopOnboardingEntrypoint = Schema.Literal( |
| 3321 | readonly loginId?: string | null; | 3779 | "life_sciences", |
| 3322 | readonly success: boolean; | 3780 | ).annotate({ identifier: "ServerNotification__DesktopOnboardingEntrypoint" }); |
| 3323 | }; | | |
| 3324 | export const ServerNotification__AccountLoginCompletedNotification = Schema.Struct({ | | |
| 3325 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 3326 | loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 3327 | success: Schema.Boolean, | | |
| 3328 | }).annotate({ identifier: "ServerNotification__AccountLoginCompletedNotification" }); | | |
| 3329 | | 3781 | |
| 3330 | export type ServerRequest__RequestId = string | number; | 3782 | export type ServerRequest__RequestId = string | number; |
| 3331 | export const ServerRequest__RequestId = Schema.Union([ | 3783 | export const ServerRequest__RequestId = Schema.Union([ |
| ... | @@ -3335,18 +3787,20 @@ export const ServerRequest__RequestId = Schema.Union([ | ... | @@ -3335,18 +3787,20 @@ export const ServerRequest__RequestId = Schema.Union([ |
| 3335 | ), | 3787 | ), |
| 3336 | ]).annotate({ identifier: "ServerRequest__RequestId" }); | 3788 | ]).annotate({ identifier: "ServerRequest__RequestId" }); |
| 3337 | | 3789 | |
| 3338 | export type ServerRequest__AbsolutePathBuf = string; | | |
| 3339 | export const ServerRequest__AbsolutePathBuf = Schema.String.annotate({ | | |
| 3340 | description: | | |
| 3341 | "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.", | | |
| 3342 | identifier: "ServerRequest__AbsolutePathBuf", | | |
| 3343 | }); | | |
| 3344 | | | |
| 3345 | export type ServerRequest__LegacyAppPathString = string; | 3790 | export type ServerRequest__LegacyAppPathString = string; |
| 3346 | export const ServerRequest__LegacyAppPathString = Schema.String.annotate({ | 3791 | export const ServerRequest__LegacyAppPathString = Schema.String.annotate({ |
| 3347 | identifier: "ServerRequest__LegacyAppPathString", | 3792 | identifier: "ServerRequest__LegacyAppPathString", |
| 3348 | }); | 3793 | }); |
| 3349 | | 3794 | |
| | 3795 | export type ServerRequest__CommandExecutionApprovalKind = "command" | "writeStdin"; |
| | 3796 | export const ServerRequest__CommandExecutionApprovalKind = Schema.Literals([ |
| | 3797 | "command", |
| | 3798 | "writeStdin", |
| | 3799 | ]).annotate({ |
| | 3800 | description: "Distinguishes a command approval from input sent to an existing terminal.", |
| | 3801 | identifier: "ServerRequest__CommandExecutionApprovalKind", |
| | 3802 | }); |
| | 3803 | |
| 3350 | export type ServerRequest__NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp"; | 3804 | export type ServerRequest__NetworkApprovalProtocol = "http" | "https" | "socks5Tcp" | "socks5Udp"; |
| 3351 | export const ServerRequest__NetworkApprovalProtocol = Schema.Literals([ | 3805 | export const ServerRequest__NetworkApprovalProtocol = Schema.Literals([ |
| 3352 | "http", | 3806 | "http", |
| ... | @@ -3587,6 +4041,7 @@ export const ToolRequestUserInputResponse__ToolRequestUserInputAnswer = Schema.S | ... | @@ -3587,6 +4041,7 @@ export const ToolRequestUserInputResponse__ToolRequestUserInputAnswer = Schema.S |
| 3587 | | 4041 | |
| 3588 | export type V1InitializeParams__InitializeCapabilities = { | 4042 | export type V1InitializeParams__InitializeCapabilities = { |
| 3589 | readonly experimentalApi?: boolean; | 4043 | readonly experimentalApi?: boolean; |
| | 4044 | readonly extensions?: { readonly [x: string]: Schema.Json } | null; |
| 3590 | readonly mcpServerOpenaiFormElicitation?: boolean; | 4045 | readonly mcpServerOpenaiFormElicitation?: boolean; |
| 3591 | readonly optOutNotificationMethods?: ReadonlyArray<string> | null; | 4046 | readonly optOutNotificationMethods?: ReadonlyArray<string> | null; |
| 3592 | readonly requestAttestation?: boolean; | 4047 | readonly requestAttestation?: boolean; |
| ... | @@ -3598,9 +4053,18 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({ | ... | @@ -3598,9 +4053,18 @@ export const V1InitializeParams__InitializeCapabilities = Schema.Struct({ |
| 3598 | default: false, | 4053 | default: false, |
| 3599 | }), | 4054 | }), |
| 3600 | ), | 4055 | ), |
| | 4056 | extensions: Schema.optionalKey( |
| | 4057 | Schema.Union([ |
| | 4058 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 4059 | description: "MCP extension settings declared by the app-server client.", |
| | 4060 | }), |
| | 4061 | Schema.Null, |
| | 4062 | ]), |
| | 4063 | ), |
| 3601 | mcpServerOpenaiFormElicitation: Schema.optionalKey( | 4064 | mcpServerOpenaiFormElicitation: Schema.optionalKey( |
| 3602 | Schema.Boolean.annotate({ | 4065 | Schema.Boolean.annotate({ |
| 3603 | description: "Allow downstream MCP servers to request OpenAI extended form elicitations.", | 4066 | description: |
| | 4067 | "Legacy opt-in for the `openai/form` MCP extension.\n\nNew clients should declare `openai/form` in [`Self::extensions`].", |
| 3604 | }), | 4068 | }), |
| 3605 | ), | 4069 | ), |
| 3606 | optOutNotificationMethods: Schema.optionalKey( | 4070 | optOutNotificationMethods: Schema.optionalKey( |
| ... | @@ -3641,6 +4105,11 @@ export const V1InitializeResponse__AbsolutePathBuf = Schema.String.annotate({ | ... | @@ -3641,6 +4105,11 @@ export const V1InitializeResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 3641 | identifier: "V1InitializeResponse__AbsolutePathBuf", | 4105 | identifier: "V1InitializeResponse__AbsolutePathBuf", |
| 3642 | }); | 4106 | }); |
| 3643 | | 4107 | |
| | 4108 | export type V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint = "life_sciences"; |
| | 4109 | export const V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint = Schema.Literal( |
| | 4110 | "life_sciences", |
| | 4111 | ).annotate({ identifier: "V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint" }); |
| | 4112 | |
| 3644 | export type V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = { | 4113 | export type V2AccountRateLimitsUpdatedNotification__CreditsSnapshot = { |
| 3645 | readonly balance?: string | null; | 4114 | readonly balance?: string | null; |
| 3646 | readonly hasCredits: boolean; | 4115 | readonly hasCredits: boolean; |
| ... | @@ -3755,7 +4224,8 @@ export type V2AccountUpdatedNotification__AuthMode = | ... | @@ -3755,7 +4224,8 @@ export type V2AccountUpdatedNotification__AuthMode = |
| 3755 | | "headers" | 4224 | | "headers" |
| 3756 | | "agentIdentity" | 4225 | | "agentIdentity" |
| 3757 | | "personalAccessToken" | 4226 | | "personalAccessToken" |
| 3758 | | "bedrockApiKey"; | 4227 | | "bedrockApiKey" |
| | 4228 | | "bedrockAccessKeys"; |
| 3759 | export const V2AccountUpdatedNotification__AuthMode = Schema.Union( | 4229 | export const V2AccountUpdatedNotification__AuthMode = Schema.Union( |
| 3760 | [ | 4230 | [ |
| 3761 | Schema.Literal("apikey").annotate({ | 4231 | Schema.Literal("apikey").annotate({ |
| ... | @@ -3780,6 +4250,9 @@ export const V2AccountUpdatedNotification__AuthMode = Schema.Union( | ... | @@ -3780,6 +4250,9 @@ export const V2AccountUpdatedNotification__AuthMode = Schema.Union( |
| 3780 | Schema.Literal("bedrockApiKey").annotate({ | 4250 | Schema.Literal("bedrockApiKey").annotate({ |
| 3781 | description: "Amazon Bedrock bearer token managed by Codex.", | 4251 | description: "Amazon Bedrock bearer token managed by Codex.", |
| 3782 | }), | 4252 | }), |
| | 4253 | Schema.Literal("bedrockAccessKeys").annotate({ |
| | 4254 | description: "Amazon Bedrock AWS access keys managed by Codex.", |
| | 4255 | }), |
| 3783 | ], | 4256 | ], |
| 3784 | { mode: "oneOf" }, | 4257 | { mode: "oneOf" }, |
| 3785 | ).annotate({ | 4258 | ).annotate({ |
| ... | @@ -3929,11 +4402,17 @@ export const V2AppsListResponse__AppBranding = Schema.Struct({ | ... | @@ -3929,11 +4402,17 @@ export const V2AppsListResponse__AppBranding = Schema.Struct({ |
| 3929 | | 4402 | |
| 3930 | export type V2AppsReadResponse__AppToolSummary = { | 4403 | export type V2AppsReadResponse__AppToolSummary = { |
| 3931 | readonly description: string; | 4404 | readonly description: string; |
| | 4405 | readonly disabledReason?: string | null; |
| | 4406 | readonly isEnabled?: boolean; |
| | 4407 | readonly isReadOnly?: boolean; |
| 3932 | readonly name: string; | 4408 | readonly name: string; |
| 3933 | readonly title?: string | null; | 4409 | readonly title?: string | null; |
| 3934 | }; | 4410 | }; |
| 3935 | export const V2AppsReadResponse__AppToolSummary = Schema.Struct({ | 4411 | export const V2AppsReadResponse__AppToolSummary = Schema.Struct({ |
| 3936 | description: Schema.String, | 4412 | description: Schema.String, |
| | 4413 | disabledReason: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 4414 | isEnabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| | 4415 | isReadOnly: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| 3937 | name: Schema.String, | 4416 | name: Schema.String, |
| 3938 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4417 | title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 3939 | }).annotate({ | 4418 | }).annotate({ |
| ... | @@ -4080,6 +4559,12 @@ export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([ | ... | @@ -4080,6 +4559,12 @@ export const V2ConfigReadResponse__ApprovalsReviewer = Schema.Literals([ |
| 4080 | identifier: "V2ConfigReadResponse__ApprovalsReviewer", | 4559 | identifier: "V2ConfigReadResponse__ApprovalsReviewer", |
| 4081 | }); | 4560 | }); |
| 4082 | | 4561 | |
| | 4562 | export type V2ConfigReadResponse__AllowDenyRequirement = "allow" | "deny"; |
| | 4563 | export const V2ConfigReadResponse__AllowDenyRequirement = Schema.Literals([ |
| | 4564 | "allow", |
| | 4565 | "deny", |
| | 4566 | ]).annotate({ identifier: "V2ConfigReadResponse__AllowDenyRequirement" }); |
| | 4567 | |
| 4083 | export type V2ConfigReadResponse__ForcedChatgptWorkspaceIds = string | ReadonlyArray<string>; | 4568 | export type V2ConfigReadResponse__ForcedChatgptWorkspaceIds = string | ReadonlyArray<string>; |
| 4084 | export const V2ConfigReadResponse__ForcedChatgptWorkspaceIds = Schema.Union([ | 4569 | export const V2ConfigReadResponse__ForcedChatgptWorkspaceIds = Schema.Union([ |
| 4085 | Schema.String, | 4570 | Schema.String, |
| ... | @@ -4207,6 +4692,34 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([ | ... | @@ -4207,6 +4692,34 @@ export const V2ConfigReadResponse__AppToolApproval = Schema.Literals([ |
| 4207 | "approve", | 4692 | "approve", |
| 4208 | ]).annotate({ identifier: "V2ConfigReadResponse__AppToolApproval" }); | 4693 | ]).annotate({ identifier: "V2ConfigReadResponse__AppToolApproval" }); |
| 4209 | | 4694 | |
| | 4695 | export type V2ConfigReadResponse__AppLinksConfig = { readonly [x: string]: Schema.Json }; |
| | 4696 | export const V2ConfigReadResponse__AppLinksConfig = Schema.Record( |
| | 4697 | Schema.String, |
| | 4698 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 4699 | ).annotate({ |
| | 4700 | description: "Account settings for a single app.", |
| | 4701 | identifier: "V2ConfigReadResponse__AppLinksConfig", |
| | 4702 | }); |
| | 4703 | |
| | 4704 | export type V2ConfigReadResponse__ToolExposureSurface = "code_mode" | "deferred" | "direct"; |
| | 4705 | export const V2ConfigReadResponse__ToolExposureSurface = Schema.Union( |
| | 4706 | [ |
| | 4707 | Schema.Literal("code_mode").annotate({ |
| | 4708 | description: "Nested tools available to Code Mode scripts.", |
| | 4709 | }), |
| | 4710 | Schema.Literal("deferred").annotate({ |
| | 4711 | description: "Tools discovered later through tool search.", |
| | 4712 | }), |
| | 4713 | Schema.Literal("direct").annotate({ |
| | 4714 | description: "Tools present in the model's initial tool list.", |
| | 4715 | }), |
| | 4716 | ], |
| | 4717 | { mode: "oneOf" }, |
| | 4718 | ).annotate({ |
| | 4719 | description: "A model-facing surface on which a tool can be exposed.", |
| | 4720 | identifier: "V2ConfigReadResponse__ToolExposureSurface", |
| | 4721 | }); |
| | 4722 | |
| 4210 | export type V2ConfigReadResponse__AppToolsConfig = { readonly [x: string]: Schema.Json }; | 4723 | export type V2ConfigReadResponse__AppToolsConfig = { readonly [x: string]: Schema.Json }; |
| 4211 | export const V2ConfigReadResponse__AppToolsConfig = Schema.Record( | 4724 | export const V2ConfigReadResponse__AppToolsConfig = Schema.Record( |
| 4212 | Schema.String, | 4725 | Schema.String, |
| ... | @@ -4242,6 +4755,12 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union( | ... | @@ -4242,6 +4755,12 @@ export const V2ConfigRequirementsReadResponse__AskForApproval = Schema.Union( |
| 4242 | { mode: "oneOf" }, | 4755 | { mode: "oneOf" }, |
| 4243 | ).annotate({ identifier: "V2ConfigRequirementsReadResponse__AskForApproval" }); | 4756 | ).annotate({ identifier: "V2ConfigRequirementsReadResponse__AskForApproval" }); |
| 4244 | | 4757 | |
| | 4758 | export type V2ConfigRequirementsReadResponse__ForcedLoginMethod = "chatgpt" | "api"; |
| | 4759 | export const V2ConfigRequirementsReadResponse__ForcedLoginMethod = Schema.Literals([ |
| | 4760 | "chatgpt", |
| | 4761 | "api", |
| | 4762 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__ForcedLoginMethod" }); |
| | 4763 | |
| 4245 | export type V2ConfigRequirementsReadResponse__SandboxMode = | 4764 | export type V2ConfigRequirementsReadResponse__SandboxMode = |
| 4246 | | "read-only" | 4765 | | "read-only" |
| 4247 | | "workspace-write" | 4766 | | "workspace-write" |
| ... | @@ -4264,24 +4783,70 @@ export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([ | ... | @@ -4264,24 +4783,70 @@ export const V2ConfigRequirementsReadResponse__WebSearchMode = Schema.Literals([ |
| 4264 | "live", | 4783 | "live", |
| 4265 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WebSearchMode" }); | 4784 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WebSearchMode" }); |
| 4266 | | 4785 | |
| 4267 | export type V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = "elevated" | "unelevated"; | 4786 | export type V2ConfigRequirementsReadResponse__WindowsSandboxImplementation = |
| 4268 | export const V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode = Schema.Literals([ | 4787 | | "elevated" |
| | 4788 | | "unelevated" |
| | 4789 | | "mxc"; |
| | 4790 | export const V2ConfigRequirementsReadResponse__WindowsSandboxImplementation = Schema.Literals([ |
| 4269 | "elevated", | 4791 | "elevated", |
| 4270 | "unelevated", | 4792 | "unelevated", |
| 4271 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode" }); | 4793 | "mxc", |
| | 4794 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__WindowsSandboxImplementation" }); |
| 4272 | | 4795 | |
| 4273 | export type V2ConfigRequirementsReadResponse__ComputerUseRequirements = { | 4796 | export type V2ConfigRequirementsReadResponse__AutoReviewRequirements = { |
| 4274 | readonly allowLockedComputerUse?: boolean | null; | 4797 | readonly ignoreRules?: ReadonlyArray<string> | null; |
| | 4798 | readonly requiredOnModels?: ReadonlyArray<string> | null; |
| 4275 | }; | 4799 | }; |
| 4276 | export const V2ConfigRequirementsReadResponse__ComputerUseRequirements = Schema.Struct({ | 4800 | export const V2ConfigRequirementsReadResponse__AutoReviewRequirements = Schema.Struct({ |
| 4277 | allowLockedComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 4801 | ignoreRules: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 4278 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseRequirements" }); | 4802 | requiredOnModels: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 4803 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__AutoReviewRequirements" }); |
| | 4804 | |
| | 4805 | export type V2ConfigRequirementsReadResponse__AllowDenyRequirement = "allow" | "deny"; |
| | 4806 | export const V2ConfigRequirementsReadResponse__AllowDenyRequirement = Schema.Literals([ |
| | 4807 | "allow", |
| | 4808 | "deny", |
| | 4809 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__AllowDenyRequirement" }); |
| | 4810 | |
| | 4811 | export type V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime = "turn" | "thread"; |
| | 4812 | export const V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime = Schema.Literals([ |
| | 4813 | "turn", |
| | 4814 | "thread", |
| | 4815 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime" }); |
| | 4816 | |
| | 4817 | export type V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode = |
| | 4818 | | "file" |
| | 4819 | | "keyring" |
| | 4820 | | "auto" |
| | 4821 | | "ephemeral"; |
| | 4822 | export const V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode = Schema.Literals([ |
| | 4823 | "file", |
| | 4824 | "keyring", |
| | 4825 | "auto", |
| | 4826 | "ephemeral", |
| | 4827 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode" }); |
| 4279 | | 4828 | |
| 4280 | export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us"; | 4829 | export type V2ConfigRequirementsReadResponse__ResidencyRequirement = "us"; |
| 4281 | export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us").annotate( | 4830 | export const V2ConfigRequirementsReadResponse__ResidencyRequirement = Schema.Literal("us").annotate( |
| 4282 | { identifier: "V2ConfigRequirementsReadResponse__ResidencyRequirement" }, | 4831 | { identifier: "V2ConfigRequirementsReadResponse__ResidencyRequirement" }, |
| 4283 | ); | 4832 | ); |
| 4284 | | 4833 | |
| | 4834 | export type V2ConfigRequirementsReadResponse__FeedbackRequirements = { |
| | 4835 | readonly enabled?: boolean | null; |
| | 4836 | }; |
| | 4837 | export const V2ConfigRequirementsReadResponse__FeedbackRequirements = Schema.Struct({ |
| | 4838 | enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 4839 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__FeedbackRequirements" }); |
| | 4840 | |
| | 4841 | export type V2ConfigRequirementsReadResponse__InAppBrowserRequirements = { |
| | 4842 | readonly allowExternalBrowserSettingsImport?: boolean | null; |
| | 4843 | }; |
| | 4844 | export const V2ConfigRequirementsReadResponse__InAppBrowserRequirements = Schema.Struct({ |
| | 4845 | allowExternalBrowserSettingsImport: Schema.optionalKey( |
| | 4846 | Schema.Union([Schema.Boolean, Schema.Null]), |
| | 4847 | ), |
| | 4848 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__InAppBrowserRequirements" }); |
| | 4849 | |
| 4285 | export type V2ConfigRequirementsReadResponse__ReasoningEffort = string; | 4850 | export type V2ConfigRequirementsReadResponse__ReasoningEffort = string; |
| 4286 | export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.annotate({ | 4851 | export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.annotate({ |
| 4287 | description: "A non-empty reasoning effort value advertised by the model.", | 4852 | description: "A non-empty reasoning effort value advertised by the model.", |
| ... | @@ -4292,8 +4857,15 @@ export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.a | ... | @@ -4292,8 +4857,15 @@ export const V2ConfigRequirementsReadResponse__ReasoningEffort = Schema.String.a |
| 4292 | }), | 4857 | }), |
| 4293 | ); | 4858 | ); |
| 4294 | | 4859 | |
| | 4860 | export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny"; |
| | 4861 | export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([ |
| | 4862 | "allow", |
| | 4863 | "deny", |
| | 4864 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__NetworkDomainPermission" }); |
| | 4865 | |
| 4295 | export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler = | 4866 | export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler = |
| 4296 | | { | 4867 | | { |
| | 4868 | readonly additionalContextLimit?: number | null; |
| 4297 | readonly async: boolean; | 4869 | readonly async: boolean; |
| 4298 | readonly command: string; | 4870 | readonly command: string; |
| 4299 | readonly commandWindows?: string | null; | 4871 | readonly commandWindows?: string | null; |
| ... | @@ -4301,11 +4873,35 @@ export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler = | ... | @@ -4301,11 +4873,35 @@ export type V2ConfigRequirementsReadResponse__ConfiguredHookHandler = |
| 4301 | readonly timeoutSec?: number | null; | 4873 | readonly timeoutSec?: number | null; |
| 4302 | readonly type: "command"; | 4874 | readonly type: "command"; |
| 4303 | } | 4875 | } |
| | 4876 | | { |
| | 4877 | readonly input: { readonly [x: string]: Schema.Json }; |
| | 4878 | readonly server: string; |
| | 4879 | readonly statusMessage?: string | null; |
| | 4880 | readonly timeoutSec?: number | null; |
| | 4881 | readonly tool: string; |
| | 4882 | readonly type: "mcp_tool"; |
| | 4883 | } |
| 4304 | | { readonly type: "prompt" } | 4884 | | { readonly type: "prompt" } |
| 4305 | | { readonly type: "agent" }; | 4885 | | { readonly type: "agent" }; |
| 4306 | export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Union( | 4886 | export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Union( |
| 4307 | [ | 4887 | [ |
| 4308 | Schema.Struct({ | 4888 | Schema.Struct({ |
| | 4889 | additionalContextLimit: Schema.optionalKey( |
| | 4890 | Schema.Union([ |
| | 4891 | Schema.Number.annotate({ |
| | 4892 | description: |
| | 4893 | "Approximate token threshold for spilling this hook's `additionalContext` to disk. `null` uses 2,500 tokens; `0` disables spilling for this hook. The threshold is evaluated against the original context; a spilled preview also includes recovery metadata.", |
| | 4894 | format: "uint", |
| | 4895 | }) |
| | 4896 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 4897 | .check( |
| | 4898 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 4899 | expected: "a value greater than or equal to 0", |
| | 4900 | }), |
| | 4901 | ), |
| | 4902 | Schema.Null, |
| | 4903 | ]), |
| | 4904 | ), |
| 4309 | async: Schema.Boolean, | 4905 | async: Schema.Boolean, |
| 4310 | command: Schema.String, | 4906 | command: Schema.String, |
| 4311 | commandWindows: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 4907 | commandWindows: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -4324,6 +4920,25 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un | ... | @@ -4324,6 +4920,25 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un |
| 4324 | ), | 4920 | ), |
| 4325 | type: Schema.Literal("command").annotate({ title: "CommandConfiguredHookHandlerType" }), | 4921 | type: Schema.Literal("command").annotate({ title: "CommandConfiguredHookHandlerType" }), |
| 4326 | }).annotate({ title: "CommandConfiguredHookHandler" }), | 4922 | }).annotate({ title: "CommandConfiguredHookHandler" }), |
| | 4923 | Schema.Struct({ |
| | 4924 | input: Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 4925 | server: Schema.String, |
| | 4926 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 4927 | timeoutSec: Schema.optionalKey( |
| | 4928 | Schema.Union([ |
| | 4929 | Schema.Number.annotate({ format: "uint64" }) |
| | 4930 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 4931 | .check( |
| | 4932 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 4933 | expected: "a value greater than or equal to 0", |
| | 4934 | }), |
| | 4935 | ), |
| | 4936 | Schema.Null, |
| | 4937 | ]), |
| | 4938 | ), |
| | 4939 | tool: Schema.String, |
| | 4940 | type: Schema.Literal("mcp_tool").annotate({ title: "McpToolConfiguredHookHandlerType" }), |
| | 4941 | }).annotate({ title: "McpToolConfiguredHookHandler" }), |
| 4327 | Schema.Struct({ | 4942 | Schema.Struct({ |
| 4328 | type: Schema.Literal("prompt").annotate({ title: "PromptConfiguredHookHandlerType" }), | 4943 | type: Schema.Literal("prompt").annotate({ title: "PromptConfiguredHookHandlerType" }), |
| 4329 | }).annotate({ title: "PromptConfiguredHookHandler" }), | 4944 | }).annotate({ title: "PromptConfiguredHookHandler" }), |
| ... | @@ -4334,12 +4949,6 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un | ... | @@ -4334,12 +4949,6 @@ export const V2ConfigRequirementsReadResponse__ConfiguredHookHandler = Schema.Un |
| 4334 | { mode: "oneOf" }, | 4949 | { mode: "oneOf" }, |
| 4335 | ).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfiguredHookHandler" }); | 4950 | ).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfiguredHookHandler" }); |
| 4336 | | 4951 | |
| 4337 | export type V2ConfigRequirementsReadResponse__NetworkDomainPermission = "allow" | "deny"; | | |
| 4338 | export const V2ConfigRequirementsReadResponse__NetworkDomainPermission = Schema.Literals([ | | |
| 4339 | "allow", | | |
| 4340 | "deny", | | |
| 4341 | ]).annotate({ identifier: "V2ConfigRequirementsReadResponse__NetworkDomainPermission" }); | | |
| 4342 | | | |
| 4343 | export type V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = "allow" | "deny"; | 4952 | export type V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = "allow" | "deny"; |
| 4344 | export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Schema.Literals([ | 4953 | export const V2ConfigRequirementsReadResponse__NetworkUnixSocketPermission = Schema.Literals([ |
| 4345 | "allow", | 4954 | "allow", |
| ... | @@ -4417,6 +5026,11 @@ export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -4417,6 +5026,11 @@ export const V2ErrorNotification__NonSteerableTurnKind = Schema.Literals([ |
| 4417 | "compact", | 5026 | "compact", |
| 4418 | ]).annotate({ identifier: "V2ErrorNotification__NonSteerableTurnKind" }); | 5027 | ]).annotate({ identifier: "V2ErrorNotification__NonSteerableTurnKind" }); |
| 4419 | | 5028 | |
| | 5029 | export type V2ErrorNotification__MisalignmentSteer = { readonly message: string }; |
| | 5030 | export const V2ErrorNotification__MisalignmentSteer = Schema.Struct({ |
| | 5031 | message: Schema.String, |
| | 5032 | }).annotate({ identifier: "V2ErrorNotification__MisalignmentSteer" }); |
| | 5033 | |
| 4420 | export type V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = | 5034 | export type V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = |
| 4421 | | "beta" | 5035 | | "beta" |
| 4422 | | "underDevelopment" | 5036 | | "underDevelopment" |
| ... | @@ -4442,6 +5056,14 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schem | ... | @@ -4442,6 +5056,14 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeatureStage = Schem |
| 4442 | { mode: "oneOf" }, | 5056 | { mode: "oneOf" }, |
| 4443 | ).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeatureStage" }); | 5057 | ).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeatureStage" }); |
| 4444 | | 5058 | |
| | 5059 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource = |
| | 5060 | | "remoteMcpServersConfig" |
| | 5061 | | "sessionToolUse"; |
| | 5062 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource = |
| | 5063 | Schema.Literals(["remoteMcpServersConfig", "sessionToolUse"]).annotate({ |
| | 5064 | identifier: "V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource", |
| | 5065 | }); |
| | 5066 | |
| 4445 | export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string }; | 5067 | export type V2ExternalAgentConfigDetectResponse__CommandMigration = { readonly name: string }; |
| 4446 | export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({ | 5068 | export const V2ExternalAgentConfigDetectResponse__CommandMigration = Schema.Struct({ |
| 4447 | name: Schema.String, | 5069 | name: Schema.String, |
| ... | @@ -4578,6 +5200,34 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -4578,6 +5200,34 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 4578 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType", | 5200 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType", |
| 4579 | }); | 5201 | }); |
| 4580 | | 5202 | |
| | 5203 | export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType = |
| | 5204 | | "AGENTS_MD" |
| | 5205 | | "CONFIG" |
| | 5206 | | "SKILLS" |
| | 5207 | | "PLUGINS" |
| | 5208 | | "MCP_SERVER_CONFIG" |
| | 5209 | | "SUBAGENTS" |
| | 5210 | | "HOOKS" |
| | 5211 | | "COMMANDS" |
| | 5212 | | "MEMORY" |
| | 5213 | | "SESSIONS"; |
| | 5214 | export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType = |
| | 5215 | Schema.Literals([ |
| | 5216 | "AGENTS_MD", |
| | 5217 | "CONFIG", |
| | 5218 | "SKILLS", |
| | 5219 | "PLUGINS", |
| | 5220 | "MCP_SERVER_CONFIG", |
| | 5221 | "SUBAGENTS", |
| | 5222 | "HOOKS", |
| | 5223 | "COMMANDS", |
| | 5224 | "MEMORY", |
| | 5225 | "SESSIONS", |
| | 5226 | ]).annotate({ |
| | 5227 | identifier: |
| | 5228 | "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType", |
| | 5229 | }); |
| | 5230 | |
| 4581 | export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string }; | 5231 | export type V2ExternalAgentConfigImportParams__CommandMigration = { readonly name: string }; |
| 4582 | export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({ | 5232 | export const V2ExternalAgentConfigImportParams__CommandMigration = Schema.Struct({ |
| 4583 | name: Schema.String, | 5233 | name: Schema.String, |
| ... | @@ -4951,6 +5601,16 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ | ... | @@ -4951,6 +5601,16 @@ export const V2GetAccountResponse__PlanType = Schema.Literals([ |
| 4951 | "unknown", | 5601 | "unknown", |
| 4952 | ]).annotate({ identifier: "V2GetAccountResponse__PlanType" }); | 5602 | ]).annotate({ identifier: "V2GetAccountResponse__PlanType" }); |
| 4953 | | 5603 | |
| | 5604 | export type V2GetAccountResponse__AccountRoutingOverride = "NO_CONSTRAINT" | "us" | "us_cr"; |
| | 5605 | export const V2GetAccountResponse__AccountRoutingOverride = Schema.Literals([ |
| | 5606 | "NO_CONSTRAINT", |
| | 5607 | "us", |
| | 5608 | "us_cr", |
| | 5609 | ]).annotate({ |
| | 5610 | description: "Backend routing policy. Wire values match the accounts/check contract.", |
| | 5611 | identifier: "V2GetAccountResponse__AccountRoutingOverride", |
| | 5612 | }); |
| | 5613 | |
| 4954 | export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = { | 5614 | export type V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket = { |
| 4955 | readonly startDate: string; | 5615 | readonly startDate: string; |
| 4956 | readonly tokens: number; | 5616 | readonly tokens: number; |
| ... | @@ -5012,6 +5672,66 @@ export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.S | ... | @@ -5012,6 +5672,66 @@ export const V2GetAccountTokenUsageResponse__AccountTokenUsageSummary = Schema.S |
| 5012 | ), | 5672 | ), |
| 5013 | }).annotate({ identifier: "V2GetAccountTokenUsageResponse__AccountTokenUsageSummary" }); | 5673 | }).annotate({ identifier: "V2GetAccountTokenUsageResponse__AccountTokenUsageSummary" }); |
| 5014 | | 5674 | |
| | 5675 | export type V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup = { |
| | 5676 | readonly cachedInputTokens?: number | null; |
| | 5677 | readonly estimatedUsageCreditsMicros: number; |
| | 5678 | readonly inputTokens?: number | null; |
| | 5679 | readonly model?: string | null; |
| | 5680 | readonly netNewInputTokens?: number | null; |
| | 5681 | readonly outputTokens?: number | null; |
| | 5682 | readonly reasoningEffort?: string | null; |
| | 5683 | readonly speed?: string | null; |
| | 5684 | readonly totalTokens?: number | null; |
| | 5685 | }; |
| | 5686 | export const V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup = Schema.Struct({ |
| | 5687 | cachedInputTokens: Schema.optionalKey( |
| | 5688 | Schema.Union([ |
| | 5689 | Schema.Number.annotate({ format: "int64" }).check( |
| | 5690 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5691 | ), |
| | 5692 | Schema.Null, |
| | 5693 | ]), |
| | 5694 | ), |
| | 5695 | estimatedUsageCreditsMicros: Schema.Number.annotate({ format: "int64" }).check( |
| | 5696 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5697 | ), |
| | 5698 | inputTokens: Schema.optionalKey( |
| | 5699 | Schema.Union([ |
| | 5700 | Schema.Number.annotate({ format: "int64" }).check( |
| | 5701 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5702 | ), |
| | 5703 | Schema.Null, |
| | 5704 | ]), |
| | 5705 | ), |
| | 5706 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 5707 | netNewInputTokens: Schema.optionalKey( |
| | 5708 | Schema.Union([ |
| | 5709 | Schema.Number.annotate({ format: "int64" }).check( |
| | 5710 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5711 | ), |
| | 5712 | Schema.Null, |
| | 5713 | ]), |
| | 5714 | ), |
| | 5715 | outputTokens: Schema.optionalKey( |
| | 5716 | Schema.Union([ |
| | 5717 | Schema.Number.annotate({ format: "int64" }).check( |
| | 5718 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5719 | ), |
| | 5720 | Schema.Null, |
| | 5721 | ]), |
| | 5722 | ), |
| | 5723 | reasoningEffort: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 5724 | speed: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 5725 | totalTokens: Schema.optionalKey( |
| | 5726 | Schema.Union([ |
| | 5727 | Schema.Number.annotate({ format: "int64" }).check( |
| | 5728 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 5729 | ), |
| | 5730 | Schema.Null, |
| | 5731 | ]), |
| | 5732 | ), |
| | 5733 | }).annotate({ identifier: "V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup" }); |
| | 5734 | |
| 5015 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessageType = | 5735 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessageType = |
| 5016 | | "headline" | 5736 | | "headline" |
| 5017 | | "announcement" | 5737 | | "announcement" |
| ... | @@ -5047,7 +5767,8 @@ export type V2HookCompletedNotification__HookEventName = | ... | @@ -5047,7 +5767,8 @@ export type V2HookCompletedNotification__HookEventName = |
| 5047 | | "userPromptSubmit" | 5767 | | "userPromptSubmit" |
| 5048 | | "subagentStart" | 5768 | | "subagentStart" |
| 5049 | | "subagentStop" | 5769 | | "subagentStop" |
| 5050 | | "stop"; | 5770 | | "stop" |
| | 5771 | | "interrupt"; |
| 5051 | export const V2HookCompletedNotification__HookEventName = Schema.Literals([ | 5772 | export const V2HookCompletedNotification__HookEventName = Schema.Literals([ |
| 5052 | "preToolUse", | 5773 | "preToolUse", |
| 5053 | "permissionRequest", | 5774 | "permissionRequest", |
| ... | @@ -5060,6 +5781,7 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([ | ... | @@ -5060,6 +5781,7 @@ export const V2HookCompletedNotification__HookEventName = Schema.Literals([ |
| 5060 | "subagentStart", | 5781 | "subagentStart", |
| 5061 | "subagentStop", | 5782 | "subagentStop", |
| 5062 | "stop", | 5783 | "stop", |
| | 5784 | "interrupt", |
| 5063 | ]).annotate({ identifier: "V2HookCompletedNotification__HookEventName" }); | 5785 | ]).annotate({ identifier: "V2HookCompletedNotification__HookEventName" }); |
| 5064 | | 5786 | |
| 5065 | export type V2HookCompletedNotification__HookExecutionMode = "sync" | "async"; | 5787 | export type V2HookCompletedNotification__HookExecutionMode = "sync" | "async"; |
| ... | @@ -5068,9 +5790,14 @@ export const V2HookCompletedNotification__HookExecutionMode = Schema.Literals([ | ... | @@ -5068,9 +5790,14 @@ export const V2HookCompletedNotification__HookExecutionMode = Schema.Literals([ |
| 5068 | "async", | 5790 | "async", |
| 5069 | ]).annotate({ identifier: "V2HookCompletedNotification__HookExecutionMode" }); | 5791 | ]).annotate({ identifier: "V2HookCompletedNotification__HookExecutionMode" }); |
| 5070 | | 5792 | |
| 5071 | export type V2HookCompletedNotification__HookHandlerType = "command" | "prompt" | "agent"; | 5793 | export type V2HookCompletedNotification__HookHandlerType = |
| | 5794 | | "command" |
| | 5795 | | "mcpTool" |
| | 5796 | | "prompt" |
| | 5797 | | "agent"; |
| 5072 | export const V2HookCompletedNotification__HookHandlerType = Schema.Literals([ | 5798 | export const V2HookCompletedNotification__HookHandlerType = Schema.Literals([ |
| 5073 | "command", | 5799 | "command", |
| | 5800 | "mcpTool", |
| 5074 | "prompt", | 5801 | "prompt", |
| 5075 | "agent", | 5802 | "agent", |
| 5076 | ]).annotate({ identifier: "V2HookCompletedNotification__HookHandlerType" }); | 5803 | ]).annotate({ identifier: "V2HookCompletedNotification__HookHandlerType" }); |
| ... | @@ -5147,7 +5874,8 @@ export type V2HooksListResponse__HookEventName = | ... | @@ -5147,7 +5874,8 @@ export type V2HooksListResponse__HookEventName = |
| 5147 | | "userPromptSubmit" | 5874 | | "userPromptSubmit" |
| 5148 | | "subagentStart" | 5875 | | "subagentStart" |
| 5149 | | "subagentStop" | 5876 | | "subagentStop" |
| 5150 | | "stop"; | 5877 | | "stop" |
| | 5878 | | "interrupt"; |
| 5151 | export const V2HooksListResponse__HookEventName = Schema.Literals([ | 5879 | export const V2HooksListResponse__HookEventName = Schema.Literals([ |
| 5152 | "preToolUse", | 5880 | "preToolUse", |
| 5153 | "permissionRequest", | 5881 | "permissionRequest", |
| ... | @@ -5160,15 +5888,9 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([ | ... | @@ -5160,15 +5888,9 @@ export const V2HooksListResponse__HookEventName = Schema.Literals([ |
| 5160 | "subagentStart", | 5888 | "subagentStart", |
| 5161 | "subagentStop", | 5889 | "subagentStop", |
| 5162 | "stop", | 5890 | "stop", |
| | 5891 | "interrupt", |
| 5163 | ]).annotate({ identifier: "V2HooksListResponse__HookEventName" }); | 5892 | ]).annotate({ identifier: "V2HooksListResponse__HookEventName" }); |
| 5164 | | 5893 | |
| 5165 | export type V2HooksListResponse__HookHandlerType = "command" | "prompt" | "agent"; | | |
| 5166 | export const V2HooksListResponse__HookHandlerType = Schema.Literals([ | | |
| 5167 | "command", | | |
| 5168 | "prompt", | | |
| 5169 | "agent", | | |
| 5170 | ]).annotate({ identifier: "V2HooksListResponse__HookHandlerType" }); | | |
| 5171 | | | |
| 5172 | export type V2HooksListResponse__HookSource = | 5894 | export type V2HooksListResponse__HookSource = |
| 5173 | | "system" | 5895 | | "system" |
| 5174 | | "user" | 5896 | | "user" |
| ... | @@ -5235,7 +5957,8 @@ export type V2HookStartedNotification__HookEventName = | ... | @@ -5235,7 +5957,8 @@ export type V2HookStartedNotification__HookEventName = |
| 5235 | | "userPromptSubmit" | 5957 | | "userPromptSubmit" |
| 5236 | | "subagentStart" | 5958 | | "subagentStart" |
| 5237 | | "subagentStop" | 5959 | | "subagentStop" |
| 5238 | | "stop"; | 5960 | | "stop" |
| | 5961 | | "interrupt"; |
| 5239 | export const V2HookStartedNotification__HookEventName = Schema.Literals([ | 5962 | export const V2HookStartedNotification__HookEventName = Schema.Literals([ |
| 5240 | "preToolUse", | 5963 | "preToolUse", |
| 5241 | "permissionRequest", | 5964 | "permissionRequest", |
| ... | @@ -5248,6 +5971,7 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([ | ... | @@ -5248,6 +5971,7 @@ export const V2HookStartedNotification__HookEventName = Schema.Literals([ |
| 5248 | "subagentStart", | 5971 | "subagentStart", |
| 5249 | "subagentStop", | 5972 | "subagentStop", |
| 5250 | "stop", | 5973 | "stop", |
| | 5974 | "interrupt", |
| 5251 | ]).annotate({ identifier: "V2HookStartedNotification__HookEventName" }); | 5975 | ]).annotate({ identifier: "V2HookStartedNotification__HookEventName" }); |
| 5252 | | 5976 | |
| 5253 | export type V2HookStartedNotification__HookExecutionMode = "sync" | "async"; | 5977 | export type V2HookStartedNotification__HookExecutionMode = "sync" | "async"; |
| ... | @@ -5256,9 +5980,10 @@ export const V2HookStartedNotification__HookExecutionMode = Schema.Literals([ | ... | @@ -5256,9 +5980,10 @@ export const V2HookStartedNotification__HookExecutionMode = Schema.Literals([ |
| 5256 | "async", | 5980 | "async", |
| 5257 | ]).annotate({ identifier: "V2HookStartedNotification__HookExecutionMode" }); | 5981 | ]).annotate({ identifier: "V2HookStartedNotification__HookExecutionMode" }); |
| 5258 | | 5982 | |
| 5259 | export type V2HookStartedNotification__HookHandlerType = "command" | "prompt" | "agent"; | 5983 | export type V2HookStartedNotification__HookHandlerType = "command" | "mcpTool" | "prompt" | "agent"; |
| 5260 | export const V2HookStartedNotification__HookHandlerType = Schema.Literals([ | 5984 | export const V2HookStartedNotification__HookHandlerType = Schema.Literals([ |
| 5261 | "command", | 5985 | "command", |
| | 5986 | "mcpTool", |
| 5262 | "prompt", | 5987 | "prompt", |
| 5263 | "agent", | 5988 | "agent", |
| 5264 | ]).annotate({ identifier: "V2HookStartedNotification__HookHandlerType" }); | 5989 | ]).annotate({ identifier: "V2HookStartedNotification__HookHandlerType" }); |
| ... | @@ -5349,6 +6074,11 @@ export const V2ItemCompletedNotification__HookPromptFragment = Schema.Struct({ | ... | @@ -5349,6 +6074,11 @@ export const V2ItemCompletedNotification__HookPromptFragment = Schema.Struct({ |
| 5349 | text: Schema.String, | 6074 | text: Schema.String, |
| 5350 | }).annotate({ identifier: "V2ItemCompletedNotification__HookPromptFragment" }); | 6075 | }).annotate({ identifier: "V2ItemCompletedNotification__HookPromptFragment" }); |
| 5351 | | 6076 | |
| | 6077 | export type V2ItemCompletedNotification__AgentMessageDelivery = "async"; |
| | 6078 | export const V2ItemCompletedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 6079 | identifier: "V2ItemCompletedNotification__AgentMessageDelivery", |
| | 6080 | }); |
| | 6081 | |
| 5352 | export type V2ItemCompletedNotification__MemoryCitationEntry = { | 6082 | export type V2ItemCompletedNotification__MemoryCitationEntry = { |
| 5353 | readonly lineEnd: number; | 6083 | readonly lineEnd: number; |
| 5354 | readonly lineStart: number; | 6084 | readonly lineStart: number; |
| ... | @@ -5388,12 +6118,14 @@ export const V2ItemCompletedNotification__MessagePhase = Schema.Union( | ... | @@ -5388,12 +6118,14 @@ export const V2ItemCompletedNotification__MessagePhase = Schema.Union( |
| 5388 | identifier: "V2ItemCompletedNotification__MessagePhase", | 6118 | identifier: "V2ItemCompletedNotification__MessagePhase", |
| 5389 | }); | 6119 | }); |
| 5390 | | 6120 | |
| 5391 | export type V2ItemCompletedNotification__AbsolutePathBuf = string; | 6121 | export type V2ItemCompletedNotification__AsyncUserInputQuestion = { |
| 5392 | export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ | 6122 | readonly options?: ReadonlyArray<string> | null; |
| 5393 | description: | 6123 | readonly title: string; |
| 5394 | "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.", | 6124 | }; |
| 5395 | identifier: "V2ItemCompletedNotification__AbsolutePathBuf", | 6125 | export const V2ItemCompletedNotification__AsyncUserInputQuestion = Schema.Struct({ |
| 5396 | }); | 6126 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 6127 | title: Schema.String, |
| | 6128 | }).annotate({ identifier: "V2ItemCompletedNotification__AsyncUserInputQuestion" }); |
| 5397 | | 6129 | |
| 5398 | export type V2ItemCompletedNotification__LegacyAppPathString = string; | 6130 | export type V2ItemCompletedNotification__LegacyAppPathString = string; |
| 5399 | export const V2ItemCompletedNotification__LegacyAppPathString = Schema.String.annotate({ | 6131 | export const V2ItemCompletedNotification__LegacyAppPathString = Schema.String.annotate({ |
| ... | @@ -5476,6 +6208,12 @@ export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({ | ... | @@ -5476,6 +6208,12 @@ export const V2ItemCompletedNotification__McpToolCallError = Schema.Struct({ |
| 5476 | message: Schema.String, | 6208 | message: Schema.String, |
| 5477 | }).annotate({ identifier: "V2ItemCompletedNotification__McpToolCallError" }); | 6209 | }).annotate({ identifier: "V2ItemCompletedNotification__McpToolCallError" }); |
| 5478 | | 6210 | |
| | 6211 | export type V2ItemCompletedNotification__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 6212 | export const V2ItemCompletedNotification__McpAppDisplayMode = Schema.Literals([ |
| | 6213 | "inline", |
| | 6214 | "fullscreen", |
| | 6215 | ]).annotate({ identifier: "V2ItemCompletedNotification__McpAppDisplayMode" }); |
| | 6216 | |
| 5479 | export type V2ItemCompletedNotification__McpToolCallResult = { | 6217 | export type V2ItemCompletedNotification__McpToolCallResult = { |
| 5480 | readonly _meta?: Schema.Json; | 6218 | readonly _meta?: Schema.Json; |
| 5481 | readonly content: ReadonlyArray<Schema.Json>; | 6219 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -5638,12 +6376,42 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union( | ... | @@ -5638,12 +6376,42 @@ export const V2ItemCompletedNotification__WebSearchAction = Schema.Union( |
| 5638 | { mode: "oneOf" }, | 6376 | { mode: "oneOf" }, |
| 5639 | ).annotate({ identifier: "V2ItemCompletedNotification__WebSearchAction" }); | 6377 | ).annotate({ identifier: "V2ItemCompletedNotification__WebSearchAction" }); |
| 5640 | | 6378 | |
| 5641 | export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string; | 6379 | export type V2ItemCompletedNotification__ImageGenerationFailure = { |
| 5642 | export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = | 6380 | readonly limitId: string; |
| | 6381 | readonly resetsAt?: number | null; |
| | 6382 | readonly type: "usageLimitExceeded"; |
| | 6383 | }; |
| | 6384 | export const V2ItemCompletedNotification__ImageGenerationFailure = Schema.Union( |
| | 6385 | [ |
| | 6386 | Schema.Struct({ |
| | 6387 | limitId: Schema.String, |
| | 6388 | resetsAt: Schema.optionalKey( |
| | 6389 | Schema.Union([ |
| | 6390 | Schema.Number.annotate({ format: "int64" }).check( |
| | 6391 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 6392 | ), |
| | 6393 | Schema.Null, |
| | 6394 | ]), |
| | 6395 | ), |
| | 6396 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 6397 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 6398 | }), |
| | 6399 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 6400 | ], |
| | 6401 | { mode: "oneOf" }, |
| | 6402 | ).annotate({ identifier: "V2ItemCompletedNotification__ImageGenerationFailure" }); |
| | 6403 | |
| | 6404 | export type V2ItemCompletedNotification__AbsolutePathBuf = string; |
| | 6405 | export const V2ItemCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| | 6406 | description: |
| | 6407 | "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.", |
| | 6408 | identifier: "V2ItemCompletedNotification__AbsolutePathBuf", |
| | 6409 | }); |
| | 6410 | |
| | 6411 | export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string; |
| | 6412 | export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = |
| 5643 | Schema.String.annotate({ | 6413 | Schema.String.annotate({ |
| 5644 | description: | 6414 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString", |
| 5645 | "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.", | | |
| 5646 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf", | | |
| 5647 | }); | 6415 | }); |
| 5648 | | 6416 | |
| 5649 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = | 6417 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource = |
| ... | @@ -5654,6 +6422,14 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandS | ... | @@ -5654,6 +6422,14 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandS |
| 5654 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource", | 6422 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource", |
| 5655 | }); | 6423 | }); |
| 5656 | | 6424 | |
| | 6425 | export type V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = string; |
| | 6426 | export const V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf = |
| | 6427 | Schema.String.annotate({ |
| | 6428 | description: |
| | 6429 | "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.", |
| | 6430 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf", |
| | 6431 | }); |
| | 6432 | |
| 5657 | export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = | 6433 | export type V2ItemGuardianApprovalReviewCompletedNotification__NetworkApprovalProtocol = |
| 5658 | | "http" | 6434 | | "http" |
| 5659 | | "https" | 6435 | | "https" |
| ... | @@ -5673,12 +6449,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess | ... | @@ -5673,12 +6449,6 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccess |
| 5673 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode", | 6449 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__FileSystemAccessMode", |
| 5674 | }); | 6450 | }); |
| 5675 | | 6451 | |
| 5676 | export type V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = string; | | |
| 5677 | export const V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString = | | |
| 5678 | Schema.String.annotate({ | | |
| 5679 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString", | | |
| 5680 | }); | | |
| 5681 | | | |
| 5682 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = { | 6452 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalNetworkPermissions = { |
| 5683 | readonly enabled?: boolean | null; | 6453 | readonly enabled?: boolean | null; |
| 5684 | }; | 6454 | }; |
| ... | @@ -5731,12 +6501,10 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuth | ... | @@ -5731,12 +6501,10 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuth |
| 5731 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization", | 6501 | identifier: "V2ItemGuardianApprovalReviewCompletedNotification__GuardianUserAuthorization", |
| 5732 | }); | 6502 | }); |
| 5733 | | 6503 | |
| 5734 | export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string; | 6504 | export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string; |
| 5735 | export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = | 6505 | export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = |
| 5736 | Schema.String.annotate({ | 6506 | Schema.String.annotate({ |
| 5737 | description: | 6507 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString", |
| 5738 | "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.", | | |
| 5739 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf", | | |
| 5740 | }); | 6508 | }); |
| 5741 | | 6509 | |
| 5742 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = | 6510 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource = |
| ... | @@ -5747,6 +6515,14 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSou | ... | @@ -5747,6 +6515,14 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSou |
| 5747 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource", | 6515 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource", |
| 5748 | }); | 6516 | }); |
| 5749 | | 6517 | |
| | 6518 | export type V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = string; |
| | 6519 | export const V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf = |
| | 6520 | Schema.String.annotate({ |
| | 6521 | description: |
| | 6522 | "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.", |
| | 6523 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf", |
| | 6524 | }); |
| | 6525 | |
| 5750 | export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = | 6526 | export type V2ItemGuardianApprovalReviewStartedNotification__NetworkApprovalProtocol = |
| 5751 | | "http" | 6527 | | "http" |
| 5752 | | "https" | 6528 | | "https" |
| ... | @@ -5766,12 +6542,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo | ... | @@ -5766,12 +6542,6 @@ export const V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMo |
| 5766 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode", | 6542 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__FileSystemAccessMode", |
| 5767 | }); | 6543 | }); |
| 5768 | | 6544 | |
| 5769 | export type V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = string; | | |
| 5770 | export const V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString = | | |
| 5771 | Schema.String.annotate({ | | |
| 5772 | identifier: "V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString", | | |
| 5773 | }); | | |
| 5774 | | | |
| 5775 | export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = { | 6545 | export type V2ItemGuardianApprovalReviewStartedNotification__AdditionalNetworkPermissions = { |
| 5776 | readonly enabled?: boolean | null; | 6546 | readonly enabled?: boolean | null; |
| 5777 | }; | 6547 | }; |
| ... | @@ -5851,6 +6621,11 @@ export const V2ItemStartedNotification__HookPromptFragment = Schema.Struct({ | ... | @@ -5851,6 +6621,11 @@ export const V2ItemStartedNotification__HookPromptFragment = Schema.Struct({ |
| 5851 | text: Schema.String, | 6621 | text: Schema.String, |
| 5852 | }).annotate({ identifier: "V2ItemStartedNotification__HookPromptFragment" }); | 6622 | }).annotate({ identifier: "V2ItemStartedNotification__HookPromptFragment" }); |
| 5853 | | 6623 | |
| | 6624 | export type V2ItemStartedNotification__AgentMessageDelivery = "async"; |
| | 6625 | export const V2ItemStartedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 6626 | identifier: "V2ItemStartedNotification__AgentMessageDelivery", |
| | 6627 | }); |
| | 6628 | |
| 5854 | export type V2ItemStartedNotification__MemoryCitationEntry = { | 6629 | export type V2ItemStartedNotification__MemoryCitationEntry = { |
| 5855 | readonly lineEnd: number; | 6630 | readonly lineEnd: number; |
| 5856 | readonly lineStart: number; | 6631 | readonly lineStart: number; |
| ... | @@ -5890,12 +6665,14 @@ export const V2ItemStartedNotification__MessagePhase = Schema.Union( | ... | @@ -5890,12 +6665,14 @@ export const V2ItemStartedNotification__MessagePhase = Schema.Union( |
| 5890 | identifier: "V2ItemStartedNotification__MessagePhase", | 6665 | identifier: "V2ItemStartedNotification__MessagePhase", |
| 5891 | }); | 6666 | }); |
| 5892 | | 6667 | |
| 5893 | export type V2ItemStartedNotification__AbsolutePathBuf = string; | 6668 | export type V2ItemStartedNotification__AsyncUserInputQuestion = { |
| 5894 | export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({ | 6669 | readonly options?: ReadonlyArray<string> | null; |
| 5895 | description: | 6670 | readonly title: string; |
| 5896 | "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.", | 6671 | }; |
| 5897 | identifier: "V2ItemStartedNotification__AbsolutePathBuf", | 6672 | export const V2ItemStartedNotification__AsyncUserInputQuestion = Schema.Struct({ |
| 5898 | }); | 6673 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 6674 | title: Schema.String, |
| | 6675 | }).annotate({ identifier: "V2ItemStartedNotification__AsyncUserInputQuestion" }); |
| 5899 | | 6676 | |
| 5900 | export type V2ItemStartedNotification__LegacyAppPathString = string; | 6677 | export type V2ItemStartedNotification__LegacyAppPathString = string; |
| 5901 | export const V2ItemStartedNotification__LegacyAppPathString = Schema.String.annotate({ | 6678 | export const V2ItemStartedNotification__LegacyAppPathString = Schema.String.annotate({ |
| ... | @@ -5978,6 +6755,12 @@ export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({ | ... | @@ -5978,6 +6755,12 @@ export const V2ItemStartedNotification__McpToolCallError = Schema.Struct({ |
| 5978 | message: Schema.String, | 6755 | message: Schema.String, |
| 5979 | }).annotate({ identifier: "V2ItemStartedNotification__McpToolCallError" }); | 6756 | }).annotate({ identifier: "V2ItemStartedNotification__McpToolCallError" }); |
| 5980 | | 6757 | |
| | 6758 | export type V2ItemStartedNotification__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 6759 | export const V2ItemStartedNotification__McpAppDisplayMode = Schema.Literals([ |
| | 6760 | "inline", |
| | 6761 | "fullscreen", |
| | 6762 | ]).annotate({ identifier: "V2ItemStartedNotification__McpAppDisplayMode" }); |
| | 6763 | |
| 5981 | export type V2ItemStartedNotification__McpToolCallResult = { | 6764 | export type V2ItemStartedNotification__McpToolCallResult = { |
| 5982 | readonly _meta?: Schema.Json; | 6765 | readonly _meta?: Schema.Json; |
| 5983 | readonly content: ReadonlyArray<Schema.Json>; | 6766 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -6140,6 +6923,38 @@ export const V2ItemStartedNotification__WebSearchAction = Schema.Union( | ... | @@ -6140,6 +6923,38 @@ export const V2ItemStartedNotification__WebSearchAction = Schema.Union( |
| 6140 | { mode: "oneOf" }, | 6923 | { mode: "oneOf" }, |
| 6141 | ).annotate({ identifier: "V2ItemStartedNotification__WebSearchAction" }); | 6924 | ).annotate({ identifier: "V2ItemStartedNotification__WebSearchAction" }); |
| 6142 | | 6925 | |
| | 6926 | export type V2ItemStartedNotification__ImageGenerationFailure = { |
| | 6927 | readonly limitId: string; |
| | 6928 | readonly resetsAt?: number | null; |
| | 6929 | readonly type: "usageLimitExceeded"; |
| | 6930 | }; |
| | 6931 | export const V2ItemStartedNotification__ImageGenerationFailure = Schema.Union( |
| | 6932 | [ |
| | 6933 | Schema.Struct({ |
| | 6934 | limitId: Schema.String, |
| | 6935 | resetsAt: Schema.optionalKey( |
| | 6936 | Schema.Union([ |
| | 6937 | Schema.Number.annotate({ format: "int64" }).check( |
| | 6938 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 6939 | ), |
| | 6940 | Schema.Null, |
| | 6941 | ]), |
| | 6942 | ), |
| | 6943 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 6944 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 6945 | }), |
| | 6946 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 6947 | ], |
| | 6948 | { mode: "oneOf" }, |
| | 6949 | ).annotate({ identifier: "V2ItemStartedNotification__ImageGenerationFailure" }); |
| | 6950 | |
| | 6951 | export type V2ItemStartedNotification__AbsolutePathBuf = string; |
| | 6952 | export const V2ItemStartedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| | 6953 | description: |
| | 6954 | "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.", |
| | 6955 | identifier: "V2ItemStartedNotification__AbsolutePathBuf", |
| | 6956 | }); |
| | 6957 | |
| 6143 | export type V2ListMcpServerStatusParams__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; | 6958 | export type V2ListMcpServerStatusParams__McpServerStatusDetail = "full" | "toolsAndAuthOnly"; |
| 6144 | export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literals([ | 6959 | export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literals([ |
| 6145 | "full", | 6960 | "full", |
| ... | @@ -6147,11 +6962,13 @@ export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literal | ... | @@ -6147,11 +6962,13 @@ export const V2ListMcpServerStatusParams__McpServerStatusDetail = Schema.Literal |
| 6147 | ]).annotate({ identifier: "V2ListMcpServerStatusParams__McpServerStatusDetail" }); | 6962 | ]).annotate({ identifier: "V2ListMcpServerStatusParams__McpServerStatusDetail" }); |
| 6148 | | 6963 | |
| 6149 | export type V2ListMcpServerStatusResponse__McpAuthStatus = | 6964 | export type V2ListMcpServerStatusResponse__McpAuthStatus = |
| | 6965 | | "unknown" |
| 6150 | | "unsupported" | 6966 | | "unsupported" |
| 6151 | | "notLoggedIn" | 6967 | | "notLoggedIn" |
| 6152 | | "bearerToken" | 6968 | | "bearerToken" |
| 6153 | | "oAuth"; | 6969 | | "oAuth"; |
| 6154 | export const V2ListMcpServerStatusResponse__McpAuthStatus = Schema.Literals([ | 6970 | export const V2ListMcpServerStatusResponse__McpAuthStatus = Schema.Literals([ |
| | 6971 | "unknown", |
| 6155 | "unsupported", | 6972 | "unsupported", |
| 6156 | "notLoggedIn", | 6973 | "notLoggedIn", |
| 6157 | "bearerToken", | 6974 | "bearerToken", |
| ... | @@ -6213,6 +7030,24 @@ export const V2ListMcpServerStatusResponse__Resource = Schema.Struct({ | ... | @@ -6213,6 +7030,24 @@ export const V2ListMcpServerStatusResponse__Resource = Schema.Struct({ |
| 6213 | identifier: "V2ListMcpServerStatusResponse__Resource", | 7030 | identifier: "V2ListMcpServerStatusResponse__Resource", |
| 6214 | }); | 7031 | }); |
| 6215 | | 7032 | |
| | 7033 | export type V2ListMcpServerStatusResponse__McpServerConnectionStatus = |
| | 7034 | | "notStarted" |
| | 7035 | | "starting" |
| | 7036 | | "connected" |
| | 7037 | | "authenticationRequired" |
| | 7038 | | "failed" |
| | 7039 | | "cancelled" |
| | 7040 | | "disabled"; |
| | 7041 | export const V2ListMcpServerStatusResponse__McpServerConnectionStatus = Schema.Literals([ |
| | 7042 | "notStarted", |
| | 7043 | "starting", |
| | 7044 | "connected", |
| | 7045 | "authenticationRequired", |
| | 7046 | "failed", |
| | 7047 | "cancelled", |
| | 7048 | "disabled", |
| | 7049 | ]).annotate({ identifier: "V2ListMcpServerStatusResponse__McpServerConnectionStatus" }); |
| | 7050 | |
| 6216 | export type V2ListMcpServerStatusResponse__McpServerInfo = { | 7051 | export type V2ListMcpServerStatusResponse__McpServerInfo = { |
| 6217 | readonly description?: string | null; | 7052 | readonly description?: string | null; |
| 6218 | readonly icons?: ReadonlyArray<Schema.Json> | null; | 7053 | readonly icons?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -6327,6 +7162,22 @@ export const V2McpResourceReadResponse__ResourceContent = Schema.Union([ | ... | @@ -6327,6 +7162,22 @@ export const V2McpResourceReadResponse__ResourceContent = Schema.Union([ |
| 6327 | identifier: "V2McpResourceReadResponse__ResourceContent", | 7162 | identifier: "V2McpResourceReadResponse__ResourceContent", |
| 6328 | }); | 7163 | }); |
| 6329 | | 7164 | |
| | 7165 | export type V2McpServerEventStreamNotification__McpServerEventNotification = { |
| | 7166 | readonly method: string; |
| | 7167 | readonly params: Schema.Json; |
| | 7168 | }; |
| | 7169 | export const V2McpServerEventStreamNotification__McpServerEventNotification = Schema.Struct({ |
| | 7170 | method: Schema.String, |
| | 7171 | params: Schema.Json.annotate({ expected: "JSON value" }), |
| | 7172 | }).annotate({ identifier: "V2McpServerEventStreamNotification__McpServerEventNotification" }); |
| | 7173 | |
| | 7174 | export type V2McpServerOauthLoginParams__McpServerOauthClientRegistration = "auto" | "cimd" | "dcr"; |
| | 7175 | export const V2McpServerOauthLoginParams__McpServerOauthClientRegistration = Schema.Literals([ |
| | 7176 | "auto", |
| | 7177 | "cimd", |
| | 7178 | "dcr", |
| | 7179 | ]).annotate({ identifier: "V2McpServerOauthLoginParams__McpServerOauthClientRegistration" }); |
| | 7180 | |
| 6330 | export type V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = | 7181 | export type V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = |
| 6331 | "reauthenticationRequired"; | 7182 | "reauthenticationRequired"; |
| 6332 | export const V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = Schema.Literal( | 7183 | export const V2McpServerStatusUpdatedNotification__McpServerStartupFailureReason = Schema.Literal( |
| ... | @@ -6350,6 +7201,17 @@ export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ | ... | @@ -6350,6 +7201,17 @@ export const V2ModelListResponse__ModelAvailabilityNux = Schema.Struct({ |
| 6350 | message: Schema.String, | 7201 | message: Schema.String, |
| 6351 | }).annotate({ identifier: "V2ModelListResponse__ModelAvailabilityNux" }); | 7202 | }).annotate({ identifier: "V2ModelListResponse__ModelAvailabilityNux" }); |
| 6352 | | 7203 | |
| | 7204 | export type V2ModelListResponse__CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed"; |
| | 7205 | export const V2ModelListResponse__CyberAccessProgram = Schema.Literals([ |
| | 7206 | "standard", |
| | 7207 | "daybreakBlue", |
| | 7208 | "daybreakRed", |
| | 7209 | ]).annotate({ |
| | 7210 | description: |
| | 7211 | "Requested cyber treatment for a ChatGPT-authenticated Codex turn. Authorization and model-tier restrictions remain server-owned.", |
| | 7212 | identifier: "V2ModelListResponse__CyberAccessProgram", |
| | 7213 | }); |
| | 7214 | |
| 6353 | export type V2ModelListResponse__ReasoningEffort = string; | 7215 | export type V2ModelListResponse__ReasoningEffort = string; |
| 6354 | export const V2ModelListResponse__ReasoningEffort = Schema.String.annotate({ | 7216 | export const V2ModelListResponse__ReasoningEffort = Schema.String.annotate({ |
| 6355 | description: "A non-empty reasoning effort value advertised by the model.", | 7217 | description: "A non-empty reasoning effort value advertised by the model.", |
| ... | @@ -6373,6 +7235,16 @@ export const V2ModelListResponse__InputModality = Schema.Union( | ... | @@ -6373,6 +7235,16 @@ export const V2ModelListResponse__InputModality = Schema.Union( |
| 6373 | identifier: "V2ModelListResponse__InputModality", | 7235 | identifier: "V2ModelListResponse__InputModality", |
| 6374 | }); | 7236 | }); |
| 6375 | | 7237 | |
| | 7238 | export type V2ModelListResponse__MultiAgentVersion = "disabled" | "v1" | "v2"; |
| | 7239 | export const V2ModelListResponse__MultiAgentVersion = Schema.Literals([ |
| | 7240 | "disabled", |
| | 7241 | "v1", |
| | 7242 | "v2", |
| | 7243 | ]).annotate({ |
| | 7244 | description: "Multi-agent runtime supported by a model.", |
| | 7245 | identifier: "V2ModelListResponse__MultiAgentVersion", |
| | 7246 | }); |
| | 7247 | |
| 6376 | export type V2ModelListResponse__ModelServiceTier = { | 7248 | export type V2ModelListResponse__ModelServiceTier = { |
| 6377 | readonly description: string; | 7249 | readonly description: string; |
| 6378 | readonly id: string; | 7250 | readonly id: string; |
| ... | @@ -6388,12 +7260,23 @@ export type V2ModelListResponse__ModelUpgradeInfo = { | ... | @@ -6388,12 +7260,23 @@ export type V2ModelListResponse__ModelUpgradeInfo = { |
| 6388 | readonly migrationMarkdown?: string | null; | 7260 | readonly migrationMarkdown?: string | null; |
| 6389 | readonly model: string; | 7261 | readonly model: string; |
| 6390 | readonly modelLink?: string | null; | 7262 | readonly modelLink?: string | null; |
| | 7263 | readonly retirementAt?: number | null; |
| 6391 | readonly upgradeCopy?: string | null; | 7264 | readonly upgradeCopy?: string | null; |
| 6392 | }; | 7265 | }; |
| 6393 | export const V2ModelListResponse__ModelUpgradeInfo = Schema.Struct({ | 7266 | export const V2ModelListResponse__ModelUpgradeInfo = Schema.Struct({ |
| 6394 | migrationMarkdown: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7267 | migrationMarkdown: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6395 | model: Schema.String, | 7268 | model: Schema.String, |
| 6396 | modelLink: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7269 | modelLink: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 7270 | retirementAt: Schema.optionalKey( |
| | 7271 | Schema.Union([ |
| | 7272 | Schema.Number.annotate({ |
| | 7273 | description: |
| | 7274 | "Informational Unix timestamp for this upgrade's scheduled retirement, if known.", |
| | 7275 | format: "int64", |
| | 7276 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 7277 | Schema.Null, |
| | 7278 | ]), |
| | 7279 | ), |
| 6397 | upgradeCopy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 7280 | upgradeCopy: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 6398 | }).annotate({ identifier: "V2ModelListResponse__ModelUpgradeInfo" }); | 7281 | }).annotate({ identifier: "V2ModelListResponse__ModelUpgradeInfo" }); |
| 6399 | | 7282 | |
| ... | @@ -6407,6 +7290,44 @@ export const V2ModelVerificationNotification__ModelVerification = Schema.Literal | ... | @@ -6407,6 +7290,44 @@ export const V2ModelVerificationNotification__ModelVerification = Schema.Literal |
| 6407 | "trustedAccessForCyber", | 7290 | "trustedAccessForCyber", |
| 6408 | ).annotate({ identifier: "V2ModelVerificationNotification__ModelVerification" }); | 7291 | ).annotate({ identifier: "V2ModelVerificationNotification__ModelVerification" }); |
| 6409 | | 7292 | |
| | 7293 | export type V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams = { |
| | 7294 | readonly excludeResetCreditDetails?: boolean; |
| | 7295 | readonly supportsLunaReserve?: boolean; |
| | 7296 | }; |
| | 7297 | export const V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams = Schema.Struct({ |
| | 7298 | excludeResetCreditDetails: Schema.optionalKey( |
| | 7299 | Schema.Boolean.annotate({ |
| | 7300 | description: |
| | 7301 | "Skip the separate reset-credit detail lookup for background usage polls. The usage response still includes the available count; omitted/false preserves detailed reads.", |
| | 7302 | }), |
| | 7303 | ), |
| | 7304 | supportsLunaReserve: Schema.optionalKey( |
| | 7305 | Schema.Boolean.annotate({ |
| | 7306 | description: |
| | 7307 | "The client supports automatic Luna Reserve fallback. For eligible ChatGPT CLI users, allow the backend to record experiment exposure after ordinary usage is blocked.", |
| | 7308 | }), |
| | 7309 | ), |
| | 7310 | }).annotate({ |
| | 7311 | description: |
| | 7312 | "Usage-read capabilities of the requesting client, never inferred from its experiment arm.", |
| | 7313 | identifier: "V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams", |
| | 7314 | }); |
| | 7315 | |
| | 7316 | export type V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams = { |
| | 7317 | readonly threadId?: string | null; |
| | 7318 | }; |
| | 7319 | export const V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams = Schema.Struct({ |
| | 7320 | threadId: Schema.optionalKey( |
| | 7321 | Schema.Union([ |
| | 7322 | Schema.String.annotate({ |
| | 7323 | description: |
| | 7324 | "When present, read estimated usage for this thread instead of account-wide token activity.", |
| | 7325 | }), |
| | 7326 | Schema.Null, |
| | 7327 | ]), |
| | 7328 | ), |
| | 7329 | }).annotate({ identifier: "V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams" }); |
| | 7330 | |
| 6410 | export type V2PermissionProfileListResponse__PermissionProfileSummary = { | 7331 | export type V2PermissionProfileListResponse__PermissionProfileSummary = { |
| 6411 | readonly allowed: boolean; | 7332 | readonly allowed: boolean; |
| 6412 | readonly description?: string | null; | 7333 | readonly description?: string | null; |
| ... | @@ -6466,6 +7387,18 @@ export const V2PluginInstalledResponse__PluginAvailability = Schema.Union( | ... | @@ -6466,6 +7387,18 @@ export const V2PluginInstalledResponse__PluginAvailability = Schema.Union( |
| 6466 | { mode: "oneOf" }, | 7387 | { mode: "oneOf" }, |
| 6467 | ).annotate({ identifier: "V2PluginInstalledResponse__PluginAvailability" }); | 7388 | ).annotate({ identifier: "V2PluginInstalledResponse__PluginAvailability" }); |
| 6468 | | 7389 | |
| | 7390 | export type V2PluginInstalledResponse__PluginDisabledReason = |
| | 7391 | | "disabled_by_admin" |
| | 7392 | | "plan_not_eligible" |
| | 7393 | | "required_app_unavailable" |
| | 7394 | | "unknown"; |
| | 7395 | export const V2PluginInstalledResponse__PluginDisabledReason = Schema.Literals([ |
| | 7396 | "disabled_by_admin", |
| | 7397 | "plan_not_eligible", |
| | 7398 | "required_app_unavailable", |
| | 7399 | "unknown", |
| | 7400 | ]).annotate({ identifier: "V2PluginInstalledResponse__PluginDisabledReason" }); |
| | 7401 | |
| 6469 | export type V2PluginInstalledResponse__PluginInstallPolicy = | 7402 | export type V2PluginInstalledResponse__PluginInstallPolicy = |
| 6470 | | "NOT_AVAILABLE" | 7403 | | "NOT_AVAILABLE" |
| 6471 | | "AVAILABLE" | 7404 | | "AVAILABLE" |
| ... | @@ -6590,6 +7523,18 @@ export const V2PluginListResponse__PluginAvailability = Schema.Union( | ... | @@ -6590,6 +7523,18 @@ export const V2PluginListResponse__PluginAvailability = Schema.Union( |
| 6590 | { mode: "oneOf" }, | 7523 | { mode: "oneOf" }, |
| 6591 | ).annotate({ identifier: "V2PluginListResponse__PluginAvailability" }); | 7524 | ).annotate({ identifier: "V2PluginListResponse__PluginAvailability" }); |
| 6592 | | 7525 | |
| | 7526 | export type V2PluginListResponse__PluginDisabledReason = |
| | 7527 | | "disabled_by_admin" |
| | 7528 | | "plan_not_eligible" |
| | 7529 | | "required_app_unavailable" |
| | 7530 | | "unknown"; |
| | 7531 | export const V2PluginListResponse__PluginDisabledReason = Schema.Literals([ |
| | 7532 | "disabled_by_admin", |
| | 7533 | "plan_not_eligible", |
| | 7534 | "required_app_unavailable", |
| | 7535 | "unknown", |
| | 7536 | ]).annotate({ identifier: "V2PluginListResponse__PluginDisabledReason" }); |
| | 7537 | |
| 6593 | export type V2PluginListResponse__PluginInstallPolicy = | 7538 | export type V2PluginListResponse__PluginInstallPolicy = |
| 6594 | | "NOT_AVAILABLE" | 7539 | | "NOT_AVAILABLE" |
| 6595 | | "AVAILABLE" | 7540 | | "AVAILABLE" |
| ... | @@ -6673,7 +7618,8 @@ export type V2PluginReadResponse__HookEventName = | ... | @@ -6673,7 +7618,8 @@ export type V2PluginReadResponse__HookEventName = |
| 6673 | | "userPromptSubmit" | 7618 | | "userPromptSubmit" |
| 6674 | | "subagentStart" | 7619 | | "subagentStart" |
| 6675 | | "subagentStop" | 7620 | | "subagentStop" |
| 6676 | | "stop"; | 7621 | | "stop" |
| | 7622 | | "interrupt"; |
| 6677 | export const V2PluginReadResponse__HookEventName = Schema.Literals([ | 7623 | export const V2PluginReadResponse__HookEventName = Schema.Literals([ |
| 6678 | "preToolUse", | 7624 | "preToolUse", |
| 6679 | "permissionRequest", | 7625 | "permissionRequest", |
| ... | @@ -6686,6 +7632,7 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([ | ... | @@ -6686,6 +7632,7 @@ export const V2PluginReadResponse__HookEventName = Schema.Literals([ |
| 6686 | "subagentStart", | 7632 | "subagentStart", |
| 6687 | "subagentStop", | 7633 | "subagentStop", |
| 6688 | "stop", | 7634 | "stop", |
| | 7635 | "interrupt", |
| 6689 | ]).annotate({ identifier: "V2PluginReadResponse__HookEventName" }); | 7636 | ]).annotate({ identifier: "V2PluginReadResponse__HookEventName" }); |
| 6690 | | 7637 | |
| 6691 | export type V2PluginReadResponse__AbsolutePathBuf = string; | 7638 | export type V2PluginReadResponse__AbsolutePathBuf = string; |
| ... | @@ -6731,6 +7678,18 @@ export const V2PluginReadResponse__PluginAvailability = Schema.Union( | ... | @@ -6731,6 +7678,18 @@ export const V2PluginReadResponse__PluginAvailability = Schema.Union( |
| 6731 | { mode: "oneOf" }, | 7678 | { mode: "oneOf" }, |
| 6732 | ).annotate({ identifier: "V2PluginReadResponse__PluginAvailability" }); | 7679 | ).annotate({ identifier: "V2PluginReadResponse__PluginAvailability" }); |
| 6733 | | 7680 | |
| | 7681 | export type V2PluginReadResponse__PluginDisabledReason = |
| | 7682 | | "disabled_by_admin" |
| | 7683 | | "plan_not_eligible" |
| | 7684 | | "required_app_unavailable" |
| | 7685 | | "unknown"; |
| | 7686 | export const V2PluginReadResponse__PluginDisabledReason = Schema.Literals([ |
| | 7687 | "disabled_by_admin", |
| | 7688 | "plan_not_eligible", |
| | 7689 | "required_app_unavailable", |
| | 7690 | "unknown", |
| | 7691 | ]).annotate({ identifier: "V2PluginReadResponse__PluginDisabledReason" }); |
| | 7692 | |
| 6734 | export type V2PluginReadResponse__PluginInstallPolicy = | 7693 | export type V2PluginReadResponse__PluginInstallPolicy = |
| 6735 | | "NOT_AVAILABLE" | 7694 | | "NOT_AVAILABLE" |
| 6736 | | "AVAILABLE" | 7695 | | "AVAILABLE" |
| ... | @@ -6770,6 +7729,30 @@ export const V2PluginReadResponse__PluginSharePrincipalRole = Schema.Literals([ | ... | @@ -6770,6 +7729,30 @@ export const V2PluginReadResponse__PluginSharePrincipalRole = Schema.Literals([ |
| 6770 | "owner", | 7729 | "owner", |
| 6771 | ]).annotate({ identifier: "V2PluginReadResponse__PluginSharePrincipalRole" }); | 7730 | ]).annotate({ identifier: "V2PluginReadResponse__PluginSharePrincipalRole" }); |
| 6772 | | 7731 | |
| | 7732 | export type V2PluginReconcileResponse__PluginReconcileChangedPlugin = { |
| | 7733 | readonly hasApps: boolean; |
| | 7734 | readonly hasHooks: boolean; |
| | 7735 | readonly hasMcps: boolean; |
| | 7736 | readonly hasSkills: boolean; |
| | 7737 | readonly id: string; |
| | 7738 | }; |
| | 7739 | export const V2PluginReconcileResponse__PluginReconcileChangedPlugin = Schema.Struct({ |
| | 7740 | hasApps: Schema.Boolean, |
| | 7741 | hasHooks: Schema.Boolean, |
| | 7742 | hasMcps: Schema.Boolean, |
| | 7743 | hasSkills: Schema.Boolean.annotate({ |
| | 7744 | description: |
| | 7745 | "Whether either bundle declares skill roots; not a validated inventory of enabled skills.", |
| | 7746 | }), |
| | 7747 | id: Schema.String.annotate({ |
| | 7748 | description: "Local plugin ID (`name@marketplace`), matching `PluginSummary.id`.", |
| | 7749 | }), |
| | 7750 | }).annotate({ |
| | 7751 | description: |
| | 7752 | "Runtime categories affected by this change, not just capabilities currently present. Flags describe declarations before runtime policy filtering. Updates OR the old and new bundle flags; enablement changes and cached reinstalls use the cached bundle; removals retain the old bundle's flags.", |
| | 7753 | identifier: "V2PluginReconcileResponse__PluginReconcileChangedPlugin", |
| | 7754 | }); |
| | 7755 | |
| 6773 | export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string; | 7756 | export type V2PluginShareCheckoutResponse__AbsolutePathBuf = string; |
| 6774 | export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({ | 7757 | export const V2PluginShareCheckoutResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 6775 | description: | 7758 | description: |
| ... | @@ -6802,6 +7785,18 @@ export const V2PluginShareListResponse__PluginAvailability = Schema.Union( | ... | @@ -6802,6 +7785,18 @@ export const V2PluginShareListResponse__PluginAvailability = Schema.Union( |
| 6802 | { mode: "oneOf" }, | 7785 | { mode: "oneOf" }, |
| 6803 | ).annotate({ identifier: "V2PluginShareListResponse__PluginAvailability" }); | 7786 | ).annotate({ identifier: "V2PluginShareListResponse__PluginAvailability" }); |
| 6804 | | 7787 | |
| | 7788 | export type V2PluginShareListResponse__PluginDisabledReason = |
| | 7789 | | "disabled_by_admin" |
| | 7790 | | "plan_not_eligible" |
| | 7791 | | "required_app_unavailable" |
| | 7792 | | "unknown"; |
| | 7793 | export const V2PluginShareListResponse__PluginDisabledReason = Schema.Literals([ |
| | 7794 | "disabled_by_admin", |
| | 7795 | "plan_not_eligible", |
| | 7796 | "required_app_unavailable", |
| | 7797 | "unknown", |
| | 7798 | ]).annotate({ identifier: "V2PluginShareListResponse__PluginDisabledReason" }); |
| | 7799 | |
| 6805 | export type V2PluginShareListResponse__PluginInstallPolicy = | 7800 | export type V2PluginShareListResponse__PluginInstallPolicy = |
| 6806 | | "NOT_AVAILABLE" | 7801 | | "NOT_AVAILABLE" |
| 6807 | | "AVAILABLE" | 7802 | | "AVAILABLE" |
| ... | @@ -6941,6 +7936,13 @@ export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Unio | ... | @@ -6941,6 +7936,13 @@ export const V2ProcessOutputDeltaNotification__ProcessOutputStream = Schema.Unio |
| 6941 | identifier: "V2ProcessOutputDeltaNotification__ProcessOutputStream", | 7936 | identifier: "V2ProcessOutputDeltaNotification__ProcessOutputStream", |
| 6942 | }); | 7937 | }); |
| 6943 | | 7938 | |
| | 7939 | export type V2ProjectChangedNotification__ProjectChangeType = "created" | "updated" | "deleted"; |
| | 7940 | export const V2ProjectChangedNotification__ProjectChangeType = Schema.Literals([ |
| | 7941 | "created", |
| | 7942 | "updated", |
| | 7943 | "deleted", |
| | 7944 | ]).annotate({ identifier: "V2ProjectChangedNotification__ProjectChangeType" }); |
| | 7945 | |
| 6944 | export type V2RawResponseCompletedNotification__TokenUsageBreakdown = { | 7946 | export type V2RawResponseCompletedNotification__TokenUsageBreakdown = { |
| 6945 | readonly cacheWriteInputTokens?: number; | 7947 | readonly cacheWriteInputTokens?: number; |
| 6946 | readonly cachedInputTokens: number; | 7948 | readonly cachedInputTokens: number; |
| ... | @@ -6972,6 +7974,18 @@ export const V2RawResponseCompletedNotification__TokenUsageBreakdown = Schema.St | ... | @@ -6972,6 +7974,18 @@ export const V2RawResponseCompletedNotification__TokenUsageBreakdown = Schema.St |
| 6972 | ), | 7974 | ), |
| 6973 | }).annotate({ identifier: "V2RawResponseCompletedNotification__TokenUsageBreakdown" }); | 7975 | }).annotate({ identifier: "V2RawResponseCompletedNotification__TokenUsageBreakdown" }); |
| 6974 | | 7976 | |
| | 7977 | export type V2RawResponseCompletedNotification__ResponseUsageMetadata = { |
| | 7978 | readonly amount?: string | null; |
| | 7979 | readonly metadata?: Schema.Json; |
| | 7980 | }; |
| | 7981 | export const V2RawResponseCompletedNotification__ResponseUsageMetadata = Schema.Struct({ |
| | 7982 | amount: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 7983 | metadata: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 7984 | }).annotate({ |
| | 7985 | description: "Usage metadata reported for one upstream response.", |
| | 7986 | identifier: "V2RawResponseCompletedNotification__ResponseUsageMetadata", |
| | 7987 | }); |
| | 7988 | |
| 6975 | export type V2RawResponseItemCompletedNotification__ImageDetail = | 7989 | export type V2RawResponseItemCompletedNotification__ImageDetail = |
| 6976 | | "auto" | 7990 | | "auto" |
| 6977 | | "low" | 7991 | | "low" |
| ... | @@ -7155,6 +8169,16 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction | ... | @@ -7155,6 +8169,16 @@ export const V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction |
| 7155 | { mode: "oneOf" }, | 8169 | { mode: "oneOf" }, |
| 7156 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction" }); | 8170 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction" }); |
| 7157 | | 8171 | |
| | 8172 | export type V2RawResponseItemCompletedNotification__ReasoningEffort = string; |
| | 8173 | export const V2RawResponseItemCompletedNotification__ReasoningEffort = Schema.String.annotate({ |
| | 8174 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 8175 | }).check( |
| | 8176 | Schema.isMinLength(1).annotate({ |
| | 8177 | expected: "a value with a length of at least 1", |
| | 8178 | identifier: "V2RawResponseItemCompletedNotification__ReasoningEffort", |
| | 8179 | }), |
| | 8180 | ); |
| | 8181 | |
| 7158 | export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = | 8182 | export type V2RemoteControlStatusChangedNotification__RemoteControlConnectionStatus = |
| 7159 | | "disabled" | 8183 | | "disabled" |
| 7160 | | "connecting" | 8184 | | "connecting" |
| ... | @@ -7224,6 +8248,11 @@ export const V2ReviewStartResponse__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -7224,6 +8248,11 @@ export const V2ReviewStartResponse__NonSteerableTurnKind = Schema.Literals([ |
| 7224 | "compact", | 8248 | "compact", |
| 7225 | ]).annotate({ identifier: "V2ReviewStartResponse__NonSteerableTurnKind" }); | 8249 | ]).annotate({ identifier: "V2ReviewStartResponse__NonSteerableTurnKind" }); |
| 7226 | | 8250 | |
| | 8251 | export type V2ReviewStartResponse__MisalignmentSteer = { readonly message: string }; |
| | 8252 | export const V2ReviewStartResponse__MisalignmentSteer = Schema.Struct({ |
| | 8253 | message: Schema.String, |
| | 8254 | }).annotate({ identifier: "V2ReviewStartResponse__MisalignmentSteer" }); |
| | 8255 | |
| 7227 | export type V2ReviewStartResponse__ByteRange = { readonly end: number; readonly start: number }; | 8256 | export type V2ReviewStartResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 7228 | export const V2ReviewStartResponse__ByteRange = Schema.Struct({ | 8257 | export const V2ReviewStartResponse__ByteRange = Schema.Struct({ |
| 7229 | end: Schema.Number.annotate({ format: "uint" }) | 8258 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -7255,6 +8284,11 @@ export const V2ReviewStartResponse__HookPromptFragment = Schema.Struct({ | ... | @@ -7255,6 +8284,11 @@ export const V2ReviewStartResponse__HookPromptFragment = Schema.Struct({ |
| 7255 | text: Schema.String, | 8284 | text: Schema.String, |
| 7256 | }).annotate({ identifier: "V2ReviewStartResponse__HookPromptFragment" }); | 8285 | }).annotate({ identifier: "V2ReviewStartResponse__HookPromptFragment" }); |
| 7257 | | 8286 | |
| | 8287 | export type V2ReviewStartResponse__AgentMessageDelivery = "async"; |
| | 8288 | export const V2ReviewStartResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 8289 | identifier: "V2ReviewStartResponse__AgentMessageDelivery", |
| | 8290 | }); |
| | 8291 | |
| 7258 | export type V2ReviewStartResponse__MemoryCitationEntry = { | 8292 | export type V2ReviewStartResponse__MemoryCitationEntry = { |
| 7259 | readonly lineEnd: number; | 8293 | readonly lineEnd: number; |
| 7260 | readonly lineStart: number; | 8294 | readonly lineStart: number; |
| ... | @@ -7294,12 +8328,14 @@ export const V2ReviewStartResponse__MessagePhase = Schema.Union( | ... | @@ -7294,12 +8328,14 @@ export const V2ReviewStartResponse__MessagePhase = Schema.Union( |
| 7294 | identifier: "V2ReviewStartResponse__MessagePhase", | 8328 | identifier: "V2ReviewStartResponse__MessagePhase", |
| 7295 | }); | 8329 | }); |
| 7296 | | 8330 | |
| 7297 | export type V2ReviewStartResponse__AbsolutePathBuf = string; | 8331 | export type V2ReviewStartResponse__AsyncUserInputQuestion = { |
| 7298 | export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({ | 8332 | readonly options?: ReadonlyArray<string> | null; |
| 7299 | description: | 8333 | readonly title: string; |
| 7300 | "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.", | 8334 | }; |
| 7301 | identifier: "V2ReviewStartResponse__AbsolutePathBuf", | 8335 | export const V2ReviewStartResponse__AsyncUserInputQuestion = Schema.Struct({ |
| 7302 | }); | 8336 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 8337 | title: Schema.String, |
| | 8338 | }).annotate({ identifier: "V2ReviewStartResponse__AsyncUserInputQuestion" }); |
| 7303 | | 8339 | |
| 7304 | export type V2ReviewStartResponse__LegacyAppPathString = string; | 8340 | export type V2ReviewStartResponse__LegacyAppPathString = string; |
| 7305 | export const V2ReviewStartResponse__LegacyAppPathString = Schema.String.annotate({ | 8341 | export const V2ReviewStartResponse__LegacyAppPathString = Schema.String.annotate({ |
| ... | @@ -7382,6 +8418,12 @@ export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ | ... | @@ -7382,6 +8418,12 @@ export const V2ReviewStartResponse__McpToolCallError = Schema.Struct({ |
| 7382 | message: Schema.String, | 8418 | message: Schema.String, |
| 7383 | }).annotate({ identifier: "V2ReviewStartResponse__McpToolCallError" }); | 8419 | }).annotate({ identifier: "V2ReviewStartResponse__McpToolCallError" }); |
| 7384 | | 8420 | |
| | 8421 | export type V2ReviewStartResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 8422 | export const V2ReviewStartResponse__McpAppDisplayMode = Schema.Literals([ |
| | 8423 | "inline", |
| | 8424 | "fullscreen", |
| | 8425 | ]).annotate({ identifier: "V2ReviewStartResponse__McpAppDisplayMode" }); |
| | 8426 | |
| 7385 | export type V2ReviewStartResponse__McpToolCallResult = { | 8427 | export type V2ReviewStartResponse__McpToolCallResult = { |
| 7386 | readonly _meta?: Schema.Json; | 8428 | readonly _meta?: Schema.Json; |
| 7387 | readonly content: ReadonlyArray<Schema.Json>; | 8429 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -7541,6 +8583,38 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union( | ... | @@ -7541,6 +8583,38 @@ export const V2ReviewStartResponse__WebSearchAction = Schema.Union( |
| 7541 | { mode: "oneOf" }, | 8583 | { mode: "oneOf" }, |
| 7542 | ).annotate({ identifier: "V2ReviewStartResponse__WebSearchAction" }); | 8584 | ).annotate({ identifier: "V2ReviewStartResponse__WebSearchAction" }); |
| 7543 | | 8585 | |
| | 8586 | export type V2ReviewStartResponse__ImageGenerationFailure = { |
| | 8587 | readonly limitId: string; |
| | 8588 | readonly resetsAt?: number | null; |
| | 8589 | readonly type: "usageLimitExceeded"; |
| | 8590 | }; |
| | 8591 | export const V2ReviewStartResponse__ImageGenerationFailure = Schema.Union( |
| | 8592 | [ |
| | 8593 | Schema.Struct({ |
| | 8594 | limitId: Schema.String, |
| | 8595 | resetsAt: Schema.optionalKey( |
| | 8596 | Schema.Union([ |
| | 8597 | Schema.Number.annotate({ format: "int64" }).check( |
| | 8598 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 8599 | ), |
| | 8600 | Schema.Null, |
| | 8601 | ]), |
| | 8602 | ), |
| | 8603 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 8604 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 8605 | }), |
| | 8606 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 8607 | ], |
| | 8608 | { mode: "oneOf" }, |
| | 8609 | ).annotate({ identifier: "V2ReviewStartResponse__ImageGenerationFailure" }); |
| | 8610 | |
| | 8611 | export type V2ReviewStartResponse__AbsolutePathBuf = string; |
| | 8612 | export const V2ReviewStartResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 8613 | description: |
| | 8614 | "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.", |
| | 8615 | identifier: "V2ReviewStartResponse__AbsolutePathBuf", |
| | 8616 | }); |
| | 8617 | |
| 7544 | export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 8618 | export type V2ReviewStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 7545 | export const V2ReviewStartResponse__TurnItemsView = Schema.Union( | 8619 | export const V2ReviewStartResponse__TurnItemsView = Schema.Union( |
| 7546 | [ | 8620 | [ |
| ... | @@ -7647,6 +8721,66 @@ export const V2SkillsListResponse__SkillScope = Schema.Literals([ | ... | @@ -7647,6 +8721,66 @@ export const V2SkillsListResponse__SkillScope = Schema.Literals([ |
| 7647 | "admin", | 8721 | "admin", |
| 7648 | ]).annotate({ identifier: "V2SkillsListResponse__SkillScope" }); | 8722 | ]).annotate({ identifier: "V2SkillsListResponse__SkillScope" }); |
| 7649 | | 8723 | |
| | 8724 | export type V2ThreadAttachmentAddResponse__ThreadAttachment = { |
| | 8725 | readonly attachmentType: string; |
| | 8726 | readonly createdAt: number; |
| | 8727 | readonly id: string; |
| | 8728 | readonly identityKey: string; |
| | 8729 | readonly payload: Schema.Json; |
| | 8730 | }; |
| | 8731 | export const V2ThreadAttachmentAddResponse__ThreadAttachment = Schema.Struct({ |
| | 8732 | attachmentType: Schema.String, |
| | 8733 | createdAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 8734 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 8735 | ), |
| | 8736 | id: Schema.String, |
| | 8737 | identityKey: Schema.String, |
| | 8738 | payload: Schema.Json.annotate({ expected: "JSON value" }), |
| | 8739 | }).annotate({ |
| | 8740 | description: "An independently persisted attachment associated with a thread.", |
| | 8741 | identifier: "V2ThreadAttachmentAddResponse__ThreadAttachment", |
| | 8742 | }); |
| | 8743 | |
| | 8744 | export type V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome = "created" | "existing"; |
| | 8745 | export const V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome = Schema.Literals([ |
| | 8746 | "created", |
| | 8747 | "existing", |
| | 8748 | ]).annotate({ |
| | 8749 | description: "Result of attempting to associate an attachment with a thread.", |
| | 8750 | identifier: "V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome", |
| | 8751 | }); |
| | 8752 | |
| | 8753 | export type V2ThreadAttachmentListResponse__ThreadAttachment = { |
| | 8754 | readonly attachmentType: string; |
| | 8755 | readonly createdAt: number; |
| | 8756 | readonly id: string; |
| | 8757 | readonly identityKey: string; |
| | 8758 | readonly payload: Schema.Json; |
| | 8759 | }; |
| | 8760 | export const V2ThreadAttachmentListResponse__ThreadAttachment = Schema.Struct({ |
| | 8761 | attachmentType: Schema.String, |
| | 8762 | createdAt: Schema.Number.annotate({ format: "int64" }).check( |
| | 8763 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 8764 | ), |
| | 8765 | id: Schema.String, |
| | 8766 | identityKey: Schema.String, |
| | 8767 | payload: Schema.Json.annotate({ expected: "JSON value" }), |
| | 8768 | }).annotate({ |
| | 8769 | description: "An independently persisted attachment associated with a thread.", |
| | 8770 | identifier: "V2ThreadAttachmentListResponse__ThreadAttachment", |
| | 8771 | }); |
| | 8772 | |
| | 8773 | export type V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation = |
| | 8774 | | "created" |
| | 8775 | | "deleted"; |
| | 8776 | export const V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation = Schema.Literals([ |
| | 8777 | "created", |
| | 8778 | "deleted", |
| | 8779 | ]).annotate({ |
| | 8780 | description: "The persisted attachment change represented by a notification.", |
| | 8781 | identifier: "V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation", |
| | 8782 | }); |
| | 8783 | |
| 7650 | export type V2ThreadForkParams__AskForApproval = | 8784 | export type V2ThreadForkParams__AskForApproval = |
| 7651 | | "untrusted" | 8785 | | "untrusted" |
| 7652 | | "on-request" | 8786 | | "on-request" |
| ... | @@ -7781,6 +8915,24 @@ export const V2ThreadForkResponse__GitInfo = Schema.Struct({ | ... | @@ -7781,6 +8915,24 @@ export const V2ThreadForkResponse__GitInfo = Schema.Struct({ |
| 7781 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 8915 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 7782 | }).annotate({ identifier: "V2ThreadForkResponse__GitInfo" }); | 8916 | }).annotate({ identifier: "V2ThreadForkResponse__GitInfo" }); |
| 7783 | | 8917 | |
| | 8918 | export type V2ThreadForkResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 8919 | export const V2ThreadForkResponse__ThreadHistoryMode = Schema.Literals([ |
| | 8920 | "legacy", |
| | 8921 | "paginated", |
| | 8922 | ]).annotate({ identifier: "V2ThreadForkResponse__ThreadHistoryMode" }); |
| | 8923 | |
| | 8924 | export type V2ThreadForkResponse__ThreadSectionAppearance = { |
| | 8925 | readonly color?: string | null; |
| | 8926 | readonly icon?: string | null; |
| | 8927 | }; |
| | 8928 | export const V2ThreadForkResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 8929 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8930 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 8931 | }).annotate({ |
| | 8932 | description: "Extensible visual presentation for a custom thread section.", |
| | 8933 | identifier: "V2ThreadForkResponse__ThreadSectionAppearance", |
| | 8934 | }); |
| | 8935 | |
| 7784 | export type V2ThreadForkResponse__AgentPath = string; | 8936 | export type V2ThreadForkResponse__AgentPath = string; |
| 7785 | export const V2ThreadForkResponse__AgentPath = Schema.String.annotate({ | 8937 | export const V2ThreadForkResponse__AgentPath = Schema.String.annotate({ |
| 7786 | identifier: "V2ThreadForkResponse__AgentPath", | 8938 | identifier: "V2ThreadForkResponse__AgentPath", |
| ... | @@ -7808,6 +8960,11 @@ export const V2ThreadForkResponse__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -7808,6 +8960,11 @@ export const V2ThreadForkResponse__NonSteerableTurnKind = Schema.Literals([ |
| 7808 | "compact", | 8960 | "compact", |
| 7809 | ]).annotate({ identifier: "V2ThreadForkResponse__NonSteerableTurnKind" }); | 8961 | ]).annotate({ identifier: "V2ThreadForkResponse__NonSteerableTurnKind" }); |
| 7810 | | 8962 | |
| | 8963 | export type V2ThreadForkResponse__MisalignmentSteer = { readonly message: string }; |
| | 8964 | export const V2ThreadForkResponse__MisalignmentSteer = Schema.Struct({ |
| | 8965 | message: Schema.String, |
| | 8966 | }).annotate({ identifier: "V2ThreadForkResponse__MisalignmentSteer" }); |
| | 8967 | |
| 7811 | export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number }; | 8968 | export type V2ThreadForkResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 7812 | export const V2ThreadForkResponse__ByteRange = Schema.Struct({ | 8969 | export const V2ThreadForkResponse__ByteRange = Schema.Struct({ |
| 7813 | end: Schema.Number.annotate({ format: "uint" }) | 8970 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -7839,6 +8996,11 @@ export const V2ThreadForkResponse__HookPromptFragment = Schema.Struct({ | ... | @@ -7839,6 +8996,11 @@ export const V2ThreadForkResponse__HookPromptFragment = Schema.Struct({ |
| 7839 | text: Schema.String, | 8996 | text: Schema.String, |
| 7840 | }).annotate({ identifier: "V2ThreadForkResponse__HookPromptFragment" }); | 8997 | }).annotate({ identifier: "V2ThreadForkResponse__HookPromptFragment" }); |
| 7841 | | 8998 | |
| | 8999 | export type V2ThreadForkResponse__AgentMessageDelivery = "async"; |
| | 9000 | export const V2ThreadForkResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 9001 | identifier: "V2ThreadForkResponse__AgentMessageDelivery", |
| | 9002 | }); |
| | 9003 | |
| 7842 | export type V2ThreadForkResponse__MemoryCitationEntry = { | 9004 | export type V2ThreadForkResponse__MemoryCitationEntry = { |
| 7843 | readonly lineEnd: number; | 9005 | readonly lineEnd: number; |
| 7844 | readonly lineStart: number; | 9006 | readonly lineStart: number; |
| ... | @@ -7878,6 +9040,15 @@ export const V2ThreadForkResponse__MessagePhase = Schema.Union( | ... | @@ -7878,6 +9040,15 @@ export const V2ThreadForkResponse__MessagePhase = Schema.Union( |
| 7878 | identifier: "V2ThreadForkResponse__MessagePhase", | 9040 | identifier: "V2ThreadForkResponse__MessagePhase", |
| 7879 | }); | 9041 | }); |
| 7880 | | 9042 | |
| | 9043 | export type V2ThreadForkResponse__AsyncUserInputQuestion = { |
| | 9044 | readonly options?: ReadonlyArray<string> | null; |
| | 9045 | readonly title: string; |
| | 9046 | }; |
| | 9047 | export const V2ThreadForkResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 9048 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 9049 | title: Schema.String, |
| | 9050 | }).annotate({ identifier: "V2ThreadForkResponse__AsyncUserInputQuestion" }); |
| | 9051 | |
| 7881 | export type V2ThreadForkResponse__CommandExecutionSource = | 9052 | export type V2ThreadForkResponse__CommandExecutionSource = |
| 7882 | | "agent" | 9053 | | "agent" |
| 7883 | | "userShell" | 9054 | | "userShell" |
| ... | @@ -7954,6 +9125,12 @@ export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ | ... | @@ -7954,6 +9125,12 @@ export const V2ThreadForkResponse__McpToolCallError = Schema.Struct({ |
| 7954 | message: Schema.String, | 9125 | message: Schema.String, |
| 7955 | }).annotate({ identifier: "V2ThreadForkResponse__McpToolCallError" }); | 9126 | }).annotate({ identifier: "V2ThreadForkResponse__McpToolCallError" }); |
| 7956 | | 9127 | |
| | 9128 | export type V2ThreadForkResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 9129 | export const V2ThreadForkResponse__McpAppDisplayMode = Schema.Literals([ |
| | 9130 | "inline", |
| | 9131 | "fullscreen", |
| | 9132 | ]).annotate({ identifier: "V2ThreadForkResponse__McpAppDisplayMode" }); |
| | 9133 | |
| 7957 | export type V2ThreadForkResponse__McpToolCallResult = { | 9134 | export type V2ThreadForkResponse__McpToolCallResult = { |
| 7958 | readonly _meta?: Schema.Json; | 9135 | readonly _meta?: Schema.Json; |
| 7959 | readonly content: ReadonlyArray<Schema.Json>; | 9136 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -8103,6 +9280,31 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( | ... | @@ -8103,6 +9280,31 @@ export const V2ThreadForkResponse__WebSearchAction = Schema.Union( |
| 8103 | { mode: "oneOf" }, | 9280 | { mode: "oneOf" }, |
| 8104 | ).annotate({ identifier: "V2ThreadForkResponse__WebSearchAction" }); | 9281 | ).annotate({ identifier: "V2ThreadForkResponse__WebSearchAction" }); |
| 8105 | | 9282 | |
| | 9283 | export type V2ThreadForkResponse__ImageGenerationFailure = { |
| | 9284 | readonly limitId: string; |
| | 9285 | readonly resetsAt?: number | null; |
| | 9286 | readonly type: "usageLimitExceeded"; |
| | 9287 | }; |
| | 9288 | export const V2ThreadForkResponse__ImageGenerationFailure = Schema.Union( |
| | 9289 | [ |
| | 9290 | Schema.Struct({ |
| | 9291 | limitId: Schema.String, |
| | 9292 | resetsAt: Schema.optionalKey( |
| | 9293 | Schema.Union([ |
| | 9294 | Schema.Number.annotate({ format: "int64" }).check( |
| | 9295 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 9296 | ), |
| | 9297 | Schema.Null, |
| | 9298 | ]), |
| | 9299 | ), |
| | 9300 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 9301 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 9302 | }), |
| | 9303 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 9304 | ], |
| | 9305 | { mode: "oneOf" }, |
| | 9306 | ).annotate({ identifier: "V2ThreadForkResponse__ImageGenerationFailure" }); |
| | 9307 | |
| 8106 | export type V2ThreadForkResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 9308 | export type V2ThreadForkResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 8107 | export const V2ThreadForkResponse__TurnItemsView = Schema.Union( | 9309 | export const V2ThreadForkResponse__TurnItemsView = Schema.Union( |
| 8108 | [ | 9310 | [ |
| ... | @@ -8196,6 +9398,376 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals | ... | @@ -8196,6 +9398,376 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoalStatus = Schema.Literals |
| 8196 | "complete", | 9398 | "complete", |
| 8197 | ]).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoalStatus" }); | 9399 | ]).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoalStatus" }); |
| 8198 | | 9400 | |
| | 9401 | export type V2ThreadItemsListParams__SortDirection = "asc" | "desc"; |
| | 9402 | export const V2ThreadItemsListParams__SortDirection = Schema.Literals(["asc", "desc"]).annotate({ |
| | 9403 | identifier: "V2ThreadItemsListParams__SortDirection", |
| | 9404 | }); |
| | 9405 | |
| | 9406 | export type V2ThreadItemsListResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 9407 | export const V2ThreadItemsListResponse__ByteRange = Schema.Struct({ |
| | 9408 | end: Schema.Number.annotate({ format: "uint" }) |
| | 9409 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9410 | .check( |
| | 9411 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9412 | ), |
| | 9413 | start: Schema.Number.annotate({ format: "uint" }) |
| | 9414 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9415 | .check( |
| | 9416 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9417 | ), |
| | 9418 | }).annotate({ identifier: "V2ThreadItemsListResponse__ByteRange" }); |
| | 9419 | |
| | 9420 | export type V2ThreadItemsListResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 9421 | export const V2ThreadItemsListResponse__ImageDetail = Schema.Literals([ |
| | 9422 | "auto", |
| | 9423 | "low", |
| | 9424 | "high", |
| | 9425 | "original", |
| | 9426 | ]).annotate({ identifier: "V2ThreadItemsListResponse__ImageDetail" }); |
| | 9427 | |
| | 9428 | export type V2ThreadItemsListResponse__HookPromptFragment = { |
| | 9429 | readonly hookRunId: string; |
| | 9430 | readonly text: string; |
| | 9431 | }; |
| | 9432 | export const V2ThreadItemsListResponse__HookPromptFragment = Schema.Struct({ |
| | 9433 | hookRunId: Schema.String, |
| | 9434 | text: Schema.String, |
| | 9435 | }).annotate({ identifier: "V2ThreadItemsListResponse__HookPromptFragment" }); |
| | 9436 | |
| | 9437 | export type V2ThreadItemsListResponse__AgentMessageDelivery = "async"; |
| | 9438 | export const V2ThreadItemsListResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 9439 | identifier: "V2ThreadItemsListResponse__AgentMessageDelivery", |
| | 9440 | }); |
| | 9441 | |
| | 9442 | export type V2ThreadItemsListResponse__MemoryCitationEntry = { |
| | 9443 | readonly lineEnd: number; |
| | 9444 | readonly lineStart: number; |
| | 9445 | readonly note: string; |
| | 9446 | readonly path: string; |
| | 9447 | }; |
| | 9448 | export const V2ThreadItemsListResponse__MemoryCitationEntry = Schema.Struct({ |
| | 9449 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| | 9450 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9451 | .check( |
| | 9452 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9453 | ), |
| | 9454 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 9455 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 9456 | .check( |
| | 9457 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 9458 | ), |
| | 9459 | note: Schema.String, |
| | 9460 | path: Schema.String, |
| | 9461 | }).annotate({ identifier: "V2ThreadItemsListResponse__MemoryCitationEntry" }); |
| | 9462 | |
| | 9463 | export type V2ThreadItemsListResponse__MessagePhase = "commentary" | "final_answer"; |
| | 9464 | export const V2ThreadItemsListResponse__MessagePhase = Schema.Union( |
| | 9465 | [ |
| | 9466 | Schema.Literal("commentary").annotate({ |
| | 9467 | description: |
| | 9468 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 9469 | }), |
| | 9470 | Schema.Literal("final_answer").annotate({ |
| | 9471 | description: "The assistant's terminal answer text for the current turn.", |
| | 9472 | }), |
| | 9473 | ], |
| | 9474 | { mode: "oneOf" }, |
| | 9475 | ).annotate({ |
| | 9476 | description: |
| | 9477 | '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.', |
| | 9478 | identifier: "V2ThreadItemsListResponse__MessagePhase", |
| | 9479 | }); |
| | 9480 | |
| | 9481 | export type V2ThreadItemsListResponse__AsyncUserInputQuestion = { |
| | 9482 | readonly options?: ReadonlyArray<string> | null; |
| | 9483 | readonly title: string; |
| | 9484 | }; |
| | 9485 | export const V2ThreadItemsListResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 9486 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 9487 | title: Schema.String, |
| | 9488 | }).annotate({ identifier: "V2ThreadItemsListResponse__AsyncUserInputQuestion" }); |
| | 9489 | |
| | 9490 | export type V2ThreadItemsListResponse__LegacyAppPathString = string; |
| | 9491 | export const V2ThreadItemsListResponse__LegacyAppPathString = Schema.String.annotate({ |
| | 9492 | identifier: "V2ThreadItemsListResponse__LegacyAppPathString", |
| | 9493 | }); |
| | 9494 | |
| | 9495 | export type V2ThreadItemsListResponse__CommandExecutionSource = |
| | 9496 | | "agent" |
| | 9497 | | "userShell" |
| | 9498 | | "unifiedExecStartup" |
| | 9499 | | "unifiedExecInteraction"; |
| | 9500 | export const V2ThreadItemsListResponse__CommandExecutionSource = Schema.Literals([ |
| | 9501 | "agent", |
| | 9502 | "userShell", |
| | 9503 | "unifiedExecStartup", |
| | 9504 | "unifiedExecInteraction", |
| | 9505 | ]).annotate({ identifier: "V2ThreadItemsListResponse__CommandExecutionSource" }); |
| | 9506 | |
| | 9507 | export type V2ThreadItemsListResponse__CommandExecutionStatus = |
| | 9508 | | "inProgress" |
| | 9509 | | "completed" |
| | 9510 | | "failed" |
| | 9511 | | "declined"; |
| | 9512 | export const V2ThreadItemsListResponse__CommandExecutionStatus = Schema.Literals([ |
| | 9513 | "inProgress", |
| | 9514 | "completed", |
| | 9515 | "failed", |
| | 9516 | "declined", |
| | 9517 | ]).annotate({ identifier: "V2ThreadItemsListResponse__CommandExecutionStatus" }); |
| | 9518 | |
| | 9519 | export type V2ThreadItemsListResponse__PatchChangeKind = |
| | 9520 | | { readonly type: "add" } |
| | 9521 | | { readonly type: "delete" } |
| | 9522 | | { readonly move_path?: string | null; readonly type: "update" }; |
| | 9523 | export const V2ThreadItemsListResponse__PatchChangeKind = Schema.Union( |
| | 9524 | [ |
| | 9525 | Schema.Struct({ |
| | 9526 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| | 9527 | }).annotate({ title: "AddPatchChangeKind" }), |
| | 9528 | Schema.Struct({ |
| | 9529 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| | 9530 | }).annotate({ title: "DeletePatchChangeKind" }), |
| | 9531 | Schema.Struct({ |
| | 9532 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9533 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| | 9534 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| | 9535 | ], |
| | 9536 | { mode: "oneOf" }, |
| | 9537 | ).annotate({ identifier: "V2ThreadItemsListResponse__PatchChangeKind" }); |
| | 9538 | |
| | 9539 | export type V2ThreadItemsListResponse__PatchApplyStatus = |
| | 9540 | | "inProgress" |
| | 9541 | | "completed" |
| | 9542 | | "failed" |
| | 9543 | | "declined"; |
| | 9544 | export const V2ThreadItemsListResponse__PatchApplyStatus = Schema.Literals([ |
| | 9545 | "inProgress", |
| | 9546 | "completed", |
| | 9547 | "failed", |
| | 9548 | "declined", |
| | 9549 | ]).annotate({ identifier: "V2ThreadItemsListResponse__PatchApplyStatus" }); |
| | 9550 | |
| | 9551 | export type V2ThreadItemsListResponse__McpToolCallAppContext = { |
| | 9552 | readonly actionName?: string | null; |
| | 9553 | readonly appName?: string | null; |
| | 9554 | readonly connectorId: string; |
| | 9555 | readonly linkId?: string | null; |
| | 9556 | readonly resourceUri?: string | null; |
| | 9557 | }; |
| | 9558 | export const V2ThreadItemsListResponse__McpToolCallAppContext = Schema.Struct({ |
| | 9559 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9560 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9561 | connectorId: Schema.String, |
| | 9562 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9563 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9564 | }).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallAppContext" }); |
| | 9565 | |
| | 9566 | export type V2ThreadItemsListResponse__McpToolCallError = { readonly message: string }; |
| | 9567 | export const V2ThreadItemsListResponse__McpToolCallError = Schema.Struct({ |
| | 9568 | message: Schema.String, |
| | 9569 | }).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallError" }); |
| | 9570 | |
| | 9571 | export type V2ThreadItemsListResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 9572 | export const V2ThreadItemsListResponse__McpAppDisplayMode = Schema.Literals([ |
| | 9573 | "inline", |
| | 9574 | "fullscreen", |
| | 9575 | ]).annotate({ identifier: "V2ThreadItemsListResponse__McpAppDisplayMode" }); |
| | 9576 | |
| | 9577 | export type V2ThreadItemsListResponse__McpToolCallResult = { |
| | 9578 | readonly _meta?: Schema.Json; |
| | 9579 | readonly content: ReadonlyArray<Schema.Json>; |
| | 9580 | readonly structuredContent?: Schema.Json; |
| | 9581 | }; |
| | 9582 | export const V2ThreadItemsListResponse__McpToolCallResult = Schema.Struct({ |
| | 9583 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 9584 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 9585 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 9586 | }).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallResult" }); |
| | 9587 | |
| | 9588 | export type V2ThreadItemsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 9589 | export const V2ThreadItemsListResponse__McpToolCallStatus = Schema.Literals([ |
| | 9590 | "inProgress", |
| | 9591 | "completed", |
| | 9592 | "failed", |
| | 9593 | ]).annotate({ identifier: "V2ThreadItemsListResponse__McpToolCallStatus" }); |
| | 9594 | |
| | 9595 | export type V2ThreadItemsListResponse__DynamicToolCallOutputContentItem = |
| | 9596 | | { readonly text: string; readonly type: "inputText" } |
| | 9597 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 9598 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 9599 | export const V2ThreadItemsListResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 9600 | [ |
| | 9601 | Schema.Struct({ |
| | 9602 | text: Schema.String, |
| | 9603 | type: Schema.Literal("inputText").annotate({ |
| | 9604 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 9605 | }), |
| | 9606 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 9607 | Schema.Struct({ |
| | 9608 | imageUrl: Schema.String, |
| | 9609 | type: Schema.Literal("inputImage").annotate({ |
| | 9610 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 9611 | }), |
| | 9612 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 9613 | Schema.Struct({ |
| | 9614 | audioUrl: Schema.String, |
| | 9615 | type: Schema.Literal("inputAudio").annotate({ |
| | 9616 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 9617 | }), |
| | 9618 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 9619 | ], |
| | 9620 | { mode: "oneOf" }, |
| | 9621 | ).annotate({ identifier: "V2ThreadItemsListResponse__DynamicToolCallOutputContentItem" }); |
| | 9622 | |
| | 9623 | export type V2ThreadItemsListResponse__DynamicToolCallStatus = |
| | 9624 | | "inProgress" |
| | 9625 | | "completed" |
| | 9626 | | "failed"; |
| | 9627 | export const V2ThreadItemsListResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 9628 | "inProgress", |
| | 9629 | "completed", |
| | 9630 | "failed", |
| | 9631 | ]).annotate({ identifier: "V2ThreadItemsListResponse__DynamicToolCallStatus" }); |
| | 9632 | |
| | 9633 | export type V2ThreadItemsListResponse__CollabAgentStatus = |
| | 9634 | | "pendingInit" |
| | 9635 | | "running" |
| | 9636 | | "interrupted" |
| | 9637 | | "completed" |
| | 9638 | | "errored" |
| | 9639 | | "shutdown" |
| | 9640 | | "notFound"; |
| | 9641 | export const V2ThreadItemsListResponse__CollabAgentStatus = Schema.Literals([ |
| | 9642 | "pendingInit", |
| | 9643 | "running", |
| | 9644 | "interrupted", |
| | 9645 | "completed", |
| | 9646 | "errored", |
| | 9647 | "shutdown", |
| | 9648 | "notFound", |
| | 9649 | ]).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentStatus" }); |
| | 9650 | |
| | 9651 | export type V2ThreadItemsListResponse__ReasoningEffort = string; |
| | 9652 | export const V2ThreadItemsListResponse__ReasoningEffort = Schema.String.annotate({ |
| | 9653 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 9654 | }).check( |
| | 9655 | Schema.isMinLength(1).annotate({ |
| | 9656 | expected: "a value with a length of at least 1", |
| | 9657 | identifier: "V2ThreadItemsListResponse__ReasoningEffort", |
| | 9658 | }), |
| | 9659 | ); |
| | 9660 | |
| | 9661 | export type V2ThreadItemsListResponse__CollabAgentToolCallStatus = |
| | 9662 | | "inProgress" |
| | 9663 | | "completed" |
| | 9664 | | "failed" |
| | 9665 | | "interrupted"; |
| | 9666 | export const V2ThreadItemsListResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 9667 | "inProgress", |
| | 9668 | "completed", |
| | 9669 | "failed", |
| | 9670 | "interrupted", |
| | 9671 | ]).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentToolCallStatus" }); |
| | 9672 | |
| | 9673 | export type V2ThreadItemsListResponse__CollabAgentTool = |
| | 9674 | | "spawnAgent" |
| | 9675 | | "sendInput" |
| | 9676 | | "resumeAgent" |
| | 9677 | | "wait" |
| | 9678 | | "closeAgent" |
| | 9679 | | "sendMessage" |
| | 9680 | | "followupTask" |
| | 9681 | | "interruptAgent" |
| | 9682 | | "listAgents"; |
| | 9683 | export const V2ThreadItemsListResponse__CollabAgentTool = Schema.Literals([ |
| | 9684 | "spawnAgent", |
| | 9685 | "sendInput", |
| | 9686 | "resumeAgent", |
| | 9687 | "wait", |
| | 9688 | "closeAgent", |
| | 9689 | "sendMessage", |
| | 9690 | "followupTask", |
| | 9691 | "interruptAgent", |
| | 9692 | "listAgents", |
| | 9693 | ]).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentTool" }); |
| | 9694 | |
| | 9695 | export type V2ThreadItemsListResponse__SubAgentActivityKind = |
| | 9696 | | "started" |
| | 9697 | | "interacted" |
| | 9698 | | "interrupted" |
| | 9699 | | "completed"; |
| | 9700 | export const V2ThreadItemsListResponse__SubAgentActivityKind = Schema.Literals([ |
| | 9701 | "started", |
| | 9702 | "interacted", |
| | 9703 | "interrupted", |
| | 9704 | "completed", |
| | 9705 | ]).annotate({ identifier: "V2ThreadItemsListResponse__SubAgentActivityKind" }); |
| | 9706 | |
| | 9707 | export type V2ThreadItemsListResponse__WebSearchAction = |
| | 9708 | | { |
| | 9709 | readonly queries?: ReadonlyArray<string> | null; |
| | 9710 | readonly query?: string | null; |
| | 9711 | readonly type: "search"; |
| | 9712 | } |
| | 9713 | | { readonly type: "openPage"; readonly url?: string | null } |
| | 9714 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } |
| | 9715 | | { readonly type: "other" }; |
| | 9716 | export const V2ThreadItemsListResponse__WebSearchAction = Schema.Union( |
| | 9717 | [ |
| | 9718 | Schema.Struct({ |
| | 9719 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 9720 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9721 | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), |
| | 9722 | }).annotate({ title: "SearchWebSearchAction" }), |
| | 9723 | Schema.Struct({ |
| | 9724 | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), |
| | 9725 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9726 | }).annotate({ title: "OpenPageWebSearchAction" }), |
| | 9727 | Schema.Struct({ |
| | 9728 | pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9729 | type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }), |
| | 9730 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9731 | }).annotate({ title: "FindInPageWebSearchAction" }), |
| | 9732 | Schema.Struct({ |
| | 9733 | type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }), |
| | 9734 | }).annotate({ title: "OtherWebSearchAction" }), |
| | 9735 | ], |
| | 9736 | { mode: "oneOf" }, |
| | 9737 | ).annotate({ identifier: "V2ThreadItemsListResponse__WebSearchAction" }); |
| | 9738 | |
| | 9739 | export type V2ThreadItemsListResponse__ImageGenerationFailure = { |
| | 9740 | readonly limitId: string; |
| | 9741 | readonly resetsAt?: number | null; |
| | 9742 | readonly type: "usageLimitExceeded"; |
| | 9743 | }; |
| | 9744 | export const V2ThreadItemsListResponse__ImageGenerationFailure = Schema.Union( |
| | 9745 | [ |
| | 9746 | Schema.Struct({ |
| | 9747 | limitId: Schema.String, |
| | 9748 | resetsAt: Schema.optionalKey( |
| | 9749 | Schema.Union([ |
| | 9750 | Schema.Number.annotate({ format: "int64" }).check( |
| | 9751 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 9752 | ), |
| | 9753 | Schema.Null, |
| | 9754 | ]), |
| | 9755 | ), |
| | 9756 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 9757 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 9758 | }), |
| | 9759 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 9760 | ], |
| | 9761 | { mode: "oneOf" }, |
| | 9762 | ).annotate({ identifier: "V2ThreadItemsListResponse__ImageGenerationFailure" }); |
| | 9763 | |
| | 9764 | export type V2ThreadItemsListResponse__AbsolutePathBuf = string; |
| | 9765 | export const V2ThreadItemsListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 9766 | description: |
| | 9767 | "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.", |
| | 9768 | identifier: "V2ThreadItemsListResponse__AbsolutePathBuf", |
| | 9769 | }); |
| | 9770 | |
| 8199 | export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>; | 9771 | export type V2ThreadListParams__ThreadListCwdFilter = string | ReadonlyArray<string>; |
| 8200 | export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([ | 9772 | export const V2ThreadListParams__ThreadListCwdFilter = Schema.Union([ |
| 8201 | Schema.String, | 9773 | Schema.String, |
| ... | @@ -8207,11 +9779,16 @@ export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"] | ... | @@ -8207,11 +9779,16 @@ export const V2ThreadListParams__SortDirection = Schema.Literals(["asc", "desc"] |
| 8207 | identifier: "V2ThreadListParams__SortDirection", | 9779 | identifier: "V2ThreadListParams__SortDirection", |
| 8208 | }); | 9780 | }); |
| 8209 | | 9781 | |
| 8210 | export type V2ThreadListParams__ThreadSortKey = "created_at" | "updated_at" | "recency_at"; | 9782 | export type V2ThreadListParams__ThreadSortKey = |
| | 9783 | | "created_at" |
| | 9784 | | "updated_at" |
| | 9785 | | "recency_at" |
| | 9786 | | "section_position"; |
| 8211 | export const V2ThreadListParams__ThreadSortKey = Schema.Literals([ | 9787 | export const V2ThreadListParams__ThreadSortKey = Schema.Literals([ |
| 8212 | "created_at", | 9788 | "created_at", |
| 8213 | "updated_at", | 9789 | "updated_at", |
| 8214 | "recency_at", | 9790 | "recency_at", |
| | 9791 | "section_position", |
| 8215 | ]).annotate({ identifier: "V2ThreadListParams__ThreadSortKey" }); | 9792 | ]).annotate({ identifier: "V2ThreadListParams__ThreadSortKey" }); |
| 8216 | | 9793 | |
| 8217 | export type V2ThreadListParams__ThreadSourceKind = | 9794 | export type V2ThreadListParams__ThreadSourceKind = |
| ... | @@ -8256,6 +9833,34 @@ export const V2ThreadListResponse__GitInfo = Schema.Struct({ | ... | @@ -8256,6 +9833,34 @@ export const V2ThreadListResponse__GitInfo = Schema.Struct({ |
| 8256 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 9833 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8257 | }).annotate({ identifier: "V2ThreadListResponse__GitInfo" }); | 9834 | }).annotate({ identifier: "V2ThreadListResponse__GitInfo" }); |
| 8258 | | 9835 | |
| | 9836 | export type V2ThreadListResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 9837 | export const V2ThreadListResponse__ThreadHistoryMode = Schema.Literals([ |
| | 9838 | "legacy", |
| | 9839 | "paginated", |
| | 9840 | ]).annotate({ identifier: "V2ThreadListResponse__ThreadHistoryMode" }); |
| | 9841 | |
| | 9842 | export type V2ThreadListResponse__ReasoningEffort = string; |
| | 9843 | export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({ |
| | 9844 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 9845 | }).check( |
| | 9846 | Schema.isMinLength(1).annotate({ |
| | 9847 | expected: "a value with a length of at least 1", |
| | 9848 | identifier: "V2ThreadListResponse__ReasoningEffort", |
| | 9849 | }), |
| | 9850 | ); |
| | 9851 | |
| | 9852 | export type V2ThreadListResponse__ThreadSectionAppearance = { |
| | 9853 | readonly color?: string | null; |
| | 9854 | readonly icon?: string | null; |
| | 9855 | }; |
| | 9856 | export const V2ThreadListResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 9857 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9858 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 9859 | }).annotate({ |
| | 9860 | description: "Extensible visual presentation for a custom thread section.", |
| | 9861 | identifier: "V2ThreadListResponse__ThreadSectionAppearance", |
| | 9862 | }); |
| | 9863 | |
| 8259 | export type V2ThreadListResponse__AgentPath = string; | 9864 | export type V2ThreadListResponse__AgentPath = string; |
| 8260 | export const V2ThreadListResponse__AgentPath = Schema.String.annotate({ | 9865 | export const V2ThreadListResponse__AgentPath = Schema.String.annotate({ |
| 8261 | identifier: "V2ThreadListResponse__AgentPath", | 9866 | identifier: "V2ThreadListResponse__AgentPath", |
| ... | @@ -8283,6 +9888,11 @@ export const V2ThreadListResponse__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -8283,6 +9888,11 @@ export const V2ThreadListResponse__NonSteerableTurnKind = Schema.Literals([ |
| 8283 | "compact", | 9888 | "compact", |
| 8284 | ]).annotate({ identifier: "V2ThreadListResponse__NonSteerableTurnKind" }); | 9889 | ]).annotate({ identifier: "V2ThreadListResponse__NonSteerableTurnKind" }); |
| 8285 | | 9890 | |
| | 9891 | export type V2ThreadListResponse__MisalignmentSteer = { readonly message: string }; |
| | 9892 | export const V2ThreadListResponse__MisalignmentSteer = Schema.Struct({ |
| | 9893 | message: Schema.String, |
| | 9894 | }).annotate({ identifier: "V2ThreadListResponse__MisalignmentSteer" }); |
| | 9895 | |
| 8286 | export type V2ThreadListResponse__ByteRange = { readonly end: number; readonly start: number }; | 9896 | export type V2ThreadListResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 8287 | export const V2ThreadListResponse__ByteRange = Schema.Struct({ | 9897 | export const V2ThreadListResponse__ByteRange = Schema.Struct({ |
| 8288 | end: Schema.Number.annotate({ format: "uint" }) | 9898 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -8314,6 +9924,11 @@ export const V2ThreadListResponse__HookPromptFragment = Schema.Struct({ | ... | @@ -8314,6 +9924,11 @@ export const V2ThreadListResponse__HookPromptFragment = Schema.Struct({ |
| 8314 | text: Schema.String, | 9924 | text: Schema.String, |
| 8315 | }).annotate({ identifier: "V2ThreadListResponse__HookPromptFragment" }); | 9925 | }).annotate({ identifier: "V2ThreadListResponse__HookPromptFragment" }); |
| 8316 | | 9926 | |
| | 9927 | export type V2ThreadListResponse__AgentMessageDelivery = "async"; |
| | 9928 | export const V2ThreadListResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 9929 | identifier: "V2ThreadListResponse__AgentMessageDelivery", |
| | 9930 | }); |
| | 9931 | |
| 8317 | export type V2ThreadListResponse__MemoryCitationEntry = { | 9932 | export type V2ThreadListResponse__MemoryCitationEntry = { |
| 8318 | readonly lineEnd: number; | 9933 | readonly lineEnd: number; |
| 8319 | readonly lineStart: number; | 9934 | readonly lineStart: number; |
| ... | @@ -8353,6 +9968,15 @@ export const V2ThreadListResponse__MessagePhase = Schema.Union( | ... | @@ -8353,6 +9968,15 @@ export const V2ThreadListResponse__MessagePhase = Schema.Union( |
| 8353 | identifier: "V2ThreadListResponse__MessagePhase", | 9968 | identifier: "V2ThreadListResponse__MessagePhase", |
| 8354 | }); | 9969 | }); |
| 8355 | | 9970 | |
| | 9971 | export type V2ThreadListResponse__AsyncUserInputQuestion = { |
| | 9972 | readonly options?: ReadonlyArray<string> | null; |
| | 9973 | readonly title: string; |
| | 9974 | }; |
| | 9975 | export const V2ThreadListResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 9976 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 9977 | title: Schema.String, |
| | 9978 | }).annotate({ identifier: "V2ThreadListResponse__AsyncUserInputQuestion" }); |
| | 9979 | |
| 8356 | export type V2ThreadListResponse__LegacyAppPathString = string; | 9980 | export type V2ThreadListResponse__LegacyAppPathString = string; |
| 8357 | export const V2ThreadListResponse__LegacyAppPathString = Schema.String.annotate({ | 9981 | export const V2ThreadListResponse__LegacyAppPathString = Schema.String.annotate({ |
| 8358 | identifier: "V2ThreadListResponse__LegacyAppPathString", | 9982 | identifier: "V2ThreadListResponse__LegacyAppPathString", |
| ... | @@ -8434,6 +10058,12 @@ export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ | ... | @@ -8434,6 +10058,12 @@ export const V2ThreadListResponse__McpToolCallError = Schema.Struct({ |
| 8434 | message: Schema.String, | 10058 | message: Schema.String, |
| 8435 | }).annotate({ identifier: "V2ThreadListResponse__McpToolCallError" }); | 10059 | }).annotate({ identifier: "V2ThreadListResponse__McpToolCallError" }); |
| 8436 | | 10060 | |
| | 10061 | export type V2ThreadListResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 10062 | export const V2ThreadListResponse__McpAppDisplayMode = Schema.Literals([ |
| | 10063 | "inline", |
| | 10064 | "fullscreen", |
| | 10065 | ]).annotate({ identifier: "V2ThreadListResponse__McpAppDisplayMode" }); |
| | 10066 | |
| 8437 | export type V2ThreadListResponse__McpToolCallResult = { | 10067 | export type V2ThreadListResponse__McpToolCallResult = { |
| 8438 | readonly _meta?: Schema.Json; | 10068 | readonly _meta?: Schema.Json; |
| 8439 | readonly content: ReadonlyArray<Schema.Json>; | 10069 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -8505,16 +10135,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([ | ... | @@ -8505,16 +10135,6 @@ export const V2ThreadListResponse__CollabAgentStatus = Schema.Literals([ |
| 8505 | "notFound", | 10135 | "notFound", |
| 8506 | ]).annotate({ identifier: "V2ThreadListResponse__CollabAgentStatus" }); | 10136 | ]).annotate({ identifier: "V2ThreadListResponse__CollabAgentStatus" }); |
| 8507 | | 10137 | |
| 8508 | export type V2ThreadListResponse__ReasoningEffort = string; | | |
| 8509 | export const V2ThreadListResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 8510 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 8511 | }).check( | | |
| 8512 | Schema.isMinLength(1).annotate({ | | |
| 8513 | expected: "a value with a length of at least 1", | | |
| 8514 | identifier: "V2ThreadListResponse__ReasoningEffort", | | |
| 8515 | }), | | |
| 8516 | ); | | |
| 8517 | | | |
| 8518 | export type V2ThreadListResponse__CollabAgentToolCallStatus = | 10138 | export type V2ThreadListResponse__CollabAgentToolCallStatus = |
| 8519 | | "inProgress" | 10139 | | "inProgress" |
| 8520 | | "completed" | 10140 | | "completed" |
| ... | @@ -8593,6 +10213,31 @@ export const V2ThreadListResponse__WebSearchAction = Schema.Union( | ... | @@ -8593,6 +10213,31 @@ export const V2ThreadListResponse__WebSearchAction = Schema.Union( |
| 8593 | { mode: "oneOf" }, | 10213 | { mode: "oneOf" }, |
| 8594 | ).annotate({ identifier: "V2ThreadListResponse__WebSearchAction" }); | 10214 | ).annotate({ identifier: "V2ThreadListResponse__WebSearchAction" }); |
| 8595 | | 10215 | |
| | 10216 | export type V2ThreadListResponse__ImageGenerationFailure = { |
| | 10217 | readonly limitId: string; |
| | 10218 | readonly resetsAt?: number | null; |
| | 10219 | readonly type: "usageLimitExceeded"; |
| | 10220 | }; |
| | 10221 | export const V2ThreadListResponse__ImageGenerationFailure = Schema.Union( |
| | 10222 | [ |
| | 10223 | Schema.Struct({ |
| | 10224 | limitId: Schema.String, |
| | 10225 | resetsAt: Schema.optionalKey( |
| | 10226 | Schema.Union([ |
| | 10227 | Schema.Number.annotate({ format: "int64" }).check( |
| | 10228 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 10229 | ), |
| | 10230 | Schema.Null, |
| | 10231 | ]), |
| | 10232 | ), |
| | 10233 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 10234 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 10235 | }), |
| | 10236 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 10237 | ], |
| | 10238 | { mode: "oneOf" }, |
| | 10239 | ).annotate({ identifier: "V2ThreadListResponse__ImageGenerationFailure" }); |
| | 10240 | |
| 8596 | export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 10241 | export type V2ThreadListResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 8597 | export const V2ThreadListResponse__TurnItemsView = Schema.Union( | 10242 | export const V2ThreadListResponse__TurnItemsView = Schema.Union( |
| 8598 | [ | 10243 | [ |
| ... | @@ -8675,6 +10320,34 @@ export const V2ThreadMetadataUpdateResponse__GitInfo = Schema.Struct({ | ... | @@ -8675,6 +10320,34 @@ export const V2ThreadMetadataUpdateResponse__GitInfo = Schema.Struct({ |
| 8675 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10320 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 8676 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__GitInfo" }); | 10321 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__GitInfo" }); |
| 8677 | | 10322 | |
| | 10323 | export type V2ThreadMetadataUpdateResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 10324 | export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals([ |
| | 10325 | "legacy", |
| | 10326 | "paginated", |
| | 10327 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadHistoryMode" }); |
| | 10328 | |
| | 10329 | export type V2ThreadMetadataUpdateResponse__ReasoningEffort = string; |
| | 10330 | export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.annotate({ |
| | 10331 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 10332 | }).check( |
| | 10333 | Schema.isMinLength(1).annotate({ |
| | 10334 | expected: "a value with a length of at least 1", |
| | 10335 | identifier: "V2ThreadMetadataUpdateResponse__ReasoningEffort", |
| | 10336 | }), |
| | 10337 | ); |
| | 10338 | |
| | 10339 | export type V2ThreadMetadataUpdateResponse__ThreadSectionAppearance = { |
| | 10340 | readonly color?: string | null; |
| | 10341 | readonly icon?: string | null; |
| | 10342 | }; |
| | 10343 | export const V2ThreadMetadataUpdateResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 10344 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10345 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10346 | }).annotate({ |
| | 10347 | description: "Extensible visual presentation for a custom thread section.", |
| | 10348 | identifier: "V2ThreadMetadataUpdateResponse__ThreadSectionAppearance", |
| | 10349 | }); |
| | 10350 | |
| 8678 | export type V2ThreadMetadataUpdateResponse__AgentPath = string; | 10351 | export type V2ThreadMetadataUpdateResponse__AgentPath = string; |
| 8679 | export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String.annotate({ | 10352 | export const V2ThreadMetadataUpdateResponse__AgentPath = Schema.String.annotate({ |
| 8680 | identifier: "V2ThreadMetadataUpdateResponse__AgentPath", | 10353 | identifier: "V2ThreadMetadataUpdateResponse__AgentPath", |
| ... | @@ -8704,6 +10377,11 @@ export const V2ThreadMetadataUpdateResponse__NonSteerableTurnKind = Schema.Liter | ... | @@ -8704,6 +10377,11 @@ export const V2ThreadMetadataUpdateResponse__NonSteerableTurnKind = Schema.Liter |
| 8704 | "compact", | 10377 | "compact", |
| 8705 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__NonSteerableTurnKind" }); | 10378 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__NonSteerableTurnKind" }); |
| 8706 | | 10379 | |
| | 10380 | export type V2ThreadMetadataUpdateResponse__MisalignmentSteer = { readonly message: string }; |
| | 10381 | export const V2ThreadMetadataUpdateResponse__MisalignmentSteer = Schema.Struct({ |
| | 10382 | message: Schema.String, |
| | 10383 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MisalignmentSteer" }); |
| | 10384 | |
| 8707 | export type V2ThreadMetadataUpdateResponse__ByteRange = { | 10385 | export type V2ThreadMetadataUpdateResponse__ByteRange = { |
| 8708 | readonly end: number; | 10386 | readonly end: number; |
| 8709 | readonly start: number; | 10387 | readonly start: number; |
| ... | @@ -8738,6 +10416,11 @@ export const V2ThreadMetadataUpdateResponse__HookPromptFragment = Schema.Struct( | ... | @@ -8738,6 +10416,11 @@ export const V2ThreadMetadataUpdateResponse__HookPromptFragment = Schema.Struct( |
| 8738 | text: Schema.String, | 10416 | text: Schema.String, |
| 8739 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__HookPromptFragment" }); | 10417 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__HookPromptFragment" }); |
| 8740 | | 10418 | |
| | 10419 | export type V2ThreadMetadataUpdateResponse__AgentMessageDelivery = "async"; |
| | 10420 | export const V2ThreadMetadataUpdateResponse__AgentMessageDelivery = Schema.Literal( |
| | 10421 | "async", |
| | 10422 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__AgentMessageDelivery" }); |
| | 10423 | |
| 8741 | export type V2ThreadMetadataUpdateResponse__MemoryCitationEntry = { | 10424 | export type V2ThreadMetadataUpdateResponse__MemoryCitationEntry = { |
| 8742 | readonly lineEnd: number; | 10425 | readonly lineEnd: number; |
| 8743 | readonly lineStart: number; | 10426 | readonly lineStart: number; |
| ... | @@ -8777,6 +10460,15 @@ export const V2ThreadMetadataUpdateResponse__MessagePhase = Schema.Union( | ... | @@ -8777,6 +10460,15 @@ export const V2ThreadMetadataUpdateResponse__MessagePhase = Schema.Union( |
| 8777 | identifier: "V2ThreadMetadataUpdateResponse__MessagePhase", | 10460 | identifier: "V2ThreadMetadataUpdateResponse__MessagePhase", |
| 8778 | }); | 10461 | }); |
| 8779 | | 10462 | |
| | 10463 | export type V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion = { |
| | 10464 | readonly options?: ReadonlyArray<string> | null; |
| | 10465 | readonly title: string; |
| | 10466 | }; |
| | 10467 | export const V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 10468 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 10469 | title: Schema.String, |
| | 10470 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion" }); |
| | 10471 | |
| 8780 | export type V2ThreadMetadataUpdateResponse__LegacyAppPathString = string; | 10472 | export type V2ThreadMetadataUpdateResponse__LegacyAppPathString = string; |
| 8781 | export const V2ThreadMetadataUpdateResponse__LegacyAppPathString = Schema.String.annotate({ | 10473 | export const V2ThreadMetadataUpdateResponse__LegacyAppPathString = Schema.String.annotate({ |
| 8782 | identifier: "V2ThreadMetadataUpdateResponse__LegacyAppPathString", | 10474 | identifier: "V2ThreadMetadataUpdateResponse__LegacyAppPathString", |
| ... | @@ -8858,6 +10550,12 @@ export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({ | ... | @@ -8858,6 +10550,12 @@ export const V2ThreadMetadataUpdateResponse__McpToolCallError = Schema.Struct({ |
| 8858 | message: Schema.String, | 10550 | message: Schema.String, |
| 8859 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpToolCallError" }); | 10551 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpToolCallError" }); |
| 8860 | | 10552 | |
| | 10553 | export type V2ThreadMetadataUpdateResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 10554 | export const V2ThreadMetadataUpdateResponse__McpAppDisplayMode = Schema.Literals([ |
| | 10555 | "inline", |
| | 10556 | "fullscreen", |
| | 10557 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__McpAppDisplayMode" }); |
| | 10558 | |
| 8861 | export type V2ThreadMetadataUpdateResponse__McpToolCallResult = { | 10559 | export type V2ThreadMetadataUpdateResponse__McpToolCallResult = { |
| 8862 | readonly _meta?: Schema.Json; | 10560 | readonly _meta?: Schema.Json; |
| 8863 | readonly content: ReadonlyArray<Schema.Json>; | 10561 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -8935,16 +10633,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals | ... | @@ -8935,16 +10633,6 @@ export const V2ThreadMetadataUpdateResponse__CollabAgentStatus = Schema.Literals |
| 8935 | "notFound", | 10633 | "notFound", |
| 8936 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentStatus" }); | 10634 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentStatus" }); |
| 8937 | | 10635 | |
| 8938 | export type V2ThreadMetadataUpdateResponse__ReasoningEffort = string; | | |
| 8939 | export const V2ThreadMetadataUpdateResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 8940 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 8941 | }).check( | | |
| 8942 | Schema.isMinLength(1).annotate({ | | |
| 8943 | expected: "a value with a length of at least 1", | | |
| 8944 | identifier: "V2ThreadMetadataUpdateResponse__ReasoningEffort", | | |
| 8945 | }), | | |
| 8946 | ); | | |
| 8947 | | | |
| 8948 | export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = | 10636 | export type V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus = |
| 8949 | | "inProgress" | 10637 | | "inProgress" |
| 8950 | | "completed" | 10638 | | "completed" |
| ... | @@ -9023,6 +10711,31 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union( | ... | @@ -9023,6 +10711,31 @@ export const V2ThreadMetadataUpdateResponse__WebSearchAction = Schema.Union( |
| 9023 | { mode: "oneOf" }, | 10711 | { mode: "oneOf" }, |
| 9024 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__WebSearchAction" }); | 10712 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__WebSearchAction" }); |
| 9025 | | 10713 | |
| | 10714 | export type V2ThreadMetadataUpdateResponse__ImageGenerationFailure = { |
| | 10715 | readonly limitId: string; |
| | 10716 | readonly resetsAt?: number | null; |
| | 10717 | readonly type: "usageLimitExceeded"; |
| | 10718 | }; |
| | 10719 | export const V2ThreadMetadataUpdateResponse__ImageGenerationFailure = Schema.Union( |
| | 10720 | [ |
| | 10721 | Schema.Struct({ |
| | 10722 | limitId: Schema.String, |
| | 10723 | resetsAt: Schema.optionalKey( |
| | 10724 | Schema.Union([ |
| | 10725 | Schema.Number.annotate({ format: "int64" }).check( |
| | 10726 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 10727 | ), |
| | 10728 | Schema.Null, |
| | 10729 | ]), |
| | 10730 | ), |
| | 10731 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 10732 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 10733 | }), |
| | 10734 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 10735 | ], |
| | 10736 | { mode: "oneOf" }, |
| | 10737 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ImageGenerationFailure" }); |
| | 10738 | |
| 9026 | export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 10739 | export type V2ThreadMetadataUpdateResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 9027 | export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Union( | 10740 | export const V2ThreadMetadataUpdateResponse__TurnItemsView = Schema.Union( |
| 9028 | [ | 10741 | [ |
| ... | @@ -9070,6 +10783,34 @@ export const V2ThreadReadResponse__GitInfo = Schema.Struct({ | ... | @@ -9070,6 +10783,34 @@ export const V2ThreadReadResponse__GitInfo = Schema.Struct({ |
| 9070 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 10783 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9071 | }).annotate({ identifier: "V2ThreadReadResponse__GitInfo" }); | 10784 | }).annotate({ identifier: "V2ThreadReadResponse__GitInfo" }); |
| 9072 | | 10785 | |
| | 10786 | export type V2ThreadReadResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 10787 | export const V2ThreadReadResponse__ThreadHistoryMode = Schema.Literals([ |
| | 10788 | "legacy", |
| | 10789 | "paginated", |
| | 10790 | ]).annotate({ identifier: "V2ThreadReadResponse__ThreadHistoryMode" }); |
| | 10791 | |
| | 10792 | export type V2ThreadReadResponse__ReasoningEffort = string; |
| | 10793 | export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({ |
| | 10794 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 10795 | }).check( |
| | 10796 | Schema.isMinLength(1).annotate({ |
| | 10797 | expected: "a value with a length of at least 1", |
| | 10798 | identifier: "V2ThreadReadResponse__ReasoningEffort", |
| | 10799 | }), |
| | 10800 | ); |
| | 10801 | |
| | 10802 | export type V2ThreadReadResponse__ThreadSectionAppearance = { |
| | 10803 | readonly color?: string | null; |
| | 10804 | readonly icon?: string | null; |
| | 10805 | }; |
| | 10806 | export const V2ThreadReadResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 10807 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10808 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 10809 | }).annotate({ |
| | 10810 | description: "Extensible visual presentation for a custom thread section.", |
| | 10811 | identifier: "V2ThreadReadResponse__ThreadSectionAppearance", |
| | 10812 | }); |
| | 10813 | |
| 9073 | export type V2ThreadReadResponse__AgentPath = string; | 10814 | export type V2ThreadReadResponse__AgentPath = string; |
| 9074 | export const V2ThreadReadResponse__AgentPath = Schema.String.annotate({ | 10815 | export const V2ThreadReadResponse__AgentPath = Schema.String.annotate({ |
| 9075 | identifier: "V2ThreadReadResponse__AgentPath", | 10816 | identifier: "V2ThreadReadResponse__AgentPath", |
| ... | @@ -9097,6 +10838,11 @@ export const V2ThreadReadResponse__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -9097,6 +10838,11 @@ export const V2ThreadReadResponse__NonSteerableTurnKind = Schema.Literals([ |
| 9097 | "compact", | 10838 | "compact", |
| 9098 | ]).annotate({ identifier: "V2ThreadReadResponse__NonSteerableTurnKind" }); | 10839 | ]).annotate({ identifier: "V2ThreadReadResponse__NonSteerableTurnKind" }); |
| 9099 | | 10840 | |
| | 10841 | export type V2ThreadReadResponse__MisalignmentSteer = { readonly message: string }; |
| | 10842 | export const V2ThreadReadResponse__MisalignmentSteer = Schema.Struct({ |
| | 10843 | message: Schema.String, |
| | 10844 | }).annotate({ identifier: "V2ThreadReadResponse__MisalignmentSteer" }); |
| | 10845 | |
| 9100 | export type V2ThreadReadResponse__ByteRange = { readonly end: number; readonly start: number }; | 10846 | export type V2ThreadReadResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 9101 | export const V2ThreadReadResponse__ByteRange = Schema.Struct({ | 10847 | export const V2ThreadReadResponse__ByteRange = Schema.Struct({ |
| 9102 | end: Schema.Number.annotate({ format: "uint" }) | 10848 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -9128,6 +10874,11 @@ export const V2ThreadReadResponse__HookPromptFragment = Schema.Struct({ | ... | @@ -9128,6 +10874,11 @@ export const V2ThreadReadResponse__HookPromptFragment = Schema.Struct({ |
| 9128 | text: Schema.String, | 10874 | text: Schema.String, |
| 9129 | }).annotate({ identifier: "V2ThreadReadResponse__HookPromptFragment" }); | 10875 | }).annotate({ identifier: "V2ThreadReadResponse__HookPromptFragment" }); |
| 9130 | | 10876 | |
| | 10877 | export type V2ThreadReadResponse__AgentMessageDelivery = "async"; |
| | 10878 | export const V2ThreadReadResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 10879 | identifier: "V2ThreadReadResponse__AgentMessageDelivery", |
| | 10880 | }); |
| | 10881 | |
| 9131 | export type V2ThreadReadResponse__MemoryCitationEntry = { | 10882 | export type V2ThreadReadResponse__MemoryCitationEntry = { |
| 9132 | readonly lineEnd: number; | 10883 | readonly lineEnd: number; |
| 9133 | readonly lineStart: number; | 10884 | readonly lineStart: number; |
| ... | @@ -9167,6 +10918,15 @@ export const V2ThreadReadResponse__MessagePhase = Schema.Union( | ... | @@ -9167,6 +10918,15 @@ export const V2ThreadReadResponse__MessagePhase = Schema.Union( |
| 9167 | identifier: "V2ThreadReadResponse__MessagePhase", | 10918 | identifier: "V2ThreadReadResponse__MessagePhase", |
| 9168 | }); | 10919 | }); |
| 9169 | | 10920 | |
| | 10921 | export type V2ThreadReadResponse__AsyncUserInputQuestion = { |
| | 10922 | readonly options?: ReadonlyArray<string> | null; |
| | 10923 | readonly title: string; |
| | 10924 | }; |
| | 10925 | export const V2ThreadReadResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 10926 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 10927 | title: Schema.String, |
| | 10928 | }).annotate({ identifier: "V2ThreadReadResponse__AsyncUserInputQuestion" }); |
| | 10929 | |
| 9170 | export type V2ThreadReadResponse__LegacyAppPathString = string; | 10930 | export type V2ThreadReadResponse__LegacyAppPathString = string; |
| 9171 | export const V2ThreadReadResponse__LegacyAppPathString = Schema.String.annotate({ | 10931 | export const V2ThreadReadResponse__LegacyAppPathString = Schema.String.annotate({ |
| 9172 | identifier: "V2ThreadReadResponse__LegacyAppPathString", | 10932 | identifier: "V2ThreadReadResponse__LegacyAppPathString", |
| ... | @@ -9248,6 +11008,12 @@ export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ | ... | @@ -9248,6 +11008,12 @@ export const V2ThreadReadResponse__McpToolCallError = Schema.Struct({ |
| 9248 | message: Schema.String, | 11008 | message: Schema.String, |
| 9249 | }).annotate({ identifier: "V2ThreadReadResponse__McpToolCallError" }); | 11009 | }).annotate({ identifier: "V2ThreadReadResponse__McpToolCallError" }); |
| 9250 | | 11010 | |
| | 11011 | export type V2ThreadReadResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 11012 | export const V2ThreadReadResponse__McpAppDisplayMode = Schema.Literals([ |
| | 11013 | "inline", |
| | 11014 | "fullscreen", |
| | 11015 | ]).annotate({ identifier: "V2ThreadReadResponse__McpAppDisplayMode" }); |
| | 11016 | |
| 9251 | export type V2ThreadReadResponse__McpToolCallResult = { | 11017 | export type V2ThreadReadResponse__McpToolCallResult = { |
| 9252 | readonly _meta?: Schema.Json; | 11018 | readonly _meta?: Schema.Json; |
| 9253 | readonly content: ReadonlyArray<Schema.Json>; | 11019 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -9319,16 +11085,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([ | ... | @@ -9319,16 +11085,6 @@ export const V2ThreadReadResponse__CollabAgentStatus = Schema.Literals([ |
| 9319 | "notFound", | 11085 | "notFound", |
| 9320 | ]).annotate({ identifier: "V2ThreadReadResponse__CollabAgentStatus" }); | 11086 | ]).annotate({ identifier: "V2ThreadReadResponse__CollabAgentStatus" }); |
| 9321 | | 11087 | |
| 9322 | export type V2ThreadReadResponse__ReasoningEffort = string; | | |
| 9323 | export const V2ThreadReadResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 9324 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 9325 | }).check( | | |
| 9326 | Schema.isMinLength(1).annotate({ | | |
| 9327 | expected: "a value with a length of at least 1", | | |
| 9328 | identifier: "V2ThreadReadResponse__ReasoningEffort", | | |
| 9329 | }), | | |
| 9330 | ); | | |
| 9331 | | | |
| 9332 | export type V2ThreadReadResponse__CollabAgentToolCallStatus = | 11088 | export type V2ThreadReadResponse__CollabAgentToolCallStatus = |
| 9333 | | "inProgress" | 11089 | | "inProgress" |
| 9334 | | "completed" | 11090 | | "completed" |
| ... | @@ -9407,6 +11163,31 @@ export const V2ThreadReadResponse__WebSearchAction = Schema.Union( | ... | @@ -9407,6 +11163,31 @@ export const V2ThreadReadResponse__WebSearchAction = Schema.Union( |
| 9407 | { mode: "oneOf" }, | 11163 | { mode: "oneOf" }, |
| 9408 | ).annotate({ identifier: "V2ThreadReadResponse__WebSearchAction" }); | 11164 | ).annotate({ identifier: "V2ThreadReadResponse__WebSearchAction" }); |
| 9409 | | 11165 | |
| | 11166 | export type V2ThreadReadResponse__ImageGenerationFailure = { |
| | 11167 | readonly limitId: string; |
| | 11168 | readonly resetsAt?: number | null; |
| | 11169 | readonly type: "usageLimitExceeded"; |
| | 11170 | }; |
| | 11171 | export const V2ThreadReadResponse__ImageGenerationFailure = Schema.Union( |
| | 11172 | [ |
| | 11173 | Schema.Struct({ |
| | 11174 | limitId: Schema.String, |
| | 11175 | resetsAt: Schema.optionalKey( |
| | 11176 | Schema.Union([ |
| | 11177 | Schema.Number.annotate({ format: "int64" }).check( |
| | 11178 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 11179 | ), |
| | 11180 | Schema.Null, |
| | 11181 | ]), |
| | 11182 | ), |
| | 11183 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 11184 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 11185 | }), |
| | 11186 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 11187 | ], |
| | 11188 | { mode: "oneOf" }, |
| | 11189 | ).annotate({ identifier: "V2ThreadReadResponse__ImageGenerationFailure" }); |
| | 11190 | |
| 9410 | export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 11191 | export type V2ThreadReadResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 9411 | export const V2ThreadReadResponse__TurnItemsView = Schema.Union( | 11192 | export const V2ThreadReadResponse__TurnItemsView = Schema.Union( |
| 9412 | [ | 11193 | [ |
| ... | @@ -9436,6 +11217,110 @@ export const V2ThreadReadResponse__TurnStatus = Schema.Literals([ | ... | @@ -9436,6 +11217,110 @@ export const V2ThreadReadResponse__TurnStatus = Schema.Literals([ |
| 9436 | "inProgress", | 11217 | "inProgress", |
| 9437 | ]).annotate({ identifier: "V2ThreadReadResponse__TurnStatus" }); | 11218 | ]).annotate({ identifier: "V2ThreadReadResponse__TurnStatus" }); |
| 9438 | | 11219 | |
| | 11220 | export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole = |
| | 11221 | | "user" |
| | 11222 | | "assistant"; |
| | 11223 | export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole = |
| | 11224 | Schema.Literals(["user", "assistant"]).annotate({ |
| | 11225 | identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole", |
| | 11226 | }); |
| | 11227 | |
| | 11228 | export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation = |
| | 11229 | | { readonly type: "wholeItem" } |
| | 11230 | | { readonly type: "inlineMarkdown" } |
| | 11231 | | { readonly index: number; readonly type: "inlineVisualization" }; |
| | 11232 | export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation = |
| | 11233 | Schema.Union( |
| | 11234 | [ |
| | 11235 | Schema.Struct({ |
| | 11236 | type: Schema.Literal("wholeItem").annotate({ |
| | 11237 | title: "WholeItemThreadRealtimeBemItemPresentationType", |
| | 11238 | }), |
| | 11239 | }).annotate({ title: "WholeItemThreadRealtimeBemItemPresentation" }), |
| | 11240 | Schema.Struct({ |
| | 11241 | type: Schema.Literal("inlineMarkdown").annotate({ |
| | 11242 | title: "InlineMarkdownThreadRealtimeBemItemPresentationType", |
| | 11243 | }), |
| | 11244 | }).annotate({ title: "InlineMarkdownThreadRealtimeBemItemPresentation" }), |
| | 11245 | Schema.Struct({ |
| | 11246 | index: Schema.Number.annotate({ format: "uint32" }) |
| | 11247 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 11248 | .check( |
| | 11249 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 11250 | expected: "a value greater than or equal to 0", |
| | 11251 | }), |
| | 11252 | ), |
| | 11253 | type: Schema.Literal("inlineVisualization").annotate({ |
| | 11254 | title: "InlineVisualizationThreadRealtimeBemItemPresentationType", |
| | 11255 | }), |
| | 11256 | }).annotate({ title: "InlineVisualizationThreadRealtimeBemItemPresentation" }), |
| | 11257 | ], |
| | 11258 | { mode: "oneOf" }, |
| | 11259 | ).annotate({ |
| | 11260 | description: "EXPERIMENTAL - how an existing agent item appears in a realtime conversation.", |
| | 11261 | identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation", |
| | 11262 | }); |
| | 11263 | |
| | 11264 | export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome = |
| | 11265 | | "ended" |
| | 11266 | | "failed"; |
| | 11267 | export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome = |
| | 11268 | Schema.Literals(["ended", "failed"]).annotate({ |
| | 11269 | identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome", |
| | 11270 | }); |
| | 11271 | |
| | 11272 | export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole = |
| | 11273 | | "user" |
| | 11274 | | "assistant"; |
| | 11275 | export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole = |
| | 11276 | Schema.Literals(["user", "assistant"]).annotate({ |
| | 11277 | identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole", |
| | 11278 | }); |
| | 11279 | |
| | 11280 | export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation = |
| | 11281 | | { readonly type: "wholeItem" } |
| | 11282 | | { readonly type: "inlineMarkdown" } |
| | 11283 | | { readonly index: number; readonly type: "inlineVisualization" }; |
| | 11284 | export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation = |
| | 11285 | Schema.Union( |
| | 11286 | [ |
| | 11287 | Schema.Struct({ |
| | 11288 | type: Schema.Literal("wholeItem").annotate({ |
| | 11289 | title: "WholeItemThreadRealtimeBemItemPresentationType", |
| | 11290 | }), |
| | 11291 | }).annotate({ title: "WholeItemThreadRealtimeBemItemPresentation" }), |
| | 11292 | Schema.Struct({ |
| | 11293 | type: Schema.Literal("inlineMarkdown").annotate({ |
| | 11294 | title: "InlineMarkdownThreadRealtimeBemItemPresentationType", |
| | 11295 | }), |
| | 11296 | }).annotate({ title: "InlineMarkdownThreadRealtimeBemItemPresentation" }), |
| | 11297 | Schema.Struct({ |
| | 11298 | index: Schema.Number.annotate({ format: "uint32" }) |
| | 11299 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 11300 | .check( |
| | 11301 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 11302 | expected: "a value greater than or equal to 0", |
| | 11303 | }), |
| | 11304 | ), |
| | 11305 | type: Schema.Literal("inlineVisualization").annotate({ |
| | 11306 | title: "InlineVisualizationThreadRealtimeBemItemPresentationType", |
| | 11307 | }), |
| | 11308 | }).annotate({ title: "InlineVisualizationThreadRealtimeBemItemPresentation" }), |
| | 11309 | ], |
| | 11310 | { mode: "oneOf" }, |
| | 11311 | ).annotate({ |
| | 11312 | description: "EXPERIMENTAL - how an existing agent item appears in a realtime conversation.", |
| | 11313 | identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation", |
| | 11314 | }); |
| | 11315 | |
| | 11316 | export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome = |
| | 11317 | | "ended" |
| | 11318 | | "failed"; |
| | 11319 | export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome = |
| | 11320 | Schema.Literals(["ended", "failed"]).annotate({ |
| | 11321 | identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome", |
| | 11322 | }); |
| | 11323 | |
| 9439 | export type V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk = { | 11324 | export type V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk = { |
| 9440 | readonly data: string; | 11325 | readonly data: string; |
| 9441 | readonly itemId?: string | null; | 11326 | readonly itemId?: string | null; |
| ... | @@ -9531,7 +11416,10 @@ export const V2ThreadResumeParams__Personality = Schema.Literals([ | ... | @@ -9531,7 +11416,10 @@ export const V2ThreadResumeParams__Personality = Schema.Literals([ |
| 9531 | "none", | 11416 | "none", |
| 9532 | "friendly", | 11417 | "friendly", |
| 9533 | "pragmatic", | 11418 | "pragmatic", |
| 9534 | ]).annotate({ identifier: "V2ThreadResumeParams__Personality" }); | 11419 | ]).annotate({ |
| | 11420 | description: "Deprecated: `friendly` and `pragmatic` no longer select a style.", |
| | 11421 | identifier: "V2ThreadResumeParams__Personality", |
| | 11422 | }); |
| 9535 | | 11423 | |
| 9536 | export type V2ThreadResumeParams__SandboxMode = | 11424 | export type V2ThreadResumeParams__SandboxMode = |
| 9537 | | "read-only" | 11425 | | "read-only" |
| ... | @@ -9543,6 +11431,16 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([ | ... | @@ -9543,6 +11431,16 @@ export const V2ThreadResumeParams__SandboxMode = Schema.Literals([ |
| 9543 | "danger-full-access", | 11431 | "danger-full-access", |
| 9544 | ]).annotate({ identifier: "V2ThreadResumeParams__SandboxMode" }); | 11432 | ]).annotate({ identifier: "V2ThreadResumeParams__SandboxMode" }); |
| 9545 | | 11433 | |
| | 11434 | export type V2ThreadResumeParams__ReasoningEffort = string; |
| | 11435 | export const V2ThreadResumeParams__ReasoningEffort = Schema.String.annotate({ |
| | 11436 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 11437 | }).check( |
| | 11438 | Schema.isMinLength(1).annotate({ |
| | 11439 | expected: "a value with a length of at least 1", |
| | 11440 | identifier: "V2ThreadResumeParams__ReasoningEffort", |
| | 11441 | }), |
| | 11442 | ); |
| | 11443 | |
| 9546 | export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original"; | 11444 | export type V2ThreadResumeParams__ImageDetail = "auto" | "low" | "high" | "original"; |
| 9547 | export const V2ThreadResumeParams__ImageDetail = Schema.Literals([ | 11445 | export const V2ThreadResumeParams__ImageDetail = Schema.Literals([ |
| 9548 | "auto", | 11446 | "auto", |
| ... | @@ -9783,16 +11681,10 @@ export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([ | ... | @@ -9783,16 +11681,10 @@ export const V2ThreadResumeResponse__ApprovalsReviewer = Schema.Literals([ |
| 9783 | identifier: "V2ThreadResumeResponse__ApprovalsReviewer", | 11681 | identifier: "V2ThreadResumeResponse__ApprovalsReviewer", |
| 9784 | }); | 11682 | }); |
| 9785 | | 11683 | |
| 9786 | export type V2ThreadResumeResponse__AbsolutePathBuf = string; | 11684 | export type V2ThreadResumeResponse__ModeKind = "plan" | "default"; |
| 9787 | export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({ | 11685 | export const V2ThreadResumeResponse__ModeKind = Schema.Literals(["plan", "default"]).annotate({ |
| 9788 | description: | 11686 | description: "Initial collaboration mode to use when the TUI starts.", |
| 9789 | "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.", | 11687 | identifier: "V2ThreadResumeResponse__ModeKind", |
| 9790 | identifier: "V2ThreadResumeResponse__AbsolutePathBuf", | | |
| 9791 | }); | | |
| 9792 | | | |
| 9793 | export type V2ThreadResumeResponse__LegacyAppPathString = string; | | |
| 9794 | export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String.annotate({ | | |
| 9795 | identifier: "V2ThreadResumeResponse__LegacyAppPathString", | | |
| 9796 | }); | 11688 | }); |
| 9797 | | 11689 | |
| 9798 | export type V2ThreadResumeResponse__ReasoningEffort = string; | 11690 | export type V2ThreadResumeResponse__ReasoningEffort = string; |
| ... | @@ -9805,6 +11697,18 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({ | ... | @@ -9805,6 +11697,18 @@ export const V2ThreadResumeResponse__ReasoningEffort = Schema.String.annotate({ |
| 9805 | }), | 11697 | }), |
| 9806 | ); | 11698 | ); |
| 9807 | | 11699 | |
| | 11700 | export type V2ThreadResumeResponse__AbsolutePathBuf = string; |
| | 11701 | export const V2ThreadResumeResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 11702 | description: |
| | 11703 | "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.", |
| | 11704 | identifier: "V2ThreadResumeResponse__AbsolutePathBuf", |
| | 11705 | }); |
| | 11706 | |
| | 11707 | export type V2ThreadResumeResponse__LegacyAppPathString = string; |
| | 11708 | export const V2ThreadResumeResponse__LegacyAppPathString = Schema.String.annotate({ |
| | 11709 | identifier: "V2ThreadResumeResponse__LegacyAppPathString", |
| | 11710 | }); |
| | 11711 | |
| 9808 | export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled"; | 11712 | export type V2ThreadResumeResponse__NetworkAccess = "restricted" | "enabled"; |
| 9809 | export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals([ | 11713 | export const V2ThreadResumeResponse__NetworkAccess = Schema.Literals([ |
| 9810 | "restricted", | 11714 | "restricted", |
| ... | @@ -9822,6 +11726,24 @@ export const V2ThreadResumeResponse__GitInfo = Schema.Struct({ | ... | @@ -9822,6 +11726,24 @@ export const V2ThreadResumeResponse__GitInfo = Schema.Struct({ |
| 9822 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 11726 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 9823 | }).annotate({ identifier: "V2ThreadResumeResponse__GitInfo" }); | 11727 | }).annotate({ identifier: "V2ThreadResumeResponse__GitInfo" }); |
| 9824 | | 11728 | |
| | 11729 | export type V2ThreadResumeResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 11730 | export const V2ThreadResumeResponse__ThreadHistoryMode = Schema.Literals([ |
| | 11731 | "legacy", |
| | 11732 | "paginated", |
| | 11733 | ]).annotate({ identifier: "V2ThreadResumeResponse__ThreadHistoryMode" }); |
| | 11734 | |
| | 11735 | export type V2ThreadResumeResponse__ThreadSectionAppearance = { |
| | 11736 | readonly color?: string | null; |
| | 11737 | readonly icon?: string | null; |
| | 11738 | }; |
| | 11739 | export const V2ThreadResumeResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 11740 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 11741 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 11742 | }).annotate({ |
| | 11743 | description: "Extensible visual presentation for a custom thread section.", |
| | 11744 | identifier: "V2ThreadResumeResponse__ThreadSectionAppearance", |
| | 11745 | }); |
| | 11746 | |
| 9825 | export type V2ThreadResumeResponse__AgentPath = string; | 11747 | export type V2ThreadResumeResponse__AgentPath = string; |
| 9826 | export const V2ThreadResumeResponse__AgentPath = Schema.String.annotate({ | 11748 | export const V2ThreadResumeResponse__AgentPath = Schema.String.annotate({ |
| 9827 | identifier: "V2ThreadResumeResponse__AgentPath", | 11749 | identifier: "V2ThreadResumeResponse__AgentPath", |
| ... | @@ -9849,6 +11771,11 @@ export const V2ThreadResumeResponse__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -9849,6 +11771,11 @@ export const V2ThreadResumeResponse__NonSteerableTurnKind = Schema.Literals([ |
| 9849 | "compact", | 11771 | "compact", |
| 9850 | ]).annotate({ identifier: "V2ThreadResumeResponse__NonSteerableTurnKind" }); | 11772 | ]).annotate({ identifier: "V2ThreadResumeResponse__NonSteerableTurnKind" }); |
| 9851 | | 11773 | |
| | 11774 | export type V2ThreadResumeResponse__MisalignmentSteer = { readonly message: string }; |
| | 11775 | export const V2ThreadResumeResponse__MisalignmentSteer = Schema.Struct({ |
| | 11776 | message: Schema.String, |
| | 11777 | }).annotate({ identifier: "V2ThreadResumeResponse__MisalignmentSteer" }); |
| | 11778 | |
| 9852 | export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number }; | 11779 | export type V2ThreadResumeResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 9853 | export const V2ThreadResumeResponse__ByteRange = Schema.Struct({ | 11780 | export const V2ThreadResumeResponse__ByteRange = Schema.Struct({ |
| 9854 | end: Schema.Number.annotate({ format: "uint" }) | 11781 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -9880,6 +11807,11 @@ export const V2ThreadResumeResponse__HookPromptFragment = Schema.Struct({ | ... | @@ -9880,6 +11807,11 @@ export const V2ThreadResumeResponse__HookPromptFragment = Schema.Struct({ |
| 9880 | text: Schema.String, | 11807 | text: Schema.String, |
| 9881 | }).annotate({ identifier: "V2ThreadResumeResponse__HookPromptFragment" }); | 11808 | }).annotate({ identifier: "V2ThreadResumeResponse__HookPromptFragment" }); |
| 9882 | | 11809 | |
| | 11810 | export type V2ThreadResumeResponse__AgentMessageDelivery = "async"; |
| | 11811 | export const V2ThreadResumeResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 11812 | identifier: "V2ThreadResumeResponse__AgentMessageDelivery", |
| | 11813 | }); |
| | 11814 | |
| 9883 | export type V2ThreadResumeResponse__MemoryCitationEntry = { | 11815 | export type V2ThreadResumeResponse__MemoryCitationEntry = { |
| 9884 | readonly lineEnd: number; | 11816 | readonly lineEnd: number; |
| 9885 | readonly lineStart: number; | 11817 | readonly lineStart: number; |
| ... | @@ -9919,6 +11851,15 @@ export const V2ThreadResumeResponse__MessagePhase = Schema.Union( | ... | @@ -9919,6 +11851,15 @@ export const V2ThreadResumeResponse__MessagePhase = Schema.Union( |
| 9919 | identifier: "V2ThreadResumeResponse__MessagePhase", | 11851 | identifier: "V2ThreadResumeResponse__MessagePhase", |
| 9920 | }); | 11852 | }); |
| 9921 | | 11853 | |
| | 11854 | export type V2ThreadResumeResponse__AsyncUserInputQuestion = { |
| | 11855 | readonly options?: ReadonlyArray<string> | null; |
| | 11856 | readonly title: string; |
| | 11857 | }; |
| | 11858 | export const V2ThreadResumeResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 11859 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 11860 | title: Schema.String, |
| | 11861 | }).annotate({ identifier: "V2ThreadResumeResponse__AsyncUserInputQuestion" }); |
| | 11862 | |
| 9922 | export type V2ThreadResumeResponse__CommandExecutionSource = | 11863 | export type V2ThreadResumeResponse__CommandExecutionSource = |
| 9923 | | "agent" | 11864 | | "agent" |
| 9924 | | "userShell" | 11865 | | "userShell" |
| ... | @@ -9995,6 +11936,12 @@ export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ | ... | @@ -9995,6 +11936,12 @@ export const V2ThreadResumeResponse__McpToolCallError = Schema.Struct({ |
| 9995 | message: Schema.String, | 11936 | message: Schema.String, |
| 9996 | }).annotate({ identifier: "V2ThreadResumeResponse__McpToolCallError" }); | 11937 | }).annotate({ identifier: "V2ThreadResumeResponse__McpToolCallError" }); |
| 9997 | | 11938 | |
| | 11939 | export type V2ThreadResumeResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 11940 | export const V2ThreadResumeResponse__McpAppDisplayMode = Schema.Literals([ |
| | 11941 | "inline", |
| | 11942 | "fullscreen", |
| | 11943 | ]).annotate({ identifier: "V2ThreadResumeResponse__McpAppDisplayMode" }); |
| | 11944 | |
| 9998 | export type V2ThreadResumeResponse__McpToolCallResult = { | 11945 | export type V2ThreadResumeResponse__McpToolCallResult = { |
| 9999 | readonly _meta?: Schema.Json; | 11946 | readonly _meta?: Schema.Json; |
| 10000 | readonly content: ReadonlyArray<Schema.Json>; | 11947 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -10144,6 +12091,31 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union( | ... | @@ -10144,6 +12091,31 @@ export const V2ThreadResumeResponse__WebSearchAction = Schema.Union( |
| 10144 | { mode: "oneOf" }, | 12091 | { mode: "oneOf" }, |
| 10145 | ).annotate({ identifier: "V2ThreadResumeResponse__WebSearchAction" }); | 12092 | ).annotate({ identifier: "V2ThreadResumeResponse__WebSearchAction" }); |
| 10146 | | 12093 | |
| | 12094 | export type V2ThreadResumeResponse__ImageGenerationFailure = { |
| | 12095 | readonly limitId: string; |
| | 12096 | readonly resetsAt?: number | null; |
| | 12097 | readonly type: "usageLimitExceeded"; |
| | 12098 | }; |
| | 12099 | export const V2ThreadResumeResponse__ImageGenerationFailure = Schema.Union( |
| | 12100 | [ |
| | 12101 | Schema.Struct({ |
| | 12102 | limitId: Schema.String, |
| | 12103 | resetsAt: Schema.optionalKey( |
| | 12104 | Schema.Union([ |
| | 12105 | Schema.Number.annotate({ format: "int64" }).check( |
| | 12106 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 12107 | ), |
| | 12108 | Schema.Null, |
| | 12109 | ]), |
| | 12110 | ), |
| | 12111 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 12112 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 12113 | }), |
| | 12114 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 12115 | ], |
| | 12116 | { mode: "oneOf" }, |
| | 12117 | ).annotate({ identifier: "V2ThreadResumeResponse__ImageGenerationFailure" }); |
| | 12118 | |
| 10147 | export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 12119 | export type V2ThreadResumeResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 10148 | export const V2ThreadResumeResponse__TurnItemsView = Schema.Union( | 12120 | export const V2ThreadResumeResponse__TurnItemsView = Schema.Union( |
| 10149 | [ | 12121 | [ |
| ... | @@ -10173,53 +12145,86 @@ export const V2ThreadResumeResponse__TurnStatus = Schema.Literals([ | ... | @@ -10173,53 +12145,86 @@ export const V2ThreadResumeResponse__TurnStatus = Schema.Literals([ |
| 10173 | "inProgress", | 12145 | "inProgress", |
| 10174 | ]).annotate({ identifier: "V2ThreadResumeResponse__TurnStatus" }); | 12146 | ]).annotate({ identifier: "V2ThreadResumeResponse__TurnStatus" }); |
| 10175 | | 12147 | |
| 10176 | export type V2ThreadRollbackResponse__AbsolutePathBuf = string; | 12148 | export type V2ThreadRevertResponse__AbsolutePathBuf = string; |
| 10177 | export const V2ThreadRollbackResponse__AbsolutePathBuf = Schema.String.annotate({ | 12149 | export const V2ThreadRevertResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 10178 | description: | 12150 | description: |
| 10179 | "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.", | 12151 | "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.", |
| 10180 | identifier: "V2ThreadRollbackResponse__AbsolutePathBuf", | 12152 | identifier: "V2ThreadRevertResponse__AbsolutePathBuf", |
| 10181 | }); | 12153 | }); |
| 10182 | | 12154 | |
| 10183 | export type V2ThreadRollbackResponse__GitInfo = { | 12155 | export type V2ThreadRevertResponse__GitInfo = { |
| 10184 | readonly branch?: string | null; | 12156 | readonly branch?: string | null; |
| 10185 | readonly originUrl?: string | null; | 12157 | readonly originUrl?: string | null; |
| 10186 | readonly sha?: string | null; | 12158 | readonly sha?: string | null; |
| 10187 | }; | 12159 | }; |
| 10188 | export const V2ThreadRollbackResponse__GitInfo = Schema.Struct({ | 12160 | export const V2ThreadRevertResponse__GitInfo = Schema.Struct({ |
| 10189 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12161 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10190 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12162 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10191 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12163 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10192 | }).annotate({ identifier: "V2ThreadRollbackResponse__GitInfo" }); | 12164 | }).annotate({ identifier: "V2ThreadRevertResponse__GitInfo" }); |
| | 12165 | |
| | 12166 | export type V2ThreadRevertResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 12167 | export const V2ThreadRevertResponse__ThreadHistoryMode = Schema.Literals([ |
| | 12168 | "legacy", |
| | 12169 | "paginated", |
| | 12170 | ]).annotate({ identifier: "V2ThreadRevertResponse__ThreadHistoryMode" }); |
| | 12171 | |
| | 12172 | export type V2ThreadRevertResponse__ReasoningEffort = string; |
| | 12173 | export const V2ThreadRevertResponse__ReasoningEffort = Schema.String.annotate({ |
| | 12174 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 12175 | }).check( |
| | 12176 | Schema.isMinLength(1).annotate({ |
| | 12177 | expected: "a value with a length of at least 1", |
| | 12178 | identifier: "V2ThreadRevertResponse__ReasoningEffort", |
| | 12179 | }), |
| | 12180 | ); |
| | 12181 | |
| | 12182 | export type V2ThreadRevertResponse__ThreadSectionAppearance = { |
| | 12183 | readonly color?: string | null; |
| | 12184 | readonly icon?: string | null; |
| | 12185 | }; |
| | 12186 | export const V2ThreadRevertResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 12187 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12188 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12189 | }).annotate({ |
| | 12190 | description: "Extensible visual presentation for a custom thread section.", |
| | 12191 | identifier: "V2ThreadRevertResponse__ThreadSectionAppearance", |
| | 12192 | }); |
| 10193 | | 12193 | |
| 10194 | export type V2ThreadRollbackResponse__AgentPath = string; | 12194 | export type V2ThreadRevertResponse__AgentPath = string; |
| 10195 | export const V2ThreadRollbackResponse__AgentPath = Schema.String.annotate({ | 12195 | export const V2ThreadRevertResponse__AgentPath = Schema.String.annotate({ |
| 10196 | identifier: "V2ThreadRollbackResponse__AgentPath", | 12196 | identifier: "V2ThreadRevertResponse__AgentPath", |
| 10197 | }); | 12197 | }); |
| 10198 | | 12198 | |
| 10199 | export type V2ThreadRollbackResponse__ThreadId = string; | 12199 | export type V2ThreadRevertResponse__ThreadId = string; |
| 10200 | export const V2ThreadRollbackResponse__ThreadId = Schema.String.annotate({ | 12200 | export const V2ThreadRevertResponse__ThreadId = Schema.String.annotate({ |
| 10201 | identifier: "V2ThreadRollbackResponse__ThreadId", | 12201 | identifier: "V2ThreadRevertResponse__ThreadId", |
| 10202 | }); | 12202 | }); |
| 10203 | | 12203 | |
| 10204 | export type V2ThreadRollbackResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; | 12204 | export type V2ThreadRevertResponse__ThreadActiveFlag = "waitingOnApproval" | "waitingOnUserInput"; |
| 10205 | export const V2ThreadRollbackResponse__ThreadActiveFlag = Schema.Literals([ | 12205 | export const V2ThreadRevertResponse__ThreadActiveFlag = Schema.Literals([ |
| 10206 | "waitingOnApproval", | 12206 | "waitingOnApproval", |
| 10207 | "waitingOnUserInput", | 12207 | "waitingOnUserInput", |
| 10208 | ]).annotate({ identifier: "V2ThreadRollbackResponse__ThreadActiveFlag" }); | 12208 | ]).annotate({ identifier: "V2ThreadRevertResponse__ThreadActiveFlag" }); |
| 10209 | | 12209 | |
| 10210 | export type V2ThreadRollbackResponse__ThreadSource = string; | 12210 | export type V2ThreadRevertResponse__ThreadSource = string; |
| 10211 | export const V2ThreadRollbackResponse__ThreadSource = Schema.String.annotate({ | 12211 | export const V2ThreadRevertResponse__ThreadSource = Schema.String.annotate({ |
| 10212 | identifier: "V2ThreadRollbackResponse__ThreadSource", | 12212 | identifier: "V2ThreadRevertResponse__ThreadSource", |
| 10213 | }); | 12213 | }); |
| 10214 | | 12214 | |
| 10215 | export type V2ThreadRollbackResponse__NonSteerableTurnKind = "review" | "compact"; | 12215 | export type V2ThreadRevertResponse__NonSteerableTurnKind = "review" | "compact"; |
| 10216 | export const V2ThreadRollbackResponse__NonSteerableTurnKind = Schema.Literals([ | 12216 | export const V2ThreadRevertResponse__NonSteerableTurnKind = Schema.Literals([ |
| 10217 | "review", | 12217 | "review", |
| 10218 | "compact", | 12218 | "compact", |
| 10219 | ]).annotate({ identifier: "V2ThreadRollbackResponse__NonSteerableTurnKind" }); | 12219 | ]).annotate({ identifier: "V2ThreadRevertResponse__NonSteerableTurnKind" }); |
| 10220 | | 12220 | |
| 10221 | export type V2ThreadRollbackResponse__ByteRange = { readonly end: number; readonly start: number }; | 12221 | export type V2ThreadRevertResponse__MisalignmentSteer = { readonly message: string }; |
| 10222 | export const V2ThreadRollbackResponse__ByteRange = Schema.Struct({ | 12222 | export const V2ThreadRevertResponse__MisalignmentSteer = Schema.Struct({ |
| | 12223 | message: Schema.String, |
| | 12224 | }).annotate({ identifier: "V2ThreadRevertResponse__MisalignmentSteer" }); |
| | 12225 | |
| | 12226 | export type V2ThreadRevertResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 12227 | export const V2ThreadRevertResponse__ByteRange = Schema.Struct({ |
| 10223 | end: Schema.Number.annotate({ format: "uint" }) | 12228 | end: Schema.Number.annotate({ format: "uint" }) |
| 10224 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 12229 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 10225 | .check( | 12230 | .check( |
| ... | @@ -10230,32 +12235,37 @@ export const V2ThreadRollbackResponse__ByteRange = Schema.Struct({ | ... | @@ -10230,32 +12235,37 @@ export const V2ThreadRollbackResponse__ByteRange = Schema.Struct({ |
| 10230 | .check( | 12235 | .check( |
| 10231 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), | 12236 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 10232 | ), | 12237 | ), |
| 10233 | }).annotate({ identifier: "V2ThreadRollbackResponse__ByteRange" }); | 12238 | }).annotate({ identifier: "V2ThreadRevertResponse__ByteRange" }); |
| 10234 | | 12239 | |
| 10235 | export type V2ThreadRollbackResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 12240 | export type V2ThreadRevertResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 10236 | export const V2ThreadRollbackResponse__ImageDetail = Schema.Literals([ | 12241 | export const V2ThreadRevertResponse__ImageDetail = Schema.Literals([ |
| 10237 | "auto", | 12242 | "auto", |
| 10238 | "low", | 12243 | "low", |
| 10239 | "high", | 12244 | "high", |
| 10240 | "original", | 12245 | "original", |
| 10241 | ]).annotate({ identifier: "V2ThreadRollbackResponse__ImageDetail" }); | 12246 | ]).annotate({ identifier: "V2ThreadRevertResponse__ImageDetail" }); |
| 10242 | | 12247 | |
| 10243 | export type V2ThreadRollbackResponse__HookPromptFragment = { | 12248 | export type V2ThreadRevertResponse__HookPromptFragment = { |
| 10244 | readonly hookRunId: string; | 12249 | readonly hookRunId: string; |
| 10245 | readonly text: string; | 12250 | readonly text: string; |
| 10246 | }; | 12251 | }; |
| 10247 | export const V2ThreadRollbackResponse__HookPromptFragment = Schema.Struct({ | 12252 | export const V2ThreadRevertResponse__HookPromptFragment = Schema.Struct({ |
| 10248 | hookRunId: Schema.String, | 12253 | hookRunId: Schema.String, |
| 10249 | text: Schema.String, | 12254 | text: Schema.String, |
| 10250 | }).annotate({ identifier: "V2ThreadRollbackResponse__HookPromptFragment" }); | 12255 | }).annotate({ identifier: "V2ThreadRevertResponse__HookPromptFragment" }); |
| | 12256 | |
| | 12257 | export type V2ThreadRevertResponse__AgentMessageDelivery = "async"; |
| | 12258 | export const V2ThreadRevertResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 12259 | identifier: "V2ThreadRevertResponse__AgentMessageDelivery", |
| | 12260 | }); |
| 10251 | | 12261 | |
| 10252 | export type V2ThreadRollbackResponse__MemoryCitationEntry = { | 12262 | export type V2ThreadRevertResponse__MemoryCitationEntry = { |
| 10253 | readonly lineEnd: number; | 12263 | readonly lineEnd: number; |
| 10254 | readonly lineStart: number; | 12264 | readonly lineStart: number; |
| 10255 | readonly note: string; | 12265 | readonly note: string; |
| 10256 | readonly path: string; | 12266 | readonly path: string; |
| 10257 | }; | 12267 | }; |
| 10258 | export const V2ThreadRollbackResponse__MemoryCitationEntry = Schema.Struct({ | 12268 | export const V2ThreadRevertResponse__MemoryCitationEntry = Schema.Struct({ |
| 10259 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 12269 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 10260 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 12270 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 10261 | .check( | 12271 | .check( |
| ... | @@ -10268,10 +12278,10 @@ export const V2ThreadRollbackResponse__MemoryCitationEntry = Schema.Struct({ | ... | @@ -10268,10 +12278,10 @@ export const V2ThreadRollbackResponse__MemoryCitationEntry = Schema.Struct({ |
| 10268 | ), | 12278 | ), |
| 10269 | note: Schema.String, | 12279 | note: Schema.String, |
| 10270 | path: Schema.String, | 12280 | path: Schema.String, |
| 10271 | }).annotate({ identifier: "V2ThreadRollbackResponse__MemoryCitationEntry" }); | 12281 | }).annotate({ identifier: "V2ThreadRevertResponse__MemoryCitationEntry" }); |
| 10272 | | 12282 | |
| 10273 | export type V2ThreadRollbackResponse__MessagePhase = "commentary" | "final_answer"; | 12283 | export type V2ThreadRevertResponse__MessagePhase = "commentary" | "final_answer"; |
| 10274 | export const V2ThreadRollbackResponse__MessagePhase = Schema.Union( | 12284 | export const V2ThreadRevertResponse__MessagePhase = Schema.Union( |
| 10275 | [ | 12285 | [ |
| 10276 | Schema.Literal("commentary").annotate({ | 12286 | Schema.Literal("commentary").annotate({ |
| 10277 | description: | 12287 | description: |
| ... | @@ -10285,43 +12295,52 @@ export const V2ThreadRollbackResponse__MessagePhase = Schema.Union( | ... | @@ -10285,43 +12295,52 @@ export const V2ThreadRollbackResponse__MessagePhase = Schema.Union( |
| 10285 | ).annotate({ | 12295 | ).annotate({ |
| 10286 | description: | 12296 | description: |
| 10287 | '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.', | 12297 | '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.', |
| 10288 | identifier: "V2ThreadRollbackResponse__MessagePhase", | 12298 | identifier: "V2ThreadRevertResponse__MessagePhase", |
| 10289 | }); | 12299 | }); |
| 10290 | | 12300 | |
| 10291 | export type V2ThreadRollbackResponse__LegacyAppPathString = string; | 12301 | export type V2ThreadRevertResponse__AsyncUserInputQuestion = { |
| 10292 | export const V2ThreadRollbackResponse__LegacyAppPathString = Schema.String.annotate({ | 12302 | readonly options?: ReadonlyArray<string> | null; |
| 10293 | identifier: "V2ThreadRollbackResponse__LegacyAppPathString", | 12303 | readonly title: string; |
| | 12304 | }; |
| | 12305 | export const V2ThreadRevertResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 12306 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 12307 | title: Schema.String, |
| | 12308 | }).annotate({ identifier: "V2ThreadRevertResponse__AsyncUserInputQuestion" }); |
| | 12309 | |
| | 12310 | export type V2ThreadRevertResponse__LegacyAppPathString = string; |
| | 12311 | export const V2ThreadRevertResponse__LegacyAppPathString = Schema.String.annotate({ |
| | 12312 | identifier: "V2ThreadRevertResponse__LegacyAppPathString", |
| 10294 | }); | 12313 | }); |
| 10295 | | 12314 | |
| 10296 | export type V2ThreadRollbackResponse__CommandExecutionSource = | 12315 | export type V2ThreadRevertResponse__CommandExecutionSource = |
| 10297 | | "agent" | 12316 | | "agent" |
| 10298 | | "userShell" | 12317 | | "userShell" |
| 10299 | | "unifiedExecStartup" | 12318 | | "unifiedExecStartup" |
| 10300 | | "unifiedExecInteraction"; | 12319 | | "unifiedExecInteraction"; |
| 10301 | export const V2ThreadRollbackResponse__CommandExecutionSource = Schema.Literals([ | 12320 | export const V2ThreadRevertResponse__CommandExecutionSource = Schema.Literals([ |
| 10302 | "agent", | 12321 | "agent", |
| 10303 | "userShell", | 12322 | "userShell", |
| 10304 | "unifiedExecStartup", | 12323 | "unifiedExecStartup", |
| 10305 | "unifiedExecInteraction", | 12324 | "unifiedExecInteraction", |
| 10306 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CommandExecutionSource" }); | 12325 | ]).annotate({ identifier: "V2ThreadRevertResponse__CommandExecutionSource" }); |
| 10307 | | 12326 | |
| 10308 | export type V2ThreadRollbackResponse__CommandExecutionStatus = | 12327 | export type V2ThreadRevertResponse__CommandExecutionStatus = |
| 10309 | | "inProgress" | 12328 | | "inProgress" |
| 10310 | | "completed" | 12329 | | "completed" |
| 10311 | | "failed" | 12330 | | "failed" |
| 10312 | | "declined"; | 12331 | | "declined"; |
| 10313 | export const V2ThreadRollbackResponse__CommandExecutionStatus = Schema.Literals([ | 12332 | export const V2ThreadRevertResponse__CommandExecutionStatus = Schema.Literals([ |
| 10314 | "inProgress", | 12333 | "inProgress", |
| 10315 | "completed", | 12334 | "completed", |
| 10316 | "failed", | 12335 | "failed", |
| 10317 | "declined", | 12336 | "declined", |
| 10318 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CommandExecutionStatus" }); | 12337 | ]).annotate({ identifier: "V2ThreadRevertResponse__CommandExecutionStatus" }); |
| 10319 | | 12338 | |
| 10320 | export type V2ThreadRollbackResponse__PatchChangeKind = | 12339 | export type V2ThreadRevertResponse__PatchChangeKind = |
| 10321 | | { readonly type: "add" } | 12340 | | { readonly type: "add" } |
| 10322 | | { readonly type: "delete" } | 12341 | | { readonly type: "delete" } |
| 10323 | | { readonly move_path?: string | null; readonly type: "update" }; | 12342 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 10324 | export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union( | 12343 | export const V2ThreadRevertResponse__PatchChangeKind = Schema.Union( |
| 10325 | [ | 12344 | [ |
| 10326 | Schema.Struct({ | 12345 | Schema.Struct({ |
| 10327 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 12346 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| ... | @@ -10335,63 +12354,69 @@ export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union( | ... | @@ -10335,63 +12354,69 @@ export const V2ThreadRollbackResponse__PatchChangeKind = Schema.Union( |
| 10335 | }).annotate({ title: "UpdatePatchChangeKind" }), | 12354 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 10336 | ], | 12355 | ], |
| 10337 | { mode: "oneOf" }, | 12356 | { mode: "oneOf" }, |
| 10338 | ).annotate({ identifier: "V2ThreadRollbackResponse__PatchChangeKind" }); | 12357 | ).annotate({ identifier: "V2ThreadRevertResponse__PatchChangeKind" }); |
| 10339 | | 12358 | |
| 10340 | export type V2ThreadRollbackResponse__PatchApplyStatus = | 12359 | export type V2ThreadRevertResponse__PatchApplyStatus = |
| 10341 | | "inProgress" | 12360 | | "inProgress" |
| 10342 | | "completed" | 12361 | | "completed" |
| 10343 | | "failed" | 12362 | | "failed" |
| 10344 | | "declined"; | 12363 | | "declined"; |
| 10345 | export const V2ThreadRollbackResponse__PatchApplyStatus = Schema.Literals([ | 12364 | export const V2ThreadRevertResponse__PatchApplyStatus = Schema.Literals([ |
| 10346 | "inProgress", | 12365 | "inProgress", |
| 10347 | "completed", | 12366 | "completed", |
| 10348 | "failed", | 12367 | "failed", |
| 10349 | "declined", | 12368 | "declined", |
| 10350 | ]).annotate({ identifier: "V2ThreadRollbackResponse__PatchApplyStatus" }); | 12369 | ]).annotate({ identifier: "V2ThreadRevertResponse__PatchApplyStatus" }); |
| 10351 | | 12370 | |
| 10352 | export type V2ThreadRollbackResponse__McpToolCallAppContext = { | 12371 | export type V2ThreadRevertResponse__McpToolCallAppContext = { |
| 10353 | readonly actionName?: string | null; | 12372 | readonly actionName?: string | null; |
| 10354 | readonly appName?: string | null; | 12373 | readonly appName?: string | null; |
| 10355 | readonly connectorId: string; | 12374 | readonly connectorId: string; |
| 10356 | readonly linkId?: string | null; | 12375 | readonly linkId?: string | null; |
| 10357 | readonly resourceUri?: string | null; | 12376 | readonly resourceUri?: string | null; |
| 10358 | }; | 12377 | }; |
| 10359 | export const V2ThreadRollbackResponse__McpToolCallAppContext = Schema.Struct({ | 12378 | export const V2ThreadRevertResponse__McpToolCallAppContext = Schema.Struct({ |
| 10360 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12379 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10361 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12380 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10362 | connectorId: Schema.String, | 12381 | connectorId: Schema.String, |
| 10363 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12382 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10364 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12383 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10365 | }).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallAppContext" }); | 12384 | }).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallAppContext" }); |
| 10366 | | 12385 | |
| 10367 | export type V2ThreadRollbackResponse__McpToolCallError = { readonly message: string }; | 12386 | export type V2ThreadRevertResponse__McpToolCallError = { readonly message: string }; |
| 10368 | export const V2ThreadRollbackResponse__McpToolCallError = Schema.Struct({ | 12387 | export const V2ThreadRevertResponse__McpToolCallError = Schema.Struct({ |
| 10369 | message: Schema.String, | 12388 | message: Schema.String, |
| 10370 | }).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallError" }); | 12389 | }).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallError" }); |
| 10371 | | 12390 | |
| 10372 | export type V2ThreadRollbackResponse__McpToolCallResult = { | 12391 | export type V2ThreadRevertResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 12392 | export const V2ThreadRevertResponse__McpAppDisplayMode = Schema.Literals([ |
| | 12393 | "inline", |
| | 12394 | "fullscreen", |
| | 12395 | ]).annotate({ identifier: "V2ThreadRevertResponse__McpAppDisplayMode" }); |
| | 12396 | |
| | 12397 | export type V2ThreadRevertResponse__McpToolCallResult = { |
| 10373 | readonly _meta?: Schema.Json; | 12398 | readonly _meta?: Schema.Json; |
| 10374 | readonly content: ReadonlyArray<Schema.Json>; | 12399 | readonly content: ReadonlyArray<Schema.Json>; |
| 10375 | readonly structuredContent?: Schema.Json; | 12400 | readonly structuredContent?: Schema.Json; |
| 10376 | }; | 12401 | }; |
| 10377 | export const V2ThreadRollbackResponse__McpToolCallResult = Schema.Struct({ | 12402 | export const V2ThreadRevertResponse__McpToolCallResult = Schema.Struct({ |
| 10378 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), | 12403 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10379 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), | 12404 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 10380 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), | 12405 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 10381 | }).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallResult" }); | 12406 | }).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallResult" }); |
| 10382 | | 12407 | |
| 10383 | export type V2ThreadRollbackResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 12408 | export type V2ThreadRevertResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 10384 | export const V2ThreadRollbackResponse__McpToolCallStatus = Schema.Literals([ | 12409 | export const V2ThreadRevertResponse__McpToolCallStatus = Schema.Literals([ |
| 10385 | "inProgress", | 12410 | "inProgress", |
| 10386 | "completed", | 12411 | "completed", |
| 10387 | "failed", | 12412 | "failed", |
| 10388 | ]).annotate({ identifier: "V2ThreadRollbackResponse__McpToolCallStatus" }); | 12413 | ]).annotate({ identifier: "V2ThreadRevertResponse__McpToolCallStatus" }); |
| 10389 | | 12414 | |
| 10390 | export type V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = | 12415 | export type V2ThreadRevertResponse__DynamicToolCallOutputContentItem = |
| 10391 | | { readonly text: string; readonly type: "inputText" } | 12416 | | { readonly text: string; readonly type: "inputText" } |
| 10392 | | { readonly imageUrl: string; readonly type: "inputImage" } | 12417 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 10393 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 12418 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 10394 | export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema.Union( | 12419 | export const V2ThreadRevertResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| 10395 | [ | 12420 | [ |
| 10396 | Schema.Struct({ | 12421 | Schema.Struct({ |
| 10397 | text: Schema.String, | 12422 | text: Schema.String, |
| ... | @@ -10413,16 +12438,16 @@ export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema | ... | @@ -10413,16 +12438,16 @@ export const V2ThreadRollbackResponse__DynamicToolCallOutputContentItem = Schema |
| 10413 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | 12438 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| 10414 | ], | 12439 | ], |
| 10415 | { mode: "oneOf" }, | 12440 | { mode: "oneOf" }, |
| 10416 | ).annotate({ identifier: "V2ThreadRollbackResponse__DynamicToolCallOutputContentItem" }); | 12441 | ).annotate({ identifier: "V2ThreadRevertResponse__DynamicToolCallOutputContentItem" }); |
| 10417 | | 12442 | |
| 10418 | export type V2ThreadRollbackResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; | 12443 | export type V2ThreadRevertResponse__DynamicToolCallStatus = "inProgress" | "completed" | "failed"; |
| 10419 | export const V2ThreadRollbackResponse__DynamicToolCallStatus = Schema.Literals([ | 12444 | export const V2ThreadRevertResponse__DynamicToolCallStatus = Schema.Literals([ |
| 10420 | "inProgress", | 12445 | "inProgress", |
| 10421 | "completed", | 12446 | "completed", |
| 10422 | "failed", | 12447 | "failed", |
| 10423 | ]).annotate({ identifier: "V2ThreadRollbackResponse__DynamicToolCallStatus" }); | 12448 | ]).annotate({ identifier: "V2ThreadRevertResponse__DynamicToolCallStatus" }); |
| 10424 | | 12449 | |
| 10425 | export type V2ThreadRollbackResponse__CollabAgentStatus = | 12450 | export type V2ThreadRevertResponse__CollabAgentStatus = |
| 10426 | | "pendingInit" | 12451 | | "pendingInit" |
| 10427 | | "running" | 12452 | | "running" |
| 10428 | | "interrupted" | 12453 | | "interrupted" |
| ... | @@ -10430,7 +12455,7 @@ export type V2ThreadRollbackResponse__CollabAgentStatus = | ... | @@ -10430,7 +12455,7 @@ export type V2ThreadRollbackResponse__CollabAgentStatus = |
| 10430 | | "errored" | 12455 | | "errored" |
| 10431 | | "shutdown" | 12456 | | "shutdown" |
| 10432 | | "notFound"; | 12457 | | "notFound"; |
| 10433 | export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ | 12458 | export const V2ThreadRevertResponse__CollabAgentStatus = Schema.Literals([ |
| 10434 | "pendingInit", | 12459 | "pendingInit", |
| 10435 | "running", | 12460 | "running", |
| 10436 | "interrupted", | 12461 | "interrupted", |
| ... | @@ -10438,31 +12463,21 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ | ... | @@ -10438,31 +12463,21 @@ export const V2ThreadRollbackResponse__CollabAgentStatus = Schema.Literals([ |
| 10438 | "errored", | 12463 | "errored", |
| 10439 | "shutdown", | 12464 | "shutdown", |
| 10440 | "notFound", | 12465 | "notFound", |
| 10441 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentStatus" }); | 12466 | ]).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentStatus" }); |
| 10442 | | | |
| 10443 | export type V2ThreadRollbackResponse__ReasoningEffort = string; | | |
| 10444 | export const V2ThreadRollbackResponse__ReasoningEffort = Schema.String.annotate({ | | |
| 10445 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 10446 | }).check( | | |
| 10447 | Schema.isMinLength(1).annotate({ | | |
| 10448 | expected: "a value with a length of at least 1", | | |
| 10449 | identifier: "V2ThreadRollbackResponse__ReasoningEffort", | | |
| 10450 | }), | | |
| 10451 | ); | | |
| 10452 | | 12467 | |
| 10453 | export type V2ThreadRollbackResponse__CollabAgentToolCallStatus = | 12468 | export type V2ThreadRevertResponse__CollabAgentToolCallStatus = |
| 10454 | | "inProgress" | 12469 | | "inProgress" |
| 10455 | | "completed" | 12470 | | "completed" |
| 10456 | | "failed" | 12471 | | "failed" |
| 10457 | | "interrupted"; | 12472 | | "interrupted"; |
| 10458 | export const V2ThreadRollbackResponse__CollabAgentToolCallStatus = Schema.Literals([ | 12473 | export const V2ThreadRevertResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| 10459 | "inProgress", | 12474 | "inProgress", |
| 10460 | "completed", | 12475 | "completed", |
| 10461 | "failed", | 12476 | "failed", |
| 10462 | "interrupted", | 12477 | "interrupted", |
| 10463 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentToolCallStatus" }); | 12478 | ]).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentToolCallStatus" }); |
| 10464 | | 12479 | |
| 10465 | export type V2ThreadRollbackResponse__CollabAgentTool = | 12480 | export type V2ThreadRevertResponse__CollabAgentTool = |
| 10466 | | "spawnAgent" | 12481 | | "spawnAgent" |
| 10467 | | "sendInput" | 12482 | | "sendInput" |
| 10468 | | "resumeAgent" | 12483 | | "resumeAgent" |
| ... | @@ -10472,7 +12487,7 @@ export type V2ThreadRollbackResponse__CollabAgentTool = | ... | @@ -10472,7 +12487,7 @@ export type V2ThreadRollbackResponse__CollabAgentTool = |
| 10472 | | "followupTask" | 12487 | | "followupTask" |
| 10473 | | "interruptAgent" | 12488 | | "interruptAgent" |
| 10474 | | "listAgents"; | 12489 | | "listAgents"; |
| 10475 | export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([ | 12490 | export const V2ThreadRevertResponse__CollabAgentTool = Schema.Literals([ |
| 10476 | "spawnAgent", | 12491 | "spawnAgent", |
| 10477 | "sendInput", | 12492 | "sendInput", |
| 10478 | "resumeAgent", | 12493 | "resumeAgent", |
| ... | @@ -10482,21 +12497,21 @@ export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([ | ... | @@ -10482,21 +12497,21 @@ export const V2ThreadRollbackResponse__CollabAgentTool = Schema.Literals([ |
| 10482 | "followupTask", | 12497 | "followupTask", |
| 10483 | "interruptAgent", | 12498 | "interruptAgent", |
| 10484 | "listAgents", | 12499 | "listAgents", |
| 10485 | ]).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentTool" }); | 12500 | ]).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentTool" }); |
| 10486 | | 12501 | |
| 10487 | export type V2ThreadRollbackResponse__SubAgentActivityKind = | 12502 | export type V2ThreadRevertResponse__SubAgentActivityKind = |
| 10488 | | "started" | 12503 | | "started" |
| 10489 | | "interacted" | 12504 | | "interacted" |
| 10490 | | "interrupted" | 12505 | | "interrupted" |
| 10491 | | "completed"; | 12506 | | "completed"; |
| 10492 | export const V2ThreadRollbackResponse__SubAgentActivityKind = Schema.Literals([ | 12507 | export const V2ThreadRevertResponse__SubAgentActivityKind = Schema.Literals([ |
| 10493 | "started", | 12508 | "started", |
| 10494 | "interacted", | 12509 | "interacted", |
| 10495 | "interrupted", | 12510 | "interrupted", |
| 10496 | "completed", | 12511 | "completed", |
| 10497 | ]).annotate({ identifier: "V2ThreadRollbackResponse__SubAgentActivityKind" }); | 12512 | ]).annotate({ identifier: "V2ThreadRevertResponse__SubAgentActivityKind" }); |
| 10498 | | 12513 | |
| 10499 | export type V2ThreadRollbackResponse__WebSearchAction = | 12514 | export type V2ThreadRevertResponse__WebSearchAction = |
| 10500 | | { | 12515 | | { |
| 10501 | readonly queries?: ReadonlyArray<string> | null; | 12516 | readonly queries?: ReadonlyArray<string> | null; |
| 10502 | readonly query?: string | null; | 12517 | readonly query?: string | null; |
| ... | @@ -10505,7 +12520,7 @@ export type V2ThreadRollbackResponse__WebSearchAction = | ... | @@ -10505,7 +12520,7 @@ export type V2ThreadRollbackResponse__WebSearchAction = |
| 10505 | | { readonly type: "openPage"; readonly url?: string | null } | 12520 | | { readonly type: "openPage"; readonly url?: string | null } |
| 10506 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } | 12521 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } |
| 10507 | | { readonly type: "other" }; | 12522 | | { readonly type: "other" }; |
| 10508 | export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( | 12523 | export const V2ThreadRevertResponse__WebSearchAction = Schema.Union( |
| 10509 | [ | 12524 | [ |
| 10510 | Schema.Struct({ | 12525 | Schema.Struct({ |
| 10511 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 12526 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| ... | @@ -10526,10 +12541,35 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( | ... | @@ -10526,10 +12541,35 @@ export const V2ThreadRollbackResponse__WebSearchAction = Schema.Union( |
| 10526 | }).annotate({ title: "OtherWebSearchAction" }), | 12541 | }).annotate({ title: "OtherWebSearchAction" }), |
| 10527 | ], | 12542 | ], |
| 10528 | { mode: "oneOf" }, | 12543 | { mode: "oneOf" }, |
| 10529 | ).annotate({ identifier: "V2ThreadRollbackResponse__WebSearchAction" }); | 12544 | ).annotate({ identifier: "V2ThreadRevertResponse__WebSearchAction" }); |
| 10530 | | 12545 | |
| 10531 | export type V2ThreadRollbackResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 12546 | export type V2ThreadRevertResponse__ImageGenerationFailure = { |
| 10532 | export const V2ThreadRollbackResponse__TurnItemsView = Schema.Union( | 12547 | readonly limitId: string; |
| | 12548 | readonly resetsAt?: number | null; |
| | 12549 | readonly type: "usageLimitExceeded"; |
| | 12550 | }; |
| | 12551 | export const V2ThreadRevertResponse__ImageGenerationFailure = Schema.Union( |
| | 12552 | [ |
| | 12553 | Schema.Struct({ |
| | 12554 | limitId: Schema.String, |
| | 12555 | resetsAt: Schema.optionalKey( |
| | 12556 | Schema.Union([ |
| | 12557 | Schema.Number.annotate({ format: "int64" }).check( |
| | 12558 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 12559 | ), |
| | 12560 | Schema.Null, |
| | 12561 | ]), |
| | 12562 | ), |
| | 12563 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 12564 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 12565 | }), |
| | 12566 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 12567 | ], |
| | 12568 | { mode: "oneOf" }, |
| | 12569 | ).annotate({ identifier: "V2ThreadRevertResponse__ImageGenerationFailure" }); |
| | 12570 | |
| | 12571 | export type V2ThreadRevertResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 12572 | export const V2ThreadRevertResponse__TurnItemsView = Schema.Union( |
| 10533 | [ | 12573 | [ |
| 10534 | Schema.Literal("notLoaded").annotate({ | 12574 | Schema.Literal("notLoaded").annotate({ |
| 10535 | description: "`items` was not loaded for this turn. The field is intentionally empty.", | 12575 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| ... | @@ -10543,19 +12583,79 @@ export const V2ThreadRollbackResponse__TurnItemsView = Schema.Union( | ... | @@ -10543,19 +12583,79 @@ export const V2ThreadRollbackResponse__TurnItemsView = Schema.Union( |
| 10543 | }), | 12583 | }), |
| 10544 | ], | 12584 | ], |
| 10545 | { mode: "oneOf" }, | 12585 | { mode: "oneOf" }, |
| 10546 | ).annotate({ identifier: "V2ThreadRollbackResponse__TurnItemsView" }); | 12586 | ).annotate({ identifier: "V2ThreadRevertResponse__TurnItemsView" }); |
| 10547 | | 12587 | |
| 10548 | export type V2ThreadRollbackResponse__TurnStatus = | 12588 | export type V2ThreadRevertResponse__TurnStatus = |
| 10549 | | "completed" | 12589 | | "completed" |
| 10550 | | "interrupted" | 12590 | | "interrupted" |
| 10551 | | "failed" | 12591 | | "failed" |
| 10552 | | "inProgress"; | 12592 | | "inProgress"; |
| 10553 | export const V2ThreadRollbackResponse__TurnStatus = Schema.Literals([ | 12593 | export const V2ThreadRevertResponse__TurnStatus = Schema.Literals([ |
| 10554 | "completed", | 12594 | "completed", |
| 10555 | "interrupted", | 12595 | "interrupted", |
| 10556 | "failed", | 12596 | "failed", |
| 10557 | "inProgress", | 12597 | "inProgress", |
| 10558 | ]).annotate({ identifier: "V2ThreadRollbackResponse__TurnStatus" }); | 12598 | ]).annotate({ identifier: "V2ThreadRevertResponse__TurnStatus" }); |
| | 12599 | |
| | 12600 | export type V2ThreadSectionCreateParams__ThreadSectionAppearance = { |
| | 12601 | readonly color?: string | null; |
| | 12602 | readonly icon?: string | null; |
| | 12603 | }; |
| | 12604 | export const V2ThreadSectionCreateParams__ThreadSectionAppearance = Schema.Struct({ |
| | 12605 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12606 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12607 | }).annotate({ |
| | 12608 | description: "Extensible visual presentation for a custom thread section.", |
| | 12609 | identifier: "V2ThreadSectionCreateParams__ThreadSectionAppearance", |
| | 12610 | }); |
| | 12611 | |
| | 12612 | export type V2ThreadSectionCreateResponse__ThreadSectionAppearance = { |
| | 12613 | readonly color?: string | null; |
| | 12614 | readonly icon?: string | null; |
| | 12615 | }; |
| | 12616 | export const V2ThreadSectionCreateResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 12617 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12618 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12619 | }).annotate({ |
| | 12620 | description: "Extensible visual presentation for a custom thread section.", |
| | 12621 | identifier: "V2ThreadSectionCreateResponse__ThreadSectionAppearance", |
| | 12622 | }); |
| | 12623 | |
| | 12624 | export type V2ThreadSectionListResponse__ThreadSectionAppearance = { |
| | 12625 | readonly color?: string | null; |
| | 12626 | readonly icon?: string | null; |
| | 12627 | }; |
| | 12628 | export const V2ThreadSectionListResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 12629 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12630 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12631 | }).annotate({ |
| | 12632 | description: "Extensible visual presentation for a custom thread section.", |
| | 12633 | identifier: "V2ThreadSectionListResponse__ThreadSectionAppearance", |
| | 12634 | }); |
| | 12635 | |
| | 12636 | export type V2ThreadSectionUpdateParams__ThreadSectionAppearance = { |
| | 12637 | readonly color?: string | null; |
| | 12638 | readonly icon?: string | null; |
| | 12639 | }; |
| | 12640 | export const V2ThreadSectionUpdateParams__ThreadSectionAppearance = Schema.Struct({ |
| | 12641 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12642 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12643 | }).annotate({ |
| | 12644 | description: "Extensible visual presentation for a custom thread section.", |
| | 12645 | identifier: "V2ThreadSectionUpdateParams__ThreadSectionAppearance", |
| | 12646 | }); |
| | 12647 | |
| | 12648 | export type V2ThreadSectionUpdateResponse__ThreadSectionAppearance = { |
| | 12649 | readonly color?: string | null; |
| | 12650 | readonly icon?: string | null; |
| | 12651 | }; |
| | 12652 | export const V2ThreadSectionUpdateResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 12653 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12654 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12655 | }).annotate({ |
| | 12656 | description: "Extensible visual presentation for a custom thread section.", |
| | 12657 | identifier: "V2ThreadSectionUpdateResponse__ThreadSectionAppearance", |
| | 12658 | }); |
| 10559 | | 12659 | |
| 10560 | export type V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = { | 12660 | export type V2ThreadSettingsUpdatedNotification__ActivePermissionProfile = { |
| 10561 | readonly extends?: string | null; | 12661 | readonly extends?: string | null; |
| ... | @@ -10651,7 +12751,10 @@ export const V2ThreadSettingsUpdatedNotification__Personality = Schema.Literals( | ... | @@ -10651,7 +12751,10 @@ export const V2ThreadSettingsUpdatedNotification__Personality = Schema.Literals( |
| 10651 | "none", | 12751 | "none", |
| 10652 | "friendly", | 12752 | "friendly", |
| 10653 | "pragmatic", | 12753 | "pragmatic", |
| 10654 | ]).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__Personality" }); | 12754 | ]).annotate({ |
| | 12755 | description: "Deprecated: `friendly` and `pragmatic` no longer select a style.", |
| | 12756 | identifier: "V2ThreadSettingsUpdatedNotification__Personality", |
| | 12757 | }); |
| 10655 | | 12758 | |
| 10656 | export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled"; | 12759 | export type V2ThreadSettingsUpdatedNotification__NetworkAccess = "restricted" | "enabled"; |
| 10657 | export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([ | 12760 | export const V2ThreadSettingsUpdatedNotification__NetworkAccess = Schema.Literals([ |
| ... | @@ -10694,6 +12797,34 @@ export const V2ThreadStartedNotification__GitInfo = Schema.Struct({ | ... | @@ -10694,6 +12797,34 @@ export const V2ThreadStartedNotification__GitInfo = Schema.Struct({ |
| 10694 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 12797 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 10695 | }).annotate({ identifier: "V2ThreadStartedNotification__GitInfo" }); | 12798 | }).annotate({ identifier: "V2ThreadStartedNotification__GitInfo" }); |
| 10696 | | 12799 | |
| | 12800 | export type V2ThreadStartedNotification__ThreadHistoryMode = "legacy" | "paginated"; |
| | 12801 | export const V2ThreadStartedNotification__ThreadHistoryMode = Schema.Literals([ |
| | 12802 | "legacy", |
| | 12803 | "paginated", |
| | 12804 | ]).annotate({ identifier: "V2ThreadStartedNotification__ThreadHistoryMode" }); |
| | 12805 | |
| | 12806 | export type V2ThreadStartedNotification__ReasoningEffort = string; |
| | 12807 | export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annotate({ |
| | 12808 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 12809 | }).check( |
| | 12810 | Schema.isMinLength(1).annotate({ |
| | 12811 | expected: "a value with a length of at least 1", |
| | 12812 | identifier: "V2ThreadStartedNotification__ReasoningEffort", |
| | 12813 | }), |
| | 12814 | ); |
| | 12815 | |
| | 12816 | export type V2ThreadStartedNotification__ThreadSectionAppearance = { |
| | 12817 | readonly color?: string | null; |
| | 12818 | readonly icon?: string | null; |
| | 12819 | }; |
| | 12820 | export const V2ThreadStartedNotification__ThreadSectionAppearance = Schema.Struct({ |
| | 12821 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12822 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 12823 | }).annotate({ |
| | 12824 | description: "Extensible visual presentation for a custom thread section.", |
| | 12825 | identifier: "V2ThreadStartedNotification__ThreadSectionAppearance", |
| | 12826 | }); |
| | 12827 | |
| 10697 | export type V2ThreadStartedNotification__AgentPath = string; | 12828 | export type V2ThreadStartedNotification__AgentPath = string; |
| 10698 | export const V2ThreadStartedNotification__AgentPath = Schema.String.annotate({ | 12829 | export const V2ThreadStartedNotification__AgentPath = Schema.String.annotate({ |
| 10699 | identifier: "V2ThreadStartedNotification__AgentPath", | 12830 | identifier: "V2ThreadStartedNotification__AgentPath", |
| ... | @@ -10723,6 +12854,11 @@ export const V2ThreadStartedNotification__NonSteerableTurnKind = Schema.Literals | ... | @@ -10723,6 +12854,11 @@ export const V2ThreadStartedNotification__NonSteerableTurnKind = Schema.Literals |
| 10723 | "compact", | 12854 | "compact", |
| 10724 | ]).annotate({ identifier: "V2ThreadStartedNotification__NonSteerableTurnKind" }); | 12855 | ]).annotate({ identifier: "V2ThreadStartedNotification__NonSteerableTurnKind" }); |
| 10725 | | 12856 | |
| | 12857 | export type V2ThreadStartedNotification__MisalignmentSteer = { readonly message: string }; |
| | 12858 | export const V2ThreadStartedNotification__MisalignmentSteer = Schema.Struct({ |
| | 12859 | message: Schema.String, |
| | 12860 | }).annotate({ identifier: "V2ThreadStartedNotification__MisalignmentSteer" }); |
| | 12861 | |
| 10726 | export type V2ThreadStartedNotification__ByteRange = { | 12862 | export type V2ThreadStartedNotification__ByteRange = { |
| 10727 | readonly end: number; | 12863 | readonly end: number; |
| 10728 | readonly start: number; | 12864 | readonly start: number; |
| ... | @@ -10757,6 +12893,11 @@ export const V2ThreadStartedNotification__HookPromptFragment = Schema.Struct({ | ... | @@ -10757,6 +12893,11 @@ export const V2ThreadStartedNotification__HookPromptFragment = Schema.Struct({ |
| 10757 | text: Schema.String, | 12893 | text: Schema.String, |
| 10758 | }).annotate({ identifier: "V2ThreadStartedNotification__HookPromptFragment" }); | 12894 | }).annotate({ identifier: "V2ThreadStartedNotification__HookPromptFragment" }); |
| 10759 | | 12895 | |
| | 12896 | export type V2ThreadStartedNotification__AgentMessageDelivery = "async"; |
| | 12897 | export const V2ThreadStartedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 12898 | identifier: "V2ThreadStartedNotification__AgentMessageDelivery", |
| | 12899 | }); |
| | 12900 | |
| 10760 | export type V2ThreadStartedNotification__MemoryCitationEntry = { | 12901 | export type V2ThreadStartedNotification__MemoryCitationEntry = { |
| 10761 | readonly lineEnd: number; | 12902 | readonly lineEnd: number; |
| 10762 | readonly lineStart: number; | 12903 | readonly lineStart: number; |
| ... | @@ -10796,6 +12937,15 @@ export const V2ThreadStartedNotification__MessagePhase = Schema.Union( | ... | @@ -10796,6 +12937,15 @@ export const V2ThreadStartedNotification__MessagePhase = Schema.Union( |
| 10796 | identifier: "V2ThreadStartedNotification__MessagePhase", | 12937 | identifier: "V2ThreadStartedNotification__MessagePhase", |
| 10797 | }); | 12938 | }); |
| 10798 | | 12939 | |
| | 12940 | export type V2ThreadStartedNotification__AsyncUserInputQuestion = { |
| | 12941 | readonly options?: ReadonlyArray<string> | null; |
| | 12942 | readonly title: string; |
| | 12943 | }; |
| | 12944 | export const V2ThreadStartedNotification__AsyncUserInputQuestion = Schema.Struct({ |
| | 12945 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 12946 | title: Schema.String, |
| | 12947 | }).annotate({ identifier: "V2ThreadStartedNotification__AsyncUserInputQuestion" }); |
| | 12948 | |
| 10799 | export type V2ThreadStartedNotification__LegacyAppPathString = string; | 12949 | export type V2ThreadStartedNotification__LegacyAppPathString = string; |
| 10800 | export const V2ThreadStartedNotification__LegacyAppPathString = Schema.String.annotate({ | 12950 | export const V2ThreadStartedNotification__LegacyAppPathString = Schema.String.annotate({ |
| 10801 | identifier: "V2ThreadStartedNotification__LegacyAppPathString", | 12951 | identifier: "V2ThreadStartedNotification__LegacyAppPathString", |
| ... | @@ -10877,6 +13027,12 @@ export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({ | ... | @@ -10877,6 +13027,12 @@ export const V2ThreadStartedNotification__McpToolCallError = Schema.Struct({ |
| 10877 | message: Schema.String, | 13027 | message: Schema.String, |
| 10878 | }).annotate({ identifier: "V2ThreadStartedNotification__McpToolCallError" }); | 13028 | }).annotate({ identifier: "V2ThreadStartedNotification__McpToolCallError" }); |
| 10879 | | 13029 | |
| | 13030 | export type V2ThreadStartedNotification__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 13031 | export const V2ThreadStartedNotification__McpAppDisplayMode = Schema.Literals([ |
| | 13032 | "inline", |
| | 13033 | "fullscreen", |
| | 13034 | ]).annotate({ identifier: "V2ThreadStartedNotification__McpAppDisplayMode" }); |
| | 13035 | |
| 10880 | export type V2ThreadStartedNotification__McpToolCallResult = { | 13036 | export type V2ThreadStartedNotification__McpToolCallResult = { |
| 10881 | readonly _meta?: Schema.Json; | 13037 | readonly _meta?: Schema.Json; |
| 10882 | readonly content: ReadonlyArray<Schema.Json>; | 13038 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -10951,16 +13107,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([ | ... | @@ -10951,16 +13107,6 @@ export const V2ThreadStartedNotification__CollabAgentStatus = Schema.Literals([ |
| 10951 | "notFound", | 13107 | "notFound", |
| 10952 | ]).annotate({ identifier: "V2ThreadStartedNotification__CollabAgentStatus" }); | 13108 | ]).annotate({ identifier: "V2ThreadStartedNotification__CollabAgentStatus" }); |
| 10953 | | 13109 | |
| 10954 | export type V2ThreadStartedNotification__ReasoningEffort = string; | | |
| 10955 | export const V2ThreadStartedNotification__ReasoningEffort = Schema.String.annotate({ | | |
| 10956 | description: "A non-empty reasoning effort value advertised by the model.", | | |
| 10957 | }).check( | | |
| 10958 | Schema.isMinLength(1).annotate({ | | |
| 10959 | expected: "a value with a length of at least 1", | | |
| 10960 | identifier: "V2ThreadStartedNotification__ReasoningEffort", | | |
| 10961 | }), | | |
| 10962 | ); | | |
| 10963 | | | |
| 10964 | export type V2ThreadStartedNotification__CollabAgentToolCallStatus = | 13110 | export type V2ThreadStartedNotification__CollabAgentToolCallStatus = |
| 10965 | | "inProgress" | 13111 | | "inProgress" |
| 10966 | | "completed" | 13112 | | "completed" |
| ... | @@ -11039,6 +13185,31 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union( | ... | @@ -11039,6 +13185,31 @@ export const V2ThreadStartedNotification__WebSearchAction = Schema.Union( |
| 11039 | { mode: "oneOf" }, | 13185 | { mode: "oneOf" }, |
| 11040 | ).annotate({ identifier: "V2ThreadStartedNotification__WebSearchAction" }); | 13186 | ).annotate({ identifier: "V2ThreadStartedNotification__WebSearchAction" }); |
| 11041 | | 13187 | |
| | 13188 | export type V2ThreadStartedNotification__ImageGenerationFailure = { |
| | 13189 | readonly limitId: string; |
| | 13190 | readonly resetsAt?: number | null; |
| | 13191 | readonly type: "usageLimitExceeded"; |
| | 13192 | }; |
| | 13193 | export const V2ThreadStartedNotification__ImageGenerationFailure = Schema.Union( |
| | 13194 | [ |
| | 13195 | Schema.Struct({ |
| | 13196 | limitId: Schema.String, |
| | 13197 | resetsAt: Schema.optionalKey( |
| | 13198 | Schema.Union([ |
| | 13199 | Schema.Number.annotate({ format: "int64" }).check( |
| | 13200 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 13201 | ), |
| | 13202 | Schema.Null, |
| | 13203 | ]), |
| | 13204 | ), |
| | 13205 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 13206 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 13207 | }), |
| | 13208 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 13209 | ], |
| | 13210 | { mode: "oneOf" }, |
| | 13211 | ).annotate({ identifier: "V2ThreadStartedNotification__ImageGenerationFailure" }); |
| | 13212 | |
| 11042 | export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | 13213 | export type V2ThreadStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 11043 | export const V2ThreadStartedNotification__TurnItemsView = Schema.Union( | 13214 | export const V2ThreadStartedNotification__TurnItemsView = Schema.Union( |
| 11044 | [ | 13215 | [ |
| ... | @@ -11113,7 +13284,10 @@ export const V2ThreadStartParams__Personality = Schema.Literals([ | ... | @@ -11113,7 +13284,10 @@ export const V2ThreadStartParams__Personality = Schema.Literals([ |
| 11113 | "none", | 13284 | "none", |
| 11114 | "friendly", | 13285 | "friendly", |
| 11115 | "pragmatic", | 13286 | "pragmatic", |
| 11116 | ]).annotate({ identifier: "V2ThreadStartParams__Personality" }); | 13287 | ]).annotate({ |
| | 13288 | description: "Deprecated: `friendly` and `pragmatic` no longer select a style.", |
| | 13289 | identifier: "V2ThreadStartParams__Personality", |
| | 13290 | }); |
| 11117 | | 13291 | |
| 11118 | export type V2ThreadStartParams__SandboxMode = | 13292 | export type V2ThreadStartParams__SandboxMode = |
| 11119 | | "read-only" | 13293 | | "read-only" |
| ... | @@ -11266,6 +13440,24 @@ export const V2ThreadStartResponse__GitInfo = Schema.Struct({ | ... | @@ -11266,6 +13440,24 @@ export const V2ThreadStartResponse__GitInfo = Schema.Struct({ |
| 11266 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13440 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11267 | }).annotate({ identifier: "V2ThreadStartResponse__GitInfo" }); | 13441 | }).annotate({ identifier: "V2ThreadStartResponse__GitInfo" }); |
| 11268 | | 13442 | |
| | 13443 | export type V2ThreadStartResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 13444 | export const V2ThreadStartResponse__ThreadHistoryMode = Schema.Literals([ |
| | 13445 | "legacy", |
| | 13446 | "paginated", |
| | 13447 | ]).annotate({ identifier: "V2ThreadStartResponse__ThreadHistoryMode" }); |
| | 13448 | |
| | 13449 | export type V2ThreadStartResponse__ThreadSectionAppearance = { |
| | 13450 | readonly color?: string | null; |
| | 13451 | readonly icon?: string | null; |
| | 13452 | }; |
| | 13453 | export const V2ThreadStartResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 13454 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13455 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 13456 | }).annotate({ |
| | 13457 | description: "Extensible visual presentation for a custom thread section.", |
| | 13458 | identifier: "V2ThreadStartResponse__ThreadSectionAppearance", |
| | 13459 | }); |
| | 13460 | |
| 11269 | export type V2ThreadStartResponse__AgentPath = string; | 13461 | export type V2ThreadStartResponse__AgentPath = string; |
| 11270 | export const V2ThreadStartResponse__AgentPath = Schema.String.annotate({ | 13462 | export const V2ThreadStartResponse__AgentPath = Schema.String.annotate({ |
| 11271 | identifier: "V2ThreadStartResponse__AgentPath", | 13463 | identifier: "V2ThreadStartResponse__AgentPath", |
| ... | @@ -11293,6 +13485,11 @@ export const V2ThreadStartResponse__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -11293,6 +13485,11 @@ export const V2ThreadStartResponse__NonSteerableTurnKind = Schema.Literals([ |
| 11293 | "compact", | 13485 | "compact", |
| 11294 | ]).annotate({ identifier: "V2ThreadStartResponse__NonSteerableTurnKind" }); | 13486 | ]).annotate({ identifier: "V2ThreadStartResponse__NonSteerableTurnKind" }); |
| 11295 | | 13487 | |
| | 13488 | export type V2ThreadStartResponse__MisalignmentSteer = { readonly message: string }; |
| | 13489 | export const V2ThreadStartResponse__MisalignmentSteer = Schema.Struct({ |
| | 13490 | message: Schema.String, |
| | 13491 | }).annotate({ identifier: "V2ThreadStartResponse__MisalignmentSteer" }); |
| | 13492 | |
| 11296 | export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number }; | 13493 | export type V2ThreadStartResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 11297 | export const V2ThreadStartResponse__ByteRange = Schema.Struct({ | 13494 | export const V2ThreadStartResponse__ByteRange = Schema.Struct({ |
| 11298 | end: Schema.Number.annotate({ format: "uint" }) | 13495 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -11324,6 +13521,11 @@ export const V2ThreadStartResponse__HookPromptFragment = Schema.Struct({ | ... | @@ -11324,6 +13521,11 @@ export const V2ThreadStartResponse__HookPromptFragment = Schema.Struct({ |
| 11324 | text: Schema.String, | 13521 | text: Schema.String, |
| 11325 | }).annotate({ identifier: "V2ThreadStartResponse__HookPromptFragment" }); | 13522 | }).annotate({ identifier: "V2ThreadStartResponse__HookPromptFragment" }); |
| 11326 | | 13523 | |
| | 13524 | export type V2ThreadStartResponse__AgentMessageDelivery = "async"; |
| | 13525 | export const V2ThreadStartResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 13526 | identifier: "V2ThreadStartResponse__AgentMessageDelivery", |
| | 13527 | }); |
| | 13528 | |
| 11327 | export type V2ThreadStartResponse__MemoryCitationEntry = { | 13529 | export type V2ThreadStartResponse__MemoryCitationEntry = { |
| 11328 | readonly lineEnd: number; | 13530 | readonly lineEnd: number; |
| 11329 | readonly lineStart: number; | 13531 | readonly lineStart: number; |
| ... | @@ -11363,6 +13565,15 @@ export const V2ThreadStartResponse__MessagePhase = Schema.Union( | ... | @@ -11363,6 +13565,15 @@ export const V2ThreadStartResponse__MessagePhase = Schema.Union( |
| 11363 | identifier: "V2ThreadStartResponse__MessagePhase", | 13565 | identifier: "V2ThreadStartResponse__MessagePhase", |
| 11364 | }); | 13566 | }); |
| 11365 | | 13567 | |
| | 13568 | export type V2ThreadStartResponse__AsyncUserInputQuestion = { |
| | 13569 | readonly options?: ReadonlyArray<string> | null; |
| | 13570 | readonly title: string; |
| | 13571 | }; |
| | 13572 | export const V2ThreadStartResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 13573 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 13574 | title: Schema.String, |
| | 13575 | }).annotate({ identifier: "V2ThreadStartResponse__AsyncUserInputQuestion" }); |
| | 13576 | |
| 11366 | export type V2ThreadStartResponse__CommandExecutionSource = | 13577 | export type V2ThreadStartResponse__CommandExecutionSource = |
| 11367 | | "agent" | 13578 | | "agent" |
| 11368 | | "userShell" | 13579 | | "userShell" |
| ... | @@ -11439,6 +13650,12 @@ export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ | ... | @@ -11439,6 +13650,12 @@ export const V2ThreadStartResponse__McpToolCallError = Schema.Struct({ |
| 11439 | message: Schema.String, | 13650 | message: Schema.String, |
| 11440 | }).annotate({ identifier: "V2ThreadStartResponse__McpToolCallError" }); | 13651 | }).annotate({ identifier: "V2ThreadStartResponse__McpToolCallError" }); |
| 11441 | | 13652 | |
| | 13653 | export type V2ThreadStartResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 13654 | export const V2ThreadStartResponse__McpAppDisplayMode = Schema.Literals([ |
| | 13655 | "inline", |
| | 13656 | "fullscreen", |
| | 13657 | ]).annotate({ identifier: "V2ThreadStartResponse__McpAppDisplayMode" }); |
| | 13658 | |
| 11442 | export type V2ThreadStartResponse__McpToolCallResult = { | 13659 | export type V2ThreadStartResponse__McpToolCallResult = { |
| 11443 | readonly _meta?: Schema.Json; | 13660 | readonly _meta?: Schema.Json; |
| 11444 | readonly content: ReadonlyArray<Schema.Json>; | 13661 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -11588,6 +13805,31 @@ export const V2ThreadStartResponse__WebSearchAction = Schema.Union( | ... | @@ -11588,6 +13805,31 @@ export const V2ThreadStartResponse__WebSearchAction = Schema.Union( |
| 11588 | { mode: "oneOf" }, | 13805 | { mode: "oneOf" }, |
| 11589 | ).annotate({ identifier: "V2ThreadStartResponse__WebSearchAction" }); | 13806 | ).annotate({ identifier: "V2ThreadStartResponse__WebSearchAction" }); |
| 11590 | | 13807 | |
| | 13808 | export type V2ThreadStartResponse__ImageGenerationFailure = { |
| | 13809 | readonly limitId: string; |
| | 13810 | readonly resetsAt?: number | null; |
| | 13811 | readonly type: "usageLimitExceeded"; |
| | 13812 | }; |
| | 13813 | export const V2ThreadStartResponse__ImageGenerationFailure = Schema.Union( |
| | 13814 | [ |
| | 13815 | Schema.Struct({ |
| | 13816 | limitId: Schema.String, |
| | 13817 | resetsAt: Schema.optionalKey( |
| | 13818 | Schema.Union([ |
| | 13819 | Schema.Number.annotate({ format: "int64" }).check( |
| | 13820 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 13821 | ), |
| | 13822 | Schema.Null, |
| | 13823 | ]), |
| | 13824 | ), |
| | 13825 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 13826 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 13827 | }), |
| | 13828 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 13829 | ], |
| | 13830 | { mode: "oneOf" }, |
| | 13831 | ).annotate({ identifier: "V2ThreadStartResponse__ImageGenerationFailure" }); |
| | 13832 | |
| 11591 | export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 13833 | export type V2ThreadStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 11592 | export const V2ThreadStartResponse__TurnItemsView = Schema.Union( | 13834 | export const V2ThreadStartResponse__TurnItemsView = Schema.Union( |
| 11593 | [ | 13835 | [ |
| ... | @@ -11656,55 +13898,41 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema | ... | @@ -11656,55 +13898,41 @@ export const V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown = Schema |
| 11656 | ), | 13898 | ), |
| 11657 | }).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown" }); | 13899 | }).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown" }); |
| 11658 | | 13900 | |
| 11659 | export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string; | 13901 | export type V2ThreadTurnsListParams__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 11660 | export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({ | 13902 | export const V2ThreadTurnsListParams__TurnItemsView = Schema.Union( |
| 11661 | description: | 13903 | [ |
| 11662 | "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.", | 13904 | Schema.Literal("notLoaded").annotate({ |
| 11663 | identifier: "V2ThreadUnarchiveResponse__AbsolutePathBuf", | 13905 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| 11664 | }); | 13906 | }), |
| 11665 | | 13907 | Schema.Literal("summary").annotate({ |
| 11666 | export type V2ThreadUnarchiveResponse__GitInfo = { | 13908 | description: "`items` contains only a display summary for this turn.", |
| 11667 | readonly branch?: string | null; | 13909 | }), |
| 11668 | readonly originUrl?: string | null; | 13910 | Schema.Literal("full").annotate({ |
| 11669 | readonly sha?: string | null; | 13911 | description: |
| 11670 | }; | 13912 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| 11671 | export const V2ThreadUnarchiveResponse__GitInfo = Schema.Struct({ | 13913 | }), |
| 11672 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13914 | ], |
| 11673 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13915 | { mode: "oneOf" }, |
| 11674 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 13916 | ).annotate({ identifier: "V2ThreadTurnsListParams__TurnItemsView" }); |
| 11675 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__GitInfo" }); | | |
| 11676 | | | |
| 11677 | export type V2ThreadUnarchiveResponse__AgentPath = string; | | |
| 11678 | export const V2ThreadUnarchiveResponse__AgentPath = Schema.String.annotate({ | | |
| 11679 | identifier: "V2ThreadUnarchiveResponse__AgentPath", | | |
| 11680 | }); | | |
| 11681 | | | |
| 11682 | export type V2ThreadUnarchiveResponse__ThreadId = string; | | |
| 11683 | export const V2ThreadUnarchiveResponse__ThreadId = Schema.String.annotate({ | | |
| 11684 | identifier: "V2ThreadUnarchiveResponse__ThreadId", | | |
| 11685 | }); | | |
| 11686 | | | |
| 11687 | export type V2ThreadUnarchiveResponse__ThreadActiveFlag = | | |
| 11688 | | "waitingOnApproval" | | |
| 11689 | | "waitingOnUserInput"; | | |
| 11690 | export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([ | | |
| 11691 | "waitingOnApproval", | | |
| 11692 | "waitingOnUserInput", | | |
| 11693 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadActiveFlag" }); | | |
| 11694 | | 13917 | |
| 11695 | export type V2ThreadUnarchiveResponse__ThreadSource = string; | 13918 | export type V2ThreadTurnsListParams__SortDirection = "asc" | "desc"; |
| 11696 | export const V2ThreadUnarchiveResponse__ThreadSource = Schema.String.annotate({ | 13919 | export const V2ThreadTurnsListParams__SortDirection = Schema.Literals(["asc", "desc"]).annotate({ |
| 11697 | identifier: "V2ThreadUnarchiveResponse__ThreadSource", | 13920 | identifier: "V2ThreadTurnsListParams__SortDirection", |
| 11698 | }); | 13921 | }); |
| 11699 | | 13922 | |
| 11700 | export type V2ThreadUnarchiveResponse__NonSteerableTurnKind = "review" | "compact"; | 13923 | export type V2ThreadTurnsListResponse__NonSteerableTurnKind = "review" | "compact"; |
| 11701 | export const V2ThreadUnarchiveResponse__NonSteerableTurnKind = Schema.Literals([ | 13924 | export const V2ThreadTurnsListResponse__NonSteerableTurnKind = Schema.Literals([ |
| 11702 | "review", | 13925 | "review", |
| 11703 | "compact", | 13926 | "compact", |
| 11704 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__NonSteerableTurnKind" }); | 13927 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__NonSteerableTurnKind" }); |
| 11705 | | 13928 | |
| 11706 | export type V2ThreadUnarchiveResponse__ByteRange = { readonly end: number; readonly start: number }; | 13929 | export type V2ThreadTurnsListResponse__MisalignmentSteer = { readonly message: string }; |
| 11707 | export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({ | 13930 | export const V2ThreadTurnsListResponse__MisalignmentSteer = Schema.Struct({ |
| | 13931 | message: Schema.String, |
| | 13932 | }).annotate({ identifier: "V2ThreadTurnsListResponse__MisalignmentSteer" }); |
| | 13933 | |
| | 13934 | export type V2ThreadTurnsListResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 13935 | export const V2ThreadTurnsListResponse__ByteRange = Schema.Struct({ |
| 11708 | end: Schema.Number.annotate({ format: "uint" }) | 13936 | end: Schema.Number.annotate({ format: "uint" }) |
| 11709 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 13937 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 11710 | .check( | 13938 | .check( |
| ... | @@ -11715,32 +13943,37 @@ export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({ | ... | @@ -11715,32 +13943,37 @@ export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({ |
| 11715 | .check( | 13943 | .check( |
| 11716 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), | 13944 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 11717 | ), | 13945 | ), |
| 11718 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__ByteRange" }); | 13946 | }).annotate({ identifier: "V2ThreadTurnsListResponse__ByteRange" }); |
| 11719 | | 13947 | |
| 11720 | export type V2ThreadUnarchiveResponse__ImageDetail = "auto" | "low" | "high" | "original"; | 13948 | export type V2ThreadTurnsListResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 11721 | export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([ | 13949 | export const V2ThreadTurnsListResponse__ImageDetail = Schema.Literals([ |
| 11722 | "auto", | 13950 | "auto", |
| 11723 | "low", | 13951 | "low", |
| 11724 | "high", | 13952 | "high", |
| 11725 | "original", | 13953 | "original", |
| 11726 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__ImageDetail" }); | 13954 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__ImageDetail" }); |
| 11727 | | 13955 | |
| 11728 | export type V2ThreadUnarchiveResponse__HookPromptFragment = { | 13956 | export type V2ThreadTurnsListResponse__HookPromptFragment = { |
| 11729 | readonly hookRunId: string; | 13957 | readonly hookRunId: string; |
| 11730 | readonly text: string; | 13958 | readonly text: string; |
| 11731 | }; | 13959 | }; |
| 11732 | export const V2ThreadUnarchiveResponse__HookPromptFragment = Schema.Struct({ | 13960 | export const V2ThreadTurnsListResponse__HookPromptFragment = Schema.Struct({ |
| 11733 | hookRunId: Schema.String, | 13961 | hookRunId: Schema.String, |
| 11734 | text: Schema.String, | 13962 | text: Schema.String, |
| 11735 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__HookPromptFragment" }); | 13963 | }).annotate({ identifier: "V2ThreadTurnsListResponse__HookPromptFragment" }); |
| 11736 | | 13964 | |
| 11737 | export type V2ThreadUnarchiveResponse__MemoryCitationEntry = { | 13965 | export type V2ThreadTurnsListResponse__AgentMessageDelivery = "async"; |
| | 13966 | export const V2ThreadTurnsListResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 13967 | identifier: "V2ThreadTurnsListResponse__AgentMessageDelivery", |
| | 13968 | }); |
| | 13969 | |
| | 13970 | export type V2ThreadTurnsListResponse__MemoryCitationEntry = { |
| 11738 | readonly lineEnd: number; | 13971 | readonly lineEnd: number; |
| 11739 | readonly lineStart: number; | 13972 | readonly lineStart: number; |
| 11740 | readonly note: string; | 13973 | readonly note: string; |
| 11741 | readonly path: string; | 13974 | readonly path: string; |
| 11742 | }; | 13975 | }; |
| 11743 | export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({ | 13976 | export const V2ThreadTurnsListResponse__MemoryCitationEntry = Schema.Struct({ |
| 11744 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 13977 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 11745 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 13978 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 11746 | .check( | 13979 | .check( |
| ... | @@ -11753,10 +13986,10 @@ export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({ | ... | @@ -11753,10 +13986,10 @@ export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({ |
| 11753 | ), | 13986 | ), |
| 11754 | note: Schema.String, | 13987 | note: Schema.String, |
| 11755 | path: Schema.String, | 13988 | path: Schema.String, |
| 11756 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitationEntry" }); | 13989 | }).annotate({ identifier: "V2ThreadTurnsListResponse__MemoryCitationEntry" }); |
| 11757 | | 13990 | |
| 11758 | export type V2ThreadUnarchiveResponse__MessagePhase = "commentary" | "final_answer"; | 13991 | export type V2ThreadTurnsListResponse__MessagePhase = "commentary" | "final_answer"; |
| 11759 | export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union( | 13992 | export const V2ThreadTurnsListResponse__MessagePhase = Schema.Union( |
| 11760 | [ | 13993 | [ |
| 11761 | Schema.Literal("commentary").annotate({ | 13994 | Schema.Literal("commentary").annotate({ |
| 11762 | description: | 13995 | description: |
| ... | @@ -11770,43 +14003,52 @@ export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union( | ... | @@ -11770,43 +14003,52 @@ export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union( |
| 11770 | ).annotate({ | 14003 | ).annotate({ |
| 11771 | description: | 14004 | description: |
| 11772 | '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.', | 14005 | '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.', |
| 11773 | identifier: "V2ThreadUnarchiveResponse__MessagePhase", | 14006 | identifier: "V2ThreadTurnsListResponse__MessagePhase", |
| 11774 | }); | 14007 | }); |
| 11775 | | 14008 | |
| 11776 | export type V2ThreadUnarchiveResponse__LegacyAppPathString = string; | 14009 | export type V2ThreadTurnsListResponse__AsyncUserInputQuestion = { |
| 11777 | export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String.annotate({ | 14010 | readonly options?: ReadonlyArray<string> | null; |
| 11778 | identifier: "V2ThreadUnarchiveResponse__LegacyAppPathString", | 14011 | readonly title: string; |
| | 14012 | }; |
| | 14013 | export const V2ThreadTurnsListResponse__AsyncUserInputQuestion = Schema.Struct({ |
| | 14014 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 14015 | title: Schema.String, |
| | 14016 | }).annotate({ identifier: "V2ThreadTurnsListResponse__AsyncUserInputQuestion" }); |
| | 14017 | |
| | 14018 | export type V2ThreadTurnsListResponse__LegacyAppPathString = string; |
| | 14019 | export const V2ThreadTurnsListResponse__LegacyAppPathString = Schema.String.annotate({ |
| | 14020 | identifier: "V2ThreadTurnsListResponse__LegacyAppPathString", |
| 11779 | }); | 14021 | }); |
| 11780 | | 14022 | |
| 11781 | export type V2ThreadUnarchiveResponse__CommandExecutionSource = | 14023 | export type V2ThreadTurnsListResponse__CommandExecutionSource = |
| 11782 | | "agent" | 14024 | | "agent" |
| 11783 | | "userShell" | 14025 | | "userShell" |
| 11784 | | "unifiedExecStartup" | 14026 | | "unifiedExecStartup" |
| 11785 | | "unifiedExecInteraction"; | 14027 | | "unifiedExecInteraction"; |
| 11786 | export const V2ThreadUnarchiveResponse__CommandExecutionSource = Schema.Literals([ | 14028 | export const V2ThreadTurnsListResponse__CommandExecutionSource = Schema.Literals([ |
| 11787 | "agent", | 14029 | "agent", |
| 11788 | "userShell", | 14030 | "userShell", |
| 11789 | "unifiedExecStartup", | 14031 | "unifiedExecStartup", |
| 11790 | "unifiedExecInteraction", | 14032 | "unifiedExecInteraction", |
| 11791 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionSource" }); | 14033 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__CommandExecutionSource" }); |
| 11792 | | 14034 | |
| 11793 | export type V2ThreadUnarchiveResponse__CommandExecutionStatus = | 14035 | export type V2ThreadTurnsListResponse__CommandExecutionStatus = |
| 11794 | | "inProgress" | 14036 | | "inProgress" |
| 11795 | | "completed" | 14037 | | "completed" |
| 11796 | | "failed" | 14038 | | "failed" |
| 11797 | | "declined"; | 14039 | | "declined"; |
| 11798 | export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals([ | 14040 | export const V2ThreadTurnsListResponse__CommandExecutionStatus = Schema.Literals([ |
| 11799 | "inProgress", | 14041 | "inProgress", |
| 11800 | "completed", | 14042 | "completed", |
| 11801 | "failed", | 14043 | "failed", |
| 11802 | "declined", | 14044 | "declined", |
| 11803 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionStatus" }); | 14045 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__CommandExecutionStatus" }); |
| 11804 | | 14046 | |
| 11805 | export type V2ThreadUnarchiveResponse__PatchChangeKind = | 14047 | export type V2ThreadTurnsListResponse__PatchChangeKind = |
| 11806 | | { readonly type: "add" } | 14048 | | { readonly type: "add" } |
| 11807 | | { readonly type: "delete" } | 14049 | | { readonly type: "delete" } |
| 11808 | | { readonly move_path?: string | null; readonly type: "update" }; | 14050 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 11809 | export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union( | 14051 | export const V2ThreadTurnsListResponse__PatchChangeKind = Schema.Union( |
| 11810 | [ | 14052 | [ |
| 11811 | Schema.Struct({ | 14053 | Schema.Struct({ |
| 11812 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 14054 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| ... | @@ -11820,63 +14062,69 @@ export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union( | ... | @@ -11820,63 +14062,69 @@ export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union( |
| 11820 | }).annotate({ title: "UpdatePatchChangeKind" }), | 14062 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 11821 | ], | 14063 | ], |
| 11822 | { mode: "oneOf" }, | 14064 | { mode: "oneOf" }, |
| 11823 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchChangeKind" }); | 14065 | ).annotate({ identifier: "V2ThreadTurnsListResponse__PatchChangeKind" }); |
| 11824 | | 14066 | |
| 11825 | export type V2ThreadUnarchiveResponse__PatchApplyStatus = | 14067 | export type V2ThreadTurnsListResponse__PatchApplyStatus = |
| 11826 | | "inProgress" | 14068 | | "inProgress" |
| 11827 | | "completed" | 14069 | | "completed" |
| 11828 | | "failed" | 14070 | | "failed" |
| 11829 | | "declined"; | 14071 | | "declined"; |
| 11830 | export const V2ThreadUnarchiveResponse__PatchApplyStatus = Schema.Literals([ | 14072 | export const V2ThreadTurnsListResponse__PatchApplyStatus = Schema.Literals([ |
| 11831 | "inProgress", | 14073 | "inProgress", |
| 11832 | "completed", | 14074 | "completed", |
| 11833 | "failed", | 14075 | "failed", |
| 11834 | "declined", | 14076 | "declined", |
| 11835 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchApplyStatus" }); | 14077 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__PatchApplyStatus" }); |
| 11836 | | 14078 | |
| 11837 | export type V2ThreadUnarchiveResponse__McpToolCallAppContext = { | 14079 | export type V2ThreadTurnsListResponse__McpToolCallAppContext = { |
| 11838 | readonly actionName?: string | null; | 14080 | readonly actionName?: string | null; |
| 11839 | readonly appName?: string | null; | 14081 | readonly appName?: string | null; |
| 11840 | readonly connectorId: string; | 14082 | readonly connectorId: string; |
| 11841 | readonly linkId?: string | null; | 14083 | readonly linkId?: string | null; |
| 11842 | readonly resourceUri?: string | null; | 14084 | readonly resourceUri?: string | null; |
| 11843 | }; | 14085 | }; |
| 11844 | export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({ | 14086 | export const V2ThreadTurnsListResponse__McpToolCallAppContext = Schema.Struct({ |
| 11845 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14087 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11846 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14088 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11847 | connectorId: Schema.String, | 14089 | connectorId: Schema.String, |
| 11848 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14090 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11849 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14091 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 11850 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallAppContext" }); | 14092 | }).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallAppContext" }); |
| 11851 | | 14093 | |
| 11852 | export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string }; | 14094 | export type V2ThreadTurnsListResponse__McpToolCallError = { readonly message: string }; |
| 11853 | export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({ | 14095 | export const V2ThreadTurnsListResponse__McpToolCallError = Schema.Struct({ |
| 11854 | message: Schema.String, | 14096 | message: Schema.String, |
| 11855 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallError" }); | 14097 | }).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallError" }); |
| 11856 | | 14098 | |
| 11857 | export type V2ThreadUnarchiveResponse__McpToolCallResult = { | 14099 | export type V2ThreadTurnsListResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 14100 | export const V2ThreadTurnsListResponse__McpAppDisplayMode = Schema.Literals([ |
| | 14101 | "inline", |
| | 14102 | "fullscreen", |
| | 14103 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__McpAppDisplayMode" }); |
| | 14104 | |
| | 14105 | export type V2ThreadTurnsListResponse__McpToolCallResult = { |
| 11858 | readonly _meta?: Schema.Json; | 14106 | readonly _meta?: Schema.Json; |
| 11859 | readonly content: ReadonlyArray<Schema.Json>; | 14107 | readonly content: ReadonlyArray<Schema.Json>; |
| 11860 | readonly structuredContent?: Schema.Json; | 14108 | readonly structuredContent?: Schema.Json; |
| 11861 | }; | 14109 | }; |
| 11862 | export const V2ThreadUnarchiveResponse__McpToolCallResult = Schema.Struct({ | 14110 | export const V2ThreadTurnsListResponse__McpToolCallResult = Schema.Struct({ |
| 11863 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), | 14111 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 11864 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), | 14112 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 11865 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), | 14113 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 11866 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallResult" }); | 14114 | }).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallResult" }); |
| 11867 | | 14115 | |
| 11868 | export type V2ThreadUnarchiveResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 14116 | export type V2ThreadTurnsListResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 11869 | export const V2ThreadUnarchiveResponse__McpToolCallStatus = Schema.Literals([ | 14117 | export const V2ThreadTurnsListResponse__McpToolCallStatus = Schema.Literals([ |
| 11870 | "inProgress", | 14118 | "inProgress", |
| 11871 | "completed", | 14119 | "completed", |
| 11872 | "failed", | 14120 | "failed", |
| 11873 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallStatus" }); | 14121 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__McpToolCallStatus" }); |
| 11874 | | 14122 | |
| 11875 | export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = | 14123 | export type V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = |
| 11876 | | { readonly text: string; readonly type: "inputText" } | 14124 | | { readonly text: string; readonly type: "inputText" } |
| 11877 | | { readonly imageUrl: string; readonly type: "inputImage" } | 14125 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 11878 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 14126 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 11879 | export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union( | 14127 | export const V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| 11880 | [ | 14128 | [ |
| 11881 | Schema.Struct({ | 14129 | Schema.Struct({ |
| 11882 | text: Schema.String, | 14130 | text: Schema.String, |
| ... | @@ -11898,19 +14146,19 @@ export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schem | ... | @@ -11898,19 +14146,19 @@ export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schem |
| 11898 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), | 14146 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| 11899 | ], | 14147 | ], |
| 11900 | { mode: "oneOf" }, | 14148 | { mode: "oneOf" }, |
| 11901 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem" }); | 14149 | ).annotate({ identifier: "V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem" }); |
| 11902 | | 14150 | |
| 11903 | export type V2ThreadUnarchiveResponse__DynamicToolCallStatus = | 14151 | export type V2ThreadTurnsListResponse__DynamicToolCallStatus = |
| 11904 | | "inProgress" | 14152 | | "inProgress" |
| 11905 | | "completed" | 14153 | | "completed" |
| 11906 | | "failed"; | 14154 | | "failed"; |
| 11907 | export const V2ThreadUnarchiveResponse__DynamicToolCallStatus = Schema.Literals([ | 14155 | export const V2ThreadTurnsListResponse__DynamicToolCallStatus = Schema.Literals([ |
| 11908 | "inProgress", | 14156 | "inProgress", |
| 11909 | "completed", | 14157 | "completed", |
| 11910 | "failed", | 14158 | "failed", |
| 11911 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallStatus" }); | 14159 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__DynamicToolCallStatus" }); |
| 11912 | | 14160 | |
| 11913 | export type V2ThreadUnarchiveResponse__CollabAgentStatus = | 14161 | export type V2ThreadTurnsListResponse__CollabAgentStatus = |
| 11914 | | "pendingInit" | 14162 | | "pendingInit" |
| 11915 | | "running" | 14163 | | "running" |
| 11916 | | "interrupted" | 14164 | | "interrupted" |
| ... | @@ -11918,7 +14166,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus = | ... | @@ -11918,7 +14166,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentStatus = |
| 11918 | | "errored" | 14166 | | "errored" |
| 11919 | | "shutdown" | 14167 | | "shutdown" |
| 11920 | | "notFound"; | 14168 | | "notFound"; |
| 11921 | export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ | 14169 | export const V2ThreadTurnsListResponse__CollabAgentStatus = Schema.Literals([ |
| 11922 | "pendingInit", | 14170 | "pendingInit", |
| 11923 | "running", | 14171 | "running", |
| 11924 | "interrupted", | 14172 | "interrupted", |
| ... | @@ -11926,31 +14174,31 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ | ... | @@ -11926,31 +14174,31 @@ export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ |
| 11926 | "errored", | 14174 | "errored", |
| 11927 | "shutdown", | 14175 | "shutdown", |
| 11928 | "notFound", | 14176 | "notFound", |
| 11929 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentStatus" }); | 14177 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentStatus" }); |
| 11930 | | 14178 | |
| 11931 | export type V2ThreadUnarchiveResponse__ReasoningEffort = string; | 14179 | export type V2ThreadTurnsListResponse__ReasoningEffort = string; |
| 11932 | export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate({ | 14180 | export const V2ThreadTurnsListResponse__ReasoningEffort = Schema.String.annotate({ |
| 11933 | description: "A non-empty reasoning effort value advertised by the model.", | 14181 | description: "A non-empty reasoning effort value advertised by the model.", |
| 11934 | }).check( | 14182 | }).check( |
| 11935 | Schema.isMinLength(1).annotate({ | 14183 | Schema.isMinLength(1).annotate({ |
| 11936 | expected: "a value with a length of at least 1", | 14184 | expected: "a value with a length of at least 1", |
| 11937 | identifier: "V2ThreadUnarchiveResponse__ReasoningEffort", | 14185 | identifier: "V2ThreadTurnsListResponse__ReasoningEffort", |
| 11938 | }), | 14186 | }), |
| 11939 | ); | 14187 | ); |
| 11940 | | 14188 | |
| 11941 | export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = | 14189 | export type V2ThreadTurnsListResponse__CollabAgentToolCallStatus = |
| 11942 | | "inProgress" | 14190 | | "inProgress" |
| 11943 | | "completed" | 14191 | | "completed" |
| 11944 | | "failed" | 14192 | | "failed" |
| 11945 | | "interrupted"; | 14193 | | "interrupted"; |
| 11946 | export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([ | 14194 | export const V2ThreadTurnsListResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| 11947 | "inProgress", | 14195 | "inProgress", |
| 11948 | "completed", | 14196 | "completed", |
| 11949 | "failed", | 14197 | "failed", |
| 11950 | "interrupted", | 14198 | "interrupted", |
| 11951 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentToolCallStatus" }); | 14199 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentToolCallStatus" }); |
| 11952 | | 14200 | |
| 11953 | export type V2ThreadUnarchiveResponse__CollabAgentTool = | 14201 | export type V2ThreadTurnsListResponse__CollabAgentTool = |
| 11954 | | "spawnAgent" | 14202 | | "spawnAgent" |
| 11955 | | "sendInput" | 14203 | | "sendInput" |
| 11956 | | "resumeAgent" | 14204 | | "resumeAgent" |
| ... | @@ -11960,7 +14208,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentTool = | ... | @@ -11960,7 +14208,7 @@ export type V2ThreadUnarchiveResponse__CollabAgentTool = |
| 11960 | | "followupTask" | 14208 | | "followupTask" |
| 11961 | | "interruptAgent" | 14209 | | "interruptAgent" |
| 11962 | | "listAgents"; | 14210 | | "listAgents"; |
| 11963 | export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([ | 14211 | export const V2ThreadTurnsListResponse__CollabAgentTool = Schema.Literals([ |
| 11964 | "spawnAgent", | 14212 | "spawnAgent", |
| 11965 | "sendInput", | 14213 | "sendInput", |
| 11966 | "resumeAgent", | 14214 | "resumeAgent", |
| ... | @@ -11970,21 +14218,21 @@ export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([ | ... | @@ -11970,21 +14218,21 @@ export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([ |
| 11970 | "followupTask", | 14218 | "followupTask", |
| 11971 | "interruptAgent", | 14219 | "interruptAgent", |
| 11972 | "listAgents", | 14220 | "listAgents", |
| 11973 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentTool" }); | 14221 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentTool" }); |
| 11974 | | 14222 | |
| 11975 | export type V2ThreadUnarchiveResponse__SubAgentActivityKind = | 14223 | export type V2ThreadTurnsListResponse__SubAgentActivityKind = |
| 11976 | | "started" | 14224 | | "started" |
| 11977 | | "interacted" | 14225 | | "interacted" |
| 11978 | | "interrupted" | 14226 | | "interrupted" |
| 11979 | | "completed"; | 14227 | | "completed"; |
| 11980 | export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([ | 14228 | export const V2ThreadTurnsListResponse__SubAgentActivityKind = Schema.Literals([ |
| 11981 | "started", | 14229 | "started", |
| 11982 | "interacted", | 14230 | "interacted", |
| 11983 | "interrupted", | 14231 | "interrupted", |
| 11984 | "completed", | 14232 | "completed", |
| 11985 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentActivityKind" }); | 14233 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__SubAgentActivityKind" }); |
| 11986 | | 14234 | |
| 11987 | export type V2ThreadUnarchiveResponse__WebSearchAction = | 14235 | export type V2ThreadTurnsListResponse__WebSearchAction = |
| 11988 | | { | 14236 | | { |
| 11989 | readonly queries?: ReadonlyArray<string> | null; | 14237 | readonly queries?: ReadonlyArray<string> | null; |
| 11990 | readonly query?: string | null; | 14238 | readonly query?: string | null; |
| ... | @@ -11993,7 +14241,7 @@ export type V2ThreadUnarchiveResponse__WebSearchAction = | ... | @@ -11993,7 +14241,7 @@ export type V2ThreadUnarchiveResponse__WebSearchAction = |
| 11993 | | { readonly type: "openPage"; readonly url?: string | null } | 14241 | | { readonly type: "openPage"; readonly url?: string | null } |
| 11994 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } | 14242 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } |
| 11995 | | { readonly type: "other" }; | 14243 | | { readonly type: "other" }; |
| 11996 | export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union( | 14244 | export const V2ThreadTurnsListResponse__WebSearchAction = Schema.Union( |
| 11997 | [ | 14245 | [ |
| 11998 | Schema.Struct({ | 14246 | Schema.Struct({ |
| 11999 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 14247 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| ... | @@ -12014,10 +14262,42 @@ export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union( | ... | @@ -12014,10 +14262,42 @@ export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union( |
| 12014 | }).annotate({ title: "OtherWebSearchAction" }), | 14262 | }).annotate({ title: "OtherWebSearchAction" }), |
| 12015 | ], | 14263 | ], |
| 12016 | { mode: "oneOf" }, | 14264 | { mode: "oneOf" }, |
| 12017 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__WebSearchAction" }); | 14265 | ).annotate({ identifier: "V2ThreadTurnsListResponse__WebSearchAction" }); |
| 12018 | | 14266 | |
| 12019 | export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 14267 | export type V2ThreadTurnsListResponse__ImageGenerationFailure = { |
| 12020 | export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union( | 14268 | readonly limitId: string; |
| | 14269 | readonly resetsAt?: number | null; |
| | 14270 | readonly type: "usageLimitExceeded"; |
| | 14271 | }; |
| | 14272 | export const V2ThreadTurnsListResponse__ImageGenerationFailure = Schema.Union( |
| | 14273 | [ |
| | 14274 | Schema.Struct({ |
| | 14275 | limitId: Schema.String, |
| | 14276 | resetsAt: Schema.optionalKey( |
| | 14277 | Schema.Union([ |
| | 14278 | Schema.Number.annotate({ format: "int64" }).check( |
| | 14279 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 14280 | ), |
| | 14281 | Schema.Null, |
| | 14282 | ]), |
| | 14283 | ), |
| | 14284 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 14285 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 14286 | }), |
| | 14287 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 14288 | ], |
| | 14289 | { mode: "oneOf" }, |
| | 14290 | ).annotate({ identifier: "V2ThreadTurnsListResponse__ImageGenerationFailure" }); |
| | 14291 | |
| | 14292 | export type V2ThreadTurnsListResponse__AbsolutePathBuf = string; |
| | 14293 | export const V2ThreadTurnsListResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 14294 | description: |
| | 14295 | "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.", |
| | 14296 | identifier: "V2ThreadTurnsListResponse__AbsolutePathBuf", |
| | 14297 | }); |
| | 14298 | |
| | 14299 | export type V2ThreadTurnsListResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 14300 | export const V2ThreadTurnsListResponse__TurnItemsView = Schema.Union( |
| 12021 | [ | 14301 | [ |
| 12022 | Schema.Literal("notLoaded").annotate({ | 14302 | Schema.Literal("notLoaded").annotate({ |
| 12023 | description: "`items` was not loaded for this turn. The field is intentionally empty.", | 14303 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| ... | @@ -12031,41 +14311,102 @@ export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union( | ... | @@ -12031,41 +14311,102 @@ export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union( |
| 12031 | }), | 14311 | }), |
| 12032 | ], | 14312 | ], |
| 12033 | { mode: "oneOf" }, | 14313 | { mode: "oneOf" }, |
| 12034 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnItemsView" }); | 14314 | ).annotate({ identifier: "V2ThreadTurnsListResponse__TurnItemsView" }); |
| 12035 | | 14315 | |
| 12036 | export type V2ThreadUnarchiveResponse__TurnStatus = | 14316 | export type V2ThreadTurnsListResponse__TurnStatus = |
| 12037 | | "completed" | 14317 | | "completed" |
| 12038 | | "interrupted" | 14318 | | "interrupted" |
| 12039 | | "failed" | 14319 | | "failed" |
| 12040 | | "inProgress"; | 14320 | | "inProgress"; |
| 12041 | export const V2ThreadUnarchiveResponse__TurnStatus = Schema.Literals([ | 14321 | export const V2ThreadTurnsListResponse__TurnStatus = Schema.Literals([ |
| 12042 | "completed", | 14322 | "completed", |
| 12043 | "interrupted", | 14323 | "interrupted", |
| 12044 | "failed", | 14324 | "failed", |
| 12045 | "inProgress", | 14325 | "inProgress", |
| 12046 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnStatus" }); | 14326 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__TurnStatus" }); |
| 12047 | | 14327 | |
| 12048 | export type V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = | 14328 | export type V2ThreadUnarchiveResponse__AbsolutePathBuf = string; |
| 12049 | | "notLoaded" | 14329 | export const V2ThreadUnarchiveResponse__AbsolutePathBuf = Schema.String.annotate({ |
| 12050 | | "notSubscribed" | 14330 | description: |
| 12051 | | "unsubscribed"; | 14331 | "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.", |
| 12052 | export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Literals([ | 14332 | identifier: "V2ThreadUnarchiveResponse__AbsolutePathBuf", |
| 12053 | "notLoaded", | 14333 | }); |
| 12054 | "notSubscribed", | | |
| 12055 | "unsubscribed", | | |
| 12056 | ]).annotate({ identifier: "V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus" }); | | |
| 12057 | | 14334 | |
| 12058 | export type V2TurnCompletedNotification__NonSteerableTurnKind = "review" | "compact"; | 14335 | export type V2ThreadUnarchiveResponse__GitInfo = { |
| 12059 | export const V2TurnCompletedNotification__NonSteerableTurnKind = Schema.Literals([ | 14336 | readonly branch?: string | null; |
| | 14337 | readonly originUrl?: string | null; |
| | 14338 | readonly sha?: string | null; |
| | 14339 | }; |
| | 14340 | export const V2ThreadUnarchiveResponse__GitInfo = Schema.Struct({ |
| | 14341 | branch: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14342 | originUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14343 | sha: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14344 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__GitInfo" }); |
| | 14345 | |
| | 14346 | export type V2ThreadUnarchiveResponse__ThreadHistoryMode = "legacy" | "paginated"; |
| | 14347 | export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([ |
| | 14348 | "legacy", |
| | 14349 | "paginated", |
| | 14350 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadHistoryMode" }); |
| | 14351 | |
| | 14352 | export type V2ThreadUnarchiveResponse__ReasoningEffort = string; |
| | 14353 | export const V2ThreadUnarchiveResponse__ReasoningEffort = Schema.String.annotate({ |
| | 14354 | description: "A non-empty reasoning effort value advertised by the model.", |
| | 14355 | }).check( |
| | 14356 | Schema.isMinLength(1).annotate({ |
| | 14357 | expected: "a value with a length of at least 1", |
| | 14358 | identifier: "V2ThreadUnarchiveResponse__ReasoningEffort", |
| | 14359 | }), |
| | 14360 | ); |
| | 14361 | |
| | 14362 | export type V2ThreadUnarchiveResponse__ThreadSectionAppearance = { |
| | 14363 | readonly color?: string | null; |
| | 14364 | readonly icon?: string | null; |
| | 14365 | }; |
| | 14366 | export const V2ThreadUnarchiveResponse__ThreadSectionAppearance = Schema.Struct({ |
| | 14367 | color: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14368 | icon: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14369 | }).annotate({ |
| | 14370 | description: "Extensible visual presentation for a custom thread section.", |
| | 14371 | identifier: "V2ThreadUnarchiveResponse__ThreadSectionAppearance", |
| | 14372 | }); |
| | 14373 | |
| | 14374 | export type V2ThreadUnarchiveResponse__AgentPath = string; |
| | 14375 | export const V2ThreadUnarchiveResponse__AgentPath = Schema.String.annotate({ |
| | 14376 | identifier: "V2ThreadUnarchiveResponse__AgentPath", |
| | 14377 | }); |
| | 14378 | |
| | 14379 | export type V2ThreadUnarchiveResponse__ThreadId = string; |
| | 14380 | export const V2ThreadUnarchiveResponse__ThreadId = Schema.String.annotate({ |
| | 14381 | identifier: "V2ThreadUnarchiveResponse__ThreadId", |
| | 14382 | }); |
| | 14383 | |
| | 14384 | export type V2ThreadUnarchiveResponse__ThreadActiveFlag = |
| | 14385 | | "waitingOnApproval" |
| | 14386 | | "waitingOnUserInput"; |
| | 14387 | export const V2ThreadUnarchiveResponse__ThreadActiveFlag = Schema.Literals([ |
| | 14388 | "waitingOnApproval", |
| | 14389 | "waitingOnUserInput", |
| | 14390 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadActiveFlag" }); |
| | 14391 | |
| | 14392 | export type V2ThreadUnarchiveResponse__ThreadSource = string; |
| | 14393 | export const V2ThreadUnarchiveResponse__ThreadSource = Schema.String.annotate({ |
| | 14394 | identifier: "V2ThreadUnarchiveResponse__ThreadSource", |
| | 14395 | }); |
| | 14396 | |
| | 14397 | export type V2ThreadUnarchiveResponse__NonSteerableTurnKind = "review" | "compact"; |
| | 14398 | export const V2ThreadUnarchiveResponse__NonSteerableTurnKind = Schema.Literals([ |
| 12060 | "review", | 14399 | "review", |
| 12061 | "compact", | 14400 | "compact", |
| 12062 | ]).annotate({ identifier: "V2TurnCompletedNotification__NonSteerableTurnKind" }); | 14401 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__NonSteerableTurnKind" }); |
| 12063 | | 14402 | |
| 12064 | export type V2TurnCompletedNotification__ByteRange = { | 14403 | export type V2ThreadUnarchiveResponse__MisalignmentSteer = { readonly message: string }; |
| 12065 | readonly end: number; | 14404 | export const V2ThreadUnarchiveResponse__MisalignmentSteer = Schema.Struct({ |
| 12066 | readonly start: number; | 14405 | message: Schema.String, |
| 12067 | }; | 14406 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MisalignmentSteer" }); |
| 12068 | export const V2TurnCompletedNotification__ByteRange = Schema.Struct({ | 14407 | |
| | 14408 | export type V2ThreadUnarchiveResponse__ByteRange = { readonly end: number; readonly start: number }; |
| | 14409 | export const V2ThreadUnarchiveResponse__ByteRange = Schema.Struct({ |
| 12069 | end: Schema.Number.annotate({ format: "uint" }) | 14410 | end: Schema.Number.annotate({ format: "uint" }) |
| 12070 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 14411 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 12071 | .check( | 14412 | .check( |
| ... | @@ -12076,32 +14417,37 @@ export const V2TurnCompletedNotification__ByteRange = Schema.Struct({ | ... | @@ -12076,32 +14417,37 @@ export const V2TurnCompletedNotification__ByteRange = Schema.Struct({ |
| 12076 | .check( | 14417 | .check( |
| 12077 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), | 14418 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| 12078 | ), | 14419 | ), |
| 12079 | }).annotate({ identifier: "V2TurnCompletedNotification__ByteRange" }); | 14420 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__ByteRange" }); |
| 12080 | | 14421 | |
| 12081 | export type V2TurnCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original"; | 14422 | export type V2ThreadUnarchiveResponse__ImageDetail = "auto" | "low" | "high" | "original"; |
| 12082 | export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([ | 14423 | export const V2ThreadUnarchiveResponse__ImageDetail = Schema.Literals([ |
| 12083 | "auto", | 14424 | "auto", |
| 12084 | "low", | 14425 | "low", |
| 12085 | "high", | 14426 | "high", |
| 12086 | "original", | 14427 | "original", |
| 12087 | ]).annotate({ identifier: "V2TurnCompletedNotification__ImageDetail" }); | 14428 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__ImageDetail" }); |
| 12088 | | 14429 | |
| 12089 | export type V2TurnCompletedNotification__HookPromptFragment = { | 14430 | export type V2ThreadUnarchiveResponse__HookPromptFragment = { |
| 12090 | readonly hookRunId: string; | 14431 | readonly hookRunId: string; |
| 12091 | readonly text: string; | 14432 | readonly text: string; |
| 12092 | }; | 14433 | }; |
| 12093 | export const V2TurnCompletedNotification__HookPromptFragment = Schema.Struct({ | 14434 | export const V2ThreadUnarchiveResponse__HookPromptFragment = Schema.Struct({ |
| 12094 | hookRunId: Schema.String, | 14435 | hookRunId: Schema.String, |
| 12095 | text: Schema.String, | 14436 | text: Schema.String, |
| 12096 | }).annotate({ identifier: "V2TurnCompletedNotification__HookPromptFragment" }); | 14437 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__HookPromptFragment" }); |
| 12097 | | 14438 | |
| 12098 | export type V2TurnCompletedNotification__MemoryCitationEntry = { | 14439 | export type V2ThreadUnarchiveResponse__AgentMessageDelivery = "async"; |
| | 14440 | export const V2ThreadUnarchiveResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 14441 | identifier: "V2ThreadUnarchiveResponse__AgentMessageDelivery", |
| | 14442 | }); |
| | 14443 | |
| | 14444 | export type V2ThreadUnarchiveResponse__MemoryCitationEntry = { |
| 12099 | readonly lineEnd: number; | 14445 | readonly lineEnd: number; |
| 12100 | readonly lineStart: number; | 14446 | readonly lineStart: number; |
| 12101 | readonly note: string; | 14447 | readonly note: string; |
| 12102 | readonly path: string; | 14448 | readonly path: string; |
| 12103 | }; | 14449 | }; |
| 12104 | export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({ | 14450 | export const V2ThreadUnarchiveResponse__MemoryCitationEntry = Schema.Struct({ |
| 12105 | lineEnd: Schema.Number.annotate({ format: "uint32" }) | 14451 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| 12106 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 14452 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 12107 | .check( | 14453 | .check( |
| ... | @@ -12114,10 +14460,10 @@ export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({ | ... | @@ -12114,10 +14460,10 @@ export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({ |
| 12114 | ), | 14460 | ), |
| 12115 | note: Schema.String, | 14461 | note: Schema.String, |
| 12116 | path: Schema.String, | 14462 | path: Schema.String, |
| 12117 | }).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitationEntry" }); | 14463 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitationEntry" }); |
| 12118 | | 14464 | |
| 12119 | export type V2TurnCompletedNotification__MessagePhase = "commentary" | "final_answer"; | 14465 | export type V2ThreadUnarchiveResponse__MessagePhase = "commentary" | "final_answer"; |
| 12120 | export const V2TurnCompletedNotification__MessagePhase = Schema.Union( | 14466 | export const V2ThreadUnarchiveResponse__MessagePhase = Schema.Union( |
| 12121 | [ | 14467 | [ |
| 12122 | Schema.Literal("commentary").annotate({ | 14468 | Schema.Literal("commentary").annotate({ |
| 12123 | description: | 14469 | description: |
| ... | @@ -12131,50 +14477,52 @@ export const V2TurnCompletedNotification__MessagePhase = Schema.Union( | ... | @@ -12131,50 +14477,52 @@ export const V2TurnCompletedNotification__MessagePhase = Schema.Union( |
| 12131 | ).annotate({ | 14477 | ).annotate({ |
| 12132 | description: | 14478 | description: |
| 12133 | '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.', | 14479 | '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.', |
| 12134 | identifier: "V2TurnCompletedNotification__MessagePhase", | 14480 | identifier: "V2ThreadUnarchiveResponse__MessagePhase", |
| 12135 | }); | 14481 | }); |
| 12136 | | 14482 | |
| 12137 | export type V2TurnCompletedNotification__AbsolutePathBuf = string; | 14483 | export type V2ThreadUnarchiveResponse__AsyncUserInputQuestion = { |
| 12138 | export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ | 14484 | readonly options?: ReadonlyArray<string> | null; |
| 12139 | description: | 14485 | readonly title: string; |
| 12140 | "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.", | 14486 | }; |
| 12141 | identifier: "V2TurnCompletedNotification__AbsolutePathBuf", | 14487 | export const V2ThreadUnarchiveResponse__AsyncUserInputQuestion = Schema.Struct({ |
| 12142 | }); | 14488 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 14489 | title: Schema.String, |
| | 14490 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__AsyncUserInputQuestion" }); |
| 12143 | | 14491 | |
| 12144 | export type V2TurnCompletedNotification__LegacyAppPathString = string; | 14492 | export type V2ThreadUnarchiveResponse__LegacyAppPathString = string; |
| 12145 | export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String.annotate({ | 14493 | export const V2ThreadUnarchiveResponse__LegacyAppPathString = Schema.String.annotate({ |
| 12146 | identifier: "V2TurnCompletedNotification__LegacyAppPathString", | 14494 | identifier: "V2ThreadUnarchiveResponse__LegacyAppPathString", |
| 12147 | }); | 14495 | }); |
| 12148 | | 14496 | |
| 12149 | export type V2TurnCompletedNotification__CommandExecutionSource = | 14497 | export type V2ThreadUnarchiveResponse__CommandExecutionSource = |
| 12150 | | "agent" | 14498 | | "agent" |
| 12151 | | "userShell" | 14499 | | "userShell" |
| 12152 | | "unifiedExecStartup" | 14500 | | "unifiedExecStartup" |
| 12153 | | "unifiedExecInteraction"; | 14501 | | "unifiedExecInteraction"; |
| 12154 | export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Literals([ | 14502 | export const V2ThreadUnarchiveResponse__CommandExecutionSource = Schema.Literals([ |
| 12155 | "agent", | 14503 | "agent", |
| 12156 | "userShell", | 14504 | "userShell", |
| 12157 | "unifiedExecStartup", | 14505 | "unifiedExecStartup", |
| 12158 | "unifiedExecInteraction", | 14506 | "unifiedExecInteraction", |
| 12159 | ]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionSource" }); | 14507 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionSource" }); |
| 12160 | | 14508 | |
| 12161 | export type V2TurnCompletedNotification__CommandExecutionStatus = | 14509 | export type V2ThreadUnarchiveResponse__CommandExecutionStatus = |
| 12162 | | "inProgress" | 14510 | | "inProgress" |
| 12163 | | "completed" | 14511 | | "completed" |
| 12164 | | "failed" | 14512 | | "failed" |
| 12165 | | "declined"; | 14513 | | "declined"; |
| 12166 | export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Literals([ | 14514 | export const V2ThreadUnarchiveResponse__CommandExecutionStatus = Schema.Literals([ |
| 12167 | "inProgress", | 14515 | "inProgress", |
| 12168 | "completed", | 14516 | "completed", |
| 12169 | "failed", | 14517 | "failed", |
| 12170 | "declined", | 14518 | "declined", |
| 12171 | ]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionStatus" }); | 14519 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandExecutionStatus" }); |
| 12172 | | 14520 | |
| 12173 | export type V2TurnCompletedNotification__PatchChangeKind = | 14521 | export type V2ThreadUnarchiveResponse__PatchChangeKind = |
| 12174 | | { readonly type: "add" } | 14522 | | { readonly type: "add" } |
| 12175 | | { readonly type: "delete" } | 14523 | | { readonly type: "delete" } |
| 12176 | | { readonly move_path?: string | null; readonly type: "update" }; | 14524 | | { readonly move_path?: string | null; readonly type: "update" }; |
| 12177 | export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union( | 14525 | export const V2ThreadUnarchiveResponse__PatchChangeKind = Schema.Union( |
| 12178 | [ | 14526 | [ |
| 12179 | Schema.Struct({ | 14527 | Schema.Struct({ |
| 12180 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), | 14528 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| ... | @@ -12188,63 +14536,470 @@ export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union( | ... | @@ -12188,63 +14536,470 @@ export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union( |
| 12188 | }).annotate({ title: "UpdatePatchChangeKind" }), | 14536 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| 12189 | ], | 14537 | ], |
| 12190 | { mode: "oneOf" }, | 14538 | { mode: "oneOf" }, |
| 12191 | ).annotate({ identifier: "V2TurnCompletedNotification__PatchChangeKind" }); | 14539 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchChangeKind" }); |
| 12192 | | 14540 | |
| 12193 | export type V2TurnCompletedNotification__PatchApplyStatus = | 14541 | export type V2ThreadUnarchiveResponse__PatchApplyStatus = |
| 12194 | | "inProgress" | 14542 | | "inProgress" |
| 12195 | | "completed" | 14543 | | "completed" |
| 12196 | | "failed" | 14544 | | "failed" |
| 12197 | | "declined"; | 14545 | | "declined"; |
| 12198 | export const V2TurnCompletedNotification__PatchApplyStatus = Schema.Literals([ | 14546 | export const V2ThreadUnarchiveResponse__PatchApplyStatus = Schema.Literals([ |
| 12199 | "inProgress", | 14547 | "inProgress", |
| 12200 | "completed", | 14548 | "completed", |
| 12201 | "failed", | 14549 | "failed", |
| 12202 | "declined", | 14550 | "declined", |
| 12203 | ]).annotate({ identifier: "V2TurnCompletedNotification__PatchApplyStatus" }); | 14551 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__PatchApplyStatus" }); |
| 12204 | | 14552 | |
| 12205 | export type V2TurnCompletedNotification__McpToolCallAppContext = { | 14553 | export type V2ThreadUnarchiveResponse__McpToolCallAppContext = { |
| 12206 | readonly actionName?: string | null; | 14554 | readonly actionName?: string | null; |
| 12207 | readonly appName?: string | null; | 14555 | readonly appName?: string | null; |
| 12208 | readonly connectorId: string; | 14556 | readonly connectorId: string; |
| 12209 | readonly linkId?: string | null; | 14557 | readonly linkId?: string | null; |
| 12210 | readonly resourceUri?: string | null; | 14558 | readonly resourceUri?: string | null; |
| 12211 | }; | 14559 | }; |
| 12212 | export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct({ | 14560 | export const V2ThreadUnarchiveResponse__McpToolCallAppContext = Schema.Struct({ |
| 12213 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14561 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12214 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14562 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12215 | connectorId: Schema.String, | 14563 | connectorId: Schema.String, |
| 12216 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14564 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12217 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 14565 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 12218 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallAppContext" }); | 14566 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallAppContext" }); |
| 12219 | | 14567 | |
| 12220 | export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string }; | 14568 | export type V2ThreadUnarchiveResponse__McpToolCallError = { readonly message: string }; |
| 12221 | export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({ | 14569 | export const V2ThreadUnarchiveResponse__McpToolCallError = Schema.Struct({ |
| 12222 | message: Schema.String, | 14570 | message: Schema.String, |
| 12223 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallError" }); | 14571 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallError" }); |
| 12224 | | 14572 | |
| 12225 | export type V2TurnCompletedNotification__McpToolCallResult = { | 14573 | export type V2ThreadUnarchiveResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 14574 | export const V2ThreadUnarchiveResponse__McpAppDisplayMode = Schema.Literals([ |
| | 14575 | "inline", |
| | 14576 | "fullscreen", |
| | 14577 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__McpAppDisplayMode" }); |
| | 14578 | |
| | 14579 | export type V2ThreadUnarchiveResponse__McpToolCallResult = { |
| 12226 | readonly _meta?: Schema.Json; | 14580 | readonly _meta?: Schema.Json; |
| 12227 | readonly content: ReadonlyArray<Schema.Json>; | 14581 | readonly content: ReadonlyArray<Schema.Json>; |
| 12228 | readonly structuredContent?: Schema.Json; | 14582 | readonly structuredContent?: Schema.Json; |
| 12229 | }; | 14583 | }; |
| 12230 | export const V2TurnCompletedNotification__McpToolCallResult = Schema.Struct({ | 14584 | export const V2ThreadUnarchiveResponse__McpToolCallResult = Schema.Struct({ |
| 12231 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), | 14585 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 12232 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), | 14586 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| 12233 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), | 14587 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| 12234 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallResult" }); | 14588 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallResult" }); |
| 12235 | | 14589 | |
| 12236 | export type V2TurnCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; | 14590 | export type V2ThreadUnarchiveResponse__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| 12237 | export const V2TurnCompletedNotification__McpToolCallStatus = Schema.Literals([ | 14591 | export const V2ThreadUnarchiveResponse__McpToolCallStatus = Schema.Literals([ |
| 12238 | "inProgress", | 14592 | "inProgress", |
| 12239 | "completed", | 14593 | "completed", |
| 12240 | "failed", | 14594 | "failed", |
| 12241 | ]).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallStatus" }); | 14595 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__McpToolCallStatus" }); |
| 12242 | | 14596 | |
| 12243 | export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem = | 14597 | export type V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = |
| 12244 | | { readonly text: string; readonly type: "inputText" } | 14598 | | { readonly text: string; readonly type: "inputText" } |
| 12245 | | { readonly imageUrl: string; readonly type: "inputImage" } | 14599 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| 12246 | | { readonly audioUrl: string; readonly type: "inputAudio" }; | 14600 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| 12247 | export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union( | 14601 | export const V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem = Schema.Union( |
| | 14602 | [ |
| | 14603 | Schema.Struct({ |
| | 14604 | text: Schema.String, |
| | 14605 | type: Schema.Literal("inputText").annotate({ |
| | 14606 | title: "InputTextDynamicToolCallOutputContentItemType", |
| | 14607 | }), |
| | 14608 | }).annotate({ title: "InputTextDynamicToolCallOutputContentItem" }), |
| | 14609 | Schema.Struct({ |
| | 14610 | imageUrl: Schema.String, |
| | 14611 | type: Schema.Literal("inputImage").annotate({ |
| | 14612 | title: "InputImageDynamicToolCallOutputContentItemType", |
| | 14613 | }), |
| | 14614 | }).annotate({ title: "InputImageDynamicToolCallOutputContentItem" }), |
| | 14615 | Schema.Struct({ |
| | 14616 | audioUrl: Schema.String, |
| | 14617 | type: Schema.Literal("inputAudio").annotate({ |
| | 14618 | title: "InputAudioDynamicToolCallOutputContentItemType", |
| | 14619 | }), |
| | 14620 | }).annotate({ title: "InputAudioDynamicToolCallOutputContentItem" }), |
| | 14621 | ], |
| | 14622 | { mode: "oneOf" }, |
| | 14623 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallOutputContentItem" }); |
| | 14624 | |
| | 14625 | export type V2ThreadUnarchiveResponse__DynamicToolCallStatus = |
| | 14626 | | "inProgress" |
| | 14627 | | "completed" |
| | 14628 | | "failed"; |
| | 14629 | export const V2ThreadUnarchiveResponse__DynamicToolCallStatus = Schema.Literals([ |
| | 14630 | "inProgress", |
| | 14631 | "completed", |
| | 14632 | "failed", |
| | 14633 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__DynamicToolCallStatus" }); |
| | 14634 | |
| | 14635 | export type V2ThreadUnarchiveResponse__CollabAgentStatus = |
| | 14636 | | "pendingInit" |
| | 14637 | | "running" |
| | 14638 | | "interrupted" |
| | 14639 | | "completed" |
| | 14640 | | "errored" |
| | 14641 | | "shutdown" |
| | 14642 | | "notFound"; |
| | 14643 | export const V2ThreadUnarchiveResponse__CollabAgentStatus = Schema.Literals([ |
| | 14644 | "pendingInit", |
| | 14645 | "running", |
| | 14646 | "interrupted", |
| | 14647 | "completed", |
| | 14648 | "errored", |
| | 14649 | "shutdown", |
| | 14650 | "notFound", |
| | 14651 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentStatus" }); |
| | 14652 | |
| | 14653 | export type V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = |
| | 14654 | | "inProgress" |
| | 14655 | | "completed" |
| | 14656 | | "failed" |
| | 14657 | | "interrupted"; |
| | 14658 | export const V2ThreadUnarchiveResponse__CollabAgentToolCallStatus = Schema.Literals([ |
| | 14659 | "inProgress", |
| | 14660 | "completed", |
| | 14661 | "failed", |
| | 14662 | "interrupted", |
| | 14663 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentToolCallStatus" }); |
| | 14664 | |
| | 14665 | export type V2ThreadUnarchiveResponse__CollabAgentTool = |
| | 14666 | | "spawnAgent" |
| | 14667 | | "sendInput" |
| | 14668 | | "resumeAgent" |
| | 14669 | | "wait" |
| | 14670 | | "closeAgent" |
| | 14671 | | "sendMessage" |
| | 14672 | | "followupTask" |
| | 14673 | | "interruptAgent" |
| | 14674 | | "listAgents"; |
| | 14675 | export const V2ThreadUnarchiveResponse__CollabAgentTool = Schema.Literals([ |
| | 14676 | "spawnAgent", |
| | 14677 | "sendInput", |
| | 14678 | "resumeAgent", |
| | 14679 | "wait", |
| | 14680 | "closeAgent", |
| | 14681 | "sendMessage", |
| | 14682 | "followupTask", |
| | 14683 | "interruptAgent", |
| | 14684 | "listAgents", |
| | 14685 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentTool" }); |
| | 14686 | |
| | 14687 | export type V2ThreadUnarchiveResponse__SubAgentActivityKind = |
| | 14688 | | "started" |
| | 14689 | | "interacted" |
| | 14690 | | "interrupted" |
| | 14691 | | "completed"; |
| | 14692 | export const V2ThreadUnarchiveResponse__SubAgentActivityKind = Schema.Literals([ |
| | 14693 | "started", |
| | 14694 | "interacted", |
| | 14695 | "interrupted", |
| | 14696 | "completed", |
| | 14697 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentActivityKind" }); |
| | 14698 | |
| | 14699 | export type V2ThreadUnarchiveResponse__WebSearchAction = |
| | 14700 | | { |
| | 14701 | readonly queries?: ReadonlyArray<string> | null; |
| | 14702 | readonly query?: string | null; |
| | 14703 | readonly type: "search"; |
| | 14704 | } |
| | 14705 | | { readonly type: "openPage"; readonly url?: string | null } |
| | 14706 | | { readonly pattern?: string | null; readonly type: "findInPage"; readonly url?: string | null } |
| | 14707 | | { readonly type: "other" }; |
| | 14708 | export const V2ThreadUnarchiveResponse__WebSearchAction = Schema.Union( |
| | 14709 | [ |
| | 14710 | Schema.Struct({ |
| | 14711 | queries: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 14712 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14713 | type: Schema.Literal("search").annotate({ title: "SearchWebSearchActionType" }), |
| | 14714 | }).annotate({ title: "SearchWebSearchAction" }), |
| | 14715 | Schema.Struct({ |
| | 14716 | type: Schema.Literal("openPage").annotate({ title: "OpenPageWebSearchActionType" }), |
| | 14717 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14718 | }).annotate({ title: "OpenPageWebSearchAction" }), |
| | 14719 | Schema.Struct({ |
| | 14720 | pattern: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14721 | type: Schema.Literal("findInPage").annotate({ title: "FindInPageWebSearchActionType" }), |
| | 14722 | url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14723 | }).annotate({ title: "FindInPageWebSearchAction" }), |
| | 14724 | Schema.Struct({ |
| | 14725 | type: Schema.Literal("other").annotate({ title: "OtherWebSearchActionType" }), |
| | 14726 | }).annotate({ title: "OtherWebSearchAction" }), |
| | 14727 | ], |
| | 14728 | { mode: "oneOf" }, |
| | 14729 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__WebSearchAction" }); |
| | 14730 | |
| | 14731 | export type V2ThreadUnarchiveResponse__ImageGenerationFailure = { |
| | 14732 | readonly limitId: string; |
| | 14733 | readonly resetsAt?: number | null; |
| | 14734 | readonly type: "usageLimitExceeded"; |
| | 14735 | }; |
| | 14736 | export const V2ThreadUnarchiveResponse__ImageGenerationFailure = Schema.Union( |
| | 14737 | [ |
| | 14738 | Schema.Struct({ |
| | 14739 | limitId: Schema.String, |
| | 14740 | resetsAt: Schema.optionalKey( |
| | 14741 | Schema.Union([ |
| | 14742 | Schema.Number.annotate({ format: "int64" }).check( |
| | 14743 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 14744 | ), |
| | 14745 | Schema.Null, |
| | 14746 | ]), |
| | 14747 | ), |
| | 14748 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 14749 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 14750 | }), |
| | 14751 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 14752 | ], |
| | 14753 | { mode: "oneOf" }, |
| | 14754 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__ImageGenerationFailure" }); |
| | 14755 | |
| | 14756 | export type V2ThreadUnarchiveResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| | 14757 | export const V2ThreadUnarchiveResponse__TurnItemsView = Schema.Union( |
| | 14758 | [ |
| | 14759 | Schema.Literal("notLoaded").annotate({ |
| | 14760 | description: "`items` was not loaded for this turn. The field is intentionally empty.", |
| | 14761 | }), |
| | 14762 | Schema.Literal("summary").annotate({ |
| | 14763 | description: "`items` contains only a display summary for this turn.", |
| | 14764 | }), |
| | 14765 | Schema.Literal("full").annotate({ |
| | 14766 | description: |
| | 14767 | "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| | 14768 | }), |
| | 14769 | ], |
| | 14770 | { mode: "oneOf" }, |
| | 14771 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnItemsView" }); |
| | 14772 | |
| | 14773 | export type V2ThreadUnarchiveResponse__TurnStatus = |
| | 14774 | | "completed" |
| | 14775 | | "interrupted" |
| | 14776 | | "failed" |
| | 14777 | | "inProgress"; |
| | 14778 | export const V2ThreadUnarchiveResponse__TurnStatus = Schema.Literals([ |
| | 14779 | "completed", |
| | 14780 | "interrupted", |
| | 14781 | "failed", |
| | 14782 | "inProgress", |
| | 14783 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnStatus" }); |
| | 14784 | |
| | 14785 | export type V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = |
| | 14786 | | "notLoaded" |
| | 14787 | | "notSubscribed" |
| | 14788 | | "unsubscribed"; |
| | 14789 | export const V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus = Schema.Literals([ |
| | 14790 | "notLoaded", |
| | 14791 | "notSubscribed", |
| | 14792 | "unsubscribed", |
| | 14793 | ]).annotate({ identifier: "V2ThreadUnsubscribeResponse__ThreadUnsubscribeStatus" }); |
| | 14794 | |
| | 14795 | export type V2TurnCompletedNotification__NonSteerableTurnKind = "review" | "compact"; |
| | 14796 | export const V2TurnCompletedNotification__NonSteerableTurnKind = Schema.Literals([ |
| | 14797 | "review", |
| | 14798 | "compact", |
| | 14799 | ]).annotate({ identifier: "V2TurnCompletedNotification__NonSteerableTurnKind" }); |
| | 14800 | |
| | 14801 | export type V2TurnCompletedNotification__MisalignmentSteer = { readonly message: string }; |
| | 14802 | export const V2TurnCompletedNotification__MisalignmentSteer = Schema.Struct({ |
| | 14803 | message: Schema.String, |
| | 14804 | }).annotate({ identifier: "V2TurnCompletedNotification__MisalignmentSteer" }); |
| | 14805 | |
| | 14806 | export type V2TurnCompletedNotification__ByteRange = { |
| | 14807 | readonly end: number; |
| | 14808 | readonly start: number; |
| | 14809 | }; |
| | 14810 | export const V2TurnCompletedNotification__ByteRange = Schema.Struct({ |
| | 14811 | end: Schema.Number.annotate({ format: "uint" }) |
| | 14812 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14813 | .check( |
| | 14814 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 14815 | ), |
| | 14816 | start: Schema.Number.annotate({ format: "uint" }) |
| | 14817 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14818 | .check( |
| | 14819 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 14820 | ), |
| | 14821 | }).annotate({ identifier: "V2TurnCompletedNotification__ByteRange" }); |
| | 14822 | |
| | 14823 | export type V2TurnCompletedNotification__ImageDetail = "auto" | "low" | "high" | "original"; |
| | 14824 | export const V2TurnCompletedNotification__ImageDetail = Schema.Literals([ |
| | 14825 | "auto", |
| | 14826 | "low", |
| | 14827 | "high", |
| | 14828 | "original", |
| | 14829 | ]).annotate({ identifier: "V2TurnCompletedNotification__ImageDetail" }); |
| | 14830 | |
| | 14831 | export type V2TurnCompletedNotification__HookPromptFragment = { |
| | 14832 | readonly hookRunId: string; |
| | 14833 | readonly text: string; |
| | 14834 | }; |
| | 14835 | export const V2TurnCompletedNotification__HookPromptFragment = Schema.Struct({ |
| | 14836 | hookRunId: Schema.String, |
| | 14837 | text: Schema.String, |
| | 14838 | }).annotate({ identifier: "V2TurnCompletedNotification__HookPromptFragment" }); |
| | 14839 | |
| | 14840 | export type V2TurnCompletedNotification__AgentMessageDelivery = "async"; |
| | 14841 | export const V2TurnCompletedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 14842 | identifier: "V2TurnCompletedNotification__AgentMessageDelivery", |
| | 14843 | }); |
| | 14844 | |
| | 14845 | export type V2TurnCompletedNotification__MemoryCitationEntry = { |
| | 14846 | readonly lineEnd: number; |
| | 14847 | readonly lineStart: number; |
| | 14848 | readonly note: string; |
| | 14849 | readonly path: string; |
| | 14850 | }; |
| | 14851 | export const V2TurnCompletedNotification__MemoryCitationEntry = Schema.Struct({ |
| | 14852 | lineEnd: Schema.Number.annotate({ format: "uint32" }) |
| | 14853 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14854 | .check( |
| | 14855 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 14856 | ), |
| | 14857 | lineStart: Schema.Number.annotate({ format: "uint32" }) |
| | 14858 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 14859 | .check( |
| | 14860 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), |
| | 14861 | ), |
| | 14862 | note: Schema.String, |
| | 14863 | path: Schema.String, |
| | 14864 | }).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitationEntry" }); |
| | 14865 | |
| | 14866 | export type V2TurnCompletedNotification__MessagePhase = "commentary" | "final_answer"; |
| | 14867 | export const V2TurnCompletedNotification__MessagePhase = Schema.Union( |
| | 14868 | [ |
| | 14869 | Schema.Literal("commentary").annotate({ |
| | 14870 | description: |
| | 14871 | "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| | 14872 | }), |
| | 14873 | Schema.Literal("final_answer").annotate({ |
| | 14874 | description: "The assistant's terminal answer text for the current turn.", |
| | 14875 | }), |
| | 14876 | ], |
| | 14877 | { mode: "oneOf" }, |
| | 14878 | ).annotate({ |
| | 14879 | description: |
| | 14880 | '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.', |
| | 14881 | identifier: "V2TurnCompletedNotification__MessagePhase", |
| | 14882 | }); |
| | 14883 | |
| | 14884 | export type V2TurnCompletedNotification__AsyncUserInputQuestion = { |
| | 14885 | readonly options?: ReadonlyArray<string> | null; |
| | 14886 | readonly title: string; |
| | 14887 | }; |
| | 14888 | export const V2TurnCompletedNotification__AsyncUserInputQuestion = Schema.Struct({ |
| | 14889 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 14890 | title: Schema.String, |
| | 14891 | }).annotate({ identifier: "V2TurnCompletedNotification__AsyncUserInputQuestion" }); |
| | 14892 | |
| | 14893 | export type V2TurnCompletedNotification__LegacyAppPathString = string; |
| | 14894 | export const V2TurnCompletedNotification__LegacyAppPathString = Schema.String.annotate({ |
| | 14895 | identifier: "V2TurnCompletedNotification__LegacyAppPathString", |
| | 14896 | }); |
| | 14897 | |
| | 14898 | export type V2TurnCompletedNotification__CommandExecutionSource = |
| | 14899 | | "agent" |
| | 14900 | | "userShell" |
| | 14901 | | "unifiedExecStartup" |
| | 14902 | | "unifiedExecInteraction"; |
| | 14903 | export const V2TurnCompletedNotification__CommandExecutionSource = Schema.Literals([ |
| | 14904 | "agent", |
| | 14905 | "userShell", |
| | 14906 | "unifiedExecStartup", |
| | 14907 | "unifiedExecInteraction", |
| | 14908 | ]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionSource" }); |
| | 14909 | |
| | 14910 | export type V2TurnCompletedNotification__CommandExecutionStatus = |
| | 14911 | | "inProgress" |
| | 14912 | | "completed" |
| | 14913 | | "failed" |
| | 14914 | | "declined"; |
| | 14915 | export const V2TurnCompletedNotification__CommandExecutionStatus = Schema.Literals([ |
| | 14916 | "inProgress", |
| | 14917 | "completed", |
| | 14918 | "failed", |
| | 14919 | "declined", |
| | 14920 | ]).annotate({ identifier: "V2TurnCompletedNotification__CommandExecutionStatus" }); |
| | 14921 | |
| | 14922 | export type V2TurnCompletedNotification__PatchChangeKind = |
| | 14923 | | { readonly type: "add" } |
| | 14924 | | { readonly type: "delete" } |
| | 14925 | | { readonly move_path?: string | null; readonly type: "update" }; |
| | 14926 | export const V2TurnCompletedNotification__PatchChangeKind = Schema.Union( |
| | 14927 | [ |
| | 14928 | Schema.Struct({ |
| | 14929 | type: Schema.Literal("add").annotate({ title: "AddPatchChangeKindType" }), |
| | 14930 | }).annotate({ title: "AddPatchChangeKind" }), |
| | 14931 | Schema.Struct({ |
| | 14932 | type: Schema.Literal("delete").annotate({ title: "DeletePatchChangeKindType" }), |
| | 14933 | }).annotate({ title: "DeletePatchChangeKind" }), |
| | 14934 | Schema.Struct({ |
| | 14935 | move_path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14936 | type: Schema.Literal("update").annotate({ title: "UpdatePatchChangeKindType" }), |
| | 14937 | }).annotate({ title: "UpdatePatchChangeKind" }), |
| | 14938 | ], |
| | 14939 | { mode: "oneOf" }, |
| | 14940 | ).annotate({ identifier: "V2TurnCompletedNotification__PatchChangeKind" }); |
| | 14941 | |
| | 14942 | export type V2TurnCompletedNotification__PatchApplyStatus = |
| | 14943 | | "inProgress" |
| | 14944 | | "completed" |
| | 14945 | | "failed" |
| | 14946 | | "declined"; |
| | 14947 | export const V2TurnCompletedNotification__PatchApplyStatus = Schema.Literals([ |
| | 14948 | "inProgress", |
| | 14949 | "completed", |
| | 14950 | "failed", |
| | 14951 | "declined", |
| | 14952 | ]).annotate({ identifier: "V2TurnCompletedNotification__PatchApplyStatus" }); |
| | 14953 | |
| | 14954 | export type V2TurnCompletedNotification__McpToolCallAppContext = { |
| | 14955 | readonly actionName?: string | null; |
| | 14956 | readonly appName?: string | null; |
| | 14957 | readonly connectorId: string; |
| | 14958 | readonly linkId?: string | null; |
| | 14959 | readonly resourceUri?: string | null; |
| | 14960 | }; |
| | 14961 | export const V2TurnCompletedNotification__McpToolCallAppContext = Schema.Struct({ |
| | 14962 | actionName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14963 | appName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14964 | connectorId: Schema.String, |
| | 14965 | linkId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14966 | resourceUri: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 14967 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallAppContext" }); |
| | 14968 | |
| | 14969 | export type V2TurnCompletedNotification__McpToolCallError = { readonly message: string }; |
| | 14970 | export const V2TurnCompletedNotification__McpToolCallError = Schema.Struct({ |
| | 14971 | message: Schema.String, |
| | 14972 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallError" }); |
| | 14973 | |
| | 14974 | export type V2TurnCompletedNotification__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 14975 | export const V2TurnCompletedNotification__McpAppDisplayMode = Schema.Literals([ |
| | 14976 | "inline", |
| | 14977 | "fullscreen", |
| | 14978 | ]).annotate({ identifier: "V2TurnCompletedNotification__McpAppDisplayMode" }); |
| | 14979 | |
| | 14980 | export type V2TurnCompletedNotification__McpToolCallResult = { |
| | 14981 | readonly _meta?: Schema.Json; |
| | 14982 | readonly content: ReadonlyArray<Schema.Json>; |
| | 14983 | readonly structuredContent?: Schema.Json; |
| | 14984 | }; |
| | 14985 | export const V2TurnCompletedNotification__McpToolCallResult = Schema.Struct({ |
| | 14986 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 14987 | content: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 14988 | structuredContent: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 14989 | }).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallResult" }); |
| | 14990 | |
| | 14991 | export type V2TurnCompletedNotification__McpToolCallStatus = "inProgress" | "completed" | "failed"; |
| | 14992 | export const V2TurnCompletedNotification__McpToolCallStatus = Schema.Literals([ |
| | 14993 | "inProgress", |
| | 14994 | "completed", |
| | 14995 | "failed", |
| | 14996 | ]).annotate({ identifier: "V2TurnCompletedNotification__McpToolCallStatus" }); |
| | 14997 | |
| | 14998 | export type V2TurnCompletedNotification__DynamicToolCallOutputContentItem = |
| | 14999 | | { readonly text: string; readonly type: "inputText" } |
| | 15000 | | { readonly imageUrl: string; readonly type: "inputImage" } |
| | 15001 | | { readonly audioUrl: string; readonly type: "inputAudio" }; |
| | 15002 | export const V2TurnCompletedNotification__DynamicToolCallOutputContentItem = Schema.Union( |
| 12248 | [ | 15003 | [ |
| 12249 | Schema.Struct({ | 15004 | Schema.Struct({ |
| 12250 | text: Schema.String, | 15005 | text: Schema.String, |
| ... | @@ -12384,6 +15139,38 @@ export const V2TurnCompletedNotification__WebSearchAction = Schema.Union( | ... | @@ -12384,6 +15139,38 @@ export const V2TurnCompletedNotification__WebSearchAction = Schema.Union( |
| 12384 | { mode: "oneOf" }, | 15139 | { mode: "oneOf" }, |
| 12385 | ).annotate({ identifier: "V2TurnCompletedNotification__WebSearchAction" }); | 15140 | ).annotate({ identifier: "V2TurnCompletedNotification__WebSearchAction" }); |
| 12386 | | 15141 | |
| | 15142 | export type V2TurnCompletedNotification__ImageGenerationFailure = { |
| | 15143 | readonly limitId: string; |
| | 15144 | readonly resetsAt?: number | null; |
| | 15145 | readonly type: "usageLimitExceeded"; |
| | 15146 | }; |
| | 15147 | export const V2TurnCompletedNotification__ImageGenerationFailure = Schema.Union( |
| | 15148 | [ |
| | 15149 | Schema.Struct({ |
| | 15150 | limitId: Schema.String, |
| | 15151 | resetsAt: Schema.optionalKey( |
| | 15152 | Schema.Union([ |
| | 15153 | Schema.Number.annotate({ format: "int64" }).check( |
| | 15154 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 15155 | ), |
| | 15156 | Schema.Null, |
| | 15157 | ]), |
| | 15158 | ), |
| | 15159 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 15160 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 15161 | }), |
| | 15162 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 15163 | ], |
| | 15164 | { mode: "oneOf" }, |
| | 15165 | ).annotate({ identifier: "V2TurnCompletedNotification__ImageGenerationFailure" }); |
| | 15166 | |
| | 15167 | export type V2TurnCompletedNotification__AbsolutePathBuf = string; |
| | 15168 | export const V2TurnCompletedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| | 15169 | description: |
| | 15170 | "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.", |
| | 15171 | identifier: "V2TurnCompletedNotification__AbsolutePathBuf", |
| | 15172 | }); |
| | 15173 | |
| 12387 | export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | 15174 | export type V2TurnCompletedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 12388 | export const V2TurnCompletedNotification__TurnItemsView = Schema.Union( | 15175 | export const V2TurnCompletedNotification__TurnItemsView = Schema.Union( |
| 12389 | [ | 15176 | [ |
| ... | @@ -12429,6 +15216,11 @@ export const V2TurnStartedNotification__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -12429,6 +15216,11 @@ export const V2TurnStartedNotification__NonSteerableTurnKind = Schema.Literals([ |
| 12429 | "compact", | 15216 | "compact", |
| 12430 | ]).annotate({ identifier: "V2TurnStartedNotification__NonSteerableTurnKind" }); | 15217 | ]).annotate({ identifier: "V2TurnStartedNotification__NonSteerableTurnKind" }); |
| 12431 | | 15218 | |
| | 15219 | export type V2TurnStartedNotification__MisalignmentSteer = { readonly message: string }; |
| | 15220 | export const V2TurnStartedNotification__MisalignmentSteer = Schema.Struct({ |
| | 15221 | message: Schema.String, |
| | 15222 | }).annotate({ identifier: "V2TurnStartedNotification__MisalignmentSteer" }); |
| | 15223 | |
| 12432 | export type V2TurnStartedNotification__ByteRange = { readonly end: number; readonly start: number }; | 15224 | export type V2TurnStartedNotification__ByteRange = { readonly end: number; readonly start: number }; |
| 12433 | export const V2TurnStartedNotification__ByteRange = Schema.Struct({ | 15225 | export const V2TurnStartedNotification__ByteRange = Schema.Struct({ |
| 12434 | end: Schema.Number.annotate({ format: "uint" }) | 15226 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -12460,6 +15252,11 @@ export const V2TurnStartedNotification__HookPromptFragment = Schema.Struct({ | ... | @@ -12460,6 +15252,11 @@ export const V2TurnStartedNotification__HookPromptFragment = Schema.Struct({ |
| 12460 | text: Schema.String, | 15252 | text: Schema.String, |
| 12461 | }).annotate({ identifier: "V2TurnStartedNotification__HookPromptFragment" }); | 15253 | }).annotate({ identifier: "V2TurnStartedNotification__HookPromptFragment" }); |
| 12462 | | 15254 | |
| | 15255 | export type V2TurnStartedNotification__AgentMessageDelivery = "async"; |
| | 15256 | export const V2TurnStartedNotification__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 15257 | identifier: "V2TurnStartedNotification__AgentMessageDelivery", |
| | 15258 | }); |
| | 15259 | |
| 12463 | export type V2TurnStartedNotification__MemoryCitationEntry = { | 15260 | export type V2TurnStartedNotification__MemoryCitationEntry = { |
| 12464 | readonly lineEnd: number; | 15261 | readonly lineEnd: number; |
| 12465 | readonly lineStart: number; | 15262 | readonly lineStart: number; |
| ... | @@ -12499,12 +15296,14 @@ export const V2TurnStartedNotification__MessagePhase = Schema.Union( | ... | @@ -12499,12 +15296,14 @@ export const V2TurnStartedNotification__MessagePhase = Schema.Union( |
| 12499 | identifier: "V2TurnStartedNotification__MessagePhase", | 15296 | identifier: "V2TurnStartedNotification__MessagePhase", |
| 12500 | }); | 15297 | }); |
| 12501 | | 15298 | |
| 12502 | export type V2TurnStartedNotification__AbsolutePathBuf = string; | 15299 | export type V2TurnStartedNotification__AsyncUserInputQuestion = { |
| 12503 | export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({ | 15300 | readonly options?: ReadonlyArray<string> | null; |
| 12504 | description: | 15301 | readonly title: string; |
| 12505 | "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.", | 15302 | }; |
| 12506 | identifier: "V2TurnStartedNotification__AbsolutePathBuf", | 15303 | export const V2TurnStartedNotification__AsyncUserInputQuestion = Schema.Struct({ |
| 12507 | }); | 15304 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 15305 | title: Schema.String, |
| | 15306 | }).annotate({ identifier: "V2TurnStartedNotification__AsyncUserInputQuestion" }); |
| 12508 | | 15307 | |
| 12509 | export type V2TurnStartedNotification__LegacyAppPathString = string; | 15308 | export type V2TurnStartedNotification__LegacyAppPathString = string; |
| 12510 | export const V2TurnStartedNotification__LegacyAppPathString = Schema.String.annotate({ | 15309 | export const V2TurnStartedNotification__LegacyAppPathString = Schema.String.annotate({ |
| ... | @@ -12587,6 +15386,12 @@ export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({ | ... | @@ -12587,6 +15386,12 @@ export const V2TurnStartedNotification__McpToolCallError = Schema.Struct({ |
| 12587 | message: Schema.String, | 15386 | message: Schema.String, |
| 12588 | }).annotate({ identifier: "V2TurnStartedNotification__McpToolCallError" }); | 15387 | }).annotate({ identifier: "V2TurnStartedNotification__McpToolCallError" }); |
| 12589 | | 15388 | |
| | 15389 | export type V2TurnStartedNotification__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 15390 | export const V2TurnStartedNotification__McpAppDisplayMode = Schema.Literals([ |
| | 15391 | "inline", |
| | 15392 | "fullscreen", |
| | 15393 | ]).annotate({ identifier: "V2TurnStartedNotification__McpAppDisplayMode" }); |
| | 15394 | |
| 12590 | export type V2TurnStartedNotification__McpToolCallResult = { | 15395 | export type V2TurnStartedNotification__McpToolCallResult = { |
| 12591 | readonly _meta?: Schema.Json; | 15396 | readonly _meta?: Schema.Json; |
| 12592 | readonly content: ReadonlyArray<Schema.Json>; | 15397 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -12749,6 +15554,38 @@ export const V2TurnStartedNotification__WebSearchAction = Schema.Union( | ... | @@ -12749,6 +15554,38 @@ export const V2TurnStartedNotification__WebSearchAction = Schema.Union( |
| 12749 | { mode: "oneOf" }, | 15554 | { mode: "oneOf" }, |
| 12750 | ).annotate({ identifier: "V2TurnStartedNotification__WebSearchAction" }); | 15555 | ).annotate({ identifier: "V2TurnStartedNotification__WebSearchAction" }); |
| 12751 | | 15556 | |
| | 15557 | export type V2TurnStartedNotification__ImageGenerationFailure = { |
| | 15558 | readonly limitId: string; |
| | 15559 | readonly resetsAt?: number | null; |
| | 15560 | readonly type: "usageLimitExceeded"; |
| | 15561 | }; |
| | 15562 | export const V2TurnStartedNotification__ImageGenerationFailure = Schema.Union( |
| | 15563 | [ |
| | 15564 | Schema.Struct({ |
| | 15565 | limitId: Schema.String, |
| | 15566 | resetsAt: Schema.optionalKey( |
| | 15567 | Schema.Union([ |
| | 15568 | Schema.Number.annotate({ format: "int64" }).check( |
| | 15569 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 15570 | ), |
| | 15571 | Schema.Null, |
| | 15572 | ]), |
| | 15573 | ), |
| | 15574 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 15575 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 15576 | }), |
| | 15577 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 15578 | ], |
| | 15579 | { mode: "oneOf" }, |
| | 15580 | ).annotate({ identifier: "V2TurnStartedNotification__ImageGenerationFailure" }); |
| | 15581 | |
| | 15582 | export type V2TurnStartedNotification__AbsolutePathBuf = string; |
| | 15583 | export const V2TurnStartedNotification__AbsolutePathBuf = Schema.String.annotate({ |
| | 15584 | description: |
| | 15585 | "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.", |
| | 15586 | identifier: "V2TurnStartedNotification__AbsolutePathBuf", |
| | 15587 | }); |
| | 15588 | |
| 12752 | export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; | 15589 | export type V2TurnStartedNotification__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 12753 | export const V2TurnStartedNotification__TurnItemsView = Schema.Union( | 15590 | export const V2TurnStartedNotification__TurnItemsView = Schema.Union( |
| 12754 | [ | 15591 | [ |
| ... | @@ -12855,7 +15692,10 @@ export const V2TurnStartParams__Personality = Schema.Literals([ | ... | @@ -12855,7 +15692,10 @@ export const V2TurnStartParams__Personality = Schema.Literals([ |
| 12855 | "none", | 15692 | "none", |
| 12856 | "friendly", | 15693 | "friendly", |
| 12857 | "pragmatic", | 15694 | "pragmatic", |
| 12858 | ]).annotate({ identifier: "V2TurnStartParams__Personality" }); | 15695 | ]).annotate({ |
| | 15696 | description: "Deprecated: `friendly` and `pragmatic` no longer select a style.", |
| | 15697 | identifier: "V2TurnStartParams__Personality", |
| | 15698 | }); |
| 12859 | | 15699 | |
| 12860 | export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled"; | 15700 | export type V2TurnStartParams__NetworkAccess = "restricted" | "enabled"; |
| 12861 | export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]).annotate( | 15701 | export const V2TurnStartParams__NetworkAccess = Schema.Literals(["restricted", "enabled"]).annotate( |
| ... | @@ -12905,6 +15745,11 @@ export const V2TurnStartResponse__NonSteerableTurnKind = Schema.Literals([ | ... | @@ -12905,6 +15745,11 @@ export const V2TurnStartResponse__NonSteerableTurnKind = Schema.Literals([ |
| 12905 | "compact", | 15745 | "compact", |
| 12906 | ]).annotate({ identifier: "V2TurnStartResponse__NonSteerableTurnKind" }); | 15746 | ]).annotate({ identifier: "V2TurnStartResponse__NonSteerableTurnKind" }); |
| 12907 | | 15747 | |
| | 15748 | export type V2TurnStartResponse__MisalignmentSteer = { readonly message: string }; |
| | 15749 | export const V2TurnStartResponse__MisalignmentSteer = Schema.Struct({ |
| | 15750 | message: Schema.String, |
| | 15751 | }).annotate({ identifier: "V2TurnStartResponse__MisalignmentSteer" }); |
| | 15752 | |
| 12908 | export type V2TurnStartResponse__ByteRange = { readonly end: number; readonly start: number }; | 15753 | export type V2TurnStartResponse__ByteRange = { readonly end: number; readonly start: number }; |
| 12909 | export const V2TurnStartResponse__ByteRange = Schema.Struct({ | 15754 | export const V2TurnStartResponse__ByteRange = Schema.Struct({ |
| 12910 | end: Schema.Number.annotate({ format: "uint" }) | 15755 | end: Schema.Number.annotate({ format: "uint" }) |
| ... | @@ -12936,6 +15781,11 @@ export const V2TurnStartResponse__HookPromptFragment = Schema.Struct({ | ... | @@ -12936,6 +15781,11 @@ export const V2TurnStartResponse__HookPromptFragment = Schema.Struct({ |
| 12936 | text: Schema.String, | 15781 | text: Schema.String, |
| 12937 | }).annotate({ identifier: "V2TurnStartResponse__HookPromptFragment" }); | 15782 | }).annotate({ identifier: "V2TurnStartResponse__HookPromptFragment" }); |
| 12938 | | 15783 | |
| | 15784 | export type V2TurnStartResponse__AgentMessageDelivery = "async"; |
| | 15785 | export const V2TurnStartResponse__AgentMessageDelivery = Schema.Literal("async").annotate({ |
| | 15786 | identifier: "V2TurnStartResponse__AgentMessageDelivery", |
| | 15787 | }); |
| | 15788 | |
| 12939 | export type V2TurnStartResponse__MemoryCitationEntry = { | 15789 | export type V2TurnStartResponse__MemoryCitationEntry = { |
| 12940 | readonly lineEnd: number; | 15790 | readonly lineEnd: number; |
| 12941 | readonly lineStart: number; | 15791 | readonly lineStart: number; |
| ... | @@ -12975,12 +15825,14 @@ export const V2TurnStartResponse__MessagePhase = Schema.Union( | ... | @@ -12975,12 +15825,14 @@ export const V2TurnStartResponse__MessagePhase = Schema.Union( |
| 12975 | identifier: "V2TurnStartResponse__MessagePhase", | 15825 | identifier: "V2TurnStartResponse__MessagePhase", |
| 12976 | }); | 15826 | }); |
| 12977 | | 15827 | |
| 12978 | export type V2TurnStartResponse__AbsolutePathBuf = string; | 15828 | export type V2TurnStartResponse__AsyncUserInputQuestion = { |
| 12979 | export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({ | 15829 | readonly options?: ReadonlyArray<string> | null; |
| 12980 | description: | 15830 | readonly title: string; |
| 12981 | "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.", | 15831 | }; |
| 12982 | identifier: "V2TurnStartResponse__AbsolutePathBuf", | 15832 | export const V2TurnStartResponse__AsyncUserInputQuestion = Schema.Struct({ |
| 12983 | }); | 15833 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 15834 | title: Schema.String, |
| | 15835 | }).annotate({ identifier: "V2TurnStartResponse__AsyncUserInputQuestion" }); |
| 12984 | | 15836 | |
| 12985 | export type V2TurnStartResponse__LegacyAppPathString = string; | 15837 | export type V2TurnStartResponse__LegacyAppPathString = string; |
| 12986 | export const V2TurnStartResponse__LegacyAppPathString = Schema.String.annotate({ | 15838 | export const V2TurnStartResponse__LegacyAppPathString = Schema.String.annotate({ |
| ... | @@ -13063,6 +15915,12 @@ export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ | ... | @@ -13063,6 +15915,12 @@ export const V2TurnStartResponse__McpToolCallError = Schema.Struct({ |
| 13063 | message: Schema.String, | 15915 | message: Schema.String, |
| 13064 | }).annotate({ identifier: "V2TurnStartResponse__McpToolCallError" }); | 15916 | }).annotate({ identifier: "V2TurnStartResponse__McpToolCallError" }); |
| 13065 | | 15917 | |
| | 15918 | export type V2TurnStartResponse__McpAppDisplayMode = "inline" | "fullscreen"; |
| | 15919 | export const V2TurnStartResponse__McpAppDisplayMode = Schema.Literals([ |
| | 15920 | "inline", |
| | 15921 | "fullscreen", |
| | 15922 | ]).annotate({ identifier: "V2TurnStartResponse__McpAppDisplayMode" }); |
| | 15923 | |
| 13066 | export type V2TurnStartResponse__McpToolCallResult = { | 15924 | export type V2TurnStartResponse__McpToolCallResult = { |
| 13067 | readonly _meta?: Schema.Json; | 15925 | readonly _meta?: Schema.Json; |
| 13068 | readonly content: ReadonlyArray<Schema.Json>; | 15926 | readonly content: ReadonlyArray<Schema.Json>; |
| ... | @@ -13222,6 +16080,38 @@ export const V2TurnStartResponse__WebSearchAction = Schema.Union( | ... | @@ -13222,6 +16080,38 @@ export const V2TurnStartResponse__WebSearchAction = Schema.Union( |
| 13222 | { mode: "oneOf" }, | 16080 | { mode: "oneOf" }, |
| 13223 | ).annotate({ identifier: "V2TurnStartResponse__WebSearchAction" }); | 16081 | ).annotate({ identifier: "V2TurnStartResponse__WebSearchAction" }); |
| 13224 | | 16082 | |
| | 16083 | export type V2TurnStartResponse__ImageGenerationFailure = { |
| | 16084 | readonly limitId: string; |
| | 16085 | readonly resetsAt?: number | null; |
| | 16086 | readonly type: "usageLimitExceeded"; |
| | 16087 | }; |
| | 16088 | export const V2TurnStartResponse__ImageGenerationFailure = Schema.Union( |
| | 16089 | [ |
| | 16090 | Schema.Struct({ |
| | 16091 | limitId: Schema.String, |
| | 16092 | resetsAt: Schema.optionalKey( |
| | 16093 | Schema.Union([ |
| | 16094 | Schema.Number.annotate({ format: "int64" }).check( |
| | 16095 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 16096 | ), |
| | 16097 | Schema.Null, |
| | 16098 | ]), |
| | 16099 | ), |
| | 16100 | type: Schema.Literal("usageLimitExceeded").annotate({ |
| | 16101 | title: "UsageLimitExceededImageGenerationFailureType", |
| | 16102 | }), |
| | 16103 | }).annotate({ title: "UsageLimitExceededImageGenerationFailure" }), |
| | 16104 | ], |
| | 16105 | { mode: "oneOf" }, |
| | 16106 | ).annotate({ identifier: "V2TurnStartResponse__ImageGenerationFailure" }); |
| | 16107 | |
| | 16108 | export type V2TurnStartResponse__AbsolutePathBuf = string; |
| | 16109 | export const V2TurnStartResponse__AbsolutePathBuf = Schema.String.annotate({ |
| | 16110 | description: |
| | 16111 | "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.", |
| | 16112 | identifier: "V2TurnStartResponse__AbsolutePathBuf", |
| | 16113 | }); |
| | 16114 | |
| 13225 | export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; | 16115 | export type V2TurnStartResponse__TurnItemsView = "notLoaded" | "summary" | "full"; |
| 13226 | export const V2TurnStartResponse__TurnItemsView = Schema.Union( | 16116 | export const V2TurnStartResponse__TurnItemsView = Schema.Union( |
| 13227 | [ | 16117 | [ |
| ... | @@ -13333,6 +16223,7 @@ export type ClientRequest__ThreadResumeParams = { | ... | @@ -13333,6 +16223,7 @@ export type ClientRequest__ThreadResumeParams = { |
| 13333 | readonly config?: { readonly [x: string]: Schema.Json } | null; | 16223 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| 13334 | readonly cwd?: string | null; | 16224 | readonly cwd?: string | null; |
| 13335 | readonly developerInstructions?: string | null; | 16225 | readonly developerInstructions?: string | null; |
| | 16226 | readonly excludeTurns?: boolean; |
| 13336 | readonly model?: string | null; | 16227 | readonly model?: string | null; |
| 13337 | readonly modelProvider?: string | null; | 16228 | readonly modelProvider?: string | null; |
| 13338 | readonly personality?: ClientRequest__Personality | null; | 16229 | readonly personality?: ClientRequest__Personality | null; |
| ... | @@ -13357,6 +16248,12 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({ | ... | @@ -13357,6 +16248,12 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({ |
| 13357 | ), | 16248 | ), |
| 13358 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16249 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13359 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16250 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 16251 | excludeTurns: Schema.optionalKey( |
| | 16252 | Schema.Boolean.annotate({ |
| | 16253 | description: |
| | 16254 | "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.", |
| | 16255 | }), |
| | 16256 | ), |
| 13360 | model: Schema.optionalKey( | 16257 | model: Schema.optionalKey( |
| 13361 | Schema.Union([ | 16258 | Schema.Union([ |
| 13362 | Schema.String.annotate({ | 16259 | Schema.String.annotate({ |
| ... | @@ -13366,7 +16263,12 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({ | ... | @@ -13366,7 +16263,12 @@ export const ClientRequest__ThreadResumeParams = Schema.Struct({ |
| 13366 | ]), | 16263 | ]), |
| 13367 | ), | 16264 | ), |
| 13368 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16265 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13369 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), | 16266 | personality: Schema.optionalKey( |
| | 16267 | Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({ |
| | 16268 | description: |
| | 16269 | "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.", |
| | 16270 | }), |
| | 16271 | ), |
| 13370 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), | 16272 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| 13371 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16273 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13372 | threadId: Schema.String, | 16274 | threadId: Schema.String, |
| ... | @@ -13413,7 +16315,11 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({ | ... | @@ -13413,7 +16315,11 @@ export const ClientRequest__ThreadStartParams = Schema.Struct({ |
| 13413 | ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 16315 | ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 13414 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16316 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13415 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16317 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13416 | personality: Schema.optionalKey(Schema.Union([ClientRequest__Personality, Schema.Null])), | 16318 | personality: Schema.optionalKey( |
| | 16319 | Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({ |
| | 16320 | description: "@deprecated `friendly` and `pragmatic` no longer select a style.", |
| | 16321 | }), |
| | 16322 | ), |
| 13417 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), | 16323 | sandbox: Schema.optionalKey(Schema.Union([ClientRequest__SandboxMode, Schema.Null])), |
| 13418 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16324 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13419 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16325 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -13435,6 +16341,7 @@ export type ClientRequest__ThreadForkParams = { | ... | @@ -13435,6 +16341,7 @@ export type ClientRequest__ThreadForkParams = { |
| 13435 | readonly cwd?: string | null; | 16341 | readonly cwd?: string | null; |
| 13436 | readonly developerInstructions?: string | null; | 16342 | readonly developerInstructions?: string | null; |
| 13437 | readonly ephemeral?: boolean; | 16343 | readonly ephemeral?: boolean; |
| | 16344 | readonly excludeTurns?: boolean; |
| 13438 | readonly lastTurnId?: string | null; | 16345 | readonly lastTurnId?: string | null; |
| 13439 | readonly model?: string | null; | 16346 | readonly model?: string | null; |
| 13440 | readonly modelProvider?: string | null; | 16347 | readonly modelProvider?: string | null; |
| ... | @@ -13461,6 +16368,12 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({ | ... | @@ -13461,6 +16368,12 @@ export const ClientRequest__ThreadForkParams = Schema.Struct({ |
| 13461 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16368 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13462 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16369 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 13463 | ephemeral: Schema.optionalKey(Schema.Boolean), | 16370 | ephemeral: Schema.optionalKey(Schema.Boolean), |
| | 16371 | excludeTurns: Schema.optionalKey( |
| | 16372 | Schema.Boolean.annotate({ |
| | 16373 | description: |
| | 16374 | "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.", |
| | 16375 | }), |
| | 16376 | ), |
| 13464 | lastTurnId: Schema.optionalKey( | 16377 | lastTurnId: Schema.optionalKey( |
| 13465 | Schema.Union([ | 16378 | Schema.Union([ |
| 13466 | Schema.String.annotate({ | 16379 | Schema.String.annotate({ |
| ... | @@ -13528,13 +16441,60 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({ | ... | @@ -13528,13 +16441,60 @@ export const ClientRequest__ThreadMetadataUpdateParams = Schema.Struct({ |
| 13528 | threadId: Schema.String, | 16441 | threadId: Schema.String, |
| 13529 | }).annotate({ identifier: "ClientRequest__ThreadMetadataUpdateParams" }); | 16442 | }).annotate({ identifier: "ClientRequest__ThreadMetadataUpdateParams" }); |
| 13530 | | 16443 | |
| | 16444 | export type ClientRequest__ThreadItemsListParams = { |
| | 16445 | readonly cursor?: string | null; |
| | 16446 | readonly limit?: number | null; |
| | 16447 | readonly sortDirection?: ClientRequest__SortDirection | null; |
| | 16448 | readonly threadId: string; |
| | 16449 | readonly turnId?: string | null; |
| | 16450 | }; |
| | 16451 | export const ClientRequest__ThreadItemsListParams = Schema.Struct({ |
| | 16452 | cursor: Schema.optionalKey( |
| | 16453 | Schema.Union([ |
| | 16454 | Schema.String.annotate({ |
| | 16455 | description: "Opaque cursor to pass to the next call to continue after the last item.", |
| | 16456 | }), |
| | 16457 | Schema.Null, |
| | 16458 | ]), |
| | 16459 | ), |
| | 16460 | limit: Schema.optionalKey( |
| | 16461 | Schema.Union([ |
| | 16462 | Schema.Number.annotate({ description: "Optional item page size.", format: "uint32" }) |
| | 16463 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 16464 | .check( |
| | 16465 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 16466 | expected: "a value greater than or equal to 0", |
| | 16467 | }), |
| | 16468 | ), |
| | 16469 | Schema.Null, |
| | 16470 | ]), |
| | 16471 | ), |
| | 16472 | sortDirection: Schema.optionalKey( |
| | 16473 | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ |
| | 16474 | description: "Optional item pagination direction; defaults to ascending.", |
| | 16475 | }), |
| | 16476 | ), |
| | 16477 | threadId: Schema.String, |
| | 16478 | turnId: Schema.optionalKey( |
| | 16479 | Schema.Union([ |
| | 16480 | Schema.String.annotate({ |
| | 16481 | description: |
| | 16482 | "Optional turn id to filter by. When omitted, returns items across the thread.", |
| | 16483 | }), |
| | 16484 | Schema.Null, |
| | 16485 | ]), |
| | 16486 | ), |
| | 16487 | }).annotate({ identifier: "ClientRequest__ThreadItemsListParams" }); |
| | 16488 | |
| 13531 | export type ClientRequest__ThreadListParams = { | 16489 | export type ClientRequest__ThreadListParams = { |
| 13532 | readonly archived?: boolean | null; | 16490 | readonly archived?: boolean | null; |
| 13533 | readonly cursor?: string | null; | 16491 | readonly cursor?: string | null; |
| 13534 | readonly cwd?: ClientRequest__ThreadListCwdFilter | null; | 16492 | readonly cwd?: ClientRequest__ThreadListCwdFilter | null; |
| 13535 | readonly limit?: number | null; | 16493 | readonly limit?: number | null; |
| 13536 | readonly modelProviders?: ReadonlyArray<string> | null; | 16494 | readonly modelProviders?: ReadonlyArray<string> | null; |
| | 16495 | readonly originators?: ReadonlyArray<string> | null; |
| 13537 | readonly searchTerm?: string | null; | 16496 | readonly searchTerm?: string | null; |
| | 16497 | readonly sectionId?: string | null; |
| 13538 | readonly sortDirection?: ClientRequest__SortDirection | null; | 16498 | readonly sortDirection?: ClientRequest__SortDirection | null; |
| 13539 | readonly sortKey?: ClientRequest__ThreadSortKey | null; | 16499 | readonly sortKey?: ClientRequest__ThreadSortKey | null; |
| 13540 | readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null; | 16500 | readonly sourceKinds?: ReadonlyArray<ClientRequest__ThreadSourceKind> | null; |
| ... | @@ -13588,6 +16548,15 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ | ... | @@ -13588,6 +16548,15 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ |
| 13588 | Schema.Null, | 16548 | Schema.Null, |
| 13589 | ]), | 16549 | ]), |
| 13590 | ), | 16550 | ), |
| | 16551 | originators: Schema.optionalKey( |
| | 16552 | Schema.Union([ |
| | 16553 | Schema.Array(Schema.String).annotate({ |
| | 16554 | description: |
| | 16555 | "Optional originator allowlist, matching any supplied value exactly. Supported by hosted backends only; the local app-server rejects a nonempty list. Omitted or empty lists leave originators unrestricted.", |
| | 16556 | }), |
| | 16557 | Schema.Null, |
| | 16558 | ]), |
| | 16559 | ), |
| 13591 | searchTerm: Schema.optionalKey( | 16560 | searchTerm: Schema.optionalKey( |
| 13592 | Schema.Union([ | 16561 | Schema.Union([ |
| 13593 | Schema.String.annotate({ | 16562 | Schema.String.annotate({ |
| ... | @@ -13596,6 +16565,15 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ | ... | @@ -13596,6 +16565,15 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ |
| 13596 | Schema.Null, | 16565 | Schema.Null, |
| 13597 | ]), | 16566 | ]), |
| 13598 | ), | 16567 | ), |
| | 16568 | sectionId: Schema.optionalKey( |
| | 16569 | Schema.Union([ |
| | 16570 | Schema.String.annotate({ |
| | 16571 | description: |
| | 16572 | "Omit to include every section, set to `null` for unsectioned threads, or provide a section ID to return only threads in that section.", |
| | 16573 | }), |
| | 16574 | Schema.Null, |
| | 16575 | ]), |
| | 16576 | ), |
| 13599 | sortDirection: Schema.optionalKey( | 16577 | sortDirection: Schema.optionalKey( |
| 13600 | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ | 16578 | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ |
| 13601 | description: "Optional sort direction; defaults to descending (newest first).", | 16579 | description: "Optional sort direction; defaults to descending (newest first).", |
| ... | @@ -13623,6 +16601,81 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ | ... | @@ -13623,6 +16601,81 @@ export const ClientRequest__ThreadListParams = Schema.Struct({ |
| 13623 | ), | 16601 | ), |
| 13624 | }).annotate({ identifier: "ClientRequest__ThreadListParams" }); | 16602 | }).annotate({ identifier: "ClientRequest__ThreadListParams" }); |
| 13625 | | 16603 | |
| | 16604 | export type ClientRequest__ThreadSectionCreateParams = { |
| | 16605 | readonly appearance?: ClientRequest__ThreadSectionAppearance | null; |
| | 16606 | readonly name: string; |
| | 16607 | }; |
| | 16608 | export const ClientRequest__ThreadSectionCreateParams = Schema.Struct({ |
| | 16609 | appearance: Schema.optionalKey( |
| | 16610 | Schema.Union([ClientRequest__ThreadSectionAppearance, Schema.Null]), |
| | 16611 | ), |
| | 16612 | name: Schema.String.annotate({ description: "The user-visible name of the section." }), |
| | 16613 | }).annotate({ |
| | 16614 | description: "Parameters for creating an independently persisted thread section.", |
| | 16615 | identifier: "ClientRequest__ThreadSectionCreateParams", |
| | 16616 | }); |
| | 16617 | |
| | 16618 | export type ClientRequest__ThreadSectionUpdateParams = { |
| | 16619 | readonly appearance?: ClientRequest__ThreadSectionAppearance | null; |
| | 16620 | readonly name: string; |
| | 16621 | readonly sectionId: string; |
| | 16622 | }; |
| | 16623 | export const ClientRequest__ThreadSectionUpdateParams = Schema.Struct({ |
| | 16624 | appearance: Schema.optionalKey( |
| | 16625 | Schema.Union([ClientRequest__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 16626 | description: "Omit to preserve appearance, use `null` to clear it, or provide a replacement.", |
| | 16627 | }), |
| | 16628 | ), |
| | 16629 | name: Schema.String.annotate({ description: "The updated user-visible name of the section." }), |
| | 16630 | sectionId: Schema.String.annotate({ |
| | 16631 | description: "The stable, server-generated identity of the section to update.", |
| | 16632 | }), |
| | 16633 | }).annotate({ |
| | 16634 | description: "Parameters for updating an independently persisted thread section.", |
| | 16635 | identifier: "ClientRequest__ThreadSectionUpdateParams", |
| | 16636 | }); |
| | 16637 | |
| | 16638 | export type ClientRequest__ThreadTurnsListParams = { |
| | 16639 | readonly cursor?: string | null; |
| | 16640 | readonly itemsView?: ClientRequest__TurnItemsView | null; |
| | 16641 | readonly limit?: number | null; |
| | 16642 | readonly sortDirection?: ClientRequest__SortDirection | null; |
| | 16643 | readonly threadId: string; |
| | 16644 | }; |
| | 16645 | export const ClientRequest__ThreadTurnsListParams = Schema.Struct({ |
| | 16646 | cursor: Schema.optionalKey( |
| | 16647 | Schema.Union([ |
| | 16648 | Schema.String.annotate({ |
| | 16649 | description: "Opaque cursor to pass to the next call to continue after the last turn.", |
| | 16650 | }), |
| | 16651 | Schema.Null, |
| | 16652 | ]), |
| | 16653 | ), |
| | 16654 | itemsView: Schema.optionalKey( |
| | 16655 | Schema.Union([ClientRequest__TurnItemsView, Schema.Null]).annotate({ |
| | 16656 | description: "How much item detail to include for each returned turn; defaults to summary.", |
| | 16657 | }), |
| | 16658 | ), |
| | 16659 | limit: Schema.optionalKey( |
| | 16660 | Schema.Union([ |
| | 16661 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) |
| | 16662 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 16663 | .check( |
| | 16664 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 16665 | expected: "a value greater than or equal to 0", |
| | 16666 | }), |
| | 16667 | ), |
| | 16668 | Schema.Null, |
| | 16669 | ]), |
| | 16670 | ), |
| | 16671 | sortDirection: Schema.optionalKey( |
| | 16672 | Schema.Union([ClientRequest__SortDirection, Schema.Null]).annotate({ |
| | 16673 | description: "Optional turn pagination direction; defaults to descending.", |
| | 16674 | }), |
| | 16675 | ), |
| | 16676 | threadId: Schema.String, |
| | 16677 | }).annotate({ identifier: "ClientRequest__ThreadTurnsListParams" }); |
| | 16678 | |
| 13626 | export type ClientRequest__SkillsExtraRootsSetParams = { | 16679 | export type ClientRequest__SkillsExtraRootsSetParams = { |
| 13627 | readonly extraRoots: ReadonlyArray<ClientRequest__AbsolutePathBuf>; | 16680 | readonly extraRoots: ReadonlyArray<ClientRequest__AbsolutePathBuf>; |
| 13628 | }; | 16681 | }; |
| ... | @@ -13818,11 +16871,20 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({ | ... | @@ -13818,11 +16871,20 @@ export const ClientRequest__SkillsConfigWriteParams = Schema.Struct({ |
| 13818 | }).annotate({ identifier: "ClientRequest__SkillsConfigWriteParams" }); | 16871 | }).annotate({ identifier: "ClientRequest__SkillsConfigWriteParams" }); |
| 13819 | | 16872 | |
| 13820 | export type ClientRequest__PluginInstallParams = { | 16873 | export type ClientRequest__PluginInstallParams = { |
| | 16874 | readonly installAttemptId?: string | null; |
| 13821 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; | 16875 | readonly marketplacePath?: ClientRequest__AbsolutePathBuf | null; |
| 13822 | readonly pluginName: string; | 16876 | readonly pluginName: string; |
| 13823 | readonly remoteMarketplaceName?: string | null; | 16877 | readonly remoteMarketplaceName?: string | null; |
| 13824 | }; | 16878 | }; |
| 13825 | export const ClientRequest__PluginInstallParams = Schema.Struct({ | 16879 | export const ClientRequest__PluginInstallParams = Schema.Struct({ |
| | 16880 | installAttemptId: Schema.optionalKey( |
| | 16881 | Schema.Union([ |
| | 16882 | Schema.String.annotate({ |
| | 16883 | description: "Client-generated identifier used to correlate one installation attempt.", |
| | 16884 | }), |
| | 16885 | Schema.Null, |
| | 16886 | ]), |
| | 16887 | ), |
| 13826 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), | 16888 | marketplacePath: Schema.optionalKey(Schema.Union([ClientRequest__AbsolutePathBuf, Schema.Null])), |
| 13827 | pluginName: Schema.String, | 16889 | pluginName: Schema.String, |
| 13828 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 16890 | remoteMarketplaceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -13830,6 +16892,7 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({ | ... | @@ -13830,6 +16892,7 @@ export const ClientRequest__PluginInstallParams = Schema.Struct({ |
| 13830 | | 16892 | |
| 13831 | export type ClientRequest__PluginListParams = { | 16893 | export type ClientRequest__PluginListParams = { |
| 13832 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; | 16894 | readonly cwds?: ReadonlyArray<ClientRequest__AbsolutePathBuf> | null; |
| | 16895 | readonly forceRefetch?: boolean; |
| 13833 | readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null; | 16896 | readonly marketplaceKinds?: ReadonlyArray<ClientRequest__PluginListMarketplaceKind> | null; |
| 13834 | }; | 16897 | }; |
| 13835 | export const ClientRequest__PluginListParams = Schema.Struct({ | 16898 | export const ClientRequest__PluginListParams = Schema.Struct({ |
| ... | @@ -13842,6 +16905,11 @@ export const ClientRequest__PluginListParams = Schema.Struct({ | ... | @@ -13842,6 +16905,11 @@ export const ClientRequest__PluginListParams = Schema.Struct({ |
| 13842 | Schema.Null, | 16905 | Schema.Null, |
| 13843 | ]), | 16906 | ]), |
| 13844 | ), | 16907 | ), |
| | 16908 | forceRefetch: Schema.optionalKey( |
| | 16909 | Schema.Boolean.annotate({ |
| | 16910 | description: "Whether the client requests a fresh remote plugin catalog fetch.", |
| | 16911 | }), |
| | 16912 | ), |
| 13845 | marketplaceKinds: Schema.optionalKey( | 16913 | marketplaceKinds: Schema.optionalKey( |
| 13846 | Schema.Union([ | 16914 | Schema.Union([ |
| 13847 | Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({ | 16915 | Schema.Array(ClientRequest__PluginListMarketplaceKind).annotate({ |
| ... | @@ -13878,6 +16946,16 @@ export const ClientRequest__Settings = Schema.Struct({ | ... | @@ -13878,6 +16946,16 @@ export const ClientRequest__Settings = Schema.Struct({ |
| 13878 | identifier: "ClientRequest__Settings", | 16946 | identifier: "ClientRequest__Settings", |
| 13879 | }); | 16947 | }); |
| 13880 | | 16948 | |
| | 16949 | export type ClientRequest__ConfigurationReasoning = { |
| | 16950 | readonly effort: ClientRequest__ReasoningEffort; |
| | 16951 | }; |
| | 16952 | export const ClientRequest__ConfigurationReasoning = Schema.Struct({ |
| | 16953 | effort: ClientRequest__ReasoningEffort, |
| | 16954 | }).annotate({ |
| | 16955 | description: "Reasoning settings interpreted by the backend for the routed model.", |
| | 16956 | identifier: "ClientRequest__ConfigurationReasoning", |
| | 16957 | }); |
| | 16958 | |
| 13881 | export type ClientRequest__TextElement = { | 16959 | export type ClientRequest__TextElement = { |
| 13882 | readonly byteRange: ClientRequest__ByteRange; | 16960 | readonly byteRange: ClientRequest__ByteRange; |
| 13883 | readonly placeholder?: string | null; | 16961 | readonly placeholder?: string | null; |
| ... | @@ -13900,8 +16978,13 @@ export type ClientRequest__FunctionCallOutputContentItem = | ... | @@ -13900,8 +16978,13 @@ export type ClientRequest__FunctionCallOutputContentItem = |
| 13900 | | { readonly text: string; readonly type: "input_text" } | 16978 | | { readonly text: string; readonly type: "input_text" } |
| 13901 | | { | 16979 | | { |
| 13902 | readonly detail?: ClientRequest__ImageDetail | null; | 16980 | readonly detail?: ClientRequest__ImageDetail | null; |
| | 16981 | readonly type: "input_image"; |
| 13903 | readonly image_url: string; | 16982 | readonly image_url: string; |
| | 16983 | } |
| | 16984 | | { |
| | 16985 | readonly detail?: ClientRequest__ImageDetail | null; |
| 13904 | readonly type: "input_image"; | 16986 | readonly type: "input_image"; |
| | 16987 | readonly file_id: string; |
| 13905 | } | 16988 | } |
| 13906 | | { readonly audio_url: string; readonly type: "input_audio" } | 16989 | | { readonly audio_url: string; readonly type: "input_audio" } |
| 13907 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; | 16990 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| ... | @@ -13913,13 +16996,22 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union( | ... | @@ -13913,13 +16996,22 @@ export const ClientRequest__FunctionCallOutputContentItem = Schema.Union( |
| 13913 | title: "InputTextFunctionCallOutputContentItemType", | 16996 | title: "InputTextFunctionCallOutputContentItemType", |
| 13914 | }), | 16997 | }), |
| 13915 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), | 16998 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| 13916 | Schema.Struct({ | 16999 | Schema.Union([ |
| 13917 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), | 17000 | Schema.Struct({ |
| 13918 | image_url: Schema.String, | 17001 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| 13919 | type: Schema.Literal("input_image").annotate({ | 17002 | type: Schema.Literal("input_image").annotate({ |
| 13920 | title: "InputImageFunctionCallOutputContentItemType", | 17003 | title: "InputImageFunctionCallOutputContentItemType", |
| 13921 | }), | 17004 | }), |
| 13922 | }).annotate({ title: "InputImageFunctionCallOutputContentItem" }), | 17005 | image_url: Schema.String, |
| | 17006 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 17007 | Schema.Struct({ |
| | 17008 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| | 17009 | type: Schema.Literal("input_image").annotate({ |
| | 17010 | title: "InputImageFunctionCallOutputContentItemType", |
| | 17011 | }), |
| | 17012 | file_id: Schema.String, |
| | 17013 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 17014 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| 13923 | Schema.Struct({ | 17015 | Schema.Struct({ |
| 13924 | audio_url: Schema.String, | 17016 | audio_url: Schema.String, |
| 13925 | type: Schema.Literal("input_audio").annotate({ | 17017 | type: Schema.Literal("input_audio").annotate({ |
| ... | @@ -13944,8 +17036,13 @@ export type ClientRequest__ContentItem = | ... | @@ -13944,8 +17036,13 @@ export type ClientRequest__ContentItem = |
| 13944 | | { readonly text: string; readonly type: "input_text" } | 17036 | | { readonly text: string; readonly type: "input_text" } |
| 13945 | | { | 17037 | | { |
| 13946 | readonly detail?: ClientRequest__ImageDetail | null; | 17038 | readonly detail?: ClientRequest__ImageDetail | null; |
| | 17039 | readonly type: "input_image"; |
| 13947 | readonly image_url: string; | 17040 | readonly image_url: string; |
| | 17041 | } |
| | 17042 | | { |
| | 17043 | readonly detail?: ClientRequest__ImageDetail | null; |
| 13948 | readonly type: "input_image"; | 17044 | readonly type: "input_image"; |
| | 17045 | readonly file_id: string; |
| 13949 | } | 17046 | } |
| 13950 | | { readonly audio_url: string; readonly type: "input_audio" } | 17047 | | { readonly audio_url: string; readonly type: "input_audio" } |
| 13951 | | { readonly text: string; readonly type: "output_text" }; | 17048 | | { readonly text: string; readonly type: "output_text" }; |
| ... | @@ -13955,11 +17052,18 @@ export const ClientRequest__ContentItem = Schema.Union( | ... | @@ -13955,11 +17052,18 @@ export const ClientRequest__ContentItem = Schema.Union( |
| 13955 | text: Schema.String, | 17052 | text: Schema.String, |
| 13956 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), | 17053 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), |
| 13957 | }).annotate({ title: "InputTextContentItem" }), | 17054 | }).annotate({ title: "InputTextContentItem" }), |
| 13958 | Schema.Struct({ | 17055 | Schema.Union([ |
| 13959 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), | 17056 | Schema.Struct({ |
| 13960 | image_url: Schema.String, | 17057 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| 13961 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), | 17058 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), |
| 13962 | }).annotate({ title: "InputImageContentItem" }), | 17059 | image_url: Schema.String, |
| | 17060 | }).annotate({ title: "ImageUrlContentItem" }), |
| | 17061 | Schema.Struct({ |
| | 17062 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| | 17063 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), |
| | 17064 | file_id: Schema.String, |
| | 17065 | }).annotate({ title: "FileIdContentItem" }), |
| | 17066 | ]).annotate({ title: "InputImageContentItem" }), |
| 13963 | Schema.Struct({ | 17067 | Schema.Struct({ |
| 13964 | audio_url: Schema.String, | 17068 | audio_url: Schema.String, |
| 13965 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), | 17069 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), |
| ... | @@ -14026,13 +17130,40 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({ | ... | @@ -14026,13 +17130,40 @@ export const ClientRequest__ReviewStartParams = Schema.Struct({ |
| 14026 | delivery: Schema.optionalKey( | 17130 | delivery: Schema.optionalKey( |
| 14027 | Schema.Union([ClientRequest__ReviewDelivery, Schema.Null]).annotate({ | 17131 | Schema.Union([ClientRequest__ReviewDelivery, Schema.Null]).annotate({ |
| 14028 | description: | 17132 | description: |
| 14029 | "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`).", | 17133 | "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`). Detached delivery is deprecated and emits `deprecationNotice`. Use `thread/start` followed by an inline review for a separate review thread.", |
| 14030 | }), | 17134 | }), |
| 14031 | ), | 17135 | ), |
| 14032 | target: ClientRequest__ReviewTarget, | 17136 | target: ClientRequest__ReviewTarget, |
| 14033 | threadId: Schema.String, | 17137 | threadId: Schema.String, |
| 14034 | }).annotate({ identifier: "ClientRequest__ReviewStartParams" }); | 17138 | }).annotate({ identifier: "ClientRequest__ReviewStartParams" }); |
| 14035 | | 17139 | |
| | 17140 | export type ClientRequest__McpServerOauthLoginParams = { |
| | 17141 | readonly clientRegistration?: ClientRequest__McpServerOauthClientRegistration | null; |
| | 17142 | readonly name: string; |
| | 17143 | readonly scopes?: ReadonlyArray<string> | null; |
| | 17144 | readonly threadId?: string | null; |
| | 17145 | readonly timeoutSecs?: number | null; |
| | 17146 | }; |
| | 17147 | export const ClientRequest__McpServerOauthLoginParams = Schema.Struct({ |
| | 17148 | clientRegistration: Schema.optionalKey( |
| | 17149 | Schema.Union([ClientRequest__McpServerOauthClientRegistration, Schema.Null]).annotate({ |
| | 17150 | description: |
| | 17151 | "Registration strategy for this login only; omission selects automatic discovery.", |
| | 17152 | }), |
| | 17153 | ), |
| | 17154 | name: Schema.String, |
| | 17155 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| | 17156 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17157 | timeoutSecs: Schema.optionalKey( |
| | 17158 | Schema.Union([ |
| | 17159 | Schema.Number.annotate({ format: "int64" }).check( |
| | 17160 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 17161 | ), |
| | 17162 | Schema.Null, |
| | 17163 | ]), |
| | 17164 | ), |
| | 17165 | }).annotate({ identifier: "ClientRequest__McpServerOauthLoginParams" }); |
| | 17166 | |
| 14036 | export type ClientRequest__ListMcpServerStatusParams = { | 17167 | export type ClientRequest__ListMcpServerStatusParams = { |
| 14037 | readonly cursor?: string | null; | 17168 | readonly cursor?: string | null; |
| 14038 | readonly detail?: ClientRequest__McpServerStatusDetail | null; | 17169 | readonly detail?: ClientRequest__McpServerStatusDetail | null; |
| ... | @@ -14096,7 +17227,14 @@ export type ClientRequest__LoginAccountParams = | ... | @@ -14096,7 +17227,14 @@ export type ClientRequest__LoginAccountParams = |
| 14096 | readonly chatgptPlanType?: string | null; | 17227 | readonly chatgptPlanType?: string | null; |
| 14097 | readonly type: "chatgptAuthTokens"; | 17228 | readonly type: "chatgptAuthTokens"; |
| 14098 | } | 17229 | } |
| 14099 | | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" }; | 17230 | | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" } |
| | 17231 | | { |
| | 17232 | readonly accessKeyId: string; |
| | 17233 | readonly region: string; |
| | 17234 | readonly secretAccessKey: string; |
| | 17235 | readonly sessionToken?: string | null; |
| | 17236 | readonly type: "amazonBedrockAccessKeys"; |
| | 17237 | }; |
| 14100 | export const ClientRequest__LoginAccountParams = Schema.Union( | 17238 | export const ClientRequest__LoginAccountParams = Schema.Union( |
| 14101 | [ | 17239 | [ |
| 14102 | Schema.Struct({ | 17240 | Schema.Struct({ |
| ... | @@ -14149,6 +17287,18 @@ export const ClientRequest__LoginAccountParams = Schema.Union( | ... | @@ -14149,6 +17287,18 @@ export const ClientRequest__LoginAccountParams = Schema.Union( |
| 14149 | title: "AmazonBedrockLoginAccountParams", | 17287 | title: "AmazonBedrockLoginAccountParams", |
| 14150 | description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.", | 17288 | description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.", |
| 14151 | }), | 17289 | }), |
| | 17290 | Schema.Struct({ |
| | 17291 | accessKeyId: Schema.String, |
| | 17292 | region: Schema.String, |
| | 17293 | secretAccessKey: Schema.String, |
| | 17294 | sessionToken: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17295 | type: Schema.Literal("amazonBedrockAccessKeys").annotate({ |
| | 17296 | title: "AmazonBedrockAccessKeysLoginAccountParamsType", |
| | 17297 | }), |
| | 17298 | }).annotate({ |
| | 17299 | title: "AmazonBedrockAccessKeysLoginAccountParams", |
| | 17300 | description: "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.", |
| | 17301 | }), |
| 14152 | ], | 17302 | ], |
| 14153 | { mode: "oneOf" }, | 17303 | { mode: "oneOf" }, |
| 14154 | ).annotate({ identifier: "ClientRequest__LoginAccountParams" }); | 17304 | ).annotate({ identifier: "ClientRequest__LoginAccountParams" }); |
| ... | @@ -14209,6 +17359,47 @@ export const ClientRequest__MigrationDetails = Schema.Struct({ | ... | @@ -14209,6 +17359,47 @@ export const ClientRequest__MigrationDetails = Schema.Struct({ |
| 14209 | ), | 17359 | ), |
| 14210 | }).annotate({ identifier: "ClientRequest__MigrationDetails" }); | 17360 | }).annotate({ identifier: "ClientRequest__MigrationDetails" }); |
| 14211 | | 17361 | |
| | 17362 | export type ClientRequest__ExternalAgentConfigImportItemTypeFailure = { |
| | 17363 | readonly cwd?: string | null; |
| | 17364 | readonly errorType?: string | null; |
| | 17365 | readonly failureStage: string; |
| | 17366 | readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType; |
| | 17367 | readonly message: string; |
| | 17368 | readonly source?: string | null; |
| | 17369 | readonly subErrorType?: string | null; |
| | 17370 | }; |
| | 17371 | export const ClientRequest__ExternalAgentConfigImportItemTypeFailure = Schema.Struct({ |
| | 17372 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17373 | errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17374 | failureStage: Schema.String, |
| | 17375 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, |
| | 17376 | message: Schema.String, |
| | 17377 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17378 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17379 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportItemTypeFailure" }); |
| | 17380 | |
| | 17381 | export type ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams = { |
| | 17382 | readonly cwd?: string | null; |
| | 17383 | readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType; |
| | 17384 | readonly source?: string | null; |
| | 17385 | readonly target?: string | null; |
| | 17386 | readonly title?: string | null; |
| | 17387 | }; |
| | 17388 | export const ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams = Schema.Struct({ |
| | 17389 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17390 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, |
| | 17391 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17392 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 17393 | title: Schema.optionalKey( |
| | 17394 | Schema.Union([ |
| | 17395 | Schema.String.annotate({ |
| | 17396 | description: "Original title for an imported session, when available.", |
| | 17397 | }), |
| | 17398 | Schema.Null, |
| | 17399 | ]), |
| | 17400 | ), |
| | 17401 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams" }); |
| | 17402 | |
| 14212 | export type ClientRequest__ConfigValueWriteParams = { | 17403 | export type ClientRequest__ConfigValueWriteParams = { |
| 14213 | readonly expectedVersion?: string | null; | 17404 | readonly expectedVersion?: string | null; |
| 14214 | readonly filePath?: string | null; | 17405 | readonly filePath?: string | null; |
| ... | @@ -14247,7 +17438,7 @@ export type CommandExecutionRequestApprovalParams__CommandAction = | ... | @@ -14247,7 +17438,7 @@ export type CommandExecutionRequestApprovalParams__CommandAction = |
| 14247 | | { | 17438 | | { |
| 14248 | readonly command: string; | 17439 | readonly command: string; |
| 14249 | readonly name: string; | 17440 | readonly name: string; |
| 14250 | readonly path: CommandExecutionRequestApprovalParams__AbsolutePathBuf; | 17441 | readonly path: CommandExecutionRequestApprovalParams__LegacyAppPathString; |
| 14251 | readonly type: "read"; | 17442 | readonly type: "read"; |
| 14252 | } | 17443 | } |
| 14253 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 17444 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -14263,7 +17454,7 @@ export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union | ... | @@ -14263,7 +17454,7 @@ export const CommandExecutionRequestApprovalParams__CommandAction = Schema.Union |
| 14263 | Schema.Struct({ | 17454 | Schema.Struct({ |
| 14264 | command: Schema.String, | 17455 | command: Schema.String, |
| 14265 | name: Schema.String, | 17456 | name: Schema.String, |
| 14266 | path: CommandExecutionRequestApprovalParams__AbsolutePathBuf, | 17457 | path: CommandExecutionRequestApprovalParams__LegacyAppPathString, |
| 14267 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 17458 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 14268 | }).annotate({ title: "ReadCommandAction" }), | 17459 | }).annotate({ title: "ReadCommandAction" }), |
| 14269 | Schema.Struct({ | 17460 | Schema.Struct({ |
| ... | @@ -14744,8 +17935,10 @@ export type ServerNotification__CodexErrorInfo = | ... | @@ -14744,8 +17935,10 @@ export type ServerNotification__CodexErrorInfo = |
| 14744 | | "contextWindowExceeded" | 17935 | | "contextWindowExceeded" |
| 14745 | | "sessionBudgetExceeded" | 17936 | | "sessionBudgetExceeded" |
| 14746 | | "usageLimitExceeded" | 17937 | | "usageLimitExceeded" |
| | 17938 | | "rateLimitExceeded" |
| 14747 | | "serverOverloaded" | 17939 | | "serverOverloaded" |
| 14748 | | "cyberPolicy" | 17940 | | "cyberPolicy" |
| | 17941 | | "misalignmentPolicyViolation" |
| 14749 | | "internalServerError" | 17942 | | "internalServerError" |
| 14750 | | "unauthorized" | 17943 | | "unauthorized" |
| 14751 | | "badRequest" | 17944 | | "badRequest" |
| ... | @@ -14767,8 +17960,10 @@ export const ServerNotification__CodexErrorInfo = Schema.Union( | ... | @@ -14767,8 +17960,10 @@ export const ServerNotification__CodexErrorInfo = Schema.Union( |
| 14767 | "contextWindowExceeded", | 17960 | "contextWindowExceeded", |
| 14768 | "sessionBudgetExceeded", | 17961 | "sessionBudgetExceeded", |
| 14769 | "usageLimitExceeded", | 17962 | "usageLimitExceeded", |
| | 17963 | "rateLimitExceeded", |
| 14770 | "serverOverloaded", | 17964 | "serverOverloaded", |
| 14771 | "cyberPolicy", | 17965 | "cyberPolicy", |
| | 17966 | "misalignmentPolicyViolation", |
| 14772 | "internalServerError", | 17967 | "internalServerError", |
| 14773 | "unauthorized", | 17968 | "unauthorized", |
| 14774 | "badRequest", | 17969 | "badRequest", |
| ... | @@ -14865,47 +18060,37 @@ export const ServerNotification__CodexErrorInfo = Schema.Union( | ... | @@ -14865,47 +18060,37 @@ export const ServerNotification__CodexErrorInfo = Schema.Union( |
| 14865 | identifier: "ServerNotification__CodexErrorInfo", | 18060 | identifier: "ServerNotification__CodexErrorInfo", |
| 14866 | }); | 18061 | }); |
| 14867 | | 18062 | |
| 14868 | export type ServerNotification__CommandAction = | 18063 | export type ServerNotification__MisalignmentErrorDetails = { |
| 14869 | | { | 18064 | readonly detailedExplanation?: string | null; |
| 14870 | readonly command: string; | 18065 | readonly errorType?: string | null; |
| 14871 | readonly name: string; | 18066 | readonly steer?: ServerNotification__MisalignmentSteer | null; |
| 14872 | readonly path: ServerNotification__AbsolutePathBuf; | 18067 | }; |
| 14873 | readonly type: "read"; | 18068 | export const ServerNotification__MisalignmentErrorDetails = Schema.Struct({ |
| 14874 | } | 18069 | detailedExplanation: Schema.optionalKey( |
| 14875 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 18070 | Schema.Union([ |
| 14876 | | { | 18071 | Schema.String.annotate({ |
| 14877 | readonly command: string; | 18072 | description: |
| 14878 | readonly path?: string | null; | 18073 | "A substantive localized explanation is required before offering continuation.", |
| 14879 | readonly query?: string | null; | 18074 | }), |
| 14880 | readonly type: "search"; | 18075 | Schema.Null, |
| 14881 | } | 18076 | ]), |
| 14882 | | { readonly command: string; readonly type: "unknown" }; | 18077 | ), |
| 14883 | export const ServerNotification__CommandAction = Schema.Union( | 18078 | errorType: Schema.optionalKey( |
| 14884 | [ | 18079 | Schema.Union([ |
| 14885 | Schema.Struct({ | 18080 | Schema.String.annotate({ |
| 14886 | command: Schema.String, | 18081 | description: |
| 14887 | name: Schema.String, | 18082 | "Open-ended classification; clients must accept categories added by Responses.", |
| 14888 | path: ServerNotification__AbsolutePathBuf, | 18083 | }), |
| 14889 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 18084 | Schema.Null, |
| 14890 | }).annotate({ title: "ReadCommandAction" }), | 18085 | ]), |
| 14891 | Schema.Struct({ | 18086 | ), |
| 14892 | command: Schema.String, | 18087 | steer: Schema.optionalKey( |
| 14893 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18088 | Schema.Union([ServerNotification__MisalignmentSteer, Schema.Null]).annotate({ |
| 14894 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | 18089 | description: |
| 14895 | }).annotate({ title: "ListFilesCommandAction" }), | 18090 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| 14896 | Schema.Struct({ | 18091 | }), |
| 14897 | command: Schema.String, | 18092 | ), |
| 14898 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18093 | }).annotate({ identifier: "ServerNotification__MisalignmentErrorDetails" }); |
| 14899 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 14900 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 14901 | }).annotate({ title: "SearchCommandAction" }), | | |
| 14902 | Schema.Struct({ | | |
| 14903 | command: Schema.String, | | |
| 14904 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | | |
| 14905 | }).annotate({ title: "UnknownCommandAction" }), | | |
| 14906 | ], | | |
| 14907 | { mode: "oneOf" }, | | |
| 14908 | ).annotate({ identifier: "ServerNotification__CommandAction" }); | | |
| 14909 | | 18094 | |
| 14910 | export type ServerNotification__FsChangedNotification = { | 18095 | export type ServerNotification__FsChangedNotification = { |
| 14911 | readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>; | 18096 | readonly changedPaths: ReadonlyArray<ServerNotification__AbsolutePathBuf>; |
| ... | @@ -14923,6 +18108,42 @@ export const ServerNotification__FsChangedNotification = Schema.Struct({ | ... | @@ -14923,6 +18108,42 @@ export const ServerNotification__FsChangedNotification = Schema.Struct({ |
| 14923 | identifier: "ServerNotification__FsChangedNotification", | 18108 | identifier: "ServerNotification__FsChangedNotification", |
| 14924 | }); | 18109 | }); |
| 14925 | | 18110 | |
| | 18111 | export type ServerNotification__Settings = { |
| | 18112 | readonly developer_instructions?: string | null; |
| | 18113 | readonly model: string; |
| | 18114 | readonly reasoning_effort?: ServerNotification__ReasoningEffort | null; |
| | 18115 | }; |
| | 18116 | export const ServerNotification__Settings = Schema.Struct({ |
| | 18117 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18118 | model: Schema.String, |
| | 18119 | reasoning_effort: Schema.optionalKey( |
| | 18120 | Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]), |
| | 18121 | ), |
| | 18122 | }).annotate({ |
| | 18123 | description: "Settings for a collaboration mode.", |
| | 18124 | identifier: "ServerNotification__Settings", |
| | 18125 | }); |
| | 18126 | |
| | 18127 | export type ServerNotification__ThreadSection = { |
| | 18128 | readonly appearance?: ServerNotification__ThreadSectionAppearance | null; |
| | 18129 | readonly id: string; |
| | 18130 | readonly name: string; |
| | 18131 | }; |
| | 18132 | export const ServerNotification__ThreadSection = Schema.Struct({ |
| | 18133 | appearance: Schema.optionalKey( |
| | 18134 | Schema.Union([ServerNotification__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 18135 | description: "Optional appearance synchronized across clients.", |
| | 18136 | }), |
| | 18137 | ), |
| | 18138 | id: Schema.String.annotate({ |
| | 18139 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 18140 | }), |
| | 18141 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 18142 | }).annotate({ |
| | 18143 | description: "An independently persisted, user-visible thread section.", |
| | 18144 | identifier: "ServerNotification__ThreadSection", |
| | 18145 | }); |
| | 18146 | |
| 14926 | export type ServerNotification__SubAgentSource = | 18147 | export type ServerNotification__SubAgentSource = |
| 14927 | | "review" | 18148 | | "review" |
| 14928 | | "compact" | 18149 | | "compact" |
| ... | @@ -15001,6 +18222,64 @@ export const ServerNotification__TextElement = Schema.Struct({ | ... | @@ -15001,6 +18222,64 @@ export const ServerNotification__TextElement = Schema.Struct({ |
| 15001 | ), | 18222 | ), |
| 15002 | }).annotate({ identifier: "ServerNotification__TextElement" }); | 18223 | }).annotate({ identifier: "ServerNotification__TextElement" }); |
| 15003 | | 18224 | |
| | 18225 | export type ServerNotification__FunctionCallOutputContentItem = |
| | 18226 | | { readonly text: string; readonly type: "input_text" } |
| | 18227 | | { |
| | 18228 | readonly detail?: ServerNotification__ImageDetail | null; |
| | 18229 | readonly type: "input_image"; |
| | 18230 | readonly image_url: string; |
| | 18231 | } |
| | 18232 | | { |
| | 18233 | readonly detail?: ServerNotification__ImageDetail | null; |
| | 18234 | readonly type: "input_image"; |
| | 18235 | readonly file_id: string; |
| | 18236 | } |
| | 18237 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 18238 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 18239 | export const ServerNotification__FunctionCallOutputContentItem = Schema.Union( |
| | 18240 | [ |
| | 18241 | Schema.Struct({ |
| | 18242 | text: Schema.String, |
| | 18243 | type: Schema.Literal("input_text").annotate({ |
| | 18244 | title: "InputTextFunctionCallOutputContentItemType", |
| | 18245 | }), |
| | 18246 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 18247 | Schema.Union([ |
| | 18248 | Schema.Struct({ |
| | 18249 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), |
| | 18250 | type: Schema.Literal("input_image").annotate({ |
| | 18251 | title: "InputImageFunctionCallOutputContentItemType", |
| | 18252 | }), |
| | 18253 | image_url: Schema.String, |
| | 18254 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 18255 | Schema.Struct({ |
| | 18256 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), |
| | 18257 | type: Schema.Literal("input_image").annotate({ |
| | 18258 | title: "InputImageFunctionCallOutputContentItemType", |
| | 18259 | }), |
| | 18260 | file_id: Schema.String, |
| | 18261 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 18262 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 18263 | Schema.Struct({ |
| | 18264 | audio_url: Schema.String, |
| | 18265 | type: Schema.Literal("input_audio").annotate({ |
| | 18266 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 18267 | }), |
| | 18268 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 18269 | Schema.Struct({ |
| | 18270 | encrypted_content: Schema.String, |
| | 18271 | type: Schema.Literal("encrypted_content").annotate({ |
| | 18272 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 18273 | }), |
| | 18274 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 18275 | ], |
| | 18276 | { mode: "oneOf" }, |
| | 18277 | ).annotate({ |
| | 18278 | description: |
| | 18279 | "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.", |
| | 18280 | identifier: "ServerNotification__FunctionCallOutputContentItem", |
| | 18281 | }); |
| | 18282 | |
| 15004 | export type ServerNotification__MemoryCitation = { | 18283 | export type ServerNotification__MemoryCitation = { |
| 15005 | readonly entries: ReadonlyArray<ServerNotification__MemoryCitationEntry>; | 18284 | readonly entries: ReadonlyArray<ServerNotification__MemoryCitationEntry>; |
| 15006 | readonly threadIds: ReadonlyArray<string>; | 18285 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -15010,6 +18289,48 @@ export const ServerNotification__MemoryCitation = Schema.Struct({ | ... | @@ -15010,6 +18289,48 @@ export const ServerNotification__MemoryCitation = Schema.Struct({ |
| 15010 | threadIds: Schema.Array(Schema.String), | 18289 | threadIds: Schema.Array(Schema.String), |
| 15011 | }).annotate({ identifier: "ServerNotification__MemoryCitation" }); | 18290 | }).annotate({ identifier: "ServerNotification__MemoryCitation" }); |
| 15012 | | 18291 | |
| | 18292 | export type ServerNotification__CommandAction = |
| | 18293 | | { |
| | 18294 | readonly command: string; |
| | 18295 | readonly name: string; |
| | 18296 | readonly path: ServerNotification__LegacyAppPathString; |
| | 18297 | readonly type: "read"; |
| | 18298 | } |
| | 18299 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| | 18300 | | { |
| | 18301 | readonly command: string; |
| | 18302 | readonly path?: string | null; |
| | 18303 | readonly query?: string | null; |
| | 18304 | readonly type: "search"; |
| | 18305 | } |
| | 18306 | | { readonly command: string; readonly type: "unknown" }; |
| | 18307 | export const ServerNotification__CommandAction = Schema.Union( |
| | 18308 | [ |
| | 18309 | Schema.Struct({ |
| | 18310 | command: Schema.String, |
| | 18311 | name: Schema.String, |
| | 18312 | path: ServerNotification__LegacyAppPathString, |
| | 18313 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| | 18314 | }).annotate({ title: "ReadCommandAction" }), |
| | 18315 | Schema.Struct({ |
| | 18316 | command: Schema.String, |
| | 18317 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18318 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 18319 | }).annotate({ title: "ListFilesCommandAction" }), |
| | 18320 | Schema.Struct({ |
| | 18321 | command: Schema.String, |
| | 18322 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18323 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18324 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 18325 | }).annotate({ title: "SearchCommandAction" }), |
| | 18326 | Schema.Struct({ |
| | 18327 | command: Schema.String, |
| | 18328 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| | 18329 | }).annotate({ title: "UnknownCommandAction" }), |
| | 18330 | ], |
| | 18331 | { mode: "oneOf" }, |
| | 18332 | ).annotate({ identifier: "ServerNotification__CommandAction" }); |
| | 18333 | |
| 15013 | export type ServerNotification__FileSystemSpecialPath = | 18334 | export type ServerNotification__FileSystemSpecialPath = |
| 15014 | | { readonly kind: "root" } | 18335 | | { readonly kind: "root" } |
| 15015 | | { readonly kind: "minimal" } | 18336 | | { readonly kind: "minimal" } |
| ... | @@ -15066,6 +18387,19 @@ export const ServerNotification__FileUpdateChange = Schema.Struct({ | ... | @@ -15066,6 +18387,19 @@ export const ServerNotification__FileUpdateChange = Schema.Struct({ |
| 15066 | path: Schema.String, | 18387 | path: Schema.String, |
| 15067 | }).annotate({ identifier: "ServerNotification__FileUpdateChange" }); | 18388 | }).annotate({ identifier: "ServerNotification__FileUpdateChange" }); |
| 15068 | | 18389 | |
| | 18390 | export type ServerNotification__McpAppUi = { |
| | 18391 | readonly preferredModelDisplayMode: ServerNotification__McpAppDisplayMode; |
| | 18392 | readonly resourceUri: string; |
| | 18393 | }; |
| | 18394 | export const ServerNotification__McpAppUi = Schema.Struct({ |
| | 18395 | preferredModelDisplayMode: ServerNotification__McpAppDisplayMode, |
| | 18396 | resourceUri: Schema.String, |
| | 18397 | }).annotate({ |
| | 18398 | description: |
| | 18399 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 18400 | identifier: "ServerNotification__McpAppUi", |
| | 18401 | }); |
| | 18402 | |
| 15069 | export type ServerNotification__CollabAgentState = { | 18403 | export type ServerNotification__CollabAgentState = { |
| 15070 | readonly message?: string | null; | 18404 | readonly message?: string | null; |
| 15071 | readonly status: ServerNotification__CollabAgentStatus; | 18405 | readonly status: ServerNotification__CollabAgentStatus; |
| ... | @@ -15075,20 +18409,22 @@ export const ServerNotification__CollabAgentState = Schema.Struct({ | ... | @@ -15075,20 +18409,22 @@ export const ServerNotification__CollabAgentState = Schema.Struct({ |
| 15075 | status: ServerNotification__CollabAgentStatus, | 18409 | status: ServerNotification__CollabAgentStatus, |
| 15076 | }).annotate({ identifier: "ServerNotification__CollabAgentState" }); | 18410 | }).annotate({ identifier: "ServerNotification__CollabAgentState" }); |
| 15077 | | 18411 | |
| 15078 | export type ServerNotification__Settings = { | 18412 | export type ServerNotification__ThreadAttachmentUpdatedNotification = { |
| 15079 | readonly developer_instructions?: string | null; | 18413 | readonly attachmentId: string; |
| 15080 | readonly model: string; | 18414 | readonly attachmentType: string; |
| 15081 | readonly reasoning_effort?: ServerNotification__ReasoningEffort | null; | 18415 | readonly identityKey: string; |
| | 18416 | readonly operation: ServerNotification__ThreadAttachmentOperation; |
| | 18417 | readonly threadId: string; |
| 15082 | }; | 18418 | }; |
| 15083 | export const ServerNotification__Settings = Schema.Struct({ | 18419 | export const ServerNotification__ThreadAttachmentUpdatedNotification = Schema.Struct({ |
| 15084 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18420 | attachmentId: Schema.String, |
| 15085 | model: Schema.String, | 18421 | attachmentType: Schema.String, |
| 15086 | reasoning_effort: Schema.optionalKey( | 18422 | identityKey: Schema.String, |
| 15087 | Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]), | 18423 | operation: ServerNotification__ThreadAttachmentOperation, |
| 15088 | ), | 18424 | threadId: Schema.String, |
| 15089 | }).annotate({ | 18425 | }).annotate({ |
| 15090 | description: "Settings for a collaboration mode.", | 18426 | description: "Notification published after a thread attachment is created or deleted.", |
| 15091 | identifier: "ServerNotification__Settings", | 18427 | identifier: "ServerNotification__ThreadAttachmentUpdatedNotification", |
| 15092 | }); | 18428 | }); |
| 15093 | | 18429 | |
| 15094 | export type ServerNotification__ThreadGoal = { | 18430 | export type ServerNotification__ThreadGoal = { |
| ... | @@ -15127,6 +18463,15 @@ export const ServerNotification__ThreadGoal = Schema.Struct({ | ... | @@ -15127,6 +18463,15 @@ export const ServerNotification__ThreadGoal = Schema.Struct({ |
| 15127 | ), | 18463 | ), |
| 15128 | }).annotate({ identifier: "ServerNotification__ThreadGoal" }); | 18464 | }).annotate({ identifier: "ServerNotification__ThreadGoal" }); |
| 15129 | | 18465 | |
| | 18466 | export type ServerNotification__ProjectChangedNotification = { |
| | 18467 | readonly changeType: ServerNotification__ProjectChangeType; |
| | 18468 | readonly projectId: string; |
| | 18469 | }; |
| | 18470 | export const ServerNotification__ProjectChangedNotification = Schema.Struct({ |
| | 18471 | changeType: ServerNotification__ProjectChangeType, |
| | 18472 | projectId: Schema.String, |
| | 18473 | }).annotate({ identifier: "ServerNotification__ProjectChangedNotification" }); |
| | 18474 | |
| 15130 | export type ServerNotification__SandboxPolicy = | 18475 | export type ServerNotification__SandboxPolicy = |
| 15131 | | { readonly type: "dangerFullAccess" } | 18476 | | { readonly type: "dangerFullAccess" } |
| 15132 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | 18477 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| ... | @@ -15303,6 +18648,15 @@ export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Str | ... | @@ -15303,6 +18648,15 @@ export const ServerNotification__McpServerStatusUpdatedNotification = Schema.Str |
| 15303 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18648 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15304 | }).annotate({ identifier: "ServerNotification__McpServerStatusUpdatedNotification" }); | 18649 | }).annotate({ identifier: "ServerNotification__McpServerStatusUpdatedNotification" }); |
| 15305 | | 18650 | |
| | 18651 | export type ServerNotification__McpServerEventStreamNotification = { |
| | 18652 | readonly notification: ServerNotification__McpServerEventNotification; |
| | 18653 | readonly subscriptionId: string; |
| | 18654 | }; |
| | 18655 | export const ServerNotification__McpServerEventStreamNotification = Schema.Struct({ |
| | 18656 | notification: ServerNotification__McpServerEventNotification, |
| | 18657 | subscriptionId: Schema.String, |
| | 18658 | }).annotate({ identifier: "ServerNotification__McpServerEventStreamNotification" }); |
| | 18659 | |
| 15306 | export type ServerNotification__AccountUpdatedNotification = { | 18660 | export type ServerNotification__AccountUpdatedNotification = { |
| 15307 | readonly authMode?: ServerNotification__AuthMode | null; | 18661 | readonly authMode?: ServerNotification__AuthMode | null; |
| 15308 | readonly planType?: ServerNotification__PlanType | null; | 18662 | readonly planType?: ServerNotification__PlanType | null; |
| ... | @@ -15317,6 +18671,7 @@ export type ServerNotification__RateLimitSnapshot = { | ... | @@ -15317,6 +18671,7 @@ export type ServerNotification__RateLimitSnapshot = { |
| 15317 | readonly individualLimit?: ServerNotification__SpendControlLimitSnapshot | null; | 18671 | readonly individualLimit?: ServerNotification__SpendControlLimitSnapshot | null; |
| 15318 | readonly limitId?: string | null; | 18672 | readonly limitId?: string | null; |
| 15319 | readonly limitName?: string | null; | 18673 | readonly limitName?: string | null; |
| | 18674 | readonly normalModelSlug?: string | null; |
| 15320 | readonly planType?: ServerNotification__PlanType | null; | 18675 | readonly planType?: ServerNotification__PlanType | null; |
| 15321 | readonly primary?: ServerNotification__RateLimitWindow | null; | 18676 | readonly primary?: ServerNotification__RateLimitWindow | null; |
| 15322 | readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null; | 18677 | readonly rateLimitReachedType?: ServerNotification__RateLimitReachedType | null; |
| ... | @@ -15330,6 +18685,15 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ | ... | @@ -15330,6 +18685,15 @@ export const ServerNotification__RateLimitSnapshot = Schema.Struct({ |
| 15330 | ), | 18685 | ), |
| 15331 | limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18686 | limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15332 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18687 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18688 | normalModelSlug: Schema.optionalKey( |
| | 18689 | Schema.Union([ |
| | 18690 | Schema.String.annotate({ |
| | 18691 | description: |
| | 18692 | "Normal model whose display name and reasoning options describe this quota alias.", |
| | 18693 | }), |
| | 18694 | Schema.Null, |
| | 18695 | ]), |
| | 18696 | ), |
| 15333 | planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])), | 18697 | planType: Schema.optionalKey(Schema.Union([ServerNotification__PlanType, Schema.Null])), |
| 15334 | primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])), | 18698 | primary: Schema.optionalKey(Schema.Union([ServerNotification__RateLimitWindow, Schema.Null])), |
| 15335 | rateLimitReachedType: Schema.optionalKey( | 18699 | rateLimitReachedType: Schema.optionalKey( |
| ... | @@ -15351,7 +18715,6 @@ export type ServerNotification__AppMetadata = { | ... | @@ -15351,7 +18715,6 @@ export type ServerNotification__AppMetadata = { |
| 15351 | readonly categories?: ReadonlyArray<string> | null; | 18715 | readonly categories?: ReadonlyArray<string> | null; |
| 15352 | readonly developer?: string | null; | 18716 | readonly developer?: string | null; |
| 15353 | readonly firstPartyRequiresInstall?: boolean | null; | 18717 | readonly firstPartyRequiresInstall?: boolean | null; |
| 15354 | readonly firstPartyType?: string | null; | | |
| 15355 | readonly review?: ServerNotification__AppReview | null; | 18718 | readonly review?: ServerNotification__AppReview | null; |
| 15356 | readonly screenshots?: ReadonlyArray<ServerNotification__AppScreenshot> | null; | 18719 | readonly screenshots?: ReadonlyArray<ServerNotification__AppScreenshot> | null; |
| 15357 | readonly seoDescription?: string | null; | 18720 | readonly seoDescription?: string | null; |
| ... | @@ -15365,7 +18728,6 @@ export const ServerNotification__AppMetadata = Schema.Struct({ | ... | @@ -15365,7 +18728,6 @@ export const ServerNotification__AppMetadata = Schema.Struct({ |
| 15365 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 18728 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 15366 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18729 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15367 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 18730 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 15368 | firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15369 | review: Schema.optionalKey(Schema.Union([ServerNotification__AppReview, Schema.Null])), | 18731 | review: Schema.optionalKey(Schema.Union([ServerNotification__AppReview, Schema.Null])), |
| 15370 | screenshots: Schema.optionalKey( | 18732 | screenshots: Schema.optionalKey( |
| 15371 | Schema.Union([Schema.Array(ServerNotification__AppScreenshot), Schema.Null]), | 18733 | Schema.Union([Schema.Array(ServerNotification__AppScreenshot), Schema.Null]), |
| ... | @@ -15418,12 +18780,21 @@ export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = { | ... | @@ -15418,12 +18780,21 @@ export type ServerNotification__ExternalAgentConfigImportItemTypeSuccess = { |
| 15418 | readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType; | 18780 | readonly itemType: ServerNotification__ExternalAgentConfigMigrationItemType; |
| 15419 | readonly source?: string | null; | 18781 | readonly source?: string | null; |
| 15420 | readonly target?: string | null; | 18782 | readonly target?: string | null; |
| | 18783 | readonly title?: string | null; |
| 15421 | }; | 18784 | }; |
| 15422 | export const ServerNotification__ExternalAgentConfigImportItemTypeSuccess = Schema.Struct({ | 18785 | export const ServerNotification__ExternalAgentConfigImportItemTypeSuccess = Schema.Struct({ |
| 15423 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18786 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15424 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, | 18787 | itemType: ServerNotification__ExternalAgentConfigMigrationItemType, |
| 15425 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18788 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15426 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 18789 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18790 | title: Schema.optionalKey( |
| | 18791 | Schema.Union([ |
| | 18792 | Schema.String.annotate({ |
| | 18793 | description: "Original title for an imported session; null for other item types.", |
| | 18794 | }), |
| | 18795 | Schema.Null, |
| | 18796 | ]), |
| | 18797 | ), |
| 15427 | }).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportItemTypeSuccess" }); | 18798 | }).annotate({ identifier: "ServerNotification__ExternalAgentConfigImportItemTypeSuccess" }); |
| 15428 | | 18799 | |
| 15429 | export type ServerNotification__ModelReroutedNotification = { | 18800 | export type ServerNotification__ModelReroutedNotification = { |
| ... | @@ -15512,6 +18883,76 @@ export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Stru | ... | @@ -15512,6 +18883,76 @@ export const ServerNotification__ThreadRealtimeStartedNotification = Schema.Stru |
| 15512 | identifier: "ServerNotification__ThreadRealtimeStartedNotification", | 18883 | identifier: "ServerNotification__ThreadRealtimeStartedNotification", |
| 15513 | }); | 18884 | }); |
| 15514 | | 18885 | |
| | 18886 | export type ServerNotification__ThreadRealtimeItem = |
| | 18887 | | { |
| | 18888 | readonly id: string; |
| | 18889 | readonly realtimeSessionId: string; |
| | 18890 | readonly type: "realtimeSessionStarted"; |
| | 18891 | } |
| | 18892 | | { |
| | 18893 | readonly id: string; |
| | 18894 | readonly realtimeSessionId: string; |
| | 18895 | readonly role: ServerNotification__ThreadRealtimeTranscriptRole; |
| | 18896 | readonly text: string; |
| | 18897 | readonly type: "transcriptSegment"; |
| | 18898 | } |
| | 18899 | | { |
| | 18900 | readonly id: string; |
| | 18901 | readonly realtimeSessionId: string; |
| | 18902 | readonly item_id: string; |
| | 18903 | readonly presentation: ServerNotification__ThreadRealtimeBemItemPresentation; |
| | 18904 | readonly turn_id: string; |
| | 18905 | readonly type: "bemItemPromoted"; |
| | 18906 | } |
| | 18907 | | { |
| | 18908 | readonly id: string; |
| | 18909 | readonly realtimeSessionId: string; |
| | 18910 | readonly outcome: ServerNotification__ThreadRealtimeSessionOutcome; |
| | 18911 | readonly type: "realtimeSessionClosed"; |
| | 18912 | }; |
| | 18913 | export const ServerNotification__ThreadRealtimeItem = Schema.Union( |
| | 18914 | [ |
| | 18915 | Schema.Struct({ |
| | 18916 | id: Schema.String, |
| | 18917 | realtimeSessionId: Schema.String, |
| | 18918 | type: Schema.Literal("realtimeSessionStarted").annotate({ |
| | 18919 | title: "RealtimeSessionStartedThreadRealtimeItemType", |
| | 18920 | }), |
| | 18921 | }).annotate({ title: "RealtimeSessionStartedThreadRealtimeItem" }), |
| | 18922 | Schema.Struct({ |
| | 18923 | id: Schema.String, |
| | 18924 | realtimeSessionId: Schema.String, |
| | 18925 | role: ServerNotification__ThreadRealtimeTranscriptRole, |
| | 18926 | text: Schema.String, |
| | 18927 | type: Schema.Literal("transcriptSegment").annotate({ |
| | 18928 | title: "TranscriptSegmentThreadRealtimeItemType", |
| | 18929 | }), |
| | 18930 | }).annotate({ title: "TranscriptSegmentThreadRealtimeItem" }), |
| | 18931 | Schema.Struct({ |
| | 18932 | id: Schema.String, |
| | 18933 | realtimeSessionId: Schema.String, |
| | 18934 | item_id: Schema.String, |
| | 18935 | presentation: ServerNotification__ThreadRealtimeBemItemPresentation, |
| | 18936 | turn_id: Schema.String, |
| | 18937 | type: Schema.Literal("bemItemPromoted").annotate({ |
| | 18938 | title: "BemItemPromotedThreadRealtimeItemType", |
| | 18939 | }), |
| | 18940 | }).annotate({ title: "BemItemPromotedThreadRealtimeItem" }), |
| | 18941 | Schema.Struct({ |
| | 18942 | id: Schema.String, |
| | 18943 | realtimeSessionId: Schema.String, |
| | 18944 | outcome: ServerNotification__ThreadRealtimeSessionOutcome, |
| | 18945 | type: Schema.Literal("realtimeSessionClosed").annotate({ |
| | 18946 | title: "RealtimeSessionClosedThreadRealtimeItemType", |
| | 18947 | }), |
| | 18948 | }).annotate({ title: "RealtimeSessionClosedThreadRealtimeItem" }), |
| | 18949 | ], |
| | 18950 | { mode: "oneOf" }, |
| | 18951 | ).annotate({ |
| | 18952 | description: "EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline.", |
| | 18953 | identifier: "ServerNotification__ThreadRealtimeItem", |
| | 18954 | }); |
| | 18955 | |
| 15515 | export type ServerNotification__ThreadRealtimeOutputAudioDeltaNotification = { | 18956 | export type ServerNotification__ThreadRealtimeOutputAudioDeltaNotification = { |
| 15516 | readonly audio: ServerNotification__ThreadRealtimeAudioChunk; | 18957 | readonly audio: ServerNotification__ThreadRealtimeAudioChunk; |
| 15517 | readonly threadId: string; | 18958 | readonly threadId: string; |
| ... | @@ -15535,11 +18976,26 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche | ... | @@ -15535,11 +18976,26 @@ export const ServerNotification__WindowsSandboxSetupCompletedNotification = Sche |
| 15535 | success: Schema.Boolean, | 18976 | success: Schema.Boolean, |
| 15536 | }).annotate({ identifier: "ServerNotification__WindowsSandboxSetupCompletedNotification" }); | 18977 | }).annotate({ identifier: "ServerNotification__WindowsSandboxSetupCompletedNotification" }); |
| 15537 | | 18978 | |
| | 18979 | export type ServerNotification__AccountLoginCompletedNotification = { |
| | 18980 | readonly error?: string | null; |
| | 18981 | readonly loginId?: string | null; |
| | 18982 | readonly onboardingEntrypoint?: ServerNotification__DesktopOnboardingEntrypoint | null; |
| | 18983 | readonly success: boolean; |
| | 18984 | }; |
| | 18985 | export const ServerNotification__AccountLoginCompletedNotification = Schema.Struct({ |
| | 18986 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18987 | loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 18988 | onboardingEntrypoint: Schema.optionalKey( |
| | 18989 | Schema.Union([ServerNotification__DesktopOnboardingEntrypoint, Schema.Null]), |
| | 18990 | ), |
| | 18991 | success: Schema.Boolean, |
| | 18992 | }).annotate({ identifier: "ServerNotification__AccountLoginCompletedNotification" }); |
| | 18993 | |
| 15538 | export type ServerRequest__CommandAction = | 18994 | export type ServerRequest__CommandAction = |
| 15539 | | { | 18995 | | { |
| 15540 | readonly command: string; | 18996 | readonly command: string; |
| 15541 | readonly name: string; | 18997 | readonly name: string; |
| 15542 | readonly path: ServerRequest__AbsolutePathBuf; | 18998 | readonly path: ServerRequest__LegacyAppPathString; |
| 15543 | readonly type: "read"; | 18999 | readonly type: "read"; |
| 15544 | } | 19000 | } |
| 15545 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 19001 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -15555,7 +19011,7 @@ export const ServerRequest__CommandAction = Schema.Union( | ... | @@ -15555,7 +19011,7 @@ export const ServerRequest__CommandAction = Schema.Union( |
| 15555 | Schema.Struct({ | 19011 | Schema.Struct({ |
| 15556 | command: Schema.String, | 19012 | command: Schema.String, |
| 15557 | name: Schema.String, | 19013 | name: Schema.String, |
| 15558 | path: ServerRequest__AbsolutePathBuf, | 19014 | path: ServerRequest__LegacyAppPathString, |
| 15559 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 19015 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 15560 | }).annotate({ title: "ReadCommandAction" }), | 19016 | }).annotate({ title: "ReadCommandAction" }), |
| 15561 | Schema.Struct({ | 19017 | Schema.Struct({ |
| ... | @@ -15919,6 +19375,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = { | ... | @@ -15919,6 +19375,7 @@ export type V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = { |
| 15919 | readonly individualLimit?: V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot | null; | 19375 | readonly individualLimit?: V2AccountRateLimitsUpdatedNotification__SpendControlLimitSnapshot | null; |
| 15920 | readonly limitId?: string | null; | 19376 | readonly limitId?: string | null; |
| 15921 | readonly limitName?: string | null; | 19377 | readonly limitName?: string | null; |
| | 19378 | readonly normalModelSlug?: string | null; |
| 15922 | readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null; | 19379 | readonly planType?: V2AccountRateLimitsUpdatedNotification__PlanType | null; |
| 15923 | readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null; | 19380 | readonly primary?: V2AccountRateLimitsUpdatedNotification__RateLimitWindow | null; |
| 15924 | readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null; | 19381 | readonly rateLimitReachedType?: V2AccountRateLimitsUpdatedNotification__RateLimitReachedType | null; |
| ... | @@ -15934,6 +19391,15 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema. | ... | @@ -15934,6 +19391,15 @@ export const V2AccountRateLimitsUpdatedNotification__RateLimitSnapshot = Schema. |
| 15934 | ), | 19391 | ), |
| 15935 | limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19392 | limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15936 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19393 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19394 | normalModelSlug: Schema.optionalKey( |
| | 19395 | Schema.Union([ |
| | 19396 | Schema.String.annotate({ |
| | 19397 | description: |
| | 19398 | "Normal model whose display name and reasoning options describe this quota alias.", |
| | 19399 | }), |
| | 19400 | Schema.Null, |
| | 19401 | ]), |
| | 19402 | ), |
| 15937 | planType: Schema.optionalKey( | 19403 | planType: Schema.optionalKey( |
| 15938 | Schema.Union([V2AccountRateLimitsUpdatedNotification__PlanType, Schema.Null]), | 19404 | Schema.Union([V2AccountRateLimitsUpdatedNotification__PlanType, Schema.Null]), |
| 15939 | ), | 19405 | ), |
| ... | @@ -15961,7 +19427,6 @@ export type V2AppListUpdatedNotification__AppMetadata = { | ... | @@ -15961,7 +19427,6 @@ export type V2AppListUpdatedNotification__AppMetadata = { |
| 15961 | readonly categories?: ReadonlyArray<string> | null; | 19427 | readonly categories?: ReadonlyArray<string> | null; |
| 15962 | readonly developer?: string | null; | 19428 | readonly developer?: string | null; |
| 15963 | readonly firstPartyRequiresInstall?: boolean | null; | 19429 | readonly firstPartyRequiresInstall?: boolean | null; |
| 15964 | readonly firstPartyType?: string | null; | | |
| 15965 | readonly review?: V2AppListUpdatedNotification__AppReview | null; | 19430 | readonly review?: V2AppListUpdatedNotification__AppReview | null; |
| 15966 | readonly screenshots?: ReadonlyArray<V2AppListUpdatedNotification__AppScreenshot> | null; | 19431 | readonly screenshots?: ReadonlyArray<V2AppListUpdatedNotification__AppScreenshot> | null; |
| 15967 | readonly seoDescription?: string | null; | 19432 | readonly seoDescription?: string | null; |
| ... | @@ -15975,7 +19440,6 @@ export const V2AppListUpdatedNotification__AppMetadata = Schema.Struct({ | ... | @@ -15975,7 +19440,6 @@ export const V2AppListUpdatedNotification__AppMetadata = Schema.Struct({ |
| 15975 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 19440 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 15976 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19441 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 15977 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 19442 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 15978 | firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 15979 | review: Schema.optionalKey(Schema.Union([V2AppListUpdatedNotification__AppReview, Schema.Null])), | 19443 | review: Schema.optionalKey(Schema.Union([V2AppListUpdatedNotification__AppReview, Schema.Null])), |
| 15980 | screenshots: Schema.optionalKey( | 19444 | screenshots: Schema.optionalKey( |
| 15981 | Schema.Union([Schema.Array(V2AppListUpdatedNotification__AppScreenshot), Schema.Null]), | 19445 | Schema.Union([Schema.Array(V2AppListUpdatedNotification__AppScreenshot), Schema.Null]), |
| ... | @@ -15992,7 +19456,6 @@ export type V2AppsListResponse__AppMetadata = { | ... | @@ -15992,7 +19456,6 @@ export type V2AppsListResponse__AppMetadata = { |
| 15992 | readonly categories?: ReadonlyArray<string> | null; | 19456 | readonly categories?: ReadonlyArray<string> | null; |
| 15993 | readonly developer?: string | null; | 19457 | readonly developer?: string | null; |
| 15994 | readonly firstPartyRequiresInstall?: boolean | null; | 19458 | readonly firstPartyRequiresInstall?: boolean | null; |
| 15995 | readonly firstPartyType?: string | null; | | |
| 15996 | readonly review?: V2AppsListResponse__AppReview | null; | 19459 | readonly review?: V2AppsListResponse__AppReview | null; |
| 15997 | readonly screenshots?: ReadonlyArray<V2AppsListResponse__AppScreenshot> | null; | 19460 | readonly screenshots?: ReadonlyArray<V2AppsListResponse__AppScreenshot> | null; |
| 15998 | readonly seoDescription?: string | null; | 19461 | readonly seoDescription?: string | null; |
| ... | @@ -16006,7 +19469,6 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({ | ... | @@ -16006,7 +19469,6 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({ |
| 16006 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 19469 | categories: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 16007 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19470 | developer: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16008 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 19471 | firstPartyRequiresInstall: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 16009 | firstPartyType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 16010 | review: Schema.optionalKey(Schema.Union([V2AppsListResponse__AppReview, Schema.Null])), | 19472 | review: Schema.optionalKey(Schema.Union([V2AppsListResponse__AppReview, Schema.Null])), |
| 16011 | screenshots: Schema.optionalKey( | 19473 | screenshots: Schema.optionalKey( |
| 16012 | Schema.Union([Schema.Array(V2AppsListResponse__AppScreenshot), Schema.Null]), | 19474 | Schema.Union([Schema.Array(V2AppsListResponse__AppScreenshot), Schema.Null]), |
| ... | @@ -16021,16 +19483,24 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({ | ... | @@ -16021,16 +19483,24 @@ export const V2AppsListResponse__AppMetadata = Schema.Struct({ |
| 16021 | | 19483 | |
| 16022 | export type V2AppsReadResponse__ConnectorMetadata = { | 19484 | export type V2AppsReadResponse__ConnectorMetadata = { |
| 16023 | readonly description?: string | null; | 19485 | readonly description?: string | null; |
| | 19486 | readonly distributionChannel?: string | null; |
| 16024 | readonly iconUrl?: string | null; | 19487 | readonly iconUrl?: string | null; |
| | 19488 | readonly iconUrlDark?: string | null; |
| 16025 | readonly id: string; | 19489 | readonly id: string; |
| | 19490 | readonly installUrl?: string | null; |
| 16026 | readonly name: string; | 19491 | readonly name: string; |
| | 19492 | readonly pluginDisplayNames?: ReadonlyArray<string>; |
| 16027 | readonly toolSummaries?: ReadonlyArray<V2AppsReadResponse__AppToolSummary> | null; | 19493 | readonly toolSummaries?: ReadonlyArray<V2AppsReadResponse__AppToolSummary> | null; |
| 16028 | }; | 19494 | }; |
| 16029 | export const V2AppsReadResponse__ConnectorMetadata = Schema.Struct({ | 19495 | export const V2AppsReadResponse__ConnectorMetadata = Schema.Struct({ |
| 16030 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19496 | description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19497 | distributionChannel: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16031 | iconUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19498 | iconUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19499 | iconUrlDark: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16032 | id: Schema.String, | 19500 | id: Schema.String, |
| | 19501 | installUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16033 | name: Schema.String, | 19502 | name: Schema.String, |
| | 19503 | pluginDisplayNames: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 16034 | toolSummaries: Schema.optionalKey( | 19504 | toolSummaries: Schema.optionalKey( |
| 16035 | Schema.Union([Schema.Array(V2AppsReadResponse__AppToolSummary), Schema.Null]), | 19505 | Schema.Union([Schema.Array(V2AppsReadResponse__AppToolSummary), Schema.Null]), |
| 16036 | ), | 19506 | ), |
| ... | @@ -16099,6 +19569,52 @@ export const V2ConfigBatchWriteParams__ConfigEdit = Schema.Struct({ | ... | @@ -16099,6 +19569,52 @@ export const V2ConfigBatchWriteParams__ConfigEdit = Schema.Struct({ |
| 16099 | value: Schema.Json.annotate({ expected: "JSON value" }), | 19569 | value: Schema.Json.annotate({ expected: "JSON value" }), |
| 16100 | }).annotate({ identifier: "V2ConfigBatchWriteParams__ConfigEdit" }); | 19570 | }).annotate({ identifier: "V2ConfigBatchWriteParams__ConfigEdit" }); |
| 16101 | | 19571 | |
| | 19572 | export type V2ConfigReadResponse__BrowserUseOriginPolicyConfig = { |
| | 19573 | readonly access?: V2ConfigReadResponse__AllowDenyRequirement | null; |
| | 19574 | readonly downloads?: V2ConfigReadResponse__AllowDenyRequirement | null; |
| | 19575 | readonly full_cdp_access?: V2ConfigReadResponse__AllowDenyRequirement | null; |
| | 19576 | readonly uploads?: V2ConfigReadResponse__AllowDenyRequirement | null; |
| | 19577 | }; |
| | 19578 | export const V2ConfigReadResponse__BrowserUseOriginPolicyConfig = Schema.Struct({ |
| | 19579 | access: Schema.optionalKey( |
| | 19580 | Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19581 | ), |
| | 19582 | downloads: Schema.optionalKey( |
| | 19583 | Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19584 | ), |
| | 19585 | full_cdp_access: Schema.optionalKey( |
| | 19586 | Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19587 | ), |
| | 19588 | uploads: Schema.optionalKey( |
| | 19589 | Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19590 | ), |
| | 19591 | }).annotate({ identifier: "V2ConfigReadResponse__BrowserUseOriginPolicyConfig" }); |
| | 19592 | |
| | 19593 | export type V2ConfigReadResponse__ComputerUseMacosConfig = { |
| | 19594 | readonly bundle_ids?: { readonly [x: string]: V2ConfigReadResponse__AllowDenyRequirement } | null; |
| | 19595 | }; |
| | 19596 | export const V2ConfigReadResponse__ComputerUseMacosConfig = Schema.Struct({ |
| | 19597 | bundle_ids: Schema.optionalKey( |
| | 19598 | Schema.Union([ |
| | 19599 | Schema.Record(Schema.String, V2ConfigReadResponse__AllowDenyRequirement), |
| | 19600 | Schema.Null, |
| | 19601 | ]), |
| | 19602 | ), |
| | 19603 | }).annotate({ identifier: "V2ConfigReadResponse__ComputerUseMacosConfig" }); |
| | 19604 | |
| | 19605 | export type V2ConfigReadResponse__ComputerUseWindowsExeConfig = { |
| | 19606 | readonly access: V2ConfigReadResponse__AllowDenyRequirement; |
| | 19607 | readonly binary_name?: string | null; |
| | 19608 | readonly product_name: string; |
| | 19609 | readonly publisher_name: string; |
| | 19610 | }; |
| | 19611 | export const V2ConfigReadResponse__ComputerUseWindowsExeConfig = Schema.Struct({ |
| | 19612 | access: V2ConfigReadResponse__AllowDenyRequirement, |
| | 19613 | binary_name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19614 | product_name: Schema.String, |
| | 19615 | publisher_name: Schema.String, |
| | 19616 | }).annotate({ identifier: "V2ConfigReadResponse__ComputerUseWindowsExeConfig" }); |
| | 19617 | |
| 16102 | export type V2ConfigReadResponse__WebSearchToolConfig = { | 19618 | export type V2ConfigReadResponse__WebSearchToolConfig = { |
| 16103 | readonly allowed_domains?: ReadonlyArray<string> | null; | 19619 | readonly allowed_domains?: ReadonlyArray<string> | null; |
| 16104 | readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null; | 19620 | readonly context_size?: V2ConfigReadResponse__WebSearchContextSize | null; |
| ... | @@ -16115,6 +19631,7 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({ | ... | @@ -16115,6 +19631,7 @@ export const V2ConfigReadResponse__WebSearchToolConfig = Schema.Struct({ |
| 16115 | }).annotate({ identifier: "V2ConfigReadResponse__WebSearchToolConfig" }); | 19631 | }).annotate({ identifier: "V2ConfigReadResponse__WebSearchToolConfig" }); |
| 16116 | | 19632 | |
| 16117 | export type V2ConfigReadResponse__ConfigLayerSource = | 19633 | export type V2ConfigReadResponse__ConfigLayerSource = |
| | 19634 | | { readonly file: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "packagedDefaults" } |
| 16118 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } | 19635 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } |
| 16119 | | { readonly file: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "system" } | 19636 | | { readonly file: V2ConfigReadResponse__AbsolutePathBuf; readonly type: "system" } |
| 16120 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } | 19637 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } |
| ... | @@ -16132,6 +19649,18 @@ export type V2ConfigReadResponse__ConfigLayerSource = | ... | @@ -16132,6 +19649,18 @@ export type V2ConfigReadResponse__ConfigLayerSource = |
| 16132 | | { readonly type: "legacyManagedConfigTomlFromMdm" }; | 19649 | | { readonly type: "legacyManagedConfigTomlFromMdm" }; |
| 16133 | export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( | 19650 | export const V2ConfigReadResponse__ConfigLayerSource = Schema.Union( |
| 16134 | [ | 19651 | [ |
| | 19652 | Schema.Struct({ |
| | 19653 | file: Schema.suspend( |
| | 19654 | (): Schema.Codec<V2ConfigReadResponse__AbsolutePathBuf> => |
| | 19655 | V2ConfigReadResponse__AbsolutePathBuf, |
| | 19656 | ).annotate({ description: "Path to the packaged default configuration file." }), |
| | 19657 | type: Schema.Literal("packagedDefaults").annotate({ |
| | 19658 | title: "PackagedDefaultsConfigLayerSourceType", |
| | 19659 | }), |
| | 19660 | }).annotate({ |
| | 19661 | title: "PackagedDefaultsConfigLayerSource", |
| | 19662 | description: "Default configuration supplied with the installed Codex package.", |
| | 19663 | }), |
| 16135 | Schema.Struct({ | 19664 | Schema.Struct({ |
| 16136 | domain: Schema.String, | 19665 | domain: Schema.String, |
| 16137 | key: Schema.String, | 19666 | key: Schema.String, |
| ... | @@ -16241,6 +19770,64 @@ export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({ | ... | @@ -16241,6 +19770,64 @@ export const V2ConfigReadResponse__AppsDefaultConfig = Schema.Struct({ |
| 16241 | open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), | 19770 | open_world_enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| 16242 | }).annotate({ identifier: "V2ConfigReadResponse__AppsDefaultConfig" }); | 19771 | }).annotate({ identifier: "V2ConfigReadResponse__AppsDefaultConfig" }); |
| 16243 | | 19772 | |
| | 19773 | export type V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements = { |
| | 19774 | readonly bundleIds?: { |
| | 19775 | readonly [x: string]: V2ConfigRequirementsReadResponse__AllowDenyRequirement; |
| | 19776 | } | null; |
| | 19777 | }; |
| | 19778 | export const V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements = Schema.Struct({ |
| | 19779 | bundleIds: Schema.optionalKey( |
| | 19780 | Schema.Union([ |
| | 19781 | Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__AllowDenyRequirement), |
| | 19782 | Schema.Null, |
| | 19783 | ]), |
| | 19784 | ), |
| | 19785 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements" }); |
| | 19786 | |
| | 19787 | export type V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement = { |
| | 19788 | readonly access: V2ConfigRequirementsReadResponse__AllowDenyRequirement; |
| | 19789 | readonly binaryName?: string | null; |
| | 19790 | readonly productName: string; |
| | 19791 | readonly publisherName: string; |
| | 19792 | }; |
| | 19793 | export const V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement = Schema.Struct({ |
| | 19794 | access: V2ConfigRequirementsReadResponse__AllowDenyRequirement, |
| | 19795 | binaryName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 19796 | productName: Schema.String, |
| | 19797 | publisherName: Schema.String, |
| | 19798 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement" }); |
| | 19799 | |
| | 19800 | export type V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy = { |
| | 19801 | readonly access?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null; |
| | 19802 | readonly accessApprovalLifetime?: V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime | null; |
| | 19803 | readonly autoReview?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null; |
| | 19804 | readonly downloads?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null; |
| | 19805 | readonly fullCdpAccess?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null; |
| | 19806 | readonly persistentApproval?: boolean | null; |
| | 19807 | readonly uploads?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null; |
| | 19808 | }; |
| | 19809 | export const V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy = Schema.Struct({ |
| | 19810 | access: Schema.optionalKey( |
| | 19811 | Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19812 | ), |
| | 19813 | accessApprovalLifetime: Schema.optionalKey( |
| | 19814 | Schema.Union([V2ConfigRequirementsReadResponse__BrowserUseAccessApprovalLifetime, Schema.Null]), |
| | 19815 | ), |
| | 19816 | autoReview: Schema.optionalKey( |
| | 19817 | Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19818 | ), |
| | 19819 | downloads: Schema.optionalKey( |
| | 19820 | Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19821 | ), |
| | 19822 | fullCdpAccess: Schema.optionalKey( |
| | 19823 | Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19824 | ), |
| | 19825 | persistentApproval: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 19826 | uploads: Schema.optionalKey( |
| | 19827 | Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]), |
| | 19828 | ), |
| | 19829 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy" }); |
| | 19830 | |
| 16244 | export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = { | 19831 | export type V2ConfigRequirementsReadResponse__NewThreadModelDefaults = { |
| 16245 | readonly model?: string | null; | 19832 | readonly model?: string | null; |
| 16246 | readonly modelReasoningEffort?: V2ConfigRequirementsReadResponse__ReasoningEffort | null; | 19833 | readonly modelReasoningEffort?: V2ConfigRequirementsReadResponse__ReasoningEffort | null; |
| ... | @@ -16254,6 +19841,19 @@ export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.S | ... | @@ -16254,6 +19841,19 @@ export const V2ConfigRequirementsReadResponse__NewThreadModelDefaults = Schema.S |
| 16254 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 19841 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16255 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__NewThreadModelDefaults" }); | 19842 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__NewThreadModelDefaults" }); |
| 16256 | | 19843 | |
| | 19844 | export type V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements = { |
| | 19845 | readonly domains: { |
| | 19846 | readonly [x: string]: V2ConfigRequirementsReadResponse__NetworkDomainPermission; |
| | 19847 | }; |
| | 19848 | readonly enabled: boolean; |
| | 19849 | }; |
| | 19850 | export const V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements = Schema.Struct({ |
| | 19851 | domains: Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__NetworkDomainPermission), |
| | 19852 | enabled: Schema.Boolean.annotate({ |
| | 19853 | description: "When enabled, only explicitly allowed exact domains may be contacted.", |
| | 19854 | }), |
| | 19855 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements" }); |
| | 19856 | |
| 16257 | export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = { | 19857 | export type V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup = { |
| 16258 | readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>; | 19858 | readonly hooks: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookHandler>; |
| 16259 | readonly matcher?: string | null; | 19859 | readonly matcher?: string | null; |
| ... | @@ -16273,6 +19873,7 @@ export const V2ConfigWarningNotification__TextRange = Schema.Struct({ | ... | @@ -16273,6 +19873,7 @@ export const V2ConfigWarningNotification__TextRange = Schema.Struct({ |
| 16273 | }).annotate({ identifier: "V2ConfigWarningNotification__TextRange" }); | 19873 | }).annotate({ identifier: "V2ConfigWarningNotification__TextRange" }); |
| 16274 | | 19874 | |
| 16275 | export type V2ConfigWriteResponse__ConfigLayerSource = | 19875 | export type V2ConfigWriteResponse__ConfigLayerSource = |
| | 19876 | | { readonly file: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "packagedDefaults" } |
| 16276 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } | 19877 | | { readonly domain: string; readonly key: string; readonly type: "mdm" } |
| 16277 | | { readonly file: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "system" } | 19878 | | { readonly file: V2ConfigWriteResponse__AbsolutePathBuf; readonly type: "system" } |
| 16278 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } | 19879 | | { readonly id: string; readonly name: string; readonly type: "enterpriseManaged" } |
| ... | @@ -16290,6 +19891,18 @@ export type V2ConfigWriteResponse__ConfigLayerSource = | ... | @@ -16290,6 +19891,18 @@ export type V2ConfigWriteResponse__ConfigLayerSource = |
| 16290 | | { readonly type: "legacyManagedConfigTomlFromMdm" }; | 19891 | | { readonly type: "legacyManagedConfigTomlFromMdm" }; |
| 16291 | export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( | 19892 | export const V2ConfigWriteResponse__ConfigLayerSource = Schema.Union( |
| 16292 | [ | 19893 | [ |
| | 19894 | Schema.Struct({ |
| | 19895 | file: Schema.suspend( |
| | 19896 | (): Schema.Codec<V2ConfigWriteResponse__AbsolutePathBuf> => |
| | 19897 | V2ConfigWriteResponse__AbsolutePathBuf, |
| | 19898 | ).annotate({ description: "Path to the packaged default configuration file." }), |
| | 19899 | type: Schema.Literal("packagedDefaults").annotate({ |
| | 19900 | title: "PackagedDefaultsConfigLayerSourceType", |
| | 19901 | }), |
| | 19902 | }).annotate({ |
| | 19903 | title: "PackagedDefaultsConfigLayerSource", |
| | 19904 | description: "Default configuration supplied with the installed Codex package.", |
| | 19905 | }), |
| 16293 | Schema.Struct({ | 19906 | Schema.Struct({ |
| 16294 | domain: Schema.String, | 19907 | domain: Schema.String, |
| 16295 | key: Schema.String, | 19908 | key: Schema.String, |
| ... | @@ -16384,8 +19997,10 @@ export type V2ErrorNotification__CodexErrorInfo = | ... | @@ -16384,8 +19997,10 @@ export type V2ErrorNotification__CodexErrorInfo = |
| 16384 | | "contextWindowExceeded" | 19997 | | "contextWindowExceeded" |
| 16385 | | "sessionBudgetExceeded" | 19998 | | "sessionBudgetExceeded" |
| 16386 | | "usageLimitExceeded" | 19999 | | "usageLimitExceeded" |
| | 20000 | | "rateLimitExceeded" |
| 16387 | | "serverOverloaded" | 20001 | | "serverOverloaded" |
| 16388 | | "cyberPolicy" | 20002 | | "cyberPolicy" |
| | 20003 | | "misalignmentPolicyViolation" |
| 16389 | | "internalServerError" | 20004 | | "internalServerError" |
| 16390 | | "unauthorized" | 20005 | | "unauthorized" |
| 16391 | | "badRequest" | 20006 | | "badRequest" |
| ... | @@ -16407,8 +20022,10 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( | ... | @@ -16407,8 +20022,10 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 16407 | "contextWindowExceeded", | 20022 | "contextWindowExceeded", |
| 16408 | "sessionBudgetExceeded", | 20023 | "sessionBudgetExceeded", |
| 16409 | "usageLimitExceeded", | 20024 | "usageLimitExceeded", |
| | 20025 | "rateLimitExceeded", |
| 16410 | "serverOverloaded", | 20026 | "serverOverloaded", |
| 16411 | "cyberPolicy", | 20027 | "cyberPolicy", |
| | 20028 | "misalignmentPolicyViolation", |
| 16412 | "internalServerError", | 20029 | "internalServerError", |
| 16413 | "unauthorized", | 20030 | "unauthorized", |
| 16414 | "badRequest", | 20031 | "badRequest", |
| ... | @@ -16507,6 +20124,38 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( | ... | @@ -16507,6 +20124,38 @@ export const V2ErrorNotification__CodexErrorInfo = Schema.Union( |
| 16507 | identifier: "V2ErrorNotification__CodexErrorInfo", | 20124 | identifier: "V2ErrorNotification__CodexErrorInfo", |
| 16508 | }); | 20125 | }); |
| 16509 | | 20126 | |
| | 20127 | export type V2ErrorNotification__MisalignmentErrorDetails = { |
| | 20128 | readonly detailedExplanation?: string | null; |
| | 20129 | readonly errorType?: string | null; |
| | 20130 | readonly steer?: V2ErrorNotification__MisalignmentSteer | null; |
| | 20131 | }; |
| | 20132 | export const V2ErrorNotification__MisalignmentErrorDetails = Schema.Struct({ |
| | 20133 | detailedExplanation: Schema.optionalKey( |
| | 20134 | Schema.Union([ |
| | 20135 | Schema.String.annotate({ |
| | 20136 | description: |
| | 20137 | "A substantive localized explanation is required before offering continuation.", |
| | 20138 | }), |
| | 20139 | Schema.Null, |
| | 20140 | ]), |
| | 20141 | ), |
| | 20142 | errorType: Schema.optionalKey( |
| | 20143 | Schema.Union([ |
| | 20144 | Schema.String.annotate({ |
| | 20145 | description: |
| | 20146 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 20147 | }), |
| | 20148 | Schema.Null, |
| | 20149 | ]), |
| | 20150 | ), |
| | 20151 | steer: Schema.optionalKey( |
| | 20152 | Schema.Union([V2ErrorNotification__MisalignmentSteer, Schema.Null]).annotate({ |
| | 20153 | description: |
| | 20154 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 20155 | }), |
| | 20156 | ), |
| | 20157 | }).annotate({ identifier: "V2ErrorNotification__MisalignmentErrorDetails" }); |
| | 20158 | |
| 16510 | export type V2ExperimentalFeatureListResponse__ExperimentalFeature = { | 20159 | export type V2ExperimentalFeatureListResponse__ExperimentalFeature = { |
| 16511 | readonly announcement?: string | null; | 20160 | readonly announcement?: string | null; |
| 16512 | readonly defaultEnabled: boolean; | 20161 | readonly defaultEnabled: boolean; |
| ... | @@ -16559,6 +20208,26 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str | ... | @@ -16559,6 +20208,26 @@ export const V2ExperimentalFeatureListResponse__ExperimentalFeature = Schema.Str |
| 16559 | ).annotate({ description: "Lifecycle stage of this feature flag." }), | 20208 | ).annotate({ description: "Lifecycle stage of this feature flag." }), |
| 16560 | }).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeature" }); | 20209 | }).annotate({ identifier: "V2ExperimentalFeatureListResponse__ExperimentalFeature" }); |
| 16561 | | 20210 | |
| | 20211 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate = { |
| | 20212 | readonly name: string; |
| | 20213 | readonly sessionCount: number; |
| | 20214 | readonly source: V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource; |
| | 20215 | }; |
| | 20216 | export const V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate = |
| | 20217 | Schema.Struct({ |
| | 20218 | name: Schema.String, |
| | 20219 | sessionCount: Schema.Number.annotate({ format: "uint32" }) |
| | 20220 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20221 | .check( |
| | 20222 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20223 | expected: "a value greater than or equal to 0", |
| | 20224 | }), |
| | 20225 | ), |
| | 20226 | source: V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorSource, |
| | 20227 | }).annotate({ |
| | 20228 | identifier: "V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate", |
| | 20229 | }); |
| | 20230 | |
| 16562 | export type V2ExternalAgentConfigDetectResponse__MigrationDetails = { | 20231 | export type V2ExternalAgentConfigDetectResponse__MigrationDetails = { |
| 16563 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>; | 20232 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__CommandMigration>; |
| 16564 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>; | 20233 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__HookMigration>; |
| ... | @@ -16625,6 +20294,7 @@ export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfi | ... | @@ -16625,6 +20294,7 @@ export type V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfi |
| 16625 | readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType; | 20294 | readonly itemType: V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType; |
| 16626 | readonly source?: string | null; | 20295 | readonly source?: string | null; |
| 16627 | readonly target?: string | null; | 20296 | readonly target?: string | null; |
| | 20297 | readonly title?: string | null; |
| 16628 | }; | 20298 | }; |
| 16629 | export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess = | 20299 | export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess = |
| 16630 | Schema.Struct({ | 20300 | Schema.Struct({ |
| ... | @@ -16633,6 +20303,14 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf | ... | @@ -16633,6 +20303,14 @@ export const V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConf |
| 16633 | V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType, | 20303 | V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigMigrationItemType, |
| 16634 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20304 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16635 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20305 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20306 | title: Schema.optionalKey( |
| | 20307 | Schema.Union([ |
| | 20308 | Schema.String.annotate({ |
| | 20309 | description: "Original title for an imported session; null for other item types.", |
| | 20310 | }), |
| | 20311 | Schema.Null, |
| | 20312 | ]), |
| | 20313 | ), |
| 16636 | }).annotate({ | 20314 | }).annotate({ |
| 16637 | identifier: | 20315 | identifier: |
| 16638 | "V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess", | 20316 | "V2ExternalAgentConfigImportCompletedNotification__ExternalAgentConfigImportItemTypeSuccess", |
| ... | @@ -16691,6 +20369,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi | ... | @@ -16691,6 +20369,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi |
| 16691 | readonly itemType: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType; | 20369 | readonly itemType: V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType; |
| 16692 | readonly source?: string | null; | 20370 | readonly source?: string | null; |
| 16693 | readonly target?: string | null; | 20371 | readonly target?: string | null; |
| | 20372 | readonly title?: string | null; |
| 16694 | }; | 20373 | }; |
| 16695 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess = | 20374 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess = |
| 16696 | Schema.Struct({ | 20375 | Schema.Struct({ |
| ... | @@ -16699,11 +20378,70 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -16699,11 +20378,70 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 16699 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType, | 20378 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigMigrationItemType, |
| 16700 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20379 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16701 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20380 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20381 | title: Schema.optionalKey( |
| | 20382 | Schema.Union([ |
| | 20383 | Schema.String.annotate({ |
| | 20384 | description: "Original title for an imported session; null for other item types.", |
| | 20385 | }), |
| | 20386 | Schema.Null, |
| | 20387 | ]), |
| | 20388 | ), |
| 16702 | }).annotate({ | 20389 | }).annotate({ |
| 16703 | identifier: | 20390 | identifier: |
| 16704 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess", | 20391 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess", |
| 16705 | }); | 20392 | }); |
| 16706 | | 20393 | |
| | 20394 | export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure = |
| | 20395 | { |
| | 20396 | readonly cwd?: string | null; |
| | 20397 | readonly errorType?: string | null; |
| | 20398 | readonly failureStage: string; |
| | 20399 | readonly itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType; |
| | 20400 | readonly message: string; |
| | 20401 | readonly source?: string | null; |
| | 20402 | readonly subErrorType?: string | null; |
| | 20403 | }; |
| | 20404 | export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure = |
| | 20405 | Schema.Struct({ |
| | 20406 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20407 | errorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20408 | failureStage: Schema.String, |
| | 20409 | itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType, |
| | 20410 | message: Schema.String, |
| | 20411 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20412 | subErrorType: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20413 | }).annotate({ |
| | 20414 | identifier: |
| | 20415 | "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure", |
| | 20416 | }); |
| | 20417 | |
| | 20418 | export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams = |
| | 20419 | { |
| | 20420 | readonly cwd?: string | null; |
| | 20421 | readonly itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType; |
| | 20422 | readonly source?: string | null; |
| | 20423 | readonly target?: string | null; |
| | 20424 | readonly title?: string | null; |
| | 20425 | }; |
| | 20426 | export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams = |
| | 20427 | Schema.Struct({ |
| | 20428 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20429 | itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType, |
| | 20430 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20431 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20432 | title: Schema.optionalKey( |
| | 20433 | Schema.Union([ |
| | 20434 | Schema.String.annotate({ |
| | 20435 | description: "Original title for an imported session, when available.", |
| | 20436 | }), |
| | 20437 | Schema.Null, |
| | 20438 | ]), |
| | 20439 | ), |
| | 20440 | }).annotate({ |
| | 20441 | identifier: |
| | 20442 | "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams", |
| | 20443 | }); |
| | 20444 | |
| 16707 | export type V2ExternalAgentConfigImportParams__MigrationDetails = { | 20445 | export type V2ExternalAgentConfigImportParams__MigrationDetails = { |
| 16708 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>; | 20446 | readonly commands?: ReadonlyArray<V2ExternalAgentConfigImportParams__CommandMigration>; |
| 16709 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>; | 20447 | readonly hooks?: ReadonlyArray<V2ExternalAgentConfigImportParams__HookMigration>; |
| ... | @@ -16769,6 +20507,7 @@ export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfig | ... | @@ -16769,6 +20507,7 @@ export type V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfig |
| 16769 | readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType; | 20507 | readonly itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType; |
| 16770 | readonly source?: string | null; | 20508 | readonly source?: string | null; |
| 16771 | readonly target?: string | null; | 20509 | readonly target?: string | null; |
| | 20510 | readonly title?: string | null; |
| 16772 | }; | 20511 | }; |
| 16773 | export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess = | 20512 | export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess = |
| 16774 | Schema.Struct({ | 20513 | Schema.Struct({ |
| ... | @@ -16776,6 +20515,14 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi | ... | @@ -16776,6 +20515,14 @@ export const V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfi |
| 16776 | itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType, | 20515 | itemType: V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigMigrationItemType, |
| 16777 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20516 | source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16778 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20517 | target: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20518 | title: Schema.optionalKey( |
| | 20519 | Schema.Union([ |
| | 20520 | Schema.String.annotate({ |
| | 20521 | description: "Original title for an imported session; null for other item types.", |
| | 20522 | }), |
| | 20523 | Schema.Null, |
| | 20524 | ]), |
| | 20525 | ), |
| 16779 | }).annotate({ | 20526 | }).annotate({ |
| 16780 | identifier: | 20527 | identifier: |
| 16781 | "V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess", | 20528 | "V2ExternalAgentConfigImportProgressNotification__ExternalAgentConfigImportItemTypeSuccess", |
| ... | @@ -16843,6 +20590,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { | ... | @@ -16843,6 +20590,7 @@ export type V2GetAccountRateLimitsResponse__RateLimitSnapshot = { |
| 16843 | readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null; | 20590 | readonly individualLimit?: V2GetAccountRateLimitsResponse__SpendControlLimitSnapshot | null; |
| 16844 | readonly limitId?: string | null; | 20591 | readonly limitId?: string | null; |
| 16845 | readonly limitName?: string | null; | 20592 | readonly limitName?: string | null; |
| | 20593 | readonly normalModelSlug?: string | null; |
| 16846 | readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null; | 20594 | readonly planType?: V2GetAccountRateLimitsResponse__PlanType | null; |
| 16847 | readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; | 20595 | readonly primary?: V2GetAccountRateLimitsResponse__RateLimitWindow | null; |
| 16848 | readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null; | 20596 | readonly rateLimitReachedType?: V2GetAccountRateLimitsResponse__RateLimitReachedType | null; |
| ... | @@ -16858,6 +20606,15 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ | ... | @@ -16858,6 +20606,15 @@ export const V2GetAccountRateLimitsResponse__RateLimitSnapshot = Schema.Struct({ |
| 16858 | ), | 20606 | ), |
| 16859 | limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20607 | limitId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 16860 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20608 | limitName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20609 | normalModelSlug: Schema.optionalKey( |
| | 20610 | Schema.Union([ |
| | 20611 | Schema.String.annotate({ |
| | 20612 | description: |
| | 20613 | "Normal model whose display name and reasoning options describe this quota alias.", |
| | 20614 | }), |
| | 20615 | Schema.Null, |
| | 20616 | ]), |
| | 20617 | ), |
| 16861 | planType: Schema.optionalKey( | 20618 | planType: Schema.optionalKey( |
| 16862 | Schema.Union([V2GetAccountRateLimitsResponse__PlanType, Schema.Null]), | 20619 | Schema.Union([V2GetAccountRateLimitsResponse__PlanType, Schema.Null]), |
| 16863 | ), | 20620 | ), |
| ... | @@ -16907,6 +20664,28 @@ export const V2GetAccountResponse__Account = Schema.Union( | ... | @@ -16907,6 +20664,28 @@ export const V2GetAccountResponse__Account = Schema.Union( |
| 16907 | { mode: "oneOf" }, | 20664 | { mode: "oneOf" }, |
| 16908 | ).annotate({ identifier: "V2GetAccountResponse__Account" }); | 20665 | ).annotate({ identifier: "V2GetAccountResponse__Account" }); |
| 16909 | | 20666 | |
| | 20667 | export type V2GetAccountTokenUsageResponse__ThreadUsage = { |
| | 20668 | readonly estimatedUsageCreditsMicros: number; |
| | 20669 | readonly estimatedUsageUsdMicros?: number | null; |
| | 20670 | readonly groups: ReadonlyArray<V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup>; |
| | 20671 | readonly threadId: string; |
| | 20672 | }; |
| | 20673 | export const V2GetAccountTokenUsageResponse__ThreadUsage = Schema.Struct({ |
| | 20674 | estimatedUsageCreditsMicros: Schema.Number.annotate({ format: "int64" }).check( |
| | 20675 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20676 | ), |
| | 20677 | estimatedUsageUsdMicros: Schema.optionalKey( |
| | 20678 | Schema.Union([ |
| | 20679 | Schema.Number.annotate({ format: "int64" }).check( |
| | 20680 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20681 | ), |
| | 20682 | Schema.Null, |
| | 20683 | ]), |
| | 20684 | ), |
| | 20685 | groups: Schema.Array(V2GetAccountTokenUsageResponse__ThreadUsageBreakdownGroup), |
| | 20686 | threadId: Schema.String, |
| | 20687 | }).annotate({ identifier: "V2GetAccountTokenUsageResponse__ThreadUsage" }); |
| | 20688 | |
| 16910 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessage = { | 20689 | export type V2GetWorkspaceMessagesResponse__WorkspaceMessage = { |
| 16911 | readonly archivedAt?: number | null; | 20690 | readonly archivedAt?: number | null; |
| 16912 | readonly createdAt?: number | null; | 20691 | readonly createdAt?: number | null; |
| ... | @@ -16947,46 +20726,248 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({ | ... | @@ -16947,46 +20726,248 @@ export const V2HookCompletedNotification__HookOutputEntry = Schema.Struct({ |
| 16947 | text: Schema.String, | 20726 | text: Schema.String, |
| 16948 | }).annotate({ identifier: "V2HookCompletedNotification__HookOutputEntry" }); | 20727 | }).annotate({ identifier: "V2HookCompletedNotification__HookOutputEntry" }); |
| 16949 | | 20728 | |
| 16950 | export type V2HooksListResponse__HookMetadata = { | 20729 | export type V2HooksListResponse__HookMetadata = |
| 16951 | readonly command?: string | null; | 20730 | | { |
| 16952 | readonly currentHash: string; | 20731 | readonly additionalContextLimit?: number | null; |
| 16953 | readonly displayOrder: number; | 20732 | readonly currentHash: string; |
| 16954 | readonly enabled: boolean; | 20733 | readonly displayOrder: number; |
| 16955 | readonly eventName: V2HooksListResponse__HookEventName; | 20734 | readonly enabled: boolean; |
| 16956 | readonly handlerType: V2HooksListResponse__HookHandlerType; | 20735 | readonly eventName: V2HooksListResponse__HookEventName; |
| 16957 | readonly isManaged: boolean; | 20736 | readonly isManaged: boolean; |
| 16958 | readonly key: string; | 20737 | readonly key: string; |
| 16959 | readonly matcher?: string | null; | 20738 | readonly matcher?: string | null; |
| 16960 | readonly pluginId?: string | null; | 20739 | readonly pluginId?: string | null; |
| 16961 | readonly source: V2HooksListResponse__HookSource; | 20740 | readonly source: V2HooksListResponse__HookSource; |
| 16962 | readonly sourcePath: V2HooksListResponse__AbsolutePathBuf; | 20741 | readonly sourcePath: V2HooksListResponse__AbsolutePathBuf; |
| 16963 | readonly statusMessage?: string | null; | 20742 | readonly statusMessage?: string | null; |
| 16964 | readonly timeoutSec: number; | 20743 | readonly timeoutSec: number; |
| 16965 | readonly trustStatus: V2HooksListResponse__HookTrustStatus; | 20744 | readonly trustStatus: V2HooksListResponse__HookTrustStatus; |
| 16966 | }; | 20745 | readonly async?: boolean; |
| 16967 | export const V2HooksListResponse__HookMetadata = Schema.Struct({ | 20746 | readonly command: string; |
| 16968 | command: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20747 | readonly handlerType: "command"; |
| 16969 | currentHash: Schema.String, | 20748 | } |
| 16970 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( | 20749 | | { |
| 16971 | Schema.isInt().annotate({ expected: "an integer" }), | 20750 | readonly additionalContextLimit?: number | null; |
| 16972 | ), | 20751 | readonly currentHash: string; |
| 16973 | enabled: Schema.Boolean, | 20752 | readonly displayOrder: number; |
| 16974 | eventName: V2HooksListResponse__HookEventName, | 20753 | readonly enabled: boolean; |
| 16975 | handlerType: V2HooksListResponse__HookHandlerType, | 20754 | readonly eventName: V2HooksListResponse__HookEventName; |
| 16976 | isManaged: Schema.Boolean, | 20755 | readonly isManaged: boolean; |
| 16977 | key: Schema.String, | 20756 | readonly key: string; |
| 16978 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20757 | readonly matcher?: string | null; |
| 16979 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20758 | readonly pluginId?: string | null; |
| 16980 | source: V2HooksListResponse__HookSource, | 20759 | readonly source: V2HooksListResponse__HookSource; |
| 16981 | sourcePath: V2HooksListResponse__AbsolutePathBuf, | 20760 | readonly sourcePath: V2HooksListResponse__AbsolutePathBuf; |
| 16982 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 20761 | readonly statusMessage?: string | null; |
| 16983 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) | 20762 | readonly timeoutSec: number; |
| 16984 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 20763 | readonly trustStatus: V2HooksListResponse__HookTrustStatus; |
| 16985 | .check( | 20764 | readonly handlerType: "mcpTool"; |
| 16986 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), | 20765 | readonly server: string; |
| 16987 | ), | 20766 | readonly tool: string; |
| 16988 | trustStatus: V2HooksListResponse__HookTrustStatus, | 20767 | } |
| 16989 | }).annotate({ identifier: "V2HooksListResponse__HookMetadata" }); | 20768 | | { |
| | 20769 | readonly additionalContextLimit?: number | null; |
| | 20770 | readonly currentHash: string; |
| | 20771 | readonly displayOrder: number; |
| | 20772 | readonly enabled: boolean; |
| | 20773 | readonly eventName: V2HooksListResponse__HookEventName; |
| | 20774 | readonly isManaged: boolean; |
| | 20775 | readonly key: string; |
| | 20776 | readonly matcher?: string | null; |
| | 20777 | readonly pluginId?: string | null; |
| | 20778 | readonly source: V2HooksListResponse__HookSource; |
| | 20779 | readonly sourcePath: V2HooksListResponse__AbsolutePathBuf; |
| | 20780 | readonly statusMessage?: string | null; |
| | 20781 | readonly timeoutSec: number; |
| | 20782 | readonly trustStatus: V2HooksListResponse__HookTrustStatus; |
| | 20783 | readonly handlerType: "prompt"; |
| | 20784 | } |
| | 20785 | | { |
| | 20786 | readonly additionalContextLimit?: number | null; |
| | 20787 | readonly currentHash: string; |
| | 20788 | readonly displayOrder: number; |
| | 20789 | readonly enabled: boolean; |
| | 20790 | readonly eventName: V2HooksListResponse__HookEventName; |
| | 20791 | readonly isManaged: boolean; |
| | 20792 | readonly key: string; |
| | 20793 | readonly matcher?: string | null; |
| | 20794 | readonly pluginId?: string | null; |
| | 20795 | readonly source: V2HooksListResponse__HookSource; |
| | 20796 | readonly sourcePath: V2HooksListResponse__AbsolutePathBuf; |
| | 20797 | readonly statusMessage?: string | null; |
| | 20798 | readonly timeoutSec: number; |
| | 20799 | readonly trustStatus: V2HooksListResponse__HookTrustStatus; |
| | 20800 | readonly handlerType: "agent"; |
| | 20801 | }; |
| | 20802 | export const V2HooksListResponse__HookMetadata = Schema.Union( |
| | 20803 | [ |
| | 20804 | Schema.Struct({ |
| | 20805 | additionalContextLimit: Schema.optionalKey( |
| | 20806 | Schema.Union([ |
| | 20807 | Schema.Number.annotate({ |
| | 20808 | description: |
| | 20809 | "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.", |
| | 20810 | format: "uint", |
| | 20811 | }) |
| | 20812 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20813 | .check( |
| | 20814 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20815 | expected: "a value greater than or equal to 0", |
| | 20816 | }), |
| | 20817 | ), |
| | 20818 | Schema.Null, |
| | 20819 | ]), |
| | 20820 | ), |
| | 20821 | currentHash: Schema.String, |
| | 20822 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 20823 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20824 | ), |
| | 20825 | enabled: Schema.Boolean, |
| | 20826 | eventName: V2HooksListResponse__HookEventName, |
| | 20827 | isManaged: Schema.Boolean, |
| | 20828 | key: Schema.String, |
| | 20829 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20830 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20831 | source: V2HooksListResponse__HookSource, |
| | 20832 | sourcePath: V2HooksListResponse__AbsolutePathBuf, |
| | 20833 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20834 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) |
| | 20835 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20836 | .check( |
| | 20837 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20838 | expected: "a value greater than or equal to 0", |
| | 20839 | }), |
| | 20840 | ), |
| | 20841 | trustStatus: V2HooksListResponse__HookTrustStatus, |
| | 20842 | async: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), |
| | 20843 | command: Schema.String, |
| | 20844 | handlerType: Schema.Literal("command"), |
| | 20845 | }), |
| | 20846 | Schema.Struct({ |
| | 20847 | additionalContextLimit: Schema.optionalKey( |
| | 20848 | Schema.Union([ |
| | 20849 | Schema.Number.annotate({ |
| | 20850 | description: |
| | 20851 | "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.", |
| | 20852 | format: "uint", |
| | 20853 | }) |
| | 20854 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20855 | .check( |
| | 20856 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20857 | expected: "a value greater than or equal to 0", |
| | 20858 | }), |
| | 20859 | ), |
| | 20860 | Schema.Null, |
| | 20861 | ]), |
| | 20862 | ), |
| | 20863 | currentHash: Schema.String, |
| | 20864 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 20865 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20866 | ), |
| | 20867 | enabled: Schema.Boolean, |
| | 20868 | eventName: V2HooksListResponse__HookEventName, |
| | 20869 | isManaged: Schema.Boolean, |
| | 20870 | key: Schema.String, |
| | 20871 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20872 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20873 | source: V2HooksListResponse__HookSource, |
| | 20874 | sourcePath: V2HooksListResponse__AbsolutePathBuf, |
| | 20875 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20876 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) |
| | 20877 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20878 | .check( |
| | 20879 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20880 | expected: "a value greater than or equal to 0", |
| | 20881 | }), |
| | 20882 | ), |
| | 20883 | trustStatus: V2HooksListResponse__HookTrustStatus, |
| | 20884 | handlerType: Schema.Literal("mcpTool"), |
| | 20885 | server: Schema.String, |
| | 20886 | tool: Schema.String, |
| | 20887 | }), |
| | 20888 | Schema.Struct({ |
| | 20889 | additionalContextLimit: Schema.optionalKey( |
| | 20890 | Schema.Union([ |
| | 20891 | Schema.Number.annotate({ |
| | 20892 | description: |
| | 20893 | "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.", |
| | 20894 | format: "uint", |
| | 20895 | }) |
| | 20896 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20897 | .check( |
| | 20898 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20899 | expected: "a value greater than or equal to 0", |
| | 20900 | }), |
| | 20901 | ), |
| | 20902 | Schema.Null, |
| | 20903 | ]), |
| | 20904 | ), |
| | 20905 | currentHash: Schema.String, |
| | 20906 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 20907 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20908 | ), |
| | 20909 | enabled: Schema.Boolean, |
| | 20910 | eventName: V2HooksListResponse__HookEventName, |
| | 20911 | isManaged: Schema.Boolean, |
| | 20912 | key: Schema.String, |
| | 20913 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20914 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20915 | source: V2HooksListResponse__HookSource, |
| | 20916 | sourcePath: V2HooksListResponse__AbsolutePathBuf, |
| | 20917 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20918 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) |
| | 20919 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20920 | .check( |
| | 20921 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20922 | expected: "a value greater than or equal to 0", |
| | 20923 | }), |
| | 20924 | ), |
| | 20925 | trustStatus: V2HooksListResponse__HookTrustStatus, |
| | 20926 | handlerType: Schema.Literal("prompt"), |
| | 20927 | }).annotate({ title: "PromptHookMetadata" }), |
| | 20928 | Schema.Struct({ |
| | 20929 | additionalContextLimit: Schema.optionalKey( |
| | 20930 | Schema.Union([ |
| | 20931 | Schema.Number.annotate({ |
| | 20932 | description: |
| | 20933 | "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.", |
| | 20934 | format: "uint", |
| | 20935 | }) |
| | 20936 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20937 | .check( |
| | 20938 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20939 | expected: "a value greater than or equal to 0", |
| | 20940 | }), |
| | 20941 | ), |
| | 20942 | Schema.Null, |
| | 20943 | ]), |
| | 20944 | ), |
| | 20945 | currentHash: Schema.String, |
| | 20946 | displayOrder: Schema.Number.annotate({ format: "int64" }).check( |
| | 20947 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 20948 | ), |
| | 20949 | enabled: Schema.Boolean, |
| | 20950 | eventName: V2HooksListResponse__HookEventName, |
| | 20951 | isManaged: Schema.Boolean, |
| | 20952 | key: Schema.String, |
| | 20953 | matcher: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20954 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20955 | source: V2HooksListResponse__HookSource, |
| | 20956 | sourcePath: V2HooksListResponse__AbsolutePathBuf, |
| | 20957 | statusMessage: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 20958 | timeoutSec: Schema.Number.annotate({ format: "uint64" }) |
| | 20959 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 20960 | .check( |
| | 20961 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 20962 | expected: "a value greater than or equal to 0", |
| | 20963 | }), |
| | 20964 | ), |
| | 20965 | trustStatus: V2HooksListResponse__HookTrustStatus, |
| | 20966 | handlerType: Schema.Literal("agent"), |
| | 20967 | }).annotate({ title: "AgentHookMetadata" }), |
| | 20968 | ], |
| | 20969 | { mode: "oneOf" }, |
| | 20970 | ).annotate({ identifier: "V2HooksListResponse__HookMetadata" }); |
| 16990 | | 20971 | |
| 16991 | export type V2HookStartedNotification__HookOutputEntry = { | 20972 | export type V2HookStartedNotification__HookOutputEntry = { |
| 16992 | readonly kind: V2HookStartedNotification__HookOutputEntryKind; | 20973 | readonly kind: V2HookStartedNotification__HookOutputEntryKind; |
| ... | @@ -17016,6 +20997,68 @@ export const V2ItemCompletedNotification__TextElement = Schema.Struct({ | ... | @@ -17016,6 +20997,68 @@ export const V2ItemCompletedNotification__TextElement = Schema.Struct({ |
| 17016 | ), | 20997 | ), |
| 17017 | }).annotate({ identifier: "V2ItemCompletedNotification__TextElement" }); | 20998 | }).annotate({ identifier: "V2ItemCompletedNotification__TextElement" }); |
| 17018 | | 20999 | |
| | 21000 | export type V2ItemCompletedNotification__FunctionCallOutputContentItem = |
| | 21001 | | { readonly text: string; readonly type: "input_text" } |
| | 21002 | | { |
| | 21003 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; |
| | 21004 | readonly type: "input_image"; |
| | 21005 | readonly image_url: string; |
| | 21006 | } |
| | 21007 | | { |
| | 21008 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; |
| | 21009 | readonly type: "input_image"; |
| | 21010 | readonly file_id: string; |
| | 21011 | } |
| | 21012 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 21013 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 21014 | export const V2ItemCompletedNotification__FunctionCallOutputContentItem = Schema.Union( |
| | 21015 | [ |
| | 21016 | Schema.Struct({ |
| | 21017 | text: Schema.String, |
| | 21018 | type: Schema.Literal("input_text").annotate({ |
| | 21019 | title: "InputTextFunctionCallOutputContentItemType", |
| | 21020 | }), |
| | 21021 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 21022 | Schema.Union([ |
| | 21023 | Schema.Struct({ |
| | 21024 | detail: Schema.optionalKey( |
| | 21025 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), |
| | 21026 | ), |
| | 21027 | type: Schema.Literal("input_image").annotate({ |
| | 21028 | title: "InputImageFunctionCallOutputContentItemType", |
| | 21029 | }), |
| | 21030 | image_url: Schema.String, |
| | 21031 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 21032 | Schema.Struct({ |
| | 21033 | detail: Schema.optionalKey( |
| | 21034 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), |
| | 21035 | ), |
| | 21036 | type: Schema.Literal("input_image").annotate({ |
| | 21037 | title: "InputImageFunctionCallOutputContentItemType", |
| | 21038 | }), |
| | 21039 | file_id: Schema.String, |
| | 21040 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 21041 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 21042 | Schema.Struct({ |
| | 21043 | audio_url: Schema.String, |
| | 21044 | type: Schema.Literal("input_audio").annotate({ |
| | 21045 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 21046 | }), |
| | 21047 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 21048 | Schema.Struct({ |
| | 21049 | encrypted_content: Schema.String, |
| | 21050 | type: Schema.Literal("encrypted_content").annotate({ |
| | 21051 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 21052 | }), |
| | 21053 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 21054 | ], |
| | 21055 | { mode: "oneOf" }, |
| | 21056 | ).annotate({ |
| | 21057 | description: |
| | 21058 | "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.", |
| | 21059 | identifier: "V2ItemCompletedNotification__FunctionCallOutputContentItem", |
| | 21060 | }); |
| | 21061 | |
| 17019 | export type V2ItemCompletedNotification__MemoryCitation = { | 21062 | export type V2ItemCompletedNotification__MemoryCitation = { |
| 17020 | readonly entries: ReadonlyArray<V2ItemCompletedNotification__MemoryCitationEntry>; | 21063 | readonly entries: ReadonlyArray<V2ItemCompletedNotification__MemoryCitationEntry>; |
| 17021 | readonly threadIds: ReadonlyArray<string>; | 21064 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -17029,7 +21072,7 @@ export type V2ItemCompletedNotification__CommandAction = | ... | @@ -17029,7 +21072,7 @@ export type V2ItemCompletedNotification__CommandAction = |
| 17029 | | { | 21072 | | { |
| 17030 | readonly command: string; | 21073 | readonly command: string; |
| 17031 | readonly name: string; | 21074 | readonly name: string; |
| 17032 | readonly path: V2ItemCompletedNotification__AbsolutePathBuf; | 21075 | readonly path: V2ItemCompletedNotification__LegacyAppPathString; |
| 17033 | readonly type: "read"; | 21076 | readonly type: "read"; |
| 17034 | } | 21077 | } |
| 17035 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 21078 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -17045,7 +21088,7 @@ export const V2ItemCompletedNotification__CommandAction = Schema.Union( | ... | @@ -17045,7 +21088,7 @@ export const V2ItemCompletedNotification__CommandAction = Schema.Union( |
| 17045 | Schema.Struct({ | 21088 | Schema.Struct({ |
| 17046 | command: Schema.String, | 21089 | command: Schema.String, |
| 17047 | name: Schema.String, | 21090 | name: Schema.String, |
| 17048 | path: V2ItemCompletedNotification__AbsolutePathBuf, | 21091 | path: V2ItemCompletedNotification__LegacyAppPathString, |
| 17049 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 21092 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 17050 | }).annotate({ title: "ReadCommandAction" }), | 21093 | }).annotate({ title: "ReadCommandAction" }), |
| 17051 | Schema.Struct({ | 21094 | Schema.Struct({ |
| ... | @@ -17078,6 +21121,19 @@ export const V2ItemCompletedNotification__FileUpdateChange = Schema.Struct({ | ... | @@ -17078,6 +21121,19 @@ export const V2ItemCompletedNotification__FileUpdateChange = Schema.Struct({ |
| 17078 | path: Schema.String, | 21121 | path: Schema.String, |
| 17079 | }).annotate({ identifier: "V2ItemCompletedNotification__FileUpdateChange" }); | 21122 | }).annotate({ identifier: "V2ItemCompletedNotification__FileUpdateChange" }); |
| 17080 | | 21123 | |
| | 21124 | export type V2ItemCompletedNotification__McpAppUi = { |
| | 21125 | readonly preferredModelDisplayMode: V2ItemCompletedNotification__McpAppDisplayMode; |
| | 21126 | readonly resourceUri: string; |
| | 21127 | }; |
| | 21128 | export const V2ItemCompletedNotification__McpAppUi = Schema.Struct({ |
| | 21129 | preferredModelDisplayMode: V2ItemCompletedNotification__McpAppDisplayMode, |
| | 21130 | resourceUri: Schema.String, |
| | 21131 | }).annotate({ |
| | 21132 | description: |
| | 21133 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 21134 | identifier: "V2ItemCompletedNotification__McpAppUi", |
| | 21135 | }); |
| | 21136 | |
| 17081 | export type V2ItemCompletedNotification__CollabAgentState = { | 21137 | export type V2ItemCompletedNotification__CollabAgentState = { |
| 17082 | readonly message?: string | null; | 21138 | readonly message?: string | null; |
| 17083 | readonly status: V2ItemCompletedNotification__CollabAgentStatus; | 21139 | readonly status: V2ItemCompletedNotification__CollabAgentStatus; |
| ... | @@ -17268,6 +21324,68 @@ export const V2ItemStartedNotification__TextElement = Schema.Struct({ | ... | @@ -17268,6 +21324,68 @@ export const V2ItemStartedNotification__TextElement = Schema.Struct({ |
| 17268 | ), | 21324 | ), |
| 17269 | }).annotate({ identifier: "V2ItemStartedNotification__TextElement" }); | 21325 | }).annotate({ identifier: "V2ItemStartedNotification__TextElement" }); |
| 17270 | | 21326 | |
| | 21327 | export type V2ItemStartedNotification__FunctionCallOutputContentItem = |
| | 21328 | | { readonly text: string; readonly type: "input_text" } |
| | 21329 | | { |
| | 21330 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; |
| | 21331 | readonly type: "input_image"; |
| | 21332 | readonly image_url: string; |
| | 21333 | } |
| | 21334 | | { |
| | 21335 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; |
| | 21336 | readonly type: "input_image"; |
| | 21337 | readonly file_id: string; |
| | 21338 | } |
| | 21339 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 21340 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 21341 | export const V2ItemStartedNotification__FunctionCallOutputContentItem = Schema.Union( |
| | 21342 | [ |
| | 21343 | Schema.Struct({ |
| | 21344 | text: Schema.String, |
| | 21345 | type: Schema.Literal("input_text").annotate({ |
| | 21346 | title: "InputTextFunctionCallOutputContentItemType", |
| | 21347 | }), |
| | 21348 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 21349 | Schema.Union([ |
| | 21350 | Schema.Struct({ |
| | 21351 | detail: Schema.optionalKey( |
| | 21352 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), |
| | 21353 | ), |
| | 21354 | type: Schema.Literal("input_image").annotate({ |
| | 21355 | title: "InputImageFunctionCallOutputContentItemType", |
| | 21356 | }), |
| | 21357 | image_url: Schema.String, |
| | 21358 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 21359 | Schema.Struct({ |
| | 21360 | detail: Schema.optionalKey( |
| | 21361 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), |
| | 21362 | ), |
| | 21363 | type: Schema.Literal("input_image").annotate({ |
| | 21364 | title: "InputImageFunctionCallOutputContentItemType", |
| | 21365 | }), |
| | 21366 | file_id: Schema.String, |
| | 21367 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 21368 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 21369 | Schema.Struct({ |
| | 21370 | audio_url: Schema.String, |
| | 21371 | type: Schema.Literal("input_audio").annotate({ |
| | 21372 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 21373 | }), |
| | 21374 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 21375 | Schema.Struct({ |
| | 21376 | encrypted_content: Schema.String, |
| | 21377 | type: Schema.Literal("encrypted_content").annotate({ |
| | 21378 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 21379 | }), |
| | 21380 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 21381 | ], |
| | 21382 | { mode: "oneOf" }, |
| | 21383 | ).annotate({ |
| | 21384 | description: |
| | 21385 | "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.", |
| | 21386 | identifier: "V2ItemStartedNotification__FunctionCallOutputContentItem", |
| | 21387 | }); |
| | 21388 | |
| 17271 | export type V2ItemStartedNotification__MemoryCitation = { | 21389 | export type V2ItemStartedNotification__MemoryCitation = { |
| 17272 | readonly entries: ReadonlyArray<V2ItemStartedNotification__MemoryCitationEntry>; | 21390 | readonly entries: ReadonlyArray<V2ItemStartedNotification__MemoryCitationEntry>; |
| 17273 | readonly threadIds: ReadonlyArray<string>; | 21391 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -17281,7 +21399,7 @@ export type V2ItemStartedNotification__CommandAction = | ... | @@ -17281,7 +21399,7 @@ export type V2ItemStartedNotification__CommandAction = |
| 17281 | | { | 21399 | | { |
| 17282 | readonly command: string; | 21400 | readonly command: string; |
| 17283 | readonly name: string; | 21401 | readonly name: string; |
| 17284 | readonly path: V2ItemStartedNotification__AbsolutePathBuf; | 21402 | readonly path: V2ItemStartedNotification__LegacyAppPathString; |
| 17285 | readonly type: "read"; | 21403 | readonly type: "read"; |
| 17286 | } | 21404 | } |
| 17287 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 21405 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -17297,7 +21415,7 @@ export const V2ItemStartedNotification__CommandAction = Schema.Union( | ... | @@ -17297,7 +21415,7 @@ export const V2ItemStartedNotification__CommandAction = Schema.Union( |
| 17297 | Schema.Struct({ | 21415 | Schema.Struct({ |
| 17298 | command: Schema.String, | 21416 | command: Schema.String, |
| 17299 | name: Schema.String, | 21417 | name: Schema.String, |
| 17300 | path: V2ItemStartedNotification__AbsolutePathBuf, | 21418 | path: V2ItemStartedNotification__LegacyAppPathString, |
| 17301 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 21419 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 17302 | }).annotate({ title: "ReadCommandAction" }), | 21420 | }).annotate({ title: "ReadCommandAction" }), |
| 17303 | Schema.Struct({ | 21421 | Schema.Struct({ |
| ... | @@ -17330,6 +21448,19 @@ export const V2ItemStartedNotification__FileUpdateChange = Schema.Struct({ | ... | @@ -17330,6 +21448,19 @@ export const V2ItemStartedNotification__FileUpdateChange = Schema.Struct({ |
| 17330 | path: Schema.String, | 21448 | path: Schema.String, |
| 17331 | }).annotate({ identifier: "V2ItemStartedNotification__FileUpdateChange" }); | 21449 | }).annotate({ identifier: "V2ItemStartedNotification__FileUpdateChange" }); |
| 17332 | | 21450 | |
| | 21451 | export type V2ItemStartedNotification__McpAppUi = { |
| | 21452 | readonly preferredModelDisplayMode: V2ItemStartedNotification__McpAppDisplayMode; |
| | 21453 | readonly resourceUri: string; |
| | 21454 | }; |
| | 21455 | export const V2ItemStartedNotification__McpAppUi = Schema.Struct({ |
| | 21456 | preferredModelDisplayMode: V2ItemStartedNotification__McpAppDisplayMode, |
| | 21457 | resourceUri: Schema.String, |
| | 21458 | }).annotate({ |
| | 21459 | description: |
| | 21460 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 21461 | identifier: "V2ItemStartedNotification__McpAppUi", |
| | 21462 | }); |
| | 21463 | |
| 17333 | export type V2ItemStartedNotification__CollabAgentState = { | 21464 | export type V2ItemStartedNotification__CollabAgentState = { |
| 17334 | readonly message?: string | null; | 21465 | readonly message?: string | null; |
| 17335 | readonly status: V2ItemStartedNotification__CollabAgentStatus; | 21466 | readonly status: V2ItemStartedNotification__CollabAgentStatus; |
| ... | @@ -17342,22 +21473,60 @@ export const V2ItemStartedNotification__CollabAgentState = Schema.Struct({ | ... | @@ -17342,22 +21473,60 @@ export const V2ItemStartedNotification__CollabAgentState = Schema.Struct({ |
| 17342 | export type V2ListMcpServerStatusResponse__McpServerStatus = { | 21473 | export type V2ListMcpServerStatusResponse__McpServerStatus = { |
| 17343 | readonly authStatus: V2ListMcpServerStatusResponse__McpAuthStatus; | 21474 | readonly authStatus: V2ListMcpServerStatusResponse__McpAuthStatus; |
| 17344 | readonly name: string; | 21475 | readonly name: string; |
| | 21476 | readonly pluginId?: string | null; |
| 17345 | readonly resourceTemplates: ReadonlyArray<V2ListMcpServerStatusResponse__ResourceTemplate>; | 21477 | readonly resourceTemplates: ReadonlyArray<V2ListMcpServerStatusResponse__ResourceTemplate>; |
| 17346 | readonly resources: ReadonlyArray<V2ListMcpServerStatusResponse__Resource>; | 21478 | readonly resources: ReadonlyArray<V2ListMcpServerStatusResponse__Resource>; |
| | 21479 | readonly runtimeStatus?: V2ListMcpServerStatusResponse__McpServerConnectionStatus | null; |
| | 21480 | readonly serverCapabilities?: Schema.Json; |
| 17347 | readonly serverInfo?: V2ListMcpServerStatusResponse__McpServerInfo | null; | 21481 | readonly serverInfo?: V2ListMcpServerStatusResponse__McpServerInfo | null; |
| 17348 | readonly tools: { readonly [x: string]: V2ListMcpServerStatusResponse__Tool }; | 21482 | readonly tools: { readonly [x: string]: V2ListMcpServerStatusResponse__Tool }; |
| | 21483 | readonly toolsError?: string | null; |
| 17349 | }; | 21484 | }; |
| 17350 | export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({ | 21485 | export const V2ListMcpServerStatusResponse__McpServerStatus = Schema.Struct({ |
| 17351 | authStatus: V2ListMcpServerStatusResponse__McpAuthStatus, | 21486 | authStatus: V2ListMcpServerStatusResponse__McpAuthStatus, |
| 17352 | name: Schema.String, | 21487 | name: Schema.String, |
| | 21488 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17353 | resourceTemplates: Schema.Array(V2ListMcpServerStatusResponse__ResourceTemplate), | 21489 | resourceTemplates: Schema.Array(V2ListMcpServerStatusResponse__ResourceTemplate), |
| 17354 | resources: Schema.Array(V2ListMcpServerStatusResponse__Resource), | 21490 | resources: Schema.Array(V2ListMcpServerStatusResponse__Resource), |
| | 21491 | runtimeStatus: Schema.optionalKey( |
| | 21492 | Schema.Union([V2ListMcpServerStatusResponse__McpServerConnectionStatus, Schema.Null]).annotate({ |
| | 21493 | description: |
| | 21494 | "Current thread-runtime connection state; null when unavailable or the configuration changed.", |
| | 21495 | }), |
| | 21496 | ), |
| | 21497 | serverCapabilities: Schema.optionalKey( |
| | 21498 | Schema.Json.annotate({ |
| | 21499 | expected: "JSON value", |
| | 21500 | description: "Capabilities advertised by the initialized MCP server; null when unavailable.", |
| | 21501 | }), |
| | 21502 | ), |
| 17355 | serverInfo: Schema.optionalKey( | 21503 | serverInfo: Schema.optionalKey( |
| 17356 | Schema.Union([V2ListMcpServerStatusResponse__McpServerInfo, Schema.Null]), | 21504 | Schema.Union([V2ListMcpServerStatusResponse__McpServerInfo, Schema.Null]), |
| 17357 | ), | 21505 | ), |
| 17358 | tools: Schema.Record(Schema.String, V2ListMcpServerStatusResponse__Tool), | 21506 | tools: Schema.Record(Schema.String, V2ListMcpServerStatusResponse__Tool), |
| | 21507 | toolsError: Schema.optionalKey( |
| | 21508 | Schema.Union([ |
| | 21509 | Schema.String.annotate({ |
| | 21510 | description: |
| | 21511 | "Tool discovery failed and no catalog was returned. Null when a catalog is returned, including cached or empty catalogs.", |
| | 21512 | }), |
| | 21513 | Schema.Null, |
| | 21514 | ]), |
| | 21515 | ), |
| 17359 | }).annotate({ identifier: "V2ListMcpServerStatusResponse__McpServerStatus" }); | 21516 | }).annotate({ identifier: "V2ListMcpServerStatusResponse__McpServerStatus" }); |
| 17360 | | 21517 | |
| | 21518 | export type V2ModelListResponse__ModelAccessPrograms = { |
| | 21519 | readonly cyber: ReadonlyArray<V2ModelListResponse__CyberAccessProgram>; |
| | 21520 | }; |
| | 21521 | export const V2ModelListResponse__ModelAccessPrograms = Schema.Struct({ |
| | 21522 | cyber: Schema.Array(V2ModelListResponse__CyberAccessProgram).annotate({ |
| | 21523 | description: "Accepted explicit selections.", |
| | 21524 | }), |
| | 21525 | }).annotate({ |
| | 21526 | description: "Caller-specific explicit access programs advertised by model discovery.", |
| | 21527 | identifier: "V2ModelListResponse__ModelAccessPrograms", |
| | 21528 | }); |
| | 21529 | |
| 17361 | export type V2ModelListResponse__ReasoningEffortOption = { | 21530 | export type V2ModelListResponse__ReasoningEffortOption = { |
| 17362 | readonly description: string; | 21531 | readonly description: string; |
| 17363 | readonly reasoningEffort: V2ModelListResponse__ReasoningEffort; | 21532 | readonly reasoningEffort: V2ModelListResponse__ReasoningEffort; |
| ... | @@ -17732,7 +21901,9 @@ export type V2PluginReadResponse__SkillInterface = { | ... | @@ -17732,7 +21901,9 @@ export type V2PluginReadResponse__SkillInterface = { |
| 17732 | readonly defaultPrompt?: string | null; | 21901 | readonly defaultPrompt?: string | null; |
| 17733 | readonly displayName?: string | null; | 21902 | readonly displayName?: string | null; |
| 17734 | readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null; | 21903 | readonly iconLarge?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 21904 | readonly iconLargeUrl?: string | null; |
| 17735 | readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null; | 21905 | readonly iconSmall?: V2PluginReadResponse__AbsolutePathBuf | null; |
| | 21906 | readonly iconSmallUrl?: string | null; |
| 17736 | readonly shortDescription?: string | null; | 21907 | readonly shortDescription?: string | null; |
| 17737 | }; | 21908 | }; |
| 17738 | export const V2PluginReadResponse__SkillInterface = Schema.Struct({ | 21909 | export const V2PluginReadResponse__SkillInterface = Schema.Struct({ |
| ... | @@ -17740,7 +21911,19 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({ | ... | @@ -17740,7 +21911,19 @@ export const V2PluginReadResponse__SkillInterface = Schema.Struct({ |
| 17740 | defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 21911 | defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17741 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 21912 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17742 | iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), | 21913 | iconLarge: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| | 21914 | iconLargeUrl: Schema.optionalKey( |
| | 21915 | Schema.Union([ |
| | 21916 | Schema.String.annotate({ description: "Remote large icon URL from the plugin catalog." }), |
| | 21917 | Schema.Null, |
| | 21918 | ]), |
| | 21919 | ), |
| 17743 | iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), | 21920 | iconSmall: Schema.optionalKey(Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null])), |
| | 21921 | iconSmallUrl: Schema.optionalKey( |
| | 21922 | Schema.Union([ |
| | 21923 | Schema.String.annotate({ description: "Remote small icon URL from the plugin catalog." }), |
| | 21924 | Schema.Null, |
| | 21925 | ]), |
| | 21926 | ), |
| 17744 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 21927 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 17745 | }).annotate({ identifier: "V2PluginReadResponse__SkillInterface" }); | 21928 | }).annotate({ identifier: "V2PluginReadResponse__SkillInterface" }); |
| 17746 | | 21929 | |
| ... | @@ -18136,8 +22319,13 @@ export type V2RawResponseItemCompletedNotification__ContentItem = | ... | @@ -18136,8 +22319,13 @@ export type V2RawResponseItemCompletedNotification__ContentItem = |
| 18136 | | { readonly text: string; readonly type: "input_text" } | 22319 | | { readonly text: string; readonly type: "input_text" } |
| 18137 | | { | 22320 | | { |
| 18138 | readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null; | 22321 | readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null; |
| | 22322 | readonly type: "input_image"; |
| 18139 | readonly image_url: string; | 22323 | readonly image_url: string; |
| | 22324 | } |
| | 22325 | | { |
| | 22326 | readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null; |
| 18140 | readonly type: "input_image"; | 22327 | readonly type: "input_image"; |
| | 22328 | readonly file_id: string; |
| 18141 | } | 22329 | } |
| 18142 | | { readonly audio_url: string; readonly type: "input_audio" } | 22330 | | { readonly audio_url: string; readonly type: "input_audio" } |
| 18143 | | { readonly text: string; readonly type: "output_text" }; | 22331 | | { readonly text: string; readonly type: "output_text" }; |
| ... | @@ -18147,13 +22335,22 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union( | ... | @@ -18147,13 +22335,22 @@ export const V2RawResponseItemCompletedNotification__ContentItem = Schema.Union( |
| 18147 | text: Schema.String, | 22335 | text: Schema.String, |
| 18148 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), | 22336 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), |
| 18149 | }).annotate({ title: "InputTextContentItem" }), | 22337 | }).annotate({ title: "InputTextContentItem" }), |
| 18150 | Schema.Struct({ | 22338 | Schema.Union([ |
| 18151 | detail: Schema.optionalKey( | 22339 | Schema.Struct({ |
| 18152 | Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]), | 22340 | detail: Schema.optionalKey( |
| 18153 | ), | 22341 | Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]), |
| 18154 | image_url: Schema.String, | 22342 | ), |
| 18155 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), | 22343 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), |
| 18156 | }).annotate({ title: "InputImageContentItem" }), | 22344 | image_url: Schema.String, |
| | 22345 | }).annotate({ title: "ImageUrlContentItem" }), |
| | 22346 | Schema.Struct({ |
| | 22347 | detail: Schema.optionalKey( |
| | 22348 | Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]), |
| | 22349 | ), |
| | 22350 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), |
| | 22351 | file_id: Schema.String, |
| | 22352 | }).annotate({ title: "FileIdContentItem" }), |
| | 22353 | ]).annotate({ title: "InputImageContentItem" }), |
| 18157 | Schema.Struct({ | 22354 | Schema.Struct({ |
| 18158 | audio_url: Schema.String, | 22355 | audio_url: Schema.String, |
| 18159 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), | 22356 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), |
| ... | @@ -18170,8 +22367,13 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte | ... | @@ -18170,8 +22367,13 @@ export type V2RawResponseItemCompletedNotification__FunctionCallOutputContentIte |
| 18170 | | { readonly text: string; readonly type: "input_text" } | 22367 | | { readonly text: string; readonly type: "input_text" } |
| 18171 | | { | 22368 | | { |
| 18172 | readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null; | 22369 | readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null; |
| | 22370 | readonly type: "input_image"; |
| 18173 | readonly image_url: string; | 22371 | readonly image_url: string; |
| | 22372 | } |
| | 22373 | | { |
| | 22374 | readonly detail?: V2RawResponseItemCompletedNotification__ImageDetail | null; |
| 18174 | readonly type: "input_image"; | 22375 | readonly type: "input_image"; |
| | 22376 | readonly file_id: string; |
| 18175 | } | 22377 | } |
| 18176 | | { readonly audio_url: string; readonly type: "input_audio" } | 22378 | | { readonly audio_url: string; readonly type: "input_audio" } |
| 18177 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; | 22379 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| ... | @@ -18183,15 +22385,26 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt | ... | @@ -18183,15 +22385,26 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt |
| 18183 | title: "InputTextFunctionCallOutputContentItemType", | 22385 | title: "InputTextFunctionCallOutputContentItemType", |
| 18184 | }), | 22386 | }), |
| 18185 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), | 22387 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| 18186 | Schema.Struct({ | 22388 | Schema.Union([ |
| 18187 | detail: Schema.optionalKey( | 22389 | Schema.Struct({ |
| 18188 | Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]), | 22390 | detail: Schema.optionalKey( |
| 18189 | ), | 22391 | Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]), |
| 18190 | image_url: Schema.String, | 22392 | ), |
| 18191 | type: Schema.Literal("input_image").annotate({ | 22393 | type: Schema.Literal("input_image").annotate({ |
| 18192 | title: "InputImageFunctionCallOutputContentItemType", | 22394 | title: "InputImageFunctionCallOutputContentItemType", |
| 18193 | }), | 22395 | }), |
| 18194 | }).annotate({ title: "InputImageFunctionCallOutputContentItem" }), | 22396 | image_url: Schema.String, |
| | 22397 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 22398 | Schema.Struct({ |
| | 22399 | detail: Schema.optionalKey( |
| | 22400 | Schema.Union([V2RawResponseItemCompletedNotification__ImageDetail, Schema.Null]), |
| | 22401 | ), |
| | 22402 | type: Schema.Literal("input_image").annotate({ |
| | 22403 | title: "InputImageFunctionCallOutputContentItemType", |
| | 22404 | }), |
| | 22405 | file_id: Schema.String, |
| | 22406 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 22407 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| 18195 | Schema.Struct({ | 22408 | Schema.Struct({ |
| 18196 | audio_url: Schema.String, | 22409 | audio_url: Schema.String, |
| 18197 | type: Schema.Literal("input_audio").annotate({ | 22410 | type: Schema.Literal("input_audio").annotate({ |
| ... | @@ -18212,12 +22425,24 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt | ... | @@ -18212,12 +22425,24 @@ export const V2RawResponseItemCompletedNotification__FunctionCallOutputContentIt |
| 18212 | identifier: "V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem", | 22425 | identifier: "V2RawResponseItemCompletedNotification__FunctionCallOutputContentItem", |
| 18213 | }); | 22426 | }); |
| 18214 | | 22427 | |
| | 22428 | export type V2RawResponseItemCompletedNotification__ConfigurationReasoning = { |
| | 22429 | readonly effort: V2RawResponseItemCompletedNotification__ReasoningEffort; |
| | 22430 | }; |
| | 22431 | export const V2RawResponseItemCompletedNotification__ConfigurationReasoning = Schema.Struct({ |
| | 22432 | effort: V2RawResponseItemCompletedNotification__ReasoningEffort, |
| | 22433 | }).annotate({ |
| | 22434 | description: "Reasoning settings interpreted by the backend for the routed model.", |
| | 22435 | identifier: "V2RawResponseItemCompletedNotification__ConfigurationReasoning", |
| | 22436 | }); |
| | 22437 | |
| 18215 | export type V2ReviewStartResponse__CodexErrorInfo = | 22438 | export type V2ReviewStartResponse__CodexErrorInfo = |
| 18216 | | "contextWindowExceeded" | 22439 | | "contextWindowExceeded" |
| 18217 | | "sessionBudgetExceeded" | 22440 | | "sessionBudgetExceeded" |
| 18218 | | "usageLimitExceeded" | 22441 | | "usageLimitExceeded" |
| | 22442 | | "rateLimitExceeded" |
| 18219 | | "serverOverloaded" | 22443 | | "serverOverloaded" |
| 18220 | | "cyberPolicy" | 22444 | | "cyberPolicy" |
| | 22445 | | "misalignmentPolicyViolation" |
| 18221 | | "internalServerError" | 22446 | | "internalServerError" |
| 18222 | | "unauthorized" | 22447 | | "unauthorized" |
| 18223 | | "badRequest" | 22448 | | "badRequest" |
| ... | @@ -18239,8 +22464,10 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18239,8 +22464,10 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 18239 | "contextWindowExceeded", | 22464 | "contextWindowExceeded", |
| 18240 | "sessionBudgetExceeded", | 22465 | "sessionBudgetExceeded", |
| 18241 | "usageLimitExceeded", | 22466 | "usageLimitExceeded", |
| | 22467 | "rateLimitExceeded", |
| 18242 | "serverOverloaded", | 22468 | "serverOverloaded", |
| 18243 | "cyberPolicy", | 22469 | "cyberPolicy", |
| | 22470 | "misalignmentPolicyViolation", |
| 18244 | "internalServerError", | 22471 | "internalServerError", |
| 18245 | "unauthorized", | 22472 | "unauthorized", |
| 18246 | "badRequest", | 22473 | "badRequest", |
| ... | @@ -18339,6 +22566,38 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18339,6 +22566,38 @@ export const V2ReviewStartResponse__CodexErrorInfo = Schema.Union( |
| 18339 | identifier: "V2ReviewStartResponse__CodexErrorInfo", | 22566 | identifier: "V2ReviewStartResponse__CodexErrorInfo", |
| 18340 | }); | 22567 | }); |
| 18341 | | 22568 | |
| | 22569 | export type V2ReviewStartResponse__MisalignmentErrorDetails = { |
| | 22570 | readonly detailedExplanation?: string | null; |
| | 22571 | readonly errorType?: string | null; |
| | 22572 | readonly steer?: V2ReviewStartResponse__MisalignmentSteer | null; |
| | 22573 | }; |
| | 22574 | export const V2ReviewStartResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 22575 | detailedExplanation: Schema.optionalKey( |
| | 22576 | Schema.Union([ |
| | 22577 | Schema.String.annotate({ |
| | 22578 | description: |
| | 22579 | "A substantive localized explanation is required before offering continuation.", |
| | 22580 | }), |
| | 22581 | Schema.Null, |
| | 22582 | ]), |
| | 22583 | ), |
| | 22584 | errorType: Schema.optionalKey( |
| | 22585 | Schema.Union([ |
| | 22586 | Schema.String.annotate({ |
| | 22587 | description: |
| | 22588 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 22589 | }), |
| | 22590 | Schema.Null, |
| | 22591 | ]), |
| | 22592 | ), |
| | 22593 | steer: Schema.optionalKey( |
| | 22594 | Schema.Union([V2ReviewStartResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 22595 | description: |
| | 22596 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 22597 | }), |
| | 22598 | ), |
| | 22599 | }).annotate({ identifier: "V2ReviewStartResponse__MisalignmentErrorDetails" }); |
| | 22600 | |
| 18342 | export type V2ReviewStartResponse__TextElement = { | 22601 | export type V2ReviewStartResponse__TextElement = { |
| 18343 | readonly byteRange: V2ReviewStartResponse__ByteRange; | 22602 | readonly byteRange: V2ReviewStartResponse__ByteRange; |
| 18344 | readonly placeholder?: string | null; | 22603 | readonly placeholder?: string | null; |
| ... | @@ -18357,6 +22616,64 @@ export const V2ReviewStartResponse__TextElement = Schema.Struct({ | ... | @@ -18357,6 +22616,64 @@ export const V2ReviewStartResponse__TextElement = Schema.Struct({ |
| 18357 | ), | 22616 | ), |
| 18358 | }).annotate({ identifier: "V2ReviewStartResponse__TextElement" }); | 22617 | }).annotate({ identifier: "V2ReviewStartResponse__TextElement" }); |
| 18359 | | 22618 | |
| | 22619 | export type V2ReviewStartResponse__FunctionCallOutputContentItem = |
| | 22620 | | { readonly text: string; readonly type: "input_text" } |
| | 22621 | | { |
| | 22622 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; |
| | 22623 | readonly type: "input_image"; |
| | 22624 | readonly image_url: string; |
| | 22625 | } |
| | 22626 | | { |
| | 22627 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; |
| | 22628 | readonly type: "input_image"; |
| | 22629 | readonly file_id: string; |
| | 22630 | } |
| | 22631 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 22632 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 22633 | export const V2ReviewStartResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 22634 | [ |
| | 22635 | Schema.Struct({ |
| | 22636 | text: Schema.String, |
| | 22637 | type: Schema.Literal("input_text").annotate({ |
| | 22638 | title: "InputTextFunctionCallOutputContentItemType", |
| | 22639 | }), |
| | 22640 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 22641 | Schema.Union([ |
| | 22642 | Schema.Struct({ |
| | 22643 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), |
| | 22644 | type: Schema.Literal("input_image").annotate({ |
| | 22645 | title: "InputImageFunctionCallOutputContentItemType", |
| | 22646 | }), |
| | 22647 | image_url: Schema.String, |
| | 22648 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 22649 | Schema.Struct({ |
| | 22650 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), |
| | 22651 | type: Schema.Literal("input_image").annotate({ |
| | 22652 | title: "InputImageFunctionCallOutputContentItemType", |
| | 22653 | }), |
| | 22654 | file_id: Schema.String, |
| | 22655 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 22656 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 22657 | Schema.Struct({ |
| | 22658 | audio_url: Schema.String, |
| | 22659 | type: Schema.Literal("input_audio").annotate({ |
| | 22660 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 22661 | }), |
| | 22662 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 22663 | Schema.Struct({ |
| | 22664 | encrypted_content: Schema.String, |
| | 22665 | type: Schema.Literal("encrypted_content").annotate({ |
| | 22666 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 22667 | }), |
| | 22668 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 22669 | ], |
| | 22670 | { mode: "oneOf" }, |
| | 22671 | ).annotate({ |
| | 22672 | description: |
| | 22673 | "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.", |
| | 22674 | identifier: "V2ReviewStartResponse__FunctionCallOutputContentItem", |
| | 22675 | }); |
| | 22676 | |
| 18360 | export type V2ReviewStartResponse__MemoryCitation = { | 22677 | export type V2ReviewStartResponse__MemoryCitation = { |
| 18361 | readonly entries: ReadonlyArray<V2ReviewStartResponse__MemoryCitationEntry>; | 22678 | readonly entries: ReadonlyArray<V2ReviewStartResponse__MemoryCitationEntry>; |
| 18362 | readonly threadIds: ReadonlyArray<string>; | 22679 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -18370,7 +22687,7 @@ export type V2ReviewStartResponse__CommandAction = | ... | @@ -18370,7 +22687,7 @@ export type V2ReviewStartResponse__CommandAction = |
| 18370 | | { | 22687 | | { |
| 18371 | readonly command: string; | 22688 | readonly command: string; |
| 18372 | readonly name: string; | 22689 | readonly name: string; |
| 18373 | readonly path: V2ReviewStartResponse__AbsolutePathBuf; | 22690 | readonly path: V2ReviewStartResponse__LegacyAppPathString; |
| 18374 | readonly type: "read"; | 22691 | readonly type: "read"; |
| 18375 | } | 22692 | } |
| 18376 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 22693 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -18386,7 +22703,7 @@ export const V2ReviewStartResponse__CommandAction = Schema.Union( | ... | @@ -18386,7 +22703,7 @@ export const V2ReviewStartResponse__CommandAction = Schema.Union( |
| 18386 | Schema.Struct({ | 22703 | Schema.Struct({ |
| 18387 | command: Schema.String, | 22704 | command: Schema.String, |
| 18388 | name: Schema.String, | 22705 | name: Schema.String, |
| 18389 | path: V2ReviewStartResponse__AbsolutePathBuf, | 22706 | path: V2ReviewStartResponse__LegacyAppPathString, |
| 18390 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 22707 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 18391 | }).annotate({ title: "ReadCommandAction" }), | 22708 | }).annotate({ title: "ReadCommandAction" }), |
| 18392 | Schema.Struct({ | 22709 | Schema.Struct({ |
| ... | @@ -18419,6 +22736,19 @@ export const V2ReviewStartResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -18419,6 +22736,19 @@ export const V2ReviewStartResponse__FileUpdateChange = Schema.Struct({ |
| 18419 | path: Schema.String, | 22736 | path: Schema.String, |
| 18420 | }).annotate({ identifier: "V2ReviewStartResponse__FileUpdateChange" }); | 22737 | }).annotate({ identifier: "V2ReviewStartResponse__FileUpdateChange" }); |
| 18421 | | 22738 | |
| | 22739 | export type V2ReviewStartResponse__McpAppUi = { |
| | 22740 | readonly preferredModelDisplayMode: V2ReviewStartResponse__McpAppDisplayMode; |
| | 22741 | readonly resourceUri: string; |
| | 22742 | }; |
| | 22743 | export const V2ReviewStartResponse__McpAppUi = Schema.Struct({ |
| | 22744 | preferredModelDisplayMode: V2ReviewStartResponse__McpAppDisplayMode, |
| | 22745 | resourceUri: Schema.String, |
| | 22746 | }).annotate({ |
| | 22747 | description: |
| | 22748 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 22749 | identifier: "V2ReviewStartResponse__McpAppUi", |
| | 22750 | }); |
| | 22751 | |
| 18422 | export type V2ReviewStartResponse__CollabAgentState = { | 22752 | export type V2ReviewStartResponse__CollabAgentState = { |
| 18423 | readonly message?: string | null; | 22753 | readonly message?: string | null; |
| 18424 | readonly status: V2ReviewStartResponse__CollabAgentStatus; | 22754 | readonly status: V2ReviewStartResponse__CollabAgentStatus; |
| ... | @@ -18440,7 +22770,9 @@ export type V2SkillsListResponse__SkillInterface = { | ... | @@ -18440,7 +22770,9 @@ export type V2SkillsListResponse__SkillInterface = { |
| 18440 | readonly defaultPrompt?: string | null; | 22770 | readonly defaultPrompt?: string | null; |
| 18441 | readonly displayName?: string | null; | 22771 | readonly displayName?: string | null; |
| 18442 | readonly iconLarge?: V2SkillsListResponse__AbsolutePathBuf | null; | 22772 | readonly iconLarge?: V2SkillsListResponse__AbsolutePathBuf | null; |
| | 22773 | readonly iconLargeUrl?: string | null; |
| 18443 | readonly iconSmall?: V2SkillsListResponse__AbsolutePathBuf | null; | 22774 | readonly iconSmall?: V2SkillsListResponse__AbsolutePathBuf | null; |
| | 22775 | readonly iconSmallUrl?: string | null; |
| 18444 | readonly shortDescription?: string | null; | 22776 | readonly shortDescription?: string | null; |
| 18445 | }; | 22777 | }; |
| 18446 | export const V2SkillsListResponse__SkillInterface = Schema.Struct({ | 22778 | export const V2SkillsListResponse__SkillInterface = Schema.Struct({ |
| ... | @@ -18448,7 +22780,19 @@ export const V2SkillsListResponse__SkillInterface = Schema.Struct({ | ... | @@ -18448,7 +22780,19 @@ export const V2SkillsListResponse__SkillInterface = Schema.Struct({ |
| 18448 | defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22780 | defaultPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18449 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22781 | displayName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18450 | iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), | 22782 | iconLarge: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), |
| | 22783 | iconLargeUrl: Schema.optionalKey( |
| | 22784 | Schema.Union([ |
| | 22785 | Schema.String.annotate({ description: "Remote large icon URL from the plugin catalog." }), |
| | 22786 | Schema.Null, |
| | 22787 | ]), |
| | 22788 | ), |
| 18451 | iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), | 22789 | iconSmall: Schema.optionalKey(Schema.Union([V2SkillsListResponse__AbsolutePathBuf, Schema.Null])), |
| | 22790 | iconSmallUrl: Schema.optionalKey( |
| | 22791 | Schema.Union([ |
| | 22792 | Schema.String.annotate({ description: "Remote small icon URL from the plugin catalog." }), |
| | 22793 | Schema.Null, |
| | 22794 | ]), |
| | 22795 | ), |
| 18452 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 22796 | shortDescription: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 18453 | }).annotate({ identifier: "V2SkillsListResponse__SkillInterface" }); | 22797 | }).annotate({ identifier: "V2SkillsListResponse__SkillInterface" }); |
| 18454 | | 22798 | |
| ... | @@ -18456,7 +22800,7 @@ export type V2ThreadForkResponse__CommandAction = | ... | @@ -18456,7 +22800,7 @@ export type V2ThreadForkResponse__CommandAction = |
| 18456 | | { | 22800 | | { |
| 18457 | readonly command: string; | 22801 | readonly command: string; |
| 18458 | readonly name: string; | 22802 | readonly name: string; |
| 18459 | readonly path: V2ThreadForkResponse__AbsolutePathBuf; | 22803 | readonly path: V2ThreadForkResponse__LegacyAppPathString; |
| 18460 | readonly type: "read"; | 22804 | readonly type: "read"; |
| 18461 | } | 22805 | } |
| 18462 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 22806 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -18472,7 +22816,7 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union( | ... | @@ -18472,7 +22816,7 @@ export const V2ThreadForkResponse__CommandAction = Schema.Union( |
| 18472 | Schema.Struct({ | 22816 | Schema.Struct({ |
| 18473 | command: Schema.String, | 22817 | command: Schema.String, |
| 18474 | name: Schema.String, | 22818 | name: Schema.String, |
| 18475 | path: V2ThreadForkResponse__AbsolutePathBuf, | 22819 | path: V2ThreadForkResponse__LegacyAppPathString, |
| 18476 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 22820 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 18477 | }).annotate({ title: "ReadCommandAction" }), | 22821 | }).annotate({ title: "ReadCommandAction" }), |
| 18478 | Schema.Struct({ | 22822 | Schema.Struct({ |
| ... | @@ -18543,6 +22887,26 @@ export const V2ThreadForkResponse__SandboxPolicy = Schema.Union( | ... | @@ -18543,6 +22887,26 @@ export const V2ThreadForkResponse__SandboxPolicy = Schema.Union( |
| 18543 | { mode: "oneOf" }, | 22887 | { mode: "oneOf" }, |
| 18544 | ).annotate({ identifier: "V2ThreadForkResponse__SandboxPolicy" }); | 22888 | ).annotate({ identifier: "V2ThreadForkResponse__SandboxPolicy" }); |
| 18545 | | 22889 | |
| | 22890 | export type V2ThreadForkResponse__ThreadSection = { |
| | 22891 | readonly appearance?: V2ThreadForkResponse__ThreadSectionAppearance | null; |
| | 22892 | readonly id: string; |
| | 22893 | readonly name: string; |
| | 22894 | }; |
| | 22895 | export const V2ThreadForkResponse__ThreadSection = Schema.Struct({ |
| | 22896 | appearance: Schema.optionalKey( |
| | 22897 | Schema.Union([V2ThreadForkResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 22898 | description: "Optional appearance synchronized across clients.", |
| | 22899 | }), |
| | 22900 | ), |
| | 22901 | id: Schema.String.annotate({ |
| | 22902 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 22903 | }), |
| | 22904 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 22905 | }).annotate({ |
| | 22906 | description: "An independently persisted, user-visible thread section.", |
| | 22907 | identifier: "V2ThreadForkResponse__ThreadSection", |
| | 22908 | }); |
| | 22909 | |
| 18546 | export type V2ThreadForkResponse__SubAgentSource = | 22910 | export type V2ThreadForkResponse__SubAgentSource = |
| 18547 | | "review" | 22911 | | "review" |
| 18548 | | "compact" | 22912 | | "compact" |
| ... | @@ -18609,15 +22973,15 @@ export type V2ThreadForkResponse__CodexErrorInfo = | ... | @@ -18609,15 +22973,15 @@ export type V2ThreadForkResponse__CodexErrorInfo = |
| 18609 | | "contextWindowExceeded" | 22973 | | "contextWindowExceeded" |
| 18610 | | "sessionBudgetExceeded" | 22974 | | "sessionBudgetExceeded" |
| 18611 | | "usageLimitExceeded" | 22975 | | "usageLimitExceeded" |
| | 22976 | | "rateLimitExceeded" |
| 18612 | | "serverOverloaded" | 22977 | | "serverOverloaded" |
| 18613 | | "cyberPolicy" | 22978 | | "cyberPolicy" |
| | 22979 | | "misalignmentPolicyViolation" |
| 18614 | | "internalServerError" | 22980 | | "internalServerError" |
| 18615 | | "unauthorized" | 22981 | | "unauthorized" |
| 18616 | | "badRequest" | 22982 | | "badRequest" |
| 18617 | | "threadRollbackFailed" | 22983 | | "threadRollbackFailed" |
| 18618 | | "sandboxError" | 22984 | | "sandboxError" |
| 18619 | | "rateLimitExceeded" | | |
| 18620 | | "misalignmentPolicyViolation" | | |
| 18621 | | "other" | 22985 | | "other" |
| 18622 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 22986 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 18623 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 22987 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| ... | @@ -18634,15 +22998,15 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18634,15 +22998,15 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 18634 | "contextWindowExceeded", | 22998 | "contextWindowExceeded", |
| 18635 | "sessionBudgetExceeded", | 22999 | "sessionBudgetExceeded", |
| 18636 | "usageLimitExceeded", | 23000 | "usageLimitExceeded", |
| | 23001 | "rateLimitExceeded", |
| 18637 | "serverOverloaded", | 23002 | "serverOverloaded", |
| 18638 | "cyberPolicy", | 23003 | "cyberPolicy", |
| | 23004 | "misalignmentPolicyViolation", |
| 18639 | "internalServerError", | 23005 | "internalServerError", |
| 18640 | "unauthorized", | 23006 | "unauthorized", |
| 18641 | "badRequest", | 23007 | "badRequest", |
| 18642 | "threadRollbackFailed", | 23008 | "threadRollbackFailed", |
| 18643 | "sandboxError", | 23009 | "sandboxError", |
| 18644 | "rateLimitExceeded", | | |
| 18645 | "misalignmentPolicyViolation", | | |
| 18646 | "other", | 23010 | "other", |
| 18647 | ]), | 23011 | ]), |
| 18648 | Schema.Struct({ | 23012 | Schema.Struct({ |
| ... | @@ -18736,6 +23100,38 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( | ... | @@ -18736,6 +23100,38 @@ export const V2ThreadForkResponse__CodexErrorInfo = Schema.Union( |
| 18736 | identifier: "V2ThreadForkResponse__CodexErrorInfo", | 23100 | identifier: "V2ThreadForkResponse__CodexErrorInfo", |
| 18737 | }); | 23101 | }); |
| 18738 | | 23102 | |
| | 23103 | export type V2ThreadForkResponse__MisalignmentErrorDetails = { |
| | 23104 | readonly detailedExplanation?: string | null; |
| | 23105 | readonly errorType?: string | null; |
| | 23106 | readonly steer?: V2ThreadForkResponse__MisalignmentSteer | null; |
| | 23107 | }; |
| | 23108 | export const V2ThreadForkResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 23109 | detailedExplanation: Schema.optionalKey( |
| | 23110 | Schema.Union([ |
| | 23111 | Schema.String.annotate({ |
| | 23112 | description: |
| | 23113 | "A substantive localized explanation is required before offering continuation.", |
| | 23114 | }), |
| | 23115 | Schema.Null, |
| | 23116 | ]), |
| | 23117 | ), |
| | 23118 | errorType: Schema.optionalKey( |
| | 23119 | Schema.Union([ |
| | 23120 | Schema.String.annotate({ |
| | 23121 | description: |
| | 23122 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 23123 | }), |
| | 23124 | Schema.Null, |
| | 23125 | ]), |
| | 23126 | ), |
| | 23127 | steer: Schema.optionalKey( |
| | 23128 | Schema.Union([V2ThreadForkResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 23129 | description: |
| | 23130 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 23131 | }), |
| | 23132 | ), |
| | 23133 | }).annotate({ identifier: "V2ThreadForkResponse__MisalignmentErrorDetails" }); |
| | 23134 | |
| 18739 | export type V2ThreadForkResponse__TextElement = { | 23135 | export type V2ThreadForkResponse__TextElement = { |
| 18740 | readonly byteRange: V2ThreadForkResponse__ByteRange; | 23136 | readonly byteRange: V2ThreadForkResponse__ByteRange; |
| 18741 | readonly placeholder?: string | null; | 23137 | readonly placeholder?: string | null; |
| ... | @@ -18754,6 +23150,64 @@ export const V2ThreadForkResponse__TextElement = Schema.Struct({ | ... | @@ -18754,6 +23150,64 @@ export const V2ThreadForkResponse__TextElement = Schema.Struct({ |
| 18754 | ), | 23150 | ), |
| 18755 | }).annotate({ identifier: "V2ThreadForkResponse__TextElement" }); | 23151 | }).annotate({ identifier: "V2ThreadForkResponse__TextElement" }); |
| 18756 | | 23152 | |
| | 23153 | export type V2ThreadForkResponse__FunctionCallOutputContentItem = |
| | 23154 | | { readonly text: string; readonly type: "input_text" } |
| | 23155 | | { |
| | 23156 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; |
| | 23157 | readonly type: "input_image"; |
| | 23158 | readonly image_url: string; |
| | 23159 | } |
| | 23160 | | { |
| | 23161 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; |
| | 23162 | readonly type: "input_image"; |
| | 23163 | readonly file_id: string; |
| | 23164 | } |
| | 23165 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 23166 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 23167 | export const V2ThreadForkResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 23168 | [ |
| | 23169 | Schema.Struct({ |
| | 23170 | text: Schema.String, |
| | 23171 | type: Schema.Literal("input_text").annotate({ |
| | 23172 | title: "InputTextFunctionCallOutputContentItemType", |
| | 23173 | }), |
| | 23174 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 23175 | Schema.Union([ |
| | 23176 | Schema.Struct({ |
| | 23177 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), |
| | 23178 | type: Schema.Literal("input_image").annotate({ |
| | 23179 | title: "InputImageFunctionCallOutputContentItemType", |
| | 23180 | }), |
| | 23181 | image_url: Schema.String, |
| | 23182 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 23183 | Schema.Struct({ |
| | 23184 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), |
| | 23185 | type: Schema.Literal("input_image").annotate({ |
| | 23186 | title: "InputImageFunctionCallOutputContentItemType", |
| | 23187 | }), |
| | 23188 | file_id: Schema.String, |
| | 23189 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 23190 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 23191 | Schema.Struct({ |
| | 23192 | audio_url: Schema.String, |
| | 23193 | type: Schema.Literal("input_audio").annotate({ |
| | 23194 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 23195 | }), |
| | 23196 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 23197 | Schema.Struct({ |
| | 23198 | encrypted_content: Schema.String, |
| | 23199 | type: Schema.Literal("encrypted_content").annotate({ |
| | 23200 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 23201 | }), |
| | 23202 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 23203 | ], |
| | 23204 | { mode: "oneOf" }, |
| | 23205 | ).annotate({ |
| | 23206 | description: |
| | 23207 | "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.", |
| | 23208 | identifier: "V2ThreadForkResponse__FunctionCallOutputContentItem", |
| | 23209 | }); |
| | 23210 | |
| 18757 | export type V2ThreadForkResponse__MemoryCitation = { | 23211 | export type V2ThreadForkResponse__MemoryCitation = { |
| 18758 | readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>; | 23212 | readonly entries: ReadonlyArray<V2ThreadForkResponse__MemoryCitationEntry>; |
| 18759 | readonly threadIds: ReadonlyArray<string>; | 23213 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -18774,6 +23228,19 @@ export const V2ThreadForkResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -18774,6 +23228,19 @@ export const V2ThreadForkResponse__FileUpdateChange = Schema.Struct({ |
| 18774 | path: Schema.String, | 23228 | path: Schema.String, |
| 18775 | }).annotate({ identifier: "V2ThreadForkResponse__FileUpdateChange" }); | 23229 | }).annotate({ identifier: "V2ThreadForkResponse__FileUpdateChange" }); |
| 18776 | | 23230 | |
| | 23231 | export type V2ThreadForkResponse__McpAppUi = { |
| | 23232 | readonly preferredModelDisplayMode: V2ThreadForkResponse__McpAppDisplayMode; |
| | 23233 | readonly resourceUri: string; |
| | 23234 | }; |
| | 23235 | export const V2ThreadForkResponse__McpAppUi = Schema.Struct({ |
| | 23236 | preferredModelDisplayMode: V2ThreadForkResponse__McpAppDisplayMode, |
| | 23237 | resourceUri: Schema.String, |
| | 23238 | }).annotate({ |
| | 23239 | description: |
| | 23240 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 23241 | identifier: "V2ThreadForkResponse__McpAppUi", |
| | 23242 | }); |
| | 23243 | |
| 18777 | export type V2ThreadForkResponse__CollabAgentState = { | 23244 | export type V2ThreadForkResponse__CollabAgentState = { |
| 18778 | readonly message?: string | null; | 23245 | readonly message?: string | null; |
| 18779 | readonly status: V2ThreadForkResponse__CollabAgentStatus; | 23246 | readonly status: V2ThreadForkResponse__CollabAgentStatus; |
| ... | @@ -18891,11 +23358,100 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({ | ... | @@ -18891,11 +23358,100 @@ export const V2ThreadGoalUpdatedNotification__ThreadGoal = Schema.Struct({ |
| 18891 | ), | 23358 | ), |
| 18892 | }).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoal" }); | 23359 | }).annotate({ identifier: "V2ThreadGoalUpdatedNotification__ThreadGoal" }); |
| 18893 | | 23360 | |
| 18894 | export type V2ThreadListResponse__CommandAction = | 23361 | export type V2ThreadItemsListResponse__TextElement = { |
| | 23362 | readonly byteRange: V2ThreadItemsListResponse__ByteRange; |
| | 23363 | readonly placeholder?: string | null; |
| | 23364 | }; |
| | 23365 | export const V2ThreadItemsListResponse__TextElement = Schema.Struct({ |
| | 23366 | byteRange: Schema.suspend( |
| | 23367 | (): Schema.Codec<V2ThreadItemsListResponse__ByteRange> => V2ThreadItemsListResponse__ByteRange, |
| | 23368 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 23369 | placeholder: Schema.optionalKey( |
| | 23370 | Schema.Union([ |
| | 23371 | Schema.String.annotate({ |
| | 23372 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 23373 | }), |
| | 23374 | Schema.Null, |
| | 23375 | ]), |
| | 23376 | ), |
| | 23377 | }).annotate({ identifier: "V2ThreadItemsListResponse__TextElement" }); |
| | 23378 | |
| | 23379 | export type V2ThreadItemsListResponse__FunctionCallOutputContentItem = |
| | 23380 | | { readonly text: string; readonly type: "input_text" } |
| | 23381 | | { |
| | 23382 | readonly detail?: V2ThreadItemsListResponse__ImageDetail | null; |
| | 23383 | readonly type: "input_image"; |
| | 23384 | readonly image_url: string; |
| | 23385 | } |
| | 23386 | | { |
| | 23387 | readonly detail?: V2ThreadItemsListResponse__ImageDetail | null; |
| | 23388 | readonly type: "input_image"; |
| | 23389 | readonly file_id: string; |
| | 23390 | } |
| | 23391 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 23392 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 23393 | export const V2ThreadItemsListResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 23394 | [ |
| | 23395 | Schema.Struct({ |
| | 23396 | text: Schema.String, |
| | 23397 | type: Schema.Literal("input_text").annotate({ |
| | 23398 | title: "InputTextFunctionCallOutputContentItemType", |
| | 23399 | }), |
| | 23400 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 23401 | Schema.Union([ |
| | 23402 | Schema.Struct({ |
| | 23403 | detail: Schema.optionalKey( |
| | 23404 | Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]), |
| | 23405 | ), |
| | 23406 | type: Schema.Literal("input_image").annotate({ |
| | 23407 | title: "InputImageFunctionCallOutputContentItemType", |
| | 23408 | }), |
| | 23409 | image_url: Schema.String, |
| | 23410 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 23411 | Schema.Struct({ |
| | 23412 | detail: Schema.optionalKey( |
| | 23413 | Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]), |
| | 23414 | ), |
| | 23415 | type: Schema.Literal("input_image").annotate({ |
| | 23416 | title: "InputImageFunctionCallOutputContentItemType", |
| | 23417 | }), |
| | 23418 | file_id: Schema.String, |
| | 23419 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 23420 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 23421 | Schema.Struct({ |
| | 23422 | audio_url: Schema.String, |
| | 23423 | type: Schema.Literal("input_audio").annotate({ |
| | 23424 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 23425 | }), |
| | 23426 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 23427 | Schema.Struct({ |
| | 23428 | encrypted_content: Schema.String, |
| | 23429 | type: Schema.Literal("encrypted_content").annotate({ |
| | 23430 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 23431 | }), |
| | 23432 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 23433 | ], |
| | 23434 | { mode: "oneOf" }, |
| | 23435 | ).annotate({ |
| | 23436 | description: |
| | 23437 | "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.", |
| | 23438 | identifier: "V2ThreadItemsListResponse__FunctionCallOutputContentItem", |
| | 23439 | }); |
| | 23440 | |
| | 23441 | export type V2ThreadItemsListResponse__MemoryCitation = { |
| | 23442 | readonly entries: ReadonlyArray<V2ThreadItemsListResponse__MemoryCitationEntry>; |
| | 23443 | readonly threadIds: ReadonlyArray<string>; |
| | 23444 | }; |
| | 23445 | export const V2ThreadItemsListResponse__MemoryCitation = Schema.Struct({ |
| | 23446 | entries: Schema.Array(V2ThreadItemsListResponse__MemoryCitationEntry), |
| | 23447 | threadIds: Schema.Array(Schema.String), |
| | 23448 | }).annotate({ identifier: "V2ThreadItemsListResponse__MemoryCitation" }); |
| | 23449 | |
| | 23450 | export type V2ThreadItemsListResponse__CommandAction = |
| 18895 | | { | 23451 | | { |
| 18896 | readonly command: string; | 23452 | readonly command: string; |
| 18897 | readonly name: string; | 23453 | readonly name: string; |
| 18898 | readonly path: V2ThreadListResponse__AbsolutePathBuf; | 23454 | readonly path: V2ThreadItemsListResponse__LegacyAppPathString; |
| 18899 | readonly type: "read"; | 23455 | readonly type: "read"; |
| 18900 | } | 23456 | } |
| 18901 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 23457 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -18906,12 +23462,12 @@ export type V2ThreadListResponse__CommandAction = | ... | @@ -18906,12 +23462,12 @@ export type V2ThreadListResponse__CommandAction = |
| 18906 | readonly type: "search"; | 23462 | readonly type: "search"; |
| 18907 | } | 23463 | } |
| 18908 | | { readonly command: string; readonly type: "unknown" }; | 23464 | | { readonly command: string; readonly type: "unknown" }; |
| 18909 | export const V2ThreadListResponse__CommandAction = Schema.Union( | 23465 | export const V2ThreadItemsListResponse__CommandAction = Schema.Union( |
| 18910 | [ | 23466 | [ |
| 18911 | Schema.Struct({ | 23467 | Schema.Struct({ |
| 18912 | command: Schema.String, | 23468 | command: Schema.String, |
| 18913 | name: Schema.String, | 23469 | name: Schema.String, |
| 18914 | path: V2ThreadListResponse__AbsolutePathBuf, | 23470 | path: V2ThreadItemsListResponse__LegacyAppPathString, |
| 18915 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 23471 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 18916 | }).annotate({ title: "ReadCommandAction" }), | 23472 | }).annotate({ title: "ReadCommandAction" }), |
| 18917 | Schema.Struct({ | 23473 | Schema.Struct({ |
| ... | @@ -18931,7 +23487,60 @@ export const V2ThreadListResponse__CommandAction = Schema.Union( | ... | @@ -18931,7 +23487,60 @@ export const V2ThreadListResponse__CommandAction = Schema.Union( |
| 18931 | }).annotate({ title: "UnknownCommandAction" }), | 23487 | }).annotate({ title: "UnknownCommandAction" }), |
| 18932 | ], | 23488 | ], |
| 18933 | { mode: "oneOf" }, | 23489 | { mode: "oneOf" }, |
| 18934 | ).annotate({ identifier: "V2ThreadListResponse__CommandAction" }); | 23490 | ).annotate({ identifier: "V2ThreadItemsListResponse__CommandAction" }); |
| | 23491 | |
| | 23492 | export type V2ThreadItemsListResponse__FileUpdateChange = { |
| | 23493 | readonly diff: string; |
| | 23494 | readonly kind: V2ThreadItemsListResponse__PatchChangeKind; |
| | 23495 | readonly path: string; |
| | 23496 | }; |
| | 23497 | export const V2ThreadItemsListResponse__FileUpdateChange = Schema.Struct({ |
| | 23498 | diff: Schema.String, |
| | 23499 | kind: V2ThreadItemsListResponse__PatchChangeKind, |
| | 23500 | path: Schema.String, |
| | 23501 | }).annotate({ identifier: "V2ThreadItemsListResponse__FileUpdateChange" }); |
| | 23502 | |
| | 23503 | export type V2ThreadItemsListResponse__McpAppUi = { |
| | 23504 | readonly preferredModelDisplayMode: V2ThreadItemsListResponse__McpAppDisplayMode; |
| | 23505 | readonly resourceUri: string; |
| | 23506 | }; |
| | 23507 | export const V2ThreadItemsListResponse__McpAppUi = Schema.Struct({ |
| | 23508 | preferredModelDisplayMode: V2ThreadItemsListResponse__McpAppDisplayMode, |
| | 23509 | resourceUri: Schema.String, |
| | 23510 | }).annotate({ |
| | 23511 | description: |
| | 23512 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 23513 | identifier: "V2ThreadItemsListResponse__McpAppUi", |
| | 23514 | }); |
| | 23515 | |
| | 23516 | export type V2ThreadItemsListResponse__CollabAgentState = { |
| | 23517 | readonly message?: string | null; |
| | 23518 | readonly status: V2ThreadItemsListResponse__CollabAgentStatus; |
| | 23519 | }; |
| | 23520 | export const V2ThreadItemsListResponse__CollabAgentState = Schema.Struct({ |
| | 23521 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 23522 | status: V2ThreadItemsListResponse__CollabAgentStatus, |
| | 23523 | }).annotate({ identifier: "V2ThreadItemsListResponse__CollabAgentState" }); |
| | 23524 | |
| | 23525 | export type V2ThreadListResponse__ThreadSection = { |
| | 23526 | readonly appearance?: V2ThreadListResponse__ThreadSectionAppearance | null; |
| | 23527 | readonly id: string; |
| | 23528 | readonly name: string; |
| | 23529 | }; |
| | 23530 | export const V2ThreadListResponse__ThreadSection = Schema.Struct({ |
| | 23531 | appearance: Schema.optionalKey( |
| | 23532 | Schema.Union([V2ThreadListResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 23533 | description: "Optional appearance synchronized across clients.", |
| | 23534 | }), |
| | 23535 | ), |
| | 23536 | id: Schema.String.annotate({ |
| | 23537 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 23538 | }), |
| | 23539 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 23540 | }).annotate({ |
| | 23541 | description: "An independently persisted, user-visible thread section.", |
| | 23542 | identifier: "V2ThreadListResponse__ThreadSection", |
| | 23543 | }); |
| 18935 | | 23544 | |
| 18936 | export type V2ThreadListResponse__SubAgentSource = | 23545 | export type V2ThreadListResponse__SubAgentSource = |
| 18937 | | "review" | 23546 | | "review" |
| ... | @@ -18999,8 +23608,10 @@ export type V2ThreadListResponse__CodexErrorInfo = | ... | @@ -18999,8 +23608,10 @@ export type V2ThreadListResponse__CodexErrorInfo = |
| 18999 | | "contextWindowExceeded" | 23608 | | "contextWindowExceeded" |
| 19000 | | "sessionBudgetExceeded" | 23609 | | "sessionBudgetExceeded" |
| 19001 | | "usageLimitExceeded" | 23610 | | "usageLimitExceeded" |
| | 23611 | | "rateLimitExceeded" |
| 19002 | | "serverOverloaded" | 23612 | | "serverOverloaded" |
| 19003 | | "cyberPolicy" | 23613 | | "cyberPolicy" |
| | 23614 | | "misalignmentPolicyViolation" |
| 19004 | | "internalServerError" | 23615 | | "internalServerError" |
| 19005 | | "unauthorized" | 23616 | | "unauthorized" |
| 19006 | | "badRequest" | 23617 | | "badRequest" |
| ... | @@ -19022,8 +23633,10 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( | ... | @@ -19022,8 +23633,10 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 19022 | "contextWindowExceeded", | 23633 | "contextWindowExceeded", |
| 19023 | "sessionBudgetExceeded", | 23634 | "sessionBudgetExceeded", |
| 19024 | "usageLimitExceeded", | 23635 | "usageLimitExceeded", |
| | 23636 | "rateLimitExceeded", |
| 19025 | "serverOverloaded", | 23637 | "serverOverloaded", |
| 19026 | "cyberPolicy", | 23638 | "cyberPolicy", |
| | 23639 | "misalignmentPolicyViolation", |
| 19027 | "internalServerError", | 23640 | "internalServerError", |
| 19028 | "unauthorized", | 23641 | "unauthorized", |
| 19029 | "badRequest", | 23642 | "badRequest", |
| ... | @@ -19122,6 +23735,38 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( | ... | @@ -19122,6 +23735,38 @@ export const V2ThreadListResponse__CodexErrorInfo = Schema.Union( |
| 19122 | identifier: "V2ThreadListResponse__CodexErrorInfo", | 23735 | identifier: "V2ThreadListResponse__CodexErrorInfo", |
| 19123 | }); | 23736 | }); |
| 19124 | | 23737 | |
| | 23738 | export type V2ThreadListResponse__MisalignmentErrorDetails = { |
| | 23739 | readonly detailedExplanation?: string | null; |
| | 23740 | readonly errorType?: string | null; |
| | 23741 | readonly steer?: V2ThreadListResponse__MisalignmentSteer | null; |
| | 23742 | }; |
| | 23743 | export const V2ThreadListResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 23744 | detailedExplanation: Schema.optionalKey( |
| | 23745 | Schema.Union([ |
| | 23746 | Schema.String.annotate({ |
| | 23747 | description: |
| | 23748 | "A substantive localized explanation is required before offering continuation.", |
| | 23749 | }), |
| | 23750 | Schema.Null, |
| | 23751 | ]), |
| | 23752 | ), |
| | 23753 | errorType: Schema.optionalKey( |
| | 23754 | Schema.Union([ |
| | 23755 | Schema.String.annotate({ |
| | 23756 | description: |
| | 23757 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 23758 | }), |
| | 23759 | Schema.Null, |
| | 23760 | ]), |
| | 23761 | ), |
| | 23762 | steer: Schema.optionalKey( |
| | 23763 | Schema.Union([V2ThreadListResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 23764 | description: |
| | 23765 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 23766 | }), |
| | 23767 | ), |
| | 23768 | }).annotate({ identifier: "V2ThreadListResponse__MisalignmentErrorDetails" }); |
| | 23769 | |
| 19125 | export type V2ThreadListResponse__TextElement = { | 23770 | export type V2ThreadListResponse__TextElement = { |
| 19126 | readonly byteRange: V2ThreadListResponse__ByteRange; | 23771 | readonly byteRange: V2ThreadListResponse__ByteRange; |
| 19127 | readonly placeholder?: string | null; | 23772 | readonly placeholder?: string | null; |
| ... | @@ -19140,6 +23785,64 @@ export const V2ThreadListResponse__TextElement = Schema.Struct({ | ... | @@ -19140,6 +23785,64 @@ export const V2ThreadListResponse__TextElement = Schema.Struct({ |
| 19140 | ), | 23785 | ), |
| 19141 | }).annotate({ identifier: "V2ThreadListResponse__TextElement" }); | 23786 | }).annotate({ identifier: "V2ThreadListResponse__TextElement" }); |
| 19142 | | 23787 | |
| | 23788 | export type V2ThreadListResponse__FunctionCallOutputContentItem = |
| | 23789 | | { readonly text: string; readonly type: "input_text" } |
| | 23790 | | { |
| | 23791 | readonly detail?: V2ThreadListResponse__ImageDetail | null; |
| | 23792 | readonly type: "input_image"; |
| | 23793 | readonly image_url: string; |
| | 23794 | } |
| | 23795 | | { |
| | 23796 | readonly detail?: V2ThreadListResponse__ImageDetail | null; |
| | 23797 | readonly type: "input_image"; |
| | 23798 | readonly file_id: string; |
| | 23799 | } |
| | 23800 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 23801 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 23802 | export const V2ThreadListResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 23803 | [ |
| | 23804 | Schema.Struct({ |
| | 23805 | text: Schema.String, |
| | 23806 | type: Schema.Literal("input_text").annotate({ |
| | 23807 | title: "InputTextFunctionCallOutputContentItemType", |
| | 23808 | }), |
| | 23809 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 23810 | Schema.Union([ |
| | 23811 | Schema.Struct({ |
| | 23812 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), |
| | 23813 | type: Schema.Literal("input_image").annotate({ |
| | 23814 | title: "InputImageFunctionCallOutputContentItemType", |
| | 23815 | }), |
| | 23816 | image_url: Schema.String, |
| | 23817 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 23818 | Schema.Struct({ |
| | 23819 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), |
| | 23820 | type: Schema.Literal("input_image").annotate({ |
| | 23821 | title: "InputImageFunctionCallOutputContentItemType", |
| | 23822 | }), |
| | 23823 | file_id: Schema.String, |
| | 23824 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 23825 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 23826 | Schema.Struct({ |
| | 23827 | audio_url: Schema.String, |
| | 23828 | type: Schema.Literal("input_audio").annotate({ |
| | 23829 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 23830 | }), |
| | 23831 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 23832 | Schema.Struct({ |
| | 23833 | encrypted_content: Schema.String, |
| | 23834 | type: Schema.Literal("encrypted_content").annotate({ |
| | 23835 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 23836 | }), |
| | 23837 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 23838 | ], |
| | 23839 | { mode: "oneOf" }, |
| | 23840 | ).annotate({ |
| | 23841 | description: |
| | 23842 | "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.", |
| | 23843 | identifier: "V2ThreadListResponse__FunctionCallOutputContentItem", |
| | 23844 | }); |
| | 23845 | |
| 19143 | export type V2ThreadListResponse__MemoryCitation = { | 23846 | export type V2ThreadListResponse__MemoryCitation = { |
| 19144 | readonly entries: ReadonlyArray<V2ThreadListResponse__MemoryCitationEntry>; | 23847 | readonly entries: ReadonlyArray<V2ThreadListResponse__MemoryCitationEntry>; |
| 19145 | readonly threadIds: ReadonlyArray<string>; | 23848 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -19149,31 +23852,11 @@ export const V2ThreadListResponse__MemoryCitation = Schema.Struct({ | ... | @@ -19149,31 +23852,11 @@ export const V2ThreadListResponse__MemoryCitation = Schema.Struct({ |
| 19149 | threadIds: Schema.Array(Schema.String), | 23852 | threadIds: Schema.Array(Schema.String), |
| 19150 | }).annotate({ identifier: "V2ThreadListResponse__MemoryCitation" }); | 23853 | }).annotate({ identifier: "V2ThreadListResponse__MemoryCitation" }); |
| 19151 | | 23854 | |
| 19152 | export type V2ThreadListResponse__FileUpdateChange = { | 23855 | export type V2ThreadListResponse__CommandAction = |
| 19153 | readonly diff: string; | | |
| 19154 | readonly kind: V2ThreadListResponse__PatchChangeKind; | | |
| 19155 | readonly path: string; | | |
| 19156 | }; | | |
| 19157 | export const V2ThreadListResponse__FileUpdateChange = Schema.Struct({ | | |
| 19158 | diff: Schema.String, | | |
| 19159 | kind: V2ThreadListResponse__PatchChangeKind, | | |
| 19160 | path: Schema.String, | | |
| 19161 | }).annotate({ identifier: "V2ThreadListResponse__FileUpdateChange" }); | | |
| 19162 | | | |
| 19163 | export type V2ThreadListResponse__CollabAgentState = { | | |
| 19164 | readonly message?: string | null; | | |
| 19165 | readonly status: V2ThreadListResponse__CollabAgentStatus; | | |
| 19166 | }; | | |
| 19167 | export const V2ThreadListResponse__CollabAgentState = Schema.Struct({ | | |
| 19168 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 19169 | status: V2ThreadListResponse__CollabAgentStatus, | | |
| 19170 | }).annotate({ identifier: "V2ThreadListResponse__CollabAgentState" }); | | |
| 19171 | | | |
| 19172 | export type V2ThreadMetadataUpdateResponse__CommandAction = | | |
| 19173 | | { | 23856 | | { |
| 19174 | readonly command: string; | 23857 | readonly command: string; |
| 19175 | readonly name: string; | 23858 | readonly name: string; |
| 19176 | readonly path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf; | 23859 | readonly path: V2ThreadListResponse__LegacyAppPathString; |
| 19177 | readonly type: "read"; | 23860 | readonly type: "read"; |
| 19178 | } | 23861 | } |
| 19179 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 23862 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -19184,12 +23867,12 @@ export type V2ThreadMetadataUpdateResponse__CommandAction = | ... | @@ -19184,12 +23867,12 @@ export type V2ThreadMetadataUpdateResponse__CommandAction = |
| 19184 | readonly type: "search"; | 23867 | readonly type: "search"; |
| 19185 | } | 23868 | } |
| 19186 | | { readonly command: string; readonly type: "unknown" }; | 23869 | | { readonly command: string; readonly type: "unknown" }; |
| 19187 | export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union( | 23870 | export const V2ThreadListResponse__CommandAction = Schema.Union( |
| 19188 | [ | 23871 | [ |
| 19189 | Schema.Struct({ | 23872 | Schema.Struct({ |
| 19190 | command: Schema.String, | 23873 | command: Schema.String, |
| 19191 | name: Schema.String, | 23874 | name: Schema.String, |
| 19192 | path: V2ThreadMetadataUpdateResponse__AbsolutePathBuf, | 23875 | path: V2ThreadListResponse__LegacyAppPathString, |
| 19193 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 23876 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 19194 | }).annotate({ title: "ReadCommandAction" }), | 23877 | }).annotate({ title: "ReadCommandAction" }), |
| 19195 | Schema.Struct({ | 23878 | Schema.Struct({ |
| ... | @@ -19209,7 +23892,60 @@ export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union( | ... | @@ -19209,7 +23892,60 @@ export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union( |
| 19209 | }).annotate({ title: "UnknownCommandAction" }), | 23892 | }).annotate({ title: "UnknownCommandAction" }), |
| 19210 | ], | 23893 | ], |
| 19211 | { mode: "oneOf" }, | 23894 | { mode: "oneOf" }, |
| 19212 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CommandAction" }); | 23895 | ).annotate({ identifier: "V2ThreadListResponse__CommandAction" }); |
| | 23896 | |
| | 23897 | export type V2ThreadListResponse__FileUpdateChange = { |
| | 23898 | readonly diff: string; |
| | 23899 | readonly kind: V2ThreadListResponse__PatchChangeKind; |
| | 23900 | readonly path: string; |
| | 23901 | }; |
| | 23902 | export const V2ThreadListResponse__FileUpdateChange = Schema.Struct({ |
| | 23903 | diff: Schema.String, |
| | 23904 | kind: V2ThreadListResponse__PatchChangeKind, |
| | 23905 | path: Schema.String, |
| | 23906 | }).annotate({ identifier: "V2ThreadListResponse__FileUpdateChange" }); |
| | 23907 | |
| | 23908 | export type V2ThreadListResponse__McpAppUi = { |
| | 23909 | readonly preferredModelDisplayMode: V2ThreadListResponse__McpAppDisplayMode; |
| | 23910 | readonly resourceUri: string; |
| | 23911 | }; |
| | 23912 | export const V2ThreadListResponse__McpAppUi = Schema.Struct({ |
| | 23913 | preferredModelDisplayMode: V2ThreadListResponse__McpAppDisplayMode, |
| | 23914 | resourceUri: Schema.String, |
| | 23915 | }).annotate({ |
| | 23916 | description: |
| | 23917 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 23918 | identifier: "V2ThreadListResponse__McpAppUi", |
| | 23919 | }); |
| | 23920 | |
| | 23921 | export type V2ThreadListResponse__CollabAgentState = { |
| | 23922 | readonly message?: string | null; |
| | 23923 | readonly status: V2ThreadListResponse__CollabAgentStatus; |
| | 23924 | }; |
| | 23925 | export const V2ThreadListResponse__CollabAgentState = Schema.Struct({ |
| | 23926 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 23927 | status: V2ThreadListResponse__CollabAgentStatus, |
| | 23928 | }).annotate({ identifier: "V2ThreadListResponse__CollabAgentState" }); |
| | 23929 | |
| | 23930 | export type V2ThreadMetadataUpdateResponse__ThreadSection = { |
| | 23931 | readonly appearance?: V2ThreadMetadataUpdateResponse__ThreadSectionAppearance | null; |
| | 23932 | readonly id: string; |
| | 23933 | readonly name: string; |
| | 23934 | }; |
| | 23935 | export const V2ThreadMetadataUpdateResponse__ThreadSection = Schema.Struct({ |
| | 23936 | appearance: Schema.optionalKey( |
| | 23937 | Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 23938 | description: "Optional appearance synchronized across clients.", |
| | 23939 | }), |
| | 23940 | ), |
| | 23941 | id: Schema.String.annotate({ |
| | 23942 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 23943 | }), |
| | 23944 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 23945 | }).annotate({ |
| | 23946 | description: "An independently persisted, user-visible thread section.", |
| | 23947 | identifier: "V2ThreadMetadataUpdateResponse__ThreadSection", |
| | 23948 | }); |
| 19213 | | 23949 | |
| 19214 | export type V2ThreadMetadataUpdateResponse__SubAgentSource = | 23950 | export type V2ThreadMetadataUpdateResponse__SubAgentSource = |
| 19215 | | "review" | 23951 | | "review" |
| ... | @@ -19277,8 +24013,10 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo = | ... | @@ -19277,8 +24013,10 @@ export type V2ThreadMetadataUpdateResponse__CodexErrorInfo = |
| 19277 | | "contextWindowExceeded" | 24013 | | "contextWindowExceeded" |
| 19278 | | "sessionBudgetExceeded" | 24014 | | "sessionBudgetExceeded" |
| 19279 | | "usageLimitExceeded" | 24015 | | "usageLimitExceeded" |
| | 24016 | | "rateLimitExceeded" |
| 19280 | | "serverOverloaded" | 24017 | | "serverOverloaded" |
| 19281 | | "cyberPolicy" | 24018 | | "cyberPolicy" |
| | 24019 | | "misalignmentPolicyViolation" |
| 19282 | | "internalServerError" | 24020 | | "internalServerError" |
| 19283 | | "unauthorized" | 24021 | | "unauthorized" |
| 19284 | | "badRequest" | 24022 | | "badRequest" |
| ... | @@ -19300,8 +24038,10 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( | ... | @@ -19300,8 +24038,10 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 19300 | "contextWindowExceeded", | 24038 | "contextWindowExceeded", |
| 19301 | "sessionBudgetExceeded", | 24039 | "sessionBudgetExceeded", |
| 19302 | "usageLimitExceeded", | 24040 | "usageLimitExceeded", |
| | 24041 | "rateLimitExceeded", |
| 19303 | "serverOverloaded", | 24042 | "serverOverloaded", |
| 19304 | "cyberPolicy", | 24043 | "cyberPolicy", |
| | 24044 | "misalignmentPolicyViolation", |
| 19305 | "internalServerError", | 24045 | "internalServerError", |
| 19306 | "unauthorized", | 24046 | "unauthorized", |
| 19307 | "badRequest", | 24047 | "badRequest", |
| ... | @@ -19400,6 +24140,38 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( | ... | @@ -19400,6 +24140,38 @@ export const V2ThreadMetadataUpdateResponse__CodexErrorInfo = Schema.Union( |
| 19400 | identifier: "V2ThreadMetadataUpdateResponse__CodexErrorInfo", | 24140 | identifier: "V2ThreadMetadataUpdateResponse__CodexErrorInfo", |
| 19401 | }); | 24141 | }); |
| 19402 | | 24142 | |
| | 24143 | export type V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails = { |
| | 24144 | readonly detailedExplanation?: string | null; |
| | 24145 | readonly errorType?: string | null; |
| | 24146 | readonly steer?: V2ThreadMetadataUpdateResponse__MisalignmentSteer | null; |
| | 24147 | }; |
| | 24148 | export const V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 24149 | detailedExplanation: Schema.optionalKey( |
| | 24150 | Schema.Union([ |
| | 24151 | Schema.String.annotate({ |
| | 24152 | description: |
| | 24153 | "A substantive localized explanation is required before offering continuation.", |
| | 24154 | }), |
| | 24155 | Schema.Null, |
| | 24156 | ]), |
| | 24157 | ), |
| | 24158 | errorType: Schema.optionalKey( |
| | 24159 | Schema.Union([ |
| | 24160 | Schema.String.annotate({ |
| | 24161 | description: |
| | 24162 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 24163 | }), |
| | 24164 | Schema.Null, |
| | 24165 | ]), |
| | 24166 | ), |
| | 24167 | steer: Schema.optionalKey( |
| | 24168 | Schema.Union([V2ThreadMetadataUpdateResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 24169 | description: |
| | 24170 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 24171 | }), |
| | 24172 | ), |
| | 24173 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails" }); |
| | 24174 | |
| 19403 | export type V2ThreadMetadataUpdateResponse__TextElement = { | 24175 | export type V2ThreadMetadataUpdateResponse__TextElement = { |
| 19404 | readonly byteRange: V2ThreadMetadataUpdateResponse__ByteRange; | 24176 | readonly byteRange: V2ThreadMetadataUpdateResponse__ByteRange; |
| 19405 | readonly placeholder?: string | null; | 24177 | readonly placeholder?: string | null; |
| ... | @@ -19419,6 +24191,68 @@ export const V2ThreadMetadataUpdateResponse__TextElement = Schema.Struct({ | ... | @@ -19419,6 +24191,68 @@ export const V2ThreadMetadataUpdateResponse__TextElement = Schema.Struct({ |
| 19419 | ), | 24191 | ), |
| 19420 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TextElement" }); | 24192 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TextElement" }); |
| 19421 | | 24193 | |
| | 24194 | export type V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem = |
| | 24195 | | { readonly text: string; readonly type: "input_text" } |
| | 24196 | | { |
| | 24197 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; |
| | 24198 | readonly type: "input_image"; |
| | 24199 | readonly image_url: string; |
| | 24200 | } |
| | 24201 | | { |
| | 24202 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; |
| | 24203 | readonly type: "input_image"; |
| | 24204 | readonly file_id: string; |
| | 24205 | } |
| | 24206 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 24207 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 24208 | export const V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 24209 | [ |
| | 24210 | Schema.Struct({ |
| | 24211 | text: Schema.String, |
| | 24212 | type: Schema.Literal("input_text").annotate({ |
| | 24213 | title: "InputTextFunctionCallOutputContentItemType", |
| | 24214 | }), |
| | 24215 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 24216 | Schema.Union([ |
| | 24217 | Schema.Struct({ |
| | 24218 | detail: Schema.optionalKey( |
| | 24219 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), |
| | 24220 | ), |
| | 24221 | type: Schema.Literal("input_image").annotate({ |
| | 24222 | title: "InputImageFunctionCallOutputContentItemType", |
| | 24223 | }), |
| | 24224 | image_url: Schema.String, |
| | 24225 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 24226 | Schema.Struct({ |
| | 24227 | detail: Schema.optionalKey( |
| | 24228 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), |
| | 24229 | ), |
| | 24230 | type: Schema.Literal("input_image").annotate({ |
| | 24231 | title: "InputImageFunctionCallOutputContentItemType", |
| | 24232 | }), |
| | 24233 | file_id: Schema.String, |
| | 24234 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 24235 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 24236 | Schema.Struct({ |
| | 24237 | audio_url: Schema.String, |
| | 24238 | type: Schema.Literal("input_audio").annotate({ |
| | 24239 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 24240 | }), |
| | 24241 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 24242 | Schema.Struct({ |
| | 24243 | encrypted_content: Schema.String, |
| | 24244 | type: Schema.Literal("encrypted_content").annotate({ |
| | 24245 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 24246 | }), |
| | 24247 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 24248 | ], |
| | 24249 | { mode: "oneOf" }, |
| | 24250 | ).annotate({ |
| | 24251 | description: |
| | 24252 | "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.", |
| | 24253 | identifier: "V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem", |
| | 24254 | }); |
| | 24255 | |
| 19422 | export type V2ThreadMetadataUpdateResponse__MemoryCitation = { | 24256 | export type V2ThreadMetadataUpdateResponse__MemoryCitation = { |
| 19423 | readonly entries: ReadonlyArray<V2ThreadMetadataUpdateResponse__MemoryCitationEntry>; | 24257 | readonly entries: ReadonlyArray<V2ThreadMetadataUpdateResponse__MemoryCitationEntry>; |
| 19424 | readonly threadIds: ReadonlyArray<string>; | 24258 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -19428,31 +24262,11 @@ export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({ | ... | @@ -19428,31 +24262,11 @@ export const V2ThreadMetadataUpdateResponse__MemoryCitation = Schema.Struct({ |
| 19428 | threadIds: Schema.Array(Schema.String), | 24262 | threadIds: Schema.Array(Schema.String), |
| 19429 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MemoryCitation" }); | 24263 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__MemoryCitation" }); |
| 19430 | | 24264 | |
| 19431 | export type V2ThreadMetadataUpdateResponse__FileUpdateChange = { | 24265 | export type V2ThreadMetadataUpdateResponse__CommandAction = |
| 19432 | readonly diff: string; | | |
| 19433 | readonly kind: V2ThreadMetadataUpdateResponse__PatchChangeKind; | | |
| 19434 | readonly path: string; | | |
| 19435 | }; | | |
| 19436 | export const V2ThreadMetadataUpdateResponse__FileUpdateChange = Schema.Struct({ | | |
| 19437 | diff: Schema.String, | | |
| 19438 | kind: V2ThreadMetadataUpdateResponse__PatchChangeKind, | | |
| 19439 | path: Schema.String, | | |
| 19440 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__FileUpdateChange" }); | | |
| 19441 | | | |
| 19442 | export type V2ThreadMetadataUpdateResponse__CollabAgentState = { | | |
| 19443 | readonly message?: string | null; | | |
| 19444 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus; | | |
| 19445 | }; | | |
| 19446 | export const V2ThreadMetadataUpdateResponse__CollabAgentState = Schema.Struct({ | | |
| 19447 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 19448 | status: V2ThreadMetadataUpdateResponse__CollabAgentStatus, | | |
| 19449 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentState" }); | | |
| 19450 | | | |
| 19451 | export type V2ThreadReadResponse__CommandAction = | | |
| 19452 | | { | 24266 | | { |
| 19453 | readonly command: string; | 24267 | readonly command: string; |
| 19454 | readonly name: string; | 24268 | readonly name: string; |
| 19455 | readonly path: V2ThreadReadResponse__AbsolutePathBuf; | 24269 | readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString; |
| 19456 | readonly type: "read"; | 24270 | readonly type: "read"; |
| 19457 | } | 24271 | } |
| 19458 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 24272 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -19463,12 +24277,12 @@ export type V2ThreadReadResponse__CommandAction = | ... | @@ -19463,12 +24277,12 @@ export type V2ThreadReadResponse__CommandAction = |
| 19463 | readonly type: "search"; | 24277 | readonly type: "search"; |
| 19464 | } | 24278 | } |
| 19465 | | { readonly command: string; readonly type: "unknown" }; | 24279 | | { readonly command: string; readonly type: "unknown" }; |
| 19466 | export const V2ThreadReadResponse__CommandAction = Schema.Union( | 24280 | export const V2ThreadMetadataUpdateResponse__CommandAction = Schema.Union( |
| 19467 | [ | 24281 | [ |
| 19468 | Schema.Struct({ | 24282 | Schema.Struct({ |
| 19469 | command: Schema.String, | 24283 | command: Schema.String, |
| 19470 | name: Schema.String, | 24284 | name: Schema.String, |
| 19471 | path: V2ThreadReadResponse__AbsolutePathBuf, | 24285 | path: V2ThreadMetadataUpdateResponse__LegacyAppPathString, |
| 19472 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 24286 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 19473 | }).annotate({ title: "ReadCommandAction" }), | 24287 | }).annotate({ title: "ReadCommandAction" }), |
| 19474 | Schema.Struct({ | 24288 | Schema.Struct({ |
| ... | @@ -19488,7 +24302,60 @@ export const V2ThreadReadResponse__CommandAction = Schema.Union( | ... | @@ -19488,7 +24302,60 @@ export const V2ThreadReadResponse__CommandAction = Schema.Union( |
| 19488 | }).annotate({ title: "UnknownCommandAction" }), | 24302 | }).annotate({ title: "UnknownCommandAction" }), |
| 19489 | ], | 24303 | ], |
| 19490 | { mode: "oneOf" }, | 24304 | { mode: "oneOf" }, |
| 19491 | ).annotate({ identifier: "V2ThreadReadResponse__CommandAction" }); | 24305 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CommandAction" }); |
| | 24306 | |
| | 24307 | export type V2ThreadMetadataUpdateResponse__FileUpdateChange = { |
| | 24308 | readonly diff: string; |
| | 24309 | readonly kind: V2ThreadMetadataUpdateResponse__PatchChangeKind; |
| | 24310 | readonly path: string; |
| | 24311 | }; |
| | 24312 | export const V2ThreadMetadataUpdateResponse__FileUpdateChange = Schema.Struct({ |
| | 24313 | diff: Schema.String, |
| | 24314 | kind: V2ThreadMetadataUpdateResponse__PatchChangeKind, |
| | 24315 | path: Schema.String, |
| | 24316 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__FileUpdateChange" }); |
| | 24317 | |
| | 24318 | export type V2ThreadMetadataUpdateResponse__McpAppUi = { |
| | 24319 | readonly preferredModelDisplayMode: V2ThreadMetadataUpdateResponse__McpAppDisplayMode; |
| | 24320 | readonly resourceUri: string; |
| | 24321 | }; |
| | 24322 | export const V2ThreadMetadataUpdateResponse__McpAppUi = Schema.Struct({ |
| | 24323 | preferredModelDisplayMode: V2ThreadMetadataUpdateResponse__McpAppDisplayMode, |
| | 24324 | resourceUri: Schema.String, |
| | 24325 | }).annotate({ |
| | 24326 | description: |
| | 24327 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 24328 | identifier: "V2ThreadMetadataUpdateResponse__McpAppUi", |
| | 24329 | }); |
| | 24330 | |
| | 24331 | export type V2ThreadMetadataUpdateResponse__CollabAgentState = { |
| | 24332 | readonly message?: string | null; |
| | 24333 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentStatus; |
| | 24334 | }; |
| | 24335 | export const V2ThreadMetadataUpdateResponse__CollabAgentState = Schema.Struct({ |
| | 24336 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24337 | status: V2ThreadMetadataUpdateResponse__CollabAgentStatus, |
| | 24338 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__CollabAgentState" }); |
| | 24339 | |
| | 24340 | export type V2ThreadReadResponse__ThreadSection = { |
| | 24341 | readonly appearance?: V2ThreadReadResponse__ThreadSectionAppearance | null; |
| | 24342 | readonly id: string; |
| | 24343 | readonly name: string; |
| | 24344 | }; |
| | 24345 | export const V2ThreadReadResponse__ThreadSection = Schema.Struct({ |
| | 24346 | appearance: Schema.optionalKey( |
| | 24347 | Schema.Union([V2ThreadReadResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 24348 | description: "Optional appearance synchronized across clients.", |
| | 24349 | }), |
| | 24350 | ), |
| | 24351 | id: Schema.String.annotate({ |
| | 24352 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 24353 | }), |
| | 24354 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 24355 | }).annotate({ |
| | 24356 | description: "An independently persisted, user-visible thread section.", |
| | 24357 | identifier: "V2ThreadReadResponse__ThreadSection", |
| | 24358 | }); |
| 19492 | | 24359 | |
| 19493 | export type V2ThreadReadResponse__SubAgentSource = | 24360 | export type V2ThreadReadResponse__SubAgentSource = |
| 19494 | | "review" | 24361 | | "review" |
| ... | @@ -19556,15 +24423,15 @@ export type V2ThreadReadResponse__CodexErrorInfo = | ... | @@ -19556,15 +24423,15 @@ export type V2ThreadReadResponse__CodexErrorInfo = |
| 19556 | | "contextWindowExceeded" | 24423 | | "contextWindowExceeded" |
| 19557 | | "sessionBudgetExceeded" | 24424 | | "sessionBudgetExceeded" |
| 19558 | | "usageLimitExceeded" | 24425 | | "usageLimitExceeded" |
| | 24426 | | "rateLimitExceeded" |
| 19559 | | "serverOverloaded" | 24427 | | "serverOverloaded" |
| 19560 | | "cyberPolicy" | 24428 | | "cyberPolicy" |
| | 24429 | | "misalignmentPolicyViolation" |
| 19561 | | "internalServerError" | 24430 | | "internalServerError" |
| 19562 | | "unauthorized" | 24431 | | "unauthorized" |
| 19563 | | "badRequest" | 24432 | | "badRequest" |
| 19564 | | "threadRollbackFailed" | 24433 | | "threadRollbackFailed" |
| 19565 | | "sandboxError" | 24434 | | "sandboxError" |
| 19566 | | "rateLimitExceeded" | | |
| 19567 | | "misalignmentPolicyViolation" | | |
| 19568 | | "other" | 24435 | | "other" |
| 19569 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 24436 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 19570 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 24437 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| ... | @@ -19581,15 +24448,15 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( | ... | @@ -19581,15 +24448,15 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 19581 | "contextWindowExceeded", | 24448 | "contextWindowExceeded", |
| 19582 | "sessionBudgetExceeded", | 24449 | "sessionBudgetExceeded", |
| 19583 | "usageLimitExceeded", | 24450 | "usageLimitExceeded", |
| | 24451 | "rateLimitExceeded", |
| 19584 | "serverOverloaded", | 24452 | "serverOverloaded", |
| 19585 | "cyberPolicy", | 24453 | "cyberPolicy", |
| | 24454 | "misalignmentPolicyViolation", |
| 19586 | "internalServerError", | 24455 | "internalServerError", |
| 19587 | "unauthorized", | 24456 | "unauthorized", |
| 19588 | "badRequest", | 24457 | "badRequest", |
| 19589 | "threadRollbackFailed", | 24458 | "threadRollbackFailed", |
| 19590 | "sandboxError", | 24459 | "sandboxError", |
| 19591 | "rateLimitExceeded", | | |
| 19592 | "misalignmentPolicyViolation", | | |
| 19593 | "other", | 24460 | "other", |
| 19594 | ]), | 24461 | ]), |
| 19595 | Schema.Struct({ | 24462 | Schema.Struct({ |
| ... | @@ -19683,6 +24550,38 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( | ... | @@ -19683,6 +24550,38 @@ export const V2ThreadReadResponse__CodexErrorInfo = Schema.Union( |
| 19683 | identifier: "V2ThreadReadResponse__CodexErrorInfo", | 24550 | identifier: "V2ThreadReadResponse__CodexErrorInfo", |
| 19684 | }); | 24551 | }); |
| 19685 | | 24552 | |
| | 24553 | export type V2ThreadReadResponse__MisalignmentErrorDetails = { |
| | 24554 | readonly detailedExplanation?: string | null; |
| | 24555 | readonly errorType?: string | null; |
| | 24556 | readonly steer?: V2ThreadReadResponse__MisalignmentSteer | null; |
| | 24557 | }; |
| | 24558 | export const V2ThreadReadResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 24559 | detailedExplanation: Schema.optionalKey( |
| | 24560 | Schema.Union([ |
| | 24561 | Schema.String.annotate({ |
| | 24562 | description: |
| | 24563 | "A substantive localized explanation is required before offering continuation.", |
| | 24564 | }), |
| | 24565 | Schema.Null, |
| | 24566 | ]), |
| | 24567 | ), |
| | 24568 | errorType: Schema.optionalKey( |
| | 24569 | Schema.Union([ |
| | 24570 | Schema.String.annotate({ |
| | 24571 | description: |
| | 24572 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 24573 | }), |
| | 24574 | Schema.Null, |
| | 24575 | ]), |
| | 24576 | ), |
| | 24577 | steer: Schema.optionalKey( |
| | 24578 | Schema.Union([V2ThreadReadResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 24579 | description: |
| | 24580 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 24581 | }), |
| | 24582 | ), |
| | 24583 | }).annotate({ identifier: "V2ThreadReadResponse__MisalignmentErrorDetails" }); |
| | 24584 | |
| 19686 | export type V2ThreadReadResponse__TextElement = { | 24585 | export type V2ThreadReadResponse__TextElement = { |
| 19687 | readonly byteRange: V2ThreadReadResponse__ByteRange; | 24586 | readonly byteRange: V2ThreadReadResponse__ByteRange; |
| 19688 | readonly placeholder?: string | null; | 24587 | readonly placeholder?: string | null; |
| ... | @@ -19701,6 +24600,64 @@ export const V2ThreadReadResponse__TextElement = Schema.Struct({ | ... | @@ -19701,6 +24600,64 @@ export const V2ThreadReadResponse__TextElement = Schema.Struct({ |
| 19701 | ), | 24600 | ), |
| 19702 | }).annotate({ identifier: "V2ThreadReadResponse__TextElement" }); | 24601 | }).annotate({ identifier: "V2ThreadReadResponse__TextElement" }); |
| 19703 | | 24602 | |
| | 24603 | export type V2ThreadReadResponse__FunctionCallOutputContentItem = |
| | 24604 | | { readonly text: string; readonly type: "input_text" } |
| | 24605 | | { |
| | 24606 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; |
| | 24607 | readonly type: "input_image"; |
| | 24608 | readonly image_url: string; |
| | 24609 | } |
| | 24610 | | { |
| | 24611 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; |
| | 24612 | readonly type: "input_image"; |
| | 24613 | readonly file_id: string; |
| | 24614 | } |
| | 24615 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 24616 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 24617 | export const V2ThreadReadResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 24618 | [ |
| | 24619 | Schema.Struct({ |
| | 24620 | text: Schema.String, |
| | 24621 | type: Schema.Literal("input_text").annotate({ |
| | 24622 | title: "InputTextFunctionCallOutputContentItemType", |
| | 24623 | }), |
| | 24624 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 24625 | Schema.Union([ |
| | 24626 | Schema.Struct({ |
| | 24627 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), |
| | 24628 | type: Schema.Literal("input_image").annotate({ |
| | 24629 | title: "InputImageFunctionCallOutputContentItemType", |
| | 24630 | }), |
| | 24631 | image_url: Schema.String, |
| | 24632 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 24633 | Schema.Struct({ |
| | 24634 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), |
| | 24635 | type: Schema.Literal("input_image").annotate({ |
| | 24636 | title: "InputImageFunctionCallOutputContentItemType", |
| | 24637 | }), |
| | 24638 | file_id: Schema.String, |
| | 24639 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 24640 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 24641 | Schema.Struct({ |
| | 24642 | audio_url: Schema.String, |
| | 24643 | type: Schema.Literal("input_audio").annotate({ |
| | 24644 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 24645 | }), |
| | 24646 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 24647 | Schema.Struct({ |
| | 24648 | encrypted_content: Schema.String, |
| | 24649 | type: Schema.Literal("encrypted_content").annotate({ |
| | 24650 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 24651 | }), |
| | 24652 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 24653 | ], |
| | 24654 | { mode: "oneOf" }, |
| | 24655 | ).annotate({ |
| | 24656 | description: |
| | 24657 | "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.", |
| | 24658 | identifier: "V2ThreadReadResponse__FunctionCallOutputContentItem", |
| | 24659 | }); |
| | 24660 | |
| 19704 | export type V2ThreadReadResponse__MemoryCitation = { | 24661 | export type V2ThreadReadResponse__MemoryCitation = { |
| 19705 | readonly entries: ReadonlyArray<V2ThreadReadResponse__MemoryCitationEntry>; | 24662 | readonly entries: ReadonlyArray<V2ThreadReadResponse__MemoryCitationEntry>; |
| 19706 | readonly threadIds: ReadonlyArray<string>; | 24663 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -19710,6 +24667,48 @@ export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({ | ... | @@ -19710,6 +24667,48 @@ export const V2ThreadReadResponse__MemoryCitation = Schema.Struct({ |
| 19710 | threadIds: Schema.Array(Schema.String), | 24667 | threadIds: Schema.Array(Schema.String), |
| 19711 | }).annotate({ identifier: "V2ThreadReadResponse__MemoryCitation" }); | 24668 | }).annotate({ identifier: "V2ThreadReadResponse__MemoryCitation" }); |
| 19712 | | 24669 | |
| | 24670 | export type V2ThreadReadResponse__CommandAction = |
| | 24671 | | { |
| | 24672 | readonly command: string; |
| | 24673 | readonly name: string; |
| | 24674 | readonly path: V2ThreadReadResponse__LegacyAppPathString; |
| | 24675 | readonly type: "read"; |
| | 24676 | } |
| | 24677 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| | 24678 | | { |
| | 24679 | readonly command: string; |
| | 24680 | readonly path?: string | null; |
| | 24681 | readonly query?: string | null; |
| | 24682 | readonly type: "search"; |
| | 24683 | } |
| | 24684 | | { readonly command: string; readonly type: "unknown" }; |
| | 24685 | export const V2ThreadReadResponse__CommandAction = Schema.Union( |
| | 24686 | [ |
| | 24687 | Schema.Struct({ |
| | 24688 | command: Schema.String, |
| | 24689 | name: Schema.String, |
| | 24690 | path: V2ThreadReadResponse__LegacyAppPathString, |
| | 24691 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| | 24692 | }).annotate({ title: "ReadCommandAction" }), |
| | 24693 | Schema.Struct({ |
| | 24694 | command: Schema.String, |
| | 24695 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24696 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 24697 | }).annotate({ title: "ListFilesCommandAction" }), |
| | 24698 | Schema.Struct({ |
| | 24699 | command: Schema.String, |
| | 24700 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24701 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 24702 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 24703 | }).annotate({ title: "SearchCommandAction" }), |
| | 24704 | Schema.Struct({ |
| | 24705 | command: Schema.String, |
| | 24706 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| | 24707 | }).annotate({ title: "UnknownCommandAction" }), |
| | 24708 | ], |
| | 24709 | { mode: "oneOf" }, |
| | 24710 | ).annotate({ identifier: "V2ThreadReadResponse__CommandAction" }); |
| | 24711 | |
| 19713 | export type V2ThreadReadResponse__FileUpdateChange = { | 24712 | export type V2ThreadReadResponse__FileUpdateChange = { |
| 19714 | readonly diff: string; | 24713 | readonly diff: string; |
| 19715 | readonly kind: V2ThreadReadResponse__PatchChangeKind; | 24714 | readonly kind: V2ThreadReadResponse__PatchChangeKind; |
| ... | @@ -19721,6 +24720,19 @@ export const V2ThreadReadResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -19721,6 +24720,19 @@ export const V2ThreadReadResponse__FileUpdateChange = Schema.Struct({ |
| 19721 | path: Schema.String, | 24720 | path: Schema.String, |
| 19722 | }).annotate({ identifier: "V2ThreadReadResponse__FileUpdateChange" }); | 24721 | }).annotate({ identifier: "V2ThreadReadResponse__FileUpdateChange" }); |
| 19723 | | 24722 | |
| | 24723 | export type V2ThreadReadResponse__McpAppUi = { |
| | 24724 | readonly preferredModelDisplayMode: V2ThreadReadResponse__McpAppDisplayMode; |
| | 24725 | readonly resourceUri: string; |
| | 24726 | }; |
| | 24727 | export const V2ThreadReadResponse__McpAppUi = Schema.Struct({ |
| | 24728 | preferredModelDisplayMode: V2ThreadReadResponse__McpAppDisplayMode, |
| | 24729 | resourceUri: Schema.String, |
| | 24730 | }).annotate({ |
| | 24731 | description: |
| | 24732 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 24733 | identifier: "V2ThreadReadResponse__McpAppUi", |
| | 24734 | }); |
| | 24735 | |
| 19724 | export type V2ThreadReadResponse__CollabAgentState = { | 24736 | export type V2ThreadReadResponse__CollabAgentState = { |
| 19725 | readonly message?: string | null; | 24737 | readonly message?: string | null; |
| 19726 | readonly status: V2ThreadReadResponse__CollabAgentStatus; | 24738 | readonly status: V2ThreadReadResponse__CollabAgentStatus; |
| ... | @@ -19730,12 +24742,167 @@ export const V2ThreadReadResponse__CollabAgentState = Schema.Struct({ | ... | @@ -19730,12 +24742,167 @@ export const V2ThreadReadResponse__CollabAgentState = Schema.Struct({ |
| 19730 | status: V2ThreadReadResponse__CollabAgentStatus, | 24742 | status: V2ThreadReadResponse__CollabAgentStatus, |
| 19731 | }).annotate({ identifier: "V2ThreadReadResponse__CollabAgentState" }); | 24743 | }).annotate({ identifier: "V2ThreadReadResponse__CollabAgentState" }); |
| 19732 | | 24744 | |
| | 24745 | export type V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem = |
| | 24746 | | { |
| | 24747 | readonly id: string; |
| | 24748 | readonly realtimeSessionId: string; |
| | 24749 | readonly type: "realtimeSessionStarted"; |
| | 24750 | } |
| | 24751 | | { |
| | 24752 | readonly id: string; |
| | 24753 | readonly realtimeSessionId: string; |
| | 24754 | readonly role: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole; |
| | 24755 | readonly text: string; |
| | 24756 | readonly type: "transcriptSegment"; |
| | 24757 | } |
| | 24758 | | { |
| | 24759 | readonly id: string; |
| | 24760 | readonly realtimeSessionId: string; |
| | 24761 | readonly item_id: string; |
| | 24762 | readonly presentation: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation; |
| | 24763 | readonly turn_id: string; |
| | 24764 | readonly type: "bemItemPromoted"; |
| | 24765 | } |
| | 24766 | | { |
| | 24767 | readonly id: string; |
| | 24768 | readonly realtimeSessionId: string; |
| | 24769 | readonly outcome: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome; |
| | 24770 | readonly type: "realtimeSessionClosed"; |
| | 24771 | }; |
| | 24772 | export const V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem = Schema.Union( |
| | 24773 | [ |
| | 24774 | Schema.Struct({ |
| | 24775 | id: Schema.String, |
| | 24776 | realtimeSessionId: Schema.String, |
| | 24777 | type: Schema.Literal("realtimeSessionStarted").annotate({ |
| | 24778 | title: "RealtimeSessionStartedThreadRealtimeItemType", |
| | 24779 | }), |
| | 24780 | }).annotate({ title: "RealtimeSessionStartedThreadRealtimeItem" }), |
| | 24781 | Schema.Struct({ |
| | 24782 | id: Schema.String, |
| | 24783 | realtimeSessionId: Schema.String, |
| | 24784 | role: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeTranscriptRole, |
| | 24785 | text: Schema.String, |
| | 24786 | type: Schema.Literal("transcriptSegment").annotate({ |
| | 24787 | title: "TranscriptSegmentThreadRealtimeItemType", |
| | 24788 | }), |
| | 24789 | }).annotate({ title: "TranscriptSegmentThreadRealtimeItem" }), |
| | 24790 | Schema.Struct({ |
| | 24791 | id: Schema.String, |
| | 24792 | realtimeSessionId: Schema.String, |
| | 24793 | item_id: Schema.String, |
| | 24794 | presentation: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeBemItemPresentation, |
| | 24795 | turn_id: Schema.String, |
| | 24796 | type: Schema.Literal("bemItemPromoted").annotate({ |
| | 24797 | title: "BemItemPromotedThreadRealtimeItemType", |
| | 24798 | }), |
| | 24799 | }).annotate({ title: "BemItemPromotedThreadRealtimeItem" }), |
| | 24800 | Schema.Struct({ |
| | 24801 | id: Schema.String, |
| | 24802 | realtimeSessionId: Schema.String, |
| | 24803 | outcome: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeSessionOutcome, |
| | 24804 | type: Schema.Literal("realtimeSessionClosed").annotate({ |
| | 24805 | title: "RealtimeSessionClosedThreadRealtimeItemType", |
| | 24806 | }), |
| | 24807 | }).annotate({ title: "RealtimeSessionClosedThreadRealtimeItem" }), |
| | 24808 | ], |
| | 24809 | { mode: "oneOf" }, |
| | 24810 | ).annotate({ |
| | 24811 | description: "EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline.", |
| | 24812 | identifier: "V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem", |
| | 24813 | }); |
| | 24814 | |
| | 24815 | export type V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem = |
| | 24816 | | { |
| | 24817 | readonly id: string; |
| | 24818 | readonly realtimeSessionId: string; |
| | 24819 | readonly type: "realtimeSessionStarted"; |
| | 24820 | } |
| | 24821 | | { |
| | 24822 | readonly id: string; |
| | 24823 | readonly realtimeSessionId: string; |
| | 24824 | readonly role: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole; |
| | 24825 | readonly text: string; |
| | 24826 | readonly type: "transcriptSegment"; |
| | 24827 | } |
| | 24828 | | { |
| | 24829 | readonly id: string; |
| | 24830 | readonly realtimeSessionId: string; |
| | 24831 | readonly item_id: string; |
| | 24832 | readonly presentation: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation; |
| | 24833 | readonly turn_id: string; |
| | 24834 | readonly type: "bemItemPromoted"; |
| | 24835 | } |
| | 24836 | | { |
| | 24837 | readonly id: string; |
| | 24838 | readonly realtimeSessionId: string; |
| | 24839 | readonly outcome: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome; |
| | 24840 | readonly type: "realtimeSessionClosed"; |
| | 24841 | }; |
| | 24842 | export const V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem = Schema.Union( |
| | 24843 | [ |
| | 24844 | Schema.Struct({ |
| | 24845 | id: Schema.String, |
| | 24846 | realtimeSessionId: Schema.String, |
| | 24847 | type: Schema.Literal("realtimeSessionStarted").annotate({ |
| | 24848 | title: "RealtimeSessionStartedThreadRealtimeItemType", |
| | 24849 | }), |
| | 24850 | }).annotate({ title: "RealtimeSessionStartedThreadRealtimeItem" }), |
| | 24851 | Schema.Struct({ |
| | 24852 | id: Schema.String, |
| | 24853 | realtimeSessionId: Schema.String, |
| | 24854 | role: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeTranscriptRole, |
| | 24855 | text: Schema.String, |
| | 24856 | type: Schema.Literal("transcriptSegment").annotate({ |
| | 24857 | title: "TranscriptSegmentThreadRealtimeItemType", |
| | 24858 | }), |
| | 24859 | }).annotate({ title: "TranscriptSegmentThreadRealtimeItem" }), |
| | 24860 | Schema.Struct({ |
| | 24861 | id: Schema.String, |
| | 24862 | realtimeSessionId: Schema.String, |
| | 24863 | item_id: Schema.String, |
| | 24864 | presentation: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeBemItemPresentation, |
| | 24865 | turn_id: Schema.String, |
| | 24866 | type: Schema.Literal("bemItemPromoted").annotate({ |
| | 24867 | title: "BemItemPromotedThreadRealtimeItemType", |
| | 24868 | }), |
| | 24869 | }).annotate({ title: "BemItemPromotedThreadRealtimeItem" }), |
| | 24870 | Schema.Struct({ |
| | 24871 | id: Schema.String, |
| | 24872 | realtimeSessionId: Schema.String, |
| | 24873 | outcome: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeSessionOutcome, |
| | 24874 | type: Schema.Literal("realtimeSessionClosed").annotate({ |
| | 24875 | title: "RealtimeSessionClosedThreadRealtimeItemType", |
| | 24876 | }), |
| | 24877 | }).annotate({ title: "RealtimeSessionClosedThreadRealtimeItem" }), |
| | 24878 | ], |
| | 24879 | { mode: "oneOf" }, |
| | 24880 | ).annotate({ |
| | 24881 | description: "EXPERIMENTAL - a thread-scoped realtime item in the canonical timeline.", |
| | 24882 | identifier: "V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem", |
| | 24883 | }); |
| | 24884 | |
| | 24885 | export type V2ThreadResumeParams__ConfigurationReasoning = { |
| | 24886 | readonly effort: V2ThreadResumeParams__ReasoningEffort; |
| | 24887 | }; |
| | 24888 | export const V2ThreadResumeParams__ConfigurationReasoning = Schema.Struct({ |
| | 24889 | effort: V2ThreadResumeParams__ReasoningEffort, |
| | 24890 | }).annotate({ |
| | 24891 | description: "Reasoning settings interpreted by the backend for the routed model.", |
| | 24892 | identifier: "V2ThreadResumeParams__ConfigurationReasoning", |
| | 24893 | }); |
| | 24894 | |
| 19733 | export type V2ThreadResumeParams__FunctionCallOutputContentItem = | 24895 | export type V2ThreadResumeParams__FunctionCallOutputContentItem = |
| 19734 | | { readonly text: string; readonly type: "input_text" } | 24896 | | { readonly text: string; readonly type: "input_text" } |
| 19735 | | { | 24897 | | { |
| 19736 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; | 24898 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; |
| | 24899 | readonly type: "input_image"; |
| 19737 | readonly image_url: string; | 24900 | readonly image_url: string; |
| | 24901 | } |
| | 24902 | | { |
| | 24903 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; |
| 19738 | readonly type: "input_image"; | 24904 | readonly type: "input_image"; |
| | 24905 | readonly file_id: string; |
| 19739 | } | 24906 | } |
| 19740 | | { readonly audio_url: string; readonly type: "input_audio" } | 24907 | | { readonly audio_url: string; readonly type: "input_audio" } |
| 19741 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; | 24908 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| ... | @@ -19747,13 +24914,22 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( | ... | @@ -19747,13 +24914,22 @@ export const V2ThreadResumeParams__FunctionCallOutputContentItem = Schema.Union( |
| 19747 | title: "InputTextFunctionCallOutputContentItemType", | 24914 | title: "InputTextFunctionCallOutputContentItemType", |
| 19748 | }), | 24915 | }), |
| 19749 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), | 24916 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| 19750 | Schema.Struct({ | 24917 | Schema.Union([ |
| 19751 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), | 24918 | Schema.Struct({ |
| 19752 | image_url: Schema.String, | 24919 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), |
| 19753 | type: Schema.Literal("input_image").annotate({ | 24920 | type: Schema.Literal("input_image").annotate({ |
| 19754 | title: "InputImageFunctionCallOutputContentItemType", | 24921 | title: "InputImageFunctionCallOutputContentItemType", |
| 19755 | }), | 24922 | }), |
| 19756 | }).annotate({ title: "InputImageFunctionCallOutputContentItem" }), | 24923 | image_url: Schema.String, |
| | 24924 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 24925 | Schema.Struct({ |
| | 24926 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), |
| | 24927 | type: Schema.Literal("input_image").annotate({ |
| | 24928 | title: "InputImageFunctionCallOutputContentItemType", |
| | 24929 | }), |
| | 24930 | file_id: Schema.String, |
| | 24931 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 24932 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| 19757 | Schema.Struct({ | 24933 | Schema.Struct({ |
| 19758 | audio_url: Schema.String, | 24934 | audio_url: Schema.String, |
| 19759 | type: Schema.Literal("input_audio").annotate({ | 24935 | type: Schema.Literal("input_audio").annotate({ |
| ... | @@ -19778,8 +24954,13 @@ export type V2ThreadResumeParams__ContentItem = | ... | @@ -19778,8 +24954,13 @@ export type V2ThreadResumeParams__ContentItem = |
| 19778 | | { readonly text: string; readonly type: "input_text" } | 24954 | | { readonly text: string; readonly type: "input_text" } |
| 19779 | | { | 24955 | | { |
| 19780 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; | 24956 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; |
| | 24957 | readonly type: "input_image"; |
| 19781 | readonly image_url: string; | 24958 | readonly image_url: string; |
| | 24959 | } |
| | 24960 | | { |
| | 24961 | readonly detail?: V2ThreadResumeParams__ImageDetail | null; |
| 19782 | readonly type: "input_image"; | 24962 | readonly type: "input_image"; |
| | 24963 | readonly file_id: string; |
| 19783 | } | 24964 | } |
| 19784 | | { readonly audio_url: string; readonly type: "input_audio" } | 24965 | | { readonly audio_url: string; readonly type: "input_audio" } |
| 19785 | | { readonly text: string; readonly type: "output_text" }; | 24966 | | { readonly text: string; readonly type: "output_text" }; |
| ... | @@ -19789,11 +24970,18 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union( | ... | @@ -19789,11 +24970,18 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union( |
| 19789 | text: Schema.String, | 24970 | text: Schema.String, |
| 19790 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), | 24971 | type: Schema.Literal("input_text").annotate({ title: "InputTextContentItemType" }), |
| 19791 | }).annotate({ title: "InputTextContentItem" }), | 24972 | }).annotate({ title: "InputTextContentItem" }), |
| 19792 | Schema.Struct({ | 24973 | Schema.Union([ |
| 19793 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), | 24974 | Schema.Struct({ |
| 19794 | image_url: Schema.String, | 24975 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), |
| 19795 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), | 24976 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), |
| 19796 | }).annotate({ title: "InputImageContentItem" }), | 24977 | image_url: Schema.String, |
| | 24978 | }).annotate({ title: "ImageUrlContentItem" }), |
| | 24979 | Schema.Struct({ |
| | 24980 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__ImageDetail, Schema.Null])), |
| | 24981 | type: Schema.Literal("input_image").annotate({ title: "InputImageContentItemType" }), |
| | 24982 | file_id: Schema.String, |
| | 24983 | }).annotate({ title: "FileIdContentItem" }), |
| | 24984 | ]).annotate({ title: "InputImageContentItem" }), |
| 19797 | Schema.Struct({ | 24985 | Schema.Struct({ |
| 19798 | audio_url: Schema.String, | 24986 | audio_url: Schema.String, |
| 19799 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), | 24987 | type: Schema.Literal("input_audio").annotate({ title: "InputAudioContentItemType" }), |
| ... | @@ -19806,11 +24994,27 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union( | ... | @@ -19806,11 +24994,27 @@ export const V2ThreadResumeParams__ContentItem = Schema.Union( |
| 19806 | { mode: "oneOf" }, | 24994 | { mode: "oneOf" }, |
| 19807 | ).annotate({ identifier: "V2ThreadResumeParams__ContentItem" }); | 24995 | ).annotate({ identifier: "V2ThreadResumeParams__ContentItem" }); |
| 19808 | | 24996 | |
| | 24997 | export type V2ThreadResumeResponse__Settings = { |
| | 24998 | readonly developer_instructions?: string | null; |
| | 24999 | readonly model: string; |
| | 25000 | readonly reasoning_effort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| | 25001 | }; |
| | 25002 | export const V2ThreadResumeResponse__Settings = Schema.Struct({ |
| | 25003 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25004 | model: Schema.String, |
| | 25005 | reasoning_effort: Schema.optionalKey( |
| | 25006 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]), |
| | 25007 | ), |
| | 25008 | }).annotate({ |
| | 25009 | description: "Settings for a collaboration mode.", |
| | 25010 | identifier: "V2ThreadResumeResponse__Settings", |
| | 25011 | }); |
| | 25012 | |
| 19809 | export type V2ThreadResumeResponse__CommandAction = | 25013 | export type V2ThreadResumeResponse__CommandAction = |
| 19810 | | { | 25014 | | { |
| 19811 | readonly command: string; | 25015 | readonly command: string; |
| 19812 | readonly name: string; | 25016 | readonly name: string; |
| 19813 | readonly path: V2ThreadResumeResponse__AbsolutePathBuf; | 25017 | readonly path: V2ThreadResumeResponse__LegacyAppPathString; |
| 19814 | readonly type: "read"; | 25018 | readonly type: "read"; |
| 19815 | } | 25019 | } |
| 19816 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 25020 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -19826,7 +25030,7 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union( | ... | @@ -19826,7 +25030,7 @@ export const V2ThreadResumeResponse__CommandAction = Schema.Union( |
| 19826 | Schema.Struct({ | 25030 | Schema.Struct({ |
| 19827 | command: Schema.String, | 25031 | command: Schema.String, |
| 19828 | name: Schema.String, | 25032 | name: Schema.String, |
| 19829 | path: V2ThreadResumeResponse__AbsolutePathBuf, | 25033 | path: V2ThreadResumeResponse__LegacyAppPathString, |
| 19830 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 25034 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 19831 | }).annotate({ title: "ReadCommandAction" }), | 25035 | }).annotate({ title: "ReadCommandAction" }), |
| 19832 | Schema.Struct({ | 25036 | Schema.Struct({ |
| ... | @@ -19897,6 +25101,26 @@ export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union( | ... | @@ -19897,6 +25101,26 @@ export const V2ThreadResumeResponse__SandboxPolicy = Schema.Union( |
| 19897 | { mode: "oneOf" }, | 25101 | { mode: "oneOf" }, |
| 19898 | ).annotate({ identifier: "V2ThreadResumeResponse__SandboxPolicy" }); | 25102 | ).annotate({ identifier: "V2ThreadResumeResponse__SandboxPolicy" }); |
| 19899 | | 25103 | |
| | 25104 | export type V2ThreadResumeResponse__ThreadSection = { |
| | 25105 | readonly appearance?: V2ThreadResumeResponse__ThreadSectionAppearance | null; |
| | 25106 | readonly id: string; |
| | 25107 | readonly name: string; |
| | 25108 | }; |
| | 25109 | export const V2ThreadResumeResponse__ThreadSection = Schema.Struct({ |
| | 25110 | appearance: Schema.optionalKey( |
| | 25111 | Schema.Union([V2ThreadResumeResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 25112 | description: "Optional appearance synchronized across clients.", |
| | 25113 | }), |
| | 25114 | ), |
| | 25115 | id: Schema.String.annotate({ |
| | 25116 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 25117 | }), |
| | 25118 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 25119 | }).annotate({ |
| | 25120 | description: "An independently persisted, user-visible thread section.", |
| | 25121 | identifier: "V2ThreadResumeResponse__ThreadSection", |
| | 25122 | }); |
| | 25123 | |
| 19900 | export type V2ThreadResumeResponse__SubAgentSource = | 25124 | export type V2ThreadResumeResponse__SubAgentSource = |
| 19901 | | "review" | 25125 | | "review" |
| 19902 | | "compact" | 25126 | | "compact" |
| ... | @@ -19963,15 +25187,15 @@ export type V2ThreadResumeResponse__CodexErrorInfo = | ... | @@ -19963,15 +25187,15 @@ export type V2ThreadResumeResponse__CodexErrorInfo = |
| 19963 | | "contextWindowExceeded" | 25187 | | "contextWindowExceeded" |
| 19964 | | "sessionBudgetExceeded" | 25188 | | "sessionBudgetExceeded" |
| 19965 | | "usageLimitExceeded" | 25189 | | "usageLimitExceeded" |
| | 25190 | | "rateLimitExceeded" |
| 19966 | | "serverOverloaded" | 25191 | | "serverOverloaded" |
| 19967 | | "cyberPolicy" | 25192 | | "cyberPolicy" |
| | 25193 | | "misalignmentPolicyViolation" |
| 19968 | | "internalServerError" | 25194 | | "internalServerError" |
| 19969 | | "unauthorized" | 25195 | | "unauthorized" |
| 19970 | | "badRequest" | 25196 | | "badRequest" |
| 19971 | | "threadRollbackFailed" | 25197 | | "threadRollbackFailed" |
| 19972 | | "sandboxError" | 25198 | | "sandboxError" |
| 19973 | | "rateLimitExceeded" | | |
| 19974 | | "misalignmentPolicyViolation" | | |
| 19975 | | "other" | 25199 | | "other" |
| 19976 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 25200 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 19977 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 25201 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| ... | @@ -19988,15 +25212,15 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( | ... | @@ -19988,15 +25212,15 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 19988 | "contextWindowExceeded", | 25212 | "contextWindowExceeded", |
| 19989 | "sessionBudgetExceeded", | 25213 | "sessionBudgetExceeded", |
| 19990 | "usageLimitExceeded", | 25214 | "usageLimitExceeded", |
| | 25215 | "rateLimitExceeded", |
| 19991 | "serverOverloaded", | 25216 | "serverOverloaded", |
| 19992 | "cyberPolicy", | 25217 | "cyberPolicy", |
| | 25218 | "misalignmentPolicyViolation", |
| 19993 | "internalServerError", | 25219 | "internalServerError", |
| 19994 | "unauthorized", | 25220 | "unauthorized", |
| 19995 | "badRequest", | 25221 | "badRequest", |
| 19996 | "threadRollbackFailed", | 25222 | "threadRollbackFailed", |
| 19997 | "sandboxError", | 25223 | "sandboxError", |
| 19998 | "rateLimitExceeded", | | |
| 19999 | "misalignmentPolicyViolation", | | |
| 20000 | "other", | 25224 | "other", |
| 20001 | ]), | 25225 | ]), |
| 20002 | Schema.Struct({ | 25226 | Schema.Struct({ |
| ... | @@ -20090,6 +25314,38 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( | ... | @@ -20090,6 +25314,38 @@ export const V2ThreadResumeResponse__CodexErrorInfo = Schema.Union( |
| 20090 | identifier: "V2ThreadResumeResponse__CodexErrorInfo", | 25314 | identifier: "V2ThreadResumeResponse__CodexErrorInfo", |
| 20091 | }); | 25315 | }); |
| 20092 | | 25316 | |
| | 25317 | export type V2ThreadResumeResponse__MisalignmentErrorDetails = { |
| | 25318 | readonly detailedExplanation?: string | null; |
| | 25319 | readonly errorType?: string | null; |
| | 25320 | readonly steer?: V2ThreadResumeResponse__MisalignmentSteer | null; |
| | 25321 | }; |
| | 25322 | export const V2ThreadResumeResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 25323 | detailedExplanation: Schema.optionalKey( |
| | 25324 | Schema.Union([ |
| | 25325 | Schema.String.annotate({ |
| | 25326 | description: |
| | 25327 | "A substantive localized explanation is required before offering continuation.", |
| | 25328 | }), |
| | 25329 | Schema.Null, |
| | 25330 | ]), |
| | 25331 | ), |
| | 25332 | errorType: Schema.optionalKey( |
| | 25333 | Schema.Union([ |
| | 25334 | Schema.String.annotate({ |
| | 25335 | description: |
| | 25336 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 25337 | }), |
| | 25338 | Schema.Null, |
| | 25339 | ]), |
| | 25340 | ), |
| | 25341 | steer: Schema.optionalKey( |
| | 25342 | Schema.Union([V2ThreadResumeResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 25343 | description: |
| | 25344 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 25345 | }), |
| | 25346 | ), |
| | 25347 | }).annotate({ identifier: "V2ThreadResumeResponse__MisalignmentErrorDetails" }); |
| | 25348 | |
| 20093 | export type V2ThreadResumeResponse__TextElement = { | 25349 | export type V2ThreadResumeResponse__TextElement = { |
| 20094 | readonly byteRange: V2ThreadResumeResponse__ByteRange; | 25350 | readonly byteRange: V2ThreadResumeResponse__ByteRange; |
| 20095 | readonly placeholder?: string | null; | 25351 | readonly placeholder?: string | null; |
| ... | @@ -20108,6 +25364,68 @@ export const V2ThreadResumeResponse__TextElement = Schema.Struct({ | ... | @@ -20108,6 +25364,68 @@ export const V2ThreadResumeResponse__TextElement = Schema.Struct({ |
| 20108 | ), | 25364 | ), |
| 20109 | }).annotate({ identifier: "V2ThreadResumeResponse__TextElement" }); | 25365 | }).annotate({ identifier: "V2ThreadResumeResponse__TextElement" }); |
| 20110 | | 25366 | |
| | 25367 | export type V2ThreadResumeResponse__FunctionCallOutputContentItem = |
| | 25368 | | { readonly text: string; readonly type: "input_text" } |
| | 25369 | | { |
| | 25370 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; |
| | 25371 | readonly type: "input_image"; |
| | 25372 | readonly image_url: string; |
| | 25373 | } |
| | 25374 | | { |
| | 25375 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; |
| | 25376 | readonly type: "input_image"; |
| | 25377 | readonly file_id: string; |
| | 25378 | } |
| | 25379 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 25380 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 25381 | export const V2ThreadResumeResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 25382 | [ |
| | 25383 | Schema.Struct({ |
| | 25384 | text: Schema.String, |
| | 25385 | type: Schema.Literal("input_text").annotate({ |
| | 25386 | title: "InputTextFunctionCallOutputContentItemType", |
| | 25387 | }), |
| | 25388 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 25389 | Schema.Union([ |
| | 25390 | Schema.Struct({ |
| | 25391 | detail: Schema.optionalKey( |
| | 25392 | Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]), |
| | 25393 | ), |
| | 25394 | type: Schema.Literal("input_image").annotate({ |
| | 25395 | title: "InputImageFunctionCallOutputContentItemType", |
| | 25396 | }), |
| | 25397 | image_url: Schema.String, |
| | 25398 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 25399 | Schema.Struct({ |
| | 25400 | detail: Schema.optionalKey( |
| | 25401 | Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]), |
| | 25402 | ), |
| | 25403 | type: Schema.Literal("input_image").annotate({ |
| | 25404 | title: "InputImageFunctionCallOutputContentItemType", |
| | 25405 | }), |
| | 25406 | file_id: Schema.String, |
| | 25407 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 25408 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 25409 | Schema.Struct({ |
| | 25410 | audio_url: Schema.String, |
| | 25411 | type: Schema.Literal("input_audio").annotate({ |
| | 25412 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 25413 | }), |
| | 25414 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 25415 | Schema.Struct({ |
| | 25416 | encrypted_content: Schema.String, |
| | 25417 | type: Schema.Literal("encrypted_content").annotate({ |
| | 25418 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 25419 | }), |
| | 25420 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 25421 | ], |
| | 25422 | { mode: "oneOf" }, |
| | 25423 | ).annotate({ |
| | 25424 | description: |
| | 25425 | "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.", |
| | 25426 | identifier: "V2ThreadResumeResponse__FunctionCallOutputContentItem", |
| | 25427 | }); |
| | 25428 | |
| 20111 | export type V2ThreadResumeResponse__MemoryCitation = { | 25429 | export type V2ThreadResumeResponse__MemoryCitation = { |
| 20112 | readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>; | 25430 | readonly entries: ReadonlyArray<V2ThreadResumeResponse__MemoryCitationEntry>; |
| 20113 | readonly threadIds: ReadonlyArray<string>; | 25431 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -20128,6 +25446,19 @@ export const V2ThreadResumeResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -20128,6 +25446,19 @@ export const V2ThreadResumeResponse__FileUpdateChange = Schema.Struct({ |
| 20128 | path: Schema.String, | 25446 | path: Schema.String, |
| 20129 | }).annotate({ identifier: "V2ThreadResumeResponse__FileUpdateChange" }); | 25447 | }).annotate({ identifier: "V2ThreadResumeResponse__FileUpdateChange" }); |
| 20130 | | 25448 | |
| | 25449 | export type V2ThreadResumeResponse__McpAppUi = { |
| | 25450 | readonly preferredModelDisplayMode: V2ThreadResumeResponse__McpAppDisplayMode; |
| | 25451 | readonly resourceUri: string; |
| | 25452 | }; |
| | 25453 | export const V2ThreadResumeResponse__McpAppUi = Schema.Struct({ |
| | 25454 | preferredModelDisplayMode: V2ThreadResumeResponse__McpAppDisplayMode, |
| | 25455 | resourceUri: Schema.String, |
| | 25456 | }).annotate({ |
| | 25457 | description: |
| | 25458 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 25459 | identifier: "V2ThreadResumeResponse__McpAppUi", |
| | 25460 | }); |
| | 25461 | |
| 20131 | export type V2ThreadResumeResponse__CollabAgentState = { | 25462 | export type V2ThreadResumeResponse__CollabAgentState = { |
| 20132 | readonly message?: string | null; | 25463 | readonly message?: string | null; |
| 20133 | readonly status: V2ThreadResumeResponse__CollabAgentStatus; | 25464 | readonly status: V2ThreadResumeResponse__CollabAgentStatus; |
| ... | @@ -20137,92 +25468,70 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({ | ... | @@ -20137,92 +25468,70 @@ export const V2ThreadResumeResponse__CollabAgentState = Schema.Struct({ |
| 20137 | status: V2ThreadResumeResponse__CollabAgentStatus, | 25468 | status: V2ThreadResumeResponse__CollabAgentStatus, |
| 20138 | }).annotate({ identifier: "V2ThreadResumeResponse__CollabAgentState" }); | 25469 | }).annotate({ identifier: "V2ThreadResumeResponse__CollabAgentState" }); |
| 20139 | | 25470 | |
| 20140 | export type V2ThreadRollbackResponse__CommandAction = | 25471 | export type V2ThreadRevertResponse__ThreadSection = { |
| 20141 | | { | 25472 | readonly appearance?: V2ThreadRevertResponse__ThreadSectionAppearance | null; |
| 20142 | readonly command: string; | 25473 | readonly id: string; |
| 20143 | readonly name: string; | 25474 | readonly name: string; |
| 20144 | readonly path: V2ThreadRollbackResponse__AbsolutePathBuf; | 25475 | }; |
| 20145 | readonly type: "read"; | 25476 | export const V2ThreadRevertResponse__ThreadSection = Schema.Struct({ |
| 20146 | } | 25477 | appearance: Schema.optionalKey( |
| 20147 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 25478 | Schema.Union([V2ThreadRevertResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| 20148 | | { | 25479 | description: "Optional appearance synchronized across clients.", |
| 20149 | readonly command: string; | 25480 | }), |
| 20150 | readonly path?: string | null; | 25481 | ), |
| 20151 | readonly query?: string | null; | 25482 | id: Schema.String.annotate({ |
| 20152 | readonly type: "search"; | 25483 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| 20153 | } | 25484 | }), |
| 20154 | | { readonly command: string; readonly type: "unknown" }; | 25485 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| 20155 | export const V2ThreadRollbackResponse__CommandAction = Schema.Union( | 25486 | }).annotate({ |
| 20156 | [ | 25487 | description: "An independently persisted, user-visible thread section.", |
| 20157 | Schema.Struct({ | 25488 | identifier: "V2ThreadRevertResponse__ThreadSection", |
| 20158 | command: Schema.String, | 25489 | }); |
| 20159 | name: Schema.String, | | |
| 20160 | path: V2ThreadRollbackResponse__AbsolutePathBuf, | | |
| 20161 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 20162 | }).annotate({ title: "ReadCommandAction" }), | | |
| 20163 | Schema.Struct({ | | |
| 20164 | command: Schema.String, | | |
| 20165 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20166 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 20167 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 20168 | Schema.Struct({ | | |
| 20169 | command: Schema.String, | | |
| 20170 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20171 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20172 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 20173 | }).annotate({ title: "SearchCommandAction" }), | | |
| 20174 | Schema.Struct({ | | |
| 20175 | command: Schema.String, | | |
| 20176 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | | |
| 20177 | }).annotate({ title: "UnknownCommandAction" }), | | |
| 20178 | ], | | |
| 20179 | { mode: "oneOf" }, | | |
| 20180 | ).annotate({ identifier: "V2ThreadRollbackResponse__CommandAction" }); | | |
| 20181 | | 25490 | |
| 20182 | export type V2ThreadRollbackResponse__SubAgentSource = | 25491 | export type V2ThreadRevertResponse__SubAgentSource = |
| 20183 | | "review" | 25492 | | "review" |
| 20184 | | "compact" | 25493 | | "compact" |
| 20185 | | "memory_consolidation" | 25494 | | "memory_consolidation" |
| 20186 | | { | 25495 | | { |
| 20187 | readonly thread_spawn: { | 25496 | readonly thread_spawn: { |
| 20188 | readonly agent_nickname?: string | null; | 25497 | readonly agent_nickname?: string | null; |
| 20189 | readonly agent_path?: V2ThreadRollbackResponse__AgentPath | null; | 25498 | readonly agent_path?: V2ThreadRevertResponse__AgentPath | null; |
| 20190 | readonly agent_role?: string | null; | 25499 | readonly agent_role?: string | null; |
| 20191 | readonly depth: number; | 25500 | readonly depth: number; |
| 20192 | readonly parent_thread_id: V2ThreadRollbackResponse__ThreadId; | 25501 | readonly parent_thread_id: V2ThreadRevertResponse__ThreadId; |
| 20193 | }; | 25502 | }; |
| 20194 | } | 25503 | } |
| 20195 | | { readonly other: string }; | 25504 | | { readonly other: string }; |
| 20196 | export const V2ThreadRollbackResponse__SubAgentSource = Schema.Union( | 25505 | export const V2ThreadRevertResponse__SubAgentSource = Schema.Union( |
| 20197 | [ | 25506 | [ |
| 20198 | Schema.Literals(["review", "compact", "memory_consolidation"]), | 25507 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| 20199 | Schema.Struct({ | 25508 | Schema.Struct({ |
| 20200 | thread_spawn: Schema.Struct({ | 25509 | thread_spawn: Schema.Struct({ |
| 20201 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25510 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20202 | agent_path: Schema.optionalKey( | 25511 | agent_path: Schema.optionalKey( |
| 20203 | Schema.Union([V2ThreadRollbackResponse__AgentPath, Schema.Null]), | 25512 | Schema.Union([V2ThreadRevertResponse__AgentPath, Schema.Null]), |
| 20204 | ), | 25513 | ), |
| 20205 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25514 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20206 | depth: Schema.Number.annotate({ format: "int32" }).check( | 25515 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| 20207 | Schema.isInt().annotate({ expected: "an integer" }), | 25516 | Schema.isInt().annotate({ expected: "an integer" }), |
| 20208 | ), | 25517 | ), |
| 20209 | parent_thread_id: V2ThreadRollbackResponse__ThreadId, | 25518 | parent_thread_id: V2ThreadRevertResponse__ThreadId, |
| 20210 | }), | 25519 | }), |
| 20211 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | 25520 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| 20212 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | 25521 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| 20213 | ], | 25522 | ], |
| 20214 | { mode: "oneOf" }, | 25523 | { mode: "oneOf" }, |
| 20215 | ).annotate({ identifier: "V2ThreadRollbackResponse__SubAgentSource" }); | 25524 | ).annotate({ identifier: "V2ThreadRevertResponse__SubAgentSource" }); |
| 20216 | | 25525 | |
| 20217 | export type V2ThreadRollbackResponse__ThreadStatus = | 25526 | export type V2ThreadRevertResponse__ThreadStatus = |
| 20218 | | { readonly type: "notLoaded" } | 25527 | | { readonly type: "notLoaded" } |
| 20219 | | { readonly type: "idle" } | 25528 | | { readonly type: "idle" } |
| 20220 | | { readonly type: "systemError" } | 25529 | | { readonly type: "systemError" } |
| 20221 | | { | 25530 | | { |
| 20222 | readonly activeFlags: ReadonlyArray<V2ThreadRollbackResponse__ThreadActiveFlag>; | 25531 | readonly activeFlags: ReadonlyArray<V2ThreadRevertResponse__ThreadActiveFlag>; |
| 20223 | readonly type: "active"; | 25532 | readonly type: "active"; |
| 20224 | }; | 25533 | }; |
| 20225 | export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union( | 25534 | export const V2ThreadRevertResponse__ThreadStatus = Schema.Union( |
| 20226 | [ | 25535 | [ |
| 20227 | Schema.Struct({ | 25536 | Schema.Struct({ |
| 20228 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | 25537 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| ... | @@ -20234,26 +25543,26 @@ export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union( | ... | @@ -20234,26 +25543,26 @@ export const V2ThreadRollbackResponse__ThreadStatus = Schema.Union( |
| 20234 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | 25543 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| 20235 | }).annotate({ title: "SystemErrorThreadStatus" }), | 25544 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| 20236 | Schema.Struct({ | 25545 | Schema.Struct({ |
| 20237 | activeFlags: Schema.Array(V2ThreadRollbackResponse__ThreadActiveFlag), | 25546 | activeFlags: Schema.Array(V2ThreadRevertResponse__ThreadActiveFlag), |
| 20238 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | 25547 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| 20239 | }).annotate({ title: "ActiveThreadStatus" }), | 25548 | }).annotate({ title: "ActiveThreadStatus" }), |
| 20240 | ], | 25549 | ], |
| 20241 | { mode: "oneOf" }, | 25550 | { mode: "oneOf" }, |
| 20242 | ).annotate({ identifier: "V2ThreadRollbackResponse__ThreadStatus" }); | 25551 | ).annotate({ identifier: "V2ThreadRevertResponse__ThreadStatus" }); |
| 20243 | | 25552 | |
| 20244 | export type V2ThreadRollbackResponse__CodexErrorInfo = | 25553 | export type V2ThreadRevertResponse__CodexErrorInfo = |
| 20245 | | "contextWindowExceeded" | 25554 | | "contextWindowExceeded" |
| 20246 | | "sessionBudgetExceeded" | 25555 | | "sessionBudgetExceeded" |
| 20247 | | "usageLimitExceeded" | 25556 | | "usageLimitExceeded" |
| | 25557 | | "rateLimitExceeded" |
| 20248 | | "serverOverloaded" | 25558 | | "serverOverloaded" |
| 20249 | | "cyberPolicy" | 25559 | | "cyberPolicy" |
| | 25560 | | "misalignmentPolicyViolation" |
| 20250 | | "internalServerError" | 25561 | | "internalServerError" |
| 20251 | | "unauthorized" | 25562 | | "unauthorized" |
| 20252 | | "badRequest" | 25563 | | "badRequest" |
| 20253 | | "threadRollbackFailed" | 25564 | | "threadRollbackFailed" |
| 20254 | | "sandboxError" | 25565 | | "sandboxError" |
| 20255 | | "rateLimitExceeded" | | |
| 20256 | | "misalignmentPolicyViolation" | | |
| 20257 | | "other" | 25566 | | "other" |
| 20258 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 25567 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 20259 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 25568 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| ... | @@ -20261,24 +25570,24 @@ export type V2ThreadRollbackResponse__CodexErrorInfo = | ... | @@ -20261,24 +25570,24 @@ export type V2ThreadRollbackResponse__CodexErrorInfo = |
| 20261 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 25570 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 20262 | | { | 25571 | | { |
| 20263 | readonly activeTurnNotSteerable: { | 25572 | readonly activeTurnNotSteerable: { |
| 20264 | readonly turnKind: V2ThreadRollbackResponse__NonSteerableTurnKind; | 25573 | readonly turnKind: V2ThreadRevertResponse__NonSteerableTurnKind; |
| 20265 | }; | 25574 | }; |
| 20266 | }; | 25575 | }; |
| 20267 | export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | 25576 | export const V2ThreadRevertResponse__CodexErrorInfo = Schema.Union( |
| 20268 | [ | 25577 | [ |
| 20269 | Schema.Literals([ | 25578 | Schema.Literals([ |
| 20270 | "contextWindowExceeded", | 25579 | "contextWindowExceeded", |
| 20271 | "sessionBudgetExceeded", | 25580 | "sessionBudgetExceeded", |
| 20272 | "usageLimitExceeded", | 25581 | "usageLimitExceeded", |
| | 25582 | "rateLimitExceeded", |
| 20273 | "serverOverloaded", | 25583 | "serverOverloaded", |
| 20274 | "cyberPolicy", | 25584 | "cyberPolicy", |
| | 25585 | "misalignmentPolicyViolation", |
| 20275 | "internalServerError", | 25586 | "internalServerError", |
| 20276 | "unauthorized", | 25587 | "unauthorized", |
| 20277 | "badRequest", | 25588 | "badRequest", |
| 20278 | "threadRollbackFailed", | 25589 | "threadRollbackFailed", |
| 20279 | "sandboxError", | 25590 | "sandboxError", |
| 20280 | "rateLimitExceeded", | | |
| 20281 | "misalignmentPolicyViolation", | | |
| 20282 | "other", | 25591 | "other", |
| 20283 | ]), | 25592 | ]), |
| 20284 | Schema.Struct({ | 25593 | Schema.Struct({ |
| ... | @@ -20357,7 +25666,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | ... | @@ -20357,7 +25666,7 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 20357 | }), | 25666 | }), |
| 20358 | Schema.Struct({ | 25667 | Schema.Struct({ |
| 20359 | activeTurnNotSteerable: Schema.Struct({ | 25668 | activeTurnNotSteerable: Schema.Struct({ |
| 20360 | turnKind: V2ThreadRollbackResponse__NonSteerableTurnKind, | 25669 | turnKind: V2ThreadRevertResponse__NonSteerableTurnKind, |
| 20361 | }), | 25670 | }), |
| 20362 | }).annotate({ | 25671 | }).annotate({ |
| 20363 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 25672 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | @@ -20369,16 +25678,48 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( | ... | @@ -20369,16 +25678,48 @@ export const V2ThreadRollbackResponse__CodexErrorInfo = Schema.Union( |
| 20369 | ).annotate({ | 25678 | ).annotate({ |
| 20370 | description: | 25679 | description: |
| 20371 | "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.", | 25680 | "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.", |
| 20372 | identifier: "V2ThreadRollbackResponse__CodexErrorInfo", | 25681 | identifier: "V2ThreadRevertResponse__CodexErrorInfo", |
| 20373 | }); | 25682 | }); |
| 20374 | | 25683 | |
| 20375 | export type V2ThreadRollbackResponse__TextElement = { | 25684 | export type V2ThreadRevertResponse__MisalignmentErrorDetails = { |
| 20376 | readonly byteRange: V2ThreadRollbackResponse__ByteRange; | 25685 | readonly detailedExplanation?: string | null; |
| | 25686 | readonly errorType?: string | null; |
| | 25687 | readonly steer?: V2ThreadRevertResponse__MisalignmentSteer | null; |
| | 25688 | }; |
| | 25689 | export const V2ThreadRevertResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 25690 | detailedExplanation: Schema.optionalKey( |
| | 25691 | Schema.Union([ |
| | 25692 | Schema.String.annotate({ |
| | 25693 | description: |
| | 25694 | "A substantive localized explanation is required before offering continuation.", |
| | 25695 | }), |
| | 25696 | Schema.Null, |
| | 25697 | ]), |
| | 25698 | ), |
| | 25699 | errorType: Schema.optionalKey( |
| | 25700 | Schema.Union([ |
| | 25701 | Schema.String.annotate({ |
| | 25702 | description: |
| | 25703 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 25704 | }), |
| | 25705 | Schema.Null, |
| | 25706 | ]), |
| | 25707 | ), |
| | 25708 | steer: Schema.optionalKey( |
| | 25709 | Schema.Union([V2ThreadRevertResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 25710 | description: |
| | 25711 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 25712 | }), |
| | 25713 | ), |
| | 25714 | }).annotate({ identifier: "V2ThreadRevertResponse__MisalignmentErrorDetails" }); |
| | 25715 | |
| | 25716 | export type V2ThreadRevertResponse__TextElement = { |
| | 25717 | readonly byteRange: V2ThreadRevertResponse__ByteRange; |
| 20377 | readonly placeholder?: string | null; | 25718 | readonly placeholder?: string | null; |
| 20378 | }; | 25719 | }; |
| 20379 | export const V2ThreadRollbackResponse__TextElement = Schema.Struct({ | 25720 | export const V2ThreadRevertResponse__TextElement = Schema.Struct({ |
| 20380 | byteRange: Schema.suspend( | 25721 | byteRange: Schema.suspend( |
| 20381 | (): Schema.Codec<V2ThreadRollbackResponse__ByteRange> => V2ThreadRollbackResponse__ByteRange, | 25722 | (): Schema.Codec<V2ThreadRevertResponse__ByteRange> => V2ThreadRevertResponse__ByteRange, |
| 20382 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), | 25723 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 20383 | placeholder: Schema.optionalKey( | 25724 | placeholder: Schema.optionalKey( |
| 20384 | Schema.Union([ | 25725 | Schema.Union([ |
| ... | @@ -20388,36 +25729,213 @@ export const V2ThreadRollbackResponse__TextElement = Schema.Struct({ | ... | @@ -20388,36 +25729,213 @@ export const V2ThreadRollbackResponse__TextElement = Schema.Struct({ |
| 20388 | Schema.Null, | 25729 | Schema.Null, |
| 20389 | ]), | 25730 | ]), |
| 20390 | ), | 25731 | ), |
| 20391 | }).annotate({ identifier: "V2ThreadRollbackResponse__TextElement" }); | 25732 | }).annotate({ identifier: "V2ThreadRevertResponse__TextElement" }); |
| | 25733 | |
| | 25734 | export type V2ThreadRevertResponse__FunctionCallOutputContentItem = |
| | 25735 | | { readonly text: string; readonly type: "input_text" } |
| | 25736 | | { |
| | 25737 | readonly detail?: V2ThreadRevertResponse__ImageDetail | null; |
| | 25738 | readonly type: "input_image"; |
| | 25739 | readonly image_url: string; |
| | 25740 | } |
| | 25741 | | { |
| | 25742 | readonly detail?: V2ThreadRevertResponse__ImageDetail | null; |
| | 25743 | readonly type: "input_image"; |
| | 25744 | readonly file_id: string; |
| | 25745 | } |
| | 25746 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 25747 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 25748 | export const V2ThreadRevertResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 25749 | [ |
| | 25750 | Schema.Struct({ |
| | 25751 | text: Schema.String, |
| | 25752 | type: Schema.Literal("input_text").annotate({ |
| | 25753 | title: "InputTextFunctionCallOutputContentItemType", |
| | 25754 | }), |
| | 25755 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 25756 | Schema.Union([ |
| | 25757 | Schema.Struct({ |
| | 25758 | detail: Schema.optionalKey( |
| | 25759 | Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]), |
| | 25760 | ), |
| | 25761 | type: Schema.Literal("input_image").annotate({ |
| | 25762 | title: "InputImageFunctionCallOutputContentItemType", |
| | 25763 | }), |
| | 25764 | image_url: Schema.String, |
| | 25765 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 25766 | Schema.Struct({ |
| | 25767 | detail: Schema.optionalKey( |
| | 25768 | Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]), |
| | 25769 | ), |
| | 25770 | type: Schema.Literal("input_image").annotate({ |
| | 25771 | title: "InputImageFunctionCallOutputContentItemType", |
| | 25772 | }), |
| | 25773 | file_id: Schema.String, |
| | 25774 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 25775 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 25776 | Schema.Struct({ |
| | 25777 | audio_url: Schema.String, |
| | 25778 | type: Schema.Literal("input_audio").annotate({ |
| | 25779 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 25780 | }), |
| | 25781 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 25782 | Schema.Struct({ |
| | 25783 | encrypted_content: Schema.String, |
| | 25784 | type: Schema.Literal("encrypted_content").annotate({ |
| | 25785 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 25786 | }), |
| | 25787 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 25788 | ], |
| | 25789 | { mode: "oneOf" }, |
| | 25790 | ).annotate({ |
| | 25791 | description: |
| | 25792 | "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.", |
| | 25793 | identifier: "V2ThreadRevertResponse__FunctionCallOutputContentItem", |
| | 25794 | }); |
| 20392 | | 25795 | |
| 20393 | export type V2ThreadRollbackResponse__MemoryCitation = { | 25796 | export type V2ThreadRevertResponse__MemoryCitation = { |
| 20394 | readonly entries: ReadonlyArray<V2ThreadRollbackResponse__MemoryCitationEntry>; | 25797 | readonly entries: ReadonlyArray<V2ThreadRevertResponse__MemoryCitationEntry>; |
| 20395 | readonly threadIds: ReadonlyArray<string>; | 25798 | readonly threadIds: ReadonlyArray<string>; |
| 20396 | }; | 25799 | }; |
| 20397 | export const V2ThreadRollbackResponse__MemoryCitation = Schema.Struct({ | 25800 | export const V2ThreadRevertResponse__MemoryCitation = Schema.Struct({ |
| 20398 | entries: Schema.Array(V2ThreadRollbackResponse__MemoryCitationEntry), | 25801 | entries: Schema.Array(V2ThreadRevertResponse__MemoryCitationEntry), |
| 20399 | threadIds: Schema.Array(Schema.String), | 25802 | threadIds: Schema.Array(Schema.String), |
| 20400 | }).annotate({ identifier: "V2ThreadRollbackResponse__MemoryCitation" }); | 25803 | }).annotate({ identifier: "V2ThreadRevertResponse__MemoryCitation" }); |
| | 25804 | |
| | 25805 | export type V2ThreadRevertResponse__CommandAction = |
| | 25806 | | { |
| | 25807 | readonly command: string; |
| | 25808 | readonly name: string; |
| | 25809 | readonly path: V2ThreadRevertResponse__LegacyAppPathString; |
| | 25810 | readonly type: "read"; |
| | 25811 | } |
| | 25812 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| | 25813 | | { |
| | 25814 | readonly command: string; |
| | 25815 | readonly path?: string | null; |
| | 25816 | readonly query?: string | null; |
| | 25817 | readonly type: "search"; |
| | 25818 | } |
| | 25819 | | { readonly command: string; readonly type: "unknown" }; |
| | 25820 | export const V2ThreadRevertResponse__CommandAction = Schema.Union( |
| | 25821 | [ |
| | 25822 | Schema.Struct({ |
| | 25823 | command: Schema.String, |
| | 25824 | name: Schema.String, |
| | 25825 | path: V2ThreadRevertResponse__LegacyAppPathString, |
| | 25826 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| | 25827 | }).annotate({ title: "ReadCommandAction" }), |
| | 25828 | Schema.Struct({ |
| | 25829 | command: Schema.String, |
| | 25830 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25831 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 25832 | }).annotate({ title: "ListFilesCommandAction" }), |
| | 25833 | Schema.Struct({ |
| | 25834 | command: Schema.String, |
| | 25835 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25836 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 25837 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 25838 | }).annotate({ title: "SearchCommandAction" }), |
| | 25839 | Schema.Struct({ |
| | 25840 | command: Schema.String, |
| | 25841 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| | 25842 | }).annotate({ title: "UnknownCommandAction" }), |
| | 25843 | ], |
| | 25844 | { mode: "oneOf" }, |
| | 25845 | ).annotate({ identifier: "V2ThreadRevertResponse__CommandAction" }); |
| 20401 | | 25846 | |
| 20402 | export type V2ThreadRollbackResponse__FileUpdateChange = { | 25847 | export type V2ThreadRevertResponse__FileUpdateChange = { |
| 20403 | readonly diff: string; | 25848 | readonly diff: string; |
| 20404 | readonly kind: V2ThreadRollbackResponse__PatchChangeKind; | 25849 | readonly kind: V2ThreadRevertResponse__PatchChangeKind; |
| 20405 | readonly path: string; | 25850 | readonly path: string; |
| 20406 | }; | 25851 | }; |
| 20407 | export const V2ThreadRollbackResponse__FileUpdateChange = Schema.Struct({ | 25852 | export const V2ThreadRevertResponse__FileUpdateChange = Schema.Struct({ |
| 20408 | diff: Schema.String, | 25853 | diff: Schema.String, |
| 20409 | kind: V2ThreadRollbackResponse__PatchChangeKind, | 25854 | kind: V2ThreadRevertResponse__PatchChangeKind, |
| 20410 | path: Schema.String, | 25855 | path: Schema.String, |
| 20411 | }).annotate({ identifier: "V2ThreadRollbackResponse__FileUpdateChange" }); | 25856 | }).annotate({ identifier: "V2ThreadRevertResponse__FileUpdateChange" }); |
| | 25857 | |
| | 25858 | export type V2ThreadRevertResponse__McpAppUi = { |
| | 25859 | readonly preferredModelDisplayMode: V2ThreadRevertResponse__McpAppDisplayMode; |
| | 25860 | readonly resourceUri: string; |
| | 25861 | }; |
| | 25862 | export const V2ThreadRevertResponse__McpAppUi = Schema.Struct({ |
| | 25863 | preferredModelDisplayMode: V2ThreadRevertResponse__McpAppDisplayMode, |
| | 25864 | resourceUri: Schema.String, |
| | 25865 | }).annotate({ |
| | 25866 | description: |
| | 25867 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 25868 | identifier: "V2ThreadRevertResponse__McpAppUi", |
| | 25869 | }); |
| 20412 | | 25870 | |
| 20413 | export type V2ThreadRollbackResponse__CollabAgentState = { | 25871 | export type V2ThreadRevertResponse__CollabAgentState = { |
| 20414 | readonly message?: string | null; | 25872 | readonly message?: string | null; |
| 20415 | readonly status: V2ThreadRollbackResponse__CollabAgentStatus; | 25873 | readonly status: V2ThreadRevertResponse__CollabAgentStatus; |
| 20416 | }; | 25874 | }; |
| 20417 | export const V2ThreadRollbackResponse__CollabAgentState = Schema.Struct({ | 25875 | export const V2ThreadRevertResponse__CollabAgentState = Schema.Struct({ |
| 20418 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 25876 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 20419 | status: V2ThreadRollbackResponse__CollabAgentStatus, | 25877 | status: V2ThreadRevertResponse__CollabAgentStatus, |
| 20420 | }).annotate({ identifier: "V2ThreadRollbackResponse__CollabAgentState" }); | 25878 | }).annotate({ identifier: "V2ThreadRevertResponse__CollabAgentState" }); |
| | 25879 | |
| | 25880 | export type V2ThreadSectionCreateResponse__ThreadSection = { |
| | 25881 | readonly appearance?: V2ThreadSectionCreateResponse__ThreadSectionAppearance | null; |
| | 25882 | readonly id: string; |
| | 25883 | readonly name: string; |
| | 25884 | }; |
| | 25885 | export const V2ThreadSectionCreateResponse__ThreadSection = Schema.Struct({ |
| | 25886 | appearance: Schema.optionalKey( |
| | 25887 | Schema.Union([V2ThreadSectionCreateResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 25888 | description: "Optional appearance synchronized across clients.", |
| | 25889 | }), |
| | 25890 | ), |
| | 25891 | id: Schema.String.annotate({ |
| | 25892 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 25893 | }), |
| | 25894 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 25895 | }).annotate({ |
| | 25896 | description: "An independently persisted, user-visible thread section.", |
| | 25897 | identifier: "V2ThreadSectionCreateResponse__ThreadSection", |
| | 25898 | }); |
| | 25899 | |
| | 25900 | export type V2ThreadSectionListResponse__ThreadSection = { |
| | 25901 | readonly appearance?: V2ThreadSectionListResponse__ThreadSectionAppearance | null; |
| | 25902 | readonly id: string; |
| | 25903 | readonly name: string; |
| | 25904 | }; |
| | 25905 | export const V2ThreadSectionListResponse__ThreadSection = Schema.Struct({ |
| | 25906 | appearance: Schema.optionalKey( |
| | 25907 | Schema.Union([V2ThreadSectionListResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 25908 | description: "Optional appearance synchronized across clients.", |
| | 25909 | }), |
| | 25910 | ), |
| | 25911 | id: Schema.String.annotate({ |
| | 25912 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 25913 | }), |
| | 25914 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 25915 | }).annotate({ |
| | 25916 | description: "An independently persisted, user-visible thread section.", |
| | 25917 | identifier: "V2ThreadSectionListResponse__ThreadSection", |
| | 25918 | }); |
| | 25919 | |
| | 25920 | export type V2ThreadSectionUpdateResponse__ThreadSection = { |
| | 25921 | readonly appearance?: V2ThreadSectionUpdateResponse__ThreadSectionAppearance | null; |
| | 25922 | readonly id: string; |
| | 25923 | readonly name: string; |
| | 25924 | }; |
| | 25925 | export const V2ThreadSectionUpdateResponse__ThreadSection = Schema.Struct({ |
| | 25926 | appearance: Schema.optionalKey( |
| | 25927 | Schema.Union([V2ThreadSectionUpdateResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 25928 | description: "Optional appearance synchronized across clients.", |
| | 25929 | }), |
| | 25930 | ), |
| | 25931 | id: Schema.String.annotate({ |
| | 25932 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 25933 | }), |
| | 25934 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 25935 | }).annotate({ |
| | 25936 | description: "An independently persisted, user-visible thread section.", |
| | 25937 | identifier: "V2ThreadSectionUpdateResponse__ThreadSection", |
| | 25938 | }); |
| 20421 | | 25939 | |
| 20422 | export type V2ThreadSettingsUpdatedNotification__Settings = { | 25940 | export type V2ThreadSettingsUpdatedNotification__Settings = { |
| 20423 | readonly developer_instructions?: string | null; | 25941 | readonly developer_instructions?: string | null; |
| ... | @@ -20486,60 +26004,38 @@ export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union( | ... | @@ -20486,60 +26004,38 @@ export const V2ThreadSettingsUpdatedNotification__SandboxPolicy = Schema.Union( |
| 20486 | { mode: "oneOf" }, | 26004 | { mode: "oneOf" }, |
| 20487 | ).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__SandboxPolicy" }); | 26005 | ).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__SandboxPolicy" }); |
| 20488 | | 26006 | |
| 20489 | export type V2ThreadStartedNotification__CommandAction = | 26007 | export type V2ThreadStartedNotification__ThreadSection = { |
| | 26008 | readonly appearance?: V2ThreadStartedNotification__ThreadSectionAppearance | null; |
| | 26009 | readonly id: string; |
| | 26010 | readonly name: string; |
| | 26011 | }; |
| | 26012 | export const V2ThreadStartedNotification__ThreadSection = Schema.Struct({ |
| | 26013 | appearance: Schema.optionalKey( |
| | 26014 | Schema.Union([V2ThreadStartedNotification__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 26015 | description: "Optional appearance synchronized across clients.", |
| | 26016 | }), |
| | 26017 | ), |
| | 26018 | id: Schema.String.annotate({ |
| | 26019 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 26020 | }), |
| | 26021 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 26022 | }).annotate({ |
| | 26023 | description: "An independently persisted, user-visible thread section.", |
| | 26024 | identifier: "V2ThreadStartedNotification__ThreadSection", |
| | 26025 | }); |
| | 26026 | |
| | 26027 | export type V2ThreadStartedNotification__SubAgentSource = |
| | 26028 | | "review" |
| | 26029 | | "compact" |
| | 26030 | | "memory_consolidation" |
| 20490 | | { | 26031 | | { |
| 20491 | readonly command: string; | 26032 | readonly thread_spawn: { |
| 20492 | readonly name: string; | 26033 | readonly agent_nickname?: string | null; |
| 20493 | readonly path: V2ThreadStartedNotification__AbsolutePathBuf; | 26034 | readonly agent_path?: V2ThreadStartedNotification__AgentPath | null; |
| 20494 | readonly type: "read"; | 26035 | readonly agent_role?: string | null; |
| 20495 | } | 26036 | readonly depth: number; |
| 20496 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 26037 | readonly parent_thread_id: V2ThreadStartedNotification__ThreadId; |
| 20497 | | { | 26038 | }; |
| 20498 | readonly command: string; | | |
| 20499 | readonly path?: string | null; | | |
| 20500 | readonly query?: string | null; | | |
| 20501 | readonly type: "search"; | | |
| 20502 | } | | |
| 20503 | | { readonly command: string; readonly type: "unknown" }; | | |
| 20504 | export const V2ThreadStartedNotification__CommandAction = Schema.Union( | | |
| 20505 | [ | | |
| 20506 | Schema.Struct({ | | |
| 20507 | command: Schema.String, | | |
| 20508 | name: Schema.String, | | |
| 20509 | path: V2ThreadStartedNotification__AbsolutePathBuf, | | |
| 20510 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 20511 | }).annotate({ title: "ReadCommandAction" }), | | |
| 20512 | Schema.Struct({ | | |
| 20513 | command: Schema.String, | | |
| 20514 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20515 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 20516 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 20517 | Schema.Struct({ | | |
| 20518 | command: Schema.String, | | |
| 20519 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20520 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 20521 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 20522 | }).annotate({ title: "SearchCommandAction" }), | | |
| 20523 | Schema.Struct({ | | |
| 20524 | command: Schema.String, | | |
| 20525 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | | |
| 20526 | }).annotate({ title: "UnknownCommandAction" }), | | |
| 20527 | ], | | |
| 20528 | { mode: "oneOf" }, | | |
| 20529 | ).annotate({ identifier: "V2ThreadStartedNotification__CommandAction" }); | | |
| 20530 | | | |
| 20531 | export type V2ThreadStartedNotification__SubAgentSource = | | |
| 20532 | | "review" | | |
| 20533 | | "compact" | | |
| 20534 | | "memory_consolidation" | | |
| 20535 | | { | | |
| 20536 | readonly thread_spawn: { | | |
| 20537 | readonly agent_nickname?: string | null; | | |
| 20538 | readonly agent_path?: V2ThreadStartedNotification__AgentPath | null; | | |
| 20539 | readonly agent_role?: string | null; | | |
| 20540 | readonly depth: number; | | |
| 20541 | readonly parent_thread_id: V2ThreadStartedNotification__ThreadId; | | |
| 20542 | }; | | |
| 20543 | } | 26039 | } |
| 20544 | | { readonly other: string }; | 26040 | | { readonly other: string }; |
| 20545 | export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( | 26041 | export const V2ThreadStartedNotification__SubAgentSource = Schema.Union( |
| ... | @@ -20594,8 +26090,10 @@ export type V2ThreadStartedNotification__CodexErrorInfo = | ... | @@ -20594,8 +26090,10 @@ export type V2ThreadStartedNotification__CodexErrorInfo = |
| 20594 | | "contextWindowExceeded" | 26090 | | "contextWindowExceeded" |
| 20595 | | "sessionBudgetExceeded" | 26091 | | "sessionBudgetExceeded" |
| 20596 | | "usageLimitExceeded" | 26092 | | "usageLimitExceeded" |
| | 26093 | | "rateLimitExceeded" |
| 20597 | | "serverOverloaded" | 26094 | | "serverOverloaded" |
| 20598 | | "cyberPolicy" | 26095 | | "cyberPolicy" |
| | 26096 | | "misalignmentPolicyViolation" |
| 20599 | | "internalServerError" | 26097 | | "internalServerError" |
| 20600 | | "unauthorized" | 26098 | | "unauthorized" |
| 20601 | | "badRequest" | 26099 | | "badRequest" |
| ... | @@ -20617,8 +26115,10 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -20617,8 +26115,10 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 20617 | "contextWindowExceeded", | 26115 | "contextWindowExceeded", |
| 20618 | "sessionBudgetExceeded", | 26116 | "sessionBudgetExceeded", |
| 20619 | "usageLimitExceeded", | 26117 | "usageLimitExceeded", |
| | 26118 | "rateLimitExceeded", |
| 20620 | "serverOverloaded", | 26119 | "serverOverloaded", |
| 20621 | "cyberPolicy", | 26120 | "cyberPolicy", |
| | 26121 | "misalignmentPolicyViolation", |
| 20622 | "internalServerError", | 26122 | "internalServerError", |
| 20623 | "unauthorized", | 26123 | "unauthorized", |
| 20624 | "badRequest", | 26124 | "badRequest", |
| ... | @@ -20717,6 +26217,38 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -20717,6 +26217,38 @@ export const V2ThreadStartedNotification__CodexErrorInfo = Schema.Union( |
| 20717 | identifier: "V2ThreadStartedNotification__CodexErrorInfo", | 26217 | identifier: "V2ThreadStartedNotification__CodexErrorInfo", |
| 20718 | }); | 26218 | }); |
| 20719 | | 26219 | |
| | 26220 | export type V2ThreadStartedNotification__MisalignmentErrorDetails = { |
| | 26221 | readonly detailedExplanation?: string | null; |
| | 26222 | readonly errorType?: string | null; |
| | 26223 | readonly steer?: V2ThreadStartedNotification__MisalignmentSteer | null; |
| | 26224 | }; |
| | 26225 | export const V2ThreadStartedNotification__MisalignmentErrorDetails = Schema.Struct({ |
| | 26226 | detailedExplanation: Schema.optionalKey( |
| | 26227 | Schema.Union([ |
| | 26228 | Schema.String.annotate({ |
| | 26229 | description: |
| | 26230 | "A substantive localized explanation is required before offering continuation.", |
| | 26231 | }), |
| | 26232 | Schema.Null, |
| | 26233 | ]), |
| | 26234 | ), |
| | 26235 | errorType: Schema.optionalKey( |
| | 26236 | Schema.Union([ |
| | 26237 | Schema.String.annotate({ |
| | 26238 | description: |
| | 26239 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 26240 | }), |
| | 26241 | Schema.Null, |
| | 26242 | ]), |
| | 26243 | ), |
| | 26244 | steer: Schema.optionalKey( |
| | 26245 | Schema.Union([V2ThreadStartedNotification__MisalignmentSteer, Schema.Null]).annotate({ |
| | 26246 | description: |
| | 26247 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 26248 | }), |
| | 26249 | ), |
| | 26250 | }).annotate({ identifier: "V2ThreadStartedNotification__MisalignmentErrorDetails" }); |
| | 26251 | |
| 20720 | export type V2ThreadStartedNotification__TextElement = { | 26252 | export type V2ThreadStartedNotification__TextElement = { |
| 20721 | readonly byteRange: V2ThreadStartedNotification__ByteRange; | 26253 | readonly byteRange: V2ThreadStartedNotification__ByteRange; |
| 20722 | readonly placeholder?: string | null; | 26254 | readonly placeholder?: string | null; |
| ... | @@ -20736,6 +26268,68 @@ export const V2ThreadStartedNotification__TextElement = Schema.Struct({ | ... | @@ -20736,6 +26268,68 @@ export const V2ThreadStartedNotification__TextElement = Schema.Struct({ |
| 20736 | ), | 26268 | ), |
| 20737 | }).annotate({ identifier: "V2ThreadStartedNotification__TextElement" }); | 26269 | }).annotate({ identifier: "V2ThreadStartedNotification__TextElement" }); |
| 20738 | | 26270 | |
| | 26271 | export type V2ThreadStartedNotification__FunctionCallOutputContentItem = |
| | 26272 | | { readonly text: string; readonly type: "input_text" } |
| | 26273 | | { |
| | 26274 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; |
| | 26275 | readonly type: "input_image"; |
| | 26276 | readonly image_url: string; |
| | 26277 | } |
| | 26278 | | { |
| | 26279 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; |
| | 26280 | readonly type: "input_image"; |
| | 26281 | readonly file_id: string; |
| | 26282 | } |
| | 26283 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 26284 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 26285 | export const V2ThreadStartedNotification__FunctionCallOutputContentItem = Schema.Union( |
| | 26286 | [ |
| | 26287 | Schema.Struct({ |
| | 26288 | text: Schema.String, |
| | 26289 | type: Schema.Literal("input_text").annotate({ |
| | 26290 | title: "InputTextFunctionCallOutputContentItemType", |
| | 26291 | }), |
| | 26292 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 26293 | Schema.Union([ |
| | 26294 | Schema.Struct({ |
| | 26295 | detail: Schema.optionalKey( |
| | 26296 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), |
| | 26297 | ), |
| | 26298 | type: Schema.Literal("input_image").annotate({ |
| | 26299 | title: "InputImageFunctionCallOutputContentItemType", |
| | 26300 | }), |
| | 26301 | image_url: Schema.String, |
| | 26302 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 26303 | Schema.Struct({ |
| | 26304 | detail: Schema.optionalKey( |
| | 26305 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), |
| | 26306 | ), |
| | 26307 | type: Schema.Literal("input_image").annotate({ |
| | 26308 | title: "InputImageFunctionCallOutputContentItemType", |
| | 26309 | }), |
| | 26310 | file_id: Schema.String, |
| | 26311 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 26312 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 26313 | Schema.Struct({ |
| | 26314 | audio_url: Schema.String, |
| | 26315 | type: Schema.Literal("input_audio").annotate({ |
| | 26316 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 26317 | }), |
| | 26318 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 26319 | Schema.Struct({ |
| | 26320 | encrypted_content: Schema.String, |
| | 26321 | type: Schema.Literal("encrypted_content").annotate({ |
| | 26322 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 26323 | }), |
| | 26324 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 26325 | ], |
| | 26326 | { mode: "oneOf" }, |
| | 26327 | ).annotate({ |
| | 26328 | description: |
| | 26329 | "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.", |
| | 26330 | identifier: "V2ThreadStartedNotification__FunctionCallOutputContentItem", |
| | 26331 | }); |
| | 26332 | |
| 20739 | export type V2ThreadStartedNotification__MemoryCitation = { | 26333 | export type V2ThreadStartedNotification__MemoryCitation = { |
| 20740 | readonly entries: ReadonlyArray<V2ThreadStartedNotification__MemoryCitationEntry>; | 26334 | readonly entries: ReadonlyArray<V2ThreadStartedNotification__MemoryCitationEntry>; |
| 20741 | readonly threadIds: ReadonlyArray<string>; | 26335 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -20745,6 +26339,48 @@ export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({ | ... | @@ -20745,6 +26339,48 @@ export const V2ThreadStartedNotification__MemoryCitation = Schema.Struct({ |
| 20745 | threadIds: Schema.Array(Schema.String), | 26339 | threadIds: Schema.Array(Schema.String), |
| 20746 | }).annotate({ identifier: "V2ThreadStartedNotification__MemoryCitation" }); | 26340 | }).annotate({ identifier: "V2ThreadStartedNotification__MemoryCitation" }); |
| 20747 | | 26341 | |
| | 26342 | export type V2ThreadStartedNotification__CommandAction = |
| | 26343 | | { |
| | 26344 | readonly command: string; |
| | 26345 | readonly name: string; |
| | 26346 | readonly path: V2ThreadStartedNotification__LegacyAppPathString; |
| | 26347 | readonly type: "read"; |
| | 26348 | } |
| | 26349 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| | 26350 | | { |
| | 26351 | readonly command: string; |
| | 26352 | readonly path?: string | null; |
| | 26353 | readonly query?: string | null; |
| | 26354 | readonly type: "search"; |
| | 26355 | } |
| | 26356 | | { readonly command: string; readonly type: "unknown" }; |
| | 26357 | export const V2ThreadStartedNotification__CommandAction = Schema.Union( |
| | 26358 | [ |
| | 26359 | Schema.Struct({ |
| | 26360 | command: Schema.String, |
| | 26361 | name: Schema.String, |
| | 26362 | path: V2ThreadStartedNotification__LegacyAppPathString, |
| | 26363 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| | 26364 | }).annotate({ title: "ReadCommandAction" }), |
| | 26365 | Schema.Struct({ |
| | 26366 | command: Schema.String, |
| | 26367 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26368 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 26369 | }).annotate({ title: "ListFilesCommandAction" }), |
| | 26370 | Schema.Struct({ |
| | 26371 | command: Schema.String, |
| | 26372 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26373 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 26374 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 26375 | }).annotate({ title: "SearchCommandAction" }), |
| | 26376 | Schema.Struct({ |
| | 26377 | command: Schema.String, |
| | 26378 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| | 26379 | }).annotate({ title: "UnknownCommandAction" }), |
| | 26380 | ], |
| | 26381 | { mode: "oneOf" }, |
| | 26382 | ).annotate({ identifier: "V2ThreadStartedNotification__CommandAction" }); |
| | 26383 | |
| 20748 | export type V2ThreadStartedNotification__FileUpdateChange = { | 26384 | export type V2ThreadStartedNotification__FileUpdateChange = { |
| 20749 | readonly diff: string; | 26385 | readonly diff: string; |
| 20750 | readonly kind: V2ThreadStartedNotification__PatchChangeKind; | 26386 | readonly kind: V2ThreadStartedNotification__PatchChangeKind; |
| ... | @@ -20756,6 +26392,19 @@ export const V2ThreadStartedNotification__FileUpdateChange = Schema.Struct({ | ... | @@ -20756,6 +26392,19 @@ export const V2ThreadStartedNotification__FileUpdateChange = Schema.Struct({ |
| 20756 | path: Schema.String, | 26392 | path: Schema.String, |
| 20757 | }).annotate({ identifier: "V2ThreadStartedNotification__FileUpdateChange" }); | 26393 | }).annotate({ identifier: "V2ThreadStartedNotification__FileUpdateChange" }); |
| 20758 | | 26394 | |
| | 26395 | export type V2ThreadStartedNotification__McpAppUi = { |
| | 26396 | readonly preferredModelDisplayMode: V2ThreadStartedNotification__McpAppDisplayMode; |
| | 26397 | readonly resourceUri: string; |
| | 26398 | }; |
| | 26399 | export const V2ThreadStartedNotification__McpAppUi = Schema.Struct({ |
| | 26400 | preferredModelDisplayMode: V2ThreadStartedNotification__McpAppDisplayMode, |
| | 26401 | resourceUri: Schema.String, |
| | 26402 | }).annotate({ |
| | 26403 | description: |
| | 26404 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 26405 | identifier: "V2ThreadStartedNotification__McpAppUi", |
| | 26406 | }); |
| | 26407 | |
| 20759 | export type V2ThreadStartedNotification__CollabAgentState = { | 26408 | export type V2ThreadStartedNotification__CollabAgentState = { |
| 20760 | readonly message?: string | null; | 26409 | readonly message?: string | null; |
| 20761 | readonly status: V2ThreadStartedNotification__CollabAgentStatus; | 26410 | readonly status: V2ThreadStartedNotification__CollabAgentStatus; |
| ... | @@ -20769,7 +26418,7 @@ export type V2ThreadStartResponse__CommandAction = | ... | @@ -20769,7 +26418,7 @@ export type V2ThreadStartResponse__CommandAction = |
| 20769 | | { | 26418 | | { |
| 20770 | readonly command: string; | 26419 | readonly command: string; |
| 20771 | readonly name: string; | 26420 | readonly name: string; |
| 20772 | readonly path: V2ThreadStartResponse__AbsolutePathBuf; | 26421 | readonly path: V2ThreadStartResponse__LegacyAppPathString; |
| 20773 | readonly type: "read"; | 26422 | readonly type: "read"; |
| 20774 | } | 26423 | } |
| 20775 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 26424 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -20785,7 +26434,7 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union( | ... | @@ -20785,7 +26434,7 @@ export const V2ThreadStartResponse__CommandAction = Schema.Union( |
| 20785 | Schema.Struct({ | 26434 | Schema.Struct({ |
| 20786 | command: Schema.String, | 26435 | command: Schema.String, |
| 20787 | name: Schema.String, | 26436 | name: Schema.String, |
| 20788 | path: V2ThreadStartResponse__AbsolutePathBuf, | 26437 | path: V2ThreadStartResponse__LegacyAppPathString, |
| 20789 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 26438 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 20790 | }).annotate({ title: "ReadCommandAction" }), | 26439 | }).annotate({ title: "ReadCommandAction" }), |
| 20791 | Schema.Struct({ | 26440 | Schema.Struct({ |
| ... | @@ -20856,6 +26505,26 @@ export const V2ThreadStartResponse__SandboxPolicy = Schema.Union( | ... | @@ -20856,6 +26505,26 @@ export const V2ThreadStartResponse__SandboxPolicy = Schema.Union( |
| 20856 | { mode: "oneOf" }, | 26505 | { mode: "oneOf" }, |
| 20857 | ).annotate({ identifier: "V2ThreadStartResponse__SandboxPolicy" }); | 26506 | ).annotate({ identifier: "V2ThreadStartResponse__SandboxPolicy" }); |
| 20858 | | 26507 | |
| | 26508 | export type V2ThreadStartResponse__ThreadSection = { |
| | 26509 | readonly appearance?: V2ThreadStartResponse__ThreadSectionAppearance | null; |
| | 26510 | readonly id: string; |
| | 26511 | readonly name: string; |
| | 26512 | }; |
| | 26513 | export const V2ThreadStartResponse__ThreadSection = Schema.Struct({ |
| | 26514 | appearance: Schema.optionalKey( |
| | 26515 | Schema.Union([V2ThreadStartResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 26516 | description: "Optional appearance synchronized across clients.", |
| | 26517 | }), |
| | 26518 | ), |
| | 26519 | id: Schema.String.annotate({ |
| | 26520 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 26521 | }), |
| | 26522 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 26523 | }).annotate({ |
| | 26524 | description: "An independently persisted, user-visible thread section.", |
| | 26525 | identifier: "V2ThreadStartResponse__ThreadSection", |
| | 26526 | }); |
| | 26527 | |
| 20859 | export type V2ThreadStartResponse__SubAgentSource = | 26528 | export type V2ThreadStartResponse__SubAgentSource = |
| 20860 | | "review" | 26529 | | "review" |
| 20861 | | "compact" | 26530 | | "compact" |
| ... | @@ -20922,8 +26591,10 @@ export type V2ThreadStartResponse__CodexErrorInfo = | ... | @@ -20922,8 +26591,10 @@ export type V2ThreadStartResponse__CodexErrorInfo = |
| 20922 | | "contextWindowExceeded" | 26591 | | "contextWindowExceeded" |
| 20923 | | "sessionBudgetExceeded" | 26592 | | "sessionBudgetExceeded" |
| 20924 | | "usageLimitExceeded" | 26593 | | "usageLimitExceeded" |
| | 26594 | | "rateLimitExceeded" |
| 20925 | | "serverOverloaded" | 26595 | | "serverOverloaded" |
| 20926 | | "cyberPolicy" | 26596 | | "cyberPolicy" |
| | 26597 | | "misalignmentPolicyViolation" |
| 20927 | | "internalServerError" | 26598 | | "internalServerError" |
| 20928 | | "unauthorized" | 26599 | | "unauthorized" |
| 20929 | | "badRequest" | 26600 | | "badRequest" |
| ... | @@ -20945,8 +26616,10 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -20945,8 +26616,10 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 20945 | "contextWindowExceeded", | 26616 | "contextWindowExceeded", |
| 20946 | "sessionBudgetExceeded", | 26617 | "sessionBudgetExceeded", |
| 20947 | "usageLimitExceeded", | 26618 | "usageLimitExceeded", |
| | 26619 | "rateLimitExceeded", |
| 20948 | "serverOverloaded", | 26620 | "serverOverloaded", |
| 20949 | "cyberPolicy", | 26621 | "cyberPolicy", |
| | 26622 | "misalignmentPolicyViolation", |
| 20950 | "internalServerError", | 26623 | "internalServerError", |
| 20951 | "unauthorized", | 26624 | "unauthorized", |
| 20952 | "badRequest", | 26625 | "badRequest", |
| ... | @@ -21045,6 +26718,38 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -21045,6 +26718,38 @@ export const V2ThreadStartResponse__CodexErrorInfo = Schema.Union( |
| 21045 | identifier: "V2ThreadStartResponse__CodexErrorInfo", | 26718 | identifier: "V2ThreadStartResponse__CodexErrorInfo", |
| 21046 | }); | 26719 | }); |
| 21047 | | 26720 | |
| | 26721 | export type V2ThreadStartResponse__MisalignmentErrorDetails = { |
| | 26722 | readonly detailedExplanation?: string | null; |
| | 26723 | readonly errorType?: string | null; |
| | 26724 | readonly steer?: V2ThreadStartResponse__MisalignmentSteer | null; |
| | 26725 | }; |
| | 26726 | export const V2ThreadStartResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 26727 | detailedExplanation: Schema.optionalKey( |
| | 26728 | Schema.Union([ |
| | 26729 | Schema.String.annotate({ |
| | 26730 | description: |
| | 26731 | "A substantive localized explanation is required before offering continuation.", |
| | 26732 | }), |
| | 26733 | Schema.Null, |
| | 26734 | ]), |
| | 26735 | ), |
| | 26736 | errorType: Schema.optionalKey( |
| | 26737 | Schema.Union([ |
| | 26738 | Schema.String.annotate({ |
| | 26739 | description: |
| | 26740 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 26741 | }), |
| | 26742 | Schema.Null, |
| | 26743 | ]), |
| | 26744 | ), |
| | 26745 | steer: Schema.optionalKey( |
| | 26746 | Schema.Union([V2ThreadStartResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 26747 | description: |
| | 26748 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 26749 | }), |
| | 26750 | ), |
| | 26751 | }).annotate({ identifier: "V2ThreadStartResponse__MisalignmentErrorDetails" }); |
| | 26752 | |
| 21048 | export type V2ThreadStartResponse__TextElement = { | 26753 | export type V2ThreadStartResponse__TextElement = { |
| 21049 | readonly byteRange: V2ThreadStartResponse__ByteRange; | 26754 | readonly byteRange: V2ThreadStartResponse__ByteRange; |
| 21050 | readonly placeholder?: string | null; | 26755 | readonly placeholder?: string | null; |
| ... | @@ -21063,6 +26768,64 @@ export const V2ThreadStartResponse__TextElement = Schema.Struct({ | ... | @@ -21063,6 +26768,64 @@ export const V2ThreadStartResponse__TextElement = Schema.Struct({ |
| 21063 | ), | 26768 | ), |
| 21064 | }).annotate({ identifier: "V2ThreadStartResponse__TextElement" }); | 26769 | }).annotate({ identifier: "V2ThreadStartResponse__TextElement" }); |
| 21065 | | 26770 | |
| | 26771 | export type V2ThreadStartResponse__FunctionCallOutputContentItem = |
| | 26772 | | { readonly text: string; readonly type: "input_text" } |
| | 26773 | | { |
| | 26774 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; |
| | 26775 | readonly type: "input_image"; |
| | 26776 | readonly image_url: string; |
| | 26777 | } |
| | 26778 | | { |
| | 26779 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; |
| | 26780 | readonly type: "input_image"; |
| | 26781 | readonly file_id: string; |
| | 26782 | } |
| | 26783 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 26784 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 26785 | export const V2ThreadStartResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 26786 | [ |
| | 26787 | Schema.Struct({ |
| | 26788 | text: Schema.String, |
| | 26789 | type: Schema.Literal("input_text").annotate({ |
| | 26790 | title: "InputTextFunctionCallOutputContentItemType", |
| | 26791 | }), |
| | 26792 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 26793 | Schema.Union([ |
| | 26794 | Schema.Struct({ |
| | 26795 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), |
| | 26796 | type: Schema.Literal("input_image").annotate({ |
| | 26797 | title: "InputImageFunctionCallOutputContentItemType", |
| | 26798 | }), |
| | 26799 | image_url: Schema.String, |
| | 26800 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 26801 | Schema.Struct({ |
| | 26802 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), |
| | 26803 | type: Schema.Literal("input_image").annotate({ |
| | 26804 | title: "InputImageFunctionCallOutputContentItemType", |
| | 26805 | }), |
| | 26806 | file_id: Schema.String, |
| | 26807 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 26808 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 26809 | Schema.Struct({ |
| | 26810 | audio_url: Schema.String, |
| | 26811 | type: Schema.Literal("input_audio").annotate({ |
| | 26812 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 26813 | }), |
| | 26814 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 26815 | Schema.Struct({ |
| | 26816 | encrypted_content: Schema.String, |
| | 26817 | type: Schema.Literal("encrypted_content").annotate({ |
| | 26818 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 26819 | }), |
| | 26820 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 26821 | ], |
| | 26822 | { mode: "oneOf" }, |
| | 26823 | ).annotate({ |
| | 26824 | description: |
| | 26825 | "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.", |
| | 26826 | identifier: "V2ThreadStartResponse__FunctionCallOutputContentItem", |
| | 26827 | }); |
| | 26828 | |
| 21066 | export type V2ThreadStartResponse__MemoryCitation = { | 26829 | export type V2ThreadStartResponse__MemoryCitation = { |
| 21067 | readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>; | 26830 | readonly entries: ReadonlyArray<V2ThreadStartResponse__MemoryCitationEntry>; |
| 21068 | readonly threadIds: ReadonlyArray<string>; | 26831 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -21083,6 +26846,19 @@ export const V2ThreadStartResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -21083,6 +26846,19 @@ export const V2ThreadStartResponse__FileUpdateChange = Schema.Struct({ |
| 21083 | path: Schema.String, | 26846 | path: Schema.String, |
| 21084 | }).annotate({ identifier: "V2ThreadStartResponse__FileUpdateChange" }); | 26847 | }).annotate({ identifier: "V2ThreadStartResponse__FileUpdateChange" }); |
| 21085 | | 26848 | |
| | 26849 | export type V2ThreadStartResponse__McpAppUi = { |
| | 26850 | readonly preferredModelDisplayMode: V2ThreadStartResponse__McpAppDisplayMode; |
| | 26851 | readonly resourceUri: string; |
| | 26852 | }; |
| | 26853 | export const V2ThreadStartResponse__McpAppUi = Schema.Struct({ |
| | 26854 | preferredModelDisplayMode: V2ThreadStartResponse__McpAppDisplayMode, |
| | 26855 | resourceUri: Schema.String, |
| | 26856 | }).annotate({ |
| | 26857 | description: |
| | 26858 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 26859 | identifier: "V2ThreadStartResponse__McpAppUi", |
| | 26860 | }); |
| | 26861 | |
| 21086 | export type V2ThreadStartResponse__CollabAgentState = { | 26862 | export type V2ThreadStartResponse__CollabAgentState = { |
| 21087 | readonly message?: string | null; | 26863 | readonly message?: string | null; |
| 21088 | readonly status: V2ThreadStartResponse__CollabAgentStatus; | 26864 | readonly status: V2ThreadStartResponse__CollabAgentStatus; |
| ... | @@ -21137,116 +26913,14 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St | ... | @@ -21137,116 +26913,14 @@ export const V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage = Schema.St |
| 21137 | total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, | 26913 | total: V2ThreadTokenUsageUpdatedNotification__TokenUsageBreakdown, |
| 21138 | }).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage" }); | 26914 | }).annotate({ identifier: "V2ThreadTokenUsageUpdatedNotification__ThreadTokenUsage" }); |
| 21139 | | 26915 | |
| 21140 | export type V2ThreadUnarchiveResponse__CommandAction = | 26916 | export type V2ThreadTurnsListResponse__CodexErrorInfo = |
| 21141 | | { | | |
| 21142 | readonly command: string; | | |
| 21143 | readonly name: string; | | |
| 21144 | readonly path: V2ThreadUnarchiveResponse__AbsolutePathBuf; | | |
| 21145 | readonly type: "read"; | | |
| 21146 | } | | |
| 21147 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | | |
| 21148 | | { | | |
| 21149 | readonly command: string; | | |
| 21150 | readonly path?: string | null; | | |
| 21151 | readonly query?: string | null; | | |
| 21152 | readonly type: "search"; | | |
| 21153 | } | | |
| 21154 | | { readonly command: string; readonly type: "unknown" }; | | |
| 21155 | export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( | | |
| 21156 | [ | | |
| 21157 | Schema.Struct({ | | |
| 21158 | command: Schema.String, | | |
| 21159 | name: Schema.String, | | |
| 21160 | path: V2ThreadUnarchiveResponse__AbsolutePathBuf, | | |
| 21161 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | | |
| 21162 | }).annotate({ title: "ReadCommandAction" }), | | |
| 21163 | Schema.Struct({ | | |
| 21164 | command: Schema.String, | | |
| 21165 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21166 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), | | |
| 21167 | }).annotate({ title: "ListFilesCommandAction" }), | | |
| 21168 | Schema.Struct({ | | |
| 21169 | command: Schema.String, | | |
| 21170 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21171 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21172 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), | | |
| 21173 | }).annotate({ title: "SearchCommandAction" }), | | |
| 21174 | Schema.Struct({ | | |
| 21175 | command: Schema.String, | | |
| 21176 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), | | |
| 21177 | }).annotate({ title: "UnknownCommandAction" }), | | |
| 21178 | ], | | |
| 21179 | { mode: "oneOf" }, | | |
| 21180 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandAction" }); | | |
| 21181 | | | |
| 21182 | export type V2ThreadUnarchiveResponse__SubAgentSource = | | |
| 21183 | | "review" | | |
| 21184 | | "compact" | | |
| 21185 | | "memory_consolidation" | | |
| 21186 | | { | | |
| 21187 | readonly thread_spawn: { | | |
| 21188 | readonly agent_nickname?: string | null; | | |
| 21189 | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; | | |
| 21190 | readonly agent_role?: string | null; | | |
| 21191 | readonly depth: number; | | |
| 21192 | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; | | |
| 21193 | }; | | |
| 21194 | } | | |
| 21195 | | { readonly other: string }; | | |
| 21196 | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( | | |
| 21197 | [ | | |
| 21198 | Schema.Literals(["review", "compact", "memory_consolidation"]), | | |
| 21199 | Schema.Struct({ | | |
| 21200 | thread_spawn: Schema.Struct({ | | |
| 21201 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21202 | agent_path: Schema.optionalKey( | | |
| 21203 | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), | | |
| 21204 | ), | | |
| 21205 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21206 | depth: Schema.Number.annotate({ format: "int32" }).check( | | |
| 21207 | Schema.isInt().annotate({ expected: "an integer" }), | | |
| 21208 | ), | | |
| 21209 | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, | | |
| 21210 | }), | | |
| 21211 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), | | |
| 21212 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), | | |
| 21213 | ], | | |
| 21214 | { mode: "oneOf" }, | | |
| 21215 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentSource" }); | | |
| 21216 | | | |
| 21217 | export type V2ThreadUnarchiveResponse__ThreadStatus = | | |
| 21218 | | { readonly type: "notLoaded" } | | |
| 21219 | | { readonly type: "idle" } | | |
| 21220 | | { readonly type: "systemError" } | | |
| 21221 | | { | | |
| 21222 | readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>; | | |
| 21223 | readonly type: "active"; | | |
| 21224 | }; | | |
| 21225 | export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union( | | |
| 21226 | [ | | |
| 21227 | Schema.Struct({ | | |
| 21228 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), | | |
| 21229 | }).annotate({ title: "NotLoadedThreadStatus" }), | | |
| 21230 | Schema.Struct({ | | |
| 21231 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), | | |
| 21232 | }).annotate({ title: "IdleThreadStatus" }), | | |
| 21233 | Schema.Struct({ | | |
| 21234 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), | | |
| 21235 | }).annotate({ title: "SystemErrorThreadStatus" }), | | |
| 21236 | Schema.Struct({ | | |
| 21237 | activeFlags: Schema.Array(V2ThreadUnarchiveResponse__ThreadActiveFlag), | | |
| 21238 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), | | |
| 21239 | }).annotate({ title: "ActiveThreadStatus" }), | | |
| 21240 | ], | | |
| 21241 | { mode: "oneOf" }, | | |
| 21242 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadStatus" }); | | |
| 21243 | | | |
| 21244 | export type V2ThreadUnarchiveResponse__CodexErrorInfo = | | |
| 21245 | | "contextWindowExceeded" | 26917 | | "contextWindowExceeded" |
| 21246 | | "sessionBudgetExceeded" | 26918 | | "sessionBudgetExceeded" |
| 21247 | | "usageLimitExceeded" | 26919 | | "usageLimitExceeded" |
| | 26920 | | "rateLimitExceeded" |
| 21248 | | "serverOverloaded" | 26921 | | "serverOverloaded" |
| 21249 | | "cyberPolicy" | 26922 | | "cyberPolicy" |
| | 26923 | | "misalignmentPolicyViolation" |
| 21250 | | "internalServerError" | 26924 | | "internalServerError" |
| 21251 | | "unauthorized" | 26925 | | "unauthorized" |
| 21252 | | "badRequest" | 26926 | | "badRequest" |
| ... | @@ -21259,17 +26933,19 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo = | ... | @@ -21259,17 +26933,19 @@ export type V2ThreadUnarchiveResponse__CodexErrorInfo = |
| 21259 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 26933 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 21260 | | { | 26934 | | { |
| 21261 | readonly activeTurnNotSteerable: { | 26935 | readonly activeTurnNotSteerable: { |
| 21262 | readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind; | 26936 | readonly turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind; |
| 21263 | }; | 26937 | }; |
| 21264 | }; | 26938 | }; |
| 21265 | export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | 26939 | export const V2ThreadTurnsListResponse__CodexErrorInfo = Schema.Union( |
| 21266 | [ | 26940 | [ |
| 21267 | Schema.Literals([ | 26941 | Schema.Literals([ |
| 21268 | "contextWindowExceeded", | 26942 | "contextWindowExceeded", |
| 21269 | "sessionBudgetExceeded", | 26943 | "sessionBudgetExceeded", |
| 21270 | "usageLimitExceeded", | 26944 | "usageLimitExceeded", |
| | 26945 | "rateLimitExceeded", |
| 21271 | "serverOverloaded", | 26946 | "serverOverloaded", |
| 21272 | "cyberPolicy", | 26947 | "cyberPolicy", |
| | 26948 | "misalignmentPolicyViolation", |
| 21273 | "internalServerError", | 26949 | "internalServerError", |
| 21274 | "unauthorized", | 26950 | "unauthorized", |
| 21275 | "badRequest", | 26951 | "badRequest", |
| ... | @@ -21353,7 +27029,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | ... | @@ -21353,7 +27029,7 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 21353 | }), | 27029 | }), |
| 21354 | Schema.Struct({ | 27030 | Schema.Struct({ |
| 21355 | activeTurnNotSteerable: Schema.Struct({ | 27031 | activeTurnNotSteerable: Schema.Struct({ |
| 21356 | turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind, | 27032 | turnKind: V2ThreadTurnsListResponse__NonSteerableTurnKind, |
| 21357 | }), | 27033 | }), |
| 21358 | }).annotate({ | 27034 | }).annotate({ |
| 21359 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 27035 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | @@ -21365,16 +27041,48 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( | ... | @@ -21365,16 +27041,48 @@ export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 21365 | ).annotate({ | 27041 | ).annotate({ |
| 21366 | description: | 27042 | description: |
| 21367 | "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.", | 27043 | "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.", |
| 21368 | identifier: "V2ThreadUnarchiveResponse__CodexErrorInfo", | 27044 | identifier: "V2ThreadTurnsListResponse__CodexErrorInfo", |
| 21369 | }); | 27045 | }); |
| 21370 | | 27046 | |
| 21371 | export type V2ThreadUnarchiveResponse__TextElement = { | 27047 | export type V2ThreadTurnsListResponse__MisalignmentErrorDetails = { |
| 21372 | readonly byteRange: V2ThreadUnarchiveResponse__ByteRange; | 27048 | readonly detailedExplanation?: string | null; |
| | 27049 | readonly errorType?: string | null; |
| | 27050 | readonly steer?: V2ThreadTurnsListResponse__MisalignmentSteer | null; |
| | 27051 | }; |
| | 27052 | export const V2ThreadTurnsListResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 27053 | detailedExplanation: Schema.optionalKey( |
| | 27054 | Schema.Union([ |
| | 27055 | Schema.String.annotate({ |
| | 27056 | description: |
| | 27057 | "A substantive localized explanation is required before offering continuation.", |
| | 27058 | }), |
| | 27059 | Schema.Null, |
| | 27060 | ]), |
| | 27061 | ), |
| | 27062 | errorType: Schema.optionalKey( |
| | 27063 | Schema.Union([ |
| | 27064 | Schema.String.annotate({ |
| | 27065 | description: |
| | 27066 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 27067 | }), |
| | 27068 | Schema.Null, |
| | 27069 | ]), |
| | 27070 | ), |
| | 27071 | steer: Schema.optionalKey( |
| | 27072 | Schema.Union([V2ThreadTurnsListResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 27073 | description: |
| | 27074 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 27075 | }), |
| | 27076 | ), |
| | 27077 | }).annotate({ identifier: "V2ThreadTurnsListResponse__MisalignmentErrorDetails" }); |
| | 27078 | |
| | 27079 | export type V2ThreadTurnsListResponse__TextElement = { |
| | 27080 | readonly byteRange: V2ThreadTurnsListResponse__ByteRange; |
| 21373 | readonly placeholder?: string | null; | 27081 | readonly placeholder?: string | null; |
| 21374 | }; | 27082 | }; |
| 21375 | export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({ | 27083 | export const V2ThreadTurnsListResponse__TextElement = Schema.Struct({ |
| 21376 | byteRange: Schema.suspend( | 27084 | byteRange: Schema.suspend( |
| 21377 | (): Schema.Codec<V2ThreadUnarchiveResponse__ByteRange> => V2ThreadUnarchiveResponse__ByteRange, | 27085 | (): Schema.Codec<V2ThreadTurnsListResponse__ByteRange> => V2ThreadTurnsListResponse__ByteRange, |
| 21378 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), | 27086 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 21379 | placeholder: Schema.optionalKey( | 27087 | placeholder: Schema.optionalKey( |
| 21380 | Schema.Union([ | 27088 | Schema.Union([ |
| ... | @@ -21384,50 +27092,249 @@ export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({ | ... | @@ -21384,50 +27092,249 @@ export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({ |
| 21384 | Schema.Null, | 27092 | Schema.Null, |
| 21385 | ]), | 27093 | ]), |
| 21386 | ), | 27094 | ), |
| 21387 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__TextElement" }); | 27095 | }).annotate({ identifier: "V2ThreadTurnsListResponse__TextElement" }); |
| 21388 | | 27096 | |
| 21389 | export type V2ThreadUnarchiveResponse__MemoryCitation = { | 27097 | export type V2ThreadTurnsListResponse__FunctionCallOutputContentItem = |
| 21390 | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; | 27098 | | { readonly text: string; readonly type: "input_text" } |
| | 27099 | | { |
| | 27100 | readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null; |
| | 27101 | readonly type: "input_image"; |
| | 27102 | readonly image_url: string; |
| | 27103 | } |
| | 27104 | | { |
| | 27105 | readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null; |
| | 27106 | readonly type: "input_image"; |
| | 27107 | readonly file_id: string; |
| | 27108 | } |
| | 27109 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 27110 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 27111 | export const V2ThreadTurnsListResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 27112 | [ |
| | 27113 | Schema.Struct({ |
| | 27114 | text: Schema.String, |
| | 27115 | type: Schema.Literal("input_text").annotate({ |
| | 27116 | title: "InputTextFunctionCallOutputContentItemType", |
| | 27117 | }), |
| | 27118 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 27119 | Schema.Union([ |
| | 27120 | Schema.Struct({ |
| | 27121 | detail: Schema.optionalKey( |
| | 27122 | Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]), |
| | 27123 | ), |
| | 27124 | type: Schema.Literal("input_image").annotate({ |
| | 27125 | title: "InputImageFunctionCallOutputContentItemType", |
| | 27126 | }), |
| | 27127 | image_url: Schema.String, |
| | 27128 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 27129 | Schema.Struct({ |
| | 27130 | detail: Schema.optionalKey( |
| | 27131 | Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]), |
| | 27132 | ), |
| | 27133 | type: Schema.Literal("input_image").annotate({ |
| | 27134 | title: "InputImageFunctionCallOutputContentItemType", |
| | 27135 | }), |
| | 27136 | file_id: Schema.String, |
| | 27137 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 27138 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 27139 | Schema.Struct({ |
| | 27140 | audio_url: Schema.String, |
| | 27141 | type: Schema.Literal("input_audio").annotate({ |
| | 27142 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 27143 | }), |
| | 27144 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 27145 | Schema.Struct({ |
| | 27146 | encrypted_content: Schema.String, |
| | 27147 | type: Schema.Literal("encrypted_content").annotate({ |
| | 27148 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 27149 | }), |
| | 27150 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 27151 | ], |
| | 27152 | { mode: "oneOf" }, |
| | 27153 | ).annotate({ |
| | 27154 | description: |
| | 27155 | "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.", |
| | 27156 | identifier: "V2ThreadTurnsListResponse__FunctionCallOutputContentItem", |
| | 27157 | }); |
| | 27158 | |
| | 27159 | export type V2ThreadTurnsListResponse__MemoryCitation = { |
| | 27160 | readonly entries: ReadonlyArray<V2ThreadTurnsListResponse__MemoryCitationEntry>; |
| 21391 | readonly threadIds: ReadonlyArray<string>; | 27161 | readonly threadIds: ReadonlyArray<string>; |
| 21392 | }; | 27162 | }; |
| 21393 | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ | 27163 | export const V2ThreadTurnsListResponse__MemoryCitation = Schema.Struct({ |
| 21394 | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), | 27164 | entries: Schema.Array(V2ThreadTurnsListResponse__MemoryCitationEntry), |
| 21395 | threadIds: Schema.Array(Schema.String), | 27165 | threadIds: Schema.Array(Schema.String), |
| 21396 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitation" }); | 27166 | }).annotate({ identifier: "V2ThreadTurnsListResponse__MemoryCitation" }); |
| 21397 | | 27167 | |
| 21398 | export type V2ThreadUnarchiveResponse__FileUpdateChange = { | 27168 | export type V2ThreadTurnsListResponse__CommandAction = |
| | 27169 | | { |
| | 27170 | readonly command: string; |
| | 27171 | readonly name: string; |
| | 27172 | readonly path: V2ThreadTurnsListResponse__LegacyAppPathString; |
| | 27173 | readonly type: "read"; |
| | 27174 | } |
| | 27175 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| | 27176 | | { |
| | 27177 | readonly command: string; |
| | 27178 | readonly path?: string | null; |
| | 27179 | readonly query?: string | null; |
| | 27180 | readonly type: "search"; |
| | 27181 | } |
| | 27182 | | { readonly command: string; readonly type: "unknown" }; |
| | 27183 | export const V2ThreadTurnsListResponse__CommandAction = Schema.Union( |
| | 27184 | [ |
| | 27185 | Schema.Struct({ |
| | 27186 | command: Schema.String, |
| | 27187 | name: Schema.String, |
| | 27188 | path: V2ThreadTurnsListResponse__LegacyAppPathString, |
| | 27189 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| | 27190 | }).annotate({ title: "ReadCommandAction" }), |
| | 27191 | Schema.Struct({ |
| | 27192 | command: Schema.String, |
| | 27193 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27194 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 27195 | }).annotate({ title: "ListFilesCommandAction" }), |
| | 27196 | Schema.Struct({ |
| | 27197 | command: Schema.String, |
| | 27198 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27199 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27200 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 27201 | }).annotate({ title: "SearchCommandAction" }), |
| | 27202 | Schema.Struct({ |
| | 27203 | command: Schema.String, |
| | 27204 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| | 27205 | }).annotate({ title: "UnknownCommandAction" }), |
| | 27206 | ], |
| | 27207 | { mode: "oneOf" }, |
| | 27208 | ).annotate({ identifier: "V2ThreadTurnsListResponse__CommandAction" }); |
| | 27209 | |
| | 27210 | export type V2ThreadTurnsListResponse__FileUpdateChange = { |
| 21399 | readonly diff: string; | 27211 | readonly diff: string; |
| 21400 | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; | 27212 | readonly kind: V2ThreadTurnsListResponse__PatchChangeKind; |
| 21401 | readonly path: string; | 27213 | readonly path: string; |
| 21402 | }; | 27214 | }; |
| 21403 | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ | 27215 | export const V2ThreadTurnsListResponse__FileUpdateChange = Schema.Struct({ |
| 21404 | diff: Schema.String, | 27216 | diff: Schema.String, |
| 21405 | kind: V2ThreadUnarchiveResponse__PatchChangeKind, | 27217 | kind: V2ThreadTurnsListResponse__PatchChangeKind, |
| 21406 | path: Schema.String, | 27218 | path: Schema.String, |
| 21407 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__FileUpdateChange" }); | 27219 | }).annotate({ identifier: "V2ThreadTurnsListResponse__FileUpdateChange" }); |
| 21408 | | 27220 | |
| 21409 | export type V2ThreadUnarchiveResponse__CollabAgentState = { | 27221 | export type V2ThreadTurnsListResponse__McpAppUi = { |
| | 27222 | readonly preferredModelDisplayMode: V2ThreadTurnsListResponse__McpAppDisplayMode; |
| | 27223 | readonly resourceUri: string; |
| | 27224 | }; |
| | 27225 | export const V2ThreadTurnsListResponse__McpAppUi = Schema.Struct({ |
| | 27226 | preferredModelDisplayMode: V2ThreadTurnsListResponse__McpAppDisplayMode, |
| | 27227 | resourceUri: Schema.String, |
| | 27228 | }).annotate({ |
| | 27229 | description: |
| | 27230 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 27231 | identifier: "V2ThreadTurnsListResponse__McpAppUi", |
| | 27232 | }); |
| | 27233 | |
| | 27234 | export type V2ThreadTurnsListResponse__CollabAgentState = { |
| 21410 | readonly message?: string | null; | 27235 | readonly message?: string | null; |
| 21411 | readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus; | 27236 | readonly status: V2ThreadTurnsListResponse__CollabAgentStatus; |
| 21412 | }; | 27237 | }; |
| 21413 | export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({ | 27238 | export const V2ThreadTurnsListResponse__CollabAgentState = Schema.Struct({ |
| 21414 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27239 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21415 | status: V2ThreadUnarchiveResponse__CollabAgentStatus, | 27240 | status: V2ThreadTurnsListResponse__CollabAgentStatus, |
| 21416 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentState" }); | 27241 | }).annotate({ identifier: "V2ThreadTurnsListResponse__CollabAgentState" }); |
| 21417 | | 27242 | |
| 21418 | export type V2TurnCompletedNotification__CodexErrorInfo = | 27243 | export type V2ThreadUnarchiveResponse__ThreadSection = { |
| | 27244 | readonly appearance?: V2ThreadUnarchiveResponse__ThreadSectionAppearance | null; |
| | 27245 | readonly id: string; |
| | 27246 | readonly name: string; |
| | 27247 | }; |
| | 27248 | export const V2ThreadUnarchiveResponse__ThreadSection = Schema.Struct({ |
| | 27249 | appearance: Schema.optionalKey( |
| | 27250 | Schema.Union([V2ThreadUnarchiveResponse__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 27251 | description: "Optional appearance synchronized across clients.", |
| | 27252 | }), |
| | 27253 | ), |
| | 27254 | id: Schema.String.annotate({ |
| | 27255 | description: "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| | 27256 | }), |
| | 27257 | name: Schema.String.annotate({ description: "The current user-visible section name." }), |
| | 27258 | }).annotate({ |
| | 27259 | description: "An independently persisted, user-visible thread section.", |
| | 27260 | identifier: "V2ThreadUnarchiveResponse__ThreadSection", |
| | 27261 | }); |
| | 27262 | |
| | 27263 | export type V2ThreadUnarchiveResponse__SubAgentSource = |
| | 27264 | | "review" |
| | 27265 | | "compact" |
| | 27266 | | "memory_consolidation" |
| | 27267 | | { |
| | 27268 | readonly thread_spawn: { |
| | 27269 | readonly agent_nickname?: string | null; |
| | 27270 | readonly agent_path?: V2ThreadUnarchiveResponse__AgentPath | null; |
| | 27271 | readonly agent_role?: string | null; |
| | 27272 | readonly depth: number; |
| | 27273 | readonly parent_thread_id: V2ThreadUnarchiveResponse__ThreadId; |
| | 27274 | }; |
| | 27275 | } |
| | 27276 | | { readonly other: string }; |
| | 27277 | export const V2ThreadUnarchiveResponse__SubAgentSource = Schema.Union( |
| | 27278 | [ |
| | 27279 | Schema.Literals(["review", "compact", "memory_consolidation"]), |
| | 27280 | Schema.Struct({ |
| | 27281 | thread_spawn: Schema.Struct({ |
| | 27282 | agent_nickname: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27283 | agent_path: Schema.optionalKey( |
| | 27284 | Schema.Union([V2ThreadUnarchiveResponse__AgentPath, Schema.Null]), |
| | 27285 | ), |
| | 27286 | agent_role: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 27287 | depth: Schema.Number.annotate({ format: "int32" }).check( |
| | 27288 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 27289 | ), |
| | 27290 | parent_thread_id: V2ThreadUnarchiveResponse__ThreadId, |
| | 27291 | }), |
| | 27292 | }).annotate({ title: "ThreadSpawnSubAgentSource" }), |
| | 27293 | Schema.Struct({ other: Schema.String }).annotate({ title: "OtherSubAgentSource" }), |
| | 27294 | ], |
| | 27295 | { mode: "oneOf" }, |
| | 27296 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__SubAgentSource" }); |
| | 27297 | |
| | 27298 | export type V2ThreadUnarchiveResponse__ThreadStatus = |
| | 27299 | | { readonly type: "notLoaded" } |
| | 27300 | | { readonly type: "idle" } |
| | 27301 | | { readonly type: "systemError" } |
| | 27302 | | { |
| | 27303 | readonly activeFlags: ReadonlyArray<V2ThreadUnarchiveResponse__ThreadActiveFlag>; |
| | 27304 | readonly type: "active"; |
| | 27305 | }; |
| | 27306 | export const V2ThreadUnarchiveResponse__ThreadStatus = Schema.Union( |
| | 27307 | [ |
| | 27308 | Schema.Struct({ |
| | 27309 | type: Schema.Literal("notLoaded").annotate({ title: "NotLoadedThreadStatusType" }), |
| | 27310 | }).annotate({ title: "NotLoadedThreadStatus" }), |
| | 27311 | Schema.Struct({ |
| | 27312 | type: Schema.Literal("idle").annotate({ title: "IdleThreadStatusType" }), |
| | 27313 | }).annotate({ title: "IdleThreadStatus" }), |
| | 27314 | Schema.Struct({ |
| | 27315 | type: Schema.Literal("systemError").annotate({ title: "SystemErrorThreadStatusType" }), |
| | 27316 | }).annotate({ title: "SystemErrorThreadStatus" }), |
| | 27317 | Schema.Struct({ |
| | 27318 | activeFlags: Schema.Array(V2ThreadUnarchiveResponse__ThreadActiveFlag), |
| | 27319 | type: Schema.Literal("active").annotate({ title: "ActiveThreadStatusType" }), |
| | 27320 | }).annotate({ title: "ActiveThreadStatus" }), |
| | 27321 | ], |
| | 27322 | { mode: "oneOf" }, |
| | 27323 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__ThreadStatus" }); |
| | 27324 | |
| | 27325 | export type V2ThreadUnarchiveResponse__CodexErrorInfo = |
| 21419 | | "contextWindowExceeded" | 27326 | | "contextWindowExceeded" |
| 21420 | | "sessionBudgetExceeded" | 27327 | | "sessionBudgetExceeded" |
| 21421 | | "usageLimitExceeded" | 27328 | | "usageLimitExceeded" |
| | 27329 | | "rateLimitExceeded" |
| 21422 | | "serverOverloaded" | 27330 | | "serverOverloaded" |
| 21423 | | "cyberPolicy" | 27331 | | "cyberPolicy" |
| | 27332 | | "misalignmentPolicyViolation" |
| 21424 | | "internalServerError" | 27333 | | "internalServerError" |
| 21425 | | "unauthorized" | 27334 | | "unauthorized" |
| 21426 | | "badRequest" | 27335 | | "badRequest" |
| 21427 | | "threadRollbackFailed" | 27336 | | "threadRollbackFailed" |
| 21428 | | "sandboxError" | 27337 | | "sandboxError" |
| 21429 | | "rateLimitExceeded" | | |
| 21430 | | "misalignmentPolicyViolation" | | |
| 21431 | | "other" | 27338 | | "other" |
| 21432 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } | 27339 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| 21433 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } | 27340 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| ... | @@ -21435,24 +27342,24 @@ export type V2TurnCompletedNotification__CodexErrorInfo = | ... | @@ -21435,24 +27342,24 @@ export type V2TurnCompletedNotification__CodexErrorInfo = |
| 21435 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 27342 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 21436 | | { | 27343 | | { |
| 21437 | readonly activeTurnNotSteerable: { | 27344 | readonly activeTurnNotSteerable: { |
| 21438 | readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind; | 27345 | readonly turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind; |
| 21439 | }; | 27346 | }; |
| 21440 | }; | 27347 | }; |
| 21441 | export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | 27348 | export const V2ThreadUnarchiveResponse__CodexErrorInfo = Schema.Union( |
| 21442 | [ | 27349 | [ |
| 21443 | Schema.Literals([ | 27350 | Schema.Literals([ |
| 21444 | "contextWindowExceeded", | 27351 | "contextWindowExceeded", |
| 21445 | "sessionBudgetExceeded", | 27352 | "sessionBudgetExceeded", |
| 21446 | "usageLimitExceeded", | 27353 | "usageLimitExceeded", |
| | 27354 | "rateLimitExceeded", |
| 21447 | "serverOverloaded", | 27355 | "serverOverloaded", |
| 21448 | "cyberPolicy", | 27356 | "cyberPolicy", |
| | 27357 | "misalignmentPolicyViolation", |
| 21449 | "internalServerError", | 27358 | "internalServerError", |
| 21450 | "unauthorized", | 27359 | "unauthorized", |
| 21451 | "badRequest", | 27360 | "badRequest", |
| 21452 | "threadRollbackFailed", | 27361 | "threadRollbackFailed", |
| 21453 | "sandboxError", | 27362 | "sandboxError", |
| 21454 | "rateLimitExceeded", | | |
| 21455 | "misalignmentPolicyViolation", | | |
| 21456 | "other", | 27363 | "other", |
| 21457 | ]), | 27364 | ]), |
| 21458 | Schema.Struct({ | 27365 | Schema.Struct({ |
| ... | @@ -21531,7 +27438,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -21531,7 +27438,7 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 21531 | }), | 27438 | }), |
| 21532 | Schema.Struct({ | 27439 | Schema.Struct({ |
| 21533 | activeTurnNotSteerable: Schema.Struct({ | 27440 | activeTurnNotSteerable: Schema.Struct({ |
| 21534 | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, | 27441 | turnKind: V2ThreadUnarchiveResponse__NonSteerableTurnKind, |
| 21535 | }), | 27442 | }), |
| 21536 | }).annotate({ | 27443 | }).annotate({ |
| 21537 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 27444 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | @@ -21543,17 +27450,48 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -21543,17 +27450,48 @@ export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 21543 | ).annotate({ | 27450 | ).annotate({ |
| 21544 | description: | 27451 | description: |
| 21545 | "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.", | 27452 | "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.", |
| 21546 | identifier: "V2TurnCompletedNotification__CodexErrorInfo", | 27453 | identifier: "V2ThreadUnarchiveResponse__CodexErrorInfo", |
| 21547 | }); | 27454 | }); |
| 21548 | | 27455 | |
| 21549 | export type V2TurnCompletedNotification__TextElement = { | 27456 | export type V2ThreadUnarchiveResponse__MisalignmentErrorDetails = { |
| 21550 | readonly byteRange: V2TurnCompletedNotification__ByteRange; | 27457 | readonly detailedExplanation?: string | null; |
| | 27458 | readonly errorType?: string | null; |
| | 27459 | readonly steer?: V2ThreadUnarchiveResponse__MisalignmentSteer | null; |
| | 27460 | }; |
| | 27461 | export const V2ThreadUnarchiveResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 27462 | detailedExplanation: Schema.optionalKey( |
| | 27463 | Schema.Union([ |
| | 27464 | Schema.String.annotate({ |
| | 27465 | description: |
| | 27466 | "A substantive localized explanation is required before offering continuation.", |
| | 27467 | }), |
| | 27468 | Schema.Null, |
| | 27469 | ]), |
| | 27470 | ), |
| | 27471 | errorType: Schema.optionalKey( |
| | 27472 | Schema.Union([ |
| | 27473 | Schema.String.annotate({ |
| | 27474 | description: |
| | 27475 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 27476 | }), |
| | 27477 | Schema.Null, |
| | 27478 | ]), |
| | 27479 | ), |
| | 27480 | steer: Schema.optionalKey( |
| | 27481 | Schema.Union([V2ThreadUnarchiveResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 27482 | description: |
| | 27483 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 27484 | }), |
| | 27485 | ), |
| | 27486 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MisalignmentErrorDetails" }); |
| | 27487 | |
| | 27488 | export type V2ThreadUnarchiveResponse__TextElement = { |
| | 27489 | readonly byteRange: V2ThreadUnarchiveResponse__ByteRange; |
| 21551 | readonly placeholder?: string | null; | 27490 | readonly placeholder?: string | null; |
| 21552 | }; | 27491 | }; |
| 21553 | export const V2TurnCompletedNotification__TextElement = Schema.Struct({ | 27492 | export const V2ThreadUnarchiveResponse__TextElement = Schema.Struct({ |
| 21554 | byteRange: Schema.suspend( | 27493 | byteRange: Schema.suspend( |
| 21555 | (): Schema.Codec<V2TurnCompletedNotification__ByteRange> => | 27494 | (): Schema.Codec<V2ThreadUnarchiveResponse__ByteRange> => V2ThreadUnarchiveResponse__ByteRange, |
| 21556 | V2TurnCompletedNotification__ByteRange, | | |
| 21557 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), | 27495 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 21558 | placeholder: Schema.optionalKey( | 27496 | placeholder: Schema.optionalKey( |
| 21559 | Schema.Union([ | 27497 | Schema.Union([ |
| ... | @@ -21563,22 +27501,84 @@ export const V2TurnCompletedNotification__TextElement = Schema.Struct({ | ... | @@ -21563,22 +27501,84 @@ export const V2TurnCompletedNotification__TextElement = Schema.Struct({ |
| 21563 | Schema.Null, | 27501 | Schema.Null, |
| 21564 | ]), | 27502 | ]), |
| 21565 | ), | 27503 | ), |
| 21566 | }).annotate({ identifier: "V2TurnCompletedNotification__TextElement" }); | 27504 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__TextElement" }); |
| 21567 | | 27505 | |
| 21568 | export type V2TurnCompletedNotification__MemoryCitation = { | 27506 | export type V2ThreadUnarchiveResponse__FunctionCallOutputContentItem = |
| 21569 | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; | 27507 | | { readonly text: string; readonly type: "input_text" } |
| | 27508 | | { |
| | 27509 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; |
| | 27510 | readonly type: "input_image"; |
| | 27511 | readonly image_url: string; |
| | 27512 | } |
| | 27513 | | { |
| | 27514 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; |
| | 27515 | readonly type: "input_image"; |
| | 27516 | readonly file_id: string; |
| | 27517 | } |
| | 27518 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 27519 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 27520 | export const V2ThreadUnarchiveResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 27521 | [ |
| | 27522 | Schema.Struct({ |
| | 27523 | text: Schema.String, |
| | 27524 | type: Schema.Literal("input_text").annotate({ |
| | 27525 | title: "InputTextFunctionCallOutputContentItemType", |
| | 27526 | }), |
| | 27527 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 27528 | Schema.Union([ |
| | 27529 | Schema.Struct({ |
| | 27530 | detail: Schema.optionalKey( |
| | 27531 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), |
| | 27532 | ), |
| | 27533 | type: Schema.Literal("input_image").annotate({ |
| | 27534 | title: "InputImageFunctionCallOutputContentItemType", |
| | 27535 | }), |
| | 27536 | image_url: Schema.String, |
| | 27537 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 27538 | Schema.Struct({ |
| | 27539 | detail: Schema.optionalKey( |
| | 27540 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), |
| | 27541 | ), |
| | 27542 | type: Schema.Literal("input_image").annotate({ |
| | 27543 | title: "InputImageFunctionCallOutputContentItemType", |
| | 27544 | }), |
| | 27545 | file_id: Schema.String, |
| | 27546 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 27547 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 27548 | Schema.Struct({ |
| | 27549 | audio_url: Schema.String, |
| | 27550 | type: Schema.Literal("input_audio").annotate({ |
| | 27551 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 27552 | }), |
| | 27553 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 27554 | Schema.Struct({ |
| | 27555 | encrypted_content: Schema.String, |
| | 27556 | type: Schema.Literal("encrypted_content").annotate({ |
| | 27557 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 27558 | }), |
| | 27559 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 27560 | ], |
| | 27561 | { mode: "oneOf" }, |
| | 27562 | ).annotate({ |
| | 27563 | description: |
| | 27564 | "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.", |
| | 27565 | identifier: "V2ThreadUnarchiveResponse__FunctionCallOutputContentItem", |
| | 27566 | }); |
| | 27567 | |
| | 27568 | export type V2ThreadUnarchiveResponse__MemoryCitation = { |
| | 27569 | readonly entries: ReadonlyArray<V2ThreadUnarchiveResponse__MemoryCitationEntry>; |
| 21570 | readonly threadIds: ReadonlyArray<string>; | 27570 | readonly threadIds: ReadonlyArray<string>; |
| 21571 | }; | 27571 | }; |
| 21572 | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ | 27572 | export const V2ThreadUnarchiveResponse__MemoryCitation = Schema.Struct({ |
| 21573 | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), | 27573 | entries: Schema.Array(V2ThreadUnarchiveResponse__MemoryCitationEntry), |
| 21574 | threadIds: Schema.Array(Schema.String), | 27574 | threadIds: Schema.Array(Schema.String), |
| 21575 | }).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitation" }); | 27575 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__MemoryCitation" }); |
| 21576 | | 27576 | |
| 21577 | export type V2TurnCompletedNotification__CommandAction = | 27577 | export type V2ThreadUnarchiveResponse__CommandAction = |
| 21578 | | { | 27578 | | { |
| 21579 | readonly command: string; | 27579 | readonly command: string; |
| 21580 | readonly name: string; | 27580 | readonly name: string; |
| 21581 | readonly path: V2TurnCompletedNotification__AbsolutePathBuf; | 27581 | readonly path: V2ThreadUnarchiveResponse__LegacyAppPathString; |
| 21582 | readonly type: "read"; | 27582 | readonly type: "read"; |
| 21583 | } | 27583 | } |
| 21584 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 27584 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -21589,12 +27589,12 @@ export type V2TurnCompletedNotification__CommandAction = | ... | @@ -21589,12 +27589,12 @@ export type V2TurnCompletedNotification__CommandAction = |
| 21589 | readonly type: "search"; | 27589 | readonly type: "search"; |
| 21590 | } | 27590 | } |
| 21591 | | { readonly command: string; readonly type: "unknown" }; | 27591 | | { readonly command: string; readonly type: "unknown" }; |
| 21592 | export const V2TurnCompletedNotification__CommandAction = Schema.Union( | 27592 | export const V2ThreadUnarchiveResponse__CommandAction = Schema.Union( |
| 21593 | [ | 27593 | [ |
| 21594 | Schema.Struct({ | 27594 | Schema.Struct({ |
| 21595 | command: Schema.String, | 27595 | command: Schema.String, |
| 21596 | name: Schema.String, | 27596 | name: Schema.String, |
| 21597 | path: V2TurnCompletedNotification__AbsolutePathBuf, | 27597 | path: V2ThreadUnarchiveResponse__LegacyAppPathString, |
| 21598 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 27598 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 21599 | }).annotate({ title: "ReadCommandAction" }), | 27599 | }).annotate({ title: "ReadCommandAction" }), |
| 21600 | Schema.Struct({ | 27600 | Schema.Struct({ |
| ... | @@ -21614,43 +27614,49 @@ export const V2TurnCompletedNotification__CommandAction = Schema.Union( | ... | @@ -21614,43 +27614,49 @@ export const V2TurnCompletedNotification__CommandAction = Schema.Union( |
| 21614 | }).annotate({ title: "UnknownCommandAction" }), | 27614 | }).annotate({ title: "UnknownCommandAction" }), |
| 21615 | ], | 27615 | ], |
| 21616 | { mode: "oneOf" }, | 27616 | { mode: "oneOf" }, |
| 21617 | ).annotate({ identifier: "V2TurnCompletedNotification__CommandAction" }); | 27617 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__CommandAction" }); |
| 21618 | | 27618 | |
| 21619 | export type V2TurnCompletedNotification__FileUpdateChange = { | 27619 | export type V2ThreadUnarchiveResponse__FileUpdateChange = { |
| 21620 | readonly diff: string; | 27620 | readonly diff: string; |
| 21621 | readonly kind: V2TurnCompletedNotification__PatchChangeKind; | 27621 | readonly kind: V2ThreadUnarchiveResponse__PatchChangeKind; |
| 21622 | readonly path: string; | 27622 | readonly path: string; |
| 21623 | }; | 27623 | }; |
| 21624 | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ | 27624 | export const V2ThreadUnarchiveResponse__FileUpdateChange = Schema.Struct({ |
| 21625 | diff: Schema.String, | 27625 | diff: Schema.String, |
| 21626 | kind: V2TurnCompletedNotification__PatchChangeKind, | 27626 | kind: V2ThreadUnarchiveResponse__PatchChangeKind, |
| 21627 | path: Schema.String, | 27627 | path: Schema.String, |
| 21628 | }).annotate({ identifier: "V2TurnCompletedNotification__FileUpdateChange" }); | 27628 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__FileUpdateChange" }); |
| 21629 | | 27629 | |
| 21630 | export type V2TurnCompletedNotification__CollabAgentState = { | 27630 | export type V2ThreadUnarchiveResponse__McpAppUi = { |
| 21631 | readonly message?: string | null; | 27631 | readonly preferredModelDisplayMode: V2ThreadUnarchiveResponse__McpAppDisplayMode; |
| 21632 | readonly status: V2TurnCompletedNotification__CollabAgentStatus; | 27632 | readonly resourceUri: string; |
| 21633 | }; | 27633 | }; |
| 21634 | export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({ | 27634 | export const V2ThreadUnarchiveResponse__McpAppUi = Schema.Struct({ |
| 21635 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27635 | preferredModelDisplayMode: V2ThreadUnarchiveResponse__McpAppDisplayMode, |
| 21636 | status: V2TurnCompletedNotification__CollabAgentStatus, | 27636 | resourceUri: Schema.String, |
| 21637 | }).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentState" }); | 27637 | }).annotate({ |
| | 27638 | description: |
| | 27639 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 27640 | identifier: "V2ThreadUnarchiveResponse__McpAppUi", |
| | 27641 | }); |
| 21638 | | 27642 | |
| 21639 | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { | 27643 | export type V2ThreadUnarchiveResponse__CollabAgentState = { |
| 21640 | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; | 27644 | readonly message?: string | null; |
| 21641 | readonly step: string; | 27645 | readonly status: V2ThreadUnarchiveResponse__CollabAgentStatus; |
| 21642 | }; | 27646 | }; |
| 21643 | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ | 27647 | export const V2ThreadUnarchiveResponse__CollabAgentState = Schema.Struct({ |
| 21644 | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, | 27648 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21645 | step: Schema.String, | 27649 | status: V2ThreadUnarchiveResponse__CollabAgentStatus, |
| 21646 | }).annotate({ identifier: "V2TurnPlanUpdatedNotification__TurnPlanStep" }); | 27650 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__CollabAgentState" }); |
| 21647 | | 27651 | |
| 21648 | export type V2TurnStartedNotification__CodexErrorInfo = | 27652 | export type V2TurnCompletedNotification__CodexErrorInfo = |
| 21649 | | "contextWindowExceeded" | 27653 | | "contextWindowExceeded" |
| 21650 | | "sessionBudgetExceeded" | 27654 | | "sessionBudgetExceeded" |
| 21651 | | "usageLimitExceeded" | 27655 | | "usageLimitExceeded" |
| | 27656 | | "rateLimitExceeded" |
| 21652 | | "serverOverloaded" | 27657 | | "serverOverloaded" |
| 21653 | | "cyberPolicy" | 27658 | | "cyberPolicy" |
| | 27659 | | "misalignmentPolicyViolation" |
| 21654 | | "internalServerError" | 27660 | | "internalServerError" |
| 21655 | | "unauthorized" | 27661 | | "unauthorized" |
| 21656 | | "badRequest" | 27662 | | "badRequest" |
| ... | @@ -21663,17 +27669,19 @@ export type V2TurnStartedNotification__CodexErrorInfo = | ... | @@ -21663,17 +27669,19 @@ export type V2TurnStartedNotification__CodexErrorInfo = |
| 21663 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } | 27669 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| 21664 | | { | 27670 | | { |
| 21665 | readonly activeTurnNotSteerable: { | 27671 | readonly activeTurnNotSteerable: { |
| 21666 | readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind; | 27672 | readonly turnKind: V2TurnCompletedNotification__NonSteerableTurnKind; |
| 21667 | }; | 27673 | }; |
| 21668 | }; | 27674 | }; |
| 21669 | export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | 27675 | export const V2TurnCompletedNotification__CodexErrorInfo = Schema.Union( |
| 21670 | [ | 27676 | [ |
| 21671 | Schema.Literals([ | 27677 | Schema.Literals([ |
| 21672 | "contextWindowExceeded", | 27678 | "contextWindowExceeded", |
| 21673 | "sessionBudgetExceeded", | 27679 | "sessionBudgetExceeded", |
| 21674 | "usageLimitExceeded", | 27680 | "usageLimitExceeded", |
| | 27681 | "rateLimitExceeded", |
| 21675 | "serverOverloaded", | 27682 | "serverOverloaded", |
| 21676 | "cyberPolicy", | 27683 | "cyberPolicy", |
| | 27684 | "misalignmentPolicyViolation", |
| 21677 | "internalServerError", | 27685 | "internalServerError", |
| 21678 | "unauthorized", | 27686 | "unauthorized", |
| 21679 | "badRequest", | 27687 | "badRequest", |
| ... | @@ -21757,7 +27765,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -21757,7 +27765,7 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 21757 | }), | 27765 | }), |
| 21758 | Schema.Struct({ | 27766 | Schema.Struct({ |
| 21759 | activeTurnNotSteerable: Schema.Struct({ | 27767 | activeTurnNotSteerable: Schema.Struct({ |
| 21760 | turnKind: V2TurnStartedNotification__NonSteerableTurnKind, | 27768 | turnKind: V2TurnCompletedNotification__NonSteerableTurnKind, |
| 21761 | }), | 27769 | }), |
| 21762 | }).annotate({ | 27770 | }).annotate({ |
| 21763 | title: "ActiveTurnNotSteerableCodexErrorInfo", | 27771 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| ... | @@ -21769,16 +27777,49 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( | ... | @@ -21769,16 +27777,49 @@ export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| 21769 | ).annotate({ | 27777 | ).annotate({ |
| 21770 | description: | 27778 | description: |
| 21771 | "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.", | 27779 | "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.", |
| 21772 | identifier: "V2TurnStartedNotification__CodexErrorInfo", | 27780 | identifier: "V2TurnCompletedNotification__CodexErrorInfo", |
| 21773 | }); | 27781 | }); |
| 21774 | | 27782 | |
| 21775 | export type V2TurnStartedNotification__TextElement = { | 27783 | export type V2TurnCompletedNotification__MisalignmentErrorDetails = { |
| 21776 | readonly byteRange: V2TurnStartedNotification__ByteRange; | 27784 | readonly detailedExplanation?: string | null; |
| | 27785 | readonly errorType?: string | null; |
| | 27786 | readonly steer?: V2TurnCompletedNotification__MisalignmentSteer | null; |
| | 27787 | }; |
| | 27788 | export const V2TurnCompletedNotification__MisalignmentErrorDetails = Schema.Struct({ |
| | 27789 | detailedExplanation: Schema.optionalKey( |
| | 27790 | Schema.Union([ |
| | 27791 | Schema.String.annotate({ |
| | 27792 | description: |
| | 27793 | "A substantive localized explanation is required before offering continuation.", |
| | 27794 | }), |
| | 27795 | Schema.Null, |
| | 27796 | ]), |
| | 27797 | ), |
| | 27798 | errorType: Schema.optionalKey( |
| | 27799 | Schema.Union([ |
| | 27800 | Schema.String.annotate({ |
| | 27801 | description: |
| | 27802 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 27803 | }), |
| | 27804 | Schema.Null, |
| | 27805 | ]), |
| | 27806 | ), |
| | 27807 | steer: Schema.optionalKey( |
| | 27808 | Schema.Union([V2TurnCompletedNotification__MisalignmentSteer, Schema.Null]).annotate({ |
| | 27809 | description: |
| | 27810 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 27811 | }), |
| | 27812 | ), |
| | 27813 | }).annotate({ identifier: "V2TurnCompletedNotification__MisalignmentErrorDetails" }); |
| | 27814 | |
| | 27815 | export type V2TurnCompletedNotification__TextElement = { |
| | 27816 | readonly byteRange: V2TurnCompletedNotification__ByteRange; |
| 21777 | readonly placeholder?: string | null; | 27817 | readonly placeholder?: string | null; |
| 21778 | }; | 27818 | }; |
| 21779 | export const V2TurnStartedNotification__TextElement = Schema.Struct({ | 27819 | export const V2TurnCompletedNotification__TextElement = Schema.Struct({ |
| 21780 | byteRange: Schema.suspend( | 27820 | byteRange: Schema.suspend( |
| 21781 | (): Schema.Codec<V2TurnStartedNotification__ByteRange> => V2TurnStartedNotification__ByteRange, | 27821 | (): Schema.Codec<V2TurnCompletedNotification__ByteRange> => |
| | 27822 | V2TurnCompletedNotification__ByteRange, |
| 21782 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), | 27823 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| 21783 | placeholder: Schema.optionalKey( | 27824 | placeholder: Schema.optionalKey( |
| 21784 | Schema.Union([ | 27825 | Schema.Union([ |
| ... | @@ -21788,22 +27829,84 @@ export const V2TurnStartedNotification__TextElement = Schema.Struct({ | ... | @@ -21788,22 +27829,84 @@ export const V2TurnStartedNotification__TextElement = Schema.Struct({ |
| 21788 | Schema.Null, | 27829 | Schema.Null, |
| 21789 | ]), | 27830 | ]), |
| 21790 | ), | 27831 | ), |
| 21791 | }).annotate({ identifier: "V2TurnStartedNotification__TextElement" }); | 27832 | }).annotate({ identifier: "V2TurnCompletedNotification__TextElement" }); |
| 21792 | | 27833 | |
| 21793 | export type V2TurnStartedNotification__MemoryCitation = { | 27834 | export type V2TurnCompletedNotification__FunctionCallOutputContentItem = |
| 21794 | readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>; | 27835 | | { readonly text: string; readonly type: "input_text" } |
| | 27836 | | { |
| | 27837 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; |
| | 27838 | readonly type: "input_image"; |
| | 27839 | readonly image_url: string; |
| | 27840 | } |
| | 27841 | | { |
| | 27842 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; |
| | 27843 | readonly type: "input_image"; |
| | 27844 | readonly file_id: string; |
| | 27845 | } |
| | 27846 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 27847 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 27848 | export const V2TurnCompletedNotification__FunctionCallOutputContentItem = Schema.Union( |
| | 27849 | [ |
| | 27850 | Schema.Struct({ |
| | 27851 | text: Schema.String, |
| | 27852 | type: Schema.Literal("input_text").annotate({ |
| | 27853 | title: "InputTextFunctionCallOutputContentItemType", |
| | 27854 | }), |
| | 27855 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 27856 | Schema.Union([ |
| | 27857 | Schema.Struct({ |
| | 27858 | detail: Schema.optionalKey( |
| | 27859 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), |
| | 27860 | ), |
| | 27861 | type: Schema.Literal("input_image").annotate({ |
| | 27862 | title: "InputImageFunctionCallOutputContentItemType", |
| | 27863 | }), |
| | 27864 | image_url: Schema.String, |
| | 27865 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 27866 | Schema.Struct({ |
| | 27867 | detail: Schema.optionalKey( |
| | 27868 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), |
| | 27869 | ), |
| | 27870 | type: Schema.Literal("input_image").annotate({ |
| | 27871 | title: "InputImageFunctionCallOutputContentItemType", |
| | 27872 | }), |
| | 27873 | file_id: Schema.String, |
| | 27874 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 27875 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 27876 | Schema.Struct({ |
| | 27877 | audio_url: Schema.String, |
| | 27878 | type: Schema.Literal("input_audio").annotate({ |
| | 27879 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 27880 | }), |
| | 27881 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 27882 | Schema.Struct({ |
| | 27883 | encrypted_content: Schema.String, |
| | 27884 | type: Schema.Literal("encrypted_content").annotate({ |
| | 27885 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 27886 | }), |
| | 27887 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 27888 | ], |
| | 27889 | { mode: "oneOf" }, |
| | 27890 | ).annotate({ |
| | 27891 | description: |
| | 27892 | "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.", |
| | 27893 | identifier: "V2TurnCompletedNotification__FunctionCallOutputContentItem", |
| | 27894 | }); |
| | 27895 | |
| | 27896 | export type V2TurnCompletedNotification__MemoryCitation = { |
| | 27897 | readonly entries: ReadonlyArray<V2TurnCompletedNotification__MemoryCitationEntry>; |
| 21795 | readonly threadIds: ReadonlyArray<string>; | 27898 | readonly threadIds: ReadonlyArray<string>; |
| 21796 | }; | 27899 | }; |
| 21797 | export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({ | 27900 | export const V2TurnCompletedNotification__MemoryCitation = Schema.Struct({ |
| 21798 | entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry), | 27901 | entries: Schema.Array(V2TurnCompletedNotification__MemoryCitationEntry), |
| 21799 | threadIds: Schema.Array(Schema.String), | 27902 | threadIds: Schema.Array(Schema.String), |
| 21800 | }).annotate({ identifier: "V2TurnStartedNotification__MemoryCitation" }); | 27903 | }).annotate({ identifier: "V2TurnCompletedNotification__MemoryCitation" }); |
| 21801 | | 27904 | |
| 21802 | export type V2TurnStartedNotification__CommandAction = | 27905 | export type V2TurnCompletedNotification__CommandAction = |
| 21803 | | { | 27906 | | { |
| 21804 | readonly command: string; | 27907 | readonly command: string; |
| 21805 | readonly name: string; | 27908 | readonly name: string; |
| 21806 | readonly path: V2TurnStartedNotification__AbsolutePathBuf; | 27909 | readonly path: V2TurnCompletedNotification__LegacyAppPathString; |
| 21807 | readonly type: "read"; | 27910 | readonly type: "read"; |
| 21808 | } | 27911 | } |
| 21809 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 27912 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -21814,12 +27917,12 @@ export type V2TurnStartedNotification__CommandAction = | ... | @@ -21814,12 +27917,12 @@ export type V2TurnStartedNotification__CommandAction = |
| 21814 | readonly type: "search"; | 27917 | readonly type: "search"; |
| 21815 | } | 27918 | } |
| 21816 | | { readonly command: string; readonly type: "unknown" }; | 27919 | | { readonly command: string; readonly type: "unknown" }; |
| 21817 | export const V2TurnStartedNotification__CommandAction = Schema.Union( | 27920 | export const V2TurnCompletedNotification__CommandAction = Schema.Union( |
| 21818 | [ | 27921 | [ |
| 21819 | Schema.Struct({ | 27922 | Schema.Struct({ |
| 21820 | command: Schema.String, | 27923 | command: Schema.String, |
| 21821 | name: Schema.String, | 27924 | name: Schema.String, |
| 21822 | path: V2TurnStartedNotification__AbsolutePathBuf, | 27925 | path: V2TurnCompletedNotification__LegacyAppPathString, |
| 21823 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 27926 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 21824 | }).annotate({ title: "ReadCommandAction" }), | 27927 | }).annotate({ title: "ReadCommandAction" }), |
| 21825 | Schema.Struct({ | 27928 | Schema.Struct({ |
| ... | @@ -21839,66 +27942,473 @@ export const V2TurnStartedNotification__CommandAction = Schema.Union( | ... | @@ -21839,66 +27942,473 @@ export const V2TurnStartedNotification__CommandAction = Schema.Union( |
| 21839 | }).annotate({ title: "UnknownCommandAction" }), | 27942 | }).annotate({ title: "UnknownCommandAction" }), |
| 21840 | ], | 27943 | ], |
| 21841 | { mode: "oneOf" }, | 27944 | { mode: "oneOf" }, |
| 21842 | ).annotate({ identifier: "V2TurnStartedNotification__CommandAction" }); | 27945 | ).annotate({ identifier: "V2TurnCompletedNotification__CommandAction" }); |
| 21843 | | 27946 | |
| 21844 | export type V2TurnStartedNotification__FileUpdateChange = { | 27947 | export type V2TurnCompletedNotification__FileUpdateChange = { |
| 21845 | readonly diff: string; | 27948 | readonly diff: string; |
| 21846 | readonly kind: V2TurnStartedNotification__PatchChangeKind; | 27949 | readonly kind: V2TurnCompletedNotification__PatchChangeKind; |
| 21847 | readonly path: string; | 27950 | readonly path: string; |
| 21848 | }; | 27951 | }; |
| 21849 | export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({ | 27952 | export const V2TurnCompletedNotification__FileUpdateChange = Schema.Struct({ |
| 21850 | diff: Schema.String, | 27953 | diff: Schema.String, |
| 21851 | kind: V2TurnStartedNotification__PatchChangeKind, | 27954 | kind: V2TurnCompletedNotification__PatchChangeKind, |
| 21852 | path: Schema.String, | 27955 | path: Schema.String, |
| 21853 | }).annotate({ identifier: "V2TurnStartedNotification__FileUpdateChange" }); | 27956 | }).annotate({ identifier: "V2TurnCompletedNotification__FileUpdateChange" }); |
| 21854 | | | |
| 21855 | export type V2TurnStartedNotification__CollabAgentState = { | | |
| 21856 | readonly message?: string | null; | | |
| 21857 | readonly status: V2TurnStartedNotification__CollabAgentStatus; | | |
| 21858 | }; | | |
| 21859 | export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({ | | |
| 21860 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 21861 | status: V2TurnStartedNotification__CollabAgentStatus, | | |
| 21862 | }).annotate({ identifier: "V2TurnStartedNotification__CollabAgentState" }); | | |
| 21863 | | 27957 | |
| 21864 | export type V2TurnStartParams__Settings = { | 27958 | export type V2TurnCompletedNotification__McpAppUi = { |
| 21865 | readonly developer_instructions?: string | null; | 27959 | readonly preferredModelDisplayMode: V2TurnCompletedNotification__McpAppDisplayMode; |
| 21866 | readonly model: string; | 27960 | readonly resourceUri: string; |
| 21867 | readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null; | | |
| 21868 | }; | 27961 | }; |
| 21869 | export const V2TurnStartParams__Settings = Schema.Struct({ | 27962 | export const V2TurnCompletedNotification__McpAppUi = Schema.Struct({ |
| 21870 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 27963 | preferredModelDisplayMode: V2TurnCompletedNotification__McpAppDisplayMode, |
| 21871 | model: Schema.String, | 27964 | resourceUri: Schema.String, |
| 21872 | reasoning_effort: Schema.optionalKey( | | |
| 21873 | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]), | | |
| 21874 | ), | | |
| 21875 | }).annotate({ | 27965 | }).annotate({ |
| 21876 | description: "Settings for a collaboration mode.", | 27966 | description: |
| 21877 | identifier: "V2TurnStartParams__Settings", | 27967 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 27968 | identifier: "V2TurnCompletedNotification__McpAppUi", |
| 21878 | }); | 27969 | }); |
| 21879 | | 27970 | |
| 21880 | export type V2TurnStartParams__TextElement = { | 27971 | export type V2TurnCompletedNotification__CollabAgentState = { |
| 21881 | readonly byteRange: V2TurnStartParams__ByteRange; | 27972 | readonly message?: string | null; |
| 21882 | readonly placeholder?: string | null; | 27973 | readonly status: V2TurnCompletedNotification__CollabAgentStatus; |
| 21883 | }; | 27974 | }; |
| 21884 | export const V2TurnStartParams__TextElement = Schema.Struct({ | 27975 | export const V2TurnCompletedNotification__CollabAgentState = Schema.Struct({ |
| 21885 | byteRange: Schema.suspend( | 27976 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 21886 | (): Schema.Codec<V2TurnStartParams__ByteRange> => V2TurnStartParams__ByteRange, | 27977 | status: V2TurnCompletedNotification__CollabAgentStatus, |
| 21887 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), | 27978 | }).annotate({ identifier: "V2TurnCompletedNotification__CollabAgentState" }); |
| 21888 | placeholder: Schema.optionalKey( | | |
| 21889 | Schema.Union([ | | |
| 21890 | Schema.String.annotate({ | | |
| 21891 | description: "Optional human-readable placeholder for the element, displayed in the UI.", | | |
| 21892 | }), | | |
| 21893 | Schema.Null, | | |
| 21894 | ]), | | |
| 21895 | ), | | |
| 21896 | }).annotate({ identifier: "V2TurnStartParams__TextElement" }); | | |
| 21897 | | 27979 | |
| 21898 | export type V2TurnStartParams__SandboxPolicy = | 27980 | export type V2TurnPlanUpdatedNotification__TurnPlanStep = { |
| 21899 | | { readonly type: "dangerFullAccess" } | 27981 | readonly status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus; |
| 21900 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } | 27982 | readonly step: string; |
| 21901 | | { readonly networkAccess?: V2TurnStartParams__NetworkAccess; readonly type: "externalSandbox" } | 27983 | }; |
| | 27984 | export const V2TurnPlanUpdatedNotification__TurnPlanStep = Schema.Struct({ |
| | 27985 | status: V2TurnPlanUpdatedNotification__TurnPlanStepStatus, |
| | 27986 | step: Schema.String, |
| | 27987 | }).annotate({ identifier: "V2TurnPlanUpdatedNotification__TurnPlanStep" }); |
| | 27988 | |
| | 27989 | export type V2TurnStartedNotification__CodexErrorInfo = |
| | 27990 | | "contextWindowExceeded" |
| | 27991 | | "sessionBudgetExceeded" |
| | 27992 | | "usageLimitExceeded" |
| | 27993 | | "rateLimitExceeded" |
| | 27994 | | "serverOverloaded" |
| | 27995 | | "cyberPolicy" |
| | 27996 | | "misalignmentPolicyViolation" |
| | 27997 | | "internalServerError" |
| | 27998 | | "unauthorized" |
| | 27999 | | "badRequest" |
| | 28000 | | "threadRollbackFailed" |
| | 28001 | | "sandboxError" |
| | 28002 | | "other" |
| | 28003 | | { readonly httpConnectionFailed: { readonly httpStatusCode?: number | null } } |
| | 28004 | | { readonly responseStreamConnectionFailed: { readonly httpStatusCode?: number | null } } |
| | 28005 | | { readonly responseStreamDisconnected: { readonly httpStatusCode?: number | null } } |
| | 28006 | | { readonly responseTooManyFailedAttempts: { readonly httpStatusCode?: number | null } } |
| | 28007 | | { |
| | 28008 | readonly activeTurnNotSteerable: { |
| | 28009 | readonly turnKind: V2TurnStartedNotification__NonSteerableTurnKind; |
| | 28010 | }; |
| | 28011 | }; |
| | 28012 | export const V2TurnStartedNotification__CodexErrorInfo = Schema.Union( |
| | 28013 | [ |
| | 28014 | Schema.Literals([ |
| | 28015 | "contextWindowExceeded", |
| | 28016 | "sessionBudgetExceeded", |
| | 28017 | "usageLimitExceeded", |
| | 28018 | "rateLimitExceeded", |
| | 28019 | "serverOverloaded", |
| | 28020 | "cyberPolicy", |
| | 28021 | "misalignmentPolicyViolation", |
| | 28022 | "internalServerError", |
| | 28023 | "unauthorized", |
| | 28024 | "badRequest", |
| | 28025 | "threadRollbackFailed", |
| | 28026 | "sandboxError", |
| | 28027 | "other", |
| | 28028 | ]), |
| | 28029 | Schema.Struct({ |
| | 28030 | httpConnectionFailed: Schema.Struct({ |
| | 28031 | httpStatusCode: Schema.optionalKey( |
| | 28032 | Schema.Union([ |
| | 28033 | Schema.Number.annotate({ format: "uint16" }) |
| | 28034 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 28035 | .check( |
| | 28036 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 28037 | expected: "a value greater than or equal to 0", |
| | 28038 | }), |
| | 28039 | ), |
| | 28040 | Schema.Null, |
| | 28041 | ]), |
| | 28042 | ), |
| | 28043 | }), |
| | 28044 | }).annotate({ title: "HttpConnectionFailedCodexErrorInfo" }), |
| | 28045 | Schema.Struct({ |
| | 28046 | responseStreamConnectionFailed: Schema.Struct({ |
| | 28047 | httpStatusCode: Schema.optionalKey( |
| | 28048 | Schema.Union([ |
| | 28049 | Schema.Number.annotate({ format: "uint16" }) |
| | 28050 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 28051 | .check( |
| | 28052 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 28053 | expected: "a value greater than or equal to 0", |
| | 28054 | }), |
| | 28055 | ), |
| | 28056 | Schema.Null, |
| | 28057 | ]), |
| | 28058 | ), |
| | 28059 | }), |
| | 28060 | }).annotate({ |
| | 28061 | title: "ResponseStreamConnectionFailedCodexErrorInfo", |
| | 28062 | description: "Failed to connect to the response SSE stream.", |
| | 28063 | }), |
| | 28064 | Schema.Struct({ |
| | 28065 | responseStreamDisconnected: Schema.Struct({ |
| | 28066 | httpStatusCode: Schema.optionalKey( |
| | 28067 | Schema.Union([ |
| | 28068 | Schema.Number.annotate({ format: "uint16" }) |
| | 28069 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 28070 | .check( |
| | 28071 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 28072 | expected: "a value greater than or equal to 0", |
| | 28073 | }), |
| | 28074 | ), |
| | 28075 | Schema.Null, |
| | 28076 | ]), |
| | 28077 | ), |
| | 28078 | }), |
| | 28079 | }).annotate({ |
| | 28080 | title: "ResponseStreamDisconnectedCodexErrorInfo", |
| | 28081 | description: |
| | 28082 | "The response SSE stream disconnected in the middle of a turn before completion.", |
| | 28083 | }), |
| | 28084 | Schema.Struct({ |
| | 28085 | responseTooManyFailedAttempts: Schema.Struct({ |
| | 28086 | httpStatusCode: Schema.optionalKey( |
| | 28087 | Schema.Union([ |
| | 28088 | Schema.Number.annotate({ format: "uint16" }) |
| | 28089 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 28090 | .check( |
| | 28091 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 28092 | expected: "a value greater than or equal to 0", |
| | 28093 | }), |
| | 28094 | ), |
| | 28095 | Schema.Null, |
| | 28096 | ]), |
| | 28097 | ), |
| | 28098 | }), |
| | 28099 | }).annotate({ |
| | 28100 | title: "ResponseTooManyFailedAttemptsCodexErrorInfo", |
| | 28101 | description: "Reached the retry limit for responses.", |
| | 28102 | }), |
| | 28103 | Schema.Struct({ |
| | 28104 | activeTurnNotSteerable: Schema.Struct({ |
| | 28105 | turnKind: V2TurnStartedNotification__NonSteerableTurnKind, |
| | 28106 | }), |
| | 28107 | }).annotate({ |
| | 28108 | title: "ActiveTurnNotSteerableCodexErrorInfo", |
| | 28109 | description: |
| | 28110 | "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`.", |
| | 28111 | }), |
| | 28112 | ], |
| | 28113 | { mode: "oneOf" }, |
| | 28114 | ).annotate({ |
| | 28115 | description: |
| | 28116 | "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.", |
| | 28117 | identifier: "V2TurnStartedNotification__CodexErrorInfo", |
| | 28118 | }); |
| | 28119 | |
| | 28120 | export type V2TurnStartedNotification__MisalignmentErrorDetails = { |
| | 28121 | readonly detailedExplanation?: string | null; |
| | 28122 | readonly errorType?: string | null; |
| | 28123 | readonly steer?: V2TurnStartedNotification__MisalignmentSteer | null; |
| | 28124 | }; |
| | 28125 | export const V2TurnStartedNotification__MisalignmentErrorDetails = Schema.Struct({ |
| | 28126 | detailedExplanation: Schema.optionalKey( |
| | 28127 | Schema.Union([ |
| | 28128 | Schema.String.annotate({ |
| | 28129 | description: |
| | 28130 | "A substantive localized explanation is required before offering continuation.", |
| | 28131 | }), |
| | 28132 | Schema.Null, |
| | 28133 | ]), |
| | 28134 | ), |
| | 28135 | errorType: Schema.optionalKey( |
| | 28136 | Schema.Union([ |
| | 28137 | Schema.String.annotate({ |
| | 28138 | description: |
| | 28139 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 28140 | }), |
| | 28141 | Schema.Null, |
| | 28142 | ]), |
| | 28143 | ), |
| | 28144 | steer: Schema.optionalKey( |
| | 28145 | Schema.Union([V2TurnStartedNotification__MisalignmentSteer, Schema.Null]).annotate({ |
| | 28146 | description: |
| | 28147 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 28148 | }), |
| | 28149 | ), |
| | 28150 | }).annotate({ identifier: "V2TurnStartedNotification__MisalignmentErrorDetails" }); |
| | 28151 | |
| | 28152 | export type V2TurnStartedNotification__TextElement = { |
| | 28153 | readonly byteRange: V2TurnStartedNotification__ByteRange; |
| | 28154 | readonly placeholder?: string | null; |
| | 28155 | }; |
| | 28156 | export const V2TurnStartedNotification__TextElement = Schema.Struct({ |
| | 28157 | byteRange: Schema.suspend( |
| | 28158 | (): Schema.Codec<V2TurnStartedNotification__ByteRange> => V2TurnStartedNotification__ByteRange, |
| | 28159 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 28160 | placeholder: Schema.optionalKey( |
| | 28161 | Schema.Union([ |
| | 28162 | Schema.String.annotate({ |
| | 28163 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 28164 | }), |
| | 28165 | Schema.Null, |
| | 28166 | ]), |
| | 28167 | ), |
| | 28168 | }).annotate({ identifier: "V2TurnStartedNotification__TextElement" }); |
| | 28169 | |
| | 28170 | export type V2TurnStartedNotification__FunctionCallOutputContentItem = |
| | 28171 | | { readonly text: string; readonly type: "input_text" } |
| | 28172 | | { |
| | 28173 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; |
| | 28174 | readonly type: "input_image"; |
| | 28175 | readonly image_url: string; |
| | 28176 | } |
| | 28177 | | { |
| | 28178 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; |
| | 28179 | readonly type: "input_image"; |
| | 28180 | readonly file_id: string; |
| | 28181 | } |
| | 28182 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 28183 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 28184 | export const V2TurnStartedNotification__FunctionCallOutputContentItem = Schema.Union( |
| | 28185 | [ |
| | 28186 | Schema.Struct({ |
| | 28187 | text: Schema.String, |
| | 28188 | type: Schema.Literal("input_text").annotate({ |
| | 28189 | title: "InputTextFunctionCallOutputContentItemType", |
| | 28190 | }), |
| | 28191 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 28192 | Schema.Union([ |
| | 28193 | Schema.Struct({ |
| | 28194 | detail: Schema.optionalKey( |
| | 28195 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), |
| | 28196 | ), |
| | 28197 | type: Schema.Literal("input_image").annotate({ |
| | 28198 | title: "InputImageFunctionCallOutputContentItemType", |
| | 28199 | }), |
| | 28200 | image_url: Schema.String, |
| | 28201 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 28202 | Schema.Struct({ |
| | 28203 | detail: Schema.optionalKey( |
| | 28204 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), |
| | 28205 | ), |
| | 28206 | type: Schema.Literal("input_image").annotate({ |
| | 28207 | title: "InputImageFunctionCallOutputContentItemType", |
| | 28208 | }), |
| | 28209 | file_id: Schema.String, |
| | 28210 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 28211 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 28212 | Schema.Struct({ |
| | 28213 | audio_url: Schema.String, |
| | 28214 | type: Schema.Literal("input_audio").annotate({ |
| | 28215 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 28216 | }), |
| | 28217 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 28218 | Schema.Struct({ |
| | 28219 | encrypted_content: Schema.String, |
| | 28220 | type: Schema.Literal("encrypted_content").annotate({ |
| | 28221 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 28222 | }), |
| | 28223 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 28224 | ], |
| | 28225 | { mode: "oneOf" }, |
| | 28226 | ).annotate({ |
| | 28227 | description: |
| | 28228 | "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.", |
| | 28229 | identifier: "V2TurnStartedNotification__FunctionCallOutputContentItem", |
| | 28230 | }); |
| | 28231 | |
| | 28232 | export type V2TurnStartedNotification__MemoryCitation = { |
| | 28233 | readonly entries: ReadonlyArray<V2TurnStartedNotification__MemoryCitationEntry>; |
| | 28234 | readonly threadIds: ReadonlyArray<string>; |
| | 28235 | }; |
| | 28236 | export const V2TurnStartedNotification__MemoryCitation = Schema.Struct({ |
| | 28237 | entries: Schema.Array(V2TurnStartedNotification__MemoryCitationEntry), |
| | 28238 | threadIds: Schema.Array(Schema.String), |
| | 28239 | }).annotate({ identifier: "V2TurnStartedNotification__MemoryCitation" }); |
| | 28240 | |
| | 28241 | export type V2TurnStartedNotification__CommandAction = |
| | 28242 | | { |
| | 28243 | readonly command: string; |
| | 28244 | readonly name: string; |
| | 28245 | readonly path: V2TurnStartedNotification__LegacyAppPathString; |
| | 28246 | readonly type: "read"; |
| | 28247 | } |
| | 28248 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| | 28249 | | { |
| | 28250 | readonly command: string; |
| | 28251 | readonly path?: string | null; |
| | 28252 | readonly query?: string | null; |
| | 28253 | readonly type: "search"; |
| | 28254 | } |
| | 28255 | | { readonly command: string; readonly type: "unknown" }; |
| | 28256 | export const V2TurnStartedNotification__CommandAction = Schema.Union( |
| | 28257 | [ |
| | 28258 | Schema.Struct({ |
| | 28259 | command: Schema.String, |
| | 28260 | name: Schema.String, |
| | 28261 | path: V2TurnStartedNotification__LegacyAppPathString, |
| | 28262 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| | 28263 | }).annotate({ title: "ReadCommandAction" }), |
| | 28264 | Schema.Struct({ |
| | 28265 | command: Schema.String, |
| | 28266 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 28267 | type: Schema.Literal("listFiles").annotate({ title: "ListFilesCommandActionType" }), |
| | 28268 | }).annotate({ title: "ListFilesCommandAction" }), |
| | 28269 | Schema.Struct({ |
| | 28270 | command: Schema.String, |
| | 28271 | path: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 28272 | query: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 28273 | type: Schema.Literal("search").annotate({ title: "SearchCommandActionType" }), |
| | 28274 | }).annotate({ title: "SearchCommandAction" }), |
| | 28275 | Schema.Struct({ |
| | 28276 | command: Schema.String, |
| | 28277 | type: Schema.Literal("unknown").annotate({ title: "UnknownCommandActionType" }), |
| | 28278 | }).annotate({ title: "UnknownCommandAction" }), |
| | 28279 | ], |
| | 28280 | { mode: "oneOf" }, |
| | 28281 | ).annotate({ identifier: "V2TurnStartedNotification__CommandAction" }); |
| | 28282 | |
| | 28283 | export type V2TurnStartedNotification__FileUpdateChange = { |
| | 28284 | readonly diff: string; |
| | 28285 | readonly kind: V2TurnStartedNotification__PatchChangeKind; |
| | 28286 | readonly path: string; |
| | 28287 | }; |
| | 28288 | export const V2TurnStartedNotification__FileUpdateChange = Schema.Struct({ |
| | 28289 | diff: Schema.String, |
| | 28290 | kind: V2TurnStartedNotification__PatchChangeKind, |
| | 28291 | path: Schema.String, |
| | 28292 | }).annotate({ identifier: "V2TurnStartedNotification__FileUpdateChange" }); |
| | 28293 | |
| | 28294 | export type V2TurnStartedNotification__McpAppUi = { |
| | 28295 | readonly preferredModelDisplayMode: V2TurnStartedNotification__McpAppDisplayMode; |
| | 28296 | readonly resourceUri: string; |
| | 28297 | }; |
| | 28298 | export const V2TurnStartedNotification__McpAppUi = Schema.Struct({ |
| | 28299 | preferredModelDisplayMode: V2TurnStartedNotification__McpAppDisplayMode, |
| | 28300 | resourceUri: Schema.String, |
| | 28301 | }).annotate({ |
| | 28302 | description: |
| | 28303 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 28304 | identifier: "V2TurnStartedNotification__McpAppUi", |
| | 28305 | }); |
| | 28306 | |
| | 28307 | export type V2TurnStartedNotification__CollabAgentState = { |
| | 28308 | readonly message?: string | null; |
| | 28309 | readonly status: V2TurnStartedNotification__CollabAgentStatus; |
| | 28310 | }; |
| | 28311 | export const V2TurnStartedNotification__CollabAgentState = Schema.Struct({ |
| | 28312 | message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 28313 | status: V2TurnStartedNotification__CollabAgentStatus, |
| | 28314 | }).annotate({ identifier: "V2TurnStartedNotification__CollabAgentState" }); |
| | 28315 | |
| | 28316 | export type V2TurnStartParams__Settings = { |
| | 28317 | readonly developer_instructions?: string | null; |
| | 28318 | readonly model: string; |
| | 28319 | readonly reasoning_effort?: V2TurnStartParams__ReasoningEffort | null; |
| | 28320 | }; |
| | 28321 | export const V2TurnStartParams__Settings = Schema.Struct({ |
| | 28322 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 28323 | model: Schema.String, |
| | 28324 | reasoning_effort: Schema.optionalKey( |
| | 28325 | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]), |
| | 28326 | ), |
| | 28327 | }).annotate({ |
| | 28328 | description: "Settings for a collaboration mode.", |
| | 28329 | identifier: "V2TurnStartParams__Settings", |
| | 28330 | }); |
| | 28331 | |
| | 28332 | export type V2TurnStartParams__TextElement = { |
| | 28333 | readonly byteRange: V2TurnStartParams__ByteRange; |
| | 28334 | readonly placeholder?: string | null; |
| | 28335 | }; |
| | 28336 | export const V2TurnStartParams__TextElement = Schema.Struct({ |
| | 28337 | byteRange: Schema.suspend( |
| | 28338 | (): Schema.Codec<V2TurnStartParams__ByteRange> => V2TurnStartParams__ByteRange, |
| | 28339 | ).annotate({ description: "Byte range in the parent `text` buffer that this element occupies." }), |
| | 28340 | placeholder: Schema.optionalKey( |
| | 28341 | Schema.Union([ |
| | 28342 | Schema.String.annotate({ |
| | 28343 | description: "Optional human-readable placeholder for the element, displayed in the UI.", |
| | 28344 | }), |
| | 28345 | Schema.Null, |
| | 28346 | ]), |
| | 28347 | ), |
| | 28348 | }).annotate({ identifier: "V2TurnStartParams__TextElement" }); |
| | 28349 | |
| | 28350 | export type V2TurnStartParams__FunctionCallOutputContentItem = |
| | 28351 | | { readonly text: string; readonly type: "input_text" } |
| | 28352 | | { |
| | 28353 | readonly detail?: V2TurnStartParams__ImageDetail | null; |
| | 28354 | readonly type: "input_image"; |
| | 28355 | readonly image_url: string; |
| | 28356 | } |
| | 28357 | | { |
| | 28358 | readonly detail?: V2TurnStartParams__ImageDetail | null; |
| | 28359 | readonly type: "input_image"; |
| | 28360 | readonly file_id: string; |
| | 28361 | } |
| | 28362 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 28363 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 28364 | export const V2TurnStartParams__FunctionCallOutputContentItem = Schema.Union( |
| | 28365 | [ |
| | 28366 | Schema.Struct({ |
| | 28367 | text: Schema.String, |
| | 28368 | type: Schema.Literal("input_text").annotate({ |
| | 28369 | title: "InputTextFunctionCallOutputContentItemType", |
| | 28370 | }), |
| | 28371 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 28372 | Schema.Union([ |
| | 28373 | Schema.Struct({ |
| | 28374 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), |
| | 28375 | type: Schema.Literal("input_image").annotate({ |
| | 28376 | title: "InputImageFunctionCallOutputContentItemType", |
| | 28377 | }), |
| | 28378 | image_url: Schema.String, |
| | 28379 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 28380 | Schema.Struct({ |
| | 28381 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), |
| | 28382 | type: Schema.Literal("input_image").annotate({ |
| | 28383 | title: "InputImageFunctionCallOutputContentItemType", |
| | 28384 | }), |
| | 28385 | file_id: Schema.String, |
| | 28386 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 28387 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 28388 | Schema.Struct({ |
| | 28389 | audio_url: Schema.String, |
| | 28390 | type: Schema.Literal("input_audio").annotate({ |
| | 28391 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 28392 | }), |
| | 28393 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 28394 | Schema.Struct({ |
| | 28395 | encrypted_content: Schema.String, |
| | 28396 | type: Schema.Literal("encrypted_content").annotate({ |
| | 28397 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 28398 | }), |
| | 28399 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 28400 | ], |
| | 28401 | { mode: "oneOf" }, |
| | 28402 | ).annotate({ |
| | 28403 | description: |
| | 28404 | "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.", |
| | 28405 | identifier: "V2TurnStartParams__FunctionCallOutputContentItem", |
| | 28406 | }); |
| | 28407 | |
| | 28408 | export type V2TurnStartParams__SandboxPolicy = |
| | 28409 | | { readonly type: "dangerFullAccess" } |
| | 28410 | | { readonly networkAccess?: boolean; readonly type: "readOnly" } |
| | 28411 | | { readonly networkAccess?: V2TurnStartParams__NetworkAccess; readonly type: "externalSandbox" } |
| 21902 | | { | 28412 | | { |
| 21903 | readonly excludeSlashTmp?: boolean; | 28413 | readonly excludeSlashTmp?: boolean; |
| 21904 | readonly excludeTmpdirEnvVar?: boolean; | 28414 | readonly excludeTmpdirEnvVar?: boolean; |
| ... | @@ -21944,8 +28454,10 @@ export type V2TurnStartResponse__CodexErrorInfo = | ... | @@ -21944,8 +28454,10 @@ export type V2TurnStartResponse__CodexErrorInfo = |
| 21944 | | "contextWindowExceeded" | 28454 | | "contextWindowExceeded" |
| 21945 | | "sessionBudgetExceeded" | 28455 | | "sessionBudgetExceeded" |
| 21946 | | "usageLimitExceeded" | 28456 | | "usageLimitExceeded" |
| | 28457 | | "rateLimitExceeded" |
| 21947 | | "serverOverloaded" | 28458 | | "serverOverloaded" |
| 21948 | | "cyberPolicy" | 28459 | | "cyberPolicy" |
| | 28460 | | "misalignmentPolicyViolation" |
| 21949 | | "internalServerError" | 28461 | | "internalServerError" |
| 21950 | | "unauthorized" | 28462 | | "unauthorized" |
| 21951 | | "badRequest" | 28463 | | "badRequest" |
| ... | @@ -21967,8 +28479,10 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -21967,8 +28479,10 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 21967 | "contextWindowExceeded", | 28479 | "contextWindowExceeded", |
| 21968 | "sessionBudgetExceeded", | 28480 | "sessionBudgetExceeded", |
| 21969 | "usageLimitExceeded", | 28481 | "usageLimitExceeded", |
| | 28482 | "rateLimitExceeded", |
| 21970 | "serverOverloaded", | 28483 | "serverOverloaded", |
| 21971 | "cyberPolicy", | 28484 | "cyberPolicy", |
| | 28485 | "misalignmentPolicyViolation", |
| 21972 | "internalServerError", | 28486 | "internalServerError", |
| 21973 | "unauthorized", | 28487 | "unauthorized", |
| 21974 | "badRequest", | 28488 | "badRequest", |
| ... | @@ -22067,6 +28581,38 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( | ... | @@ -22067,6 +28581,38 @@ export const V2TurnStartResponse__CodexErrorInfo = Schema.Union( |
| 22067 | identifier: "V2TurnStartResponse__CodexErrorInfo", | 28581 | identifier: "V2TurnStartResponse__CodexErrorInfo", |
| 22068 | }); | 28582 | }); |
| 22069 | | 28583 | |
| | 28584 | export type V2TurnStartResponse__MisalignmentErrorDetails = { |
| | 28585 | readonly detailedExplanation?: string | null; |
| | 28586 | readonly errorType?: string | null; |
| | 28587 | readonly steer?: V2TurnStartResponse__MisalignmentSteer | null; |
| | 28588 | }; |
| | 28589 | export const V2TurnStartResponse__MisalignmentErrorDetails = Schema.Struct({ |
| | 28590 | detailedExplanation: Schema.optionalKey( |
| | 28591 | Schema.Union([ |
| | 28592 | Schema.String.annotate({ |
| | 28593 | description: |
| | 28594 | "A substantive localized explanation is required before offering continuation.", |
| | 28595 | }), |
| | 28596 | Schema.Null, |
| | 28597 | ]), |
| | 28598 | ), |
| | 28599 | errorType: Schema.optionalKey( |
| | 28600 | Schema.Union([ |
| | 28601 | Schema.String.annotate({ |
| | 28602 | description: |
| | 28603 | "Open-ended classification; clients must accept categories added by Responses.", |
| | 28604 | }), |
| | 28605 | Schema.Null, |
| | 28606 | ]), |
| | 28607 | ), |
| | 28608 | steer: Schema.optionalKey( |
| | 28609 | Schema.Union([V2TurnStartResponse__MisalignmentSteer, Schema.Null]).annotate({ |
| | 28610 | description: |
| | 28611 | "Instruction to submit as the next turn's user input if continuation is confirmed.", |
| | 28612 | }), |
| | 28613 | ), |
| | 28614 | }).annotate({ identifier: "V2TurnStartResponse__MisalignmentErrorDetails" }); |
| | 28615 | |
| 22070 | export type V2TurnStartResponse__TextElement = { | 28616 | export type V2TurnStartResponse__TextElement = { |
| 22071 | readonly byteRange: V2TurnStartResponse__ByteRange; | 28617 | readonly byteRange: V2TurnStartResponse__ByteRange; |
| 22072 | readonly placeholder?: string | null; | 28618 | readonly placeholder?: string | null; |
| ... | @@ -22085,6 +28631,64 @@ export const V2TurnStartResponse__TextElement = Schema.Struct({ | ... | @@ -22085,6 +28631,64 @@ export const V2TurnStartResponse__TextElement = Schema.Struct({ |
| 22085 | ), | 28631 | ), |
| 22086 | }).annotate({ identifier: "V2TurnStartResponse__TextElement" }); | 28632 | }).annotate({ identifier: "V2TurnStartResponse__TextElement" }); |
| 22087 | | 28633 | |
| | 28634 | export type V2TurnStartResponse__FunctionCallOutputContentItem = |
| | 28635 | | { readonly text: string; readonly type: "input_text" } |
| | 28636 | | { |
| | 28637 | readonly detail?: V2TurnStartResponse__ImageDetail | null; |
| | 28638 | readonly type: "input_image"; |
| | 28639 | readonly image_url: string; |
| | 28640 | } |
| | 28641 | | { |
| | 28642 | readonly detail?: V2TurnStartResponse__ImageDetail | null; |
| | 28643 | readonly type: "input_image"; |
| | 28644 | readonly file_id: string; |
| | 28645 | } |
| | 28646 | | { readonly audio_url: string; readonly type: "input_audio" } |
| | 28647 | | { readonly encrypted_content: string; readonly type: "encrypted_content" }; |
| | 28648 | export const V2TurnStartResponse__FunctionCallOutputContentItem = Schema.Union( |
| | 28649 | [ |
| | 28650 | Schema.Struct({ |
| | 28651 | text: Schema.String, |
| | 28652 | type: Schema.Literal("input_text").annotate({ |
| | 28653 | title: "InputTextFunctionCallOutputContentItemType", |
| | 28654 | }), |
| | 28655 | }).annotate({ title: "InputTextFunctionCallOutputContentItem" }), |
| | 28656 | Schema.Union([ |
| | 28657 | Schema.Struct({ |
| | 28658 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), |
| | 28659 | type: Schema.Literal("input_image").annotate({ |
| | 28660 | title: "InputImageFunctionCallOutputContentItemType", |
| | 28661 | }), |
| | 28662 | image_url: Schema.String, |
| | 28663 | }).annotate({ title: "ImageUrlFunctionCallOutputContentItem" }), |
| | 28664 | Schema.Struct({ |
| | 28665 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), |
| | 28666 | type: Schema.Literal("input_image").annotate({ |
| | 28667 | title: "InputImageFunctionCallOutputContentItemType", |
| | 28668 | }), |
| | 28669 | file_id: Schema.String, |
| | 28670 | }).annotate({ title: "FileIdFunctionCallOutputContentItem" }), |
| | 28671 | ]).annotate({ title: "InputImageFunctionCallOutputContentItem" }), |
| | 28672 | Schema.Struct({ |
| | 28673 | audio_url: Schema.String, |
| | 28674 | type: Schema.Literal("input_audio").annotate({ |
| | 28675 | title: "InputAudioFunctionCallOutputContentItemType", |
| | 28676 | }), |
| | 28677 | }).annotate({ title: "InputAudioFunctionCallOutputContentItem" }), |
| | 28678 | Schema.Struct({ |
| | 28679 | encrypted_content: Schema.String, |
| | 28680 | type: Schema.Literal("encrypted_content").annotate({ |
| | 28681 | title: "EncryptedContentFunctionCallOutputContentItemType", |
| | 28682 | }), |
| | 28683 | }).annotate({ title: "EncryptedContentFunctionCallOutputContentItem" }), |
| | 28684 | ], |
| | 28685 | { mode: "oneOf" }, |
| | 28686 | ).annotate({ |
| | 28687 | description: |
| | 28688 | "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.", |
| | 28689 | identifier: "V2TurnStartResponse__FunctionCallOutputContentItem", |
| | 28690 | }); |
| | 28691 | |
| 22088 | export type V2TurnStartResponse__MemoryCitation = { | 28692 | export type V2TurnStartResponse__MemoryCitation = { |
| 22089 | readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>; | 28693 | readonly entries: ReadonlyArray<V2TurnStartResponse__MemoryCitationEntry>; |
| 22090 | readonly threadIds: ReadonlyArray<string>; | 28694 | readonly threadIds: ReadonlyArray<string>; |
| ... | @@ -22098,7 +28702,7 @@ export type V2TurnStartResponse__CommandAction = | ... | @@ -22098,7 +28702,7 @@ export type V2TurnStartResponse__CommandAction = |
| 22098 | | { | 28702 | | { |
| 22099 | readonly command: string; | 28703 | readonly command: string; |
| 22100 | readonly name: string; | 28704 | readonly name: string; |
| 22101 | readonly path: V2TurnStartResponse__AbsolutePathBuf; | 28705 | readonly path: V2TurnStartResponse__LegacyAppPathString; |
| 22102 | readonly type: "read"; | 28706 | readonly type: "read"; |
| 22103 | } | 28707 | } |
| 22104 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } | 28708 | | { readonly command: string; readonly path?: string | null; readonly type: "listFiles" } |
| ... | @@ -22114,7 +28718,7 @@ export const V2TurnStartResponse__CommandAction = Schema.Union( | ... | @@ -22114,7 +28718,7 @@ export const V2TurnStartResponse__CommandAction = Schema.Union( |
| 22114 | Schema.Struct({ | 28718 | Schema.Struct({ |
| 22115 | command: Schema.String, | 28719 | command: Schema.String, |
| 22116 | name: Schema.String, | 28720 | name: Schema.String, |
| 22117 | path: V2TurnStartResponse__AbsolutePathBuf, | 28721 | path: V2TurnStartResponse__LegacyAppPathString, |
| 22118 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), | 28722 | type: Schema.Literal("read").annotate({ title: "ReadCommandActionType" }), |
| 22119 | }).annotate({ title: "ReadCommandAction" }), | 28723 | }).annotate({ title: "ReadCommandAction" }), |
| 22120 | Schema.Struct({ | 28724 | Schema.Struct({ |
| ... | @@ -22147,6 +28751,19 @@ export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({ | ... | @@ -22147,6 +28751,19 @@ export const V2TurnStartResponse__FileUpdateChange = Schema.Struct({ |
| 22147 | path: Schema.String, | 28751 | path: Schema.String, |
| 22148 | }).annotate({ identifier: "V2TurnStartResponse__FileUpdateChange" }); | 28752 | }).annotate({ identifier: "V2TurnStartResponse__FileUpdateChange" }); |
| 22149 | | 28753 | |
| | 28754 | export type V2TurnStartResponse__McpAppUi = { |
| | 28755 | readonly preferredModelDisplayMode: V2TurnStartResponse__McpAppDisplayMode; |
| | 28756 | readonly resourceUri: string; |
| | 28757 | }; |
| | 28758 | export const V2TurnStartResponse__McpAppUi = Schema.Struct({ |
| | 28759 | preferredModelDisplayMode: V2TurnStartResponse__McpAppDisplayMode, |
| | 28760 | resourceUri: Schema.String, |
| | 28761 | }).annotate({ |
| | 28762 | description: |
| | 28763 | "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| | 28764 | identifier: "V2TurnStartResponse__McpAppUi", |
| | 28765 | }); |
| | 28766 | |
| 22150 | export type V2TurnStartResponse__CollabAgentState = { | 28767 | export type V2TurnStartResponse__CollabAgentState = { |
| 22151 | readonly message?: string | null; | 28768 | readonly message?: string | null; |
| 22152 | readonly status: V2TurnStartResponse__CollabAgentStatus; | 28769 | readonly status: V2TurnStartResponse__CollabAgentStatus; |
| ... | @@ -22182,12 +28799,13 @@ export type ApplyPatchApprovalResponse__ReviewDecision = | ... | @@ -22182,12 +28799,13 @@ export type ApplyPatchApprovalResponse__ReviewDecision = |
| 22182 | }; | 28799 | }; |
| 22183 | } | 28800 | } |
| 22184 | | "approved_for_session" | 28801 | | "approved_for_session" |
| | 28802 | | "approved_mcp_policy_amendment" |
| 22185 | | { | 28803 | | { |
| 22186 | readonly network_policy_amendment: { | 28804 | readonly network_policy_amendment: { |
| 22187 | readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment; | 28805 | readonly network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment; |
| 22188 | }; | 28806 | }; |
| 22189 | } | 28807 | } |
| 22190 | | "denied" | 28808 | | { readonly denied: { readonly rejection: string } } |
| 22191 | | "timed_out" | 28809 | | "timed_out" |
| 22192 | | "abort"; | 28810 | | "abort"; |
| 22193 | export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( | 28811 | export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( |
| ... | @@ -22208,6 +28826,10 @@ export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( | ... | @@ -22208,6 +28826,10 @@ export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( |
| 22208 | description: | 28826 | description: |
| 22209 | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", | 28827 | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", |
| 22210 | }), | 28828 | }), |
| | 28829 | Schema.Literal("approved_mcp_policy_amendment").annotate({ |
| | 28830 | description: |
| | 28831 | "User has approved this MCP tool call and wants to amend its policy so matching future calls are automatically approved across sessions.", |
| | 28832 | }), |
| 22211 | Schema.Struct({ | 28833 | Schema.Struct({ |
| 22212 | network_policy_amendment: Schema.Struct({ | 28834 | network_policy_amendment: Schema.Struct({ |
| 22213 | network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment, | 28835 | network_policy_amendment: ApplyPatchApprovalResponse__NetworkPolicyAmendment, |
| ... | @@ -22217,7 +28839,8 @@ export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( | ... | @@ -22217,7 +28839,8 @@ export const ApplyPatchApprovalResponse__ReviewDecision = Schema.Union( |
| 22217 | description: | 28839 | description: |
| 22218 | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", | 28840 | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", |
| 22219 | }), | 28841 | }), |
| 22220 | Schema.Literal("denied").annotate({ | 28842 | Schema.Struct({ denied: Schema.Struct({ rejection: Schema.String }) }).annotate({ |
| | 28843 | title: "DeniedReviewDecision", |
| 22221 | description: | 28844 | description: |
| 22222 | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", | 28845 | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", |
| 22223 | }), | 28846 | }), |
| ... | @@ -22274,6 +28897,11 @@ export type ClientRequest__UserInput = | ... | @@ -22274,6 +28897,11 @@ export type ClientRequest__UserInput = |
| 22274 | readonly type: "image"; | 28897 | readonly type: "image"; |
| 22275 | readonly url: string; | 28898 | readonly url: string; |
| 22276 | } | 28899 | } |
| | 28900 | | { |
| | 28901 | readonly detail?: ClientRequest__ImageDetail | null; |
| | 28902 | readonly type: "image"; |
| | 28903 | readonly fileId: string; |
| | 28904 | } |
| 22277 | | { | 28905 | | { |
| 22278 | readonly detail?: ClientRequest__ImageDetail | null; | 28906 | readonly detail?: ClientRequest__ImageDetail | null; |
| 22279 | readonly path: string; | 28907 | readonly path: string; |
| ... | @@ -22295,11 +28923,18 @@ export const ClientRequest__UserInput = Schema.Union( | ... | @@ -22295,11 +28923,18 @@ export const ClientRequest__UserInput = Schema.Union( |
| 22295 | ), | 28923 | ), |
| 22296 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 28924 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 22297 | }).annotate({ title: "TextUserInput" }), | 28925 | }).annotate({ title: "TextUserInput" }), |
| 22298 | Schema.Struct({ | 28926 | Schema.Union([ |
| 22299 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), | 28927 | Schema.Struct({ |
| 22300 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 28928 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| 22301 | url: Schema.String, | 28929 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 22302 | }).annotate({ title: "ImageUserInput" }), | 28930 | url: Schema.String, |
| | 28931 | }).annotate({ title: "UrlUserInput" }), |
| | 28932 | Schema.Struct({ |
| | 28933 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| | 28934 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 28935 | fileId: Schema.String, |
| | 28936 | }).annotate({ title: "FileIdUserInput" }), |
| | 28937 | ]).annotate({ title: "ImageUserInput" }), |
| 22303 | Schema.Struct({ | 28938 | Schema.Struct({ |
| 22304 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), | 28939 | detail: Schema.optionalKey(Schema.Union([ClientRequest__ImageDetail, Schema.Null])), |
| 22305 | path: Schema.String, | 28940 | path: Schema.String, |
| ... | @@ -22473,6 +29108,19 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({ | ... | @@ -22473,6 +29108,19 @@ export const ClientRequest__ExternalAgentConfigMigrationItem = Schema.Struct({ |
| 22473 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, | 29108 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, |
| 22474 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigMigrationItem" }); | 29109 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigMigrationItem" }); |
| 22475 | | 29110 | |
| | 29111 | export type ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams = { |
| | 29112 | readonly failures: ReadonlyArray<ClientRequest__ExternalAgentConfigImportItemTypeFailure>; |
| | 29113 | readonly itemType: ClientRequest__ExternalAgentConfigMigrationItemType; |
| | 29114 | readonly successes: ReadonlyArray<ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams>; |
| | 29115 | }; |
| | 29116 | export const ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams = Schema.Struct({ |
| | 29117 | failures: Schema.Array(ClientRequest__ExternalAgentConfigImportItemTypeFailure), |
| | 29118 | itemType: ClientRequest__ExternalAgentConfigMigrationItemType, |
| | 29119 | successes: Schema.Array(ClientRequest__ExternalAgentConfigImportHistoryRecordSuccessParams), |
| | 29120 | }).annotate({ |
| | 29121 | identifier: "ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams", |
| | 29122 | }); |
| | 29123 | |
| 22476 | export type ClientRequest__ConfigBatchWriteParams = { | 29124 | export type ClientRequest__ConfigBatchWriteParams = { |
| 22477 | readonly edits: ReadonlyArray<ClientRequest__ConfigEdit>; | 29125 | readonly edits: ReadonlyArray<ClientRequest__ConfigEdit>; |
| 22478 | readonly expectedVersion?: string | null; | 29126 | readonly expectedVersion?: string | null; |
| ... | @@ -22494,7 +29142,7 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({ | ... | @@ -22494,7 +29142,7 @@ export const ClientRequest__ConfigBatchWriteParams = Schema.Struct({ |
| 22494 | reloadUserConfig: Schema.optionalKey( | 29142 | reloadUserConfig: Schema.optionalKey( |
| 22495 | Schema.Boolean.annotate({ | 29143 | Schema.Boolean.annotate({ |
| 22496 | description: | 29144 | description: |
| 22497 | "When true, hot-reload the updated user config into all loaded threads after writing.", | 29145 | "When true, hot-reload updated runtime settings into loaded threads after writing. Session-static model, reasoning-effort, Plan-mode reasoning-effort, and service-tier defaults are not reloaded. The deprecated personality setting is also not reloaded.", |
| 22498 | }), | 29146 | }), |
| 22499 | ), | 29147 | ), |
| 22500 | }).annotate({ identifier: "ClientRequest__ConfigBatchWriteParams" }); | 29148 | }).annotate({ identifier: "ClientRequest__ConfigBatchWriteParams" }); |
| ... | @@ -22587,12 +29235,13 @@ export type ExecCommandApprovalResponse__ReviewDecision = | ... | @@ -22587,12 +29235,13 @@ export type ExecCommandApprovalResponse__ReviewDecision = |
| 22587 | }; | 29235 | }; |
| 22588 | } | 29236 | } |
| 22589 | | "approved_for_session" | 29237 | | "approved_for_session" |
| | 29238 | | "approved_mcp_policy_amendment" |
| 22590 | | { | 29239 | | { |
| 22591 | readonly network_policy_amendment: { | 29240 | readonly network_policy_amendment: { |
| 22592 | readonly network_policy_amendment: ExecCommandApprovalResponse__NetworkPolicyAmendment; | 29241 | readonly network_policy_amendment: ExecCommandApprovalResponse__NetworkPolicyAmendment; |
| 22593 | }; | 29242 | }; |
| 22594 | } | 29243 | } |
| 22595 | | "denied" | 29244 | | { readonly denied: { readonly rejection: string } } |
| 22596 | | "timed_out" | 29245 | | "timed_out" |
| 22597 | | "abort"; | 29246 | | "abort"; |
| 22598 | export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( | 29247 | export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( |
| ... | @@ -22613,6 +29262,10 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( | ... | @@ -22613,6 +29262,10 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( |
| 22613 | description: | 29262 | description: |
| 22614 | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", | 29263 | "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.", |
| 22615 | }), | 29264 | }), |
| | 29265 | Schema.Literal("approved_mcp_policy_amendment").annotate({ |
| | 29266 | description: |
| | 29267 | "User has approved this MCP tool call and wants to amend its policy so matching future calls are automatically approved across sessions.", |
| | 29268 | }), |
| 22616 | Schema.Struct({ | 29269 | Schema.Struct({ |
| 22617 | network_policy_amendment: Schema.Struct({ | 29270 | network_policy_amendment: Schema.Struct({ |
| 22618 | network_policy_amendment: ExecCommandApprovalResponse__NetworkPolicyAmendment, | 29271 | network_policy_amendment: ExecCommandApprovalResponse__NetworkPolicyAmendment, |
| ... | @@ -22622,7 +29275,8 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( | ... | @@ -22622,7 +29275,8 @@ export const ExecCommandApprovalResponse__ReviewDecision = Schema.Union( |
| 22622 | description: | 29275 | description: |
| 22623 | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", | 29276 | "User chose to persist a network policy rule (allow/deny) for future requests to the same host.", |
| 22624 | }), | 29277 | }), |
| 22625 | Schema.Literal("denied").annotate({ | 29278 | Schema.Struct({ denied: Schema.Struct({ rejection: Schema.String }) }).annotate({ |
| | 29279 | title: "DeniedReviewDecision", |
| 22626 | description: | 29280 | description: |
| 22627 | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", | 29281 | "User has denied this command and the agent should not execute it, but it should continue the session and try something else.", |
| 22628 | }), | 29282 | }), |
| ... | @@ -22797,6 +29451,7 @@ export type ServerNotification__TurnError = { | ... | @@ -22797,6 +29451,7 @@ export type ServerNotification__TurnError = { |
| 22797 | readonly additionalDetails?: string | null; | 29451 | readonly additionalDetails?: string | null; |
| 22798 | readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null; | 29452 | readonly codexErrorInfo?: ServerNotification__CodexErrorInfo | null; |
| 22799 | readonly message: string; | 29453 | readonly message: string; |
| | 29454 | readonly misalignment?: ServerNotification__MisalignmentErrorDetails | null; |
| 22800 | }; | 29455 | }; |
| 22801 | export const ServerNotification__TurnError = Schema.Struct({ | 29456 | export const ServerNotification__TurnError = Schema.Struct({ |
| 22802 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 29457 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -22804,8 +29459,26 @@ export const ServerNotification__TurnError = Schema.Struct({ | ... | @@ -22804,8 +29459,26 @@ export const ServerNotification__TurnError = Schema.Struct({ |
| 22804 | Schema.Union([ServerNotification__CodexErrorInfo, Schema.Null]), | 29459 | Schema.Union([ServerNotification__CodexErrorInfo, Schema.Null]), |
| 22805 | ), | 29460 | ), |
| 22806 | message: Schema.String, | 29461 | message: Schema.String, |
| | 29462 | misalignment: Schema.optionalKey( |
| | 29463 | Schema.Union([ServerNotification__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 29464 | description: |
| | 29465 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 29466 | }), |
| | 29467 | ), |
| 22807 | }).annotate({ identifier: "ServerNotification__TurnError" }); | 29468 | }).annotate({ identifier: "ServerNotification__TurnError" }); |
| 22808 | | 29469 | |
| | 29470 | export type ServerNotification__CollaborationMode = { |
| | 29471 | readonly mode: ServerNotification__ModeKind; |
| | 29472 | readonly settings: ServerNotification__Settings; |
| | 29473 | }; |
| | 29474 | export const ServerNotification__CollaborationMode = Schema.Struct({ |
| | 29475 | mode: ServerNotification__ModeKind, |
| | 29476 | settings: ServerNotification__Settings, |
| | 29477 | }).annotate({ |
| | 29478 | description: "Collaboration mode for a Codex session.", |
| | 29479 | identifier: "ServerNotification__CollaborationMode", |
| | 29480 | }); |
| | 29481 | |
| 22809 | export type ServerNotification__SessionSource = | 29482 | export type ServerNotification__SessionSource = |
| 22810 | | "cli" | 29483 | | "cli" |
| 22811 | | "vscode" | 29484 | | "vscode" |
| ... | @@ -22845,6 +29518,11 @@ export type ServerNotification__UserInput = | ... | @@ -22845,6 +29518,11 @@ export type ServerNotification__UserInput = |
| 22845 | readonly type: "image"; | 29518 | readonly type: "image"; |
| 22846 | readonly url: string; | 29519 | readonly url: string; |
| 22847 | } | 29520 | } |
| | 29521 | | { |
| | 29522 | readonly detail?: ServerNotification__ImageDetail | null; |
| | 29523 | readonly type: "image"; |
| | 29524 | readonly fileId: string; |
| | 29525 | } |
| 22848 | | { | 29526 | | { |
| 22849 | readonly detail?: ServerNotification__ImageDetail | null; | 29527 | readonly detail?: ServerNotification__ImageDetail | null; |
| 22850 | readonly path: string; | 29528 | readonly path: string; |
| ... | @@ -22866,11 +29544,18 @@ export const ServerNotification__UserInput = Schema.Union( | ... | @@ -22866,11 +29544,18 @@ export const ServerNotification__UserInput = Schema.Union( |
| 22866 | ), | 29544 | ), |
| 22867 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 29545 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 22868 | }).annotate({ title: "TextUserInput" }), | 29546 | }).annotate({ title: "TextUserInput" }), |
| 22869 | Schema.Struct({ | 29547 | Schema.Union([ |
| 22870 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), | 29548 | Schema.Struct({ |
| 22871 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 29549 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), |
| 22872 | url: Schema.String, | 29550 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 22873 | }).annotate({ title: "ImageUserInput" }), | 29551 | url: Schema.String, |
| | 29552 | }).annotate({ title: "UrlUserInput" }), |
| | 29553 | Schema.Struct({ |
| | 29554 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), |
| | 29555 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 29556 | fileId: Schema.String, |
| | 29557 | }).annotate({ title: "FileIdUserInput" }), |
| | 29558 | ]).annotate({ title: "ImageUserInput" }), |
| 22874 | Schema.Struct({ | 29559 | Schema.Struct({ |
| 22875 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), | 29560 | detail: Schema.optionalKey(Schema.Union([ServerNotification__ImageDetail, Schema.Null])), |
| 22876 | path: Schema.String, | 29561 | path: Schema.String, |
| ... | @@ -22898,6 +29583,14 @@ export const ServerNotification__UserInput = Schema.Union( | ... | @@ -22898,6 +29583,14 @@ export const ServerNotification__UserInput = Schema.Union( |
| 22898 | { mode: "oneOf" }, | 29583 | { mode: "oneOf" }, |
| 22899 | ).annotate({ identifier: "ServerNotification__UserInput" }); | 29584 | ).annotate({ identifier: "ServerNotification__UserInput" }); |
| 22900 | | 29585 | |
| | 29586 | export type ServerNotification__FunctionCallOutputBody = |
| | 29587 | | string |
| | 29588 | | ReadonlyArray<ServerNotification__FunctionCallOutputContentItem>; |
| | 29589 | export const ServerNotification__FunctionCallOutputBody = Schema.Union([ |
| | 29590 | Schema.String, |
| | 29591 | Schema.Array(ServerNotification__FunctionCallOutputContentItem), |
| | 29592 | ]).annotate({ identifier: "ServerNotification__FunctionCallOutputBody" }); |
| | 29593 | |
| 22901 | export type ServerNotification__FileSystemPath = | 29594 | export type ServerNotification__FileSystemPath = |
| 22902 | | { readonly path: ServerNotification__LegacyAppPathString; readonly type: "path" } | 29595 | | { readonly path: ServerNotification__LegacyAppPathString; readonly type: "path" } |
| 22903 | | { readonly pattern: string; readonly type: "glob_pattern" } | 29596 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| ... | @@ -22933,18 +29626,6 @@ export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Str | ... | @@ -22933,18 +29626,6 @@ export const ServerNotification__FileChangePatchUpdatedNotification = Schema.Str |
| 22933 | turnId: Schema.String, | 29626 | turnId: Schema.String, |
| 22934 | }).annotate({ identifier: "ServerNotification__FileChangePatchUpdatedNotification" }); | 29627 | }).annotate({ identifier: "ServerNotification__FileChangePatchUpdatedNotification" }); |
| 22935 | | 29628 | |
| 22936 | export type ServerNotification__CollaborationMode = { | | |
| 22937 | readonly mode: ServerNotification__ModeKind; | | |
| 22938 | readonly settings: ServerNotification__Settings; | | |
| 22939 | }; | | |
| 22940 | export const ServerNotification__CollaborationMode = Schema.Struct({ | | |
| 22941 | mode: ServerNotification__ModeKind, | | |
| 22942 | settings: ServerNotification__Settings, | | |
| 22943 | }).annotate({ | | |
| 22944 | description: "Collaboration mode for a Codex session.", | | |
| 22945 | identifier: "ServerNotification__CollaborationMode", | | |
| 22946 | }); | | |
| 22947 | | | |
| 22948 | export type ServerNotification__ThreadGoalUpdatedNotification = { | 29629 | export type ServerNotification__ThreadGoalUpdatedNotification = { |
| 22949 | readonly goal: ServerNotification__ThreadGoal; | 29630 | readonly goal: ServerNotification__ThreadGoal; |
| 22950 | readonly threadId: string; | 29631 | readonly threadId: string; |
| ... | @@ -23147,6 +29828,30 @@ export const ServerNotification__FuzzyFileSearchSessionUpdatedNotification = Sch | ... | @@ -23147,6 +29828,30 @@ export const ServerNotification__FuzzyFileSearchSessionUpdatedNotification = Sch |
| 23147 | sessionId: Schema.String, | 29828 | sessionId: Schema.String, |
| 23148 | }).annotate({ identifier: "ServerNotification__FuzzyFileSearchSessionUpdatedNotification" }); | 29829 | }).annotate({ identifier: "ServerNotification__FuzzyFileSearchSessionUpdatedNotification" }); |
| 23149 | | 29830 | |
| | 29831 | export type ServerNotification__ThreadRealtimeItemStartedNotification = { |
| | 29832 | readonly item: ServerNotification__ThreadRealtimeItem; |
| | 29833 | readonly threadId: string; |
| | 29834 | }; |
| | 29835 | export const ServerNotification__ThreadRealtimeItemStartedNotification = Schema.Struct({ |
| | 29836 | item: ServerNotification__ThreadRealtimeItem, |
| | 29837 | threadId: Schema.String, |
| | 29838 | }).annotate({ |
| | 29839 | description: "EXPERIMENTAL - a realtime timeline item started before its content streams.", |
| | 29840 | identifier: "ServerNotification__ThreadRealtimeItemStartedNotification", |
| | 29841 | }); |
| | 29842 | |
| | 29843 | export type ServerNotification__ThreadRealtimeItemCompletedNotification = { |
| | 29844 | readonly item: ServerNotification__ThreadRealtimeItem; |
| | 29845 | readonly threadId: string; |
| | 29846 | }; |
| | 29847 | export const ServerNotification__ThreadRealtimeItemCompletedNotification = Schema.Struct({ |
| | 29848 | item: ServerNotification__ThreadRealtimeItem, |
| | 29849 | threadId: Schema.String, |
| | 29850 | }).annotate({ |
| | 29851 | description: "EXPERIMENTAL - a realtime timeline item published after canonical commit.", |
| | 29852 | identifier: "ServerNotification__ThreadRealtimeItemCompletedNotification", |
| | 29853 | }); |
| | 29854 | |
| 23150 | export type ServerRequest__FileSystemPath = | 29855 | export type ServerRequest__FileSystemPath = |
| 23151 | | { readonly path: ServerRequest__LegacyAppPathString; readonly type: "path" } | 29856 | | { readonly path: ServerRequest__LegacyAppPathString; readonly type: "path" } |
| 23152 | | { readonly pattern: string; readonly type: "glob_pattern" } | 29857 | | { readonly pattern: string; readonly type: "glob_pattern" } |
| ... | @@ -23176,6 +29881,7 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = { | ... | @@ -23176,6 +29881,7 @@ export type ServerRequest__CommandExecutionRequestApprovalParams = { |
| 23176 | readonly cwd?: ServerRequest__LegacyAppPathString | null; | 29881 | readonly cwd?: ServerRequest__LegacyAppPathString | null; |
| 23177 | readonly environmentId?: string | null; | 29882 | readonly environmentId?: string | null; |
| 23178 | readonly itemId: string; | 29883 | readonly itemId: string; |
| | 29884 | readonly kind?: ServerRequest__CommandExecutionApprovalKind; |
| 23179 | readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null; | 29885 | readonly networkApprovalContext?: ServerRequest__NetworkApprovalContext | null; |
| 23180 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; | 29886 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; |
| 23181 | readonly proposedNetworkPolicyAmendments?: ReadonlyArray<ServerRequest__NetworkPolicyAmendment> | null; | 29887 | readonly proposedNetworkPolicyAmendments?: ReadonlyArray<ServerRequest__NetworkPolicyAmendment> | null; |
| ... | @@ -23189,7 +29895,7 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc | ... | @@ -23189,7 +29895,7 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc |
| 23189 | Schema.Union([ | 29895 | Schema.Union([ |
| 23190 | Schema.String.annotate({ | 29896 | Schema.String.annotate({ |
| 23191 | description: | 29897 | description: |
| 23192 | "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.", | 29898 | "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing. Stdin approvals also use a distinct callback id; inspect `kind` to distinguish them.", |
| 23193 | }), | 29899 | }), |
| 23194 | Schema.Null, | 29900 | Schema.Null, |
| 23195 | ]), | 29901 | ]), |
| ... | @@ -23220,6 +29926,15 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc | ... | @@ -23220,6 +29926,15 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc |
| 23220 | ]), | 29926 | ]), |
| 23221 | ), | 29927 | ), |
| 23222 | itemId: Schema.String, | 29928 | itemId: Schema.String, |
| | 29929 | kind: Schema.optionalKey( |
| | 29930 | Schema.suspend( |
| | 29931 | (): Schema.Codec<ServerRequest__CommandExecutionApprovalKind> => |
| | 29932 | ServerRequest__CommandExecutionApprovalKind, |
| | 29933 | ).annotate({ |
| | 29934 | description: "Kind of action under review. Defaults to `command` for older servers.", |
| | 29935 | default: "command", |
| | 29936 | }), |
| | 29937 | ), |
| 23223 | networkApprovalContext: Schema.optionalKey( | 29938 | networkApprovalContext: Schema.optionalKey( |
| 23224 | Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({ | 29939 | Schema.Union([ServerRequest__NetworkApprovalContext, Schema.Null]).annotate({ |
| 23225 | description: "Optional context for a managed-network approval prompt.", | 29940 | description: "Optional context for a managed-network approval prompt.", |
| ... | @@ -23261,6 +29976,7 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc | ... | @@ -23261,6 +29976,7 @@ export const ServerRequest__CommandExecutionRequestApprovalParams = Schema.Struc |
| 23261 | | 29976 | |
| 23262 | export type ServerRequest__ToolRequestUserInputParams = { | 29977 | export type ServerRequest__ToolRequestUserInputParams = { |
| 23263 | readonly autoResolutionMs?: number | null; | 29978 | readonly autoResolutionMs?: number | null; |
| | 29979 | readonly isBlocking: boolean; |
| 23264 | readonly itemId: string; | 29980 | readonly itemId: string; |
| 23265 | readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>; | 29981 | readonly questions: ReadonlyArray<ServerRequest__ToolRequestUserInputQuestion>; |
| 23266 | readonly threadId: string; | 29982 | readonly threadId: string; |
| ... | @@ -23269,7 +29985,10 @@ export type ServerRequest__ToolRequestUserInputParams = { | ... | @@ -23269,7 +29985,10 @@ export type ServerRequest__ToolRequestUserInputParams = { |
| 23269 | export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({ | 29985 | export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({ |
| 23270 | autoResolutionMs: Schema.optionalKey( | 29986 | autoResolutionMs: Schema.optionalKey( |
| 23271 | Schema.Union([ | 29987 | Schema.Union([ |
| 23272 | Schema.Number.annotate({ format: "uint64" }) | 29988 | Schema.Number.annotate({ |
| | 29989 | description: "@deprecated Use `isBlocking` to decide whether the request should block.", |
| | 29990 | format: "uint64", |
| | 29991 | }) |
| 23273 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 29992 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 23274 | .check( | 29993 | .check( |
| 23275 | Schema.isGreaterThanOrEqualTo(0).annotate({ | 29994 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| ... | @@ -23279,6 +29998,7 @@ export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({ | ... | @@ -23279,6 +29998,7 @@ export const ServerRequest__ToolRequestUserInputParams = Schema.Struct({ |
| 23279 | Schema.Null, | 29998 | Schema.Null, |
| 23280 | ]), | 29999 | ]), |
| 23281 | ), | 30000 | ), |
| | 30001 | isBlocking: Schema.Boolean, |
| 23282 | itemId: Schema.String, | 30002 | itemId: Schema.String, |
| 23283 | questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion), | 30003 | questions: Schema.Array(ServerRequest__ToolRequestUserInputQuestion), |
| 23284 | threadId: Schema.String, | 30004 | threadId: Schema.String, |
| ... | @@ -23482,6 +30202,42 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({ | ... | @@ -23482,6 +30202,42 @@ export const V2AppsListResponse__AppInfo = Schema.Struct({ |
| 23482 | identifier: "V2AppsListResponse__AppInfo", | 30202 | identifier: "V2AppsListResponse__AppInfo", |
| 23483 | }); | 30203 | }); |
| 23484 | | 30204 | |
| | 30205 | export type V2ConfigReadResponse__BrowserUseConfig = { |
| | 30206 | readonly allow_history_access?: boolean | null; |
| | 30207 | readonly default_origin_policy?: V2ConfigReadResponse__BrowserUseOriginPolicyConfig | null; |
| | 30208 | readonly origins?: { |
| | 30209 | readonly [x: string]: V2ConfigReadResponse__BrowserUseOriginPolicyConfig; |
| | 30210 | } | null; |
| | 30211 | }; |
| | 30212 | export const V2ConfigReadResponse__BrowserUseConfig = Schema.Struct({ |
| | 30213 | allow_history_access: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 30214 | default_origin_policy: Schema.optionalKey( |
| | 30215 | Schema.Union([V2ConfigReadResponse__BrowserUseOriginPolicyConfig, Schema.Null]), |
| | 30216 | ), |
| | 30217 | origins: Schema.optionalKey( |
| | 30218 | Schema.Union([ |
| | 30219 | Schema.Record(Schema.String, V2ConfigReadResponse__BrowserUseOriginPolicyConfig), |
| | 30220 | Schema.Null, |
| | 30221 | ]), |
| | 30222 | ), |
| | 30223 | }).annotate({ identifier: "V2ConfigReadResponse__BrowserUseConfig" }); |
| | 30224 | |
| | 30225 | export type V2ConfigReadResponse__ComputerUseWindowsConfig = { |
| | 30226 | readonly aumids?: { readonly [x: string]: V2ConfigReadResponse__AllowDenyRequirement } | null; |
| | 30227 | readonly exes?: ReadonlyArray<V2ConfigReadResponse__ComputerUseWindowsExeConfig> | null; |
| | 30228 | }; |
| | 30229 | export const V2ConfigReadResponse__ComputerUseWindowsConfig = Schema.Struct({ |
| | 30230 | aumids: Schema.optionalKey( |
| | 30231 | Schema.Union([ |
| | 30232 | Schema.Record(Schema.String, V2ConfigReadResponse__AllowDenyRequirement), |
| | 30233 | Schema.Null, |
| | 30234 | ]), |
| | 30235 | ), |
| | 30236 | exes: Schema.optionalKey( |
| | 30237 | Schema.Union([Schema.Array(V2ConfigReadResponse__ComputerUseWindowsExeConfig), Schema.Null]), |
| | 30238 | ), |
| | 30239 | }).annotate({ identifier: "V2ConfigReadResponse__ComputerUseWindowsConfig" }); |
| | 30240 | |
| 23485 | export type V2ConfigReadResponse__ToolsV2 = { | 30241 | export type V2ConfigReadResponse__ToolsV2 = { |
| 23486 | readonly web_search?: V2ConfigReadResponse__WebSearchToolConfig | null; | 30242 | readonly web_search?: V2ConfigReadResponse__WebSearchToolConfig | null; |
| 23487 | }; | 30243 | }; |
| ... | @@ -23513,6 +30269,53 @@ export const V2ConfigReadResponse__ConfigLayerMetadata = Schema.Struct({ | ... | @@ -23513,6 +30269,53 @@ export const V2ConfigReadResponse__ConfigLayerMetadata = Schema.Struct({ |
| 23513 | version: Schema.String, | 30269 | version: Schema.String, |
| 23514 | }).annotate({ identifier: "V2ConfigReadResponse__ConfigLayerMetadata" }); | 30270 | }).annotate({ identifier: "V2ConfigReadResponse__ConfigLayerMetadata" }); |
| 23515 | | 30271 | |
| | 30272 | export type V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements = { |
| | 30273 | readonly aumids?: { |
| | 30274 | readonly [x: string]: V2ConfigRequirementsReadResponse__AllowDenyRequirement; |
| | 30275 | } | null; |
| | 30276 | readonly exes?: ReadonlyArray<V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement> | null; |
| | 30277 | }; |
| | 30278 | export const V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements = Schema.Struct({ |
| | 30279 | aumids: Schema.optionalKey( |
| | 30280 | Schema.Union([ |
| | 30281 | Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__AllowDenyRequirement), |
| | 30282 | Schema.Null, |
| | 30283 | ]), |
| | 30284 | ), |
| | 30285 | exes: Schema.optionalKey( |
| | 30286 | Schema.Union([ |
| | 30287 | Schema.Array(V2ConfigRequirementsReadResponse__ComputerUseWindowsExeRequirement), |
| | 30288 | Schema.Null, |
| | 30289 | ]), |
| | 30290 | ), |
| | 30291 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements" }); |
| | 30292 | |
| | 30293 | export type V2ConfigRequirementsReadResponse__BrowserUseRequirements = { |
| | 30294 | readonly allowGlobalPersistentApproval?: boolean | null; |
| | 30295 | readonly allowHistoryAccess?: boolean | null; |
| | 30296 | readonly allowWebmcp?: boolean | null; |
| | 30297 | readonly defaultOriginPolicy?: V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy | null; |
| | 30298 | readonly disableAutoReview?: boolean | null; |
| | 30299 | readonly origins?: { |
| | 30300 | readonly [x: string]: V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy; |
| | 30301 | } | null; |
| | 30302 | }; |
| | 30303 | export const V2ConfigRequirementsReadResponse__BrowserUseRequirements = Schema.Struct({ |
| | 30304 | allowGlobalPersistentApproval: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 30305 | allowHistoryAccess: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 30306 | allowWebmcp: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 30307 | defaultOriginPolicy: Schema.optionalKey( |
| | 30308 | Schema.Union([V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy, Schema.Null]), |
| | 30309 | ), |
| | 30310 | disableAutoReview: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 30311 | origins: Schema.optionalKey( |
| | 30312 | Schema.Union([ |
| | 30313 | Schema.Record(Schema.String, V2ConfigRequirementsReadResponse__BrowserUseOriginPolicy), |
| | 30314 | Schema.Null, |
| | 30315 | ]), |
| | 30316 | ), |
| | 30317 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__BrowserUseRequirements" }); |
| | 30318 | |
| 23516 | export type V2ConfigRequirementsReadResponse__ModelsRequirements = { | 30319 | export type V2ConfigRequirementsReadResponse__ModelsRequirements = { |
| 23517 | readonly newThread?: V2ConfigRequirementsReadResponse__NewThreadModelDefaults | null; | 30320 | readonly newThread?: V2ConfigRequirementsReadResponse__NewThreadModelDefaults | null; |
| 23518 | }; | 30321 | }; |
| ... | @@ -23535,6 +30338,7 @@ export type V2ErrorNotification__TurnError = { | ... | @@ -23535,6 +30338,7 @@ export type V2ErrorNotification__TurnError = { |
| 23535 | readonly additionalDetails?: string | null; | 30338 | readonly additionalDetails?: string | null; |
| 23536 | readonly codexErrorInfo?: V2ErrorNotification__CodexErrorInfo | null; | 30339 | readonly codexErrorInfo?: V2ErrorNotification__CodexErrorInfo | null; |
| 23537 | readonly message: string; | 30340 | readonly message: string; |
| | 30341 | readonly misalignment?: V2ErrorNotification__MisalignmentErrorDetails | null; |
| 23538 | }; | 30342 | }; |
| 23539 | export const V2ErrorNotification__TurnError = Schema.Struct({ | 30343 | export const V2ErrorNotification__TurnError = Schema.Struct({ |
| 23540 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30344 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -23542,6 +30346,12 @@ export const V2ErrorNotification__TurnError = Schema.Struct({ | ... | @@ -23542,6 +30346,12 @@ export const V2ErrorNotification__TurnError = Schema.Struct({ |
| 23542 | Schema.Union([V2ErrorNotification__CodexErrorInfo, Schema.Null]), | 30346 | Schema.Union([V2ErrorNotification__CodexErrorInfo, Schema.Null]), |
| 23543 | ), | 30347 | ), |
| 23544 | message: Schema.String, | 30348 | message: Schema.String, |
| | 30349 | misalignment: Schema.optionalKey( |
| | 30350 | Schema.Union([V2ErrorNotification__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 30351 | description: |
| | 30352 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 30353 | }), |
| | 30354 | ), |
| 23545 | }).annotate({ identifier: "V2ErrorNotification__TurnError" }); | 30355 | }).annotate({ identifier: "V2ErrorNotification__TurnError" }); |
| 23546 | | 30356 | |
| 23547 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = { | 30357 | export type V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem = { |
| ... | @@ -23594,6 +30404,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi | ... | @@ -23594,6 +30404,7 @@ export type V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfi |
| 23594 | readonly completedAtMs: number; | 30404 | readonly completedAtMs: number; |
| 23595 | readonly failures: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure>; | 30405 | readonly failures: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure>; |
| 23596 | readonly importId: string; | 30406 | readonly importId: string; |
| | 30407 | readonly providerId?: string | null; |
| 23597 | readonly successes: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess>; | 30408 | readonly successes: ReadonlyArray<V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess>; |
| 23598 | }; | 30409 | }; |
| 23599 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory = | 30410 | export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory = |
| ... | @@ -23605,6 +30416,7 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -23605,6 +30416,7 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 23605 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure, | 30416 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeFailure, |
| 23606 | ), | 30417 | ), |
| 23607 | importId: Schema.String, | 30418 | importId: Schema.String, |
| | 30419 | providerId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 23608 | successes: Schema.Array( | 30420 | successes: Schema.Array( |
| 23609 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess, | 30421 | V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportItemTypeSuccess, |
| 23610 | ), | 30422 | ), |
| ... | @@ -23613,6 +30425,26 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf | ... | @@ -23613,6 +30425,26 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConf |
| 23613 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory", | 30425 | "V2ExternalAgentConfigImportHistoriesReadResponse__ExternalAgentConfigImportHistory", |
| 23614 | }); | 30426 | }); |
| 23615 | | 30427 | |
| | 30428 | export type V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams = |
| | 30429 | { |
| | 30430 | readonly failures: ReadonlyArray<V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure>; |
| | 30431 | readonly itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType; |
| | 30432 | readonly successes: ReadonlyArray<V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams>; |
| | 30433 | }; |
| | 30434 | export const V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams = |
| | 30435 | Schema.Struct({ |
| | 30436 | failures: Schema.Array( |
| | 30437 | V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportItemTypeFailure, |
| | 30438 | ), |
| | 30439 | itemType: V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigMigrationItemType, |
| | 30440 | successes: Schema.Array( |
| | 30441 | V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordSuccessParams, |
| | 30442 | ), |
| | 30443 | }).annotate({ |
| | 30444 | identifier: |
| | 30445 | "V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams", |
| | 30446 | }); |
| | 30447 | |
| 23616 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = { | 30448 | export type V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem = { |
| 23617 | readonly cwd?: string | null; | 30449 | readonly cwd?: string | null; |
| 23618 | readonly description: string; | 30450 | readonly description: string; |
| ... | @@ -23810,6 +30642,11 @@ export type V2ItemCompletedNotification__UserInput = | ... | @@ -23810,6 +30642,11 @@ export type V2ItemCompletedNotification__UserInput = |
| 23810 | readonly type: "image"; | 30642 | readonly type: "image"; |
| 23811 | readonly url: string; | 30643 | readonly url: string; |
| 23812 | } | 30644 | } |
| | 30645 | | { |
| | 30646 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; |
| | 30647 | readonly type: "image"; |
| | 30648 | readonly fileId: string; |
| | 30649 | } |
| 23813 | | { | 30650 | | { |
| 23814 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; | 30651 | readonly detail?: V2ItemCompletedNotification__ImageDetail | null; |
| 23815 | readonly path: string; | 30652 | readonly path: string; |
| ... | @@ -23831,13 +30668,22 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union( | ... | @@ -23831,13 +30668,22 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union( |
| 23831 | ), | 30668 | ), |
| 23832 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 30669 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 23833 | }).annotate({ title: "TextUserInput" }), | 30670 | }).annotate({ title: "TextUserInput" }), |
| 23834 | Schema.Struct({ | 30671 | Schema.Union([ |
| 23835 | detail: Schema.optionalKey( | 30672 | Schema.Struct({ |
| 23836 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), | 30673 | detail: Schema.optionalKey( |
| 23837 | ), | 30674 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), |
| 23838 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 30675 | ), |
| 23839 | url: Schema.String, | 30676 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 23840 | }).annotate({ title: "ImageUserInput" }), | 30677 | url: Schema.String, |
| | 30678 | }).annotate({ title: "UrlUserInput" }), |
| | 30679 | Schema.Struct({ |
| | 30680 | detail: Schema.optionalKey( |
| | 30681 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), |
| | 30682 | ), |
| | 30683 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 30684 | fileId: Schema.String, |
| | 30685 | }).annotate({ title: "FileIdUserInput" }), |
| | 30686 | ]).annotate({ title: "ImageUserInput" }), |
| 23841 | Schema.Struct({ | 30687 | Schema.Struct({ |
| 23842 | detail: Schema.optionalKey( | 30688 | detail: Schema.optionalKey( |
| 23843 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), | 30689 | Schema.Union([V2ItemCompletedNotification__ImageDetail, Schema.Null]), |
| ... | @@ -23867,6 +30713,14 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union( | ... | @@ -23867,6 +30713,14 @@ export const V2ItemCompletedNotification__UserInput = Schema.Union( |
| 23867 | { mode: "oneOf" }, | 30713 | { mode: "oneOf" }, |
| 23868 | ).annotate({ identifier: "V2ItemCompletedNotification__UserInput" }); | 30714 | ).annotate({ identifier: "V2ItemCompletedNotification__UserInput" }); |
| 23869 | | 30715 | |
| | 30716 | export type V2ItemCompletedNotification__FunctionCallOutputBody = |
| | 30717 | | string |
| | 30718 | | ReadonlyArray<V2ItemCompletedNotification__FunctionCallOutputContentItem>; |
| | 30719 | export const V2ItemCompletedNotification__FunctionCallOutputBody = Schema.Union([ |
| | 30720 | Schema.String, |
| | 30721 | Schema.Array(V2ItemCompletedNotification__FunctionCallOutputContentItem), |
| | 30722 | ]).annotate({ identifier: "V2ItemCompletedNotification__FunctionCallOutputBody" }); |
| | 30723 | |
| 23870 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = | 30724 | export type V2ItemGuardianApprovalReviewCompletedNotification__FileSystemPath = |
| 23871 | | { | 30725 | | { |
| 23872 | readonly path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString; | 30726 | readonly path: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString; |
| ... | @@ -23934,6 +30788,11 @@ export type V2ItemStartedNotification__UserInput = | ... | @@ -23934,6 +30788,11 @@ export type V2ItemStartedNotification__UserInput = |
| 23934 | readonly type: "image"; | 30788 | readonly type: "image"; |
| 23935 | readonly url: string; | 30789 | readonly url: string; |
| 23936 | } | 30790 | } |
| | 30791 | | { |
| | 30792 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; |
| | 30793 | readonly type: "image"; |
| | 30794 | readonly fileId: string; |
| | 30795 | } |
| 23937 | | { | 30796 | | { |
| 23938 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; | 30797 | readonly detail?: V2ItemStartedNotification__ImageDetail | null; |
| 23939 | readonly path: string; | 30798 | readonly path: string; |
| ... | @@ -23955,13 +30814,22 @@ export const V2ItemStartedNotification__UserInput = Schema.Union( | ... | @@ -23955,13 +30814,22 @@ export const V2ItemStartedNotification__UserInput = Schema.Union( |
| 23955 | ), | 30814 | ), |
| 23956 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 30815 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 23957 | }).annotate({ title: "TextUserInput" }), | 30816 | }).annotate({ title: "TextUserInput" }), |
| 23958 | Schema.Struct({ | 30817 | Schema.Union([ |
| 23959 | detail: Schema.optionalKey( | 30818 | Schema.Struct({ |
| 23960 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), | 30819 | detail: Schema.optionalKey( |
| 23961 | ), | 30820 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), |
| 23962 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 30821 | ), |
| 23963 | url: Schema.String, | 30822 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 23964 | }).annotate({ title: "ImageUserInput" }), | 30823 | url: Schema.String, |
| | 30824 | }).annotate({ title: "UrlUserInput" }), |
| | 30825 | Schema.Struct({ |
| | 30826 | detail: Schema.optionalKey( |
| | 30827 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), |
| | 30828 | ), |
| | 30829 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 30830 | fileId: Schema.String, |
| | 30831 | }).annotate({ title: "FileIdUserInput" }), |
| | 30832 | ]).annotate({ title: "ImageUserInput" }), |
| 23965 | Schema.Struct({ | 30833 | Schema.Struct({ |
| 23966 | detail: Schema.optionalKey( | 30834 | detail: Schema.optionalKey( |
| 23967 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), | 30835 | Schema.Union([V2ItemStartedNotification__ImageDetail, Schema.Null]), |
| ... | @@ -23991,9 +30859,18 @@ export const V2ItemStartedNotification__UserInput = Schema.Union( | ... | @@ -23991,9 +30859,18 @@ export const V2ItemStartedNotification__UserInput = Schema.Union( |
| 23991 | { mode: "oneOf" }, | 30859 | { mode: "oneOf" }, |
| 23992 | ).annotate({ identifier: "V2ItemStartedNotification__UserInput" }); | 30860 | ).annotate({ identifier: "V2ItemStartedNotification__UserInput" }); |
| 23993 | | 30861 | |
| | 30862 | export type V2ItemStartedNotification__FunctionCallOutputBody = |
| | 30863 | | string |
| | 30864 | | ReadonlyArray<V2ItemStartedNotification__FunctionCallOutputContentItem>; |
| | 30865 | export const V2ItemStartedNotification__FunctionCallOutputBody = Schema.Union([ |
| | 30866 | Schema.String, |
| | 30867 | Schema.Array(V2ItemStartedNotification__FunctionCallOutputContentItem), |
| | 30868 | ]).annotate({ identifier: "V2ItemStartedNotification__FunctionCallOutputBody" }); |
| | 30869 | |
| 23994 | export type V2ModelListResponse__Model = { | 30870 | export type V2ModelListResponse__Model = { |
| 23995 | readonly additionalSpeedTiers?: ReadonlyArray<string>; | 30871 | readonly additionalSpeedTiers?: ReadonlyArray<string>; |
| 23996 | readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null; | 30872 | readonly availabilityNux?: V2ModelListResponse__ModelAvailabilityNux | null; |
| | 30873 | readonly availableAccessPrograms?: V2ModelListResponse__ModelAccessPrograms | null; |
| 23997 | readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort; | 30874 | readonly defaultReasoningEffort: V2ModelListResponse__ReasoningEffort; |
| 23998 | readonly defaultServiceTier?: string | null; | 30875 | readonly defaultServiceTier?: string | null; |
| 23999 | readonly description: string; | 30876 | readonly description: string; |
| ... | @@ -24003,6 +30880,8 @@ export type V2ModelListResponse__Model = { | ... | @@ -24003,6 +30880,8 @@ export type V2ModelListResponse__Model = { |
| 24003 | readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>; | 30880 | readonly inputModalities?: ReadonlyArray<V2ModelListResponse__InputModality>; |
| 24004 | readonly isDefault: boolean; | 30881 | readonly isDefault: boolean; |
| 24005 | readonly model: string; | 30882 | readonly model: string; |
| | 30883 | readonly modelSpecialty?: string | null; |
| | 30884 | readonly multiAgentVersion?: V2ModelListResponse__MultiAgentVersion | null; |
| 24006 | readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>; | 30885 | readonly serviceTiers?: ReadonlyArray<V2ModelListResponse__ModelServiceTier>; |
| 24007 | readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>; | 30886 | readonly supportedReasoningEfforts: ReadonlyArray<V2ModelListResponse__ReasoningEffortOption>; |
| 24008 | readonly supportsPersonality?: boolean; | 30887 | readonly supportsPersonality?: boolean; |
| ... | @@ -24019,6 +30898,11 @@ export const V2ModelListResponse__Model = Schema.Struct({ | ... | @@ -24019,6 +30898,11 @@ export const V2ModelListResponse__Model = Schema.Struct({ |
| 24019 | availabilityNux: Schema.optionalKey( | 30898 | availabilityNux: Schema.optionalKey( |
| 24020 | Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]), | 30899 | Schema.Union([V2ModelListResponse__ModelAvailabilityNux, Schema.Null]), |
| 24021 | ), | 30900 | ), |
| | 30901 | availableAccessPrograms: Schema.optionalKey( |
| | 30902 | Schema.Union([V2ModelListResponse__ModelAccessPrograms, Schema.Null]).annotate({ |
| | 30903 | description: "Null when the catalog does not provide access-program metadata.", |
| | 30904 | }), |
| | 30905 | ), |
| 24022 | defaultReasoningEffort: V2ModelListResponse__ReasoningEffort, | 30906 | defaultReasoningEffort: V2ModelListResponse__ReasoningEffort, |
| 24023 | defaultServiceTier: Schema.optionalKey( | 30907 | defaultServiceTier: Schema.optionalKey( |
| 24024 | Schema.Union([ | 30908 | Schema.Union([ |
| ... | @@ -24037,11 +30921,22 @@ export const V2ModelListResponse__Model = Schema.Struct({ | ... | @@ -24037,11 +30921,22 @@ export const V2ModelListResponse__Model = Schema.Struct({ |
| 24037 | ), | 30921 | ), |
| 24038 | isDefault: Schema.Boolean, | 30922 | isDefault: Schema.Boolean, |
| 24039 | model: Schema.String, | 30923 | model: Schema.String, |
| | 30924 | modelSpecialty: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 30925 | multiAgentVersion: Schema.optionalKey( |
| | 30926 | Schema.Union([V2ModelListResponse__MultiAgentVersion, Schema.Null]).annotate({ |
| | 30927 | description: "Multi-agent runtime declared by this model, when available.", |
| | 30928 | }), |
| | 30929 | ), |
| 24040 | serviceTiers: Schema.optionalKey( | 30930 | serviceTiers: Schema.optionalKey( |
| 24041 | Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }), | 30931 | Schema.Array(V2ModelListResponse__ModelServiceTier).annotate({ default: [] }), |
| 24042 | ), | 30932 | ), |
| 24043 | supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption), | 30933 | supportedReasoningEfforts: Schema.Array(V2ModelListResponse__ReasoningEffortOption), |
| 24044 | supportsPersonality: Schema.optionalKey(Schema.Boolean.annotate({ default: false })), | 30934 | supportsPersonality: Schema.optionalKey( |
| | 30935 | Schema.Boolean.annotate({ |
| | 30936 | description: "@deprecated Always false; models no longer support personality selection.", |
| | 30937 | default: false, |
| | 30938 | }), |
| | 30939 | ), |
| 24045 | upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30940 | upgrade: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24046 | upgradeInfo: Schema.optionalKey( | 30941 | upgradeInfo: Schema.optionalKey( |
| 24047 | Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]), | 30942 | Schema.Union([V2ModelListResponse__ModelUpgradeInfo, Schema.Null]), |
| ... | @@ -24049,6 +30944,7 @@ export const V2ModelListResponse__Model = Schema.Struct({ | ... | @@ -24049,6 +30944,7 @@ export const V2ModelListResponse__Model = Schema.Struct({ |
| 24049 | }).annotate({ identifier: "V2ModelListResponse__Model" }); | 30944 | }).annotate({ identifier: "V2ModelListResponse__Model" }); |
| 24050 | | 30945 | |
| 24051 | export type V2PluginInstalledResponse__PluginShareContext = { | 30946 | export type V2PluginInstalledResponse__PluginShareContext = { |
| | 30947 | readonly canPublishToWorkspace?: boolean | null; |
| 24052 | readonly creatorAccountUserId?: string | null; | 30948 | readonly creatorAccountUserId?: string | null; |
| 24053 | readonly creatorName?: string | null; | 30949 | readonly creatorName?: string | null; |
| 24054 | readonly discoverability?: V2PluginInstalledResponse__PluginShareDiscoverability | null; | 30950 | readonly discoverability?: V2PluginInstalledResponse__PluginShareDiscoverability | null; |
| ... | @@ -24058,6 +30954,7 @@ export type V2PluginInstalledResponse__PluginShareContext = { | ... | @@ -24058,6 +30954,7 @@ export type V2PluginInstalledResponse__PluginShareContext = { |
| 24058 | readonly shareUrl?: string | null; | 30954 | readonly shareUrl?: string | null; |
| 24059 | }; | 30955 | }; |
| 24060 | export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({ | 30956 | export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({ |
| | 30957 | canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 24061 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30958 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24062 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30959 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24063 | discoverability: Schema.optionalKey( | 30960 | discoverability: Schema.optionalKey( |
| ... | @@ -24079,6 +30976,7 @@ export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({ | ... | @@ -24079,6 +30976,7 @@ export const V2PluginInstalledResponse__PluginShareContext = Schema.Struct({ |
| 24079 | }).annotate({ identifier: "V2PluginInstalledResponse__PluginShareContext" }); | 30976 | }).annotate({ identifier: "V2PluginInstalledResponse__PluginShareContext" }); |
| 24080 | | 30977 | |
| 24081 | export type V2PluginListResponse__PluginShareContext = { | 30978 | export type V2PluginListResponse__PluginShareContext = { |
| | 30979 | readonly canPublishToWorkspace?: boolean | null; |
| 24082 | readonly creatorAccountUserId?: string | null; | 30980 | readonly creatorAccountUserId?: string | null; |
| 24083 | readonly creatorName?: string | null; | 30981 | readonly creatorName?: string | null; |
| 24084 | readonly discoverability?: V2PluginListResponse__PluginShareDiscoverability | null; | 30982 | readonly discoverability?: V2PluginListResponse__PluginShareDiscoverability | null; |
| ... | @@ -24088,6 +30986,7 @@ export type V2PluginListResponse__PluginShareContext = { | ... | @@ -24088,6 +30986,7 @@ export type V2PluginListResponse__PluginShareContext = { |
| 24088 | readonly shareUrl?: string | null; | 30986 | readonly shareUrl?: string | null; |
| 24089 | }; | 30987 | }; |
| 24090 | export const V2PluginListResponse__PluginShareContext = Schema.Struct({ | 30988 | export const V2PluginListResponse__PluginShareContext = Schema.Struct({ |
| | 30989 | canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 24091 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30990 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24092 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 30991 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24093 | discoverability: Schema.optionalKey( | 30992 | discoverability: Schema.optionalKey( |
| ... | @@ -24139,6 +31038,7 @@ export const V2PluginReadResponse__ScheduledTaskSummary = Schema.Struct({ | ... | @@ -24139,6 +31038,7 @@ export const V2PluginReadResponse__ScheduledTaskSummary = Schema.Struct({ |
| 24139 | }).annotate({ identifier: "V2PluginReadResponse__ScheduledTaskSummary" }); | 31038 | }).annotate({ identifier: "V2PluginReadResponse__ScheduledTaskSummary" }); |
| 24140 | | 31039 | |
| 24141 | export type V2PluginReadResponse__PluginShareContext = { | 31040 | export type V2PluginReadResponse__PluginShareContext = { |
| | 31041 | readonly canPublishToWorkspace?: boolean | null; |
| 24142 | readonly creatorAccountUserId?: string | null; | 31042 | readonly creatorAccountUserId?: string | null; |
| 24143 | readonly creatorName?: string | null; | 31043 | readonly creatorName?: string | null; |
| 24144 | readonly discoverability?: V2PluginReadResponse__PluginShareDiscoverability | null; | 31044 | readonly discoverability?: V2PluginReadResponse__PluginShareDiscoverability | null; |
| ... | @@ -24148,6 +31048,7 @@ export type V2PluginReadResponse__PluginShareContext = { | ... | @@ -24148,6 +31048,7 @@ export type V2PluginReadResponse__PluginShareContext = { |
| 24148 | readonly shareUrl?: string | null; | 31048 | readonly shareUrl?: string | null; |
| 24149 | }; | 31049 | }; |
| 24150 | export const V2PluginReadResponse__PluginShareContext = Schema.Struct({ | 31050 | export const V2PluginReadResponse__PluginShareContext = Schema.Struct({ |
| | 31051 | canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 24151 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31052 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24152 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31053 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24153 | discoverability: Schema.optionalKey( | 31054 | discoverability: Schema.optionalKey( |
| ... | @@ -24169,6 +31070,7 @@ export const V2PluginReadResponse__PluginShareContext = Schema.Struct({ | ... | @@ -24169,6 +31070,7 @@ export const V2PluginReadResponse__PluginShareContext = Schema.Struct({ |
| 24169 | }).annotate({ identifier: "V2PluginReadResponse__PluginShareContext" }); | 31070 | }).annotate({ identifier: "V2PluginReadResponse__PluginShareContext" }); |
| 24170 | | 31071 | |
| 24171 | export type V2PluginShareListResponse__PluginShareContext = { | 31072 | export type V2PluginShareListResponse__PluginShareContext = { |
| | 31073 | readonly canPublishToWorkspace?: boolean | null; |
| 24172 | readonly creatorAccountUserId?: string | null; | 31074 | readonly creatorAccountUserId?: string | null; |
| 24173 | readonly creatorName?: string | null; | 31075 | readonly creatorName?: string | null; |
| 24174 | readonly discoverability?: V2PluginShareListResponse__PluginShareDiscoverability | null; | 31076 | readonly discoverability?: V2PluginShareListResponse__PluginShareDiscoverability | null; |
| ... | @@ -24178,6 +31080,7 @@ export type V2PluginShareListResponse__PluginShareContext = { | ... | @@ -24178,6 +31080,7 @@ export type V2PluginShareListResponse__PluginShareContext = { |
| 24178 | readonly shareUrl?: string | null; | 31080 | readonly shareUrl?: string | null; |
| 24179 | }; | 31081 | }; |
| 24180 | export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({ | 31082 | export const V2PluginShareListResponse__PluginShareContext = Schema.Struct({ |
| | 31083 | canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 24181 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31084 | creatorAccountUserId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24182 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31085 | creatorName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24183 | discoverability: Schema.optionalKey( | 31086 | discoverability: Schema.optionalKey( |
| ... | @@ -24210,6 +31113,7 @@ export type V2ReviewStartResponse__TurnError = { | ... | @@ -24210,6 +31113,7 @@ export type V2ReviewStartResponse__TurnError = { |
| 24210 | readonly additionalDetails?: string | null; | 31113 | readonly additionalDetails?: string | null; |
| 24211 | readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null; | 31114 | readonly codexErrorInfo?: V2ReviewStartResponse__CodexErrorInfo | null; |
| 24212 | readonly message: string; | 31115 | readonly message: string; |
| | 31116 | readonly misalignment?: V2ReviewStartResponse__MisalignmentErrorDetails | null; |
| 24213 | }; | 31117 | }; |
| 24214 | export const V2ReviewStartResponse__TurnError = Schema.Struct({ | 31118 | export const V2ReviewStartResponse__TurnError = Schema.Struct({ |
| 24215 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31119 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -24217,6 +31121,12 @@ export const V2ReviewStartResponse__TurnError = Schema.Struct({ | ... | @@ -24217,6 +31121,12 @@ export const V2ReviewStartResponse__TurnError = Schema.Struct({ |
| 24217 | Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]), | 31121 | Schema.Union([V2ReviewStartResponse__CodexErrorInfo, Schema.Null]), |
| 24218 | ), | 31122 | ), |
| 24219 | message: Schema.String, | 31123 | message: Schema.String, |
| | 31124 | misalignment: Schema.optionalKey( |
| | 31125 | Schema.Union([V2ReviewStartResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 31126 | description: |
| | 31127 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 31128 | }), |
| | 31129 | ), |
| 24220 | }).annotate({ identifier: "V2ReviewStartResponse__TurnError" }); | 31130 | }).annotate({ identifier: "V2ReviewStartResponse__TurnError" }); |
| 24221 | | 31131 | |
| 24222 | export type V2ReviewStartResponse__UserInput = | 31132 | export type V2ReviewStartResponse__UserInput = |
| ... | @@ -24230,6 +31140,11 @@ export type V2ReviewStartResponse__UserInput = | ... | @@ -24230,6 +31140,11 @@ export type V2ReviewStartResponse__UserInput = |
| 24230 | readonly type: "image"; | 31140 | readonly type: "image"; |
| 24231 | readonly url: string; | 31141 | readonly url: string; |
| 24232 | } | 31142 | } |
| | 31143 | | { |
| | 31144 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; |
| | 31145 | readonly type: "image"; |
| | 31146 | readonly fileId: string; |
| | 31147 | } |
| 24233 | | { | 31148 | | { |
| 24234 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; | 31149 | readonly detail?: V2ReviewStartResponse__ImageDetail | null; |
| 24235 | readonly path: string; | 31150 | readonly path: string; |
| ... | @@ -24251,11 +31166,18 @@ export const V2ReviewStartResponse__UserInput = Schema.Union( | ... | @@ -24251,11 +31166,18 @@ export const V2ReviewStartResponse__UserInput = Schema.Union( |
| 24251 | ), | 31166 | ), |
| 24252 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 31167 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24253 | }).annotate({ title: "TextUserInput" }), | 31168 | }).annotate({ title: "TextUserInput" }), |
| 24254 | Schema.Struct({ | 31169 | Schema.Union([ |
| 24255 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), | 31170 | Schema.Struct({ |
| 24256 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 31171 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), |
| 24257 | url: Schema.String, | 31172 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 24258 | }).annotate({ title: "ImageUserInput" }), | 31173 | url: Schema.String, |
| | 31174 | }).annotate({ title: "UrlUserInput" }), |
| | 31175 | Schema.Struct({ |
| | 31176 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), |
| | 31177 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31178 | fileId: Schema.String, |
| | 31179 | }).annotate({ title: "FileIdUserInput" }), |
| | 31180 | ]).annotate({ title: "ImageUserInput" }), |
| 24259 | Schema.Struct({ | 31181 | Schema.Struct({ |
| 24260 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), | 31182 | detail: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__ImageDetail, Schema.Null])), |
| 24261 | path: Schema.String, | 31183 | path: Schema.String, |
| ... | @@ -24283,6 +31205,14 @@ export const V2ReviewStartResponse__UserInput = Schema.Union( | ... | @@ -24283,6 +31205,14 @@ export const V2ReviewStartResponse__UserInput = Schema.Union( |
| 24283 | { mode: "oneOf" }, | 31205 | { mode: "oneOf" }, |
| 24284 | ).annotate({ identifier: "V2ReviewStartResponse__UserInput" }); | 31206 | ).annotate({ identifier: "V2ReviewStartResponse__UserInput" }); |
| 24285 | | 31207 | |
| | 31208 | export type V2ReviewStartResponse__FunctionCallOutputBody = |
| | 31209 | | string |
| | 31210 | | ReadonlyArray<V2ReviewStartResponse__FunctionCallOutputContentItem>; |
| | 31211 | export const V2ReviewStartResponse__FunctionCallOutputBody = Schema.Union([ |
| | 31212 | Schema.String, |
| | 31213 | Schema.Array(V2ReviewStartResponse__FunctionCallOutputContentItem), |
| | 31214 | ]).annotate({ identifier: "V2ReviewStartResponse__FunctionCallOutputBody" }); |
| | 31215 | |
| 24286 | export type V2SkillsListResponse__SkillMetadata = { | 31216 | export type V2SkillsListResponse__SkillMetadata = { |
| 24287 | readonly dependencies?: V2SkillsListResponse__SkillDependencies | null; | 31217 | readonly dependencies?: V2SkillsListResponse__SkillDependencies | null; |
| 24288 | readonly description: string; | 31218 | readonly description: string; |
| ... | @@ -24290,6 +31220,7 @@ export type V2SkillsListResponse__SkillMetadata = { | ... | @@ -24290,6 +31220,7 @@ export type V2SkillsListResponse__SkillMetadata = { |
| 24290 | readonly interface?: V2SkillsListResponse__SkillInterface | null; | 31220 | readonly interface?: V2SkillsListResponse__SkillInterface | null; |
| 24291 | readonly name: string; | 31221 | readonly name: string; |
| 24292 | readonly path: V2SkillsListResponse__AbsolutePathBuf; | 31222 | readonly path: V2SkillsListResponse__AbsolutePathBuf; |
| | 31223 | readonly pluginId?: string | null; |
| 24293 | readonly scope: V2SkillsListResponse__SkillScope; | 31224 | readonly scope: V2SkillsListResponse__SkillScope; |
| 24294 | readonly shortDescription?: string | null; | 31225 | readonly shortDescription?: string | null; |
| 24295 | }; | 31226 | }; |
| ... | @@ -24302,6 +31233,14 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({ | ... | @@ -24302,6 +31233,14 @@ export const V2SkillsListResponse__SkillMetadata = Schema.Struct({ |
| 24302 | interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])), | 31233 | interface: Schema.optionalKey(Schema.Union([V2SkillsListResponse__SkillInterface, Schema.Null])), |
| 24303 | name: Schema.String, | 31234 | name: Schema.String, |
| 24304 | path: V2SkillsListResponse__AbsolutePathBuf, | 31235 | path: V2SkillsListResponse__AbsolutePathBuf, |
| | 31236 | pluginId: Schema.optionalKey( |
| | 31237 | Schema.Union([ |
| | 31238 | Schema.String.annotate({ |
| | 31239 | description: "Owning plugin ID, matching `PluginSummary.id`, when known.", |
| | 31240 | }), |
| | 31241 | Schema.Null, |
| | 31242 | ]), |
| | 31243 | ), |
| 24305 | scope: V2SkillsListResponse__SkillScope, | 31244 | scope: V2SkillsListResponse__SkillScope, |
| 24306 | shortDescription: Schema.optionalKey( | 31245 | shortDescription: Schema.optionalKey( |
| 24307 | Schema.Union([ | 31246 | Schema.Union([ |
| ... | @@ -24337,6 +31276,7 @@ export type V2ThreadForkResponse__TurnError = { | ... | @@ -24337,6 +31276,7 @@ export type V2ThreadForkResponse__TurnError = { |
| 24337 | readonly additionalDetails?: string | null; | 31276 | readonly additionalDetails?: string | null; |
| 24338 | readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null; | 31277 | readonly codexErrorInfo?: V2ThreadForkResponse__CodexErrorInfo | null; |
| 24339 | readonly message: string; | 31278 | readonly message: string; |
| | 31279 | readonly misalignment?: V2ThreadForkResponse__MisalignmentErrorDetails | null; |
| 24340 | }; | 31280 | }; |
| 24341 | export const V2ThreadForkResponse__TurnError = Schema.Struct({ | 31281 | export const V2ThreadForkResponse__TurnError = Schema.Struct({ |
| 24342 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31282 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -24344,6 +31284,12 @@ export const V2ThreadForkResponse__TurnError = Schema.Struct({ | ... | @@ -24344,6 +31284,12 @@ export const V2ThreadForkResponse__TurnError = Schema.Struct({ |
| 24344 | Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]), | 31284 | Schema.Union([V2ThreadForkResponse__CodexErrorInfo, Schema.Null]), |
| 24345 | ), | 31285 | ), |
| 24346 | message: Schema.String, | 31286 | message: Schema.String, |
| | 31287 | misalignment: Schema.optionalKey( |
| | 31288 | Schema.Union([V2ThreadForkResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 31289 | description: |
| | 31290 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 31291 | }), |
| | 31292 | ), |
| 24347 | }).annotate({ identifier: "V2ThreadForkResponse__TurnError" }); | 31293 | }).annotate({ identifier: "V2ThreadForkResponse__TurnError" }); |
| 24348 | | 31294 | |
| 24349 | export type V2ThreadForkResponse__UserInput = | 31295 | export type V2ThreadForkResponse__UserInput = |
| ... | @@ -24357,6 +31303,11 @@ export type V2ThreadForkResponse__UserInput = | ... | @@ -24357,6 +31303,11 @@ export type V2ThreadForkResponse__UserInput = |
| 24357 | readonly type: "image"; | 31303 | readonly type: "image"; |
| 24358 | readonly url: string; | 31304 | readonly url: string; |
| 24359 | } | 31305 | } |
| | 31306 | | { |
| | 31307 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; |
| | 31308 | readonly type: "image"; |
| | 31309 | readonly fileId: string; |
| | 31310 | } |
| 24360 | | { | 31311 | | { |
| 24361 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; | 31312 | readonly detail?: V2ThreadForkResponse__ImageDetail | null; |
| 24362 | readonly path: string; | 31313 | readonly path: string; |
| ... | @@ -24378,13 +31329,110 @@ export const V2ThreadForkResponse__UserInput = Schema.Union( | ... | @@ -24378,13 +31329,110 @@ export const V2ThreadForkResponse__UserInput = Schema.Union( |
| 24378 | ), | 31329 | ), |
| 24379 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 31330 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24380 | }).annotate({ title: "TextUserInput" }), | 31331 | }).annotate({ title: "TextUserInput" }), |
| | 31332 | Schema.Union([ |
| | 31333 | Schema.Struct({ |
| | 31334 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), |
| | 31335 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31336 | url: Schema.String, |
| | 31337 | }).annotate({ title: "UrlUserInput" }), |
| | 31338 | Schema.Struct({ |
| | 31339 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), |
| | 31340 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31341 | fileId: Schema.String, |
| | 31342 | }).annotate({ title: "FileIdUserInput" }), |
| | 31343 | ]).annotate({ title: "ImageUserInput" }), |
| 24381 | Schema.Struct({ | 31344 | Schema.Struct({ |
| 24382 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), | 31345 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), |
| 24383 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 31346 | path: Schema.String, |
| | 31347 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 31348 | }).annotate({ title: "LocalImageUserInput" }), |
| | 31349 | Schema.Struct({ |
| | 31350 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 24384 | url: Schema.String, | 31351 | url: Schema.String, |
| 24385 | }).annotate({ title: "ImageUserInput" }), | 31352 | }).annotate({ title: "AudioUserInput" }), |
| 24386 | Schema.Struct({ | 31353 | Schema.Struct({ |
| 24387 | detail: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__ImageDetail, Schema.Null])), | 31354 | path: Schema.String, |
| | 31355 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 31356 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 31357 | Schema.Struct({ |
| | 31358 | name: Schema.String, |
| | 31359 | path: Schema.String, |
| | 31360 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 31361 | }).annotate({ title: "SkillUserInput" }), |
| | 31362 | Schema.Struct({ |
| | 31363 | name: Schema.String, |
| | 31364 | path: Schema.String, |
| | 31365 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 31366 | }).annotate({ title: "MentionUserInput" }), |
| | 31367 | ], |
| | 31368 | { mode: "oneOf" }, |
| | 31369 | ).annotate({ identifier: "V2ThreadForkResponse__UserInput" }); |
| | 31370 | |
| | 31371 | export type V2ThreadForkResponse__FunctionCallOutputBody = |
| | 31372 | | string |
| | 31373 | | ReadonlyArray<V2ThreadForkResponse__FunctionCallOutputContentItem>; |
| | 31374 | export const V2ThreadForkResponse__FunctionCallOutputBody = Schema.Union([ |
| | 31375 | Schema.String, |
| | 31376 | Schema.Array(V2ThreadForkResponse__FunctionCallOutputContentItem), |
| | 31377 | ]).annotate({ identifier: "V2ThreadForkResponse__FunctionCallOutputBody" }); |
| | 31378 | |
| | 31379 | export type V2ThreadItemsListResponse__UserInput = |
| | 31380 | | { |
| | 31381 | readonly text: string; |
| | 31382 | readonly text_elements?: ReadonlyArray<V2ThreadItemsListResponse__TextElement>; |
| | 31383 | readonly type: "text"; |
| | 31384 | } |
| | 31385 | | { |
| | 31386 | readonly detail?: V2ThreadItemsListResponse__ImageDetail | null; |
| | 31387 | readonly type: "image"; |
| | 31388 | readonly url: string; |
| | 31389 | } |
| | 31390 | | { |
| | 31391 | readonly detail?: V2ThreadItemsListResponse__ImageDetail | null; |
| | 31392 | readonly type: "image"; |
| | 31393 | readonly fileId: string; |
| | 31394 | } |
| | 31395 | | { |
| | 31396 | readonly detail?: V2ThreadItemsListResponse__ImageDetail | null; |
| | 31397 | readonly path: string; |
| | 31398 | readonly type: "localImage"; |
| | 31399 | } |
| | 31400 | | { readonly type: "audio"; readonly url: string } |
| | 31401 | | { readonly path: string; readonly type: "localAudio" } |
| | 31402 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 31403 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 31404 | export const V2ThreadItemsListResponse__UserInput = Schema.Union( |
| | 31405 | [ |
| | 31406 | Schema.Struct({ |
| | 31407 | text: Schema.String, |
| | 31408 | text_elements: Schema.optionalKey( |
| | 31409 | Schema.Array(V2ThreadItemsListResponse__TextElement).annotate({ |
| | 31410 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 31411 | default: [], |
| | 31412 | }), |
| | 31413 | ), |
| | 31414 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 31415 | }).annotate({ title: "TextUserInput" }), |
| | 31416 | Schema.Union([ |
| | 31417 | Schema.Struct({ |
| | 31418 | detail: Schema.optionalKey( |
| | 31419 | Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]), |
| | 31420 | ), |
| | 31421 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31422 | url: Schema.String, |
| | 31423 | }).annotate({ title: "UrlUserInput" }), |
| | 31424 | Schema.Struct({ |
| | 31425 | detail: Schema.optionalKey( |
| | 31426 | Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]), |
| | 31427 | ), |
| | 31428 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31429 | fileId: Schema.String, |
| | 31430 | }).annotate({ title: "FileIdUserInput" }), |
| | 31431 | ]).annotate({ title: "ImageUserInput" }), |
| | 31432 | Schema.Struct({ |
| | 31433 | detail: Schema.optionalKey( |
| | 31434 | Schema.Union([V2ThreadItemsListResponse__ImageDetail, Schema.Null]), |
| | 31435 | ), |
| 24388 | path: Schema.String, | 31436 | path: Schema.String, |
| 24389 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | 31437 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 24390 | }).annotate({ title: "LocalImageUserInput" }), | 31438 | }).annotate({ title: "LocalImageUserInput" }), |
| ... | @@ -24408,7 +31456,15 @@ export const V2ThreadForkResponse__UserInput = Schema.Union( | ... | @@ -24408,7 +31456,15 @@ export const V2ThreadForkResponse__UserInput = Schema.Union( |
| 24408 | }).annotate({ title: "MentionUserInput" }), | 31456 | }).annotate({ title: "MentionUserInput" }), |
| 24409 | ], | 31457 | ], |
| 24410 | { mode: "oneOf" }, | 31458 | { mode: "oneOf" }, |
| 24411 | ).annotate({ identifier: "V2ThreadForkResponse__UserInput" }); | 31459 | ).annotate({ identifier: "V2ThreadItemsListResponse__UserInput" }); |
| | 31460 | |
| | 31461 | export type V2ThreadItemsListResponse__FunctionCallOutputBody = |
| | 31462 | | string |
| | 31463 | | ReadonlyArray<V2ThreadItemsListResponse__FunctionCallOutputContentItem>; |
| | 31464 | export const V2ThreadItemsListResponse__FunctionCallOutputBody = Schema.Union([ |
| | 31465 | Schema.String, |
| | 31466 | Schema.Array(V2ThreadItemsListResponse__FunctionCallOutputContentItem), |
| | 31467 | ]).annotate({ identifier: "V2ThreadItemsListResponse__FunctionCallOutputBody" }); |
| 24412 | | 31468 | |
| 24413 | export type V2ThreadListResponse__SessionSource = | 31469 | export type V2ThreadListResponse__SessionSource = |
| 24414 | | "cli" | 31470 | | "cli" |
| ... | @@ -24433,6 +31489,7 @@ export type V2ThreadListResponse__TurnError = { | ... | @@ -24433,6 +31489,7 @@ export type V2ThreadListResponse__TurnError = { |
| 24433 | readonly additionalDetails?: string | null; | 31489 | readonly additionalDetails?: string | null; |
| 24434 | readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null; | 31490 | readonly codexErrorInfo?: V2ThreadListResponse__CodexErrorInfo | null; |
| 24435 | readonly message: string; | 31491 | readonly message: string; |
| | 31492 | readonly misalignment?: V2ThreadListResponse__MisalignmentErrorDetails | null; |
| 24436 | }; | 31493 | }; |
| 24437 | export const V2ThreadListResponse__TurnError = Schema.Struct({ | 31494 | export const V2ThreadListResponse__TurnError = Schema.Struct({ |
| 24438 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31495 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -24440,6 +31497,12 @@ export const V2ThreadListResponse__TurnError = Schema.Struct({ | ... | @@ -24440,6 +31497,12 @@ export const V2ThreadListResponse__TurnError = Schema.Struct({ |
| 24440 | Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]), | 31497 | Schema.Union([V2ThreadListResponse__CodexErrorInfo, Schema.Null]), |
| 24441 | ), | 31498 | ), |
| 24442 | message: Schema.String, | 31499 | message: Schema.String, |
| | 31500 | misalignment: Schema.optionalKey( |
| | 31501 | Schema.Union([V2ThreadListResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 31502 | description: |
| | 31503 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 31504 | }), |
| | 31505 | ), |
| 24443 | }).annotate({ identifier: "V2ThreadListResponse__TurnError" }); | 31506 | }).annotate({ identifier: "V2ThreadListResponse__TurnError" }); |
| 24444 | | 31507 | |
| 24445 | export type V2ThreadListResponse__UserInput = | 31508 | export type V2ThreadListResponse__UserInput = |
| ... | @@ -24453,6 +31516,11 @@ export type V2ThreadListResponse__UserInput = | ... | @@ -24453,6 +31516,11 @@ export type V2ThreadListResponse__UserInput = |
| 24453 | readonly type: "image"; | 31516 | readonly type: "image"; |
| 24454 | readonly url: string; | 31517 | readonly url: string; |
| 24455 | } | 31518 | } |
| | 31519 | | { |
| | 31520 | readonly detail?: V2ThreadListResponse__ImageDetail | null; |
| | 31521 | readonly type: "image"; |
| | 31522 | readonly fileId: string; |
| | 31523 | } |
| 24456 | | { | 31524 | | { |
| 24457 | readonly detail?: V2ThreadListResponse__ImageDetail | null; | 31525 | readonly detail?: V2ThreadListResponse__ImageDetail | null; |
| 24458 | readonly path: string; | 31526 | readonly path: string; |
| ... | @@ -24474,11 +31542,18 @@ export const V2ThreadListResponse__UserInput = Schema.Union( | ... | @@ -24474,11 +31542,18 @@ export const V2ThreadListResponse__UserInput = Schema.Union( |
| 24474 | ), | 31542 | ), |
| 24475 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 31543 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24476 | }).annotate({ title: "TextUserInput" }), | 31544 | }).annotate({ title: "TextUserInput" }), |
| 24477 | Schema.Struct({ | 31545 | Schema.Union([ |
| 24478 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), | 31546 | Schema.Struct({ |
| 24479 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 31547 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), |
| 24480 | url: Schema.String, | 31548 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 24481 | }).annotate({ title: "ImageUserInput" }), | 31549 | url: Schema.String, |
| | 31550 | }).annotate({ title: "UrlUserInput" }), |
| | 31551 | Schema.Struct({ |
| | 31552 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), |
| | 31553 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31554 | fileId: Schema.String, |
| | 31555 | }).annotate({ title: "FileIdUserInput" }), |
| | 31556 | ]).annotate({ title: "ImageUserInput" }), |
| 24482 | Schema.Struct({ | 31557 | Schema.Struct({ |
| 24483 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), | 31558 | detail: Schema.optionalKey(Schema.Union([V2ThreadListResponse__ImageDetail, Schema.Null])), |
| 24484 | path: Schema.String, | 31559 | path: Schema.String, |
| ... | @@ -24506,6 +31581,14 @@ export const V2ThreadListResponse__UserInput = Schema.Union( | ... | @@ -24506,6 +31581,14 @@ export const V2ThreadListResponse__UserInput = Schema.Union( |
| 24506 | { mode: "oneOf" }, | 31581 | { mode: "oneOf" }, |
| 24507 | ).annotate({ identifier: "V2ThreadListResponse__UserInput" }); | 31582 | ).annotate({ identifier: "V2ThreadListResponse__UserInput" }); |
| 24508 | | 31583 | |
| | 31584 | export type V2ThreadListResponse__FunctionCallOutputBody = |
| | 31585 | | string |
| | 31586 | | ReadonlyArray<V2ThreadListResponse__FunctionCallOutputContentItem>; |
| | 31587 | export const V2ThreadListResponse__FunctionCallOutputBody = Schema.Union([ |
| | 31588 | Schema.String, |
| | 31589 | Schema.Array(V2ThreadListResponse__FunctionCallOutputContentItem), |
| | 31590 | ]).annotate({ identifier: "V2ThreadListResponse__FunctionCallOutputBody" }); |
| | 31591 | |
| 24509 | export type V2ThreadMetadataUpdateResponse__SessionSource = | 31592 | export type V2ThreadMetadataUpdateResponse__SessionSource = |
| 24510 | | "cli" | 31593 | | "cli" |
| 24511 | | "vscode" | 31594 | | "vscode" |
| ... | @@ -24529,6 +31612,7 @@ export type V2ThreadMetadataUpdateResponse__TurnError = { | ... | @@ -24529,6 +31612,7 @@ export type V2ThreadMetadataUpdateResponse__TurnError = { |
| 24529 | readonly additionalDetails?: string | null; | 31612 | readonly additionalDetails?: string | null; |
| 24530 | readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null; | 31613 | readonly codexErrorInfo?: V2ThreadMetadataUpdateResponse__CodexErrorInfo | null; |
| 24531 | readonly message: string; | 31614 | readonly message: string; |
| | 31615 | readonly misalignment?: V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails | null; |
| 24532 | }; | 31616 | }; |
| 24533 | export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ | 31617 | export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ |
| 24534 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31618 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -24536,6 +31620,12 @@ export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ | ... | @@ -24536,6 +31620,12 @@ export const V2ThreadMetadataUpdateResponse__TurnError = Schema.Struct({ |
| 24536 | Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]), | 31620 | Schema.Union([V2ThreadMetadataUpdateResponse__CodexErrorInfo, Schema.Null]), |
| 24537 | ), | 31621 | ), |
| 24538 | message: Schema.String, | 31622 | message: Schema.String, |
| | 31623 | misalignment: Schema.optionalKey( |
| | 31624 | Schema.Union([V2ThreadMetadataUpdateResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 31625 | description: |
| | 31626 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 31627 | }), |
| | 31628 | ), |
| 24539 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TurnError" }); | 31629 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__TurnError" }); |
| 24540 | | 31630 | |
| 24541 | export type V2ThreadMetadataUpdateResponse__UserInput = | 31631 | export type V2ThreadMetadataUpdateResponse__UserInput = |
| ... | @@ -24549,6 +31639,11 @@ export type V2ThreadMetadataUpdateResponse__UserInput = | ... | @@ -24549,6 +31639,11 @@ export type V2ThreadMetadataUpdateResponse__UserInput = |
| 24549 | readonly type: "image"; | 31639 | readonly type: "image"; |
| 24550 | readonly url: string; | 31640 | readonly url: string; |
| 24551 | } | 31641 | } |
| | 31642 | | { |
| | 31643 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; |
| | 31644 | readonly type: "image"; |
| | 31645 | readonly fileId: string; |
| | 31646 | } |
| 24552 | | { | 31647 | | { |
| 24553 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; | 31648 | readonly detail?: V2ThreadMetadataUpdateResponse__ImageDetail | null; |
| 24554 | readonly path: string; | 31649 | readonly path: string; |
| ... | @@ -24570,13 +31665,22 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union( | ... | @@ -24570,13 +31665,22 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union( |
| 24570 | ), | 31665 | ), |
| 24571 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 31666 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24572 | }).annotate({ title: "TextUserInput" }), | 31667 | }).annotate({ title: "TextUserInput" }), |
| 24573 | Schema.Struct({ | 31668 | Schema.Union([ |
| 24574 | detail: Schema.optionalKey( | 31669 | Schema.Struct({ |
| 24575 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), | 31670 | detail: Schema.optionalKey( |
| 24576 | ), | 31671 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), |
| 24577 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 31672 | ), |
| 24578 | url: Schema.String, | 31673 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 24579 | }).annotate({ title: "ImageUserInput" }), | 31674 | url: Schema.String, |
| | 31675 | }).annotate({ title: "UrlUserInput" }), |
| | 31676 | Schema.Struct({ |
| | 31677 | detail: Schema.optionalKey( |
| | 31678 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), |
| | 31679 | ), |
| | 31680 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31681 | fileId: Schema.String, |
| | 31682 | }).annotate({ title: "FileIdUserInput" }), |
| | 31683 | ]).annotate({ title: "ImageUserInput" }), |
| 24580 | Schema.Struct({ | 31684 | Schema.Struct({ |
| 24581 | detail: Schema.optionalKey( | 31685 | detail: Schema.optionalKey( |
| 24582 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), | 31686 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageDetail, Schema.Null]), |
| ... | @@ -24606,6 +31710,14 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union( | ... | @@ -24606,6 +31710,14 @@ export const V2ThreadMetadataUpdateResponse__UserInput = Schema.Union( |
| 24606 | { mode: "oneOf" }, | 31710 | { mode: "oneOf" }, |
| 24607 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__UserInput" }); | 31711 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__UserInput" }); |
| 24608 | | 31712 | |
| | 31713 | export type V2ThreadMetadataUpdateResponse__FunctionCallOutputBody = |
| | 31714 | | string |
| | 31715 | | ReadonlyArray<V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem>; |
| | 31716 | export const V2ThreadMetadataUpdateResponse__FunctionCallOutputBody = Schema.Union([ |
| | 31717 | Schema.String, |
| | 31718 | Schema.Array(V2ThreadMetadataUpdateResponse__FunctionCallOutputContentItem), |
| | 31719 | ]).annotate({ identifier: "V2ThreadMetadataUpdateResponse__FunctionCallOutputBody" }); |
| | 31720 | |
| 24609 | export type V2ThreadReadResponse__SessionSource = | 31721 | export type V2ThreadReadResponse__SessionSource = |
| 24610 | | "cli" | 31722 | | "cli" |
| 24611 | | "vscode" | 31723 | | "vscode" |
| ... | @@ -24629,6 +31741,7 @@ export type V2ThreadReadResponse__TurnError = { | ... | @@ -24629,6 +31741,7 @@ export type V2ThreadReadResponse__TurnError = { |
| 24629 | readonly additionalDetails?: string | null; | 31741 | readonly additionalDetails?: string | null; |
| 24630 | readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null; | 31742 | readonly codexErrorInfo?: V2ThreadReadResponse__CodexErrorInfo | null; |
| 24631 | readonly message: string; | 31743 | readonly message: string; |
| | 31744 | readonly misalignment?: V2ThreadReadResponse__MisalignmentErrorDetails | null; |
| 24632 | }; | 31745 | }; |
| 24633 | export const V2ThreadReadResponse__TurnError = Schema.Struct({ | 31746 | export const V2ThreadReadResponse__TurnError = Schema.Struct({ |
| 24634 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31747 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -24636,6 +31749,12 @@ export const V2ThreadReadResponse__TurnError = Schema.Struct({ | ... | @@ -24636,6 +31749,12 @@ export const V2ThreadReadResponse__TurnError = Schema.Struct({ |
| 24636 | Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]), | 31749 | Schema.Union([V2ThreadReadResponse__CodexErrorInfo, Schema.Null]), |
| 24637 | ), | 31750 | ), |
| 24638 | message: Schema.String, | 31751 | message: Schema.String, |
| | 31752 | misalignment: Schema.optionalKey( |
| | 31753 | Schema.Union([V2ThreadReadResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 31754 | description: |
| | 31755 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 31756 | }), |
| | 31757 | ), |
| 24639 | }).annotate({ identifier: "V2ThreadReadResponse__TurnError" }); | 31758 | }).annotate({ identifier: "V2ThreadReadResponse__TurnError" }); |
| 24640 | | 31759 | |
| 24641 | export type V2ThreadReadResponse__UserInput = | 31760 | export type V2ThreadReadResponse__UserInput = |
| ... | @@ -24649,6 +31768,11 @@ export type V2ThreadReadResponse__UserInput = | ... | @@ -24649,6 +31768,11 @@ export type V2ThreadReadResponse__UserInput = |
| 24649 | readonly type: "image"; | 31768 | readonly type: "image"; |
| 24650 | readonly url: string; | 31769 | readonly url: string; |
| 24651 | } | 31770 | } |
| | 31771 | | { |
| | 31772 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; |
| | 31773 | readonly type: "image"; |
| | 31774 | readonly fileId: string; |
| | 31775 | } |
| 24652 | | { | 31776 | | { |
| 24653 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; | 31777 | readonly detail?: V2ThreadReadResponse__ImageDetail | null; |
| 24654 | readonly path: string; | 31778 | readonly path: string; |
| ... | @@ -24670,11 +31794,18 @@ export const V2ThreadReadResponse__UserInput = Schema.Union( | ... | @@ -24670,11 +31794,18 @@ export const V2ThreadReadResponse__UserInput = Schema.Union( |
| 24670 | ), | 31794 | ), |
| 24671 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 31795 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24672 | }).annotate({ title: "TextUserInput" }), | 31796 | }).annotate({ title: "TextUserInput" }), |
| 24673 | Schema.Struct({ | 31797 | Schema.Union([ |
| 24674 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), | 31798 | Schema.Struct({ |
| 24675 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 31799 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), |
| 24676 | url: Schema.String, | 31800 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 24677 | }).annotate({ title: "ImageUserInput" }), | 31801 | url: Schema.String, |
| | 31802 | }).annotate({ title: "UrlUserInput" }), |
| | 31803 | Schema.Struct({ |
| | 31804 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), |
| | 31805 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31806 | fileId: Schema.String, |
| | 31807 | }).annotate({ title: "FileIdUserInput" }), |
| | 31808 | ]).annotate({ title: "ImageUserInput" }), |
| 24678 | Schema.Struct({ | 31809 | Schema.Struct({ |
| 24679 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), | 31810 | detail: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__ImageDetail, Schema.Null])), |
| 24680 | path: Schema.String, | 31811 | path: Schema.String, |
| ... | @@ -24702,6 +31833,14 @@ export const V2ThreadReadResponse__UserInput = Schema.Union( | ... | @@ -24702,6 +31833,14 @@ export const V2ThreadReadResponse__UserInput = Schema.Union( |
| 24702 | { mode: "oneOf" }, | 31833 | { mode: "oneOf" }, |
| 24703 | ).annotate({ identifier: "V2ThreadReadResponse__UserInput" }); | 31834 | ).annotate({ identifier: "V2ThreadReadResponse__UserInput" }); |
| 24704 | | 31835 | |
| | 31836 | export type V2ThreadReadResponse__FunctionCallOutputBody = |
| | 31837 | | string |
| | 31838 | | ReadonlyArray<V2ThreadReadResponse__FunctionCallOutputContentItem>; |
| | 31839 | export const V2ThreadReadResponse__FunctionCallOutputBody = Schema.Union([ |
| | 31840 | Schema.String, |
| | 31841 | Schema.Array(V2ThreadReadResponse__FunctionCallOutputContentItem), |
| | 31842 | ]).annotate({ identifier: "V2ThreadReadResponse__FunctionCallOutputBody" }); |
| | 31843 | |
| 24705 | export type V2ThreadResumeParams__FunctionCallOutputBody = | 31844 | export type V2ThreadResumeParams__FunctionCallOutputBody = |
| 24706 | | string | 31845 | | string |
| 24707 | | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>; | 31846 | | ReadonlyArray<V2ThreadResumeParams__FunctionCallOutputContentItem>; |
| ... | @@ -24710,6 +31849,18 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([ | ... | @@ -24710,6 +31849,18 @@ export const V2ThreadResumeParams__FunctionCallOutputBody = Schema.Union([ |
| 24710 | Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem), | 31849 | Schema.Array(V2ThreadResumeParams__FunctionCallOutputContentItem), |
| 24711 | ]).annotate({ identifier: "V2ThreadResumeParams__FunctionCallOutputBody" }); | 31850 | ]).annotate({ identifier: "V2ThreadResumeParams__FunctionCallOutputBody" }); |
| 24712 | | 31851 | |
| | 31852 | export type V2ThreadResumeResponse__CollaborationMode = { |
| | 31853 | readonly mode: V2ThreadResumeResponse__ModeKind; |
| | 31854 | readonly settings: V2ThreadResumeResponse__Settings; |
| | 31855 | }; |
| | 31856 | export const V2ThreadResumeResponse__CollaborationMode = Schema.Struct({ |
| | 31857 | mode: V2ThreadResumeResponse__ModeKind, |
| | 31858 | settings: V2ThreadResumeResponse__Settings, |
| | 31859 | }).annotate({ |
| | 31860 | description: "Collaboration mode for a Codex session.", |
| | 31861 | identifier: "V2ThreadResumeResponse__CollaborationMode", |
| | 31862 | }); |
| | 31863 | |
| 24713 | export type V2ThreadResumeResponse__SessionSource = | 31864 | export type V2ThreadResumeResponse__SessionSource = |
| 24714 | | "cli" | 31865 | | "cli" |
| 24715 | | "vscode" | 31866 | | "vscode" |
| ... | @@ -24733,6 +31884,7 @@ export type V2ThreadResumeResponse__TurnError = { | ... | @@ -24733,6 +31884,7 @@ export type V2ThreadResumeResponse__TurnError = { |
| 24733 | readonly additionalDetails?: string | null; | 31884 | readonly additionalDetails?: string | null; |
| 24734 | readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null; | 31885 | readonly codexErrorInfo?: V2ThreadResumeResponse__CodexErrorInfo | null; |
| 24735 | readonly message: string; | 31886 | readonly message: string; |
| | 31887 | readonly misalignment?: V2ThreadResumeResponse__MisalignmentErrorDetails | null; |
| 24736 | }; | 31888 | }; |
| 24737 | export const V2ThreadResumeResponse__TurnError = Schema.Struct({ | 31889 | export const V2ThreadResumeResponse__TurnError = Schema.Struct({ |
| 24738 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 31890 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -24740,6 +31892,12 @@ export const V2ThreadResumeResponse__TurnError = Schema.Struct({ | ... | @@ -24740,6 +31892,12 @@ export const V2ThreadResumeResponse__TurnError = Schema.Struct({ |
| 24740 | Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]), | 31892 | Schema.Union([V2ThreadResumeResponse__CodexErrorInfo, Schema.Null]), |
| 24741 | ), | 31893 | ), |
| 24742 | message: Schema.String, | 31894 | message: Schema.String, |
| | 31895 | misalignment: Schema.optionalKey( |
| | 31896 | Schema.Union([V2ThreadResumeResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 31897 | description: |
| | 31898 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 31899 | }), |
| | 31900 | ), |
| 24743 | }).annotate({ identifier: "V2ThreadResumeResponse__TurnError" }); | 31901 | }).annotate({ identifier: "V2ThreadResumeResponse__TurnError" }); |
| 24744 | | 31902 | |
| 24745 | export type V2ThreadResumeResponse__UserInput = | 31903 | export type V2ThreadResumeResponse__UserInput = |
| ... | @@ -24753,6 +31911,11 @@ export type V2ThreadResumeResponse__UserInput = | ... | @@ -24753,6 +31911,11 @@ export type V2ThreadResumeResponse__UserInput = |
| 24753 | readonly type: "image"; | 31911 | readonly type: "image"; |
| 24754 | readonly url: string; | 31912 | readonly url: string; |
| 24755 | } | 31913 | } |
| | 31914 | | { |
| | 31915 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; |
| | 31916 | readonly type: "image"; |
| | 31917 | readonly fileId: string; |
| | 31918 | } |
| 24756 | | { | 31919 | | { |
| 24757 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; | 31920 | readonly detail?: V2ThreadResumeResponse__ImageDetail | null; |
| 24758 | readonly path: string; | 31921 | readonly path: string; |
| ... | @@ -24774,11 +31937,22 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union( | ... | @@ -24774,11 +31937,22 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union( |
| 24774 | ), | 31937 | ), |
| 24775 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 31938 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24776 | }).annotate({ title: "TextUserInput" }), | 31939 | }).annotate({ title: "TextUserInput" }), |
| 24777 | Schema.Struct({ | 31940 | Schema.Union([ |
| 24778 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])), | 31941 | Schema.Struct({ |
| 24779 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 31942 | detail: Schema.optionalKey( |
| 24780 | url: Schema.String, | 31943 | Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]), |
| 24781 | }).annotate({ title: "ImageUserInput" }), | 31944 | ), |
| | 31945 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31946 | url: Schema.String, |
| | 31947 | }).annotate({ title: "UrlUserInput" }), |
| | 31948 | Schema.Struct({ |
| | 31949 | detail: Schema.optionalKey( |
| | 31950 | Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null]), |
| | 31951 | ), |
| | 31952 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 31953 | fileId: Schema.String, |
| | 31954 | }).annotate({ title: "FileIdUserInput" }), |
| | 31955 | ]).annotate({ title: "ImageUserInput" }), |
| 24782 | Schema.Struct({ | 31956 | Schema.Struct({ |
| 24783 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])), | 31957 | detail: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__ImageDetail, Schema.Null])), |
| 24784 | path: Schema.String, | 31958 | path: Schema.String, |
| ... | @@ -24806,51 +31980,71 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union( | ... | @@ -24806,51 +31980,71 @@ export const V2ThreadResumeResponse__UserInput = Schema.Union( |
| 24806 | { mode: "oneOf" }, | 31980 | { mode: "oneOf" }, |
| 24807 | ).annotate({ identifier: "V2ThreadResumeResponse__UserInput" }); | 31981 | ).annotate({ identifier: "V2ThreadResumeResponse__UserInput" }); |
| 24808 | | 31982 | |
| 24809 | export type V2ThreadRollbackResponse__SessionSource = | 31983 | export type V2ThreadResumeResponse__FunctionCallOutputBody = |
| | 31984 | | string |
| | 31985 | | ReadonlyArray<V2ThreadResumeResponse__FunctionCallOutputContentItem>; |
| | 31986 | export const V2ThreadResumeResponse__FunctionCallOutputBody = Schema.Union([ |
| | 31987 | Schema.String, |
| | 31988 | Schema.Array(V2ThreadResumeResponse__FunctionCallOutputContentItem), |
| | 31989 | ]).annotate({ identifier: "V2ThreadResumeResponse__FunctionCallOutputBody" }); |
| | 31990 | |
| | 31991 | export type V2ThreadRevertResponse__SessionSource = |
| 24810 | | "cli" | 31992 | | "cli" |
| 24811 | | "vscode" | 31993 | | "vscode" |
| 24812 | | "exec" | 31994 | | "exec" |
| 24813 | | "appServer" | 31995 | | "appServer" |
| 24814 | | "unknown" | 31996 | | "unknown" |
| 24815 | | { readonly custom: string } | 31997 | | { readonly custom: string } |
| 24816 | | { readonly subAgent: V2ThreadRollbackResponse__SubAgentSource }; | 31998 | | { readonly subAgent: V2ThreadRevertResponse__SubAgentSource }; |
| 24817 | export const V2ThreadRollbackResponse__SessionSource = Schema.Union( | 31999 | export const V2ThreadRevertResponse__SessionSource = Schema.Union( |
| 24818 | [ | 32000 | [ |
| 24819 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), | 32001 | Schema.Literals(["cli", "vscode", "exec", "appServer", "unknown"]), |
| 24820 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), | 32002 | Schema.Struct({ custom: Schema.String }).annotate({ title: "CustomSessionSource" }), |
| 24821 | Schema.Struct({ subAgent: V2ThreadRollbackResponse__SubAgentSource }).annotate({ | 32003 | Schema.Struct({ subAgent: V2ThreadRevertResponse__SubAgentSource }).annotate({ |
| 24822 | title: "SubAgentSessionSource", | 32004 | title: "SubAgentSessionSource", |
| 24823 | }), | 32005 | }), |
| 24824 | ], | 32006 | ], |
| 24825 | { mode: "oneOf" }, | 32007 | { mode: "oneOf" }, |
| 24826 | ).annotate({ identifier: "V2ThreadRollbackResponse__SessionSource" }); | 32008 | ).annotate({ identifier: "V2ThreadRevertResponse__SessionSource" }); |
| 24827 | | 32009 | |
| 24828 | export type V2ThreadRollbackResponse__TurnError = { | 32010 | export type V2ThreadRevertResponse__TurnError = { |
| 24829 | readonly additionalDetails?: string | null; | 32011 | readonly additionalDetails?: string | null; |
| 24830 | readonly codexErrorInfo?: V2ThreadRollbackResponse__CodexErrorInfo | null; | 32012 | readonly codexErrorInfo?: V2ThreadRevertResponse__CodexErrorInfo | null; |
| 24831 | readonly message: string; | 32013 | readonly message: string; |
| | 32014 | readonly misalignment?: V2ThreadRevertResponse__MisalignmentErrorDetails | null; |
| 24832 | }; | 32015 | }; |
| 24833 | export const V2ThreadRollbackResponse__TurnError = Schema.Struct({ | 32016 | export const V2ThreadRevertResponse__TurnError = Schema.Struct({ |
| 24834 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32017 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 24835 | codexErrorInfo: Schema.optionalKey( | 32018 | codexErrorInfo: Schema.optionalKey( |
| 24836 | Schema.Union([V2ThreadRollbackResponse__CodexErrorInfo, Schema.Null]), | 32019 | Schema.Union([V2ThreadRevertResponse__CodexErrorInfo, Schema.Null]), |
| 24837 | ), | 32020 | ), |
| 24838 | message: Schema.String, | 32021 | message: Schema.String, |
| 24839 | }).annotate({ identifier: "V2ThreadRollbackResponse__TurnError" }); | 32022 | misalignment: Schema.optionalKey( |
| | 32023 | Schema.Union([V2ThreadRevertResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32024 | description: |
| | 32025 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32026 | }), |
| | 32027 | ), |
| | 32028 | }).annotate({ identifier: "V2ThreadRevertResponse__TurnError" }); |
| 24840 | | 32029 | |
| 24841 | export type V2ThreadRollbackResponse__UserInput = | 32030 | export type V2ThreadRevertResponse__UserInput = |
| 24842 | | { | 32031 | | { |
| 24843 | readonly text: string; | 32032 | readonly text: string; |
| 24844 | readonly text_elements?: ReadonlyArray<V2ThreadRollbackResponse__TextElement>; | 32033 | readonly text_elements?: ReadonlyArray<V2ThreadRevertResponse__TextElement>; |
| 24845 | readonly type: "text"; | 32034 | readonly type: "text"; |
| 24846 | } | 32035 | } |
| 24847 | | { | 32036 | | { |
| 24848 | readonly detail?: V2ThreadRollbackResponse__ImageDetail | null; | 32037 | readonly detail?: V2ThreadRevertResponse__ImageDetail | null; |
| 24849 | readonly type: "image"; | 32038 | readonly type: "image"; |
| 24850 | readonly url: string; | 32039 | readonly url: string; |
| 24851 | } | 32040 | } |
| 24852 | | { | 32041 | | { |
| 24853 | readonly detail?: V2ThreadRollbackResponse__ImageDetail | null; | 32042 | readonly detail?: V2ThreadRevertResponse__ImageDetail | null; |
| | 32043 | readonly type: "image"; |
| | 32044 | readonly fileId: string; |
| | 32045 | } |
| | 32046 | | { |
| | 32047 | readonly detail?: V2ThreadRevertResponse__ImageDetail | null; |
| 24854 | readonly path: string; | 32048 | readonly path: string; |
| 24855 | readonly type: "localImage"; | 32049 | readonly type: "localImage"; |
| 24856 | } | 32050 | } |
| ... | @@ -24858,29 +32052,36 @@ export type V2ThreadRollbackResponse__UserInput = | ... | @@ -24858,29 +32052,36 @@ export type V2ThreadRollbackResponse__UserInput = |
| 24858 | | { readonly path: string; readonly type: "localAudio" } | 32052 | | { readonly path: string; readonly type: "localAudio" } |
| 24859 | | { readonly name: string; readonly path: string; readonly type: "skill" } | 32053 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| 24860 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | 32054 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| 24861 | export const V2ThreadRollbackResponse__UserInput = Schema.Union( | 32055 | export const V2ThreadRevertResponse__UserInput = Schema.Union( |
| 24862 | [ | 32056 | [ |
| 24863 | Schema.Struct({ | 32057 | Schema.Struct({ |
| 24864 | text: Schema.String, | 32058 | text: Schema.String, |
| 24865 | text_elements: Schema.optionalKey( | 32059 | text_elements: Schema.optionalKey( |
| 24866 | Schema.Array(V2ThreadRollbackResponse__TextElement).annotate({ | 32060 | Schema.Array(V2ThreadRevertResponse__TextElement).annotate({ |
| 24867 | description: "UI-defined spans within `text` used to render or persist special elements.", | 32061 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| 24868 | default: [], | 32062 | default: [], |
| 24869 | }), | 32063 | }), |
| 24870 | ), | 32064 | ), |
| 24871 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 32065 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24872 | }).annotate({ title: "TextUserInput" }), | 32066 | }).annotate({ title: "TextUserInput" }), |
| | 32067 | Schema.Union([ |
| | 32068 | Schema.Struct({ |
| | 32069 | detail: Schema.optionalKey( |
| | 32070 | Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]), |
| | 32071 | ), |
| | 32072 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32073 | url: Schema.String, |
| | 32074 | }).annotate({ title: "UrlUserInput" }), |
| | 32075 | Schema.Struct({ |
| | 32076 | detail: Schema.optionalKey( |
| | 32077 | Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null]), |
| | 32078 | ), |
| | 32079 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32080 | fileId: Schema.String, |
| | 32081 | }).annotate({ title: "FileIdUserInput" }), |
| | 32082 | ]).annotate({ title: "ImageUserInput" }), |
| 24873 | Schema.Struct({ | 32083 | Schema.Struct({ |
| 24874 | detail: Schema.optionalKey( | 32084 | detail: Schema.optionalKey(Schema.Union([V2ThreadRevertResponse__ImageDetail, Schema.Null])), |
| 24875 | Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]), | | |
| 24876 | ), | | |
| 24877 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 24878 | url: Schema.String, | | |
| 24879 | }).annotate({ title: "ImageUserInput" }), | | |
| 24880 | Schema.Struct({ | | |
| 24881 | detail: Schema.optionalKey( | | |
| 24882 | Schema.Union([V2ThreadRollbackResponse__ImageDetail, Schema.Null]), | | |
| 24883 | ), | | |
| 24884 | path: Schema.String, | 32085 | path: Schema.String, |
| 24885 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | 32086 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 24886 | }).annotate({ title: "LocalImageUserInput" }), | 32087 | }).annotate({ title: "LocalImageUserInput" }), |
| ... | @@ -24904,7 +32105,15 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union( | ... | @@ -24904,7 +32105,15 @@ export const V2ThreadRollbackResponse__UserInput = Schema.Union( |
| 24904 | }).annotate({ title: "MentionUserInput" }), | 32105 | }).annotate({ title: "MentionUserInput" }), |
| 24905 | ], | 32106 | ], |
| 24906 | { mode: "oneOf" }, | 32107 | { mode: "oneOf" }, |
| 24907 | ).annotate({ identifier: "V2ThreadRollbackResponse__UserInput" }); | 32108 | ).annotate({ identifier: "V2ThreadRevertResponse__UserInput" }); |
| | 32109 | |
| | 32110 | export type V2ThreadRevertResponse__FunctionCallOutputBody = |
| | 32111 | | string |
| | 32112 | | ReadonlyArray<V2ThreadRevertResponse__FunctionCallOutputContentItem>; |
| | 32113 | export const V2ThreadRevertResponse__FunctionCallOutputBody = Schema.Union([ |
| | 32114 | Schema.String, |
| | 32115 | Schema.Array(V2ThreadRevertResponse__FunctionCallOutputContentItem), |
| | 32116 | ]).annotate({ identifier: "V2ThreadRevertResponse__FunctionCallOutputBody" }); |
| 24908 | | 32117 | |
| 24909 | export type V2ThreadSettingsUpdatedNotification__CollaborationMode = { | 32118 | export type V2ThreadSettingsUpdatedNotification__CollaborationMode = { |
| 24910 | readonly mode: V2ThreadSettingsUpdatedNotification__ModeKind; | 32119 | readonly mode: V2ThreadSettingsUpdatedNotification__ModeKind; |
| ... | @@ -24941,6 +32150,7 @@ export type V2ThreadStartedNotification__TurnError = { | ... | @@ -24941,6 +32150,7 @@ export type V2ThreadStartedNotification__TurnError = { |
| 24941 | readonly additionalDetails?: string | null; | 32150 | readonly additionalDetails?: string | null; |
| 24942 | readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null; | 32151 | readonly codexErrorInfo?: V2ThreadStartedNotification__CodexErrorInfo | null; |
| 24943 | readonly message: string; | 32152 | readonly message: string; |
| | 32153 | readonly misalignment?: V2ThreadStartedNotification__MisalignmentErrorDetails | null; |
| 24944 | }; | 32154 | }; |
| 24945 | export const V2ThreadStartedNotification__TurnError = Schema.Struct({ | 32155 | export const V2ThreadStartedNotification__TurnError = Schema.Struct({ |
| 24946 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32156 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -24948,6 +32158,12 @@ export const V2ThreadStartedNotification__TurnError = Schema.Struct({ | ... | @@ -24948,6 +32158,12 @@ export const V2ThreadStartedNotification__TurnError = Schema.Struct({ |
| 24948 | Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]), | 32158 | Schema.Union([V2ThreadStartedNotification__CodexErrorInfo, Schema.Null]), |
| 24949 | ), | 32159 | ), |
| 24950 | message: Schema.String, | 32160 | message: Schema.String, |
| | 32161 | misalignment: Schema.optionalKey( |
| | 32162 | Schema.Union([V2ThreadStartedNotification__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32163 | description: |
| | 32164 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32165 | }), |
| | 32166 | ), |
| 24951 | }).annotate({ identifier: "V2ThreadStartedNotification__TurnError" }); | 32167 | }).annotate({ identifier: "V2ThreadStartedNotification__TurnError" }); |
| 24952 | | 32168 | |
| 24953 | export type V2ThreadStartedNotification__UserInput = | 32169 | export type V2ThreadStartedNotification__UserInput = |
| ... | @@ -24961,6 +32177,11 @@ export type V2ThreadStartedNotification__UserInput = | ... | @@ -24961,6 +32177,11 @@ export type V2ThreadStartedNotification__UserInput = |
| 24961 | readonly type: "image"; | 32177 | readonly type: "image"; |
| 24962 | readonly url: string; | 32178 | readonly url: string; |
| 24963 | } | 32179 | } |
| | 32180 | | { |
| | 32181 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; |
| | 32182 | readonly type: "image"; |
| | 32183 | readonly fileId: string; |
| | 32184 | } |
| 24964 | | { | 32185 | | { |
| 24965 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; | 32186 | readonly detail?: V2ThreadStartedNotification__ImageDetail | null; |
| 24966 | readonly path: string; | 32187 | readonly path: string; |
| ... | @@ -24982,13 +32203,22 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union( | ... | @@ -24982,13 +32203,22 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union( |
| 24982 | ), | 32203 | ), |
| 24983 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 32204 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 24984 | }).annotate({ title: "TextUserInput" }), | 32205 | }).annotate({ title: "TextUserInput" }), |
| 24985 | Schema.Struct({ | 32206 | Schema.Union([ |
| 24986 | detail: Schema.optionalKey( | 32207 | Schema.Struct({ |
| 24987 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), | 32208 | detail: Schema.optionalKey( |
| 24988 | ), | 32209 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), |
| 24989 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 32210 | ), |
| 24990 | url: Schema.String, | 32211 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 24991 | }).annotate({ title: "ImageUserInput" }), | 32212 | url: Schema.String, |
| | 32213 | }).annotate({ title: "UrlUserInput" }), |
| | 32214 | Schema.Struct({ |
| | 32215 | detail: Schema.optionalKey( |
| | 32216 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), |
| | 32217 | ), |
| | 32218 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32219 | fileId: Schema.String, |
| | 32220 | }).annotate({ title: "FileIdUserInput" }), |
| | 32221 | ]).annotate({ title: "ImageUserInput" }), |
| 24992 | Schema.Struct({ | 32222 | Schema.Struct({ |
| 24993 | detail: Schema.optionalKey( | 32223 | detail: Schema.optionalKey( |
| 24994 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), | 32224 | Schema.Union([V2ThreadStartedNotification__ImageDetail, Schema.Null]), |
| ... | @@ -25018,6 +32248,14 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union( | ... | @@ -25018,6 +32248,14 @@ export const V2ThreadStartedNotification__UserInput = Schema.Union( |
| 25018 | { mode: "oneOf" }, | 32248 | { mode: "oneOf" }, |
| 25019 | ).annotate({ identifier: "V2ThreadStartedNotification__UserInput" }); | 32249 | ).annotate({ identifier: "V2ThreadStartedNotification__UserInput" }); |
| 25020 | | 32250 | |
| | 32251 | export type V2ThreadStartedNotification__FunctionCallOutputBody = |
| | 32252 | | string |
| | 32253 | | ReadonlyArray<V2ThreadStartedNotification__FunctionCallOutputContentItem>; |
| | 32254 | export const V2ThreadStartedNotification__FunctionCallOutputBody = Schema.Union([ |
| | 32255 | Schema.String, |
| | 32256 | Schema.Array(V2ThreadStartedNotification__FunctionCallOutputContentItem), |
| | 32257 | ]).annotate({ identifier: "V2ThreadStartedNotification__FunctionCallOutputBody" }); |
| | 32258 | |
| 25021 | export type V2ThreadStartResponse__SessionSource = | 32259 | export type V2ThreadStartResponse__SessionSource = |
| 25022 | | "cli" | 32260 | | "cli" |
| 25023 | | "vscode" | 32261 | | "vscode" |
| ... | @@ -25041,6 +32279,7 @@ export type V2ThreadStartResponse__TurnError = { | ... | @@ -25041,6 +32279,7 @@ export type V2ThreadStartResponse__TurnError = { |
| 25041 | readonly additionalDetails?: string | null; | 32279 | readonly additionalDetails?: string | null; |
| 25042 | readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null; | 32280 | readonly codexErrorInfo?: V2ThreadStartResponse__CodexErrorInfo | null; |
| 25043 | readonly message: string; | 32281 | readonly message: string; |
| | 32282 | readonly misalignment?: V2ThreadStartResponse__MisalignmentErrorDetails | null; |
| 25044 | }; | 32283 | }; |
| 25045 | export const V2ThreadStartResponse__TurnError = Schema.Struct({ | 32284 | export const V2ThreadStartResponse__TurnError = Schema.Struct({ |
| 25046 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32285 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -25048,6 +32287,12 @@ export const V2ThreadStartResponse__TurnError = Schema.Struct({ | ... | @@ -25048,6 +32287,12 @@ export const V2ThreadStartResponse__TurnError = Schema.Struct({ |
| 25048 | Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]), | 32287 | Schema.Union([V2ThreadStartResponse__CodexErrorInfo, Schema.Null]), |
| 25049 | ), | 32288 | ), |
| 25050 | message: Schema.String, | 32289 | message: Schema.String, |
| | 32290 | misalignment: Schema.optionalKey( |
| | 32291 | Schema.Union([V2ThreadStartResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32292 | description: |
| | 32293 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32294 | }), |
| | 32295 | ), |
| 25051 | }).annotate({ identifier: "V2ThreadStartResponse__TurnError" }); | 32296 | }).annotate({ identifier: "V2ThreadStartResponse__TurnError" }); |
| 25052 | | 32297 | |
| 25053 | export type V2ThreadStartResponse__UserInput = | 32298 | export type V2ThreadStartResponse__UserInput = |
| ... | @@ -25061,6 +32306,11 @@ export type V2ThreadStartResponse__UserInput = | ... | @@ -25061,6 +32306,11 @@ export type V2ThreadStartResponse__UserInput = |
| 25061 | readonly type: "image"; | 32306 | readonly type: "image"; |
| 25062 | readonly url: string; | 32307 | readonly url: string; |
| 25063 | } | 32308 | } |
| | 32309 | | { |
| | 32310 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; |
| | 32311 | readonly type: "image"; |
| | 32312 | readonly fileId: string; |
| | 32313 | } |
| 25064 | | { | 32314 | | { |
| 25065 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; | 32315 | readonly detail?: V2ThreadStartResponse__ImageDetail | null; |
| 25066 | readonly path: string; | 32316 | readonly path: string; |
| ... | @@ -25082,13 +32332,130 @@ export const V2ThreadStartResponse__UserInput = Schema.Union( | ... | @@ -25082,13 +32332,130 @@ export const V2ThreadStartResponse__UserInput = Schema.Union( |
| 25082 | ), | 32332 | ), |
| 25083 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 32333 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 25084 | }).annotate({ title: "TextUserInput" }), | 32334 | }).annotate({ title: "TextUserInput" }), |
| | 32335 | Schema.Union([ |
| | 32336 | Schema.Struct({ |
| | 32337 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), |
| | 32338 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32339 | url: Schema.String, |
| | 32340 | }).annotate({ title: "UrlUserInput" }), |
| | 32341 | Schema.Struct({ |
| | 32342 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), |
| | 32343 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32344 | fileId: Schema.String, |
| | 32345 | }).annotate({ title: "FileIdUserInput" }), |
| | 32346 | ]).annotate({ title: "ImageUserInput" }), |
| 25085 | Schema.Struct({ | 32347 | Schema.Struct({ |
| 25086 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), | 32348 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), |
| 25087 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 32349 | path: Schema.String, |
| | 32350 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 32351 | }).annotate({ title: "LocalImageUserInput" }), |
| | 32352 | Schema.Struct({ |
| | 32353 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 25088 | url: Schema.String, | 32354 | url: Schema.String, |
| 25089 | }).annotate({ title: "ImageUserInput" }), | 32355 | }).annotate({ title: "AudioUserInput" }), |
| 25090 | Schema.Struct({ | 32356 | Schema.Struct({ |
| 25091 | detail: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__ImageDetail, Schema.Null])), | 32357 | path: Schema.String, |
| | 32358 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 32359 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 32360 | Schema.Struct({ |
| | 32361 | name: Schema.String, |
| | 32362 | path: Schema.String, |
| | 32363 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 32364 | }).annotate({ title: "SkillUserInput" }), |
| | 32365 | Schema.Struct({ |
| | 32366 | name: Schema.String, |
| | 32367 | path: Schema.String, |
| | 32368 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 32369 | }).annotate({ title: "MentionUserInput" }), |
| | 32370 | ], |
| | 32371 | { mode: "oneOf" }, |
| | 32372 | ).annotate({ identifier: "V2ThreadStartResponse__UserInput" }); |
| | 32373 | |
| | 32374 | export type V2ThreadStartResponse__FunctionCallOutputBody = |
| | 32375 | | string |
| | 32376 | | ReadonlyArray<V2ThreadStartResponse__FunctionCallOutputContentItem>; |
| | 32377 | export const V2ThreadStartResponse__FunctionCallOutputBody = Schema.Union([ |
| | 32378 | Schema.String, |
| | 32379 | Schema.Array(V2ThreadStartResponse__FunctionCallOutputContentItem), |
| | 32380 | ]).annotate({ identifier: "V2ThreadStartResponse__FunctionCallOutputBody" }); |
| | 32381 | |
| | 32382 | export type V2ThreadTurnsListResponse__TurnError = { |
| | 32383 | readonly additionalDetails?: string | null; |
| | 32384 | readonly codexErrorInfo?: V2ThreadTurnsListResponse__CodexErrorInfo | null; |
| | 32385 | readonly message: string; |
| | 32386 | readonly misalignment?: V2ThreadTurnsListResponse__MisalignmentErrorDetails | null; |
| | 32387 | }; |
| | 32388 | export const V2ThreadTurnsListResponse__TurnError = Schema.Struct({ |
| | 32389 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32390 | codexErrorInfo: Schema.optionalKey( |
| | 32391 | Schema.Union([V2ThreadTurnsListResponse__CodexErrorInfo, Schema.Null]), |
| | 32392 | ), |
| | 32393 | message: Schema.String, |
| | 32394 | misalignment: Schema.optionalKey( |
| | 32395 | Schema.Union([V2ThreadTurnsListResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32396 | description: |
| | 32397 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32398 | }), |
| | 32399 | ), |
| | 32400 | }).annotate({ identifier: "V2ThreadTurnsListResponse__TurnError" }); |
| | 32401 | |
| | 32402 | export type V2ThreadTurnsListResponse__UserInput = |
| | 32403 | | { |
| | 32404 | readonly text: string; |
| | 32405 | readonly text_elements?: ReadonlyArray<V2ThreadTurnsListResponse__TextElement>; |
| | 32406 | readonly type: "text"; |
| | 32407 | } |
| | 32408 | | { |
| | 32409 | readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null; |
| | 32410 | readonly type: "image"; |
| | 32411 | readonly url: string; |
| | 32412 | } |
| | 32413 | | { |
| | 32414 | readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null; |
| | 32415 | readonly type: "image"; |
| | 32416 | readonly fileId: string; |
| | 32417 | } |
| | 32418 | | { |
| | 32419 | readonly detail?: V2ThreadTurnsListResponse__ImageDetail | null; |
| | 32420 | readonly path: string; |
| | 32421 | readonly type: "localImage"; |
| | 32422 | } |
| | 32423 | | { readonly type: "audio"; readonly url: string } |
| | 32424 | | { readonly path: string; readonly type: "localAudio" } |
| | 32425 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 32426 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 32427 | export const V2ThreadTurnsListResponse__UserInput = Schema.Union( |
| | 32428 | [ |
| | 32429 | Schema.Struct({ |
| | 32430 | text: Schema.String, |
| | 32431 | text_elements: Schema.optionalKey( |
| | 32432 | Schema.Array(V2ThreadTurnsListResponse__TextElement).annotate({ |
| | 32433 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 32434 | default: [], |
| | 32435 | }), |
| | 32436 | ), |
| | 32437 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 32438 | }).annotate({ title: "TextUserInput" }), |
| | 32439 | Schema.Union([ |
| | 32440 | Schema.Struct({ |
| | 32441 | detail: Schema.optionalKey( |
| | 32442 | Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]), |
| | 32443 | ), |
| | 32444 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32445 | url: Schema.String, |
| | 32446 | }).annotate({ title: "UrlUserInput" }), |
| | 32447 | Schema.Struct({ |
| | 32448 | detail: Schema.optionalKey( |
| | 32449 | Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]), |
| | 32450 | ), |
| | 32451 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32452 | fileId: Schema.String, |
| | 32453 | }).annotate({ title: "FileIdUserInput" }), |
| | 32454 | ]).annotate({ title: "ImageUserInput" }), |
| | 32455 | Schema.Struct({ |
| | 32456 | detail: Schema.optionalKey( |
| | 32457 | Schema.Union([V2ThreadTurnsListResponse__ImageDetail, Schema.Null]), |
| | 32458 | ), |
| 25092 | path: Schema.String, | 32459 | path: Schema.String, |
| 25093 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | 32460 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| 25094 | }).annotate({ title: "LocalImageUserInput" }), | 32461 | }).annotate({ title: "LocalImageUserInput" }), |
| ... | @@ -25112,7 +32479,15 @@ export const V2ThreadStartResponse__UserInput = Schema.Union( | ... | @@ -25112,7 +32479,15 @@ export const V2ThreadStartResponse__UserInput = Schema.Union( |
| 25112 | }).annotate({ title: "MentionUserInput" }), | 32479 | }).annotate({ title: "MentionUserInput" }), |
| 25113 | ], | 32480 | ], |
| 25114 | { mode: "oneOf" }, | 32481 | { mode: "oneOf" }, |
| 25115 | ).annotate({ identifier: "V2ThreadStartResponse__UserInput" }); | 32482 | ).annotate({ identifier: "V2ThreadTurnsListResponse__UserInput" }); |
| | 32483 | |
| | 32484 | export type V2ThreadTurnsListResponse__FunctionCallOutputBody = |
| | 32485 | | string |
| | 32486 | | ReadonlyArray<V2ThreadTurnsListResponse__FunctionCallOutputContentItem>; |
| | 32487 | export const V2ThreadTurnsListResponse__FunctionCallOutputBody = Schema.Union([ |
| | 32488 | Schema.String, |
| | 32489 | Schema.Array(V2ThreadTurnsListResponse__FunctionCallOutputContentItem), |
| | 32490 | ]).annotate({ identifier: "V2ThreadTurnsListResponse__FunctionCallOutputBody" }); |
| 25116 | | 32491 | |
| 25117 | export type V2ThreadUnarchiveResponse__SessionSource = | 32492 | export type V2ThreadUnarchiveResponse__SessionSource = |
| 25118 | | "cli" | 32493 | | "cli" |
| ... | @@ -25137,6 +32512,7 @@ export type V2ThreadUnarchiveResponse__TurnError = { | ... | @@ -25137,6 +32512,7 @@ export type V2ThreadUnarchiveResponse__TurnError = { |
| 25137 | readonly additionalDetails?: string | null; | 32512 | readonly additionalDetails?: string | null; |
| 25138 | readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null; | 32513 | readonly codexErrorInfo?: V2ThreadUnarchiveResponse__CodexErrorInfo | null; |
| 25139 | readonly message: string; | 32514 | readonly message: string; |
| | 32515 | readonly misalignment?: V2ThreadUnarchiveResponse__MisalignmentErrorDetails | null; |
| 25140 | }; | 32516 | }; |
| 25141 | export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ | 32517 | export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ |
| 25142 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32518 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -25144,6 +32520,12 @@ export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ | ... | @@ -25144,6 +32520,12 @@ export const V2ThreadUnarchiveResponse__TurnError = Schema.Struct({ |
| 25144 | Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]), | 32520 | Schema.Union([V2ThreadUnarchiveResponse__CodexErrorInfo, Schema.Null]), |
| 25145 | ), | 32521 | ), |
| 25146 | message: Schema.String, | 32522 | message: Schema.String, |
| | 32523 | misalignment: Schema.optionalKey( |
| | 32524 | Schema.Union([V2ThreadUnarchiveResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32525 | description: |
| | 32526 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32527 | }), |
| | 32528 | ), |
| 25147 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnError" }); | 32529 | }).annotate({ identifier: "V2ThreadUnarchiveResponse__TurnError" }); |
| 25148 | | 32530 | |
| 25149 | export type V2ThreadUnarchiveResponse__UserInput = | 32531 | export type V2ThreadUnarchiveResponse__UserInput = |
| ... | @@ -25157,6 +32539,11 @@ export type V2ThreadUnarchiveResponse__UserInput = | ... | @@ -25157,6 +32539,11 @@ export type V2ThreadUnarchiveResponse__UserInput = |
| 25157 | readonly type: "image"; | 32539 | readonly type: "image"; |
| 25158 | readonly url: string; | 32540 | readonly url: string; |
| 25159 | } | 32541 | } |
| | 32542 | | { |
| | 32543 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; |
| | 32544 | readonly type: "image"; |
| | 32545 | readonly fileId: string; |
| | 32546 | } |
| 25160 | | { | 32547 | | { |
| 25161 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; | 32548 | readonly detail?: V2ThreadUnarchiveResponse__ImageDetail | null; |
| 25162 | readonly path: string; | 32549 | readonly path: string; |
| ... | @@ -25178,97 +32565,135 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( | ... | @@ -25178,97 +32565,135 @@ export const V2ThreadUnarchiveResponse__UserInput = Schema.Union( |
| 25178 | ), | 32565 | ), |
| 25179 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 32566 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 25180 | }).annotate({ title: "TextUserInput" }), | 32567 | }).annotate({ title: "TextUserInput" }), |
| | 32568 | Schema.Union([ |
| | 32569 | Schema.Struct({ |
| | 32570 | detail: Schema.optionalKey( |
| | 32571 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), |
| | 32572 | ), |
| | 32573 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32574 | url: Schema.String, |
| | 32575 | }).annotate({ title: "UrlUserInput" }), |
| | 32576 | Schema.Struct({ |
| | 32577 | detail: Schema.optionalKey( |
| | 32578 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), |
| | 32579 | ), |
| | 32580 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32581 | fileId: Schema.String, |
| | 32582 | }).annotate({ title: "FileIdUserInput" }), |
| | 32583 | ]).annotate({ title: "ImageUserInput" }), |
| 25181 | Schema.Struct({ | 32584 | Schema.Struct({ |
| 25182 | detail: Schema.optionalKey( | 32585 | detail: Schema.optionalKey( |
| 25183 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), | 32586 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), |
| 25184 | ), | 32587 | ), |
| 25185 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 32588 | path: Schema.String, |
| | 32589 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| | 32590 | }).annotate({ title: "LocalImageUserInput" }), |
| | 32591 | Schema.Struct({ |
| | 32592 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), |
| 25186 | url: Schema.String, | 32593 | url: Schema.String, |
| 25187 | }).annotate({ title: "ImageUserInput" }), | 32594 | }).annotate({ title: "AudioUserInput" }), |
| | 32595 | Schema.Struct({ |
| | 32596 | path: Schema.String, |
| | 32597 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), |
| | 32598 | }).annotate({ title: "LocalAudioUserInput" }), |
| | 32599 | Schema.Struct({ |
| | 32600 | name: Schema.String, |
| | 32601 | path: Schema.String, |
| | 32602 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), |
| | 32603 | }).annotate({ title: "SkillUserInput" }), |
| | 32604 | Schema.Struct({ |
| | 32605 | name: Schema.String, |
| | 32606 | path: Schema.String, |
| | 32607 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), |
| | 32608 | }).annotate({ title: "MentionUserInput" }), |
| | 32609 | ], |
| | 32610 | { mode: "oneOf" }, |
| | 32611 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__UserInput" }); |
| | 32612 | |
| | 32613 | export type V2ThreadUnarchiveResponse__FunctionCallOutputBody = |
| | 32614 | | string |
| | 32615 | | ReadonlyArray<V2ThreadUnarchiveResponse__FunctionCallOutputContentItem>; |
| | 32616 | export const V2ThreadUnarchiveResponse__FunctionCallOutputBody = Schema.Union([ |
| | 32617 | Schema.String, |
| | 32618 | Schema.Array(V2ThreadUnarchiveResponse__FunctionCallOutputContentItem), |
| | 32619 | ]).annotate({ identifier: "V2ThreadUnarchiveResponse__FunctionCallOutputBody" }); |
| | 32620 | |
| | 32621 | export type V2TurnCompletedNotification__TurnError = { |
| | 32622 | readonly additionalDetails?: string | null; |
| | 32623 | readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null; |
| | 32624 | readonly message: string; |
| | 32625 | readonly misalignment?: V2TurnCompletedNotification__MisalignmentErrorDetails | null; |
| | 32626 | }; |
| | 32627 | export const V2TurnCompletedNotification__TurnError = Schema.Struct({ |
| | 32628 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 32629 | codexErrorInfo: Schema.optionalKey( |
| | 32630 | Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]), |
| | 32631 | ), |
| | 32632 | message: Schema.String, |
| | 32633 | misalignment: Schema.optionalKey( |
| | 32634 | Schema.Union([V2TurnCompletedNotification__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32635 | description: |
| | 32636 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32637 | }), |
| | 32638 | ), |
| | 32639 | }).annotate({ identifier: "V2TurnCompletedNotification__TurnError" }); |
| | 32640 | |
| | 32641 | export type V2TurnCompletedNotification__UserInput = |
| | 32642 | | { |
| | 32643 | readonly text: string; |
| | 32644 | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; |
| | 32645 | readonly type: "text"; |
| | 32646 | } |
| | 32647 | | { |
| | 32648 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; |
| | 32649 | readonly type: "image"; |
| | 32650 | readonly url: string; |
| | 32651 | } |
| | 32652 | | { |
| | 32653 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; |
| | 32654 | readonly type: "image"; |
| | 32655 | readonly fileId: string; |
| | 32656 | } |
| | 32657 | | { |
| | 32658 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; |
| | 32659 | readonly path: string; |
| | 32660 | readonly type: "localImage"; |
| | 32661 | } |
| | 32662 | | { readonly type: "audio"; readonly url: string } |
| | 32663 | | { readonly path: string; readonly type: "localAudio" } |
| | 32664 | | { readonly name: string; readonly path: string; readonly type: "skill" } |
| | 32665 | | { readonly name: string; readonly path: string; readonly type: "mention" }; |
| | 32666 | export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| | 32667 | [ |
| | 32668 | Schema.Struct({ |
| | 32669 | text: Schema.String, |
| | 32670 | text_elements: Schema.optionalKey( |
| | 32671 | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ |
| | 32672 | description: "UI-defined spans within `text` used to render or persist special elements.", |
| | 32673 | default: [], |
| | 32674 | }), |
| | 32675 | ), |
| | 32676 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| | 32677 | }).annotate({ title: "TextUserInput" }), |
| | 32678 | Schema.Union([ |
| | 32679 | Schema.Struct({ |
| | 32680 | detail: Schema.optionalKey( |
| | 32681 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), |
| | 32682 | ), |
| | 32683 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32684 | url: Schema.String, |
| | 32685 | }).annotate({ title: "UrlUserInput" }), |
| | 32686 | Schema.Struct({ |
| | 32687 | detail: Schema.optionalKey( |
| | 32688 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), |
| | 32689 | ), |
| | 32690 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32691 | fileId: Schema.String, |
| | 32692 | }).annotate({ title: "FileIdUserInput" }), |
| | 32693 | ]).annotate({ title: "ImageUserInput" }), |
| 25188 | Schema.Struct({ | 32694 | Schema.Struct({ |
| 25189 | detail: Schema.optionalKey( | 32695 | detail: Schema.optionalKey( |
| 25190 | Schema.Union([V2ThreadUnarchiveResponse__ImageDetail, Schema.Null]), | 32696 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), |
| 25191 | ), | | |
| 25192 | path: Schema.String, | | |
| 25193 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | | |
| 25194 | }).annotate({ title: "LocalImageUserInput" }), | | |
| 25195 | Schema.Struct({ | | |
| 25196 | type: Schema.Literal("audio").annotate({ title: "AudioUserInputType" }), | | |
| 25197 | url: Schema.String, | | |
| 25198 | }).annotate({ title: "AudioUserInput" }), | | |
| 25199 | Schema.Struct({ | | |
| 25200 | path: Schema.String, | | |
| 25201 | type: Schema.Literal("localAudio").annotate({ title: "LocalAudioUserInputType" }), | | |
| 25202 | }).annotate({ title: "LocalAudioUserInput" }), | | |
| 25203 | Schema.Struct({ | | |
| 25204 | name: Schema.String, | | |
| 25205 | path: Schema.String, | | |
| 25206 | type: Schema.Literal("skill").annotate({ title: "SkillUserInputType" }), | | |
| 25207 | }).annotate({ title: "SkillUserInput" }), | | |
| 25208 | Schema.Struct({ | | |
| 25209 | name: Schema.String, | | |
| 25210 | path: Schema.String, | | |
| 25211 | type: Schema.Literal("mention").annotate({ title: "MentionUserInputType" }), | | |
| 25212 | }).annotate({ title: "MentionUserInput" }), | | |
| 25213 | ], | | |
| 25214 | { mode: "oneOf" }, | | |
| 25215 | ).annotate({ identifier: "V2ThreadUnarchiveResponse__UserInput" }); | | |
| 25216 | | | |
| 25217 | export type V2TurnCompletedNotification__TurnError = { | | |
| 25218 | readonly additionalDetails?: string | null; | | |
| 25219 | readonly codexErrorInfo?: V2TurnCompletedNotification__CodexErrorInfo | null; | | |
| 25220 | readonly message: string; | | |
| 25221 | }; | | |
| 25222 | export const V2TurnCompletedNotification__TurnError = Schema.Struct({ | | |
| 25223 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 25224 | codexErrorInfo: Schema.optionalKey( | | |
| 25225 | Schema.Union([V2TurnCompletedNotification__CodexErrorInfo, Schema.Null]), | | |
| 25226 | ), | | |
| 25227 | message: Schema.String, | | |
| 25228 | }).annotate({ identifier: "V2TurnCompletedNotification__TurnError" }); | | |
| 25229 | | | |
| 25230 | export type V2TurnCompletedNotification__UserInput = | | |
| 25231 | | { | | |
| 25232 | readonly text: string; | | |
| 25233 | readonly text_elements?: ReadonlyArray<V2TurnCompletedNotification__TextElement>; | | |
| 25234 | readonly type: "text"; | | |
| 25235 | } | | |
| 25236 | | { | | |
| 25237 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; | | |
| 25238 | readonly type: "image"; | | |
| 25239 | readonly url: string; | | |
| 25240 | } | | |
| 25241 | | { | | |
| 25242 | readonly detail?: V2TurnCompletedNotification__ImageDetail | null; | | |
| 25243 | readonly path: string; | | |
| 25244 | readonly type: "localImage"; | | |
| 25245 | } | | |
| 25246 | | { readonly type: "audio"; readonly url: string } | | |
| 25247 | | { readonly path: string; readonly type: "localAudio" } | | |
| 25248 | | { readonly name: string; readonly path: string; readonly type: "skill" } | | |
| 25249 | | { readonly name: string; readonly path: string; readonly type: "mention" }; | | |
| 25250 | export const V2TurnCompletedNotification__UserInput = Schema.Union( | | |
| 25251 | [ | | |
| 25252 | Schema.Struct({ | | |
| 25253 | text: Schema.String, | | |
| 25254 | text_elements: Schema.optionalKey( | | |
| 25255 | Schema.Array(V2TurnCompletedNotification__TextElement).annotate({ | | |
| 25256 | description: "UI-defined spans within `text` used to render or persist special elements.", | | |
| 25257 | default: [], | | |
| 25258 | }), | | |
| 25259 | ), | | |
| 25260 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | | |
| 25261 | }).annotate({ title: "TextUserInput" }), | | |
| 25262 | Schema.Struct({ | | |
| 25263 | detail: Schema.optionalKey( | | |
| 25264 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), | | |
| 25265 | ), | | |
| 25266 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | | |
| 25267 | url: Schema.String, | | |
| 25268 | }).annotate({ title: "ImageUserInput" }), | | |
| 25269 | Schema.Struct({ | | |
| 25270 | detail: Schema.optionalKey( | | |
| 25271 | Schema.Union([V2TurnCompletedNotification__ImageDetail, Schema.Null]), | | |
| 25272 | ), | 32697 | ), |
| 25273 | path: Schema.String, | 32698 | path: Schema.String, |
| 25274 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), | 32699 | type: Schema.Literal("localImage").annotate({ title: "LocalImageUserInputType" }), |
| ... | @@ -25295,10 +32720,19 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union( | ... | @@ -25295,10 +32720,19 @@ export const V2TurnCompletedNotification__UserInput = Schema.Union( |
| 25295 | { mode: "oneOf" }, | 32720 | { mode: "oneOf" }, |
| 25296 | ).annotate({ identifier: "V2TurnCompletedNotification__UserInput" }); | 32721 | ).annotate({ identifier: "V2TurnCompletedNotification__UserInput" }); |
| 25297 | | 32722 | |
| | 32723 | export type V2TurnCompletedNotification__FunctionCallOutputBody = |
| | 32724 | | string |
| | 32725 | | ReadonlyArray<V2TurnCompletedNotification__FunctionCallOutputContentItem>; |
| | 32726 | export const V2TurnCompletedNotification__FunctionCallOutputBody = Schema.Union([ |
| | 32727 | Schema.String, |
| | 32728 | Schema.Array(V2TurnCompletedNotification__FunctionCallOutputContentItem), |
| | 32729 | ]).annotate({ identifier: "V2TurnCompletedNotification__FunctionCallOutputBody" }); |
| | 32730 | |
| 25298 | export type V2TurnStartedNotification__TurnError = { | 32731 | export type V2TurnStartedNotification__TurnError = { |
| 25299 | readonly additionalDetails?: string | null; | 32732 | readonly additionalDetails?: string | null; |
| 25300 | readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null; | 32733 | readonly codexErrorInfo?: V2TurnStartedNotification__CodexErrorInfo | null; |
| 25301 | readonly message: string; | 32734 | readonly message: string; |
| | 32735 | readonly misalignment?: V2TurnStartedNotification__MisalignmentErrorDetails | null; |
| 25302 | }; | 32736 | }; |
| 25303 | export const V2TurnStartedNotification__TurnError = Schema.Struct({ | 32737 | export const V2TurnStartedNotification__TurnError = Schema.Struct({ |
| 25304 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32738 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -25306,6 +32740,12 @@ export const V2TurnStartedNotification__TurnError = Schema.Struct({ | ... | @@ -25306,6 +32740,12 @@ export const V2TurnStartedNotification__TurnError = Schema.Struct({ |
| 25306 | Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]), | 32740 | Schema.Union([V2TurnStartedNotification__CodexErrorInfo, Schema.Null]), |
| 25307 | ), | 32741 | ), |
| 25308 | message: Schema.String, | 32742 | message: Schema.String, |
| | 32743 | misalignment: Schema.optionalKey( |
| | 32744 | Schema.Union([V2TurnStartedNotification__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32745 | description: |
| | 32746 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32747 | }), |
| | 32748 | ), |
| 25309 | }).annotate({ identifier: "V2TurnStartedNotification__TurnError" }); | 32749 | }).annotate({ identifier: "V2TurnStartedNotification__TurnError" }); |
| 25310 | | 32750 | |
| 25311 | export type V2TurnStartedNotification__UserInput = | 32751 | export type V2TurnStartedNotification__UserInput = |
| ... | @@ -25319,6 +32759,11 @@ export type V2TurnStartedNotification__UserInput = | ... | @@ -25319,6 +32759,11 @@ export type V2TurnStartedNotification__UserInput = |
| 25319 | readonly type: "image"; | 32759 | readonly type: "image"; |
| 25320 | readonly url: string; | 32760 | readonly url: string; |
| 25321 | } | 32761 | } |
| | 32762 | | { |
| | 32763 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; |
| | 32764 | readonly type: "image"; |
| | 32765 | readonly fileId: string; |
| | 32766 | } |
| 25322 | | { | 32767 | | { |
| 25323 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; | 32768 | readonly detail?: V2TurnStartedNotification__ImageDetail | null; |
| 25324 | readonly path: string; | 32769 | readonly path: string; |
| ... | @@ -25340,13 +32785,22 @@ export const V2TurnStartedNotification__UserInput = Schema.Union( | ... | @@ -25340,13 +32785,22 @@ export const V2TurnStartedNotification__UserInput = Schema.Union( |
| 25340 | ), | 32785 | ), |
| 25341 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 32786 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 25342 | }).annotate({ title: "TextUserInput" }), | 32787 | }).annotate({ title: "TextUserInput" }), |
| 25343 | Schema.Struct({ | 32788 | Schema.Union([ |
| 25344 | detail: Schema.optionalKey( | 32789 | Schema.Struct({ |
| 25345 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), | 32790 | detail: Schema.optionalKey( |
| 25346 | ), | 32791 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), |
| 25347 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 32792 | ), |
| 25348 | url: Schema.String, | 32793 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 25349 | }).annotate({ title: "ImageUserInput" }), | 32794 | url: Schema.String, |
| | 32795 | }).annotate({ title: "UrlUserInput" }), |
| | 32796 | Schema.Struct({ |
| | 32797 | detail: Schema.optionalKey( |
| | 32798 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), |
| | 32799 | ), |
| | 32800 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32801 | fileId: Schema.String, |
| | 32802 | }).annotate({ title: "FileIdUserInput" }), |
| | 32803 | ]).annotate({ title: "ImageUserInput" }), |
| 25350 | Schema.Struct({ | 32804 | Schema.Struct({ |
| 25351 | detail: Schema.optionalKey( | 32805 | detail: Schema.optionalKey( |
| 25352 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), | 32806 | Schema.Union([V2TurnStartedNotification__ImageDetail, Schema.Null]), |
| ... | @@ -25376,6 +32830,14 @@ export const V2TurnStartedNotification__UserInput = Schema.Union( | ... | @@ -25376,6 +32830,14 @@ export const V2TurnStartedNotification__UserInput = Schema.Union( |
| 25376 | { mode: "oneOf" }, | 32830 | { mode: "oneOf" }, |
| 25377 | ).annotate({ identifier: "V2TurnStartedNotification__UserInput" }); | 32831 | ).annotate({ identifier: "V2TurnStartedNotification__UserInput" }); |
| 25378 | | 32832 | |
| | 32833 | export type V2TurnStartedNotification__FunctionCallOutputBody = |
| | 32834 | | string |
| | 32835 | | ReadonlyArray<V2TurnStartedNotification__FunctionCallOutputContentItem>; |
| | 32836 | export const V2TurnStartedNotification__FunctionCallOutputBody = Schema.Union([ |
| | 32837 | Schema.String, |
| | 32838 | Schema.Array(V2TurnStartedNotification__FunctionCallOutputContentItem), |
| | 32839 | ]).annotate({ identifier: "V2TurnStartedNotification__FunctionCallOutputBody" }); |
| | 32840 | |
| 25379 | export type V2TurnStartParams__UserInput = | 32841 | export type V2TurnStartParams__UserInput = |
| 25380 | | { | 32842 | | { |
| 25381 | readonly text: string; | 32843 | readonly text: string; |
| ... | @@ -25387,6 +32849,11 @@ export type V2TurnStartParams__UserInput = | ... | @@ -25387,6 +32849,11 @@ export type V2TurnStartParams__UserInput = |
| 25387 | readonly type: "image"; | 32849 | readonly type: "image"; |
| 25388 | readonly url: string; | 32850 | readonly url: string; |
| 25389 | } | 32851 | } |
| | 32852 | | { |
| | 32853 | readonly detail?: V2TurnStartParams__ImageDetail | null; |
| | 32854 | readonly type: "image"; |
| | 32855 | readonly fileId: string; |
| | 32856 | } |
| 25390 | | { | 32857 | | { |
| 25391 | readonly detail?: V2TurnStartParams__ImageDetail | null; | 32858 | readonly detail?: V2TurnStartParams__ImageDetail | null; |
| 25392 | readonly path: string; | 32859 | readonly path: string; |
| ... | @@ -25408,11 +32875,18 @@ export const V2TurnStartParams__UserInput = Schema.Union( | ... | @@ -25408,11 +32875,18 @@ export const V2TurnStartParams__UserInput = Schema.Union( |
| 25408 | ), | 32875 | ), |
| 25409 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 32876 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 25410 | }).annotate({ title: "TextUserInput" }), | 32877 | }).annotate({ title: "TextUserInput" }), |
| 25411 | Schema.Struct({ | 32878 | Schema.Union([ |
| 25412 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), | 32879 | Schema.Struct({ |
| 25413 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 32880 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), |
| 25414 | url: Schema.String, | 32881 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 25415 | }).annotate({ title: "ImageUserInput" }), | 32882 | url: Schema.String, |
| | 32883 | }).annotate({ title: "UrlUserInput" }), |
| | 32884 | Schema.Struct({ |
| | 32885 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), |
| | 32886 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32887 | fileId: Schema.String, |
| | 32888 | }).annotate({ title: "FileIdUserInput" }), |
| | 32889 | ]).annotate({ title: "ImageUserInput" }), |
| 25416 | Schema.Struct({ | 32890 | Schema.Struct({ |
| 25417 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), | 32891 | detail: Schema.optionalKey(Schema.Union([V2TurnStartParams__ImageDetail, Schema.Null])), |
| 25418 | path: Schema.String, | 32892 | path: Schema.String, |
| ... | @@ -25440,10 +32914,19 @@ export const V2TurnStartParams__UserInput = Schema.Union( | ... | @@ -25440,10 +32914,19 @@ export const V2TurnStartParams__UserInput = Schema.Union( |
| 25440 | { mode: "oneOf" }, | 32914 | { mode: "oneOf" }, |
| 25441 | ).annotate({ identifier: "V2TurnStartParams__UserInput" }); | 32915 | ).annotate({ identifier: "V2TurnStartParams__UserInput" }); |
| 25442 | | 32916 | |
| | 32917 | export type V2TurnStartParams__FunctionCallOutputBody = |
| | 32918 | | string |
| | 32919 | | ReadonlyArray<V2TurnStartParams__FunctionCallOutputContentItem>; |
| | 32920 | export const V2TurnStartParams__FunctionCallOutputBody = Schema.Union([ |
| | 32921 | Schema.String, |
| | 32922 | Schema.Array(V2TurnStartParams__FunctionCallOutputContentItem), |
| | 32923 | ]).annotate({ identifier: "V2TurnStartParams__FunctionCallOutputBody" }); |
| | 32924 | |
| 25443 | export type V2TurnStartResponse__TurnError = { | 32925 | export type V2TurnStartResponse__TurnError = { |
| 25444 | readonly additionalDetails?: string | null; | 32926 | readonly additionalDetails?: string | null; |
| 25445 | readonly codexErrorInfo?: V2TurnStartResponse__CodexErrorInfo | null; | 32927 | readonly codexErrorInfo?: V2TurnStartResponse__CodexErrorInfo | null; |
| 25446 | readonly message: string; | 32928 | readonly message: string; |
| | 32929 | readonly misalignment?: V2TurnStartResponse__MisalignmentErrorDetails | null; |
| 25447 | }; | 32930 | }; |
| 25448 | export const V2TurnStartResponse__TurnError = Schema.Struct({ | 32931 | export const V2TurnStartResponse__TurnError = Schema.Struct({ |
| 25449 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 32932 | additionalDetails: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -25451,6 +32934,12 @@ export const V2TurnStartResponse__TurnError = Schema.Struct({ | ... | @@ -25451,6 +32934,12 @@ export const V2TurnStartResponse__TurnError = Schema.Struct({ |
| 25451 | Schema.Union([V2TurnStartResponse__CodexErrorInfo, Schema.Null]), | 32934 | Schema.Union([V2TurnStartResponse__CodexErrorInfo, Schema.Null]), |
| 25452 | ), | 32935 | ), |
| 25453 | message: Schema.String, | 32936 | message: Schema.String, |
| | 32937 | misalignment: Schema.optionalKey( |
| | 32938 | Schema.Union([V2TurnStartResponse__MisalignmentErrorDetails, Schema.Null]).annotate({ |
| | 32939 | description: |
| | 32940 | "Optional public explanation and continuation instruction for a misalignment block.", |
| | 32941 | }), |
| | 32942 | ), |
| 25454 | }).annotate({ identifier: "V2TurnStartResponse__TurnError" }); | 32943 | }).annotate({ identifier: "V2TurnStartResponse__TurnError" }); |
| 25455 | | 32944 | |
| 25456 | export type V2TurnStartResponse__UserInput = | 32945 | export type V2TurnStartResponse__UserInput = |
| ... | @@ -25464,6 +32953,11 @@ export type V2TurnStartResponse__UserInput = | ... | @@ -25464,6 +32953,11 @@ export type V2TurnStartResponse__UserInput = |
| 25464 | readonly type: "image"; | 32953 | readonly type: "image"; |
| 25465 | readonly url: string; | 32954 | readonly url: string; |
| 25466 | } | 32955 | } |
| | 32956 | | { |
| | 32957 | readonly detail?: V2TurnStartResponse__ImageDetail | null; |
| | 32958 | readonly type: "image"; |
| | 32959 | readonly fileId: string; |
| | 32960 | } |
| 25467 | | { | 32961 | | { |
| 25468 | readonly detail?: V2TurnStartResponse__ImageDetail | null; | 32962 | readonly detail?: V2TurnStartResponse__ImageDetail | null; |
| 25469 | readonly path: string; | 32963 | readonly path: string; |
| ... | @@ -25485,11 +32979,18 @@ export const V2TurnStartResponse__UserInput = Schema.Union( | ... | @@ -25485,11 +32979,18 @@ export const V2TurnStartResponse__UserInput = Schema.Union( |
| 25485 | ), | 32979 | ), |
| 25486 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 32980 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 25487 | }).annotate({ title: "TextUserInput" }), | 32981 | }).annotate({ title: "TextUserInput" }), |
| 25488 | Schema.Struct({ | 32982 | Schema.Union([ |
| 25489 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), | 32983 | Schema.Struct({ |
| 25490 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 32984 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), |
| 25491 | url: Schema.String, | 32985 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 25492 | }).annotate({ title: "ImageUserInput" }), | 32986 | url: Schema.String, |
| | 32987 | }).annotate({ title: "UrlUserInput" }), |
| | 32988 | Schema.Struct({ |
| | 32989 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), |
| | 32990 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 32991 | fileId: Schema.String, |
| | 32992 | }).annotate({ title: "FileIdUserInput" }), |
| | 32993 | ]).annotate({ title: "ImageUserInput" }), |
| 25493 | Schema.Struct({ | 32994 | Schema.Struct({ |
| 25494 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), | 32995 | detail: Schema.optionalKey(Schema.Union([V2TurnStartResponse__ImageDetail, Schema.Null])), |
| 25495 | path: Schema.String, | 32996 | path: Schema.String, |
| ... | @@ -25517,6 +33018,14 @@ export const V2TurnStartResponse__UserInput = Schema.Union( | ... | @@ -25517,6 +33018,14 @@ export const V2TurnStartResponse__UserInput = Schema.Union( |
| 25517 | { mode: "oneOf" }, | 33018 | { mode: "oneOf" }, |
| 25518 | ).annotate({ identifier: "V2TurnStartResponse__UserInput" }); | 33019 | ).annotate({ identifier: "V2TurnStartResponse__UserInput" }); |
| 25519 | | 33020 | |
| | 33021 | export type V2TurnStartResponse__FunctionCallOutputBody = |
| | 33022 | | string |
| | 33023 | | ReadonlyArray<V2TurnStartResponse__FunctionCallOutputContentItem>; |
| | 33024 | export const V2TurnStartResponse__FunctionCallOutputBody = Schema.Union([ |
| | 33025 | Schema.String, |
| | 33026 | Schema.Array(V2TurnStartResponse__FunctionCallOutputContentItem), |
| | 33027 | ]).annotate({ identifier: "V2TurnStartResponse__FunctionCallOutputBody" }); |
| | 33028 | |
| 25520 | export type V2TurnSteerParams__UserInput = | 33029 | export type V2TurnSteerParams__UserInput = |
| 25521 | | { | 33030 | | { |
| 25522 | readonly text: string; | 33031 | readonly text: string; |
| ... | @@ -25528,6 +33037,11 @@ export type V2TurnSteerParams__UserInput = | ... | @@ -25528,6 +33037,11 @@ export type V2TurnSteerParams__UserInput = |
| 25528 | readonly type: "image"; | 33037 | readonly type: "image"; |
| 25529 | readonly url: string; | 33038 | readonly url: string; |
| 25530 | } | 33039 | } |
| | 33040 | | { |
| | 33041 | readonly detail?: V2TurnSteerParams__ImageDetail | null; |
| | 33042 | readonly type: "image"; |
| | 33043 | readonly fileId: string; |
| | 33044 | } |
| 25531 | | { | 33045 | | { |
| 25532 | readonly detail?: V2TurnSteerParams__ImageDetail | null; | 33046 | readonly detail?: V2TurnSteerParams__ImageDetail | null; |
| 25533 | readonly path: string; | 33047 | readonly path: string; |
| ... | @@ -25549,11 +33063,18 @@ export const V2TurnSteerParams__UserInput = Schema.Union( | ... | @@ -25549,11 +33063,18 @@ export const V2TurnSteerParams__UserInput = Schema.Union( |
| 25549 | ), | 33063 | ), |
| 25550 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), | 33064 | type: Schema.Literal("text").annotate({ title: "TextUserInputType" }), |
| 25551 | }).annotate({ title: "TextUserInput" }), | 33065 | }).annotate({ title: "TextUserInput" }), |
| 25552 | Schema.Struct({ | 33066 | Schema.Union([ |
| 25553 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), | 33067 | Schema.Struct({ |
| 25554 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), | 33068 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), |
| 25555 | url: Schema.String, | 33069 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| 25556 | }).annotate({ title: "ImageUserInput" }), | 33070 | url: Schema.String, |
| | 33071 | }).annotate({ title: "UrlUserInput" }), |
| | 33072 | Schema.Struct({ |
| | 33073 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), |
| | 33074 | type: Schema.Literal("image").annotate({ title: "ImageUserInputType" }), |
| | 33075 | fileId: Schema.String, |
| | 33076 | }).annotate({ title: "FileIdUserInput" }), |
| | 33077 | ]).annotate({ title: "ImageUserInput" }), |
| 25557 | Schema.Struct({ | 33078 | Schema.Struct({ |
| 25558 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), | 33079 | detail: Schema.optionalKey(Schema.Union([V2TurnSteerParams__ImageDetail, Schema.Null])), |
| 25559 | path: Schema.String, | 33080 | path: Schema.String, |
| ... | @@ -25581,89 +33102,6 @@ export const V2TurnSteerParams__UserInput = Schema.Union( | ... | @@ -25581,89 +33102,6 @@ export const V2TurnSteerParams__UserInput = Schema.Union( |
| 25581 | { mode: "oneOf" }, | 33102 | { mode: "oneOf" }, |
| 25582 | ).annotate({ identifier: "V2TurnSteerParams__UserInput" }); | 33103 | ).annotate({ identifier: "V2TurnSteerParams__UserInput" }); |
| 25583 | | 33104 | |
| 25584 | export type ClientRequest__TurnStartParams = { | | |
| 25585 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; | | |
| 25586 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; | | |
| 25587 | readonly clientUserMessageId?: string | null; | | |
| 25588 | readonly cwd?: string | null; | | |
| 25589 | readonly effort?: ClientRequest__ReasoningEffort | null; | | |
| 25590 | readonly input: ReadonlyArray<ClientRequest__UserInput>; | | |
| 25591 | readonly model?: string | null; | | |
| 25592 | readonly outputSchema?: Schema.Json; | | |
| 25593 | readonly personality?: ClientRequest__Personality | null; | | |
| 25594 | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; | | |
| 25595 | readonly serviceTier?: string | null; | | |
| 25596 | readonly summary?: ClientRequest__ReasoningSummary | null; | | |
| 25597 | readonly threadId: string; | | |
| 25598 | }; | | |
| 25599 | export const ClientRequest__TurnStartParams = Schema.Struct({ | | |
| 25600 | approvalPolicy: Schema.optionalKey( | | |
| 25601 | Schema.Union([ClientRequest__AskForApproval, Schema.Null]).annotate({ | | |
| 25602 | description: "Override the approval policy for this turn and subsequent turns.", | | |
| 25603 | }), | | |
| 25604 | ), | | |
| 25605 | approvalsReviewer: Schema.optionalKey( | | |
| 25606 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ | | |
| 25607 | description: | | |
| 25608 | "Override where approval requests are routed for review on this turn and subsequent turns.", | | |
| 25609 | }), | | |
| 25610 | ), | | |
| 25611 | clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 25612 | cwd: Schema.optionalKey( | | |
| 25613 | Schema.Union([ | | |
| 25614 | Schema.String.annotate({ | | |
| 25615 | description: "Override the working directory for this turn and subsequent turns.", | | |
| 25616 | }), | | |
| 25617 | Schema.Null, | | |
| 25618 | ]), | | |
| 25619 | ), | | |
| 25620 | effort: Schema.optionalKey( | | |
| 25621 | Schema.Union([ClientRequest__ReasoningEffort, Schema.Null]).annotate({ | | |
| 25622 | description: "Override the reasoning effort for this turn and subsequent turns.", | | |
| 25623 | }), | | |
| 25624 | ), | | |
| 25625 | input: Schema.Array(ClientRequest__UserInput), | | |
| 25626 | model: Schema.optionalKey( | | |
| 25627 | Schema.Union([ | | |
| 25628 | Schema.String.annotate({ | | |
| 25629 | description: "Override the model for this turn and subsequent turns.", | | |
| 25630 | }), | | |
| 25631 | Schema.Null, | | |
| 25632 | ]), | | |
| 25633 | ), | | |
| 25634 | outputSchema: Schema.optionalKey( | | |
| 25635 | Schema.Json.annotate({ | | |
| 25636 | expected: "JSON value", | | |
| 25637 | description: | | |
| 25638 | "Optional JSON Schema used to constrain the final assistant message for this turn.", | | |
| 25639 | }), | | |
| 25640 | ), | | |
| 25641 | personality: Schema.optionalKey( | | |
| 25642 | Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({ | | |
| 25643 | description: "Override the personality for this turn and subsequent turns.", | | |
| 25644 | }), | | |
| 25645 | ), | | |
| 25646 | sandboxPolicy: Schema.optionalKey( | | |
| 25647 | Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({ | | |
| 25648 | description: "Override the sandbox policy for this turn and subsequent turns.", | | |
| 25649 | }), | | |
| 25650 | ), | | |
| 25651 | serviceTier: Schema.optionalKey( | | |
| 25652 | Schema.Union([ | | |
| 25653 | Schema.String.annotate({ | | |
| 25654 | description: "Override the service tier for this turn and subsequent turns.", | | |
| 25655 | }), | | |
| 25656 | Schema.Null, | | |
| 25657 | ]), | | |
| 25658 | ), | | |
| 25659 | summary: Schema.optionalKey( | | |
| 25660 | Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({ | | |
| 25661 | description: "Override the reasoning summary for this turn and subsequent turns.", | | |
| 25662 | }), | | |
| 25663 | ), | | |
| 25664 | threadId: Schema.String, | | |
| 25665 | }).annotate({ identifier: "ClientRequest__TurnStartParams" }); | | |
| 25666 | | | |
| 25667 | export type ClientRequest__TurnSteerParams = { | 33105 | export type ClientRequest__TurnSteerParams = { |
| 25668 | readonly clientUserMessageId?: string | null; | 33106 | readonly clientUserMessageId?: string | null; |
| 25669 | readonly expectedTurnId: string; | 33107 | readonly expectedTurnId: string; |
| ... | @@ -25680,9 +33118,21 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({ | ... | @@ -25680,9 +33118,21 @@ export const ClientRequest__TurnSteerParams = Schema.Struct({ |
| 25680 | threadId: Schema.String, | 33118 | threadId: Schema.String, |
| 25681 | }).annotate({ identifier: "ClientRequest__TurnSteerParams" }); | 33119 | }).annotate({ identifier: "ClientRequest__TurnSteerParams" }); |
| 25682 | | 33120 | |
| | 33121 | export type ClientRequest__TurnToolOutput = { |
| | 33122 | readonly name: string; |
| | 33123 | readonly namespace?: string | null; |
| | 33124 | readonly output: ClientRequest__FunctionCallOutputBody; |
| | 33125 | }; |
| | 33126 | export const ClientRequest__TurnToolOutput = Schema.Struct({ |
| | 33127 | name: Schema.String, |
| | 33128 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 33129 | output: ClientRequest__FunctionCallOutputBody, |
| | 33130 | }).annotate({ identifier: "ClientRequest__TurnToolOutput" }); |
| | 33131 | |
| 25683 | export type ClientRequest__ExternalAgentConfigImportParams = { | 33132 | export type ClientRequest__ExternalAgentConfigImportParams = { |
| 25684 | readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>; | 33133 | readonly migrationItems: ReadonlyArray<ClientRequest__ExternalAgentConfigMigrationItem>; |
| 25685 | readonly migrationSource?: string | null; | 33134 | readonly migrationSource?: string | null; |
| | 33135 | readonly providerId?: string | null; |
| 25686 | readonly source?: string | null; | 33136 | readonly source?: string | null; |
| 25687 | }; | 33137 | }; |
| 25688 | export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ | 33138 | export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ |
| ... | @@ -25696,6 +33146,15 @@ export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ | ... | @@ -25696,6 +33146,15 @@ export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ |
| 25696 | Schema.Null, | 33146 | Schema.Null, |
| 25697 | ]), | 33147 | ]), |
| 25698 | ), | 33148 | ), |
| | 33149 | providerId: Schema.optionalKey( |
| | 33150 | Schema.Union([ |
| | 33151 | Schema.String.annotate({ |
| | 33152 | description: |
| | 33153 | "Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.", |
| | 33154 | }), |
| | 33155 | Schema.Null, |
| | 33156 | ]), |
| | 33157 | ), |
| 25699 | source: Schema.optionalKey( | 33158 | source: Schema.optionalKey( |
| 25700 | Schema.Union([ | 33159 | Schema.Union([ |
| 25701 | Schema.String.annotate({ | 33160 | Schema.String.annotate({ |
| ... | @@ -25706,6 +33165,19 @@ export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ | ... | @@ -25706,6 +33165,19 @@ export const ClientRequest__ExternalAgentConfigImportParams = Schema.Struct({ |
| 25706 | ), | 33165 | ), |
| 25707 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportParams" }); | 33166 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportParams" }); |
| 25708 | | 33167 | |
| | 33168 | export type ClientRequest__ExternalAgentConfigImportHistoryRecordParams = { |
| | 33169 | readonly itemTypeResults: ReadonlyArray<ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams>; |
| | 33170 | readonly providerId: string; |
| | 33171 | }; |
| | 33172 | export const ClientRequest__ExternalAgentConfigImportHistoryRecordParams = Schema.Struct({ |
| | 33173 | itemTypeResults: Schema.Array( |
| | 33174 | ClientRequest__ExternalAgentConfigImportHistoryRecordTypeResultParams, |
| | 33175 | ).annotate({ description: "Completed results grouped by imported item type." }), |
| | 33176 | providerId: Schema.String.annotate({ |
| | 33177 | description: "Opaque provider identifier for the externally completed import.", |
| | 33178 | }), |
| | 33179 | }).annotate({ identifier: "ClientRequest__ExternalAgentConfigImportHistoryRecordParams" }); |
| | 33180 | |
| 25709 | export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = { | 33181 | export type CommandExecutionRequestApprovalParams__FileSystemSandboxEntry = { |
| 25710 | readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode; | 33182 | readonly access: CommandExecutionRequestApprovalParams__FileSystemAccessMode; |
| 25711 | readonly path: CommandExecutionRequestApprovalParams__FileSystemPath; | 33183 | readonly path: CommandExecutionRequestApprovalParams__FileSystemPath; |
| ... | @@ -25756,6 +33228,49 @@ export const ServerNotification__ErrorNotification = Schema.Struct({ | ... | @@ -25756,6 +33228,49 @@ export const ServerNotification__ErrorNotification = Schema.Struct({ |
| 25756 | willRetry: Schema.Boolean, | 33228 | willRetry: Schema.Boolean, |
| 25757 | }).annotate({ identifier: "ServerNotification__ErrorNotification" }); | 33229 | }).annotate({ identifier: "ServerNotification__ErrorNotification" }); |
| 25758 | | 33230 | |
| | 33231 | export type ServerNotification__ThreadSettings = { |
| | 33232 | readonly activePermissionProfile?: ServerNotification__ActivePermissionProfile | null; |
| | 33233 | readonly approvalPolicy: ServerNotification__AskForApproval; |
| | 33234 | readonly approvalsReviewer: ServerNotification__ApprovalsReviewer; |
| | 33235 | readonly collaborationMode: ServerNotification__CollaborationMode; |
| | 33236 | readonly cwd: ServerNotification__AbsolutePathBuf; |
| | 33237 | readonly disabledPluginIds?: ReadonlyArray<string>; |
| | 33238 | readonly effort?: ServerNotification__ReasoningEffort | null; |
| | 33239 | readonly model: string; |
| | 33240 | readonly modelProvider: string; |
| | 33241 | readonly personality?: ServerNotification__Personality | null; |
| | 33242 | readonly sandboxPolicy: ServerNotification__SandboxPolicy; |
| | 33243 | readonly serviceTier?: string | null; |
| | 33244 | readonly summary?: ServerNotification__ReasoningSummary | null; |
| | 33245 | }; |
| | 33246 | export const ServerNotification__ThreadSettings = Schema.Struct({ |
| | 33247 | activePermissionProfile: Schema.optionalKey( |
| | 33248 | Schema.Union([ServerNotification__ActivePermissionProfile, Schema.Null]), |
| | 33249 | ), |
| | 33250 | approvalPolicy: ServerNotification__AskForApproval, |
| | 33251 | approvalsReviewer: ServerNotification__ApprovalsReviewer, |
| | 33252 | collaborationMode: ServerNotification__CollaborationMode, |
| | 33253 | cwd: ServerNotification__AbsolutePathBuf, |
| | 33254 | disabledPluginIds: Schema.optionalKey( |
| | 33255 | Schema.Array(Schema.String).annotate({ |
| | 33256 | description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| | 33257 | default: [], |
| | 33258 | }), |
| | 33259 | ), |
| | 33260 | effort: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningEffort, Schema.Null])), |
| | 33261 | model: Schema.String, |
| | 33262 | modelProvider: Schema.String, |
| | 33263 | personality: Schema.optionalKey( |
| | 33264 | Schema.Union([ServerNotification__Personality, Schema.Null]).annotate({ |
| | 33265 | description: |
| | 33266 | "@deprecated Reports the saved setting; `friendly` and `pragmatic` no longer select a style.", |
| | 33267 | }), |
| | 33268 | ), |
| | 33269 | sandboxPolicy: ServerNotification__SandboxPolicy, |
| | 33270 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 33271 | summary: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningSummary, Schema.Null])), |
| | 33272 | }).annotate({ identifier: "ServerNotification__ThreadSettings" }); |
| | 33273 | |
| 25759 | export type ServerNotification__ThreadItem = | 33274 | export type ServerNotification__ThreadItem = |
| 25760 | | { | 33275 | | { |
| 25761 | readonly clientId?: string | null; | 33276 | readonly clientId?: string | null; |
| ... | @@ -25769,17 +33284,21 @@ export type ServerNotification__ThreadItem = | ... | @@ -25769,17 +33284,21 @@ export type ServerNotification__ThreadItem = |
| 25769 | readonly type: "hookPrompt"; | 33284 | readonly type: "hookPrompt"; |
| 25770 | } | 33285 | } |
| 25771 | | { | 33286 | | { |
| | 33287 | readonly delivery?: ServerNotification__AgentMessageDelivery | null; |
| 25772 | readonly id: string; | 33288 | readonly id: string; |
| 25773 | readonly memoryCitation?: ServerNotification__MemoryCitation | null; | 33289 | readonly memoryCitation?: ServerNotification__MemoryCitation | null; |
| 25774 | readonly phase?: ServerNotification__MessagePhase | null; | 33290 | readonly phase?: ServerNotification__MessagePhase | null; |
| | 33291 | readonly questions?: ReadonlyArray<ServerNotification__AsyncUserInputQuestion> | null; |
| 25775 | readonly text: string; | 33292 | readonly text: string; |
| 25776 | readonly delivery?: "async" | null; | | |
| 25777 | readonly questions?: ReadonlyArray<{ | | |
| 25778 | readonly title: string; | | |
| 25779 | readonly options?: ReadonlyArray<string> | null; | | |
| 25780 | }> | null; | | |
| 25781 | readonly type: "agentMessage"; | 33293 | readonly type: "agentMessage"; |
| 25782 | } | 33294 | } |
| | 33295 | | { |
| | 33296 | readonly id: string; |
| | 33297 | readonly name: string; |
| | 33298 | readonly namespace?: string | null; |
| | 33299 | readonly output: ServerNotification__FunctionCallOutputBody; |
| | 33300 | readonly type: "functionCallOutput"; |
| | 33301 | } |
| 25783 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 33302 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 25784 | | { | 33303 | | { |
| 25785 | readonly content?: ReadonlyArray<string>; | 33304 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -25795,7 +33314,9 @@ export type ServerNotification__ThreadItem = | ... | @@ -25795,7 +33314,9 @@ export type ServerNotification__ThreadItem = |
| 25795 | readonly durationMs?: number | null; | 33314 | readonly durationMs?: number | null; |
| 25796 | readonly exitCode?: number | null; | 33315 | readonly exitCode?: number | null; |
| 25797 | readonly id: string; | 33316 | readonly id: string; |
| | 33317 | readonly pluginId?: string | null; |
| 25798 | readonly processId?: string | null; | 33318 | readonly processId?: string | null; |
| | 33319 | readonly scriptPath?: string | null; |
| 25799 | readonly source?: ServerNotification__CommandExecutionSource; | 33320 | readonly source?: ServerNotification__CommandExecutionSource; |
| 25800 | readonly status: ServerNotification__CommandExecutionStatus; | 33321 | readonly status: ServerNotification__CommandExecutionStatus; |
| 25801 | readonly type: "commandExecution"; | 33322 | readonly type: "commandExecution"; |
| ... | @@ -25813,7 +33334,9 @@ export type ServerNotification__ThreadItem = | ... | @@ -25813,7 +33334,9 @@ export type ServerNotification__ThreadItem = |
| 25813 | readonly error?: ServerNotification__McpToolCallError | null; | 33334 | readonly error?: ServerNotification__McpToolCallError | null; |
| 25814 | readonly id: string; | 33335 | readonly id: string; |
| 25815 | readonly mcpAppResourceUri?: string | null; | 33336 | readonly mcpAppResourceUri?: string | null; |
| | 33337 | readonly mcpAppUi?: ServerNotification__McpAppUi | null; |
| 25816 | readonly pluginId?: string | null; | 33338 | readonly pluginId?: string | null; |
| | 33339 | readonly readOnlyHint?: boolean | null; |
| 25817 | readonly result?: ServerNotification__McpToolCallResult | null; | 33340 | readonly result?: ServerNotification__McpToolCallResult | null; |
| 25818 | readonly server: string; | 33341 | readonly server: string; |
| 25819 | readonly status: ServerNotification__McpToolCallStatus; | 33342 | readonly status: ServerNotification__McpToolCallStatus; |
| ... | @@ -25864,11 +33387,13 @@ export type ServerNotification__ThreadItem = | ... | @@ -25864,11 +33387,13 @@ export type ServerNotification__ThreadItem = |
| 25864 | } | 33387 | } |
| 25865 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 33388 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 25866 | | { | 33389 | | { |
| | 33390 | readonly failure?: ServerNotification__ImageGenerationFailure | null; |
| 25867 | readonly id: string; | 33391 | readonly id: string; |
| 25868 | readonly result: string; | 33392 | readonly result: string; |
| 25869 | readonly revisedPrompt?: string | null; | 33393 | readonly revisedPrompt?: string | null; |
| 25870 | readonly savedPath?: ServerNotification__AbsolutePathBuf | null; | 33394 | readonly savedPath?: ServerNotification__AbsolutePathBuf | null; |
| 25871 | readonly status: string; | 33395 | readonly status: string; |
| | 33396 | readonly transparentBackground?: boolean | null; |
| 25872 | readonly type: "imageGeneration"; | 33397 | readonly type: "imageGeneration"; |
| 25873 | } | 33398 | } |
| 25874 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 33399 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| ... | @@ -25888,26 +33413,29 @@ export const ServerNotification__ThreadItem = Schema.Union( | ... | @@ -25888,26 +33413,29 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 25888 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 33413 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 25889 | }).annotate({ title: "HookPromptThreadItem" }), | 33414 | }).annotate({ title: "HookPromptThreadItem" }), |
| 25890 | Schema.Struct({ | 33415 | Schema.Struct({ |
| | 33416 | delivery: Schema.optionalKey( |
| | 33417 | Schema.Union([ServerNotification__AgentMessageDelivery, Schema.Null]), |
| | 33418 | ), |
| 25891 | id: Schema.String, | 33419 | id: Schema.String, |
| 25892 | memoryCitation: Schema.optionalKey( | 33420 | memoryCitation: Schema.optionalKey( |
| 25893 | Schema.Union([ServerNotification__MemoryCitation, Schema.Null]), | 33421 | Schema.Union([ServerNotification__MemoryCitation, Schema.Null]), |
| 25894 | ), | 33422 | ), |
| 25895 | phase: Schema.optionalKey(Schema.Union([ServerNotification__MessagePhase, Schema.Null])), | 33423 | phase: Schema.optionalKey(Schema.Union([ServerNotification__MessagePhase, Schema.Null])), |
| 25896 | text: Schema.String, | | |
| 25897 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 25898 | questions: Schema.optionalKey( | 33424 | questions: Schema.optionalKey( |
| 25899 | Schema.Union([ | 33425 | Schema.Union([Schema.Array(ServerNotification__AsyncUserInputQuestion), Schema.Null]), |
| 25900 | Schema.Array( | | |
| 25901 | Schema.Struct({ | | |
| 25902 | title: Schema.String, | | |
| 25903 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 25904 | }), | | |
| 25905 | ), | | |
| 25906 | Schema.Null, | | |
| 25907 | ]), | | |
| 25908 | ), | 33426 | ), |
| | 33427 | text: Schema.String, |
| 25909 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 33428 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 25910 | }).annotate({ title: "AgentMessageThreadItem" }), | 33429 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 33430 | Schema.Struct({ |
| | 33431 | id: Schema.String, |
| | 33432 | name: Schema.String, |
| | 33433 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 33434 | output: ServerNotification__FunctionCallOutputBody, |
| | 33435 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 33436 | title: "FunctionCallOutputThreadItemType", |
| | 33437 | }), |
| | 33438 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 25911 | Schema.Struct({ | 33439 | Schema.Struct({ |
| 25912 | id: Schema.String, | 33440 | id: Schema.String, |
| 25913 | text: Schema.String, | 33441 | text: Schema.String, |
| ... | @@ -25960,6 +33488,15 @@ export const ServerNotification__ThreadItem = Schema.Union( | ... | @@ -25960,6 +33488,15 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 25960 | ]), | 33488 | ]), |
| 25961 | ), | 33489 | ), |
| 25962 | id: Schema.String, | 33490 | id: Schema.String, |
| | 33491 | pluginId: Schema.optionalKey( |
| | 33492 | Schema.Union([ |
| | 33493 | Schema.String.annotate({ |
| | 33494 | description: |
| | 33495 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 33496 | }), |
| | 33497 | Schema.Null, |
| | 33498 | ]), |
| | 33499 | ), |
| 25963 | processId: Schema.optionalKey( | 33500 | processId: Schema.optionalKey( |
| 25964 | Schema.Union([ | 33501 | Schema.Union([ |
| 25965 | Schema.String.annotate({ | 33502 | Schema.String.annotate({ |
| ... | @@ -25968,6 +33505,15 @@ export const ServerNotification__ThreadItem = Schema.Union( | ... | @@ -25968,6 +33505,15 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 25968 | Schema.Null, | 33505 | Schema.Null, |
| 25969 | ]), | 33506 | ]), |
| 25970 | ), | 33507 | ), |
| | 33508 | scriptPath: Schema.optionalKey( |
| | 33509 | Schema.Union([ |
| | 33510 | Schema.String.annotate({ |
| | 33511 | description: |
| | 33512 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 33513 | }), |
| | 33514 | Schema.Null, |
| | 33515 | ]), |
| | 33516 | ), |
| 25971 | source: Schema.optionalKey( | 33517 | source: Schema.optionalKey( |
| 25972 | Schema.suspend( | 33518 | Schema.suspend( |
| 25973 | (): Schema.Codec<ServerNotification__CommandExecutionSource> => | 33519 | (): Schema.Codec<ServerNotification__CommandExecutionSource> => |
| ... | @@ -26004,12 +33550,20 @@ export const ServerNotification__ThreadItem = Schema.Union( | ... | @@ -26004,12 +33550,20 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 26004 | mcpAppResourceUri: Schema.optionalKey( | 33550 | mcpAppResourceUri: Schema.optionalKey( |
| 26005 | Schema.Union([ | 33551 | Schema.Union([ |
| 26006 | Schema.String.annotate({ | 33552 | Schema.String.annotate({ |
| 26007 | description: "Deprecated: use `appContext.resourceUri` instead.", | 33553 | description: |
| | 33554 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 26008 | }), | 33555 | }), |
| 26009 | Schema.Null, | 33556 | Schema.Null, |
| 26010 | ]), | 33557 | ]), |
| 26011 | ), | 33558 | ), |
| | 33559 | mcpAppUi: Schema.optionalKey( |
| | 33560 | Schema.Union([ServerNotification__McpAppUi, Schema.Null]).annotate({ |
| | 33561 | description: |
| | 33562 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 33563 | }), |
| | 33564 | ), |
| 26012 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33565 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 33566 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 26013 | result: Schema.optionalKey( | 33567 | result: Schema.optionalKey( |
| 26014 | Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]), | 33568 | Schema.Union([ServerNotification__McpToolCallResult, Schema.Null]), |
| 26015 | ), | 33569 | ), |
| ... | @@ -26131,6 +33685,9 @@ export const ServerNotification__ThreadItem = Schema.Union( | ... | @@ -26131,6 +33685,9 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 26131 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 33685 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 26132 | }), | 33686 | }), |
| 26133 | Schema.Struct({ | 33687 | Schema.Struct({ |
| | 33688 | failure: Schema.optionalKey( |
| | 33689 | Schema.Union([ServerNotification__ImageGenerationFailure, Schema.Null]), |
| | 33690 | ), |
| 26134 | id: Schema.String, | 33691 | id: Schema.String, |
| 26135 | result: Schema.String, | 33692 | result: Schema.String, |
| 26136 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33693 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -26138,6 +33695,7 @@ export const ServerNotification__ThreadItem = Schema.Union( | ... | @@ -26138,6 +33695,7 @@ export const ServerNotification__ThreadItem = Schema.Union( |
| 26138 | Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]), | 33695 | Schema.Union([ServerNotification__AbsolutePathBuf, Schema.Null]), |
| 26139 | ), | 33696 | ), |
| 26140 | status: Schema.String, | 33697 | status: Schema.String, |
| | 33698 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 26141 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 33699 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 26142 | }).annotate({ title: "ImageGenerationThreadItem" }), | 33700 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 26143 | Schema.Struct({ | 33701 | Schema.Struct({ |
| ... | @@ -26173,37 +33731,6 @@ export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({ | ... | @@ -26173,37 +33731,6 @@ export const ServerNotification__FileSystemSandboxEntry = Schema.Struct({ |
| 26173 | path: ServerNotification__FileSystemPath, | 33731 | path: ServerNotification__FileSystemPath, |
| 26174 | }).annotate({ identifier: "ServerNotification__FileSystemSandboxEntry" }); | 33732 | }).annotate({ identifier: "ServerNotification__FileSystemSandboxEntry" }); |
| 26175 | | 33733 | |
| 26176 | export type ServerNotification__ThreadSettings = { | | |
| 26177 | readonly activePermissionProfile?: ServerNotification__ActivePermissionProfile | null; | | |
| 26178 | readonly approvalPolicy: ServerNotification__AskForApproval; | | |
| 26179 | readonly approvalsReviewer: ServerNotification__ApprovalsReviewer; | | |
| 26180 | readonly collaborationMode: ServerNotification__CollaborationMode; | | |
| 26181 | readonly cwd: ServerNotification__AbsolutePathBuf; | | |
| 26182 | readonly effort?: ServerNotification__ReasoningEffort | null; | | |
| 26183 | readonly model: string; | | |
| 26184 | readonly modelProvider: string; | | |
| 26185 | readonly personality?: ServerNotification__Personality | null; | | |
| 26186 | readonly sandboxPolicy: ServerNotification__SandboxPolicy; | | |
| 26187 | readonly serviceTier?: string | null; | | |
| 26188 | readonly summary?: ServerNotification__ReasoningSummary | null; | | |
| 26189 | }; | | |
| 26190 | export const ServerNotification__ThreadSettings = Schema.Struct({ | | |
| 26191 | activePermissionProfile: Schema.optionalKey( | | |
| 26192 | Schema.Union([ServerNotification__ActivePermissionProfile, Schema.Null]), | | |
| 26193 | ), | | |
| 26194 | approvalPolicy: ServerNotification__AskForApproval, | | |
| 26195 | approvalsReviewer: ServerNotification__ApprovalsReviewer, | | |
| 26196 | collaborationMode: ServerNotification__CollaborationMode, | | |
| 26197 | cwd: ServerNotification__AbsolutePathBuf, | | |
| 26198 | effort: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningEffort, Schema.Null])), | | |
| 26199 | model: Schema.String, | | |
| 26200 | modelProvider: Schema.String, | | |
| 26201 | personality: Schema.optionalKey(Schema.Union([ServerNotification__Personality, Schema.Null])), | | |
| 26202 | sandboxPolicy: ServerNotification__SandboxPolicy, | | |
| 26203 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26204 | summary: Schema.optionalKey(Schema.Union([ServerNotification__ReasoningSummary, Schema.Null])), | | |
| 26205 | }).annotate({ identifier: "ServerNotification__ThreadSettings" }); | | |
| 26206 | | | |
| 26207 | export type ServerNotification__HookStartedNotification = { | 33734 | export type ServerNotification__HookStartedNotification = { |
| 26208 | readonly run: ServerNotification__HookRunSummary; | 33735 | readonly run: ServerNotification__HookRunSummary; |
| 26209 | readonly threadId: string; | 33736 | readonly threadId: string; |
| ... | @@ -26271,157 +33798,43 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([ | ... | @@ -26271,157 +33798,43 @@ export const ServerRequest__McpElicitationMultiSelectEnumSchema = Schema.Union([ |
| 26271 | ServerRequest__McpElicitationTitledMultiSelectEnumSchema, | 33798 | ServerRequest__McpElicitationTitledMultiSelectEnumSchema, |
| 26272 | ]).annotate({ identifier: "ServerRequest__McpElicitationMultiSelectEnumSchema" }); | 33799 | ]).annotate({ identifier: "ServerRequest__McpElicitationMultiSelectEnumSchema" }); |
| 26273 | | 33800 | |
| 26274 | export type V2ConfigReadResponse__Config = { | 33801 | export type V2ConfigReadResponse__ComputerUseConfig = { |
| 26275 | readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null; | 33802 | readonly default_app_access?: V2ConfigReadResponse__AllowDenyRequirement | null; |
| 26276 | readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null; | 33803 | readonly macos?: V2ConfigReadResponse__ComputerUseMacosConfig | null; |
| 26277 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; | 33804 | readonly windows?: V2ConfigReadResponse__ComputerUseWindowsConfig | null; |
| 26278 | readonly compact_prompt?: string | null; | | |
| 26279 | readonly desktop?: { readonly [x: string]: Schema.Json } | null; | | |
| 26280 | readonly developer_instructions?: string | null; | | |
| 26281 | readonly forced_chatgpt_workspace_id?: V2ConfigReadResponse__ForcedChatgptWorkspaceIds | null; | | |
| 26282 | readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null; | | |
| 26283 | readonly instructions?: string | null; | | |
| 26284 | readonly model?: string | null; | | |
| 26285 | readonly model_auto_compact_token_limit?: number | null; | | |
| 26286 | readonly model_auto_compact_token_limit_scope?: V2ConfigReadResponse__AutoCompactTokenLimitScope | null; | | |
| 26287 | readonly model_context_window?: number | null; | | |
| 26288 | readonly model_provider?: string | null; | | |
| 26289 | readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null; | | |
| 26290 | readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null; | | |
| 26291 | readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null; | | |
| 26292 | readonly review_model?: string | null; | | |
| 26293 | readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null; | | |
| 26294 | readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null; | | |
| 26295 | readonly service_tier?: string | null; | | |
| 26296 | readonly tools?: V2ConfigReadResponse__ToolsV2 | null; | | |
| 26297 | readonly web_search?: V2ConfigReadResponse__WebSearchMode | null; | | |
| 26298 | } & { readonly [x: string]: Schema.Json }; | | |
| 26299 | export const V2ConfigReadResponse__Config = Schema.StructWithRest( | | |
| 26300 | Schema.Struct({ | | |
| 26301 | analytics: Schema.optionalKey( | | |
| 26302 | Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]), | | |
| 26303 | ), | | |
| 26304 | approval_policy: Schema.optionalKey( | | |
| 26305 | Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]), | | |
| 26306 | ), | | |
| 26307 | approvals_reviewer: Schema.optionalKey( | | |
| 26308 | Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({ | | |
| 26309 | description: | | |
| 26310 | "[UNSTABLE] Optional default for where approval requests are routed for review.", | | |
| 26311 | }), | | |
| 26312 | ), | | |
| 26313 | compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26314 | desktop: Schema.optionalKey( | | |
| 26315 | Schema.Union([ | | |
| 26316 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), | | |
| 26317 | Schema.Null, | | |
| 26318 | ]), | | |
| 26319 | ), | | |
| 26320 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26321 | forced_chatgpt_workspace_id: Schema.optionalKey( | | |
| 26322 | Schema.Union([V2ConfigReadResponse__ForcedChatgptWorkspaceIds, Schema.Null]), | | |
| 26323 | ), | | |
| 26324 | forced_login_method: Schema.optionalKey( | | |
| 26325 | Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]), | | |
| 26326 | ), | | |
| 26327 | instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26328 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26329 | model_auto_compact_token_limit: Schema.optionalKey( | | |
| 26330 | Schema.Union([ | | |
| 26331 | Schema.Number.annotate({ format: "int64" }).check( | | |
| 26332 | Schema.isInt().annotate({ expected: "an integer" }), | | |
| 26333 | ), | | |
| 26334 | Schema.Null, | | |
| 26335 | ]), | | |
| 26336 | ), | | |
| 26337 | model_auto_compact_token_limit_scope: Schema.optionalKey( | | |
| 26338 | Schema.Union([V2ConfigReadResponse__AutoCompactTokenLimitScope, Schema.Null]), | | |
| 26339 | ), | | |
| 26340 | model_context_window: Schema.optionalKey( | | |
| 26341 | Schema.Union([ | | |
| 26342 | Schema.Number.annotate({ format: "int64" }).check( | | |
| 26343 | Schema.isInt().annotate({ expected: "an integer" }), | | |
| 26344 | ), | | |
| 26345 | Schema.Null, | | |
| 26346 | ]), | | |
| 26347 | ), | | |
| 26348 | model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26349 | model_reasoning_effort: Schema.optionalKey( | | |
| 26350 | Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]), | | |
| 26351 | ), | | |
| 26352 | model_reasoning_summary: Schema.optionalKey( | | |
| 26353 | Schema.Union([V2ConfigReadResponse__ReasoningSummary, Schema.Null]), | | |
| 26354 | ), | | |
| 26355 | model_verbosity: Schema.optionalKey( | | |
| 26356 | Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]), | | |
| 26357 | ), | | |
| 26358 | review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26359 | sandbox_mode: Schema.optionalKey( | | |
| 26360 | Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]), | | |
| 26361 | ), | | |
| 26362 | sandbox_workspace_write: Schema.optionalKey( | | |
| 26363 | Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]), | | |
| 26364 | ), | | |
| 26365 | service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 26366 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])), | | |
| 26367 | web_search: Schema.optionalKey( | | |
| 26368 | Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]), | | |
| 26369 | ), | | |
| 26370 | }), | | |
| 26371 | [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))], | | |
| 26372 | ).annotate({ identifier: "V2ConfigReadResponse__Config" }); | | |
| 26373 | | | |
| 26374 | export type V2ConfigRequirementsReadResponse__ConfigRequirements = { | | |
| 26375 | readonly allowAppshots?: boolean | null; | | |
| 26376 | readonly allowManagedHooksOnly?: boolean | null; | | |
| 26377 | readonly allowRemoteControl?: boolean | null; | | |
| 26378 | readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null; | | |
| 26379 | readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null; | | |
| 26380 | readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null; | | |
| 26381 | readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null; | | |
| 26382 | readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode> | null; | | |
| 26383 | readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null; | | |
| 26384 | readonly defaultPermissions?: string | null; | | |
| 26385 | readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null; | | |
| 26386 | readonly featureRequirements?: { readonly [x: string]: boolean } | null; | | |
| 26387 | readonly models?: V2ConfigRequirementsReadResponse__ModelsRequirements | null; | | |
| 26388 | }; | 33805 | }; |
| 26389 | export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({ | 33806 | export const V2ConfigReadResponse__ComputerUseConfig = Schema.Struct({ |
| 26390 | allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 33807 | default_app_access: Schema.optionalKey( |
| 26391 | allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 33808 | Schema.Union([V2ConfigReadResponse__AllowDenyRequirement, Schema.Null]), |
| 26392 | allowRemoteControl: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | | |
| 26393 | allowedApprovalPolicies: Schema.optionalKey( | | |
| 26394 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]), | | |
| 26395 | ), | 33809 | ), |
| 26396 | allowedPermissionProfiles: Schema.optionalKey( | 33810 | macos: Schema.optionalKey( |
| 26397 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), | 33811 | Schema.Union([V2ConfigReadResponse__ComputerUseMacosConfig, Schema.Null]), |
| 26398 | ), | | |
| 26399 | allowedSandboxModes: Schema.optionalKey( | | |
| 26400 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]), | | |
| 26401 | ), | | |
| 26402 | allowedWebSearchModes: Schema.optionalKey( | | |
| 26403 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]), | | |
| 26404 | ), | 33812 | ), |
| 26405 | allowedWindowsSandboxImplementations: Schema.optionalKey( | 33813 | windows: Schema.optionalKey( |
| 26406 | Schema.Union([ | 33814 | Schema.Union([V2ConfigReadResponse__ComputerUseWindowsConfig, Schema.Null]), |
| 26407 | Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxSetupMode), | | |
| 26408 | Schema.Null, | | |
| 26409 | ]), | | |
| 26410 | ), | 33815 | ), |
| 26411 | computerUse: Schema.optionalKey( | 33816 | }).annotate({ identifier: "V2ConfigReadResponse__ComputerUseConfig" }); |
| 26412 | Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]), | 33817 | |
| 26413 | ), | 33818 | export type V2ConfigRequirementsReadResponse__ComputerUseRequirements = { |
| 26414 | defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 33819 | readonly allowLockedComputerUse?: boolean | null; |
| 26415 | enforceResidency: Schema.optionalKey( | 33820 | readonly allowPersistentApproval?: boolean | null; |
| 26416 | Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]), | 33821 | readonly defaultAppAccess?: V2ConfigRequirementsReadResponse__AllowDenyRequirement | null; |
| | 33822 | readonly macos?: V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements | null; |
| | 33823 | readonly windows?: V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements | null; |
| | 33824 | }; |
| | 33825 | export const V2ConfigRequirementsReadResponse__ComputerUseRequirements = Schema.Struct({ |
| | 33826 | allowLockedComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 33827 | allowPersistentApproval: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 33828 | defaultAppAccess: Schema.optionalKey( |
| | 33829 | Schema.Union([V2ConfigRequirementsReadResponse__AllowDenyRequirement, Schema.Null]), |
| 26417 | ), | 33830 | ), |
| 26418 | featureRequirements: Schema.optionalKey( | 33831 | macos: Schema.optionalKey( |
| 26419 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), | 33832 | Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseMacosRequirements, Schema.Null]), |
| 26420 | ), | 33833 | ), |
| 26421 | models: Schema.optionalKey( | 33834 | windows: Schema.optionalKey( |
| 26422 | Schema.Union([V2ConfigRequirementsReadResponse__ModelsRequirements, Schema.Null]), | 33835 | Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseWindowsRequirements, Schema.Null]), |
| 26423 | ), | 33836 | ), |
| 26424 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfigRequirements" }); | 33837 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ComputerUseRequirements" }); |
| 26425 | | 33838 | |
| 26426 | export type V2ConfigWriteResponse__OverriddenMetadata = { | 33839 | export type V2ConfigWriteResponse__OverriddenMetadata = { |
| 26427 | readonly effectiveValue: Schema.Json; | 33840 | readonly effectiveValue: Schema.Json; |
| ... | @@ -26447,17 +33860,21 @@ export type V2ItemCompletedNotification__ThreadItem = | ... | @@ -26447,17 +33860,21 @@ export type V2ItemCompletedNotification__ThreadItem = |
| 26447 | readonly type: "hookPrompt"; | 33860 | readonly type: "hookPrompt"; |
| 26448 | } | 33861 | } |
| 26449 | | { | 33862 | | { |
| | 33863 | readonly delivery?: V2ItemCompletedNotification__AgentMessageDelivery | null; |
| 26450 | readonly id: string; | 33864 | readonly id: string; |
| 26451 | readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null; | 33865 | readonly memoryCitation?: V2ItemCompletedNotification__MemoryCitation | null; |
| 26452 | readonly phase?: V2ItemCompletedNotification__MessagePhase | null; | 33866 | readonly phase?: V2ItemCompletedNotification__MessagePhase | null; |
| | 33867 | readonly questions?: ReadonlyArray<V2ItemCompletedNotification__AsyncUserInputQuestion> | null; |
| 26453 | readonly text: string; | 33868 | readonly text: string; |
| 26454 | readonly delivery?: "async" | null; | | |
| 26455 | readonly questions?: ReadonlyArray<{ | | |
| 26456 | readonly title: string; | | |
| 26457 | readonly options?: ReadonlyArray<string> | null; | | |
| 26458 | }> | null; | | |
| 26459 | readonly type: "agentMessage"; | 33869 | readonly type: "agentMessage"; |
| 26460 | } | 33870 | } |
| | 33871 | | { |
| | 33872 | readonly id: string; |
| | 33873 | readonly name: string; |
| | 33874 | readonly namespace?: string | null; |
| | 33875 | readonly output: V2ItemCompletedNotification__FunctionCallOutputBody; |
| | 33876 | readonly type: "functionCallOutput"; |
| | 33877 | } |
| 26461 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 33878 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 26462 | | { | 33879 | | { |
| 26463 | readonly content?: ReadonlyArray<string>; | 33880 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -26473,7 +33890,9 @@ export type V2ItemCompletedNotification__ThreadItem = | ... | @@ -26473,7 +33890,9 @@ export type V2ItemCompletedNotification__ThreadItem = |
| 26473 | readonly durationMs?: number | null; | 33890 | readonly durationMs?: number | null; |
| 26474 | readonly exitCode?: number | null; | 33891 | readonly exitCode?: number | null; |
| 26475 | readonly id: string; | 33892 | readonly id: string; |
| | 33893 | readonly pluginId?: string | null; |
| 26476 | readonly processId?: string | null; | 33894 | readonly processId?: string | null; |
| | 33895 | readonly scriptPath?: string | null; |
| 26477 | readonly source?: V2ItemCompletedNotification__CommandExecutionSource; | 33896 | readonly source?: V2ItemCompletedNotification__CommandExecutionSource; |
| 26478 | readonly status: V2ItemCompletedNotification__CommandExecutionStatus; | 33897 | readonly status: V2ItemCompletedNotification__CommandExecutionStatus; |
| 26479 | readonly type: "commandExecution"; | 33898 | readonly type: "commandExecution"; |
| ... | @@ -26491,7 +33910,9 @@ export type V2ItemCompletedNotification__ThreadItem = | ... | @@ -26491,7 +33910,9 @@ export type V2ItemCompletedNotification__ThreadItem = |
| 26491 | readonly error?: V2ItemCompletedNotification__McpToolCallError | null; | 33910 | readonly error?: V2ItemCompletedNotification__McpToolCallError | null; |
| 26492 | readonly id: string; | 33911 | readonly id: string; |
| 26493 | readonly mcpAppResourceUri?: string | null; | 33912 | readonly mcpAppResourceUri?: string | null; |
| | 33913 | readonly mcpAppUi?: V2ItemCompletedNotification__McpAppUi | null; |
| 26494 | readonly pluginId?: string | null; | 33914 | readonly pluginId?: string | null; |
| | 33915 | readonly readOnlyHint?: boolean | null; |
| 26495 | readonly result?: V2ItemCompletedNotification__McpToolCallResult | null; | 33916 | readonly result?: V2ItemCompletedNotification__McpToolCallResult | null; |
| 26496 | readonly server: string; | 33917 | readonly server: string; |
| 26497 | readonly status: V2ItemCompletedNotification__McpToolCallStatus; | 33918 | readonly status: V2ItemCompletedNotification__McpToolCallStatus; |
| ... | @@ -26544,11 +33965,13 @@ export type V2ItemCompletedNotification__ThreadItem = | ... | @@ -26544,11 +33965,13 @@ export type V2ItemCompletedNotification__ThreadItem = |
| 26544 | } | 33965 | } |
| 26545 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 33966 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 26546 | | { | 33967 | | { |
| | 33968 | readonly failure?: V2ItemCompletedNotification__ImageGenerationFailure | null; |
| 26547 | readonly id: string; | 33969 | readonly id: string; |
| 26548 | readonly result: string; | 33970 | readonly result: string; |
| 26549 | readonly revisedPrompt?: string | null; | 33971 | readonly revisedPrompt?: string | null; |
| 26550 | readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null; | 33972 | readonly savedPath?: V2ItemCompletedNotification__AbsolutePathBuf | null; |
| 26551 | readonly status: string; | 33973 | readonly status: string; |
| | 33974 | readonly transparentBackground?: boolean | null; |
| 26552 | readonly type: "imageGeneration"; | 33975 | readonly type: "imageGeneration"; |
| 26553 | } | 33976 | } |
| 26554 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 33977 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| ... | @@ -26568,6 +33991,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -26568,6 +33991,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 26568 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 33991 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 26569 | }).annotate({ title: "HookPromptThreadItem" }), | 33992 | }).annotate({ title: "HookPromptThreadItem" }), |
| 26570 | Schema.Struct({ | 33993 | Schema.Struct({ |
| | 33994 | delivery: Schema.optionalKey( |
| | 33995 | Schema.Union([V2ItemCompletedNotification__AgentMessageDelivery, Schema.Null]), |
| | 33996 | ), |
| 26571 | id: Schema.String, | 33997 | id: Schema.String, |
| 26572 | memoryCitation: Schema.optionalKey( | 33998 | memoryCitation: Schema.optionalKey( |
| 26573 | Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]), | 33999 | Schema.Union([V2ItemCompletedNotification__MemoryCitation, Schema.Null]), |
| ... | @@ -26575,21 +34001,24 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -26575,21 +34001,24 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 26575 | phase: Schema.optionalKey( | 34001 | phase: Schema.optionalKey( |
| 26576 | Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]), | 34002 | Schema.Union([V2ItemCompletedNotification__MessagePhase, Schema.Null]), |
| 26577 | ), | 34003 | ), |
| 26578 | text: Schema.String, | | |
| 26579 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 26580 | questions: Schema.optionalKey( | 34004 | questions: Schema.optionalKey( |
| 26581 | Schema.Union([ | 34005 | Schema.Union([ |
| 26582 | Schema.Array( | 34006 | Schema.Array(V2ItemCompletedNotification__AsyncUserInputQuestion), |
| 26583 | Schema.Struct({ | | |
| 26584 | title: Schema.String, | | |
| 26585 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 26586 | }), | | |
| 26587 | ), | | |
| 26588 | Schema.Null, | 34007 | Schema.Null, |
| 26589 | ]), | 34008 | ]), |
| 26590 | ), | 34009 | ), |
| | 34010 | text: Schema.String, |
| 26591 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 34011 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 26592 | }).annotate({ title: "AgentMessageThreadItem" }), | 34012 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 34013 | Schema.Struct({ |
| | 34014 | id: Schema.String, |
| | 34015 | name: Schema.String, |
| | 34016 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 34017 | output: V2ItemCompletedNotification__FunctionCallOutputBody, |
| | 34018 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 34019 | title: "FunctionCallOutputThreadItemType", |
| | 34020 | }), |
| | 34021 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 26593 | Schema.Struct({ | 34022 | Schema.Struct({ |
| 26594 | id: Schema.String, | 34023 | id: Schema.String, |
| 26595 | text: Schema.String, | 34024 | text: Schema.String, |
| ... | @@ -26642,6 +34071,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -26642,6 +34071,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 26642 | ]), | 34071 | ]), |
| 26643 | ), | 34072 | ), |
| 26644 | id: Schema.String, | 34073 | id: Schema.String, |
| | 34074 | pluginId: Schema.optionalKey( |
| | 34075 | Schema.Union([ |
| | 34076 | Schema.String.annotate({ |
| | 34077 | description: |
| | 34078 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 34079 | }), |
| | 34080 | Schema.Null, |
| | 34081 | ]), |
| | 34082 | ), |
| 26645 | processId: Schema.optionalKey( | 34083 | processId: Schema.optionalKey( |
| 26646 | Schema.Union([ | 34084 | Schema.Union([ |
| 26647 | Schema.String.annotate({ | 34085 | Schema.String.annotate({ |
| ... | @@ -26650,6 +34088,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -26650,6 +34088,15 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 26650 | Schema.Null, | 34088 | Schema.Null, |
| 26651 | ]), | 34089 | ]), |
| 26652 | ), | 34090 | ), |
| | 34091 | scriptPath: Schema.optionalKey( |
| | 34092 | Schema.Union([ |
| | 34093 | Schema.String.annotate({ |
| | 34094 | description: |
| | 34095 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 34096 | }), |
| | 34097 | Schema.Null, |
| | 34098 | ]), |
| | 34099 | ), |
| 26653 | source: Schema.optionalKey( | 34100 | source: Schema.optionalKey( |
| 26654 | Schema.suspend( | 34101 | Schema.suspend( |
| 26655 | (): Schema.Codec<V2ItemCompletedNotification__CommandExecutionSource> => | 34102 | (): Schema.Codec<V2ItemCompletedNotification__CommandExecutionSource> => |
| ... | @@ -26688,12 +34135,20 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -26688,12 +34135,20 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 26688 | mcpAppResourceUri: Schema.optionalKey( | 34135 | mcpAppResourceUri: Schema.optionalKey( |
| 26689 | Schema.Union([ | 34136 | Schema.Union([ |
| 26690 | Schema.String.annotate({ | 34137 | Schema.String.annotate({ |
| 26691 | description: "Deprecated: use `appContext.resourceUri` instead.", | 34138 | description: |
| | 34139 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 26692 | }), | 34140 | }), |
| 26693 | Schema.Null, | 34141 | Schema.Null, |
| 26694 | ]), | 34142 | ]), |
| 26695 | ), | 34143 | ), |
| | 34144 | mcpAppUi: Schema.optionalKey( |
| | 34145 | Schema.Union([V2ItemCompletedNotification__McpAppUi, Schema.Null]).annotate({ |
| | 34146 | description: |
| | 34147 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 34148 | }), |
| | 34149 | ), |
| 26696 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 34150 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 34151 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 26697 | result: Schema.optionalKey( | 34152 | result: Schema.optionalKey( |
| 26698 | Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]), | 34153 | Schema.Union([V2ItemCompletedNotification__McpToolCallResult, Schema.Null]), |
| 26699 | ), | 34154 | ), |
| ... | @@ -26818,6 +34273,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -26818,6 +34273,9 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 26818 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 34273 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 26819 | }), | 34274 | }), |
| 26820 | Schema.Struct({ | 34275 | Schema.Struct({ |
| | 34276 | failure: Schema.optionalKey( |
| | 34277 | Schema.Union([V2ItemCompletedNotification__ImageGenerationFailure, Schema.Null]), |
| | 34278 | ), |
| 26821 | id: Schema.String, | 34279 | id: Schema.String, |
| 26822 | result: Schema.String, | 34280 | result: Schema.String, |
| 26823 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 34281 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -26825,6 +34283,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -26825,6 +34283,7 @@ export const V2ItemCompletedNotification__ThreadItem = Schema.Union( |
| 26825 | Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]), | 34283 | Schema.Union([V2ItemCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 26826 | ), | 34284 | ), |
| 26827 | status: Schema.String, | 34285 | status: Schema.String, |
| | 34286 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 26828 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 34287 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 26829 | }).annotate({ title: "ImageGenerationThreadItem" }), | 34288 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 26830 | Schema.Struct({ | 34289 | Schema.Struct({ |
| ... | @@ -26888,17 +34347,21 @@ export type V2ItemStartedNotification__ThreadItem = | ... | @@ -26888,17 +34347,21 @@ export type V2ItemStartedNotification__ThreadItem = |
| 26888 | readonly type: "hookPrompt"; | 34347 | readonly type: "hookPrompt"; |
| 26889 | } | 34348 | } |
| 26890 | | { | 34349 | | { |
| | 34350 | readonly delivery?: V2ItemStartedNotification__AgentMessageDelivery | null; |
| 26891 | readonly id: string; | 34351 | readonly id: string; |
| 26892 | readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null; | 34352 | readonly memoryCitation?: V2ItemStartedNotification__MemoryCitation | null; |
| 26893 | readonly phase?: V2ItemStartedNotification__MessagePhase | null; | 34353 | readonly phase?: V2ItemStartedNotification__MessagePhase | null; |
| | 34354 | readonly questions?: ReadonlyArray<V2ItemStartedNotification__AsyncUserInputQuestion> | null; |
| 26894 | readonly text: string; | 34355 | readonly text: string; |
| 26895 | readonly delivery?: "async" | null; | | |
| 26896 | readonly questions?: ReadonlyArray<{ | | |
| 26897 | readonly title: string; | | |
| 26898 | readonly options?: ReadonlyArray<string> | null; | | |
| 26899 | }> | null; | | |
| 26900 | readonly type: "agentMessage"; | 34356 | readonly type: "agentMessage"; |
| 26901 | } | 34357 | } |
| | 34358 | | { |
| | 34359 | readonly id: string; |
| | 34360 | readonly name: string; |
| | 34361 | readonly namespace?: string | null; |
| | 34362 | readonly output: V2ItemStartedNotification__FunctionCallOutputBody; |
| | 34363 | readonly type: "functionCallOutput"; |
| | 34364 | } |
| 26902 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 34365 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 26903 | | { | 34366 | | { |
| 26904 | readonly content?: ReadonlyArray<string>; | 34367 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -26914,7 +34377,9 @@ export type V2ItemStartedNotification__ThreadItem = | ... | @@ -26914,7 +34377,9 @@ export type V2ItemStartedNotification__ThreadItem = |
| 26914 | readonly durationMs?: number | null; | 34377 | readonly durationMs?: number | null; |
| 26915 | readonly exitCode?: number | null; | 34378 | readonly exitCode?: number | null; |
| 26916 | readonly id: string; | 34379 | readonly id: string; |
| | 34380 | readonly pluginId?: string | null; |
| 26917 | readonly processId?: string | null; | 34381 | readonly processId?: string | null; |
| | 34382 | readonly scriptPath?: string | null; |
| 26918 | readonly source?: V2ItemStartedNotification__CommandExecutionSource; | 34383 | readonly source?: V2ItemStartedNotification__CommandExecutionSource; |
| 26919 | readonly status: V2ItemStartedNotification__CommandExecutionStatus; | 34384 | readonly status: V2ItemStartedNotification__CommandExecutionStatus; |
| 26920 | readonly type: "commandExecution"; | 34385 | readonly type: "commandExecution"; |
| ... | @@ -26932,7 +34397,9 @@ export type V2ItemStartedNotification__ThreadItem = | ... | @@ -26932,7 +34397,9 @@ export type V2ItemStartedNotification__ThreadItem = |
| 26932 | readonly error?: V2ItemStartedNotification__McpToolCallError | null; | 34397 | readonly error?: V2ItemStartedNotification__McpToolCallError | null; |
| 26933 | readonly id: string; | 34398 | readonly id: string; |
| 26934 | readonly mcpAppResourceUri?: string | null; | 34399 | readonly mcpAppResourceUri?: string | null; |
| | 34400 | readonly mcpAppUi?: V2ItemStartedNotification__McpAppUi | null; |
| 26935 | readonly pluginId?: string | null; | 34401 | readonly pluginId?: string | null; |
| | 34402 | readonly readOnlyHint?: boolean | null; |
| 26936 | readonly result?: V2ItemStartedNotification__McpToolCallResult | null; | 34403 | readonly result?: V2ItemStartedNotification__McpToolCallResult | null; |
| 26937 | readonly server: string; | 34404 | readonly server: string; |
| 26938 | readonly status: V2ItemStartedNotification__McpToolCallStatus; | 34405 | readonly status: V2ItemStartedNotification__McpToolCallStatus; |
| ... | @@ -26983,11 +34450,13 @@ export type V2ItemStartedNotification__ThreadItem = | ... | @@ -26983,11 +34450,13 @@ export type V2ItemStartedNotification__ThreadItem = |
| 26983 | } | 34450 | } |
| 26984 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 34451 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 26985 | | { | 34452 | | { |
| | 34453 | readonly failure?: V2ItemStartedNotification__ImageGenerationFailure | null; |
| 26986 | readonly id: string; | 34454 | readonly id: string; |
| 26987 | readonly result: string; | 34455 | readonly result: string; |
| 26988 | readonly revisedPrompt?: string | null; | 34456 | readonly revisedPrompt?: string | null; |
| 26989 | readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null; | 34457 | readonly savedPath?: V2ItemStartedNotification__AbsolutePathBuf | null; |
| 26990 | readonly status: string; | 34458 | readonly status: string; |
| | 34459 | readonly transparentBackground?: boolean | null; |
| 26991 | readonly type: "imageGeneration"; | 34460 | readonly type: "imageGeneration"; |
| 26992 | } | 34461 | } |
| 26993 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 34462 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| ... | @@ -27007,6 +34476,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27007,6 +34476,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27007 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 34476 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 27008 | }).annotate({ title: "HookPromptThreadItem" }), | 34477 | }).annotate({ title: "HookPromptThreadItem" }), |
| 27009 | Schema.Struct({ | 34478 | Schema.Struct({ |
| | 34479 | delivery: Schema.optionalKey( |
| | 34480 | Schema.Union([V2ItemStartedNotification__AgentMessageDelivery, Schema.Null]), |
| | 34481 | ), |
| 27010 | id: Schema.String, | 34482 | id: Schema.String, |
| 27011 | memoryCitation: Schema.optionalKey( | 34483 | memoryCitation: Schema.optionalKey( |
| 27012 | Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]), | 34484 | Schema.Union([V2ItemStartedNotification__MemoryCitation, Schema.Null]), |
| ... | @@ -27014,21 +34486,24 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27014,21 +34486,24 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27014 | phase: Schema.optionalKey( | 34486 | phase: Schema.optionalKey( |
| 27015 | Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]), | 34487 | Schema.Union([V2ItemStartedNotification__MessagePhase, Schema.Null]), |
| 27016 | ), | 34488 | ), |
| 27017 | text: Schema.String, | | |
| 27018 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 27019 | questions: Schema.optionalKey( | 34489 | questions: Schema.optionalKey( |
| 27020 | Schema.Union([ | 34490 | Schema.Union([ |
| 27021 | Schema.Array( | 34491 | Schema.Array(V2ItemStartedNotification__AsyncUserInputQuestion), |
| 27022 | Schema.Struct({ | | |
| 27023 | title: Schema.String, | | |
| 27024 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 27025 | }), | | |
| 27026 | ), | | |
| 27027 | Schema.Null, | 34492 | Schema.Null, |
| 27028 | ]), | 34493 | ]), |
| 27029 | ), | 34494 | ), |
| | 34495 | text: Schema.String, |
| 27030 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 34496 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 27031 | }).annotate({ title: "AgentMessageThreadItem" }), | 34497 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 34498 | Schema.Struct({ |
| | 34499 | id: Schema.String, |
| | 34500 | name: Schema.String, |
| | 34501 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 34502 | output: V2ItemStartedNotification__FunctionCallOutputBody, |
| | 34503 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 34504 | title: "FunctionCallOutputThreadItemType", |
| | 34505 | }), |
| | 34506 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 27032 | Schema.Struct({ | 34507 | Schema.Struct({ |
| 27033 | id: Schema.String, | 34508 | id: Schema.String, |
| 27034 | text: Schema.String, | 34509 | text: Schema.String, |
| ... | @@ -27081,6 +34556,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27081,6 +34556,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27081 | ]), | 34556 | ]), |
| 27082 | ), | 34557 | ), |
| 27083 | id: Schema.String, | 34558 | id: Schema.String, |
| | 34559 | pluginId: Schema.optionalKey( |
| | 34560 | Schema.Union([ |
| | 34561 | Schema.String.annotate({ |
| | 34562 | description: |
| | 34563 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 34564 | }), |
| | 34565 | Schema.Null, |
| | 34566 | ]), |
| | 34567 | ), |
| 27084 | processId: Schema.optionalKey( | 34568 | processId: Schema.optionalKey( |
| 27085 | Schema.Union([ | 34569 | Schema.Union([ |
| 27086 | Schema.String.annotate({ | 34570 | Schema.String.annotate({ |
| ... | @@ -27089,6 +34573,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27089,6 +34573,15 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27089 | Schema.Null, | 34573 | Schema.Null, |
| 27090 | ]), | 34574 | ]), |
| 27091 | ), | 34575 | ), |
| | 34576 | scriptPath: Schema.optionalKey( |
| | 34577 | Schema.Union([ |
| | 34578 | Schema.String.annotate({ |
| | 34579 | description: |
| | 34580 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 34581 | }), |
| | 34582 | Schema.Null, |
| | 34583 | ]), |
| | 34584 | ), |
| 27092 | source: Schema.optionalKey( | 34585 | source: Schema.optionalKey( |
| 27093 | Schema.suspend( | 34586 | Schema.suspend( |
| 27094 | (): Schema.Codec<V2ItemStartedNotification__CommandExecutionSource> => | 34587 | (): Schema.Codec<V2ItemStartedNotification__CommandExecutionSource> => |
| ... | @@ -27127,12 +34620,20 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27127,12 +34620,20 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27127 | mcpAppResourceUri: Schema.optionalKey( | 34620 | mcpAppResourceUri: Schema.optionalKey( |
| 27128 | Schema.Union([ | 34621 | Schema.Union([ |
| 27129 | Schema.String.annotate({ | 34622 | Schema.String.annotate({ |
| 27130 | description: "Deprecated: use `appContext.resourceUri` instead.", | 34623 | description: |
| | 34624 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 27131 | }), | 34625 | }), |
| 27132 | Schema.Null, | 34626 | Schema.Null, |
| 27133 | ]), | 34627 | ]), |
| 27134 | ), | 34628 | ), |
| | 34629 | mcpAppUi: Schema.optionalKey( |
| | 34630 | Schema.Union([V2ItemStartedNotification__McpAppUi, Schema.Null]).annotate({ |
| | 34631 | description: |
| | 34632 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 34633 | }), |
| | 34634 | ), |
| 27135 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 34635 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 34636 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27136 | result: Schema.optionalKey( | 34637 | result: Schema.optionalKey( |
| 27137 | Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]), | 34638 | Schema.Union([V2ItemStartedNotification__McpToolCallResult, Schema.Null]), |
| 27138 | ), | 34639 | ), |
| ... | @@ -27257,6 +34758,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27257,6 +34758,9 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27257 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 34758 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 27258 | }), | 34759 | }), |
| 27259 | Schema.Struct({ | 34760 | Schema.Struct({ |
| | 34761 | failure: Schema.optionalKey( |
| | 34762 | Schema.Union([V2ItemStartedNotification__ImageGenerationFailure, Schema.Null]), |
| | 34763 | ), |
| 27260 | id: Schema.String, | 34764 | id: Schema.String, |
| 27261 | result: Schema.String, | 34765 | result: Schema.String, |
| 27262 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 34766 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -27264,6 +34768,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27264,6 +34768,7 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27264 | Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]), | 34768 | Schema.Union([V2ItemStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 27265 | ), | 34769 | ), |
| 27266 | status: Schema.String, | 34770 | status: Schema.String, |
| | 34771 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27267 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 34772 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 27268 | }).annotate({ title: "ImageGenerationThreadItem" }), | 34773 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 27269 | Schema.Struct({ | 34774 | Schema.Struct({ |
| ... | @@ -27293,11 +34798,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( | ... | @@ -27293,11 +34798,14 @@ export const V2ItemStartedNotification__ThreadItem = Schema.Union( |
| 27293 | export type V2PluginInstalledResponse__PluginSummary = { | 34798 | export type V2PluginInstalledResponse__PluginSummary = { |
| 27294 | readonly authPolicy: V2PluginInstalledResponse__PluginAuthPolicy; | 34799 | readonly authPolicy: V2PluginInstalledResponse__PluginAuthPolicy; |
| 27295 | readonly availability?: V2PluginInstalledResponse__PluginAvailability; | 34800 | readonly availability?: V2PluginInstalledResponse__PluginAvailability; |
| | 34801 | readonly disabledReason?: V2PluginInstalledResponse__PluginDisabledReason | null; |
| | 34802 | readonly eligiblePlanTypes?: ReadonlyArray<string> | null; |
| 27296 | readonly enabled: boolean; | 34803 | readonly enabled: boolean; |
| 27297 | readonly id: string; | 34804 | readonly id: string; |
| 27298 | readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy; | 34805 | readonly installPolicy: V2PluginInstalledResponse__PluginInstallPolicy; |
| 27299 | readonly installPolicySource?: V2PluginInstalledResponse__PluginInstallPolicySource | null; | 34806 | readonly installPolicySource?: V2PluginInstalledResponse__PluginInstallPolicySource | null; |
| 27300 | readonly installed: boolean; | 34807 | readonly installed: boolean; |
| | 34808 | readonly installedAt?: number | null; |
| 27301 | readonly interface?: V2PluginInstalledResponse__PluginInterface | null; | 34809 | readonly interface?: V2PluginInstalledResponse__PluginInterface | null; |
| 27302 | readonly keywords?: ReadonlyArray<string>; | 34810 | readonly keywords?: ReadonlyArray<string>; |
| 27303 | readonly localVersion?: string | null; | 34811 | readonly localVersion?: string | null; |
| ... | @@ -27319,6 +34827,19 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ | ... | @@ -27319,6 +34827,19 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ |
| 27319 | default: "AVAILABLE", | 34827 | default: "AVAILABLE", |
| 27320 | }), | 34828 | }), |
| 27321 | ), | 34829 | ), |
| | 34830 | disabledReason: Schema.optionalKey( |
| | 34831 | Schema.Union([V2PluginInstalledResponse__PluginDisabledReason, Schema.Null]).annotate({ |
| | 34832 | description: "Why the remote plugin is unavailable, when provided by plugin-service.", |
| | 34833 | }), |
| | 34834 | ), |
| | 34835 | eligiblePlanTypes: Schema.optionalKey( |
| | 34836 | Schema.Union([ |
| | 34837 | Schema.Array(Schema.String).annotate({ |
| | 34838 | description: "Raw plugin-service plan identifiers eligible to install the plugin.", |
| | 34839 | }), |
| | 34840 | Schema.Null, |
| | 34841 | ]), |
| | 34842 | ), |
| 27322 | enabled: Schema.Boolean, | 34843 | enabled: Schema.Boolean, |
| 27323 | id: Schema.String, | 34844 | id: Schema.String, |
| 27324 | installPolicy: V2PluginInstalledResponse__PluginInstallPolicy, | 34845 | installPolicy: V2PluginInstalledResponse__PluginInstallPolicy, |
| ... | @@ -27326,6 +34847,16 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ | ... | @@ -27326,6 +34847,16 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ |
| 27326 | Schema.Union([V2PluginInstalledResponse__PluginInstallPolicySource, Schema.Null]), | 34847 | Schema.Union([V2PluginInstalledResponse__PluginInstallPolicySource, Schema.Null]), |
| 27327 | ), | 34848 | ), |
| 27328 | installed: Schema.Boolean, | 34849 | installed: Schema.Boolean, |
| | 34850 | installedAt: Schema.optionalKey( |
| | 34851 | Schema.Union([ |
| | 34852 | Schema.Number.annotate({ |
| | 34853 | description: |
| | 34854 | "Unix timestamp in seconds when the remote plugin was installed, when available.", |
| | 34855 | format: "int64", |
| | 34856 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 34857 | Schema.Null, |
| | 34858 | ]), |
| | 34859 | ), |
| 27329 | interface: Schema.optionalKey( | 34860 | interface: Schema.optionalKey( |
| 27330 | Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]), | 34861 | Schema.Union([V2PluginInstalledResponse__PluginInterface, Schema.Null]), |
| 27331 | ), | 34862 | ), |
| ... | @@ -27365,11 +34896,14 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ | ... | @@ -27365,11 +34896,14 @@ export const V2PluginInstalledResponse__PluginSummary = Schema.Struct({ |
| 27365 | export type V2PluginListResponse__PluginSummary = { | 34896 | export type V2PluginListResponse__PluginSummary = { |
| 27366 | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; | 34897 | readonly authPolicy: V2PluginListResponse__PluginAuthPolicy; |
| 27367 | readonly availability?: V2PluginListResponse__PluginAvailability; | 34898 | readonly availability?: V2PluginListResponse__PluginAvailability; |
| | 34899 | readonly disabledReason?: V2PluginListResponse__PluginDisabledReason | null; |
| | 34900 | readonly eligiblePlanTypes?: ReadonlyArray<string> | null; |
| 27368 | readonly enabled: boolean; | 34901 | readonly enabled: boolean; |
| 27369 | readonly id: string; | 34902 | readonly id: string; |
| 27370 | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; | 34903 | readonly installPolicy: V2PluginListResponse__PluginInstallPolicy; |
| 27371 | readonly installPolicySource?: V2PluginListResponse__PluginInstallPolicySource | null; | 34904 | readonly installPolicySource?: V2PluginListResponse__PluginInstallPolicySource | null; |
| 27372 | readonly installed: boolean; | 34905 | readonly installed: boolean; |
| | 34906 | readonly installedAt?: number | null; |
| 27373 | readonly interface?: V2PluginListResponse__PluginInterface | null; | 34907 | readonly interface?: V2PluginListResponse__PluginInterface | null; |
| 27374 | readonly keywords?: ReadonlyArray<string>; | 34908 | readonly keywords?: ReadonlyArray<string>; |
| 27375 | readonly localVersion?: string | null; | 34909 | readonly localVersion?: string | null; |
| ... | @@ -27391,6 +34925,19 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({ | ... | @@ -27391,6 +34925,19 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| 27391 | default: "AVAILABLE", | 34925 | default: "AVAILABLE", |
| 27392 | }), | 34926 | }), |
| 27393 | ), | 34927 | ), |
| | 34928 | disabledReason: Schema.optionalKey( |
| | 34929 | Schema.Union([V2PluginListResponse__PluginDisabledReason, Schema.Null]).annotate({ |
| | 34930 | description: "Why the remote plugin is unavailable, when provided by plugin-service.", |
| | 34931 | }), |
| | 34932 | ), |
| | 34933 | eligiblePlanTypes: Schema.optionalKey( |
| | 34934 | Schema.Union([ |
| | 34935 | Schema.Array(Schema.String).annotate({ |
| | 34936 | description: "Raw plugin-service plan identifiers eligible to install the plugin.", |
| | 34937 | }), |
| | 34938 | Schema.Null, |
| | 34939 | ]), |
| | 34940 | ), |
| 27394 | enabled: Schema.Boolean, | 34941 | enabled: Schema.Boolean, |
| 27395 | id: Schema.String, | 34942 | id: Schema.String, |
| 27396 | installPolicy: V2PluginListResponse__PluginInstallPolicy, | 34943 | installPolicy: V2PluginListResponse__PluginInstallPolicy, |
| ... | @@ -27398,6 +34945,16 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({ | ... | @@ -27398,6 +34945,16 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| 27398 | Schema.Union([V2PluginListResponse__PluginInstallPolicySource, Schema.Null]), | 34945 | Schema.Union([V2PluginListResponse__PluginInstallPolicySource, Schema.Null]), |
| 27399 | ), | 34946 | ), |
| 27400 | installed: Schema.Boolean, | 34947 | installed: Schema.Boolean, |
| | 34948 | installedAt: Schema.optionalKey( |
| | 34949 | Schema.Union([ |
| | 34950 | Schema.Number.annotate({ |
| | 34951 | description: |
| | 34952 | "Unix timestamp in seconds when the remote plugin was installed, when available.", |
| | 34953 | format: "int64", |
| | 34954 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 34955 | Schema.Null, |
| | 34956 | ]), |
| | 34957 | ), |
| 27401 | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), | 34958 | interface: Schema.optionalKey(Schema.Union([V2PluginListResponse__PluginInterface, Schema.Null])), |
| 27402 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 34959 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 27403 | localVersion: Schema.optionalKey( | 34960 | localVersion: Schema.optionalKey( |
| ... | @@ -27435,11 +34992,14 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({ | ... | @@ -27435,11 +34992,14 @@ export const V2PluginListResponse__PluginSummary = Schema.Struct({ |
| 27435 | export type V2PluginReadResponse__PluginSummary = { | 34992 | export type V2PluginReadResponse__PluginSummary = { |
| 27436 | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; | 34993 | readonly authPolicy: V2PluginReadResponse__PluginAuthPolicy; |
| 27437 | readonly availability?: V2PluginReadResponse__PluginAvailability; | 34994 | readonly availability?: V2PluginReadResponse__PluginAvailability; |
| | 34995 | readonly disabledReason?: V2PluginReadResponse__PluginDisabledReason | null; |
| | 34996 | readonly eligiblePlanTypes?: ReadonlyArray<string> | null; |
| 27438 | readonly enabled: boolean; | 34997 | readonly enabled: boolean; |
| 27439 | readonly id: string; | 34998 | readonly id: string; |
| 27440 | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; | 34999 | readonly installPolicy: V2PluginReadResponse__PluginInstallPolicy; |
| 27441 | readonly installPolicySource?: V2PluginReadResponse__PluginInstallPolicySource | null; | 35000 | readonly installPolicySource?: V2PluginReadResponse__PluginInstallPolicySource | null; |
| 27442 | readonly installed: boolean; | 35001 | readonly installed: boolean; |
| | 35002 | readonly installedAt?: number | null; |
| 27443 | readonly interface?: V2PluginReadResponse__PluginInterface | null; | 35003 | readonly interface?: V2PluginReadResponse__PluginInterface | null; |
| 27444 | readonly keywords?: ReadonlyArray<string>; | 35004 | readonly keywords?: ReadonlyArray<string>; |
| 27445 | readonly localVersion?: string | null; | 35005 | readonly localVersion?: string | null; |
| ... | @@ -27461,6 +35021,19 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({ | ... | @@ -27461,6 +35021,19 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| 27461 | default: "AVAILABLE", | 35021 | default: "AVAILABLE", |
| 27462 | }), | 35022 | }), |
| 27463 | ), | 35023 | ), |
| | 35024 | disabledReason: Schema.optionalKey( |
| | 35025 | Schema.Union([V2PluginReadResponse__PluginDisabledReason, Schema.Null]).annotate({ |
| | 35026 | description: "Why the remote plugin is unavailable, when provided by plugin-service.", |
| | 35027 | }), |
| | 35028 | ), |
| | 35029 | eligiblePlanTypes: Schema.optionalKey( |
| | 35030 | Schema.Union([ |
| | 35031 | Schema.Array(Schema.String).annotate({ |
| | 35032 | description: "Raw plugin-service plan identifiers eligible to install the plugin.", |
| | 35033 | }), |
| | 35034 | Schema.Null, |
| | 35035 | ]), |
| | 35036 | ), |
| 27464 | enabled: Schema.Boolean, | 35037 | enabled: Schema.Boolean, |
| 27465 | id: Schema.String, | 35038 | id: Schema.String, |
| 27466 | installPolicy: V2PluginReadResponse__PluginInstallPolicy, | 35039 | installPolicy: V2PluginReadResponse__PluginInstallPolicy, |
| ... | @@ -27468,6 +35041,16 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({ | ... | @@ -27468,6 +35041,16 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| 27468 | Schema.Union([V2PluginReadResponse__PluginInstallPolicySource, Schema.Null]), | 35041 | Schema.Union([V2PluginReadResponse__PluginInstallPolicySource, Schema.Null]), |
| 27469 | ), | 35042 | ), |
| 27470 | installed: Schema.Boolean, | 35043 | installed: Schema.Boolean, |
| | 35044 | installedAt: Schema.optionalKey( |
| | 35045 | Schema.Union([ |
| | 35046 | Schema.Number.annotate({ |
| | 35047 | description: |
| | 35048 | "Unix timestamp in seconds when the remote plugin was installed, when available.", |
| | 35049 | format: "int64", |
| | 35050 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35051 | Schema.Null, |
| | 35052 | ]), |
| | 35053 | ), |
| 27471 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), | 35054 | interface: Schema.optionalKey(Schema.Union([V2PluginReadResponse__PluginInterface, Schema.Null])), |
| 27472 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), | 35055 | keywords: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| 27473 | localVersion: Schema.optionalKey( | 35056 | localVersion: Schema.optionalKey( |
| ... | @@ -27505,11 +35088,14 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({ | ... | @@ -27505,11 +35088,14 @@ export const V2PluginReadResponse__PluginSummary = Schema.Struct({ |
| 27505 | export type V2PluginShareListResponse__PluginSummary = { | 35088 | export type V2PluginShareListResponse__PluginSummary = { |
| 27506 | readonly authPolicy: V2PluginShareListResponse__PluginAuthPolicy; | 35089 | readonly authPolicy: V2PluginShareListResponse__PluginAuthPolicy; |
| 27507 | readonly availability?: V2PluginShareListResponse__PluginAvailability; | 35090 | readonly availability?: V2PluginShareListResponse__PluginAvailability; |
| | 35091 | readonly disabledReason?: V2PluginShareListResponse__PluginDisabledReason | null; |
| | 35092 | readonly eligiblePlanTypes?: ReadonlyArray<string> | null; |
| 27508 | readonly enabled: boolean; | 35093 | readonly enabled: boolean; |
| 27509 | readonly id: string; | 35094 | readonly id: string; |
| 27510 | readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy; | 35095 | readonly installPolicy: V2PluginShareListResponse__PluginInstallPolicy; |
| 27511 | readonly installPolicySource?: V2PluginShareListResponse__PluginInstallPolicySource | null; | 35096 | readonly installPolicySource?: V2PluginShareListResponse__PluginInstallPolicySource | null; |
| 27512 | readonly installed: boolean; | 35097 | readonly installed: boolean; |
| | 35098 | readonly installedAt?: number | null; |
| 27513 | readonly interface?: V2PluginShareListResponse__PluginInterface | null; | 35099 | readonly interface?: V2PluginShareListResponse__PluginInterface | null; |
| 27514 | readonly keywords?: ReadonlyArray<string>; | 35100 | readonly keywords?: ReadonlyArray<string>; |
| 27515 | readonly localVersion?: string | null; | 35101 | readonly localVersion?: string | null; |
| ... | @@ -27531,6 +35117,19 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({ | ... | @@ -27531,6 +35117,19 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({ |
| 27531 | default: "AVAILABLE", | 35117 | default: "AVAILABLE", |
| 27532 | }), | 35118 | }), |
| 27533 | ), | 35119 | ), |
| | 35120 | disabledReason: Schema.optionalKey( |
| | 35121 | Schema.Union([V2PluginShareListResponse__PluginDisabledReason, Schema.Null]).annotate({ |
| | 35122 | description: "Why the remote plugin is unavailable, when provided by plugin-service.", |
| | 35123 | }), |
| | 35124 | ), |
| | 35125 | eligiblePlanTypes: Schema.optionalKey( |
| | 35126 | Schema.Union([ |
| | 35127 | Schema.Array(Schema.String).annotate({ |
| | 35128 | description: "Raw plugin-service plan identifiers eligible to install the plugin.", |
| | 35129 | }), |
| | 35130 | Schema.Null, |
| | 35131 | ]), |
| | 35132 | ), |
| 27534 | enabled: Schema.Boolean, | 35133 | enabled: Schema.Boolean, |
| 27535 | id: Schema.String, | 35134 | id: Schema.String, |
| 27536 | installPolicy: V2PluginShareListResponse__PluginInstallPolicy, | 35135 | installPolicy: V2PluginShareListResponse__PluginInstallPolicy, |
| ... | @@ -27538,6 +35137,16 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({ | ... | @@ -27538,6 +35137,16 @@ export const V2PluginShareListResponse__PluginSummary = Schema.Struct({ |
| 27538 | Schema.Union([V2PluginShareListResponse__PluginInstallPolicySource, Schema.Null]), | 35137 | Schema.Union([V2PluginShareListResponse__PluginInstallPolicySource, Schema.Null]), |
| 27539 | ), | 35138 | ), |
| 27540 | installed: Schema.Boolean, | 35139 | installed: Schema.Boolean, |
| | 35140 | installedAt: Schema.optionalKey( |
| | 35141 | Schema.Union([ |
| | 35142 | Schema.Number.annotate({ |
| | 35143 | description: |
| | 35144 | "Unix timestamp in seconds when the remote plugin was installed, when available.", |
| | 35145 | format: "int64", |
| | 35146 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35147 | Schema.Null, |
| | 35148 | ]), |
| | 35149 | ), |
| 27541 | interface: Schema.optionalKey( | 35150 | interface: Schema.optionalKey( |
| 27542 | Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]), | 35151 | Schema.Union([V2PluginShareListResponse__PluginInterface, Schema.Null]), |
| 27543 | ), | 35152 | ), |
| ... | @@ -27610,6 +35219,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem = | ... | @@ -27610,6 +35219,7 @@ export type V2RawResponseItemCompletedNotification__ResponseItem = |
| 27610 | | { | 35219 | | { |
| 27611 | readonly arguments: string; | 35220 | readonly arguments: string; |
| 27612 | readonly call_id: string; | 35221 | readonly call_id: string; |
| | 35222 | readonly encrypted_function_args?: ReadonlyArray<string> | null; |
| 27613 | readonly id?: string | null; | 35223 | readonly id?: string | null; |
| 27614 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 35224 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 27615 | readonly name: string; | 35225 | readonly name: string; |
| ... | @@ -27626,9 +35236,11 @@ export type V2RawResponseItemCompletedNotification__ResponseItem = | ... | @@ -27626,9 +35236,11 @@ export type V2RawResponseItemCompletedNotification__ResponseItem = |
| 27626 | readonly type: "tool_search_call"; | 35236 | readonly type: "tool_search_call"; |
| 27627 | } | 35237 | } |
| 27628 | | { | 35238 | | { |
| 27629 | readonly call_id: string; | 35239 | readonly call_id?: string | null; |
| 27630 | readonly id?: string | null; | 35240 | readonly id?: string | null; |
| 27631 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 35241 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| | 35242 | readonly name?: string | null; |
| | 35243 | readonly namespace?: string | null; |
| 27632 | readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody; | 35244 | readonly output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody; |
| 27633 | readonly type: "function_call_output"; | 35245 | readonly type: "function_call_output"; |
| 27634 | } | 35246 | } |
| ... | @@ -27680,6 +35292,10 @@ export type V2RawResponseItemCompletedNotification__ResponseItem = | ... | @@ -27680,6 +35292,10 @@ export type V2RawResponseItemCompletedNotification__ResponseItem = |
| 27680 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; | 35292 | readonly internal_chat_message_metadata_passthrough?: V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough | null; |
| 27681 | readonly type: "compaction"; | 35293 | readonly type: "compaction"; |
| 27682 | } | 35294 | } |
| | 35295 | | { |
| | 35296 | readonly reasoning: V2RawResponseItemCompletedNotification__ConfigurationReasoning; |
| | 35297 | readonly type: "configuration_update"; |
| | 35298 | } |
| 27683 | | { readonly type: "compaction_trigger" } | 35299 | | { readonly type: "compaction_trigger" } |
| 27684 | | { | 35300 | | { |
| 27685 | readonly encrypted_content?: string | null; | 35301 | readonly encrypted_content?: string | null; |
| ... | @@ -27711,242 +35327,1181 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union | ... | @@ -27711,242 +35327,1181 @@ export const V2RawResponseItemCompletedNotification__ResponseItem = Schema.Union |
| 27711 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 35327 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27712 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 35328 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 27713 | Schema.Union([ | 35329 | Schema.Union([ |
| 27714 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 35330 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35331 | Schema.Null, |
| | 35332 | ]), |
| | 35333 | ), |
| | 35334 | recipient: Schema.String, |
| | 35335 | type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }), |
| | 35336 | }).annotate({ title: "AgentMessageResponseItem" }), |
| | 35337 | Schema.Struct({ |
| | 35338 | content: Schema.optionalKey( |
| | 35339 | Schema.Union([ |
| | 35340 | Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemContent), |
| | 35341 | Schema.Null, |
| | 35342 | ]), |
| | 35343 | ), |
| | 35344 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35345 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35346 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35347 | Schema.Union([ |
| | 35348 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35349 | Schema.Null, |
| | 35350 | ]), |
| | 35351 | ), |
| | 35352 | summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary), |
| | 35353 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }), |
| | 35354 | }).annotate({ title: "ReasoningResponseItem" }), |
| | 35355 | Schema.Struct({ |
| | 35356 | action: V2RawResponseItemCompletedNotification__LocalShellAction, |
| | 35357 | call_id: Schema.optionalKey( |
| | 35358 | Schema.Union([ |
| | 35359 | Schema.String.annotate({ description: "Set when using the Responses API." }), |
| | 35360 | Schema.Null, |
| | 35361 | ]), |
| | 35362 | ), |
| | 35363 | id: Schema.optionalKey( |
| | 35364 | Schema.Union([ |
| | 35365 | Schema.String.annotate({ |
| | 35366 | description: "Legacy id field retained for compatibility with older payloads.", |
| | 35367 | }), |
| | 35368 | Schema.Null, |
| | 35369 | ]), |
| | 35370 | ), |
| | 35371 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35372 | Schema.Union([ |
| | 35373 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35374 | Schema.Null, |
| | 35375 | ]), |
| | 35376 | ), |
| | 35377 | status: V2RawResponseItemCompletedNotification__LocalShellStatus, |
| | 35378 | type: Schema.Literal("local_shell_call").annotate({ |
| | 35379 | title: "LocalShellCallResponseItemType", |
| | 35380 | }), |
| | 35381 | }).annotate({ title: "LocalShellCallResponseItem" }), |
| | 35382 | Schema.Struct({ |
| | 35383 | arguments: Schema.String, |
| | 35384 | call_id: Schema.String, |
| | 35385 | encrypted_function_args: Schema.optionalKey( |
| | 35386 | Schema.Union([Schema.Array(Schema.String), Schema.Null]), |
| | 35387 | ), |
| | 35388 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35389 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35390 | Schema.Union([ |
| | 35391 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35392 | Schema.Null, |
| | 35393 | ]), |
| | 35394 | ), |
| | 35395 | name: Schema.String, |
| | 35396 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35397 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), |
| | 35398 | }).annotate({ title: "FunctionCallResponseItem" }), |
| | 35399 | Schema.Struct({ |
| | 35400 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 35401 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35402 | execution: Schema.String, |
| | 35403 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35404 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35405 | Schema.Union([ |
| | 35406 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35407 | Schema.Null, |
| | 35408 | ]), |
| | 35409 | ), |
| | 35410 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35411 | type: Schema.Literal("tool_search_call").annotate({ |
| | 35412 | title: "ToolSearchCallResponseItemType", |
| | 35413 | }), |
| | 35414 | }).annotate({ title: "ToolSearchCallResponseItem" }), |
| | 35415 | Schema.Struct({ |
| | 35416 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35417 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35418 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35419 | Schema.Union([ |
| | 35420 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35421 | Schema.Null, |
| | 35422 | ]), |
| | 35423 | ), |
| | 35424 | name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35425 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35426 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, |
| | 35427 | type: Schema.Literal("function_call_output").annotate({ |
| | 35428 | title: "FunctionCallOutputResponseItemType", |
| | 35429 | }), |
| | 35430 | }).annotate({ title: "FunctionCallOutputResponseItem" }), |
| | 35431 | Schema.Struct({ |
| | 35432 | call_id: Schema.String, |
| | 35433 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35434 | input: Schema.String, |
| | 35435 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35436 | Schema.Union([ |
| | 35437 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35438 | Schema.Null, |
| | 35439 | ]), |
| | 35440 | ), |
| | 35441 | name: Schema.String, |
| | 35442 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35443 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35444 | type: Schema.Literal("custom_tool_call").annotate({ |
| | 35445 | title: "CustomToolCallResponseItemType", |
| | 35446 | }), |
| | 35447 | }).annotate({ title: "CustomToolCallResponseItem" }), |
| | 35448 | Schema.Struct({ |
| | 35449 | call_id: Schema.String, |
| | 35450 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35451 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35452 | Schema.Union([ |
| | 35453 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35454 | Schema.Null, |
| | 35455 | ]), |
| | 35456 | ), |
| | 35457 | name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35458 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, |
| | 35459 | type: Schema.Literal("custom_tool_call_output").annotate({ |
| | 35460 | title: "CustomToolCallOutputResponseItemType", |
| | 35461 | }), |
| | 35462 | }).annotate({ title: "CustomToolCallOutputResponseItem" }), |
| | 35463 | Schema.Struct({ |
| | 35464 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35465 | execution: Schema.String, |
| | 35466 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35467 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35468 | Schema.Union([ |
| | 35469 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35470 | Schema.Null, |
| | 35471 | ]), |
| | 35472 | ), |
| | 35473 | status: Schema.String, |
| | 35474 | tools: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), |
| | 35475 | type: Schema.Literal("tool_search_output").annotate({ |
| | 35476 | title: "ToolSearchOutputResponseItemType", |
| | 35477 | }), |
| | 35478 | }).annotate({ title: "ToolSearchOutputResponseItem" }), |
| | 35479 | Schema.Struct({ |
| | 35480 | action: Schema.optionalKey( |
| | 35481 | Schema.Union([ |
| | 35482 | V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction, |
| | 35483 | Schema.Null, |
| | 35484 | ]), |
| | 35485 | ), |
| | 35486 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35487 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35488 | Schema.Union([ |
| | 35489 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35490 | Schema.Null, |
| | 35491 | ]), |
| | 35492 | ), |
| | 35493 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35494 | type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }), |
| | 35495 | }).annotate({ title: "WebSearchCallResponseItem" }), |
| | 35496 | Schema.Struct({ |
| | 35497 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35498 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35499 | Schema.Union([ |
| | 35500 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35501 | Schema.Null, |
| | 35502 | ]), |
| | 35503 | ), |
| | 35504 | result: Schema.String, |
| | 35505 | revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35506 | status: Schema.String, |
| | 35507 | type: Schema.Literal("image_generation_call").annotate({ |
| | 35508 | title: "ImageGenerationCallResponseItemType", |
| | 35509 | }), |
| | 35510 | }).annotate({ title: "ImageGenerationCallResponseItem" }), |
| | 35511 | Schema.Struct({ |
| | 35512 | encrypted_content: Schema.String, |
| | 35513 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35514 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35515 | Schema.Union([ |
| | 35516 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35517 | Schema.Null, |
| | 35518 | ]), |
| | 35519 | ), |
| | 35520 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), |
| | 35521 | }).annotate({ title: "CompactionResponseItem" }), |
| | 35522 | Schema.Struct({ |
| | 35523 | reasoning: V2RawResponseItemCompletedNotification__ConfigurationReasoning, |
| | 35524 | type: Schema.Literal("configuration_update").annotate({ |
| | 35525 | title: "ConfigurationUpdateResponseItemType", |
| | 35526 | }), |
| | 35527 | }).annotate({ |
| | 35528 | title: "ConfigurationUpdateResponseItem", |
| | 35529 | description: "A durable input control interpreted by the backend at its position in history.", |
| | 35530 | }), |
| | 35531 | Schema.Struct({ |
| | 35532 | type: Schema.Literal("compaction_trigger").annotate({ |
| | 35533 | title: "CompactionTriggerResponseItemType", |
| | 35534 | }), |
| | 35535 | }).annotate({ title: "CompactionTriggerResponseItem" }), |
| | 35536 | Schema.Struct({ |
| | 35537 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35538 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35539 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| | 35540 | Schema.Union([ |
| | 35541 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, |
| | 35542 | Schema.Null, |
| | 35543 | ]), |
| | 35544 | ), |
| | 35545 | type: Schema.Literal("context_compaction").annotate({ |
| | 35546 | title: "ContextCompactionResponseItemType", |
| | 35547 | }), |
| | 35548 | }).annotate({ title: "ContextCompactionResponseItem" }), |
| | 35549 | Schema.Struct({ |
| | 35550 | type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }), |
| | 35551 | }).annotate({ title: "OtherResponseItem" }), |
| | 35552 | ], |
| | 35553 | { mode: "oneOf" }, |
| | 35554 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponseItem" }); |
| | 35555 | |
| | 35556 | export type V2ReviewStartResponse__ThreadItem = |
| | 35557 | | { |
| | 35558 | readonly clientId?: string | null; |
| | 35559 | readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>; |
| | 35560 | readonly id: string; |
| | 35561 | readonly type: "userMessage"; |
| | 35562 | } |
| | 35563 | | { |
| | 35564 | readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>; |
| | 35565 | readonly id: string; |
| | 35566 | readonly type: "hookPrompt"; |
| | 35567 | } |
| | 35568 | | { |
| | 35569 | readonly delivery?: V2ReviewStartResponse__AgentMessageDelivery | null; |
| | 35570 | readonly id: string; |
| | 35571 | readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null; |
| | 35572 | readonly phase?: V2ReviewStartResponse__MessagePhase | null; |
| | 35573 | readonly questions?: ReadonlyArray<V2ReviewStartResponse__AsyncUserInputQuestion> | null; |
| | 35574 | readonly text: string; |
| | 35575 | readonly type: "agentMessage"; |
| | 35576 | } |
| | 35577 | | { |
| | 35578 | readonly id: string; |
| | 35579 | readonly name: string; |
| | 35580 | readonly namespace?: string | null; |
| | 35581 | readonly output: V2ReviewStartResponse__FunctionCallOutputBody; |
| | 35582 | readonly type: "functionCallOutput"; |
| | 35583 | } |
| | 35584 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| | 35585 | | { |
| | 35586 | readonly content?: ReadonlyArray<string>; |
| | 35587 | readonly id: string; |
| | 35588 | readonly summary?: ReadonlyArray<string>; |
| | 35589 | readonly type: "reasoning"; |
| | 35590 | } |
| | 35591 | | { |
| | 35592 | readonly aggregatedOutput?: string | null; |
| | 35593 | readonly command: string; |
| | 35594 | readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>; |
| | 35595 | readonly cwd: V2ReviewStartResponse__LegacyAppPathString; |
| | 35596 | readonly durationMs?: number | null; |
| | 35597 | readonly exitCode?: number | null; |
| | 35598 | readonly id: string; |
| | 35599 | readonly pluginId?: string | null; |
| | 35600 | readonly processId?: string | null; |
| | 35601 | readonly scriptPath?: string | null; |
| | 35602 | readonly source?: V2ReviewStartResponse__CommandExecutionSource; |
| | 35603 | readonly status: V2ReviewStartResponse__CommandExecutionStatus; |
| | 35604 | readonly type: "commandExecution"; |
| | 35605 | } |
| | 35606 | | { |
| | 35607 | readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>; |
| | 35608 | readonly id: string; |
| | 35609 | readonly status: V2ReviewStartResponse__PatchApplyStatus; |
| | 35610 | readonly type: "fileChange"; |
| | 35611 | } |
| | 35612 | | { |
| | 35613 | readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null; |
| | 35614 | readonly arguments: Schema.Json; |
| | 35615 | readonly durationMs?: number | null; |
| | 35616 | readonly error?: V2ReviewStartResponse__McpToolCallError | null; |
| | 35617 | readonly id: string; |
| | 35618 | readonly mcpAppResourceUri?: string | null; |
| | 35619 | readonly mcpAppUi?: V2ReviewStartResponse__McpAppUi | null; |
| | 35620 | readonly pluginId?: string | null; |
| | 35621 | readonly readOnlyHint?: boolean | null; |
| | 35622 | readonly result?: V2ReviewStartResponse__McpToolCallResult | null; |
| | 35623 | readonly server: string; |
| | 35624 | readonly status: V2ReviewStartResponse__McpToolCallStatus; |
| | 35625 | readonly tool: string; |
| | 35626 | readonly type: "mcpToolCall"; |
| | 35627 | } |
| | 35628 | | { |
| | 35629 | readonly arguments: Schema.Json; |
| | 35630 | readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null; |
| | 35631 | readonly durationMs?: number | null; |
| | 35632 | readonly id: string; |
| | 35633 | readonly namespace?: string | null; |
| | 35634 | readonly status: V2ReviewStartResponse__DynamicToolCallStatus; |
| | 35635 | readonly success?: boolean | null; |
| | 35636 | readonly tool: string; |
| | 35637 | readonly type: "dynamicToolCall"; |
| | 35638 | } |
| | 35639 | | { |
| | 35640 | readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState }; |
| | 35641 | readonly id: string; |
| | 35642 | readonly model?: string | null; |
| | 35643 | readonly prompt?: string | null; |
| | 35644 | readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null; |
| | 35645 | readonly receiverThreadIds: ReadonlyArray<string>; |
| | 35646 | readonly senderThreadId: string; |
| | 35647 | readonly status: V2ReviewStartResponse__CollabAgentToolCallStatus; |
| | 35648 | readonly tool: V2ReviewStartResponse__CollabAgentTool; |
| | 35649 | readonly type: "collabAgentToolCall"; |
| | 35650 | } |
| | 35651 | | { |
| | 35652 | readonly agentPath: string; |
| | 35653 | readonly agentThreadId: string; |
| | 35654 | readonly id: string; |
| | 35655 | readonly kind: V2ReviewStartResponse__SubAgentActivityKind; |
| | 35656 | readonly type: "subAgentActivity"; |
| | 35657 | } |
| | 35658 | | { |
| | 35659 | readonly action?: V2ReviewStartResponse__WebSearchAction | null; |
| | 35660 | readonly id: string; |
| | 35661 | readonly query: string; |
| | 35662 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| | 35663 | readonly type: "webSearch"; |
| | 35664 | } |
| | 35665 | | { |
| | 35666 | readonly id: string; |
| | 35667 | readonly path: V2ReviewStartResponse__LegacyAppPathString; |
| | 35668 | readonly type: "imageView"; |
| | 35669 | } |
| | 35670 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| | 35671 | | { |
| | 35672 | readonly failure?: V2ReviewStartResponse__ImageGenerationFailure | null; |
| | 35673 | readonly id: string; |
| | 35674 | readonly result: string; |
| | 35675 | readonly revisedPrompt?: string | null; |
| | 35676 | readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null; |
| | 35677 | readonly status: string; |
| | 35678 | readonly transparentBackground?: boolean | null; |
| | 35679 | readonly type: "imageGeneration"; |
| | 35680 | } |
| | 35681 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| | 35682 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| | 35683 | | { readonly id: string; readonly type: "contextCompaction" }; |
| | 35684 | export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| | 35685 | [ |
| | 35686 | Schema.Struct({ |
| | 35687 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35688 | content: Schema.Array(V2ReviewStartResponse__UserInput), |
| | 35689 | id: Schema.String, |
| | 35690 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| | 35691 | }).annotate({ title: "UserMessageThreadItem" }), |
| | 35692 | Schema.Struct({ |
| | 35693 | fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment), |
| | 35694 | id: Schema.String, |
| | 35695 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| | 35696 | }).annotate({ title: "HookPromptThreadItem" }), |
| | 35697 | Schema.Struct({ |
| | 35698 | delivery: Schema.optionalKey( |
| | 35699 | Schema.Union([V2ReviewStartResponse__AgentMessageDelivery, Schema.Null]), |
| | 35700 | ), |
| | 35701 | id: Schema.String, |
| | 35702 | memoryCitation: Schema.optionalKey( |
| | 35703 | Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]), |
| | 35704 | ), |
| | 35705 | phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])), |
| | 35706 | questions: Schema.optionalKey( |
| | 35707 | Schema.Union([Schema.Array(V2ReviewStartResponse__AsyncUserInputQuestion), Schema.Null]), |
| | 35708 | ), |
| | 35709 | text: Schema.String, |
| | 35710 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| | 35711 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 35712 | Schema.Struct({ |
| | 35713 | id: Schema.String, |
| | 35714 | name: Schema.String, |
| | 35715 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35716 | output: V2ReviewStartResponse__FunctionCallOutputBody, |
| | 35717 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 35718 | title: "FunctionCallOutputThreadItemType", |
| | 35719 | }), |
| | 35720 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| | 35721 | Schema.Struct({ |
| | 35722 | id: Schema.String, |
| | 35723 | text: Schema.String, |
| | 35724 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| | 35725 | }).annotate({ |
| | 35726 | title: "PlanThreadItem", |
| | 35727 | description: |
| | 35728 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| | 35729 | }), |
| | 35730 | Schema.Struct({ |
| | 35731 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 35732 | id: Schema.String, |
| | 35733 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 35734 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| | 35735 | }).annotate({ title: "ReasoningThreadItem" }), |
| | 35736 | Schema.Struct({ |
| | 35737 | aggregatedOutput: Schema.optionalKey( |
| | 35738 | Schema.Union([ |
| | 35739 | Schema.String.annotate({ |
| | 35740 | description: "The command's output, aggregated from stdout and stderr.", |
| | 35741 | }), |
| | 35742 | Schema.Null, |
| | 35743 | ]), |
| | 35744 | ), |
| | 35745 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| | 35746 | commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({ |
| | 35747 | description: |
| | 35748 | "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.", |
| | 35749 | }), |
| | 35750 | cwd: Schema.suspend( |
| | 35751 | (): Schema.Codec<V2ReviewStartResponse__LegacyAppPathString> => |
| | 35752 | V2ReviewStartResponse__LegacyAppPathString, |
| | 35753 | ).annotate({ description: "The command's working directory." }), |
| | 35754 | durationMs: Schema.optionalKey( |
| | 35755 | Schema.Union([ |
| | 35756 | Schema.Number.annotate({ |
| | 35757 | description: "The duration of the command execution in milliseconds.", |
| | 35758 | format: "int64", |
| | 35759 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35760 | Schema.Null, |
| | 35761 | ]), |
| | 35762 | ), |
| | 35763 | exitCode: Schema.optionalKey( |
| | 35764 | Schema.Union([ |
| | 35765 | Schema.Number.annotate({ |
| | 35766 | description: "The command's exit code.", |
| | 35767 | format: "int32", |
| | 35768 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35769 | Schema.Null, |
| | 35770 | ]), |
| | 35771 | ), |
| | 35772 | id: Schema.String, |
| | 35773 | pluginId: Schema.optionalKey( |
| | 35774 | Schema.Union([ |
| | 35775 | Schema.String.annotate({ |
| | 35776 | description: |
| | 35777 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 35778 | }), |
| | 35779 | Schema.Null, |
| | 35780 | ]), |
| | 35781 | ), |
| | 35782 | processId: Schema.optionalKey( |
| | 35783 | Schema.Union([ |
| | 35784 | Schema.String.annotate({ |
| | 35785 | description: "Identifier for the underlying PTY process (when available).", |
| | 35786 | }), |
| | 35787 | Schema.Null, |
| | 35788 | ]), |
| | 35789 | ), |
| | 35790 | scriptPath: Schema.optionalKey( |
| | 35791 | Schema.Union([ |
| | 35792 | Schema.String.annotate({ |
| | 35793 | description: |
| | 35794 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 35795 | }), |
| | 35796 | Schema.Null, |
| | 35797 | ]), |
| | 35798 | ), |
| | 35799 | source: Schema.optionalKey( |
| | 35800 | Schema.suspend( |
| | 35801 | (): Schema.Codec<V2ReviewStartResponse__CommandExecutionSource> => |
| | 35802 | V2ReviewStartResponse__CommandExecutionSource, |
| | 35803 | ).annotate({ default: "agent" }), |
| | 35804 | ), |
| | 35805 | status: V2ReviewStartResponse__CommandExecutionStatus, |
| | 35806 | type: Schema.Literal("commandExecution").annotate({ |
| | 35807 | title: "CommandExecutionThreadItemType", |
| | 35808 | }), |
| | 35809 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| | 35810 | Schema.Struct({ |
| | 35811 | changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange), |
| | 35812 | id: Schema.String, |
| | 35813 | status: V2ReviewStartResponse__PatchApplyStatus, |
| | 35814 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| | 35815 | }).annotate({ title: "FileChangeThreadItem" }), |
| | 35816 | Schema.Struct({ |
| | 35817 | appContext: Schema.optionalKey( |
| | 35818 | Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]), |
| | 35819 | ), |
| | 35820 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 35821 | durationMs: Schema.optionalKey( |
| | 35822 | Schema.Union([ |
| | 35823 | Schema.Number.annotate({ |
| | 35824 | description: "The duration of the MCP tool call in milliseconds.", |
| | 35825 | format: "int64", |
| | 35826 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35827 | Schema.Null, |
| | 35828 | ]), |
| | 35829 | ), |
| | 35830 | error: Schema.optionalKey( |
| | 35831 | Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]), |
| | 35832 | ), |
| | 35833 | id: Schema.String, |
| | 35834 | mcpAppResourceUri: Schema.optionalKey( |
| | 35835 | Schema.Union([ |
| | 35836 | Schema.String.annotate({ |
| | 35837 | description: |
| | 35838 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| | 35839 | }), |
| | 35840 | Schema.Null, |
| | 35841 | ]), |
| | 35842 | ), |
| | 35843 | mcpAppUi: Schema.optionalKey( |
| | 35844 | Schema.Union([V2ReviewStartResponse__McpAppUi, Schema.Null]).annotate({ |
| | 35845 | description: |
| | 35846 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 35847 | }), |
| | 35848 | ), |
| | 35849 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35850 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 35851 | result: Schema.optionalKey( |
| | 35852 | Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]), |
| | 35853 | ), |
| | 35854 | server: Schema.String, |
| | 35855 | status: V2ReviewStartResponse__McpToolCallStatus, |
| | 35856 | tool: Schema.String, |
| | 35857 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| | 35858 | }).annotate({ title: "McpToolCallThreadItem" }), |
| | 35859 | Schema.Struct({ |
| | 35860 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 35861 | contentItems: Schema.optionalKey( |
| | 35862 | Schema.Union([ |
| | 35863 | Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem), |
| | 35864 | Schema.Null, |
| | 35865 | ]), |
| | 35866 | ), |
| | 35867 | durationMs: Schema.optionalKey( |
| | 35868 | Schema.Union([ |
| | 35869 | Schema.Number.annotate({ |
| | 35870 | description: "The duration of the dynamic tool call in milliseconds.", |
| | 35871 | format: "int64", |
| | 35872 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 35873 | Schema.Null, |
| | 35874 | ]), |
| | 35875 | ), |
| | 35876 | id: Schema.String, |
| | 35877 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35878 | status: V2ReviewStartResponse__DynamicToolCallStatus, |
| | 35879 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 35880 | tool: Schema.String, |
| | 35881 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| | 35882 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| | 35883 | Schema.Struct({ |
| | 35884 | agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({ |
| | 35885 | description: "Last known status of the target agents, when available.", |
| | 35886 | }), |
| | 35887 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| | 35888 | model: Schema.optionalKey( |
| | 35889 | Schema.Union([ |
| | 35890 | Schema.String.annotate({ |
| | 35891 | description: "Model requested for the spawned agent, when applicable.", |
| | 35892 | }), |
| | 35893 | Schema.Null, |
| | 35894 | ]), |
| | 35895 | ), |
| | 35896 | prompt: Schema.optionalKey( |
| | 35897 | Schema.Union([ |
| | 35898 | Schema.String.annotate({ |
| | 35899 | description: "Prompt text sent as part of the collab tool call, when available.", |
| | 35900 | }), |
| | 35901 | Schema.Null, |
| | 35902 | ]), |
| | 35903 | ), |
| | 35904 | reasoningEffort: Schema.optionalKey( |
| | 35905 | Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 35906 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| | 35907 | }), |
| | 35908 | ), |
| | 35909 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| | 35910 | description: |
| | 35911 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| | 35912 | }), |
| | 35913 | senderThreadId: Schema.String.annotate({ |
| | 35914 | description: "Thread ID of the agent issuing the collab request.", |
| | 35915 | }), |
| | 35916 | status: Schema.suspend( |
| | 35917 | (): Schema.Codec<V2ReviewStartResponse__CollabAgentToolCallStatus> => |
| | 35918 | V2ReviewStartResponse__CollabAgentToolCallStatus, |
| | 35919 | ).annotate({ description: "Current status of the collab tool call." }), |
| | 35920 | tool: Schema.suspend( |
| | 35921 | (): Schema.Codec<V2ReviewStartResponse__CollabAgentTool> => |
| | 35922 | V2ReviewStartResponse__CollabAgentTool, |
| | 35923 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| | 35924 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| | 35925 | title: "CollabAgentToolCallThreadItemType", |
| | 35926 | }), |
| | 35927 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| | 35928 | Schema.Struct({ |
| | 35929 | agentPath: Schema.String, |
| | 35930 | agentThreadId: Schema.String, |
| | 35931 | id: Schema.String, |
| | 35932 | kind: V2ReviewStartResponse__SubAgentActivityKind, |
| | 35933 | type: Schema.Literal("subAgentActivity").annotate({ |
| | 35934 | title: "SubAgentActivityThreadItemType", |
| | 35935 | }), |
| | 35936 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| | 35937 | Schema.Struct({ |
| | 35938 | action: Schema.optionalKey( |
| | 35939 | Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]), |
| | 35940 | ), |
| | 35941 | id: Schema.String, |
| | 35942 | query: Schema.String, |
| | 35943 | results: Schema.optionalKey( |
| | 35944 | Schema.Union([ |
| | 35945 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 35946 | description: |
| | 35947 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| | 35948 | }), |
| | 35949 | Schema.Null, |
| | 35950 | ]), |
| | 35951 | ), |
| | 35952 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| | 35953 | }).annotate({ title: "WebSearchThreadItem" }), |
| | 35954 | Schema.Struct({ |
| | 35955 | id: Schema.String, |
| | 35956 | path: V2ReviewStartResponse__LegacyAppPathString, |
| | 35957 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| | 35958 | }).annotate({ title: "ImageViewThreadItem" }), |
| | 35959 | Schema.Struct({ |
| | 35960 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| | 35961 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 35962 | .check( |
| | 35963 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 35964 | expected: "a value greater than or equal to 0", |
| | 35965 | }), |
| | 35966 | ), |
| | 35967 | id: Schema.String, |
| | 35968 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| | 35969 | }).annotate({ |
| | 35970 | title: "SleepThreadItem", |
| | 35971 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| | 35972 | }), |
| | 35973 | Schema.Struct({ |
| | 35974 | failure: Schema.optionalKey( |
| | 35975 | Schema.Union([V2ReviewStartResponse__ImageGenerationFailure, Schema.Null]), |
| | 35976 | ), |
| | 35977 | id: Schema.String, |
| | 35978 | result: Schema.String, |
| | 35979 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 35980 | savedPath: Schema.optionalKey( |
| | 35981 | Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]), |
| | 35982 | ), |
| | 35983 | status: Schema.String, |
| | 35984 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 35985 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| | 35986 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| | 35987 | Schema.Struct({ |
| | 35988 | id: Schema.String, |
| | 35989 | review: Schema.String, |
| | 35990 | type: Schema.Literal("enteredReviewMode").annotate({ |
| | 35991 | title: "EnteredReviewModeThreadItemType", |
| | 35992 | }), |
| | 35993 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| | 35994 | Schema.Struct({ |
| | 35995 | id: Schema.String, |
| | 35996 | review: Schema.String, |
| | 35997 | type: Schema.Literal("exitedReviewMode").annotate({ |
| | 35998 | title: "ExitedReviewModeThreadItemType", |
| | 35999 | }), |
| | 36000 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| | 36001 | Schema.Struct({ |
| | 36002 | id: Schema.String, |
| | 36003 | type: Schema.Literal("contextCompaction").annotate({ |
| | 36004 | title: "ContextCompactionThreadItemType", |
| | 36005 | }), |
| | 36006 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| | 36007 | ], |
| | 36008 | { mode: "oneOf" }, |
| | 36009 | ).annotate({ identifier: "V2ReviewStartResponse__ThreadItem" }); |
| | 36010 | |
| | 36011 | export type V2SkillsListResponse__SkillsListEntry = { |
| | 36012 | readonly cwd: string; |
| | 36013 | readonly errors: ReadonlyArray<V2SkillsListResponse__SkillErrorInfo>; |
| | 36014 | readonly skills: ReadonlyArray<V2SkillsListResponse__SkillMetadata>; |
| | 36015 | }; |
| | 36016 | export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({ |
| | 36017 | cwd: Schema.String, |
| | 36018 | errors: Schema.Array(V2SkillsListResponse__SkillErrorInfo), |
| | 36019 | skills: Schema.Array(V2SkillsListResponse__SkillMetadata), |
| | 36020 | }).annotate({ identifier: "V2SkillsListResponse__SkillsListEntry" }); |
| | 36021 | |
| | 36022 | export type V2ThreadForkResponse__ThreadItem = |
| | 36023 | | { |
| | 36024 | readonly clientId?: string | null; |
| | 36025 | readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>; |
| | 36026 | readonly id: string; |
| | 36027 | readonly type: "userMessage"; |
| | 36028 | } |
| | 36029 | | { |
| | 36030 | readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>; |
| | 36031 | readonly id: string; |
| | 36032 | readonly type: "hookPrompt"; |
| | 36033 | } |
| | 36034 | | { |
| | 36035 | readonly delivery?: V2ThreadForkResponse__AgentMessageDelivery | null; |
| | 36036 | readonly id: string; |
| | 36037 | readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null; |
| | 36038 | readonly phase?: V2ThreadForkResponse__MessagePhase | null; |
| | 36039 | readonly questions?: ReadonlyArray<V2ThreadForkResponse__AsyncUserInputQuestion> | null; |
| | 36040 | readonly text: string; |
| | 36041 | readonly type: "agentMessage"; |
| | 36042 | } |
| | 36043 | | { |
| | 36044 | readonly id: string; |
| | 36045 | readonly name: string; |
| | 36046 | readonly namespace?: string | null; |
| | 36047 | readonly output: V2ThreadForkResponse__FunctionCallOutputBody; |
| | 36048 | readonly type: "functionCallOutput"; |
| | 36049 | } |
| | 36050 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| | 36051 | | { |
| | 36052 | readonly content?: ReadonlyArray<string>; |
| | 36053 | readonly id: string; |
| | 36054 | readonly summary?: ReadonlyArray<string>; |
| | 36055 | readonly type: "reasoning"; |
| | 36056 | } |
| | 36057 | | { |
| | 36058 | readonly aggregatedOutput?: string | null; |
| | 36059 | readonly command: string; |
| | 36060 | readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>; |
| | 36061 | readonly cwd: V2ThreadForkResponse__LegacyAppPathString; |
| | 36062 | readonly durationMs?: number | null; |
| | 36063 | readonly exitCode?: number | null; |
| | 36064 | readonly id: string; |
| | 36065 | readonly pluginId?: string | null; |
| | 36066 | readonly processId?: string | null; |
| | 36067 | readonly scriptPath?: string | null; |
| | 36068 | readonly source?: V2ThreadForkResponse__CommandExecutionSource; |
| | 36069 | readonly status: V2ThreadForkResponse__CommandExecutionStatus; |
| | 36070 | readonly type: "commandExecution"; |
| | 36071 | } |
| | 36072 | | { |
| | 36073 | readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>; |
| | 36074 | readonly id: string; |
| | 36075 | readonly status: V2ThreadForkResponse__PatchApplyStatus; |
| | 36076 | readonly type: "fileChange"; |
| | 36077 | } |
| | 36078 | | { |
| | 36079 | readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null; |
| | 36080 | readonly arguments: Schema.Json; |
| | 36081 | readonly durationMs?: number | null; |
| | 36082 | readonly error?: V2ThreadForkResponse__McpToolCallError | null; |
| | 36083 | readonly id: string; |
| | 36084 | readonly mcpAppResourceUri?: string | null; |
| | 36085 | readonly mcpAppUi?: V2ThreadForkResponse__McpAppUi | null; |
| | 36086 | readonly pluginId?: string | null; |
| | 36087 | readonly readOnlyHint?: boolean | null; |
| | 36088 | readonly result?: V2ThreadForkResponse__McpToolCallResult | null; |
| | 36089 | readonly server: string; |
| | 36090 | readonly status: V2ThreadForkResponse__McpToolCallStatus; |
| | 36091 | readonly tool: string; |
| | 36092 | readonly type: "mcpToolCall"; |
| | 36093 | } |
| | 36094 | | { |
| | 36095 | readonly arguments: Schema.Json; |
| | 36096 | readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null; |
| | 36097 | readonly durationMs?: number | null; |
| | 36098 | readonly id: string; |
| | 36099 | readonly namespace?: string | null; |
| | 36100 | readonly status: V2ThreadForkResponse__DynamicToolCallStatus; |
| | 36101 | readonly success?: boolean | null; |
| | 36102 | readonly tool: string; |
| | 36103 | readonly type: "dynamicToolCall"; |
| | 36104 | } |
| | 36105 | | { |
| | 36106 | readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState }; |
| | 36107 | readonly id: string; |
| | 36108 | readonly model?: string | null; |
| | 36109 | readonly prompt?: string | null; |
| | 36110 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| | 36111 | readonly receiverThreadIds: ReadonlyArray<string>; |
| | 36112 | readonly senderThreadId: string; |
| | 36113 | readonly status: V2ThreadForkResponse__CollabAgentToolCallStatus; |
| | 36114 | readonly tool: V2ThreadForkResponse__CollabAgentTool; |
| | 36115 | readonly type: "collabAgentToolCall"; |
| | 36116 | } |
| | 36117 | | { |
| | 36118 | readonly agentPath: string; |
| | 36119 | readonly agentThreadId: string; |
| | 36120 | readonly id: string; |
| | 36121 | readonly kind: V2ThreadForkResponse__SubAgentActivityKind; |
| | 36122 | readonly type: "subAgentActivity"; |
| | 36123 | } |
| | 36124 | | { |
| | 36125 | readonly action?: V2ThreadForkResponse__WebSearchAction | null; |
| | 36126 | readonly id: string; |
| | 36127 | readonly query: string; |
| | 36128 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| | 36129 | readonly type: "webSearch"; |
| | 36130 | } |
| | 36131 | | { |
| | 36132 | readonly id: string; |
| | 36133 | readonly path: V2ThreadForkResponse__LegacyAppPathString; |
| | 36134 | readonly type: "imageView"; |
| | 36135 | } |
| | 36136 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| | 36137 | | { |
| | 36138 | readonly failure?: V2ThreadForkResponse__ImageGenerationFailure | null; |
| | 36139 | readonly id: string; |
| | 36140 | readonly result: string; |
| | 36141 | readonly revisedPrompt?: string | null; |
| | 36142 | readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null; |
| | 36143 | readonly status: string; |
| | 36144 | readonly transparentBackground?: boolean | null; |
| | 36145 | readonly type: "imageGeneration"; |
| | 36146 | } |
| | 36147 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| | 36148 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| | 36149 | | { readonly id: string; readonly type: "contextCompaction" }; |
| | 36150 | export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| | 36151 | [ |
| | 36152 | Schema.Struct({ |
| | 36153 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 36154 | content: Schema.Array(V2ThreadForkResponse__UserInput), |
| | 36155 | id: Schema.String, |
| | 36156 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| | 36157 | }).annotate({ title: "UserMessageThreadItem" }), |
| | 36158 | Schema.Struct({ |
| | 36159 | fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment), |
| | 36160 | id: Schema.String, |
| | 36161 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| | 36162 | }).annotate({ title: "HookPromptThreadItem" }), |
| | 36163 | Schema.Struct({ |
| | 36164 | delivery: Schema.optionalKey( |
| | 36165 | Schema.Union([V2ThreadForkResponse__AgentMessageDelivery, Schema.Null]), |
| | 36166 | ), |
| | 36167 | id: Schema.String, |
| | 36168 | memoryCitation: Schema.optionalKey( |
| | 36169 | Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]), |
| | 36170 | ), |
| | 36171 | phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])), |
| | 36172 | questions: Schema.optionalKey( |
| | 36173 | Schema.Union([Schema.Array(V2ThreadForkResponse__AsyncUserInputQuestion), Schema.Null]), |
| | 36174 | ), |
| | 36175 | text: Schema.String, |
| | 36176 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| | 36177 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 36178 | Schema.Struct({ |
| | 36179 | id: Schema.String, |
| | 36180 | name: Schema.String, |
| | 36181 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 36182 | output: V2ThreadForkResponse__FunctionCallOutputBody, |
| | 36183 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 36184 | title: "FunctionCallOutputThreadItemType", |
| | 36185 | }), |
| | 36186 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| | 36187 | Schema.Struct({ |
| | 36188 | id: Schema.String, |
| | 36189 | text: Schema.String, |
| | 36190 | type: Schema.Literal("plan").annotate({ title: "PlanThreadItemType" }), |
| | 36191 | }).annotate({ |
| | 36192 | title: "PlanThreadItem", |
| | 36193 | description: |
| | 36194 | "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| | 36195 | }), |
| | 36196 | Schema.Struct({ |
| | 36197 | content: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 36198 | id: Schema.String, |
| | 36199 | summary: Schema.optionalKey(Schema.Array(Schema.String).annotate({ default: [] })), |
| | 36200 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningThreadItemType" }), |
| | 36201 | }).annotate({ title: "ReasoningThreadItem" }), |
| | 36202 | Schema.Struct({ |
| | 36203 | aggregatedOutput: Schema.optionalKey( |
| | 36204 | Schema.Union([ |
| | 36205 | Schema.String.annotate({ |
| | 36206 | description: "The command's output, aggregated from stdout and stderr.", |
| | 36207 | }), |
| 27715 | Schema.Null, | 36208 | Schema.Null, |
| 27716 | ]), | 36209 | ]), |
| 27717 | ), | 36210 | ), |
| 27718 | recipient: Schema.String, | 36211 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 27719 | type: Schema.Literal("agent_message").annotate({ title: "AgentMessageResponseItemType" }), | 36212 | commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({ |
| 27720 | }).annotate({ title: "AgentMessageResponseItem" }), | 36213 | description: |
| 27721 | Schema.Struct({ | 36214 | "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.", |
| 27722 | content: Schema.optionalKey( | 36215 | }), |
| | 36216 | cwd: Schema.suspend( |
| | 36217 | (): Schema.Codec<V2ThreadForkResponse__LegacyAppPathString> => |
| | 36218 | V2ThreadForkResponse__LegacyAppPathString, |
| | 36219 | ).annotate({ description: "The command's working directory." }), |
| | 36220 | durationMs: Schema.optionalKey( |
| 27723 | Schema.Union([ | 36221 | Schema.Union([ |
| 27724 | Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemContent), | 36222 | Schema.Number.annotate({ |
| | 36223 | description: "The duration of the command execution in milliseconds.", |
| | 36224 | format: "int64", |
| | 36225 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27725 | Schema.Null, | 36226 | Schema.Null, |
| 27726 | ]), | 36227 | ]), |
| 27727 | ), | 36228 | ), |
| 27728 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36229 | exitCode: Schema.optionalKey( |
| 27729 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27730 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 27731 | Schema.Union([ | 36230 | Schema.Union([ |
| 27732 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36231 | Schema.Number.annotate({ |
| | 36232 | description: "The command's exit code.", |
| | 36233 | format: "int32", |
| | 36234 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27733 | Schema.Null, | 36235 | Schema.Null, |
| 27734 | ]), | 36236 | ]), |
| 27735 | ), | 36237 | ), |
| 27736 | summary: Schema.Array(V2RawResponseItemCompletedNotification__ReasoningItemReasoningSummary), | 36238 | id: Schema.String, |
| 27737 | type: Schema.Literal("reasoning").annotate({ title: "ReasoningResponseItemType" }), | 36239 | pluginId: Schema.optionalKey( |
| 27738 | }).annotate({ title: "ReasoningResponseItem" }), | | |
| 27739 | Schema.Struct({ | | |
| 27740 | action: V2RawResponseItemCompletedNotification__LocalShellAction, | | |
| 27741 | call_id: Schema.optionalKey( | | |
| 27742 | Schema.Union([ | 36240 | Schema.Union([ |
| 27743 | Schema.String.annotate({ description: "Set when using the Responses API." }), | 36241 | Schema.String.annotate({ |
| | 36242 | description: |
| | 36243 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 36244 | }), |
| 27744 | Schema.Null, | 36245 | Schema.Null, |
| 27745 | ]), | 36246 | ]), |
| 27746 | ), | 36247 | ), |
| 27747 | id: Schema.optionalKey( | 36248 | processId: Schema.optionalKey( |
| 27748 | Schema.Union([ | 36249 | Schema.Union([ |
| 27749 | Schema.String.annotate({ | 36250 | Schema.String.annotate({ |
| 27750 | description: "Legacy id field retained for compatibility with older payloads.", | 36251 | description: "Identifier for the underlying PTY process (when available).", |
| 27751 | }), | 36252 | }), |
| 27752 | Schema.Null, | 36253 | Schema.Null, |
| 27753 | ]), | 36254 | ]), |
| 27754 | ), | 36255 | ), |
| 27755 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 36256 | scriptPath: Schema.optionalKey( |
| 27756 | Schema.Union([ | 36257 | Schema.Union([ |
| 27757 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36258 | Schema.String.annotate({ |
| | 36259 | description: |
| | 36260 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 36261 | }), |
| 27758 | Schema.Null, | 36262 | Schema.Null, |
| 27759 | ]), | 36263 | ]), |
| 27760 | ), | 36264 | ), |
| 27761 | status: V2RawResponseItemCompletedNotification__LocalShellStatus, | 36265 | source: Schema.optionalKey( |
| 27762 | type: Schema.Literal("local_shell_call").annotate({ | 36266 | Schema.suspend( |
| 27763 | title: "LocalShellCallResponseItemType", | 36267 | (): Schema.Codec<V2ThreadForkResponse__CommandExecutionSource> => |
| | 36268 | V2ThreadForkResponse__CommandExecutionSource, |
| | 36269 | ).annotate({ default: "agent" }), |
| | 36270 | ), |
| | 36271 | status: V2ThreadForkResponse__CommandExecutionStatus, |
| | 36272 | type: Schema.Literal("commandExecution").annotate({ |
| | 36273 | title: "CommandExecutionThreadItemType", |
| 27764 | }), | 36274 | }), |
| 27765 | }).annotate({ title: "LocalShellCallResponseItem" }), | 36275 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 27766 | Schema.Struct({ | 36276 | Schema.Struct({ |
| 27767 | arguments: Schema.String, | 36277 | changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange), |
| 27768 | call_id: Schema.String, | 36278 | id: Schema.String, |
| 27769 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36279 | status: V2ThreadForkResponse__PatchApplyStatus, |
| 27770 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 36280 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| | 36281 | }).annotate({ title: "FileChangeThreadItem" }), |
| | 36282 | Schema.Struct({ |
| | 36283 | appContext: Schema.optionalKey( |
| | 36284 | Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]), |
| | 36285 | ), |
| | 36286 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| | 36287 | durationMs: Schema.optionalKey( |
| 27771 | Schema.Union([ | 36288 | Schema.Union([ |
| 27772 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36289 | Schema.Number.annotate({ |
| | 36290 | description: "The duration of the MCP tool call in milliseconds.", |
| | 36291 | format: "int64", |
| | 36292 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27773 | Schema.Null, | 36293 | Schema.Null, |
| 27774 | ]), | 36294 | ]), |
| 27775 | ), | 36295 | ), |
| 27776 | name: Schema.String, | 36296 | error: Schema.optionalKey( |
| 27777 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36297 | Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]), |
| 27778 | type: Schema.Literal("function_call").annotate({ title: "FunctionCallResponseItemType" }), | 36298 | ), |
| 27779 | }).annotate({ title: "FunctionCallResponseItem" }), | 36299 | id: Schema.String, |
| 27780 | Schema.Struct({ | 36300 | mcpAppResourceUri: Schema.optionalKey( |
| 27781 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | | |
| 27782 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27783 | execution: Schema.String, | | |
| 27784 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27785 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 27786 | Schema.Union([ | 36301 | Schema.Union([ |
| 27787 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36302 | Schema.String.annotate({ |
| | 36303 | description: |
| | 36304 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| | 36305 | }), |
| 27788 | Schema.Null, | 36306 | Schema.Null, |
| 27789 | ]), | 36307 | ]), |
| 27790 | ), | 36308 | ), |
| 27791 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36309 | mcpAppUi: Schema.optionalKey( |
| 27792 | type: Schema.Literal("tool_search_call").annotate({ | 36310 | Schema.Union([V2ThreadForkResponse__McpAppUi, Schema.Null]).annotate({ |
| 27793 | title: "ToolSearchCallResponseItemType", | 36311 | description: |
| 27794 | }), | 36312 | "Presentation captured from the invoked descriptor; absent in older history.", |
| 27795 | }).annotate({ title: "ToolSearchCallResponseItem" }), | 36313 | }), |
| | 36314 | ), |
| | 36315 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 36316 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 36317 | result: Schema.optionalKey( |
| | 36318 | Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]), |
| | 36319 | ), |
| | 36320 | server: Schema.String, |
| | 36321 | status: V2ThreadForkResponse__McpToolCallStatus, |
| | 36322 | tool: Schema.String, |
| | 36323 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| | 36324 | }).annotate({ title: "McpToolCallThreadItem" }), |
| 27796 | Schema.Struct({ | 36325 | Schema.Struct({ |
| 27797 | call_id: Schema.String, | 36326 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 27798 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36327 | contentItems: Schema.optionalKey( |
| 27799 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 27800 | Schema.Union([ | 36328 | Schema.Union([ |
| 27801 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36329 | Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem), |
| 27802 | Schema.Null, | 36330 | Schema.Null, |
| 27803 | ]), | 36331 | ]), |
| 27804 | ), | 36332 | ), |
| 27805 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, | 36333 | durationMs: Schema.optionalKey( |
| 27806 | type: Schema.Literal("function_call_output").annotate({ | | |
| 27807 | title: "FunctionCallOutputResponseItemType", | | |
| 27808 | }), | | |
| 27809 | }).annotate({ title: "FunctionCallOutputResponseItem" }), | | |
| 27810 | Schema.Struct({ | | |
| 27811 | call_id: Schema.String, | | |
| 27812 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27813 | input: Schema.String, | | |
| 27814 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 27815 | Schema.Union([ | 36334 | Schema.Union([ |
| 27816 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36335 | Schema.Number.annotate({ |
| | 36336 | description: "The duration of the dynamic tool call in milliseconds.", |
| | 36337 | format: "int64", |
| | 36338 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 27817 | Schema.Null, | 36339 | Schema.Null, |
| 27818 | ]), | 36340 | ]), |
| 27819 | ), | 36341 | ), |
| 27820 | name: Schema.String, | 36342 | id: Schema.String, |
| 27821 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36343 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27822 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36344 | status: V2ThreadForkResponse__DynamicToolCallStatus, |
| 27823 | type: Schema.Literal("custom_tool_call").annotate({ | 36345 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 27824 | title: "CustomToolCallResponseItemType", | 36346 | tool: Schema.String, |
| 27825 | }), | 36347 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 27826 | }).annotate({ title: "CustomToolCallResponseItem" }), | 36348 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 27827 | Schema.Struct({ | 36349 | Schema.Struct({ |
| 27828 | call_id: Schema.String, | 36350 | agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({ |
| 27829 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36351 | description: "Last known status of the target agents, when available.", |
| 27830 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 36352 | }), |
| | 36353 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| | 36354 | model: Schema.optionalKey( |
| 27831 | Schema.Union([ | 36355 | Schema.Union([ |
| 27832 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36356 | Schema.String.annotate({ |
| | 36357 | description: "Model requested for the spawned agent, when applicable.", |
| | 36358 | }), |
| 27833 | Schema.Null, | 36359 | Schema.Null, |
| 27834 | ]), | 36360 | ]), |
| 27835 | ), | 36361 | ), |
| 27836 | name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36362 | prompt: Schema.optionalKey( |
| 27837 | output: V2RawResponseItemCompletedNotification__FunctionCallOutputBody, | | |
| 27838 | type: Schema.Literal("custom_tool_call_output").annotate({ | | |
| 27839 | title: "CustomToolCallOutputResponseItemType", | | |
| 27840 | }), | | |
| 27841 | }).annotate({ title: "CustomToolCallOutputResponseItem" }), | | |
| 27842 | Schema.Struct({ | | |
| 27843 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27844 | execution: Schema.String, | | |
| 27845 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27846 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 27847 | Schema.Union([ | 36363 | Schema.Union([ |
| 27848 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36364 | Schema.String.annotate({ |
| | 36365 | description: "Prompt text sent as part of the collab tool call, when available.", |
| | 36366 | }), |
| 27849 | Schema.Null, | 36367 | Schema.Null, |
| 27850 | ]), | 36368 | ]), |
| 27851 | ), | 36369 | ), |
| 27852 | status: Schema.String, | 36370 | reasoningEffort: Schema.optionalKey( |
| 27853 | tools: Schema.Array(Schema.Json.annotate({ expected: "JSON value" })), | 36371 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 27854 | type: Schema.Literal("tool_search_output").annotate({ | 36372 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 27855 | title: "ToolSearchOutputResponseItemType", | 36373 | }), |
| | 36374 | ), |
| | 36375 | receiverThreadIds: Schema.Array(Schema.String).annotate({ |
| | 36376 | description: |
| | 36377 | "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| 27856 | }), | 36378 | }), |
| 27857 | }).annotate({ title: "ToolSearchOutputResponseItem" }), | 36379 | senderThreadId: Schema.String.annotate({ |
| | 36380 | description: "Thread ID of the agent issuing the collab request.", |
| | 36381 | }), |
| | 36382 | status: Schema.suspend( |
| | 36383 | (): Schema.Codec<V2ThreadForkResponse__CollabAgentToolCallStatus> => |
| | 36384 | V2ThreadForkResponse__CollabAgentToolCallStatus, |
| | 36385 | ).annotate({ description: "Current status of the collab tool call." }), |
| | 36386 | tool: Schema.suspend( |
| | 36387 | (): Schema.Codec<V2ThreadForkResponse__CollabAgentTool> => |
| | 36388 | V2ThreadForkResponse__CollabAgentTool, |
| | 36389 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| | 36390 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| | 36391 | title: "CollabAgentToolCallThreadItemType", |
| | 36392 | }), |
| | 36393 | }).annotate({ title: "CollabAgentToolCallThreadItem" }), |
| | 36394 | Schema.Struct({ |
| | 36395 | agentPath: Schema.String, |
| | 36396 | agentThreadId: Schema.String, |
| | 36397 | id: Schema.String, |
| | 36398 | kind: V2ThreadForkResponse__SubAgentActivityKind, |
| | 36399 | type: Schema.Literal("subAgentActivity").annotate({ |
| | 36400 | title: "SubAgentActivityThreadItemType", |
| | 36401 | }), |
| | 36402 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 27858 | Schema.Struct({ | 36403 | Schema.Struct({ |
| 27859 | action: Schema.optionalKey( | 36404 | action: Schema.optionalKey( |
| 27860 | Schema.Union([ | 36405 | Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]), |
| 27861 | V2RawResponseItemCompletedNotification__ResponsesApiWebSearchAction, | | |
| 27862 | Schema.Null, | | |
| 27863 | ]), | | |
| 27864 | ), | 36406 | ), |
| 27865 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36407 | id: Schema.String, |
| 27866 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 36408 | query: Schema.String, |
| | 36409 | results: Schema.optionalKey( |
| 27867 | Schema.Union([ | 36410 | Schema.Union([ |
| 27868 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36411 | Schema.Array(Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 36412 | description: |
| | 36413 | "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| | 36414 | }), |
| 27869 | Schema.Null, | 36415 | Schema.Null, |
| 27870 | ]), | 36416 | ]), |
| 27871 | ), | 36417 | ), |
| 27872 | status: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36418 | type: Schema.Literal("webSearch").annotate({ title: "WebSearchThreadItemType" }), |
| 27873 | type: Schema.Literal("web_search_call").annotate({ title: "WebSearchCallResponseItemType" }), | 36419 | }).annotate({ title: "WebSearchThreadItem" }), |
| 27874 | }).annotate({ title: "WebSearchCallResponseItem" }), | | |
| 27875 | Schema.Struct({ | 36420 | Schema.Struct({ |
| 27876 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36421 | id: Schema.String, |
| 27877 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 36422 | path: V2ThreadForkResponse__LegacyAppPathString, |
| 27878 | Schema.Union([ | 36423 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 27879 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | 36424 | }).annotate({ title: "ImageViewThreadItem" }), |
| 27880 | Schema.Null, | 36425 | Schema.Struct({ |
| 27881 | ]), | 36426 | durationMs: Schema.Number.annotate({ format: "uint64" }) |
| | 36427 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 36428 | .check( |
| | 36429 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 36430 | expected: "a value greater than or equal to 0", |
| | 36431 | }), |
| | 36432 | ), |
| | 36433 | id: Schema.String, |
| | 36434 | type: Schema.Literal("sleep").annotate({ title: "SleepThreadItemType" }), |
| | 36435 | }).annotate({ |
| | 36436 | title: "SleepThreadItem", |
| | 36437 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| | 36438 | }), |
| | 36439 | Schema.Struct({ |
| | 36440 | failure: Schema.optionalKey( |
| | 36441 | Schema.Union([V2ThreadForkResponse__ImageGenerationFailure, Schema.Null]), |
| 27882 | ), | 36442 | ), |
| | 36443 | id: Schema.String, |
| 27883 | result: Schema.String, | 36444 | result: Schema.String, |
| 27884 | revised_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36445 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 27885 | status: Schema.String, | 36446 | savedPath: Schema.optionalKey( |
| 27886 | type: Schema.Literal("image_generation_call").annotate({ | 36447 | Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]), |
| 27887 | title: "ImageGenerationCallResponseItemType", | | |
| 27888 | }), | | |
| 27889 | }).annotate({ title: "ImageGenerationCallResponseItem" }), | | |
| 27890 | Schema.Struct({ | | |
| 27891 | encrypted_content: Schema.String, | | |
| 27892 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 27893 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | | |
| 27894 | Schema.Union([ | | |
| 27895 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | | |
| 27896 | Schema.Null, | | |
| 27897 | ]), | | |
| 27898 | ), | 36448 | ), |
| 27899 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), | 36449 | status: Schema.String, |
| 27900 | }).annotate({ title: "CompactionResponseItem" }), | 36450 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 36451 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| | 36452 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 27901 | Schema.Struct({ | 36453 | Schema.Struct({ |
| 27902 | type: Schema.Literal("compaction_trigger").annotate({ | 36454 | id: Schema.String, |
| 27903 | title: "CompactionTriggerResponseItemType", | 36455 | review: Schema.String, |
| | 36456 | type: Schema.Literal("enteredReviewMode").annotate({ |
| | 36457 | title: "EnteredReviewModeThreadItemType", |
| 27904 | }), | 36458 | }), |
| 27905 | }).annotate({ title: "CompactionTriggerResponseItem" }), | 36459 | }).annotate({ title: "EnteredReviewModeThreadItem" }), |
| 27906 | Schema.Struct({ | 36460 | Schema.Struct({ |
| 27907 | encrypted_content: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36461 | id: Schema.String, |
| 27908 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36462 | review: Schema.String, |
| 27909 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 36463 | type: Schema.Literal("exitedReviewMode").annotate({ |
| 27910 | Schema.Union([ | 36464 | title: "ExitedReviewModeThreadItemType", |
| 27911 | V2RawResponseItemCompletedNotification__InternalChatMessageMetadataPassthrough, | | |
| 27912 | Schema.Null, | | |
| 27913 | ]), | | |
| 27914 | ), | | |
| 27915 | type: Schema.Literal("context_compaction").annotate({ | | |
| 27916 | title: "ContextCompactionResponseItemType", | | |
| 27917 | }), | 36465 | }), |
| 27918 | }).annotate({ title: "ContextCompactionResponseItem" }), | 36466 | }).annotate({ title: "ExitedReviewModeThreadItem" }), |
| 27919 | Schema.Struct({ | 36467 | Schema.Struct({ |
| 27920 | type: Schema.Literal("other").annotate({ title: "OtherResponseItemType" }), | 36468 | id: Schema.String, |
| 27921 | }).annotate({ title: "OtherResponseItem" }), | 36469 | type: Schema.Literal("contextCompaction").annotate({ |
| | 36470 | title: "ContextCompactionThreadItemType", |
| | 36471 | }), |
| | 36472 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 27922 | ], | 36473 | ], |
| 27923 | { mode: "oneOf" }, | 36474 | { mode: "oneOf" }, |
| 27924 | ).annotate({ identifier: "V2RawResponseItemCompletedNotification__ResponseItem" }); | 36475 | ).annotate({ identifier: "V2ThreadForkResponse__ThreadItem" }); |
| 27925 | | 36476 | |
| 27926 | export type V2ReviewStartResponse__ThreadItem = | 36477 | export type V2ThreadItemsListResponse__ThreadItem = |
| 27927 | | { | 36478 | | { |
| 27928 | readonly clientId?: string | null; | 36479 | readonly clientId?: string | null; |
| 27929 | readonly content: ReadonlyArray<V2ReviewStartResponse__UserInput>; | 36480 | readonly content: ReadonlyArray<V2ThreadItemsListResponse__UserInput>; |
| 27930 | readonly id: string; | 36481 | readonly id: string; |
| 27931 | readonly type: "userMessage"; | 36482 | readonly type: "userMessage"; |
| 27932 | } | 36483 | } |
| 27933 | | { | 36484 | | { |
| 27934 | readonly fragments: ReadonlyArray<V2ReviewStartResponse__HookPromptFragment>; | 36485 | readonly fragments: ReadonlyArray<V2ThreadItemsListResponse__HookPromptFragment>; |
| 27935 | readonly id: string; | 36486 | readonly id: string; |
| 27936 | readonly type: "hookPrompt"; | 36487 | readonly type: "hookPrompt"; |
| 27937 | } | 36488 | } |
| 27938 | | { | 36489 | | { |
| | 36490 | readonly delivery?: V2ThreadItemsListResponse__AgentMessageDelivery | null; |
| 27939 | readonly id: string; | 36491 | readonly id: string; |
| 27940 | readonly memoryCitation?: V2ReviewStartResponse__MemoryCitation | null; | 36492 | readonly memoryCitation?: V2ThreadItemsListResponse__MemoryCitation | null; |
| 27941 | readonly phase?: V2ReviewStartResponse__MessagePhase | null; | 36493 | readonly phase?: V2ThreadItemsListResponse__MessagePhase | null; |
| | 36494 | readonly questions?: ReadonlyArray<V2ThreadItemsListResponse__AsyncUserInputQuestion> | null; |
| 27942 | readonly text: string; | 36495 | readonly text: string; |
| 27943 | readonly delivery?: "async" | null; | | |
| 27944 | readonly questions?: ReadonlyArray<{ | | |
| 27945 | readonly title: string; | | |
| 27946 | readonly options?: ReadonlyArray<string> | null; | | |
| 27947 | }> | null; | | |
| 27948 | readonly type: "agentMessage"; | 36496 | readonly type: "agentMessage"; |
| 27949 | } | 36497 | } |
| | 36498 | | { |
| | 36499 | readonly id: string; |
| | 36500 | readonly name: string; |
| | 36501 | readonly namespace?: string | null; |
| | 36502 | readonly output: V2ThreadItemsListResponse__FunctionCallOutputBody; |
| | 36503 | readonly type: "functionCallOutput"; |
| | 36504 | } |
| 27950 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 36505 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 27951 | | { | 36506 | | { |
| 27952 | readonly content?: ReadonlyArray<string>; | 36507 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -27957,68 +36512,72 @@ export type V2ReviewStartResponse__ThreadItem = | ... | @@ -27957,68 +36512,72 @@ export type V2ReviewStartResponse__ThreadItem = |
| 27957 | | { | 36512 | | { |
| 27958 | readonly aggregatedOutput?: string | null; | 36513 | readonly aggregatedOutput?: string | null; |
| 27959 | readonly command: string; | 36514 | readonly command: string; |
| 27960 | readonly commandActions: ReadonlyArray<V2ReviewStartResponse__CommandAction>; | 36515 | readonly commandActions: ReadonlyArray<V2ThreadItemsListResponse__CommandAction>; |
| 27961 | readonly cwd: V2ReviewStartResponse__LegacyAppPathString; | 36516 | readonly cwd: V2ThreadItemsListResponse__LegacyAppPathString; |
| 27962 | readonly durationMs?: number | null; | 36517 | readonly durationMs?: number | null; |
| 27963 | readonly exitCode?: number | null; | 36518 | readonly exitCode?: number | null; |
| 27964 | readonly id: string; | 36519 | readonly id: string; |
| | 36520 | readonly pluginId?: string | null; |
| 27965 | readonly processId?: string | null; | 36521 | readonly processId?: string | null; |
| 27966 | readonly source?: V2ReviewStartResponse__CommandExecutionSource; | 36522 | readonly scriptPath?: string | null; |
| 27967 | readonly status: V2ReviewStartResponse__CommandExecutionStatus; | 36523 | readonly source?: V2ThreadItemsListResponse__CommandExecutionSource; |
| | 36524 | readonly status: V2ThreadItemsListResponse__CommandExecutionStatus; |
| 27968 | readonly type: "commandExecution"; | 36525 | readonly type: "commandExecution"; |
| 27969 | } | 36526 | } |
| 27970 | | { | 36527 | | { |
| 27971 | readonly changes: ReadonlyArray<V2ReviewStartResponse__FileUpdateChange>; | 36528 | readonly changes: ReadonlyArray<V2ThreadItemsListResponse__FileUpdateChange>; |
| 27972 | readonly id: string; | 36529 | readonly id: string; |
| 27973 | readonly status: V2ReviewStartResponse__PatchApplyStatus; | 36530 | readonly status: V2ThreadItemsListResponse__PatchApplyStatus; |
| 27974 | readonly type: "fileChange"; | 36531 | readonly type: "fileChange"; |
| 27975 | } | 36532 | } |
| 27976 | | { | 36533 | | { |
| 27977 | readonly appContext?: V2ReviewStartResponse__McpToolCallAppContext | null; | 36534 | readonly appContext?: V2ThreadItemsListResponse__McpToolCallAppContext | null; |
| 27978 | readonly arguments: Schema.Json; | 36535 | readonly arguments: Schema.Json; |
| 27979 | readonly durationMs?: number | null; | 36536 | readonly durationMs?: number | null; |
| 27980 | readonly error?: V2ReviewStartResponse__McpToolCallError | null; | 36537 | readonly error?: V2ThreadItemsListResponse__McpToolCallError | null; |
| 27981 | readonly id: string; | 36538 | readonly id: string; |
| 27982 | readonly mcpAppResourceUri?: string | null; | 36539 | readonly mcpAppResourceUri?: string | null; |
| | 36540 | readonly mcpAppUi?: V2ThreadItemsListResponse__McpAppUi | null; |
| 27983 | readonly pluginId?: string | null; | 36541 | readonly pluginId?: string | null; |
| 27984 | readonly result?: V2ReviewStartResponse__McpToolCallResult | null; | 36542 | readonly readOnlyHint?: boolean | null; |
| | 36543 | readonly result?: V2ThreadItemsListResponse__McpToolCallResult | null; |
| 27985 | readonly server: string; | 36544 | readonly server: string; |
| 27986 | readonly status: V2ReviewStartResponse__McpToolCallStatus; | 36545 | readonly status: V2ThreadItemsListResponse__McpToolCallStatus; |
| 27987 | readonly tool: string; | 36546 | readonly tool: string; |
| 27988 | readonly type: "mcpToolCall"; | 36547 | readonly type: "mcpToolCall"; |
| 27989 | } | 36548 | } |
| 27990 | | { | 36549 | | { |
| 27991 | readonly arguments: Schema.Json; | 36550 | readonly arguments: Schema.Json; |
| 27992 | readonly contentItems?: ReadonlyArray<V2ReviewStartResponse__DynamicToolCallOutputContentItem> | null; | 36551 | readonly contentItems?: ReadonlyArray<V2ThreadItemsListResponse__DynamicToolCallOutputContentItem> | null; |
| 27993 | readonly durationMs?: number | null; | 36552 | readonly durationMs?: number | null; |
| 27994 | readonly id: string; | 36553 | readonly id: string; |
| 27995 | readonly namespace?: string | null; | 36554 | readonly namespace?: string | null; |
| 27996 | readonly status: V2ReviewStartResponse__DynamicToolCallStatus; | 36555 | readonly status: V2ThreadItemsListResponse__DynamicToolCallStatus; |
| 27997 | readonly success?: boolean | null; | 36556 | readonly success?: boolean | null; |
| 27998 | readonly tool: string; | 36557 | readonly tool: string; |
| 27999 | readonly type: "dynamicToolCall"; | 36558 | readonly type: "dynamicToolCall"; |
| 28000 | } | 36559 | } |
| 28001 | | { | 36560 | | { |
| 28002 | readonly agentsStates: { readonly [x: string]: V2ReviewStartResponse__CollabAgentState }; | 36561 | readonly agentsStates: { readonly [x: string]: V2ThreadItemsListResponse__CollabAgentState }; |
| 28003 | readonly id: string; | 36562 | readonly id: string; |
| 28004 | readonly model?: string | null; | 36563 | readonly model?: string | null; |
| 28005 | readonly prompt?: string | null; | 36564 | readonly prompt?: string | null; |
| 28006 | readonly reasoningEffort?: V2ReviewStartResponse__ReasoningEffort | null; | 36565 | readonly reasoningEffort?: V2ThreadItemsListResponse__ReasoningEffort | null; |
| 28007 | readonly receiverThreadIds: ReadonlyArray<string>; | 36566 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 28008 | readonly senderThreadId: string; | 36567 | readonly senderThreadId: string; |
| 28009 | readonly status: V2ReviewStartResponse__CollabAgentToolCallStatus; | 36568 | readonly status: V2ThreadItemsListResponse__CollabAgentToolCallStatus; |
| 28010 | readonly tool: V2ReviewStartResponse__CollabAgentTool; | 36569 | readonly tool: V2ThreadItemsListResponse__CollabAgentTool; |
| 28011 | readonly type: "collabAgentToolCall"; | 36570 | readonly type: "collabAgentToolCall"; |
| 28012 | } | 36571 | } |
| 28013 | | { | 36572 | | { |
| 28014 | readonly agentPath: string; | 36573 | readonly agentPath: string; |
| 28015 | readonly agentThreadId: string; | 36574 | readonly agentThreadId: string; |
| 28016 | readonly id: string; | 36575 | readonly id: string; |
| 28017 | readonly kind: V2ReviewStartResponse__SubAgentActivityKind; | 36576 | readonly kind: V2ThreadItemsListResponse__SubAgentActivityKind; |
| 28018 | readonly type: "subAgentActivity"; | 36577 | readonly type: "subAgentActivity"; |
| 28019 | } | 36578 | } |
| 28020 | | { | 36579 | | { |
| 28021 | readonly action?: V2ReviewStartResponse__WebSearchAction | null; | 36580 | readonly action?: V2ThreadItemsListResponse__WebSearchAction | null; |
| 28022 | readonly id: string; | 36581 | readonly id: string; |
| 28023 | readonly query: string; | 36582 | readonly query: string; |
| 28024 | readonly results?: ReadonlyArray<Schema.Json> | null; | 36583 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -28026,55 +36585,65 @@ export type V2ReviewStartResponse__ThreadItem = | ... | @@ -28026,55 +36585,65 @@ export type V2ReviewStartResponse__ThreadItem = |
| 28026 | } | 36585 | } |
| 28027 | | { | 36586 | | { |
| 28028 | readonly id: string; | 36587 | readonly id: string; |
| 28029 | readonly path: V2ReviewStartResponse__LegacyAppPathString; | 36588 | readonly path: V2ThreadItemsListResponse__LegacyAppPathString; |
| 28030 | readonly type: "imageView"; | 36589 | readonly type: "imageView"; |
| 28031 | } | 36590 | } |
| 28032 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 36591 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 28033 | | { | 36592 | | { |
| | 36593 | readonly failure?: V2ThreadItemsListResponse__ImageGenerationFailure | null; |
| 28034 | readonly id: string; | 36594 | readonly id: string; |
| 28035 | readonly result: string; | 36595 | readonly result: string; |
| 28036 | readonly revisedPrompt?: string | null; | 36596 | readonly revisedPrompt?: string | null; |
| 28037 | readonly savedPath?: V2ReviewStartResponse__AbsolutePathBuf | null; | 36597 | readonly savedPath?: V2ThreadItemsListResponse__AbsolutePathBuf | null; |
| 28038 | readonly status: string; | 36598 | readonly status: string; |
| | 36599 | readonly transparentBackground?: boolean | null; |
| 28039 | readonly type: "imageGeneration"; | 36600 | readonly type: "imageGeneration"; |
| 28040 | } | 36601 | } |
| 28041 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 36602 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 28042 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 36603 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 28043 | | { readonly id: string; readonly type: "contextCompaction" }; | 36604 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 28044 | export const V2ReviewStartResponse__ThreadItem = Schema.Union( | 36605 | export const V2ThreadItemsListResponse__ThreadItem = Schema.Union( |
| 28045 | [ | 36606 | [ |
| 28046 | Schema.Struct({ | 36607 | Schema.Struct({ |
| 28047 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36608 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28048 | content: Schema.Array(V2ReviewStartResponse__UserInput), | 36609 | content: Schema.Array(V2ThreadItemsListResponse__UserInput), |
| 28049 | id: Schema.String, | 36610 | id: Schema.String, |
| 28050 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 36611 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 28051 | }).annotate({ title: "UserMessageThreadItem" }), | 36612 | }).annotate({ title: "UserMessageThreadItem" }), |
| 28052 | Schema.Struct({ | 36613 | Schema.Struct({ |
| 28053 | fragments: Schema.Array(V2ReviewStartResponse__HookPromptFragment), | 36614 | fragments: Schema.Array(V2ThreadItemsListResponse__HookPromptFragment), |
| 28054 | id: Schema.String, | 36615 | id: Schema.String, |
| 28055 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 36616 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 28056 | }).annotate({ title: "HookPromptThreadItem" }), | 36617 | }).annotate({ title: "HookPromptThreadItem" }), |
| 28057 | Schema.Struct({ | 36618 | Schema.Struct({ |
| | 36619 | delivery: Schema.optionalKey( |
| | 36620 | Schema.Union([V2ThreadItemsListResponse__AgentMessageDelivery, Schema.Null]), |
| | 36621 | ), |
| 28058 | id: Schema.String, | 36622 | id: Schema.String, |
| 28059 | memoryCitation: Schema.optionalKey( | 36623 | memoryCitation: Schema.optionalKey( |
| 28060 | Schema.Union([V2ReviewStartResponse__MemoryCitation, Schema.Null]), | 36624 | Schema.Union([V2ThreadItemsListResponse__MemoryCitation, Schema.Null]), |
| | 36625 | ), |
| | 36626 | phase: Schema.optionalKey( |
| | 36627 | Schema.Union([V2ThreadItemsListResponse__MessagePhase, Schema.Null]), |
| 28061 | ), | 36628 | ), |
| 28062 | phase: Schema.optionalKey(Schema.Union([V2ReviewStartResponse__MessagePhase, Schema.Null])), | | |
| 28063 | text: Schema.String, | | |
| 28064 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 28065 | questions: Schema.optionalKey( | 36629 | questions: Schema.optionalKey( |
| 28066 | Schema.Union([ | 36630 | Schema.Union([ |
| 28067 | Schema.Array( | 36631 | Schema.Array(V2ThreadItemsListResponse__AsyncUserInputQuestion), |
| 28068 | Schema.Struct({ | | |
| 28069 | title: Schema.String, | | |
| 28070 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 28071 | }), | | |
| 28072 | ), | | |
| 28073 | Schema.Null, | 36632 | Schema.Null, |
| 28074 | ]), | 36633 | ]), |
| 28075 | ), | 36634 | ), |
| | 36635 | text: Schema.String, |
| 28076 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 36636 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 28077 | }).annotate({ title: "AgentMessageThreadItem" }), | 36637 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 36638 | Schema.Struct({ |
| | 36639 | id: Schema.String, |
| | 36640 | name: Schema.String, |
| | 36641 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 36642 | output: V2ThreadItemsListResponse__FunctionCallOutputBody, |
| | 36643 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 36644 | title: "FunctionCallOutputThreadItemType", |
| | 36645 | }), |
| | 36646 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 28078 | Schema.Struct({ | 36647 | Schema.Struct({ |
| 28079 | id: Schema.String, | 36648 | id: Schema.String, |
| 28080 | text: Schema.String, | 36649 | text: Schema.String, |
| ... | @@ -28100,13 +36669,13 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28100,13 +36669,13 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28100 | ]), | 36669 | ]), |
| 28101 | ), | 36670 | ), |
| 28102 | command: Schema.String.annotate({ description: "The command to be executed." }), | 36671 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 28103 | commandActions: Schema.Array(V2ReviewStartResponse__CommandAction).annotate({ | 36672 | commandActions: Schema.Array(V2ThreadItemsListResponse__CommandAction).annotate({ |
| 28104 | description: | 36673 | description: |
| 28105 | "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.", | 36674 | "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.", |
| 28106 | }), | 36675 | }), |
| 28107 | cwd: Schema.suspend( | 36676 | cwd: Schema.suspend( |
| 28108 | (): Schema.Codec<V2ReviewStartResponse__LegacyAppPathString> => | 36677 | (): Schema.Codec<V2ThreadItemsListResponse__LegacyAppPathString> => |
| 28109 | V2ReviewStartResponse__LegacyAppPathString, | 36678 | V2ThreadItemsListResponse__LegacyAppPathString, |
| 28110 | ).annotate({ description: "The command's working directory." }), | 36679 | ).annotate({ description: "The command's working directory." }), |
| 28111 | durationMs: Schema.optionalKey( | 36680 | durationMs: Schema.optionalKey( |
| 28112 | Schema.Union([ | 36681 | Schema.Union([ |
| ... | @@ -28127,6 +36696,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28127,6 +36696,15 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28127 | ]), | 36696 | ]), |
| 28128 | ), | 36697 | ), |
| 28129 | id: Schema.String, | 36698 | id: Schema.String, |
| | 36699 | pluginId: Schema.optionalKey( |
| | 36700 | Schema.Union([ |
| | 36701 | Schema.String.annotate({ |
| | 36702 | description: |
| | 36703 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 36704 | }), |
| | 36705 | Schema.Null, |
| | 36706 | ]), |
| | 36707 | ), |
| 28130 | processId: Schema.optionalKey( | 36708 | processId: Schema.optionalKey( |
| 28131 | Schema.Union([ | 36709 | Schema.Union([ |
| 28132 | Schema.String.annotate({ | 36710 | Schema.String.annotate({ |
| ... | @@ -28135,26 +36713,35 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28135,26 +36713,35 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28135 | Schema.Null, | 36713 | Schema.Null, |
| 28136 | ]), | 36714 | ]), |
| 28137 | ), | 36715 | ), |
| | 36716 | scriptPath: Schema.optionalKey( |
| | 36717 | Schema.Union([ |
| | 36718 | Schema.String.annotate({ |
| | 36719 | description: |
| | 36720 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 36721 | }), |
| | 36722 | Schema.Null, |
| | 36723 | ]), |
| | 36724 | ), |
| 28138 | source: Schema.optionalKey( | 36725 | source: Schema.optionalKey( |
| 28139 | Schema.suspend( | 36726 | Schema.suspend( |
| 28140 | (): Schema.Codec<V2ReviewStartResponse__CommandExecutionSource> => | 36727 | (): Schema.Codec<V2ThreadItemsListResponse__CommandExecutionSource> => |
| 28141 | V2ReviewStartResponse__CommandExecutionSource, | 36728 | V2ThreadItemsListResponse__CommandExecutionSource, |
| 28142 | ).annotate({ default: "agent" }), | 36729 | ).annotate({ default: "agent" }), |
| 28143 | ), | 36730 | ), |
| 28144 | status: V2ReviewStartResponse__CommandExecutionStatus, | 36731 | status: V2ThreadItemsListResponse__CommandExecutionStatus, |
| 28145 | type: Schema.Literal("commandExecution").annotate({ | 36732 | type: Schema.Literal("commandExecution").annotate({ |
| 28146 | title: "CommandExecutionThreadItemType", | 36733 | title: "CommandExecutionThreadItemType", |
| 28147 | }), | 36734 | }), |
| 28148 | }).annotate({ title: "CommandExecutionThreadItem" }), | 36735 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 28149 | Schema.Struct({ | 36736 | Schema.Struct({ |
| 28150 | changes: Schema.Array(V2ReviewStartResponse__FileUpdateChange), | 36737 | changes: Schema.Array(V2ThreadItemsListResponse__FileUpdateChange), |
| 28151 | id: Schema.String, | 36738 | id: Schema.String, |
| 28152 | status: V2ReviewStartResponse__PatchApplyStatus, | 36739 | status: V2ThreadItemsListResponse__PatchApplyStatus, |
| 28153 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 36740 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 28154 | }).annotate({ title: "FileChangeThreadItem" }), | 36741 | }).annotate({ title: "FileChangeThreadItem" }), |
| 28155 | Schema.Struct({ | 36742 | Schema.Struct({ |
| 28156 | appContext: Schema.optionalKey( | 36743 | appContext: Schema.optionalKey( |
| 28157 | Schema.Union([V2ReviewStartResponse__McpToolCallAppContext, Schema.Null]), | 36744 | Schema.Union([V2ThreadItemsListResponse__McpToolCallAppContext, Schema.Null]), |
| 28158 | ), | 36745 | ), |
| 28159 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 36746 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28160 | durationMs: Schema.optionalKey( | 36747 | durationMs: Schema.optionalKey( |
| ... | @@ -28167,23 +36754,31 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28167,23 +36754,31 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28167 | ]), | 36754 | ]), |
| 28168 | ), | 36755 | ), |
| 28169 | error: Schema.optionalKey( | 36756 | error: Schema.optionalKey( |
| 28170 | Schema.Union([V2ReviewStartResponse__McpToolCallError, Schema.Null]), | 36757 | Schema.Union([V2ThreadItemsListResponse__McpToolCallError, Schema.Null]), |
| 28171 | ), | 36758 | ), |
| 28172 | id: Schema.String, | 36759 | id: Schema.String, |
| 28173 | mcpAppResourceUri: Schema.optionalKey( | 36760 | mcpAppResourceUri: Schema.optionalKey( |
| 28174 | Schema.Union([ | 36761 | Schema.Union([ |
| 28175 | Schema.String.annotate({ | 36762 | Schema.String.annotate({ |
| 28176 | description: "Deprecated: use `appContext.resourceUri` instead.", | 36763 | description: |
| | 36764 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 28177 | }), | 36765 | }), |
| 28178 | Schema.Null, | 36766 | Schema.Null, |
| 28179 | ]), | 36767 | ]), |
| 28180 | ), | 36768 | ), |
| | 36769 | mcpAppUi: Schema.optionalKey( |
| | 36770 | Schema.Union([V2ThreadItemsListResponse__McpAppUi, Schema.Null]).annotate({ |
| | 36771 | description: |
| | 36772 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 36773 | }), |
| | 36774 | ), |
| 28181 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36775 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 36776 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28182 | result: Schema.optionalKey( | 36777 | result: Schema.optionalKey( |
| 28183 | Schema.Union([V2ReviewStartResponse__McpToolCallResult, Schema.Null]), | 36778 | Schema.Union([V2ThreadItemsListResponse__McpToolCallResult, Schema.Null]), |
| 28184 | ), | 36779 | ), |
| 28185 | server: Schema.String, | 36780 | server: Schema.String, |
| 28186 | status: V2ReviewStartResponse__McpToolCallStatus, | 36781 | status: V2ThreadItemsListResponse__McpToolCallStatus, |
| 28187 | tool: Schema.String, | 36782 | tool: Schema.String, |
| 28188 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 36783 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 28189 | }).annotate({ title: "McpToolCallThreadItem" }), | 36784 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -28191,7 +36786,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28191,7 +36786,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28191 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 36786 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28192 | contentItems: Schema.optionalKey( | 36787 | contentItems: Schema.optionalKey( |
| 28193 | Schema.Union([ | 36788 | Schema.Union([ |
| 28194 | Schema.Array(V2ReviewStartResponse__DynamicToolCallOutputContentItem), | 36789 | Schema.Array(V2ThreadItemsListResponse__DynamicToolCallOutputContentItem), |
| 28195 | Schema.Null, | 36790 | Schema.Null, |
| 28196 | ]), | 36791 | ]), |
| 28197 | ), | 36792 | ), |
| ... | @@ -28206,15 +36801,16 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28206,15 +36801,16 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28206 | ), | 36801 | ), |
| 28207 | id: Schema.String, | 36802 | id: Schema.String, |
| 28208 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36803 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28209 | status: V2ReviewStartResponse__DynamicToolCallStatus, | 36804 | status: V2ThreadItemsListResponse__DynamicToolCallStatus, |
| 28210 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 36805 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28211 | tool: Schema.String, | 36806 | tool: Schema.String, |
| 28212 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 36807 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 28213 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 36808 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 28214 | Schema.Struct({ | 36809 | Schema.Struct({ |
| 28215 | agentsStates: Schema.Record(Schema.String, V2ReviewStartResponse__CollabAgentState).annotate({ | 36810 | agentsStates: Schema.Record( |
| 28216 | description: "Last known status of the target agents, when available.", | 36811 | Schema.String, |
| 28217 | }), | 36812 | V2ThreadItemsListResponse__CollabAgentState, |
| | 36813 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 28218 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 36814 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 28219 | model: Schema.optionalKey( | 36815 | model: Schema.optionalKey( |
| 28220 | Schema.Union([ | 36816 | Schema.Union([ |
| ... | @@ -28233,7 +36829,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28233,7 +36829,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28233 | ]), | 36829 | ]), |
| 28234 | ), | 36830 | ), |
| 28235 | reasoningEffort: Schema.optionalKey( | 36831 | reasoningEffort: Schema.optionalKey( |
| 28236 | Schema.Union([V2ReviewStartResponse__ReasoningEffort, Schema.Null]).annotate({ | 36832 | Schema.Union([V2ThreadItemsListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 28237 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 36833 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 28238 | }), | 36834 | }), |
| 28239 | ), | 36835 | ), |
| ... | @@ -28245,12 +36841,12 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28245,12 +36841,12 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28245 | description: "Thread ID of the agent issuing the collab request.", | 36841 | description: "Thread ID of the agent issuing the collab request.", |
| 28246 | }), | 36842 | }), |
| 28247 | status: Schema.suspend( | 36843 | status: Schema.suspend( |
| 28248 | (): Schema.Codec<V2ReviewStartResponse__CollabAgentToolCallStatus> => | 36844 | (): Schema.Codec<V2ThreadItemsListResponse__CollabAgentToolCallStatus> => |
| 28249 | V2ReviewStartResponse__CollabAgentToolCallStatus, | 36845 | V2ThreadItemsListResponse__CollabAgentToolCallStatus, |
| 28250 | ).annotate({ description: "Current status of the collab tool call." }), | 36846 | ).annotate({ description: "Current status of the collab tool call." }), |
| 28251 | tool: Schema.suspend( | 36847 | tool: Schema.suspend( |
| 28252 | (): Schema.Codec<V2ReviewStartResponse__CollabAgentTool> => | 36848 | (): Schema.Codec<V2ThreadItemsListResponse__CollabAgentTool> => |
| 28253 | V2ReviewStartResponse__CollabAgentTool, | 36849 | V2ThreadItemsListResponse__CollabAgentTool, |
| 28254 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 36850 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 28255 | type: Schema.Literal("collabAgentToolCall").annotate({ | 36851 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 28256 | title: "CollabAgentToolCallThreadItemType", | 36852 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -28260,14 +36856,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28260,14 +36856,14 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28260 | agentPath: Schema.String, | 36856 | agentPath: Schema.String, |
| 28261 | agentThreadId: Schema.String, | 36857 | agentThreadId: Schema.String, |
| 28262 | id: Schema.String, | 36858 | id: Schema.String, |
| 28263 | kind: V2ReviewStartResponse__SubAgentActivityKind, | 36859 | kind: V2ThreadItemsListResponse__SubAgentActivityKind, |
| 28264 | type: Schema.Literal("subAgentActivity").annotate({ | 36860 | type: Schema.Literal("subAgentActivity").annotate({ |
| 28265 | title: "SubAgentActivityThreadItemType", | 36861 | title: "SubAgentActivityThreadItemType", |
| 28266 | }), | 36862 | }), |
| 28267 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 36863 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 28268 | Schema.Struct({ | 36864 | Schema.Struct({ |
| 28269 | action: Schema.optionalKey( | 36865 | action: Schema.optionalKey( |
| 28270 | Schema.Union([V2ReviewStartResponse__WebSearchAction, Schema.Null]), | 36866 | Schema.Union([V2ThreadItemsListResponse__WebSearchAction, Schema.Null]), |
| 28271 | ), | 36867 | ), |
| 28272 | id: Schema.String, | 36868 | id: Schema.String, |
| 28273 | query: Schema.String, | 36869 | query: Schema.String, |
| ... | @@ -28284,7 +36880,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28284,7 +36880,7 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28284 | }).annotate({ title: "WebSearchThreadItem" }), | 36880 | }).annotate({ title: "WebSearchThreadItem" }), |
| 28285 | Schema.Struct({ | 36881 | Schema.Struct({ |
| 28286 | id: Schema.String, | 36882 | id: Schema.String, |
| 28287 | path: V2ReviewStartResponse__LegacyAppPathString, | 36883 | path: V2ThreadItemsListResponse__LegacyAppPathString, |
| 28288 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 36884 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 28289 | }).annotate({ title: "ImageViewThreadItem" }), | 36885 | }).annotate({ title: "ImageViewThreadItem" }), |
| 28290 | Schema.Struct({ | 36886 | Schema.Struct({ |
| ... | @@ -28302,13 +36898,17 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28302,13 +36898,17 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28302 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 36898 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 28303 | }), | 36899 | }), |
| 28304 | Schema.Struct({ | 36900 | Schema.Struct({ |
| | 36901 | failure: Schema.optionalKey( |
| | 36902 | Schema.Union([V2ThreadItemsListResponse__ImageGenerationFailure, Schema.Null]), |
| | 36903 | ), |
| 28305 | id: Schema.String, | 36904 | id: Schema.String, |
| 28306 | result: Schema.String, | 36905 | result: Schema.String, |
| 28307 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 36906 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28308 | savedPath: Schema.optionalKey( | 36907 | savedPath: Schema.optionalKey( |
| 28309 | Schema.Union([V2ReviewStartResponse__AbsolutePathBuf, Schema.Null]), | 36908 | Schema.Union([V2ThreadItemsListResponse__AbsolutePathBuf, Schema.Null]), |
| 28310 | ), | 36909 | ), |
| 28311 | status: Schema.String, | 36910 | status: Schema.String, |
| | 36911 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28312 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 36912 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 28313 | }).annotate({ title: "ImageGenerationThreadItem" }), | 36913 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 28314 | Schema.Struct({ | 36914 | Schema.Struct({ |
| ... | @@ -28333,43 +36933,36 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( | ... | @@ -28333,43 +36933,36 @@ export const V2ReviewStartResponse__ThreadItem = Schema.Union( |
| 28333 | }).annotate({ title: "ContextCompactionThreadItem" }), | 36933 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 28334 | ], | 36934 | ], |
| 28335 | { mode: "oneOf" }, | 36935 | { mode: "oneOf" }, |
| 28336 | ).annotate({ identifier: "V2ReviewStartResponse__ThreadItem" }); | 36936 | ).annotate({ identifier: "V2ThreadItemsListResponse__ThreadItem" }); |
| 28337 | | | |
| 28338 | export type V2SkillsListResponse__SkillsListEntry = { | | |
| 28339 | readonly cwd: string; | | |
| 28340 | readonly errors: ReadonlyArray<V2SkillsListResponse__SkillErrorInfo>; | | |
| 28341 | readonly skills: ReadonlyArray<V2SkillsListResponse__SkillMetadata>; | | |
| 28342 | }; | | |
| 28343 | export const V2SkillsListResponse__SkillsListEntry = Schema.Struct({ | | |
| 28344 | cwd: Schema.String, | | |
| 28345 | errors: Schema.Array(V2SkillsListResponse__SkillErrorInfo), | | |
| 28346 | skills: Schema.Array(V2SkillsListResponse__SkillMetadata), | | |
| 28347 | }).annotate({ identifier: "V2SkillsListResponse__SkillsListEntry" }); | | |
| 28348 | | 36937 | |
| 28349 | export type V2ThreadForkResponse__ThreadItem = | 36938 | export type V2ThreadListResponse__ThreadItem = |
| 28350 | | { | 36939 | | { |
| 28351 | readonly clientId?: string | null; | 36940 | readonly clientId?: string | null; |
| 28352 | readonly content: ReadonlyArray<V2ThreadForkResponse__UserInput>; | 36941 | readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>; |
| 28353 | readonly id: string; | 36942 | readonly id: string; |
| 28354 | readonly type: "userMessage"; | 36943 | readonly type: "userMessage"; |
| 28355 | } | 36944 | } |
| 28356 | | { | 36945 | | { |
| 28357 | readonly fragments: ReadonlyArray<V2ThreadForkResponse__HookPromptFragment>; | 36946 | readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>; |
| 28358 | readonly id: string; | 36947 | readonly id: string; |
| 28359 | readonly type: "hookPrompt"; | 36948 | readonly type: "hookPrompt"; |
| 28360 | } | 36949 | } |
| 28361 | | { | 36950 | | { |
| | 36951 | readonly delivery?: V2ThreadListResponse__AgentMessageDelivery | null; |
| 28362 | readonly id: string; | 36952 | readonly id: string; |
| 28363 | readonly memoryCitation?: V2ThreadForkResponse__MemoryCitation | null; | 36953 | readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null; |
| 28364 | readonly phase?: V2ThreadForkResponse__MessagePhase | null; | 36954 | readonly phase?: V2ThreadListResponse__MessagePhase | null; |
| | 36955 | readonly questions?: ReadonlyArray<V2ThreadListResponse__AsyncUserInputQuestion> | null; |
| 28365 | readonly text: string; | 36956 | readonly text: string; |
| 28366 | readonly delivery?: "async" | null; | | |
| 28367 | readonly questions?: ReadonlyArray<{ | | |
| 28368 | readonly title: string; | | |
| 28369 | readonly options?: ReadonlyArray<string> | null; | | |
| 28370 | }> | null; | | |
| 28371 | readonly type: "agentMessage"; | 36957 | readonly type: "agentMessage"; |
| 28372 | } | 36958 | } |
| | 36959 | | { |
| | 36960 | readonly id: string; |
| | 36961 | readonly name: string; |
| | 36962 | readonly namespace?: string | null; |
| | 36963 | readonly output: V2ThreadListResponse__FunctionCallOutputBody; |
| | 36964 | readonly type: "functionCallOutput"; |
| | 36965 | } |
| 28373 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 36966 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 28374 | | { | 36967 | | { |
| 28375 | readonly content?: ReadonlyArray<string>; | 36968 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -28380,68 +36973,72 @@ export type V2ThreadForkResponse__ThreadItem = | ... | @@ -28380,68 +36973,72 @@ export type V2ThreadForkResponse__ThreadItem = |
| 28380 | | { | 36973 | | { |
| 28381 | readonly aggregatedOutput?: string | null; | 36974 | readonly aggregatedOutput?: string | null; |
| 28382 | readonly command: string; | 36975 | readonly command: string; |
| 28383 | readonly commandActions: ReadonlyArray<V2ThreadForkResponse__CommandAction>; | 36976 | readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>; |
| 28384 | readonly cwd: V2ThreadForkResponse__LegacyAppPathString; | 36977 | readonly cwd: V2ThreadListResponse__LegacyAppPathString; |
| 28385 | readonly durationMs?: number | null; | 36978 | readonly durationMs?: number | null; |
| 28386 | readonly exitCode?: number | null; | 36979 | readonly exitCode?: number | null; |
| 28387 | readonly id: string; | 36980 | readonly id: string; |
| | 36981 | readonly pluginId?: string | null; |
| 28388 | readonly processId?: string | null; | 36982 | readonly processId?: string | null; |
| 28389 | readonly source?: V2ThreadForkResponse__CommandExecutionSource; | 36983 | readonly scriptPath?: string | null; |
| 28390 | readonly status: V2ThreadForkResponse__CommandExecutionStatus; | 36984 | readonly source?: V2ThreadListResponse__CommandExecutionSource; |
| | 36985 | readonly status: V2ThreadListResponse__CommandExecutionStatus; |
| 28391 | readonly type: "commandExecution"; | 36986 | readonly type: "commandExecution"; |
| 28392 | } | 36987 | } |
| 28393 | | { | 36988 | | { |
| 28394 | readonly changes: ReadonlyArray<V2ThreadForkResponse__FileUpdateChange>; | 36989 | readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>; |
| 28395 | readonly id: string; | 36990 | readonly id: string; |
| 28396 | readonly status: V2ThreadForkResponse__PatchApplyStatus; | 36991 | readonly status: V2ThreadListResponse__PatchApplyStatus; |
| 28397 | readonly type: "fileChange"; | 36992 | readonly type: "fileChange"; |
| 28398 | } | 36993 | } |
| 28399 | | { | 36994 | | { |
| 28400 | readonly appContext?: V2ThreadForkResponse__McpToolCallAppContext | null; | 36995 | readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null; |
| 28401 | readonly arguments: Schema.Json; | 36996 | readonly arguments: Schema.Json; |
| 28402 | readonly durationMs?: number | null; | 36997 | readonly durationMs?: number | null; |
| 28403 | readonly error?: V2ThreadForkResponse__McpToolCallError | null; | 36998 | readonly error?: V2ThreadListResponse__McpToolCallError | null; |
| 28404 | readonly id: string; | 36999 | readonly id: string; |
| 28405 | readonly mcpAppResourceUri?: string | null; | 37000 | readonly mcpAppResourceUri?: string | null; |
| | 37001 | readonly mcpAppUi?: V2ThreadListResponse__McpAppUi | null; |
| 28406 | readonly pluginId?: string | null; | 37002 | readonly pluginId?: string | null; |
| 28407 | readonly result?: V2ThreadForkResponse__McpToolCallResult | null; | 37003 | readonly readOnlyHint?: boolean | null; |
| | 37004 | readonly result?: V2ThreadListResponse__McpToolCallResult | null; |
| 28408 | readonly server: string; | 37005 | readonly server: string; |
| 28409 | readonly status: V2ThreadForkResponse__McpToolCallStatus; | 37006 | readonly status: V2ThreadListResponse__McpToolCallStatus; |
| 28410 | readonly tool: string; | 37007 | readonly tool: string; |
| 28411 | readonly type: "mcpToolCall"; | 37008 | readonly type: "mcpToolCall"; |
| 28412 | } | 37009 | } |
| 28413 | | { | 37010 | | { |
| 28414 | readonly arguments: Schema.Json; | 37011 | readonly arguments: Schema.Json; |
| 28415 | readonly contentItems?: ReadonlyArray<V2ThreadForkResponse__DynamicToolCallOutputContentItem> | null; | 37012 | readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null; |
| 28416 | readonly durationMs?: number | null; | 37013 | readonly durationMs?: number | null; |
| 28417 | readonly id: string; | 37014 | readonly id: string; |
| 28418 | readonly namespace?: string | null; | 37015 | readonly namespace?: string | null; |
| 28419 | readonly status: V2ThreadForkResponse__DynamicToolCallStatus; | 37016 | readonly status: V2ThreadListResponse__DynamicToolCallStatus; |
| 28420 | readonly success?: boolean | null; | 37017 | readonly success?: boolean | null; |
| 28421 | readonly tool: string; | 37018 | readonly tool: string; |
| 28422 | readonly type: "dynamicToolCall"; | 37019 | readonly type: "dynamicToolCall"; |
| 28423 | } | 37020 | } |
| 28424 | | { | 37021 | | { |
| 28425 | readonly agentsStates: { readonly [x: string]: V2ThreadForkResponse__CollabAgentState }; | 37022 | readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState }; |
| 28426 | readonly id: string; | 37023 | readonly id: string; |
| 28427 | readonly model?: string | null; | 37024 | readonly model?: string | null; |
| 28428 | readonly prompt?: string | null; | 37025 | readonly prompt?: string | null; |
| 28429 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; | 37026 | readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null; |
| 28430 | readonly receiverThreadIds: ReadonlyArray<string>; | 37027 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 28431 | readonly senderThreadId: string; | 37028 | readonly senderThreadId: string; |
| 28432 | readonly status: V2ThreadForkResponse__CollabAgentToolCallStatus; | 37029 | readonly status: V2ThreadListResponse__CollabAgentToolCallStatus; |
| 28433 | readonly tool: V2ThreadForkResponse__CollabAgentTool; | 37030 | readonly tool: V2ThreadListResponse__CollabAgentTool; |
| 28434 | readonly type: "collabAgentToolCall"; | 37031 | readonly type: "collabAgentToolCall"; |
| 28435 | } | 37032 | } |
| 28436 | | { | 37033 | | { |
| 28437 | readonly agentPath: string; | 37034 | readonly agentPath: string; |
| 28438 | readonly agentThreadId: string; | 37035 | readonly agentThreadId: string; |
| 28439 | readonly id: string; | 37036 | readonly id: string; |
| 28440 | readonly kind: V2ThreadForkResponse__SubAgentActivityKind; | 37037 | readonly kind: V2ThreadListResponse__SubAgentActivityKind; |
| 28441 | readonly type: "subAgentActivity"; | 37038 | readonly type: "subAgentActivity"; |
| 28442 | } | 37039 | } |
| 28443 | | { | 37040 | | { |
| 28444 | readonly action?: V2ThreadForkResponse__WebSearchAction | null; | 37041 | readonly action?: V2ThreadListResponse__WebSearchAction | null; |
| 28445 | readonly id: string; | 37042 | readonly id: string; |
| 28446 | readonly query: string; | 37043 | readonly query: string; |
| 28447 | readonly results?: ReadonlyArray<Schema.Json> | null; | 37044 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -28449,55 +37046,60 @@ export type V2ThreadForkResponse__ThreadItem = | ... | @@ -28449,55 +37046,60 @@ export type V2ThreadForkResponse__ThreadItem = |
| 28449 | } | 37046 | } |
| 28450 | | { | 37047 | | { |
| 28451 | readonly id: string; | 37048 | readonly id: string; |
| 28452 | readonly path: V2ThreadForkResponse__LegacyAppPathString; | 37049 | readonly path: V2ThreadListResponse__LegacyAppPathString; |
| 28453 | readonly type: "imageView"; | 37050 | readonly type: "imageView"; |
| 28454 | } | 37051 | } |
| 28455 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 37052 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 28456 | | { | 37053 | | { |
| | 37054 | readonly failure?: V2ThreadListResponse__ImageGenerationFailure | null; |
| 28457 | readonly id: string; | 37055 | readonly id: string; |
| 28458 | readonly result: string; | 37056 | readonly result: string; |
| 28459 | readonly revisedPrompt?: string | null; | 37057 | readonly revisedPrompt?: string | null; |
| 28460 | readonly savedPath?: V2ThreadForkResponse__AbsolutePathBuf | null; | 37058 | readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null; |
| 28461 | readonly status: string; | 37059 | readonly status: string; |
| | 37060 | readonly transparentBackground?: boolean | null; |
| 28462 | readonly type: "imageGeneration"; | 37061 | readonly type: "imageGeneration"; |
| 28463 | } | 37062 | } |
| 28464 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 37063 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 28465 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 37064 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 28466 | | { readonly id: string; readonly type: "contextCompaction" }; | 37065 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 28467 | export const V2ThreadForkResponse__ThreadItem = Schema.Union( | 37066 | export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 28468 | [ | 37067 | [ |
| 28469 | Schema.Struct({ | 37068 | Schema.Struct({ |
| 28470 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37069 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28471 | content: Schema.Array(V2ThreadForkResponse__UserInput), | 37070 | content: Schema.Array(V2ThreadListResponse__UserInput), |
| 28472 | id: Schema.String, | 37071 | id: Schema.String, |
| 28473 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 37072 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 28474 | }).annotate({ title: "UserMessageThreadItem" }), | 37073 | }).annotate({ title: "UserMessageThreadItem" }), |
| 28475 | Schema.Struct({ | 37074 | Schema.Struct({ |
| 28476 | fragments: Schema.Array(V2ThreadForkResponse__HookPromptFragment), | 37075 | fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment), |
| 28477 | id: Schema.String, | 37076 | id: Schema.String, |
| 28478 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 37077 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 28479 | }).annotate({ title: "HookPromptThreadItem" }), | 37078 | }).annotate({ title: "HookPromptThreadItem" }), |
| 28480 | Schema.Struct({ | 37079 | Schema.Struct({ |
| | 37080 | delivery: Schema.optionalKey( |
| | 37081 | Schema.Union([V2ThreadListResponse__AgentMessageDelivery, Schema.Null]), |
| | 37082 | ), |
| 28481 | id: Schema.String, | 37083 | id: Schema.String, |
| 28482 | memoryCitation: Schema.optionalKey( | 37084 | memoryCitation: Schema.optionalKey( |
| 28483 | Schema.Union([V2ThreadForkResponse__MemoryCitation, Schema.Null]), | 37085 | Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]), |
| 28484 | ), | 37086 | ), |
| 28485 | phase: Schema.optionalKey(Schema.Union([V2ThreadForkResponse__MessagePhase, Schema.Null])), | 37087 | phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])), |
| 28486 | text: Schema.String, | | |
| 28487 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 28488 | questions: Schema.optionalKey( | 37088 | questions: Schema.optionalKey( |
| 28489 | Schema.Union([ | 37089 | Schema.Union([Schema.Array(V2ThreadListResponse__AsyncUserInputQuestion), Schema.Null]), |
| 28490 | Schema.Array( | | |
| 28491 | Schema.Struct({ | | |
| 28492 | title: Schema.String, | | |
| 28493 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 28494 | }), | | |
| 28495 | ), | | |
| 28496 | Schema.Null, | | |
| 28497 | ]), | | |
| 28498 | ), | 37090 | ), |
| | 37091 | text: Schema.String, |
| 28499 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 37092 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 28500 | }).annotate({ title: "AgentMessageThreadItem" }), | 37093 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 37094 | Schema.Struct({ |
| | 37095 | id: Schema.String, |
| | 37096 | name: Schema.String, |
| | 37097 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 37098 | output: V2ThreadListResponse__FunctionCallOutputBody, |
| | 37099 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 37100 | title: "FunctionCallOutputThreadItemType", |
| | 37101 | }), |
| | 37102 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 28501 | Schema.Struct({ | 37103 | Schema.Struct({ |
| 28502 | id: Schema.String, | 37104 | id: Schema.String, |
| 28503 | text: Schema.String, | 37105 | text: Schema.String, |
| ... | @@ -28523,13 +37125,13 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28523,13 +37125,13 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28523 | ]), | 37125 | ]), |
| 28524 | ), | 37126 | ), |
| 28525 | command: Schema.String.annotate({ description: "The command to be executed." }), | 37127 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 28526 | commandActions: Schema.Array(V2ThreadForkResponse__CommandAction).annotate({ | 37128 | commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({ |
| 28527 | description: | 37129 | description: |
| 28528 | "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.", | 37130 | "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.", |
| 28529 | }), | 37131 | }), |
| 28530 | cwd: Schema.suspend( | 37132 | cwd: Schema.suspend( |
| 28531 | (): Schema.Codec<V2ThreadForkResponse__LegacyAppPathString> => | 37133 | (): Schema.Codec<V2ThreadListResponse__LegacyAppPathString> => |
| 28532 | V2ThreadForkResponse__LegacyAppPathString, | 37134 | V2ThreadListResponse__LegacyAppPathString, |
| 28533 | ).annotate({ description: "The command's working directory." }), | 37135 | ).annotate({ description: "The command's working directory." }), |
| 28534 | durationMs: Schema.optionalKey( | 37136 | durationMs: Schema.optionalKey( |
| 28535 | Schema.Union([ | 37137 | Schema.Union([ |
| ... | @@ -28550,6 +37152,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28550,6 +37152,15 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28550 | ]), | 37152 | ]), |
| 28551 | ), | 37153 | ), |
| 28552 | id: Schema.String, | 37154 | id: Schema.String, |
| | 37155 | pluginId: Schema.optionalKey( |
| | 37156 | Schema.Union([ |
| | 37157 | Schema.String.annotate({ |
| | 37158 | description: |
| | 37159 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 37160 | }), |
| | 37161 | Schema.Null, |
| | 37162 | ]), |
| | 37163 | ), |
| 28553 | processId: Schema.optionalKey( | 37164 | processId: Schema.optionalKey( |
| 28554 | Schema.Union([ | 37165 | Schema.Union([ |
| 28555 | Schema.String.annotate({ | 37166 | Schema.String.annotate({ |
| ... | @@ -28558,26 +37169,35 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28558,26 +37169,35 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28558 | Schema.Null, | 37169 | Schema.Null, |
| 28559 | ]), | 37170 | ]), |
| 28560 | ), | 37171 | ), |
| | 37172 | scriptPath: Schema.optionalKey( |
| | 37173 | Schema.Union([ |
| | 37174 | Schema.String.annotate({ |
| | 37175 | description: |
| | 37176 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 37177 | }), |
| | 37178 | Schema.Null, |
| | 37179 | ]), |
| | 37180 | ), |
| 28561 | source: Schema.optionalKey( | 37181 | source: Schema.optionalKey( |
| 28562 | Schema.suspend( | 37182 | Schema.suspend( |
| 28563 | (): Schema.Codec<V2ThreadForkResponse__CommandExecutionSource> => | 37183 | (): Schema.Codec<V2ThreadListResponse__CommandExecutionSource> => |
| 28564 | V2ThreadForkResponse__CommandExecutionSource, | 37184 | V2ThreadListResponse__CommandExecutionSource, |
| 28565 | ).annotate({ default: "agent" }), | 37185 | ).annotate({ default: "agent" }), |
| 28566 | ), | 37186 | ), |
| 28567 | status: V2ThreadForkResponse__CommandExecutionStatus, | 37187 | status: V2ThreadListResponse__CommandExecutionStatus, |
| 28568 | type: Schema.Literal("commandExecution").annotate({ | 37188 | type: Schema.Literal("commandExecution").annotate({ |
| 28569 | title: "CommandExecutionThreadItemType", | 37189 | title: "CommandExecutionThreadItemType", |
| 28570 | }), | 37190 | }), |
| 28571 | }).annotate({ title: "CommandExecutionThreadItem" }), | 37191 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 28572 | Schema.Struct({ | 37192 | Schema.Struct({ |
| 28573 | changes: Schema.Array(V2ThreadForkResponse__FileUpdateChange), | 37193 | changes: Schema.Array(V2ThreadListResponse__FileUpdateChange), |
| 28574 | id: Schema.String, | 37194 | id: Schema.String, |
| 28575 | status: V2ThreadForkResponse__PatchApplyStatus, | 37195 | status: V2ThreadListResponse__PatchApplyStatus, |
| 28576 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 37196 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 28577 | }).annotate({ title: "FileChangeThreadItem" }), | 37197 | }).annotate({ title: "FileChangeThreadItem" }), |
| 28578 | Schema.Struct({ | 37198 | Schema.Struct({ |
| 28579 | appContext: Schema.optionalKey( | 37199 | appContext: Schema.optionalKey( |
| 28580 | Schema.Union([V2ThreadForkResponse__McpToolCallAppContext, Schema.Null]), | 37200 | Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]), |
| 28581 | ), | 37201 | ), |
| 28582 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 37202 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28583 | durationMs: Schema.optionalKey( | 37203 | durationMs: Schema.optionalKey( |
| ... | @@ -28590,23 +37210,31 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28590,23 +37210,31 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28590 | ]), | 37210 | ]), |
| 28591 | ), | 37211 | ), |
| 28592 | error: Schema.optionalKey( | 37212 | error: Schema.optionalKey( |
| 28593 | Schema.Union([V2ThreadForkResponse__McpToolCallError, Schema.Null]), | 37213 | Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]), |
| 28594 | ), | 37214 | ), |
| 28595 | id: Schema.String, | 37215 | id: Schema.String, |
| 28596 | mcpAppResourceUri: Schema.optionalKey( | 37216 | mcpAppResourceUri: Schema.optionalKey( |
| 28597 | Schema.Union([ | 37217 | Schema.Union([ |
| 28598 | Schema.String.annotate({ | 37218 | Schema.String.annotate({ |
| 28599 | description: "Deprecated: use `appContext.resourceUri` instead.", | 37219 | description: |
| | 37220 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 28600 | }), | 37221 | }), |
| 28601 | Schema.Null, | 37222 | Schema.Null, |
| 28602 | ]), | 37223 | ]), |
| 28603 | ), | 37224 | ), |
| | 37225 | mcpAppUi: Schema.optionalKey( |
| | 37226 | Schema.Union([V2ThreadListResponse__McpAppUi, Schema.Null]).annotate({ |
| | 37227 | description: |
| | 37228 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 37229 | }), |
| | 37230 | ), |
| 28604 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37231 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 37232 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28605 | result: Schema.optionalKey( | 37233 | result: Schema.optionalKey( |
| 28606 | Schema.Union([V2ThreadForkResponse__McpToolCallResult, Schema.Null]), | 37234 | Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]), |
| 28607 | ), | 37235 | ), |
| 28608 | server: Schema.String, | 37236 | server: Schema.String, |
| 28609 | status: V2ThreadForkResponse__McpToolCallStatus, | 37237 | status: V2ThreadListResponse__McpToolCallStatus, |
| 28610 | tool: Schema.String, | 37238 | tool: Schema.String, |
| 28611 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 37239 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 28612 | }).annotate({ title: "McpToolCallThreadItem" }), | 37240 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -28614,7 +37242,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28614,7 +37242,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28614 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 37242 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28615 | contentItems: Schema.optionalKey( | 37243 | contentItems: Schema.optionalKey( |
| 28616 | Schema.Union([ | 37244 | Schema.Union([ |
| 28617 | Schema.Array(V2ThreadForkResponse__DynamicToolCallOutputContentItem), | 37245 | Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem), |
| 28618 | Schema.Null, | 37246 | Schema.Null, |
| 28619 | ]), | 37247 | ]), |
| 28620 | ), | 37248 | ), |
| ... | @@ -28629,13 +37257,13 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28629,13 +37257,13 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28629 | ), | 37257 | ), |
| 28630 | id: Schema.String, | 37258 | id: Schema.String, |
| 28631 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37259 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28632 | status: V2ThreadForkResponse__DynamicToolCallStatus, | 37260 | status: V2ThreadListResponse__DynamicToolCallStatus, |
| 28633 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 37261 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28634 | tool: Schema.String, | 37262 | tool: Schema.String, |
| 28635 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 37263 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 28636 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 37264 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 28637 | Schema.Struct({ | 37265 | Schema.Struct({ |
| 28638 | agentsStates: Schema.Record(Schema.String, V2ThreadForkResponse__CollabAgentState).annotate({ | 37266 | agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({ |
| 28639 | description: "Last known status of the target agents, when available.", | 37267 | description: "Last known status of the target agents, when available.", |
| 28640 | }), | 37268 | }), |
| 28641 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 37269 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| ... | @@ -28656,7 +37284,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28656,7 +37284,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28656 | ]), | 37284 | ]), |
| 28657 | ), | 37285 | ), |
| 28658 | reasoningEffort: Schema.optionalKey( | 37286 | reasoningEffort: Schema.optionalKey( |
| 28659 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({ | 37287 | Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 28660 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 37288 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 28661 | }), | 37289 | }), |
| 28662 | ), | 37290 | ), |
| ... | @@ -28668,12 +37296,12 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28668,12 +37296,12 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28668 | description: "Thread ID of the agent issuing the collab request.", | 37296 | description: "Thread ID of the agent issuing the collab request.", |
| 28669 | }), | 37297 | }), |
| 28670 | status: Schema.suspend( | 37298 | status: Schema.suspend( |
| 28671 | (): Schema.Codec<V2ThreadForkResponse__CollabAgentToolCallStatus> => | 37299 | (): Schema.Codec<V2ThreadListResponse__CollabAgentToolCallStatus> => |
| 28672 | V2ThreadForkResponse__CollabAgentToolCallStatus, | 37300 | V2ThreadListResponse__CollabAgentToolCallStatus, |
| 28673 | ).annotate({ description: "Current status of the collab tool call." }), | 37301 | ).annotate({ description: "Current status of the collab tool call." }), |
| 28674 | tool: Schema.suspend( | 37302 | tool: Schema.suspend( |
| 28675 | (): Schema.Codec<V2ThreadForkResponse__CollabAgentTool> => | 37303 | (): Schema.Codec<V2ThreadListResponse__CollabAgentTool> => |
| 28676 | V2ThreadForkResponse__CollabAgentTool, | 37304 | V2ThreadListResponse__CollabAgentTool, |
| 28677 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 37305 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 28678 | type: Schema.Literal("collabAgentToolCall").annotate({ | 37306 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 28679 | title: "CollabAgentToolCallThreadItemType", | 37307 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -28683,14 +37311,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28683,14 +37311,14 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28683 | agentPath: Schema.String, | 37311 | agentPath: Schema.String, |
| 28684 | agentThreadId: Schema.String, | 37312 | agentThreadId: Schema.String, |
| 28685 | id: Schema.String, | 37313 | id: Schema.String, |
| 28686 | kind: V2ThreadForkResponse__SubAgentActivityKind, | 37314 | kind: V2ThreadListResponse__SubAgentActivityKind, |
| 28687 | type: Schema.Literal("subAgentActivity").annotate({ | 37315 | type: Schema.Literal("subAgentActivity").annotate({ |
| 28688 | title: "SubAgentActivityThreadItemType", | 37316 | title: "SubAgentActivityThreadItemType", |
| 28689 | }), | 37317 | }), |
| 28690 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 37318 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 28691 | Schema.Struct({ | 37319 | Schema.Struct({ |
| 28692 | action: Schema.optionalKey( | 37320 | action: Schema.optionalKey( |
| 28693 | Schema.Union([V2ThreadForkResponse__WebSearchAction, Schema.Null]), | 37321 | Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]), |
| 28694 | ), | 37322 | ), |
| 28695 | id: Schema.String, | 37323 | id: Schema.String, |
| 28696 | query: Schema.String, | 37324 | query: Schema.String, |
| ... | @@ -28707,7 +37335,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28707,7 +37335,7 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28707 | }).annotate({ title: "WebSearchThreadItem" }), | 37335 | }).annotate({ title: "WebSearchThreadItem" }), |
| 28708 | Schema.Struct({ | 37336 | Schema.Struct({ |
| 28709 | id: Schema.String, | 37337 | id: Schema.String, |
| 28710 | path: V2ThreadForkResponse__LegacyAppPathString, | 37338 | path: V2ThreadListResponse__LegacyAppPathString, |
| 28711 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 37339 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 28712 | }).annotate({ title: "ImageViewThreadItem" }), | 37340 | }).annotate({ title: "ImageViewThreadItem" }), |
| 28713 | Schema.Struct({ | 37341 | Schema.Struct({ |
| ... | @@ -28725,13 +37353,17 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28725,13 +37353,17 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28725 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 37353 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 28726 | }), | 37354 | }), |
| 28727 | Schema.Struct({ | 37355 | Schema.Struct({ |
| | 37356 | failure: Schema.optionalKey( |
| | 37357 | Schema.Union([V2ThreadListResponse__ImageGenerationFailure, Schema.Null]), |
| | 37358 | ), |
| 28728 | id: Schema.String, | 37359 | id: Schema.String, |
| 28729 | result: Schema.String, | 37360 | result: Schema.String, |
| 28730 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37361 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28731 | savedPath: Schema.optionalKey( | 37362 | savedPath: Schema.optionalKey( |
| 28732 | Schema.Union([V2ThreadForkResponse__AbsolutePathBuf, Schema.Null]), | 37363 | Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]), |
| 28733 | ), | 37364 | ), |
| 28734 | status: Schema.String, | 37365 | status: Schema.String, |
| | 37366 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 28735 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 37367 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 28736 | }).annotate({ title: "ImageGenerationThreadItem" }), | 37368 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 28737 | Schema.Struct({ | 37369 | Schema.Struct({ |
| ... | @@ -28756,32 +37388,36 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( | ... | @@ -28756,32 +37388,36 @@ export const V2ThreadForkResponse__ThreadItem = Schema.Union( |
| 28756 | }).annotate({ title: "ContextCompactionThreadItem" }), | 37388 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 28757 | ], | 37389 | ], |
| 28758 | { mode: "oneOf" }, | 37390 | { mode: "oneOf" }, |
| 28759 | ).annotate({ identifier: "V2ThreadForkResponse__ThreadItem" }); | 37391 | ).annotate({ identifier: "V2ThreadListResponse__ThreadItem" }); |
| 28760 | | 37392 | |
| 28761 | export type V2ThreadListResponse__ThreadItem = | 37393 | export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 28762 | | { | 37394 | | { |
| 28763 | readonly clientId?: string | null; | 37395 | readonly clientId?: string | null; |
| 28764 | readonly content: ReadonlyArray<V2ThreadListResponse__UserInput>; | 37396 | readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>; |
| 28765 | readonly id: string; | 37397 | readonly id: string; |
| 28766 | readonly type: "userMessage"; | 37398 | readonly type: "userMessage"; |
| 28767 | } | 37399 | } |
| 28768 | | { | 37400 | | { |
| 28769 | readonly fragments: ReadonlyArray<V2ThreadListResponse__HookPromptFragment>; | 37401 | readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>; |
| 28770 | readonly id: string; | 37402 | readonly id: string; |
| 28771 | readonly type: "hookPrompt"; | 37403 | readonly type: "hookPrompt"; |
| 28772 | } | 37404 | } |
| 28773 | | { | 37405 | | { |
| | 37406 | readonly delivery?: V2ThreadMetadataUpdateResponse__AgentMessageDelivery | null; |
| 28774 | readonly id: string; | 37407 | readonly id: string; |
| 28775 | readonly memoryCitation?: V2ThreadListResponse__MemoryCitation | null; | 37408 | readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null; |
| 28776 | readonly phase?: V2ThreadListResponse__MessagePhase | null; | 37409 | readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null; |
| | 37410 | readonly questions?: ReadonlyArray<V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion> | null; |
| 28777 | readonly text: string; | 37411 | readonly text: string; |
| 28778 | readonly delivery?: "async" | null; | | |
| 28779 | readonly questions?: ReadonlyArray<{ | | |
| 28780 | readonly title: string; | | |
| 28781 | readonly options?: ReadonlyArray<string> | null; | | |
| 28782 | }> | null; | | |
| 28783 | readonly type: "agentMessage"; | 37412 | readonly type: "agentMessage"; |
| 28784 | } | 37413 | } |
| | 37414 | | { |
| | 37415 | readonly id: string; |
| | 37416 | readonly name: string; |
| | 37417 | readonly namespace?: string | null; |
| | 37418 | readonly output: V2ThreadMetadataUpdateResponse__FunctionCallOutputBody; |
| | 37419 | readonly type: "functionCallOutput"; |
| | 37420 | } |
| 28785 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 37421 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 28786 | | { | 37422 | | { |
| 28787 | readonly content?: ReadonlyArray<string>; | 37423 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -28792,68 +37428,74 @@ export type V2ThreadListResponse__ThreadItem = | ... | @@ -28792,68 +37428,74 @@ export type V2ThreadListResponse__ThreadItem = |
| 28792 | | { | 37428 | | { |
| 28793 | readonly aggregatedOutput?: string | null; | 37429 | readonly aggregatedOutput?: string | null; |
| 28794 | readonly command: string; | 37430 | readonly command: string; |
| 28795 | readonly commandActions: ReadonlyArray<V2ThreadListResponse__CommandAction>; | 37431 | readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>; |
| 28796 | readonly cwd: V2ThreadListResponse__LegacyAppPathString; | 37432 | readonly cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString; |
| 28797 | readonly durationMs?: number | null; | 37433 | readonly durationMs?: number | null; |
| 28798 | readonly exitCode?: number | null; | 37434 | readonly exitCode?: number | null; |
| 28799 | readonly id: string; | 37435 | readonly id: string; |
| | 37436 | readonly pluginId?: string | null; |
| 28800 | readonly processId?: string | null; | 37437 | readonly processId?: string | null; |
| 28801 | readonly source?: V2ThreadListResponse__CommandExecutionSource; | 37438 | readonly scriptPath?: string | null; |
| 28802 | readonly status: V2ThreadListResponse__CommandExecutionStatus; | 37439 | readonly source?: V2ThreadMetadataUpdateResponse__CommandExecutionSource; |
| | 37440 | readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus; |
| 28803 | readonly type: "commandExecution"; | 37441 | readonly type: "commandExecution"; |
| 28804 | } | 37442 | } |
| 28805 | | { | 37443 | | { |
| 28806 | readonly changes: ReadonlyArray<V2ThreadListResponse__FileUpdateChange>; | 37444 | readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>; |
| 28807 | readonly id: string; | 37445 | readonly id: string; |
| 28808 | readonly status: V2ThreadListResponse__PatchApplyStatus; | 37446 | readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus; |
| 28809 | readonly type: "fileChange"; | 37447 | readonly type: "fileChange"; |
| 28810 | } | 37448 | } |
| 28811 | | { | 37449 | | { |
| 28812 | readonly appContext?: V2ThreadListResponse__McpToolCallAppContext | null; | 37450 | readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null; |
| 28813 | readonly arguments: Schema.Json; | 37451 | readonly arguments: Schema.Json; |
| 28814 | readonly durationMs?: number | null; | 37452 | readonly durationMs?: number | null; |
| 28815 | readonly error?: V2ThreadListResponse__McpToolCallError | null; | 37453 | readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null; |
| 28816 | readonly id: string; | 37454 | readonly id: string; |
| 28817 | readonly mcpAppResourceUri?: string | null; | 37455 | readonly mcpAppResourceUri?: string | null; |
| | 37456 | readonly mcpAppUi?: V2ThreadMetadataUpdateResponse__McpAppUi | null; |
| 28818 | readonly pluginId?: string | null; | 37457 | readonly pluginId?: string | null; |
| 28819 | readonly result?: V2ThreadListResponse__McpToolCallResult | null; | 37458 | readonly readOnlyHint?: boolean | null; |
| | 37459 | readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null; |
| 28820 | readonly server: string; | 37460 | readonly server: string; |
| 28821 | readonly status: V2ThreadListResponse__McpToolCallStatus; | 37461 | readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus; |
| 28822 | readonly tool: string; | 37462 | readonly tool: string; |
| 28823 | readonly type: "mcpToolCall"; | 37463 | readonly type: "mcpToolCall"; |
| 28824 | } | 37464 | } |
| 28825 | | { | 37465 | | { |
| 28826 | readonly arguments: Schema.Json; | 37466 | readonly arguments: Schema.Json; |
| 28827 | readonly contentItems?: ReadonlyArray<V2ThreadListResponse__DynamicToolCallOutputContentItem> | null; | 37467 | readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null; |
| 28828 | readonly durationMs?: number | null; | 37468 | readonly durationMs?: number | null; |
| 28829 | readonly id: string; | 37469 | readonly id: string; |
| 28830 | readonly namespace?: string | null; | 37470 | readonly namespace?: string | null; |
| 28831 | readonly status: V2ThreadListResponse__DynamicToolCallStatus; | 37471 | readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus; |
| 28832 | readonly success?: boolean | null; | 37472 | readonly success?: boolean | null; |
| 28833 | readonly tool: string; | 37473 | readonly tool: string; |
| 28834 | readonly type: "dynamicToolCall"; | 37474 | readonly type: "dynamicToolCall"; |
| 28835 | } | 37475 | } |
| 28836 | | { | 37476 | | { |
| 28837 | readonly agentsStates: { readonly [x: string]: V2ThreadListResponse__CollabAgentState }; | 37477 | readonly agentsStates: { |
| | 37478 | readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState; |
| | 37479 | }; |
| 28838 | readonly id: string; | 37480 | readonly id: string; |
| 28839 | readonly model?: string | null; | 37481 | readonly model?: string | null; |
| 28840 | readonly prompt?: string | null; | 37482 | readonly prompt?: string | null; |
| 28841 | readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null; | 37483 | readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null; |
| 28842 | readonly receiverThreadIds: ReadonlyArray<string>; | 37484 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 28843 | readonly senderThreadId: string; | 37485 | readonly senderThreadId: string; |
| 28844 | readonly status: V2ThreadListResponse__CollabAgentToolCallStatus; | 37486 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus; |
| 28845 | readonly tool: V2ThreadListResponse__CollabAgentTool; | 37487 | readonly tool: V2ThreadMetadataUpdateResponse__CollabAgentTool; |
| 28846 | readonly type: "collabAgentToolCall"; | 37488 | readonly type: "collabAgentToolCall"; |
| 28847 | } | 37489 | } |
| 28848 | | { | 37490 | | { |
| 28849 | readonly agentPath: string; | 37491 | readonly agentPath: string; |
| 28850 | readonly agentThreadId: string; | 37492 | readonly agentThreadId: string; |
| 28851 | readonly id: string; | 37493 | readonly id: string; |
| 28852 | readonly kind: V2ThreadListResponse__SubAgentActivityKind; | 37494 | readonly kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind; |
| 28853 | readonly type: "subAgentActivity"; | 37495 | readonly type: "subAgentActivity"; |
| 28854 | } | 37496 | } |
| 28855 | | { | 37497 | | { |
| 28856 | readonly action?: V2ThreadListResponse__WebSearchAction | null; | 37498 | readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null; |
| 28857 | readonly id: string; | 37499 | readonly id: string; |
| 28858 | readonly query: string; | 37500 | readonly query: string; |
| 28859 | readonly results?: ReadonlyArray<Schema.Json> | null; | 37501 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -28861,55 +37503,65 @@ export type V2ThreadListResponse__ThreadItem = | ... | @@ -28861,55 +37503,65 @@ export type V2ThreadListResponse__ThreadItem = |
| 28861 | } | 37503 | } |
| 28862 | | { | 37504 | | { |
| 28863 | readonly id: string; | 37505 | readonly id: string; |
| 28864 | readonly path: V2ThreadListResponse__LegacyAppPathString; | 37506 | readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString; |
| 28865 | readonly type: "imageView"; | 37507 | readonly type: "imageView"; |
| 28866 | } | 37508 | } |
| 28867 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 37509 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 28868 | | { | 37510 | | { |
| | 37511 | readonly failure?: V2ThreadMetadataUpdateResponse__ImageGenerationFailure | null; |
| 28869 | readonly id: string; | 37512 | readonly id: string; |
| 28870 | readonly result: string; | 37513 | readonly result: string; |
| 28871 | readonly revisedPrompt?: string | null; | 37514 | readonly revisedPrompt?: string | null; |
| 28872 | readonly savedPath?: V2ThreadListResponse__AbsolutePathBuf | null; | 37515 | readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null; |
| 28873 | readonly status: string; | 37516 | readonly status: string; |
| | 37517 | readonly transparentBackground?: boolean | null; |
| 28874 | readonly type: "imageGeneration"; | 37518 | readonly type: "imageGeneration"; |
| 28875 | } | 37519 | } |
| 28876 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 37520 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 28877 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 37521 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 28878 | | { readonly id: string; readonly type: "contextCompaction" }; | 37522 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 28879 | export const V2ThreadListResponse__ThreadItem = Schema.Union( | 37523 | export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 28880 | [ | 37524 | [ |
| 28881 | Schema.Struct({ | 37525 | Schema.Struct({ |
| 28882 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37526 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 28883 | content: Schema.Array(V2ThreadListResponse__UserInput), | 37527 | content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput), |
| 28884 | id: Schema.String, | 37528 | id: Schema.String, |
| 28885 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 37529 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 28886 | }).annotate({ title: "UserMessageThreadItem" }), | 37530 | }).annotate({ title: "UserMessageThreadItem" }), |
| 28887 | Schema.Struct({ | 37531 | Schema.Struct({ |
| 28888 | fragments: Schema.Array(V2ThreadListResponse__HookPromptFragment), | 37532 | fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment), |
| 28889 | id: Schema.String, | 37533 | id: Schema.String, |
| 28890 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 37534 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 28891 | }).annotate({ title: "HookPromptThreadItem" }), | 37535 | }).annotate({ title: "HookPromptThreadItem" }), |
| 28892 | Schema.Struct({ | 37536 | Schema.Struct({ |
| | 37537 | delivery: Schema.optionalKey( |
| | 37538 | Schema.Union([V2ThreadMetadataUpdateResponse__AgentMessageDelivery, Schema.Null]), |
| | 37539 | ), |
| 28893 | id: Schema.String, | 37540 | id: Schema.String, |
| 28894 | memoryCitation: Schema.optionalKey( | 37541 | memoryCitation: Schema.optionalKey( |
| 28895 | Schema.Union([V2ThreadListResponse__MemoryCitation, Schema.Null]), | 37542 | Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]), |
| | 37543 | ), |
| | 37544 | phase: Schema.optionalKey( |
| | 37545 | Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]), |
| 28896 | ), | 37546 | ), |
| 28897 | phase: Schema.optionalKey(Schema.Union([V2ThreadListResponse__MessagePhase, Schema.Null])), | | |
| 28898 | text: Schema.String, | | |
| 28899 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 28900 | questions: Schema.optionalKey( | 37547 | questions: Schema.optionalKey( |
| 28901 | Schema.Union([ | 37548 | Schema.Union([ |
| 28902 | Schema.Array( | 37549 | Schema.Array(V2ThreadMetadataUpdateResponse__AsyncUserInputQuestion), |
| 28903 | Schema.Struct({ | | |
| 28904 | title: Schema.String, | | |
| 28905 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 28906 | }), | | |
| 28907 | ), | | |
| 28908 | Schema.Null, | 37550 | Schema.Null, |
| 28909 | ]), | 37551 | ]), |
| 28910 | ), | 37552 | ), |
| | 37553 | text: Schema.String, |
| 28911 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 37554 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 28912 | }).annotate({ title: "AgentMessageThreadItem" }), | 37555 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 37556 | Schema.Struct({ |
| | 37557 | id: Schema.String, |
| | 37558 | name: Schema.String, |
| | 37559 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 37560 | output: V2ThreadMetadataUpdateResponse__FunctionCallOutputBody, |
| | 37561 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 37562 | title: "FunctionCallOutputThreadItemType", |
| | 37563 | }), |
| | 37564 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 28913 | Schema.Struct({ | 37565 | Schema.Struct({ |
| 28914 | id: Schema.String, | 37566 | id: Schema.String, |
| 28915 | text: Schema.String, | 37567 | text: Schema.String, |
| ... | @@ -28935,13 +37587,13 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -28935,13 +37587,13 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 28935 | ]), | 37587 | ]), |
| 28936 | ), | 37588 | ), |
| 28937 | command: Schema.String.annotate({ description: "The command to be executed." }), | 37589 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 28938 | commandActions: Schema.Array(V2ThreadListResponse__CommandAction).annotate({ | 37590 | commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({ |
| 28939 | description: | 37591 | description: |
| 28940 | "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.", | 37592 | "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.", |
| 28941 | }), | 37593 | }), |
| 28942 | cwd: Schema.suspend( | 37594 | cwd: Schema.suspend( |
| 28943 | (): Schema.Codec<V2ThreadListResponse__LegacyAppPathString> => | 37595 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__LegacyAppPathString> => |
| 28944 | V2ThreadListResponse__LegacyAppPathString, | 37596 | V2ThreadMetadataUpdateResponse__LegacyAppPathString, |
| 28945 | ).annotate({ description: "The command's working directory." }), | 37597 | ).annotate({ description: "The command's working directory." }), |
| 28946 | durationMs: Schema.optionalKey( | 37598 | durationMs: Schema.optionalKey( |
| 28947 | Schema.Union([ | 37599 | Schema.Union([ |
| ... | @@ -28962,6 +37614,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -28962,6 +37614,15 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 28962 | ]), | 37614 | ]), |
| 28963 | ), | 37615 | ), |
| 28964 | id: Schema.String, | 37616 | id: Schema.String, |
| | 37617 | pluginId: Schema.optionalKey( |
| | 37618 | Schema.Union([ |
| | 37619 | Schema.String.annotate({ |
| | 37620 | description: |
| | 37621 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 37622 | }), |
| | 37623 | Schema.Null, |
| | 37624 | ]), |
| | 37625 | ), |
| 28965 | processId: Schema.optionalKey( | 37626 | processId: Schema.optionalKey( |
| 28966 | Schema.Union([ | 37627 | Schema.Union([ |
| 28967 | Schema.String.annotate({ | 37628 | Schema.String.annotate({ |
| ... | @@ -28970,26 +37631,35 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -28970,26 +37631,35 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 28970 | Schema.Null, | 37631 | Schema.Null, |
| 28971 | ]), | 37632 | ]), |
| 28972 | ), | 37633 | ), |
| | 37634 | scriptPath: Schema.optionalKey( |
| | 37635 | Schema.Union([ |
| | 37636 | Schema.String.annotate({ |
| | 37637 | description: |
| | 37638 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 37639 | }), |
| | 37640 | Schema.Null, |
| | 37641 | ]), |
| | 37642 | ), |
| 28973 | source: Schema.optionalKey( | 37643 | source: Schema.optionalKey( |
| 28974 | Schema.suspend( | 37644 | Schema.suspend( |
| 28975 | (): Schema.Codec<V2ThreadListResponse__CommandExecutionSource> => | 37645 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CommandExecutionSource> => |
| 28976 | V2ThreadListResponse__CommandExecutionSource, | 37646 | V2ThreadMetadataUpdateResponse__CommandExecutionSource, |
| 28977 | ).annotate({ default: "agent" }), | 37647 | ).annotate({ default: "agent" }), |
| 28978 | ), | 37648 | ), |
| 28979 | status: V2ThreadListResponse__CommandExecutionStatus, | 37649 | status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus, |
| 28980 | type: Schema.Literal("commandExecution").annotate({ | 37650 | type: Schema.Literal("commandExecution").annotate({ |
| 28981 | title: "CommandExecutionThreadItemType", | 37651 | title: "CommandExecutionThreadItemType", |
| 28982 | }), | 37652 | }), |
| 28983 | }).annotate({ title: "CommandExecutionThreadItem" }), | 37653 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 28984 | Schema.Struct({ | 37654 | Schema.Struct({ |
| 28985 | changes: Schema.Array(V2ThreadListResponse__FileUpdateChange), | 37655 | changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange), |
| 28986 | id: Schema.String, | 37656 | id: Schema.String, |
| 28987 | status: V2ThreadListResponse__PatchApplyStatus, | 37657 | status: V2ThreadMetadataUpdateResponse__PatchApplyStatus, |
| 28988 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 37658 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 28989 | }).annotate({ title: "FileChangeThreadItem" }), | 37659 | }).annotate({ title: "FileChangeThreadItem" }), |
| 28990 | Schema.Struct({ | 37660 | Schema.Struct({ |
| 28991 | appContext: Schema.optionalKey( | 37661 | appContext: Schema.optionalKey( |
| 28992 | Schema.Union([V2ThreadListResponse__McpToolCallAppContext, Schema.Null]), | 37662 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]), |
| 28993 | ), | 37663 | ), |
| 28994 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 37664 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 28995 | durationMs: Schema.optionalKey( | 37665 | durationMs: Schema.optionalKey( |
| ... | @@ -29002,23 +37672,31 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29002,23 +37672,31 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29002 | ]), | 37672 | ]), |
| 29003 | ), | 37673 | ), |
| 29004 | error: Schema.optionalKey( | 37674 | error: Schema.optionalKey( |
| 29005 | Schema.Union([V2ThreadListResponse__McpToolCallError, Schema.Null]), | 37675 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]), |
| 29006 | ), | 37676 | ), |
| 29007 | id: Schema.String, | 37677 | id: Schema.String, |
| 29008 | mcpAppResourceUri: Schema.optionalKey( | 37678 | mcpAppResourceUri: Schema.optionalKey( |
| 29009 | Schema.Union([ | 37679 | Schema.Union([ |
| 29010 | Schema.String.annotate({ | 37680 | Schema.String.annotate({ |
| 29011 | description: "Deprecated: use `appContext.resourceUri` instead.", | 37681 | description: |
| | 37682 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 29012 | }), | 37683 | }), |
| 29013 | Schema.Null, | 37684 | Schema.Null, |
| 29014 | ]), | 37685 | ]), |
| 29015 | ), | 37686 | ), |
| | 37687 | mcpAppUi: Schema.optionalKey( |
| | 37688 | Schema.Union([V2ThreadMetadataUpdateResponse__McpAppUi, Schema.Null]).annotate({ |
| | 37689 | description: |
| | 37690 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 37691 | }), |
| | 37692 | ), |
| 29016 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37693 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 37694 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29017 | result: Schema.optionalKey( | 37695 | result: Schema.optionalKey( |
| 29018 | Schema.Union([V2ThreadListResponse__McpToolCallResult, Schema.Null]), | 37696 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]), |
| 29019 | ), | 37697 | ), |
| 29020 | server: Schema.String, | 37698 | server: Schema.String, |
| 29021 | status: V2ThreadListResponse__McpToolCallStatus, | 37699 | status: V2ThreadMetadataUpdateResponse__McpToolCallStatus, |
| 29022 | tool: Schema.String, | 37700 | tool: Schema.String, |
| 29023 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 37701 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 29024 | }).annotate({ title: "McpToolCallThreadItem" }), | 37702 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -29026,7 +37704,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29026,7 +37704,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29026 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 37704 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 29027 | contentItems: Schema.optionalKey( | 37705 | contentItems: Schema.optionalKey( |
| 29028 | Schema.Union([ | 37706 | Schema.Union([ |
| 29029 | Schema.Array(V2ThreadListResponse__DynamicToolCallOutputContentItem), | 37707 | Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem), |
| 29030 | Schema.Null, | 37708 | Schema.Null, |
| 29031 | ]), | 37709 | ]), |
| 29032 | ), | 37710 | ), |
| ... | @@ -29041,15 +37719,16 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29041,15 +37719,16 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29041 | ), | 37719 | ), |
| 29042 | id: Schema.String, | 37720 | id: Schema.String, |
| 29043 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37721 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29044 | status: V2ThreadListResponse__DynamicToolCallStatus, | 37722 | status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus, |
| 29045 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 37723 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29046 | tool: Schema.String, | 37724 | tool: Schema.String, |
| 29047 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 37725 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 29048 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 37726 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 29049 | Schema.Struct({ | 37727 | Schema.Struct({ |
| 29050 | agentsStates: Schema.Record(Schema.String, V2ThreadListResponse__CollabAgentState).annotate({ | 37728 | agentsStates: Schema.Record( |
| 29051 | description: "Last known status of the target agents, when available.", | 37729 | Schema.String, |
| 29052 | }), | 37730 | V2ThreadMetadataUpdateResponse__CollabAgentState, |
| | 37731 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 29053 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 37732 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 29054 | model: Schema.optionalKey( | 37733 | model: Schema.optionalKey( |
| 29055 | Schema.Union([ | 37734 | Schema.Union([ |
| ... | @@ -29068,7 +37747,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29068,7 +37747,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29068 | ]), | 37747 | ]), |
| 29069 | ), | 37748 | ), |
| 29070 | reasoningEffort: Schema.optionalKey( | 37749 | reasoningEffort: Schema.optionalKey( |
| 29071 | Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({ | 37750 | Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 29072 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 37751 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 29073 | }), | 37752 | }), |
| 29074 | ), | 37753 | ), |
| ... | @@ -29080,12 +37759,12 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29080,12 +37759,12 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29080 | description: "Thread ID of the agent issuing the collab request.", | 37759 | description: "Thread ID of the agent issuing the collab request.", |
| 29081 | }), | 37760 | }), |
| 29082 | status: Schema.suspend( | 37761 | status: Schema.suspend( |
| 29083 | (): Schema.Codec<V2ThreadListResponse__CollabAgentToolCallStatus> => | 37762 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus> => |
| 29084 | V2ThreadListResponse__CollabAgentToolCallStatus, | 37763 | V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus, |
| 29085 | ).annotate({ description: "Current status of the collab tool call." }), | 37764 | ).annotate({ description: "Current status of the collab tool call." }), |
| 29086 | tool: Schema.suspend( | 37765 | tool: Schema.suspend( |
| 29087 | (): Schema.Codec<V2ThreadListResponse__CollabAgentTool> => | 37766 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentTool> => |
| 29088 | V2ThreadListResponse__CollabAgentTool, | 37767 | V2ThreadMetadataUpdateResponse__CollabAgentTool, |
| 29089 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 37768 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 29090 | type: Schema.Literal("collabAgentToolCall").annotate({ | 37769 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 29091 | title: "CollabAgentToolCallThreadItemType", | 37770 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -29095,14 +37774,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29095,14 +37774,14 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29095 | agentPath: Schema.String, | 37774 | agentPath: Schema.String, |
| 29096 | agentThreadId: Schema.String, | 37775 | agentThreadId: Schema.String, |
| 29097 | id: Schema.String, | 37776 | id: Schema.String, |
| 29098 | kind: V2ThreadListResponse__SubAgentActivityKind, | 37777 | kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind, |
| 29099 | type: Schema.Literal("subAgentActivity").annotate({ | 37778 | type: Schema.Literal("subAgentActivity").annotate({ |
| 29100 | title: "SubAgentActivityThreadItemType", | 37779 | title: "SubAgentActivityThreadItemType", |
| 29101 | }), | 37780 | }), |
| 29102 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 37781 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 29103 | Schema.Struct({ | 37782 | Schema.Struct({ |
| 29104 | action: Schema.optionalKey( | 37783 | action: Schema.optionalKey( |
| 29105 | Schema.Union([V2ThreadListResponse__WebSearchAction, Schema.Null]), | 37784 | Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]), |
| 29106 | ), | 37785 | ), |
| 29107 | id: Schema.String, | 37786 | id: Schema.String, |
| 29108 | query: Schema.String, | 37787 | query: Schema.String, |
| ... | @@ -29119,7 +37798,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29119,7 +37798,7 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29119 | }).annotate({ title: "WebSearchThreadItem" }), | 37798 | }).annotate({ title: "WebSearchThreadItem" }), |
| 29120 | Schema.Struct({ | 37799 | Schema.Struct({ |
| 29121 | id: Schema.String, | 37800 | id: Schema.String, |
| 29122 | path: V2ThreadListResponse__LegacyAppPathString, | 37801 | path: V2ThreadMetadataUpdateResponse__LegacyAppPathString, |
| 29123 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 37802 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 29124 | }).annotate({ title: "ImageViewThreadItem" }), | 37803 | }).annotate({ title: "ImageViewThreadItem" }), |
| 29125 | Schema.Struct({ | 37804 | Schema.Struct({ |
| ... | @@ -29137,13 +37816,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29137,13 +37816,17 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29137 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 37816 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 29138 | }), | 37817 | }), |
| 29139 | Schema.Struct({ | 37818 | Schema.Struct({ |
| | 37819 | failure: Schema.optionalKey( |
| | 37820 | Schema.Union([V2ThreadMetadataUpdateResponse__ImageGenerationFailure, Schema.Null]), |
| | 37821 | ), |
| 29140 | id: Schema.String, | 37822 | id: Schema.String, |
| 29141 | result: Schema.String, | 37823 | result: Schema.String, |
| 29142 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37824 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29143 | savedPath: Schema.optionalKey( | 37825 | savedPath: Schema.optionalKey( |
| 29144 | Schema.Union([V2ThreadListResponse__AbsolutePathBuf, Schema.Null]), | 37826 | Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]), |
| 29145 | ), | 37827 | ), |
| 29146 | status: Schema.String, | 37828 | status: Schema.String, |
| | 37829 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29147 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 37830 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 29148 | }).annotate({ title: "ImageGenerationThreadItem" }), | 37831 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 29149 | Schema.Struct({ | 37832 | Schema.Struct({ |
| ... | @@ -29168,32 +37851,36 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( | ... | @@ -29168,32 +37851,36 @@ export const V2ThreadListResponse__ThreadItem = Schema.Union( |
| 29168 | }).annotate({ title: "ContextCompactionThreadItem" }), | 37851 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 29169 | ], | 37852 | ], |
| 29170 | { mode: "oneOf" }, | 37853 | { mode: "oneOf" }, |
| 29171 | ).annotate({ identifier: "V2ThreadListResponse__ThreadItem" }); | 37854 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadItem" }); |
| 29172 | | 37855 | |
| 29173 | export type V2ThreadMetadataUpdateResponse__ThreadItem = | 37856 | export type V2ThreadReadResponse__ThreadItem = |
| 29174 | | { | 37857 | | { |
| 29175 | readonly clientId?: string | null; | 37858 | readonly clientId?: string | null; |
| 29176 | readonly content: ReadonlyArray<V2ThreadMetadataUpdateResponse__UserInput>; | 37859 | readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>; |
| 29177 | readonly id: string; | 37860 | readonly id: string; |
| 29178 | readonly type: "userMessage"; | 37861 | readonly type: "userMessage"; |
| 29179 | } | 37862 | } |
| 29180 | | { | 37863 | | { |
| 29181 | readonly fragments: ReadonlyArray<V2ThreadMetadataUpdateResponse__HookPromptFragment>; | 37864 | readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>; |
| 29182 | readonly id: string; | 37865 | readonly id: string; |
| 29183 | readonly type: "hookPrompt"; | 37866 | readonly type: "hookPrompt"; |
| 29184 | } | 37867 | } |
| 29185 | | { | 37868 | | { |
| | 37869 | readonly delivery?: V2ThreadReadResponse__AgentMessageDelivery | null; |
| 29186 | readonly id: string; | 37870 | readonly id: string; |
| 29187 | readonly memoryCitation?: V2ThreadMetadataUpdateResponse__MemoryCitation | null; | 37871 | readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null; |
| 29188 | readonly phase?: V2ThreadMetadataUpdateResponse__MessagePhase | null; | 37872 | readonly phase?: V2ThreadReadResponse__MessagePhase | null; |
| | 37873 | readonly questions?: ReadonlyArray<V2ThreadReadResponse__AsyncUserInputQuestion> | null; |
| 29189 | readonly text: string; | 37874 | readonly text: string; |
| 29190 | readonly delivery?: "async" | null; | | |
| 29191 | readonly questions?: ReadonlyArray<{ | | |
| 29192 | readonly title: string; | | |
| 29193 | readonly options?: ReadonlyArray<string> | null; | | |
| 29194 | }> | null; | | |
| 29195 | readonly type: "agentMessage"; | 37875 | readonly type: "agentMessage"; |
| 29196 | } | 37876 | } |
| | 37877 | | { |
| | 37878 | readonly id: string; |
| | 37879 | readonly name: string; |
| | 37880 | readonly namespace?: string | null; |
| | 37881 | readonly output: V2ThreadReadResponse__FunctionCallOutputBody; |
| | 37882 | readonly type: "functionCallOutput"; |
| | 37883 | } |
| 29197 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 37884 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 29198 | | { | 37885 | | { |
| 29199 | readonly content?: ReadonlyArray<string>; | 37886 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -29204,70 +37891,72 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = | ... | @@ -29204,70 +37891,72 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 29204 | | { | 37891 | | { |
| 29205 | readonly aggregatedOutput?: string | null; | 37892 | readonly aggregatedOutput?: string | null; |
| 29206 | readonly command: string; | 37893 | readonly command: string; |
| 29207 | readonly commandActions: ReadonlyArray<V2ThreadMetadataUpdateResponse__CommandAction>; | 37894 | readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>; |
| 29208 | readonly cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString; | 37895 | readonly cwd: V2ThreadReadResponse__LegacyAppPathString; |
| 29209 | readonly durationMs?: number | null; | 37896 | readonly durationMs?: number | null; |
| 29210 | readonly exitCode?: number | null; | 37897 | readonly exitCode?: number | null; |
| 29211 | readonly id: string; | 37898 | readonly id: string; |
| | 37899 | readonly pluginId?: string | null; |
| 29212 | readonly processId?: string | null; | 37900 | readonly processId?: string | null; |
| 29213 | readonly source?: V2ThreadMetadataUpdateResponse__CommandExecutionSource; | 37901 | readonly scriptPath?: string | null; |
| 29214 | readonly status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus; | 37902 | readonly source?: V2ThreadReadResponse__CommandExecutionSource; |
| | 37903 | readonly status: V2ThreadReadResponse__CommandExecutionStatus; |
| 29215 | readonly type: "commandExecution"; | 37904 | readonly type: "commandExecution"; |
| 29216 | } | 37905 | } |
| 29217 | | { | 37906 | | { |
| 29218 | readonly changes: ReadonlyArray<V2ThreadMetadataUpdateResponse__FileUpdateChange>; | 37907 | readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>; |
| 29219 | readonly id: string; | 37908 | readonly id: string; |
| 29220 | readonly status: V2ThreadMetadataUpdateResponse__PatchApplyStatus; | 37909 | readonly status: V2ThreadReadResponse__PatchApplyStatus; |
| 29221 | readonly type: "fileChange"; | 37910 | readonly type: "fileChange"; |
| 29222 | } | 37911 | } |
| 29223 | | { | 37912 | | { |
| 29224 | readonly appContext?: V2ThreadMetadataUpdateResponse__McpToolCallAppContext | null; | 37913 | readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null; |
| 29225 | readonly arguments: Schema.Json; | 37914 | readonly arguments: Schema.Json; |
| 29226 | readonly durationMs?: number | null; | 37915 | readonly durationMs?: number | null; |
| 29227 | readonly error?: V2ThreadMetadataUpdateResponse__McpToolCallError | null; | 37916 | readonly error?: V2ThreadReadResponse__McpToolCallError | null; |
| 29228 | readonly id: string; | 37917 | readonly id: string; |
| 29229 | readonly mcpAppResourceUri?: string | null; | 37918 | readonly mcpAppResourceUri?: string | null; |
| | 37919 | readonly mcpAppUi?: V2ThreadReadResponse__McpAppUi | null; |
| 29230 | readonly pluginId?: string | null; | 37920 | readonly pluginId?: string | null; |
| 29231 | readonly result?: V2ThreadMetadataUpdateResponse__McpToolCallResult | null; | 37921 | readonly readOnlyHint?: boolean | null; |
| | 37922 | readonly result?: V2ThreadReadResponse__McpToolCallResult | null; |
| 29232 | readonly server: string; | 37923 | readonly server: string; |
| 29233 | readonly status: V2ThreadMetadataUpdateResponse__McpToolCallStatus; | 37924 | readonly status: V2ThreadReadResponse__McpToolCallStatus; |
| 29234 | readonly tool: string; | 37925 | readonly tool: string; |
| 29235 | readonly type: "mcpToolCall"; | 37926 | readonly type: "mcpToolCall"; |
| 29236 | } | 37927 | } |
| 29237 | | { | 37928 | | { |
| 29238 | readonly arguments: Schema.Json; | 37929 | readonly arguments: Schema.Json; |
| 29239 | readonly contentItems?: ReadonlyArray<V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem> | null; | 37930 | readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null; |
| 29240 | readonly durationMs?: number | null; | 37931 | readonly durationMs?: number | null; |
| 29241 | readonly id: string; | 37932 | readonly id: string; |
| 29242 | readonly namespace?: string | null; | 37933 | readonly namespace?: string | null; |
| 29243 | readonly status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus; | 37934 | readonly status: V2ThreadReadResponse__DynamicToolCallStatus; |
| 29244 | readonly success?: boolean | null; | 37935 | readonly success?: boolean | null; |
| 29245 | readonly tool: string; | 37936 | readonly tool: string; |
| 29246 | readonly type: "dynamicToolCall"; | 37937 | readonly type: "dynamicToolCall"; |
| 29247 | } | 37938 | } |
| 29248 | | { | 37939 | | { |
| 29249 | readonly agentsStates: { | 37940 | readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState }; |
| 29250 | readonly [x: string]: V2ThreadMetadataUpdateResponse__CollabAgentState; | | |
| 29251 | }; | | |
| 29252 | readonly id: string; | 37941 | readonly id: string; |
| 29253 | readonly model?: string | null; | 37942 | readonly model?: string | null; |
| 29254 | readonly prompt?: string | null; | 37943 | readonly prompt?: string | null; |
| 29255 | readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null; | 37944 | readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null; |
| 29256 | readonly receiverThreadIds: ReadonlyArray<string>; | 37945 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 29257 | readonly senderThreadId: string; | 37946 | readonly senderThreadId: string; |
| 29258 | readonly status: V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus; | 37947 | readonly status: V2ThreadReadResponse__CollabAgentToolCallStatus; |
| 29259 | readonly tool: V2ThreadMetadataUpdateResponse__CollabAgentTool; | 37948 | readonly tool: V2ThreadReadResponse__CollabAgentTool; |
| 29260 | readonly type: "collabAgentToolCall"; | 37949 | readonly type: "collabAgentToolCall"; |
| 29261 | } | 37950 | } |
| 29262 | | { | 37951 | | { |
| 29263 | readonly agentPath: string; | 37952 | readonly agentPath: string; |
| 29264 | readonly agentThreadId: string; | 37953 | readonly agentThreadId: string; |
| 29265 | readonly id: string; | 37954 | readonly id: string; |
| 29266 | readonly kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind; | 37955 | readonly kind: V2ThreadReadResponse__SubAgentActivityKind; |
| 29267 | readonly type: "subAgentActivity"; | 37956 | readonly type: "subAgentActivity"; |
| 29268 | } | 37957 | } |
| 29269 | | { | 37958 | | { |
| 29270 | readonly action?: V2ThreadMetadataUpdateResponse__WebSearchAction | null; | 37959 | readonly action?: V2ThreadReadResponse__WebSearchAction | null; |
| 29271 | readonly id: string; | 37960 | readonly id: string; |
| 29272 | readonly query: string; | 37961 | readonly query: string; |
| 29273 | readonly results?: ReadonlyArray<Schema.Json> | null; | 37962 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -29275,57 +37964,60 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = | ... | @@ -29275,57 +37964,60 @@ export type V2ThreadMetadataUpdateResponse__ThreadItem = |
| 29275 | } | 37964 | } |
| 29276 | | { | 37965 | | { |
| 29277 | readonly id: string; | 37966 | readonly id: string; |
| 29278 | readonly path: V2ThreadMetadataUpdateResponse__LegacyAppPathString; | 37967 | readonly path: V2ThreadReadResponse__LegacyAppPathString; |
| 29279 | readonly type: "imageView"; | 37968 | readonly type: "imageView"; |
| 29280 | } | 37969 | } |
| 29281 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 37970 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 29282 | | { | 37971 | | { |
| | 37972 | readonly failure?: V2ThreadReadResponse__ImageGenerationFailure | null; |
| 29283 | readonly id: string; | 37973 | readonly id: string; |
| 29284 | readonly result: string; | 37974 | readonly result: string; |
| 29285 | readonly revisedPrompt?: string | null; | 37975 | readonly revisedPrompt?: string | null; |
| 29286 | readonly savedPath?: V2ThreadMetadataUpdateResponse__AbsolutePathBuf | null; | 37976 | readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null; |
| 29287 | readonly status: string; | 37977 | readonly status: string; |
| | 37978 | readonly transparentBackground?: boolean | null; |
| 29288 | readonly type: "imageGeneration"; | 37979 | readonly type: "imageGeneration"; |
| 29289 | } | 37980 | } |
| 29290 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 37981 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 29291 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 37982 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 29292 | | { readonly id: string; readonly type: "contextCompaction" }; | 37983 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 29293 | export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | 37984 | export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29294 | [ | 37985 | [ |
| 29295 | Schema.Struct({ | 37986 | Schema.Struct({ |
| 29296 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 37987 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29297 | content: Schema.Array(V2ThreadMetadataUpdateResponse__UserInput), | 37988 | content: Schema.Array(V2ThreadReadResponse__UserInput), |
| 29298 | id: Schema.String, | 37989 | id: Schema.String, |
| 29299 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 37990 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 29300 | }).annotate({ title: "UserMessageThreadItem" }), | 37991 | }).annotate({ title: "UserMessageThreadItem" }), |
| 29301 | Schema.Struct({ | 37992 | Schema.Struct({ |
| 29302 | fragments: Schema.Array(V2ThreadMetadataUpdateResponse__HookPromptFragment), | 37993 | fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment), |
| 29303 | id: Schema.String, | 37994 | id: Schema.String, |
| 29304 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 37995 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 29305 | }).annotate({ title: "HookPromptThreadItem" }), | 37996 | }).annotate({ title: "HookPromptThreadItem" }), |
| 29306 | Schema.Struct({ | 37997 | Schema.Struct({ |
| | 37998 | delivery: Schema.optionalKey( |
| | 37999 | Schema.Union([V2ThreadReadResponse__AgentMessageDelivery, Schema.Null]), |
| | 38000 | ), |
| 29307 | id: Schema.String, | 38001 | id: Schema.String, |
| 29308 | memoryCitation: Schema.optionalKey( | 38002 | memoryCitation: Schema.optionalKey( |
| 29309 | Schema.Union([V2ThreadMetadataUpdateResponse__MemoryCitation, Schema.Null]), | 38003 | Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]), |
| 29310 | ), | | |
| 29311 | phase: Schema.optionalKey( | | |
| 29312 | Schema.Union([V2ThreadMetadataUpdateResponse__MessagePhase, Schema.Null]), | | |
| 29313 | ), | 38004 | ), |
| 29314 | text: Schema.String, | 38005 | phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])), |
| 29315 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 29316 | questions: Schema.optionalKey( | 38006 | questions: Schema.optionalKey( |
| 29317 | Schema.Union([ | 38007 | Schema.Union([Schema.Array(V2ThreadReadResponse__AsyncUserInputQuestion), Schema.Null]), |
| 29318 | Schema.Array( | | |
| 29319 | Schema.Struct({ | | |
| 29320 | title: Schema.String, | | |
| 29321 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 29322 | }), | | |
| 29323 | ), | | |
| 29324 | Schema.Null, | | |
| 29325 | ]), | | |
| 29326 | ), | 38008 | ), |
| | 38009 | text: Schema.String, |
| 29327 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 38010 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 29328 | }).annotate({ title: "AgentMessageThreadItem" }), | 38011 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 38012 | Schema.Struct({ |
| | 38013 | id: Schema.String, |
| | 38014 | name: Schema.String, |
| | 38015 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 38016 | output: V2ThreadReadResponse__FunctionCallOutputBody, |
| | 38017 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 38018 | title: "FunctionCallOutputThreadItemType", |
| | 38019 | }), |
| | 38020 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 29329 | Schema.Struct({ | 38021 | Schema.Struct({ |
| 29330 | id: Schema.String, | 38022 | id: Schema.String, |
| 29331 | text: Schema.String, | 38023 | text: Schema.String, |
| ... | @@ -29351,13 +38043,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29351,13 +38043,13 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29351 | ]), | 38043 | ]), |
| 29352 | ), | 38044 | ), |
| 29353 | command: Schema.String.annotate({ description: "The command to be executed." }), | 38045 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 29354 | commandActions: Schema.Array(V2ThreadMetadataUpdateResponse__CommandAction).annotate({ | 38046 | commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({ |
| 29355 | description: | 38047 | description: |
| 29356 | "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.", | 38048 | "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.", |
| 29357 | }), | 38049 | }), |
| 29358 | cwd: Schema.suspend( | 38050 | cwd: Schema.suspend( |
| 29359 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__LegacyAppPathString> => | 38051 | (): Schema.Codec<V2ThreadReadResponse__LegacyAppPathString> => |
| 29360 | V2ThreadMetadataUpdateResponse__LegacyAppPathString, | 38052 | V2ThreadReadResponse__LegacyAppPathString, |
| 29361 | ).annotate({ description: "The command's working directory." }), | 38053 | ).annotate({ description: "The command's working directory." }), |
| 29362 | durationMs: Schema.optionalKey( | 38054 | durationMs: Schema.optionalKey( |
| 29363 | Schema.Union([ | 38055 | Schema.Union([ |
| ... | @@ -29378,6 +38070,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29378,6 +38070,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29378 | ]), | 38070 | ]), |
| 29379 | ), | 38071 | ), |
| 29380 | id: Schema.String, | 38072 | id: Schema.String, |
| | 38073 | pluginId: Schema.optionalKey( |
| | 38074 | Schema.Union([ |
| | 38075 | Schema.String.annotate({ |
| | 38076 | description: |
| | 38077 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 38078 | }), |
| | 38079 | Schema.Null, |
| | 38080 | ]), |
| | 38081 | ), |
| 29381 | processId: Schema.optionalKey( | 38082 | processId: Schema.optionalKey( |
| 29382 | Schema.Union([ | 38083 | Schema.Union([ |
| 29383 | Schema.String.annotate({ | 38084 | Schema.String.annotate({ |
| ... | @@ -29386,26 +38087,35 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29386,26 +38087,35 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29386 | Schema.Null, | 38087 | Schema.Null, |
| 29387 | ]), | 38088 | ]), |
| 29388 | ), | 38089 | ), |
| | 38090 | scriptPath: Schema.optionalKey( |
| | 38091 | Schema.Union([ |
| | 38092 | Schema.String.annotate({ |
| | 38093 | description: |
| | 38094 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 38095 | }), |
| | 38096 | Schema.Null, |
| | 38097 | ]), |
| | 38098 | ), |
| 29389 | source: Schema.optionalKey( | 38099 | source: Schema.optionalKey( |
| 29390 | Schema.suspend( | 38100 | Schema.suspend( |
| 29391 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CommandExecutionSource> => | 38101 | (): Schema.Codec<V2ThreadReadResponse__CommandExecutionSource> => |
| 29392 | V2ThreadMetadataUpdateResponse__CommandExecutionSource, | 38102 | V2ThreadReadResponse__CommandExecutionSource, |
| 29393 | ).annotate({ default: "agent" }), | 38103 | ).annotate({ default: "agent" }), |
| 29394 | ), | 38104 | ), |
| 29395 | status: V2ThreadMetadataUpdateResponse__CommandExecutionStatus, | 38105 | status: V2ThreadReadResponse__CommandExecutionStatus, |
| 29396 | type: Schema.Literal("commandExecution").annotate({ | 38106 | type: Schema.Literal("commandExecution").annotate({ |
| 29397 | title: "CommandExecutionThreadItemType", | 38107 | title: "CommandExecutionThreadItemType", |
| 29398 | }), | 38108 | }), |
| 29399 | }).annotate({ title: "CommandExecutionThreadItem" }), | 38109 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 29400 | Schema.Struct({ | 38110 | Schema.Struct({ |
| 29401 | changes: Schema.Array(V2ThreadMetadataUpdateResponse__FileUpdateChange), | 38111 | changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange), |
| 29402 | id: Schema.String, | 38112 | id: Schema.String, |
| 29403 | status: V2ThreadMetadataUpdateResponse__PatchApplyStatus, | 38113 | status: V2ThreadReadResponse__PatchApplyStatus, |
| 29404 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 38114 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 29405 | }).annotate({ title: "FileChangeThreadItem" }), | 38115 | }).annotate({ title: "FileChangeThreadItem" }), |
| 29406 | Schema.Struct({ | 38116 | Schema.Struct({ |
| 29407 | appContext: Schema.optionalKey( | 38117 | appContext: Schema.optionalKey( |
| 29408 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallAppContext, Schema.Null]), | 38118 | Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]), |
| 29409 | ), | 38119 | ), |
| 29410 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 38120 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 29411 | durationMs: Schema.optionalKey( | 38121 | durationMs: Schema.optionalKey( |
| ... | @@ -29418,23 +38128,31 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29418,23 +38128,31 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29418 | ]), | 38128 | ]), |
| 29419 | ), | 38129 | ), |
| 29420 | error: Schema.optionalKey( | 38130 | error: Schema.optionalKey( |
| 29421 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallError, Schema.Null]), | 38131 | Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]), |
| 29422 | ), | 38132 | ), |
| 29423 | id: Schema.String, | 38133 | id: Schema.String, |
| 29424 | mcpAppResourceUri: Schema.optionalKey( | 38134 | mcpAppResourceUri: Schema.optionalKey( |
| 29425 | Schema.Union([ | 38135 | Schema.Union([ |
| 29426 | Schema.String.annotate({ | 38136 | Schema.String.annotate({ |
| 29427 | description: "Deprecated: use `appContext.resourceUri` instead.", | 38137 | description: |
| | 38138 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 29428 | }), | 38139 | }), |
| 29429 | Schema.Null, | 38140 | Schema.Null, |
| 29430 | ]), | 38141 | ]), |
| 29431 | ), | 38142 | ), |
| | 38143 | mcpAppUi: Schema.optionalKey( |
| | 38144 | Schema.Union([V2ThreadReadResponse__McpAppUi, Schema.Null]).annotate({ |
| | 38145 | description: |
| | 38146 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 38147 | }), |
| | 38148 | ), |
| 29432 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38149 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 38150 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29433 | result: Schema.optionalKey( | 38151 | result: Schema.optionalKey( |
| 29434 | Schema.Union([V2ThreadMetadataUpdateResponse__McpToolCallResult, Schema.Null]), | 38152 | Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]), |
| 29435 | ), | 38153 | ), |
| 29436 | server: Schema.String, | 38154 | server: Schema.String, |
| 29437 | status: V2ThreadMetadataUpdateResponse__McpToolCallStatus, | 38155 | status: V2ThreadReadResponse__McpToolCallStatus, |
| 29438 | tool: Schema.String, | 38156 | tool: Schema.String, |
| 29439 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 38157 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 29440 | }).annotate({ title: "McpToolCallThreadItem" }), | 38158 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -29442,7 +38160,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29442,7 +38160,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29442 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 38160 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 29443 | contentItems: Schema.optionalKey( | 38161 | contentItems: Schema.optionalKey( |
| 29444 | Schema.Union([ | 38162 | Schema.Union([ |
| 29445 | Schema.Array(V2ThreadMetadataUpdateResponse__DynamicToolCallOutputContentItem), | 38163 | Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem), |
| 29446 | Schema.Null, | 38164 | Schema.Null, |
| 29447 | ]), | 38165 | ]), |
| 29448 | ), | 38166 | ), |
| ... | @@ -29457,16 +38175,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29457,16 +38175,15 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29457 | ), | 38175 | ), |
| 29458 | id: Schema.String, | 38176 | id: Schema.String, |
| 29459 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38177 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29460 | status: V2ThreadMetadataUpdateResponse__DynamicToolCallStatus, | 38178 | status: V2ThreadReadResponse__DynamicToolCallStatus, |
| 29461 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 38179 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29462 | tool: Schema.String, | 38180 | tool: Schema.String, |
| 29463 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 38181 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 29464 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 38182 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 29465 | Schema.Struct({ | 38183 | Schema.Struct({ |
| 29466 | agentsStates: Schema.Record( | 38184 | agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({ |
| 29467 | Schema.String, | 38185 | description: "Last known status of the target agents, when available.", |
| 29468 | V2ThreadMetadataUpdateResponse__CollabAgentState, | 38186 | }), |
| 29469 | ).annotate({ description: "Last known status of the target agents, when available." }), | | |
| 29470 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 38187 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 29471 | model: Schema.optionalKey( | 38188 | model: Schema.optionalKey( |
| 29472 | Schema.Union([ | 38189 | Schema.Union([ |
| ... | @@ -29485,7 +38202,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29485,7 +38202,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29485 | ]), | 38202 | ]), |
| 29486 | ), | 38203 | ), |
| 29487 | reasoningEffort: Schema.optionalKey( | 38204 | reasoningEffort: Schema.optionalKey( |
| 29488 | Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({ | 38205 | Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 29489 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 38206 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 29490 | }), | 38207 | }), |
| 29491 | ), | 38208 | ), |
| ... | @@ -29497,12 +38214,12 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29497,12 +38214,12 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29497 | description: "Thread ID of the agent issuing the collab request.", | 38214 | description: "Thread ID of the agent issuing the collab request.", |
| 29498 | }), | 38215 | }), |
| 29499 | status: Schema.suspend( | 38216 | status: Schema.suspend( |
| 29500 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus> => | 38217 | (): Schema.Codec<V2ThreadReadResponse__CollabAgentToolCallStatus> => |
| 29501 | V2ThreadMetadataUpdateResponse__CollabAgentToolCallStatus, | 38218 | V2ThreadReadResponse__CollabAgentToolCallStatus, |
| 29502 | ).annotate({ description: "Current status of the collab tool call." }), | 38219 | ).annotate({ description: "Current status of the collab tool call." }), |
| 29503 | tool: Schema.suspend( | 38220 | tool: Schema.suspend( |
| 29504 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__CollabAgentTool> => | 38221 | (): Schema.Codec<V2ThreadReadResponse__CollabAgentTool> => |
| 29505 | V2ThreadMetadataUpdateResponse__CollabAgentTool, | 38222 | V2ThreadReadResponse__CollabAgentTool, |
| 29506 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 38223 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 29507 | type: Schema.Literal("collabAgentToolCall").annotate({ | 38224 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 29508 | title: "CollabAgentToolCallThreadItemType", | 38225 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -29512,14 +38229,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29512,14 +38229,14 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29512 | agentPath: Schema.String, | 38229 | agentPath: Schema.String, |
| 29513 | agentThreadId: Schema.String, | 38230 | agentThreadId: Schema.String, |
| 29514 | id: Schema.String, | 38231 | id: Schema.String, |
| 29515 | kind: V2ThreadMetadataUpdateResponse__SubAgentActivityKind, | 38232 | kind: V2ThreadReadResponse__SubAgentActivityKind, |
| 29516 | type: Schema.Literal("subAgentActivity").annotate({ | 38233 | type: Schema.Literal("subAgentActivity").annotate({ |
| 29517 | title: "SubAgentActivityThreadItemType", | 38234 | title: "SubAgentActivityThreadItemType", |
| 29518 | }), | 38235 | }), |
| 29519 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 38236 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 29520 | Schema.Struct({ | 38237 | Schema.Struct({ |
| 29521 | action: Schema.optionalKey( | 38238 | action: Schema.optionalKey( |
| 29522 | Schema.Union([V2ThreadMetadataUpdateResponse__WebSearchAction, Schema.Null]), | 38239 | Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]), |
| 29523 | ), | 38240 | ), |
| 29524 | id: Schema.String, | 38241 | id: Schema.String, |
| 29525 | query: Schema.String, | 38242 | query: Schema.String, |
| ... | @@ -29536,7 +38253,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29536,7 +38253,7 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29536 | }).annotate({ title: "WebSearchThreadItem" }), | 38253 | }).annotate({ title: "WebSearchThreadItem" }), |
| 29537 | Schema.Struct({ | 38254 | Schema.Struct({ |
| 29538 | id: Schema.String, | 38255 | id: Schema.String, |
| 29539 | path: V2ThreadMetadataUpdateResponse__LegacyAppPathString, | 38256 | path: V2ThreadReadResponse__LegacyAppPathString, |
| 29540 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 38257 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 29541 | }).annotate({ title: "ImageViewThreadItem" }), | 38258 | }).annotate({ title: "ImageViewThreadItem" }), |
| 29542 | Schema.Struct({ | 38259 | Schema.Struct({ |
| ... | @@ -29554,13 +38271,17 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29554,13 +38271,17 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29554 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 38271 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 29555 | }), | 38272 | }), |
| 29556 | Schema.Struct({ | 38273 | Schema.Struct({ |
| | 38274 | failure: Schema.optionalKey( |
| | 38275 | Schema.Union([V2ThreadReadResponse__ImageGenerationFailure, Schema.Null]), |
| | 38276 | ), |
| 29557 | id: Schema.String, | 38277 | id: Schema.String, |
| 29558 | result: Schema.String, | 38278 | result: Schema.String, |
| 29559 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38279 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29560 | savedPath: Schema.optionalKey( | 38280 | savedPath: Schema.optionalKey( |
| 29561 | Schema.Union([V2ThreadMetadataUpdateResponse__AbsolutePathBuf, Schema.Null]), | 38281 | Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]), |
| 29562 | ), | 38282 | ), |
| 29563 | status: Schema.String, | 38283 | status: Schema.String, |
| | 38284 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29564 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 38285 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 29565 | }).annotate({ title: "ImageGenerationThreadItem" }), | 38286 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 29566 | Schema.Struct({ | 38287 | Schema.Struct({ |
| ... | @@ -29585,32 +38306,36 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( | ... | @@ -29585,32 +38306,36 @@ export const V2ThreadMetadataUpdateResponse__ThreadItem = Schema.Union( |
| 29585 | }).annotate({ title: "ContextCompactionThreadItem" }), | 38306 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 29586 | ], | 38307 | ], |
| 29587 | { mode: "oneOf" }, | 38308 | { mode: "oneOf" }, |
| 29588 | ).annotate({ identifier: "V2ThreadMetadataUpdateResponse__ThreadItem" }); | 38309 | ).annotate({ identifier: "V2ThreadReadResponse__ThreadItem" }); |
| 29589 | | 38310 | |
| 29590 | export type V2ThreadReadResponse__ThreadItem = | 38311 | export type V2ThreadResumeResponse__ThreadItem = |
| 29591 | | { | 38312 | | { |
| 29592 | readonly clientId?: string | null; | 38313 | readonly clientId?: string | null; |
| 29593 | readonly content: ReadonlyArray<V2ThreadReadResponse__UserInput>; | 38314 | readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>; |
| 29594 | readonly id: string; | 38315 | readonly id: string; |
| 29595 | readonly type: "userMessage"; | 38316 | readonly type: "userMessage"; |
| 29596 | } | 38317 | } |
| 29597 | | { | 38318 | | { |
| 29598 | readonly fragments: ReadonlyArray<V2ThreadReadResponse__HookPromptFragment>; | 38319 | readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>; |
| 29599 | readonly id: string; | 38320 | readonly id: string; |
| 29600 | readonly type: "hookPrompt"; | 38321 | readonly type: "hookPrompt"; |
| 29601 | } | 38322 | } |
| 29602 | | { | 38323 | | { |
| | 38324 | readonly delivery?: V2ThreadResumeResponse__AgentMessageDelivery | null; |
| 29603 | readonly id: string; | 38325 | readonly id: string; |
| 29604 | readonly memoryCitation?: V2ThreadReadResponse__MemoryCitation | null; | 38326 | readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null; |
| 29605 | readonly phase?: V2ThreadReadResponse__MessagePhase | null; | 38327 | readonly phase?: V2ThreadResumeResponse__MessagePhase | null; |
| | 38328 | readonly questions?: ReadonlyArray<V2ThreadResumeResponse__AsyncUserInputQuestion> | null; |
| 29606 | readonly text: string; | 38329 | readonly text: string; |
| 29607 | readonly delivery?: "async" | null; | | |
| 29608 | readonly questions?: ReadonlyArray<{ | | |
| 29609 | readonly title: string; | | |
| 29610 | readonly options?: ReadonlyArray<string> | null; | | |
| 29611 | }> | null; | | |
| 29612 | readonly type: "agentMessage"; | 38330 | readonly type: "agentMessage"; |
| 29613 | } | 38331 | } |
| | 38332 | | { |
| | 38333 | readonly id: string; |
| | 38334 | readonly name: string; |
| | 38335 | readonly namespace?: string | null; |
| | 38336 | readonly output: V2ThreadResumeResponse__FunctionCallOutputBody; |
| | 38337 | readonly type: "functionCallOutput"; |
| | 38338 | } |
| 29614 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 38339 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 29615 | | { | 38340 | | { |
| 29616 | readonly content?: ReadonlyArray<string>; | 38341 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -29621,68 +38346,72 @@ export type V2ThreadReadResponse__ThreadItem = | ... | @@ -29621,68 +38346,72 @@ export type V2ThreadReadResponse__ThreadItem = |
| 29621 | | { | 38346 | | { |
| 29622 | readonly aggregatedOutput?: string | null; | 38347 | readonly aggregatedOutput?: string | null; |
| 29623 | readonly command: string; | 38348 | readonly command: string; |
| 29624 | readonly commandActions: ReadonlyArray<V2ThreadReadResponse__CommandAction>; | 38349 | readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>; |
| 29625 | readonly cwd: V2ThreadReadResponse__LegacyAppPathString; | 38350 | readonly cwd: V2ThreadResumeResponse__LegacyAppPathString; |
| 29626 | readonly durationMs?: number | null; | 38351 | readonly durationMs?: number | null; |
| 29627 | readonly exitCode?: number | null; | 38352 | readonly exitCode?: number | null; |
| 29628 | readonly id: string; | 38353 | readonly id: string; |
| | 38354 | readonly pluginId?: string | null; |
| 29629 | readonly processId?: string | null; | 38355 | readonly processId?: string | null; |
| 29630 | readonly source?: V2ThreadReadResponse__CommandExecutionSource; | 38356 | readonly scriptPath?: string | null; |
| 29631 | readonly status: V2ThreadReadResponse__CommandExecutionStatus; | 38357 | readonly source?: V2ThreadResumeResponse__CommandExecutionSource; |
| | 38358 | readonly status: V2ThreadResumeResponse__CommandExecutionStatus; |
| 29632 | readonly type: "commandExecution"; | 38359 | readonly type: "commandExecution"; |
| 29633 | } | 38360 | } |
| 29634 | | { | 38361 | | { |
| 29635 | readonly changes: ReadonlyArray<V2ThreadReadResponse__FileUpdateChange>; | 38362 | readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>; |
| 29636 | readonly id: string; | 38363 | readonly id: string; |
| 29637 | readonly status: V2ThreadReadResponse__PatchApplyStatus; | 38364 | readonly status: V2ThreadResumeResponse__PatchApplyStatus; |
| 29638 | readonly type: "fileChange"; | 38365 | readonly type: "fileChange"; |
| 29639 | } | 38366 | } |
| 29640 | | { | 38367 | | { |
| 29641 | readonly appContext?: V2ThreadReadResponse__McpToolCallAppContext | null; | 38368 | readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null; |
| 29642 | readonly arguments: Schema.Json; | 38369 | readonly arguments: Schema.Json; |
| 29643 | readonly durationMs?: number | null; | 38370 | readonly durationMs?: number | null; |
| 29644 | readonly error?: V2ThreadReadResponse__McpToolCallError | null; | 38371 | readonly error?: V2ThreadResumeResponse__McpToolCallError | null; |
| 29645 | readonly id: string; | 38372 | readonly id: string; |
| 29646 | readonly mcpAppResourceUri?: string | null; | 38373 | readonly mcpAppResourceUri?: string | null; |
| | 38374 | readonly mcpAppUi?: V2ThreadResumeResponse__McpAppUi | null; |
| 29647 | readonly pluginId?: string | null; | 38375 | readonly pluginId?: string | null; |
| 29648 | readonly result?: V2ThreadReadResponse__McpToolCallResult | null; | 38376 | readonly readOnlyHint?: boolean | null; |
| | 38377 | readonly result?: V2ThreadResumeResponse__McpToolCallResult | null; |
| 29649 | readonly server: string; | 38378 | readonly server: string; |
| 29650 | readonly status: V2ThreadReadResponse__McpToolCallStatus; | 38379 | readonly status: V2ThreadResumeResponse__McpToolCallStatus; |
| 29651 | readonly tool: string; | 38380 | readonly tool: string; |
| 29652 | readonly type: "mcpToolCall"; | 38381 | readonly type: "mcpToolCall"; |
| 29653 | } | 38382 | } |
| 29654 | | { | 38383 | | { |
| 29655 | readonly arguments: Schema.Json; | 38384 | readonly arguments: Schema.Json; |
| 29656 | readonly contentItems?: ReadonlyArray<V2ThreadReadResponse__DynamicToolCallOutputContentItem> | null; | 38385 | readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null; |
| 29657 | readonly durationMs?: number | null; | 38386 | readonly durationMs?: number | null; |
| 29658 | readonly id: string; | 38387 | readonly id: string; |
| 29659 | readonly namespace?: string | null; | 38388 | readonly namespace?: string | null; |
| 29660 | readonly status: V2ThreadReadResponse__DynamicToolCallStatus; | 38389 | readonly status: V2ThreadResumeResponse__DynamicToolCallStatus; |
| 29661 | readonly success?: boolean | null; | 38390 | readonly success?: boolean | null; |
| 29662 | readonly tool: string; | 38391 | readonly tool: string; |
| 29663 | readonly type: "dynamicToolCall"; | 38392 | readonly type: "dynamicToolCall"; |
| 29664 | } | 38393 | } |
| 29665 | | { | 38394 | | { |
| 29666 | readonly agentsStates: { readonly [x: string]: V2ThreadReadResponse__CollabAgentState }; | 38395 | readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState }; |
| 29667 | readonly id: string; | 38396 | readonly id: string; |
| 29668 | readonly model?: string | null; | 38397 | readonly model?: string | null; |
| 29669 | readonly prompt?: string | null; | 38398 | readonly prompt?: string | null; |
| 29670 | readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null; | 38399 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 29671 | readonly receiverThreadIds: ReadonlyArray<string>; | 38400 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 29672 | readonly senderThreadId: string; | 38401 | readonly senderThreadId: string; |
| 29673 | readonly status: V2ThreadReadResponse__CollabAgentToolCallStatus; | 38402 | readonly status: V2ThreadResumeResponse__CollabAgentToolCallStatus; |
| 29674 | readonly tool: V2ThreadReadResponse__CollabAgentTool; | 38403 | readonly tool: V2ThreadResumeResponse__CollabAgentTool; |
| 29675 | readonly type: "collabAgentToolCall"; | 38404 | readonly type: "collabAgentToolCall"; |
| 29676 | } | 38405 | } |
| 29677 | | { | 38406 | | { |
| 29678 | readonly agentPath: string; | 38407 | readonly agentPath: string; |
| 29679 | readonly agentThreadId: string; | 38408 | readonly agentThreadId: string; |
| 29680 | readonly id: string; | 38409 | readonly id: string; |
| 29681 | readonly kind: V2ThreadReadResponse__SubAgentActivityKind; | 38410 | readonly kind: V2ThreadResumeResponse__SubAgentActivityKind; |
| 29682 | readonly type: "subAgentActivity"; | 38411 | readonly type: "subAgentActivity"; |
| 29683 | } | 38412 | } |
| 29684 | | { | 38413 | | { |
| 29685 | readonly action?: V2ThreadReadResponse__WebSearchAction | null; | 38414 | readonly action?: V2ThreadResumeResponse__WebSearchAction | null; |
| 29686 | readonly id: string; | 38415 | readonly id: string; |
| 29687 | readonly query: string; | 38416 | readonly query: string; |
| 29688 | readonly results?: ReadonlyArray<Schema.Json> | null; | 38417 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -29690,55 +38419,60 @@ export type V2ThreadReadResponse__ThreadItem = | ... | @@ -29690,55 +38419,60 @@ export type V2ThreadReadResponse__ThreadItem = |
| 29690 | } | 38419 | } |
| 29691 | | { | 38420 | | { |
| 29692 | readonly id: string; | 38421 | readonly id: string; |
| 29693 | readonly path: V2ThreadReadResponse__LegacyAppPathString; | 38422 | readonly path: V2ThreadResumeResponse__LegacyAppPathString; |
| 29694 | readonly type: "imageView"; | 38423 | readonly type: "imageView"; |
| 29695 | } | 38424 | } |
| 29696 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 38425 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 29697 | | { | 38426 | | { |
| | 38427 | readonly failure?: V2ThreadResumeResponse__ImageGenerationFailure | null; |
| 29698 | readonly id: string; | 38428 | readonly id: string; |
| 29699 | readonly result: string; | 38429 | readonly result: string; |
| 29700 | readonly revisedPrompt?: string | null; | 38430 | readonly revisedPrompt?: string | null; |
| 29701 | readonly savedPath?: V2ThreadReadResponse__AbsolutePathBuf | null; | 38431 | readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null; |
| 29702 | readonly status: string; | 38432 | readonly status: string; |
| | 38433 | readonly transparentBackground?: boolean | null; |
| 29703 | readonly type: "imageGeneration"; | 38434 | readonly type: "imageGeneration"; |
| 29704 | } | 38435 | } |
| 29705 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 38436 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 29706 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 38437 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 29707 | | { readonly id: string; readonly type: "contextCompaction" }; | 38438 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 29708 | export const V2ThreadReadResponse__ThreadItem = Schema.Union( | 38439 | export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 29709 | [ | 38440 | [ |
| 29710 | Schema.Struct({ | 38441 | Schema.Struct({ |
| 29711 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38442 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29712 | content: Schema.Array(V2ThreadReadResponse__UserInput), | 38443 | content: Schema.Array(V2ThreadResumeResponse__UserInput), |
| 29713 | id: Schema.String, | 38444 | id: Schema.String, |
| 29714 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 38445 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 29715 | }).annotate({ title: "UserMessageThreadItem" }), | 38446 | }).annotate({ title: "UserMessageThreadItem" }), |
| 29716 | Schema.Struct({ | 38447 | Schema.Struct({ |
| 29717 | fragments: Schema.Array(V2ThreadReadResponse__HookPromptFragment), | 38448 | fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment), |
| 29718 | id: Schema.String, | 38449 | id: Schema.String, |
| 29719 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 38450 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 29720 | }).annotate({ title: "HookPromptThreadItem" }), | 38451 | }).annotate({ title: "HookPromptThreadItem" }), |
| 29721 | Schema.Struct({ | 38452 | Schema.Struct({ |
| | 38453 | delivery: Schema.optionalKey( |
| | 38454 | Schema.Union([V2ThreadResumeResponse__AgentMessageDelivery, Schema.Null]), |
| | 38455 | ), |
| 29722 | id: Schema.String, | 38456 | id: Schema.String, |
| 29723 | memoryCitation: Schema.optionalKey( | 38457 | memoryCitation: Schema.optionalKey( |
| 29724 | Schema.Union([V2ThreadReadResponse__MemoryCitation, Schema.Null]), | 38458 | Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]), |
| 29725 | ), | 38459 | ), |
| 29726 | phase: Schema.optionalKey(Schema.Union([V2ThreadReadResponse__MessagePhase, Schema.Null])), | 38460 | phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])), |
| 29727 | text: Schema.String, | | |
| 29728 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 29729 | questions: Schema.optionalKey( | 38461 | questions: Schema.optionalKey( |
| 29730 | Schema.Union([ | 38462 | Schema.Union([Schema.Array(V2ThreadResumeResponse__AsyncUserInputQuestion), Schema.Null]), |
| 29731 | Schema.Array( | | |
| 29732 | Schema.Struct({ | | |
| 29733 | title: Schema.String, | | |
| 29734 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 29735 | }), | | |
| 29736 | ), | | |
| 29737 | Schema.Null, | | |
| 29738 | ]), | | |
| 29739 | ), | 38463 | ), |
| | 38464 | text: Schema.String, |
| 29740 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 38465 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 29741 | }).annotate({ title: "AgentMessageThreadItem" }), | 38466 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 38467 | Schema.Struct({ |
| | 38468 | id: Schema.String, |
| | 38469 | name: Schema.String, |
| | 38470 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 38471 | output: V2ThreadResumeResponse__FunctionCallOutputBody, |
| | 38472 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 38473 | title: "FunctionCallOutputThreadItemType", |
| | 38474 | }), |
| | 38475 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 29742 | Schema.Struct({ | 38476 | Schema.Struct({ |
| 29743 | id: Schema.String, | 38477 | id: Schema.String, |
| 29744 | text: Schema.String, | 38478 | text: Schema.String, |
| ... | @@ -29764,13 +38498,13 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29764,13 +38498,13 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29764 | ]), | 38498 | ]), |
| 29765 | ), | 38499 | ), |
| 29766 | command: Schema.String.annotate({ description: "The command to be executed." }), | 38500 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 29767 | commandActions: Schema.Array(V2ThreadReadResponse__CommandAction).annotate({ | 38501 | commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({ |
| 29768 | description: | 38502 | description: |
| 29769 | "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.", | 38503 | "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.", |
| 29770 | }), | 38504 | }), |
| 29771 | cwd: Schema.suspend( | 38505 | cwd: Schema.suspend( |
| 29772 | (): Schema.Codec<V2ThreadReadResponse__LegacyAppPathString> => | 38506 | (): Schema.Codec<V2ThreadResumeResponse__LegacyAppPathString> => |
| 29773 | V2ThreadReadResponse__LegacyAppPathString, | 38507 | V2ThreadResumeResponse__LegacyAppPathString, |
| 29774 | ).annotate({ description: "The command's working directory." }), | 38508 | ).annotate({ description: "The command's working directory." }), |
| 29775 | durationMs: Schema.optionalKey( | 38509 | durationMs: Schema.optionalKey( |
| 29776 | Schema.Union([ | 38510 | Schema.Union([ |
| ... | @@ -29791,6 +38525,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29791,6 +38525,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29791 | ]), | 38525 | ]), |
| 29792 | ), | 38526 | ), |
| 29793 | id: Schema.String, | 38527 | id: Schema.String, |
| | 38528 | pluginId: Schema.optionalKey( |
| | 38529 | Schema.Union([ |
| | 38530 | Schema.String.annotate({ |
| | 38531 | description: |
| | 38532 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 38533 | }), |
| | 38534 | Schema.Null, |
| | 38535 | ]), |
| | 38536 | ), |
| 29794 | processId: Schema.optionalKey( | 38537 | processId: Schema.optionalKey( |
| 29795 | Schema.Union([ | 38538 | Schema.Union([ |
| 29796 | Schema.String.annotate({ | 38539 | Schema.String.annotate({ |
| ... | @@ -29799,26 +38542,35 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29799,26 +38542,35 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29799 | Schema.Null, | 38542 | Schema.Null, |
| 29800 | ]), | 38543 | ]), |
| 29801 | ), | 38544 | ), |
| | 38545 | scriptPath: Schema.optionalKey( |
| | 38546 | Schema.Union([ |
| | 38547 | Schema.String.annotate({ |
| | 38548 | description: |
| | 38549 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 38550 | }), |
| | 38551 | Schema.Null, |
| | 38552 | ]), |
| | 38553 | ), |
| 29802 | source: Schema.optionalKey( | 38554 | source: Schema.optionalKey( |
| 29803 | Schema.suspend( | 38555 | Schema.suspend( |
| 29804 | (): Schema.Codec<V2ThreadReadResponse__CommandExecutionSource> => | 38556 | (): Schema.Codec<V2ThreadResumeResponse__CommandExecutionSource> => |
| 29805 | V2ThreadReadResponse__CommandExecutionSource, | 38557 | V2ThreadResumeResponse__CommandExecutionSource, |
| 29806 | ).annotate({ default: "agent" }), | 38558 | ).annotate({ default: "agent" }), |
| 29807 | ), | 38559 | ), |
| 29808 | status: V2ThreadReadResponse__CommandExecutionStatus, | 38560 | status: V2ThreadResumeResponse__CommandExecutionStatus, |
| 29809 | type: Schema.Literal("commandExecution").annotate({ | 38561 | type: Schema.Literal("commandExecution").annotate({ |
| 29810 | title: "CommandExecutionThreadItemType", | 38562 | title: "CommandExecutionThreadItemType", |
| 29811 | }), | 38563 | }), |
| 29812 | }).annotate({ title: "CommandExecutionThreadItem" }), | 38564 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 29813 | Schema.Struct({ | 38565 | Schema.Struct({ |
| 29814 | changes: Schema.Array(V2ThreadReadResponse__FileUpdateChange), | 38566 | changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange), |
| 29815 | id: Schema.String, | 38567 | id: Schema.String, |
| 29816 | status: V2ThreadReadResponse__PatchApplyStatus, | 38568 | status: V2ThreadResumeResponse__PatchApplyStatus, |
| 29817 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 38569 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 29818 | }).annotate({ title: "FileChangeThreadItem" }), | 38570 | }).annotate({ title: "FileChangeThreadItem" }), |
| 29819 | Schema.Struct({ | 38571 | Schema.Struct({ |
| 29820 | appContext: Schema.optionalKey( | 38572 | appContext: Schema.optionalKey( |
| 29821 | Schema.Union([V2ThreadReadResponse__McpToolCallAppContext, Schema.Null]), | 38573 | Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]), |
| 29822 | ), | 38574 | ), |
| 29823 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 38575 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 29824 | durationMs: Schema.optionalKey( | 38576 | durationMs: Schema.optionalKey( |
| ... | @@ -29831,23 +38583,31 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29831,23 +38583,31 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29831 | ]), | 38583 | ]), |
| 29832 | ), | 38584 | ), |
| 29833 | error: Schema.optionalKey( | 38585 | error: Schema.optionalKey( |
| 29834 | Schema.Union([V2ThreadReadResponse__McpToolCallError, Schema.Null]), | 38586 | Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]), |
| 29835 | ), | 38587 | ), |
| 29836 | id: Schema.String, | 38588 | id: Schema.String, |
| 29837 | mcpAppResourceUri: Schema.optionalKey( | 38589 | mcpAppResourceUri: Schema.optionalKey( |
| 29838 | Schema.Union([ | 38590 | Schema.Union([ |
| 29839 | Schema.String.annotate({ | 38591 | Schema.String.annotate({ |
| 29840 | description: "Deprecated: use `appContext.resourceUri` instead.", | 38592 | description: |
| | 38593 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 29841 | }), | 38594 | }), |
| 29842 | Schema.Null, | 38595 | Schema.Null, |
| 29843 | ]), | 38596 | ]), |
| 29844 | ), | 38597 | ), |
| | 38598 | mcpAppUi: Schema.optionalKey( |
| | 38599 | Schema.Union([V2ThreadResumeResponse__McpAppUi, Schema.Null]).annotate({ |
| | 38600 | description: |
| | 38601 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 38602 | }), |
| | 38603 | ), |
| 29845 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38604 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 38605 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29846 | result: Schema.optionalKey( | 38606 | result: Schema.optionalKey( |
| 29847 | Schema.Union([V2ThreadReadResponse__McpToolCallResult, Schema.Null]), | 38607 | Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]), |
| 29848 | ), | 38608 | ), |
| 29849 | server: Schema.String, | 38609 | server: Schema.String, |
| 29850 | status: V2ThreadReadResponse__McpToolCallStatus, | 38610 | status: V2ThreadResumeResponse__McpToolCallStatus, |
| 29851 | tool: Schema.String, | 38611 | tool: Schema.String, |
| 29852 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 38612 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 29853 | }).annotate({ title: "McpToolCallThreadItem" }), | 38613 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -29855,7 +38615,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29855,7 +38615,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29855 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 38615 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 29856 | contentItems: Schema.optionalKey( | 38616 | contentItems: Schema.optionalKey( |
| 29857 | Schema.Union([ | 38617 | Schema.Union([ |
| 29858 | Schema.Array(V2ThreadReadResponse__DynamicToolCallOutputContentItem), | 38618 | Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem), |
| 29859 | Schema.Null, | 38619 | Schema.Null, |
| 29860 | ]), | 38620 | ]), |
| 29861 | ), | 38621 | ), |
| ... | @@ -29870,15 +38630,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29870,15 +38630,15 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29870 | ), | 38630 | ), |
| 29871 | id: Schema.String, | 38631 | id: Schema.String, |
| 29872 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38632 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29873 | status: V2ThreadReadResponse__DynamicToolCallStatus, | 38633 | status: V2ThreadResumeResponse__DynamicToolCallStatus, |
| 29874 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 38634 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29875 | tool: Schema.String, | 38635 | tool: Schema.String, |
| 29876 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 38636 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 29877 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 38637 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 29878 | Schema.Struct({ | 38638 | Schema.Struct({ |
| 29879 | agentsStates: Schema.Record(Schema.String, V2ThreadReadResponse__CollabAgentState).annotate({ | 38639 | agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate( |
| 29880 | description: "Last known status of the target agents, when available.", | 38640 | { description: "Last known status of the target agents, when available." }, |
| 29881 | }), | 38641 | ), |
| 29882 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 38642 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 29883 | model: Schema.optionalKey( | 38643 | model: Schema.optionalKey( |
| 29884 | Schema.Union([ | 38644 | Schema.Union([ |
| ... | @@ -29897,7 +38657,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29897,7 +38657,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29897 | ]), | 38657 | ]), |
| 29898 | ), | 38658 | ), |
| 29899 | reasoningEffort: Schema.optionalKey( | 38659 | reasoningEffort: Schema.optionalKey( |
| 29900 | Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({ | 38660 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 29901 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 38661 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 29902 | }), | 38662 | }), |
| 29903 | ), | 38663 | ), |
| ... | @@ -29909,12 +38669,12 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29909,12 +38669,12 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29909 | description: "Thread ID of the agent issuing the collab request.", | 38669 | description: "Thread ID of the agent issuing the collab request.", |
| 29910 | }), | 38670 | }), |
| 29911 | status: Schema.suspend( | 38671 | status: Schema.suspend( |
| 29912 | (): Schema.Codec<V2ThreadReadResponse__CollabAgentToolCallStatus> => | 38672 | (): Schema.Codec<V2ThreadResumeResponse__CollabAgentToolCallStatus> => |
| 29913 | V2ThreadReadResponse__CollabAgentToolCallStatus, | 38673 | V2ThreadResumeResponse__CollabAgentToolCallStatus, |
| 29914 | ).annotate({ description: "Current status of the collab tool call." }), | 38674 | ).annotate({ description: "Current status of the collab tool call." }), |
| 29915 | tool: Schema.suspend( | 38675 | tool: Schema.suspend( |
| 29916 | (): Schema.Codec<V2ThreadReadResponse__CollabAgentTool> => | 38676 | (): Schema.Codec<V2ThreadResumeResponse__CollabAgentTool> => |
| 29917 | V2ThreadReadResponse__CollabAgentTool, | 38677 | V2ThreadResumeResponse__CollabAgentTool, |
| 29918 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 38678 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 29919 | type: Schema.Literal("collabAgentToolCall").annotate({ | 38679 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 29920 | title: "CollabAgentToolCallThreadItemType", | 38680 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -29924,14 +38684,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29924,14 +38684,14 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29924 | agentPath: Schema.String, | 38684 | agentPath: Schema.String, |
| 29925 | agentThreadId: Schema.String, | 38685 | agentThreadId: Schema.String, |
| 29926 | id: Schema.String, | 38686 | id: Schema.String, |
| 29927 | kind: V2ThreadReadResponse__SubAgentActivityKind, | 38687 | kind: V2ThreadResumeResponse__SubAgentActivityKind, |
| 29928 | type: Schema.Literal("subAgentActivity").annotate({ | 38688 | type: Schema.Literal("subAgentActivity").annotate({ |
| 29929 | title: "SubAgentActivityThreadItemType", | 38689 | title: "SubAgentActivityThreadItemType", |
| 29930 | }), | 38690 | }), |
| 29931 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 38691 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 29932 | Schema.Struct({ | 38692 | Schema.Struct({ |
| 29933 | action: Schema.optionalKey( | 38693 | action: Schema.optionalKey( |
| 29934 | Schema.Union([V2ThreadReadResponse__WebSearchAction, Schema.Null]), | 38694 | Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]), |
| 29935 | ), | 38695 | ), |
| 29936 | id: Schema.String, | 38696 | id: Schema.String, |
| 29937 | query: Schema.String, | 38697 | query: Schema.String, |
| ... | @@ -29948,7 +38708,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29948,7 +38708,7 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29948 | }).annotate({ title: "WebSearchThreadItem" }), | 38708 | }).annotate({ title: "WebSearchThreadItem" }), |
| 29949 | Schema.Struct({ | 38709 | Schema.Struct({ |
| 29950 | id: Schema.String, | 38710 | id: Schema.String, |
| 29951 | path: V2ThreadReadResponse__LegacyAppPathString, | 38711 | path: V2ThreadResumeResponse__LegacyAppPathString, |
| 29952 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 38712 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 29953 | }).annotate({ title: "ImageViewThreadItem" }), | 38713 | }).annotate({ title: "ImageViewThreadItem" }), |
| 29954 | Schema.Struct({ | 38714 | Schema.Struct({ |
| ... | @@ -29966,13 +38726,17 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29966,13 +38726,17 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29966 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 38726 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 29967 | }), | 38727 | }), |
| 29968 | Schema.Struct({ | 38728 | Schema.Struct({ |
| | 38729 | failure: Schema.optionalKey( |
| | 38730 | Schema.Union([V2ThreadResumeResponse__ImageGenerationFailure, Schema.Null]), |
| | 38731 | ), |
| 29969 | id: Schema.String, | 38732 | id: Schema.String, |
| 29970 | result: Schema.String, | 38733 | result: Schema.String, |
| 29971 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38734 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 29972 | savedPath: Schema.optionalKey( | 38735 | savedPath: Schema.optionalKey( |
| 29973 | Schema.Union([V2ThreadReadResponse__AbsolutePathBuf, Schema.Null]), | 38736 | Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]), |
| 29974 | ), | 38737 | ), |
| 29975 | status: Schema.String, | 38738 | status: Schema.String, |
| | 38739 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 29976 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 38740 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 29977 | }).annotate({ title: "ImageGenerationThreadItem" }), | 38741 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 29978 | Schema.Struct({ | 38742 | Schema.Struct({ |
| ... | @@ -29997,32 +38761,36 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( | ... | @@ -29997,32 +38761,36 @@ export const V2ThreadReadResponse__ThreadItem = Schema.Union( |
| 29997 | }).annotate({ title: "ContextCompactionThreadItem" }), | 38761 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 29998 | ], | 38762 | ], |
| 29999 | { mode: "oneOf" }, | 38763 | { mode: "oneOf" }, |
| 30000 | ).annotate({ identifier: "V2ThreadReadResponse__ThreadItem" }); | 38764 | ).annotate({ identifier: "V2ThreadResumeResponse__ThreadItem" }); |
| 30001 | | 38765 | |
| 30002 | export type V2ThreadResumeResponse__ThreadItem = | 38766 | export type V2ThreadRevertResponse__ThreadItem = |
| 30003 | | { | 38767 | | { |
| 30004 | readonly clientId?: string | null; | 38768 | readonly clientId?: string | null; |
| 30005 | readonly content: ReadonlyArray<V2ThreadResumeResponse__UserInput>; | 38769 | readonly content: ReadonlyArray<V2ThreadRevertResponse__UserInput>; |
| 30006 | readonly id: string; | 38770 | readonly id: string; |
| 30007 | readonly type: "userMessage"; | 38771 | readonly type: "userMessage"; |
| 30008 | } | 38772 | } |
| 30009 | | { | 38773 | | { |
| 30010 | readonly fragments: ReadonlyArray<V2ThreadResumeResponse__HookPromptFragment>; | 38774 | readonly fragments: ReadonlyArray<V2ThreadRevertResponse__HookPromptFragment>; |
| 30011 | readonly id: string; | 38775 | readonly id: string; |
| 30012 | readonly type: "hookPrompt"; | 38776 | readonly type: "hookPrompt"; |
| 30013 | } | 38777 | } |
| 30014 | | { | 38778 | | { |
| | 38779 | readonly delivery?: V2ThreadRevertResponse__AgentMessageDelivery | null; |
| 30015 | readonly id: string; | 38780 | readonly id: string; |
| 30016 | readonly memoryCitation?: V2ThreadResumeResponse__MemoryCitation | null; | 38781 | readonly memoryCitation?: V2ThreadRevertResponse__MemoryCitation | null; |
| 30017 | readonly phase?: V2ThreadResumeResponse__MessagePhase | null; | 38782 | readonly phase?: V2ThreadRevertResponse__MessagePhase | null; |
| | 38783 | readonly questions?: ReadonlyArray<V2ThreadRevertResponse__AsyncUserInputQuestion> | null; |
| 30018 | readonly text: string; | 38784 | readonly text: string; |
| 30019 | readonly delivery?: "async" | null; | | |
| 30020 | readonly questions?: ReadonlyArray<{ | | |
| 30021 | readonly title: string; | | |
| 30022 | readonly options?: ReadonlyArray<string> | null; | | |
| 30023 | }> | null; | | |
| 30024 | readonly type: "agentMessage"; | 38785 | readonly type: "agentMessage"; |
| 30025 | } | 38786 | } |
| | 38787 | | { |
| | 38788 | readonly id: string; |
| | 38789 | readonly name: string; |
| | 38790 | readonly namespace?: string | null; |
| | 38791 | readonly output: V2ThreadRevertResponse__FunctionCallOutputBody; |
| | 38792 | readonly type: "functionCallOutput"; |
| | 38793 | } |
| 30026 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 38794 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 30027 | | { | 38795 | | { |
| 30028 | readonly content?: ReadonlyArray<string>; | 38796 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -30033,68 +38801,72 @@ export type V2ThreadResumeResponse__ThreadItem = | ... | @@ -30033,68 +38801,72 @@ export type V2ThreadResumeResponse__ThreadItem = |
| 30033 | | { | 38801 | | { |
| 30034 | readonly aggregatedOutput?: string | null; | 38802 | readonly aggregatedOutput?: string | null; |
| 30035 | readonly command: string; | 38803 | readonly command: string; |
| 30036 | readonly commandActions: ReadonlyArray<V2ThreadResumeResponse__CommandAction>; | 38804 | readonly commandActions: ReadonlyArray<V2ThreadRevertResponse__CommandAction>; |
| 30037 | readonly cwd: V2ThreadResumeResponse__LegacyAppPathString; | 38805 | readonly cwd: V2ThreadRevertResponse__LegacyAppPathString; |
| 30038 | readonly durationMs?: number | null; | 38806 | readonly durationMs?: number | null; |
| 30039 | readonly exitCode?: number | null; | 38807 | readonly exitCode?: number | null; |
| 30040 | readonly id: string; | 38808 | readonly id: string; |
| | 38809 | readonly pluginId?: string | null; |
| 30041 | readonly processId?: string | null; | 38810 | readonly processId?: string | null; |
| 30042 | readonly source?: V2ThreadResumeResponse__CommandExecutionSource; | 38811 | readonly scriptPath?: string | null; |
| 30043 | readonly status: V2ThreadResumeResponse__CommandExecutionStatus; | 38812 | readonly source?: V2ThreadRevertResponse__CommandExecutionSource; |
| | 38813 | readonly status: V2ThreadRevertResponse__CommandExecutionStatus; |
| 30044 | readonly type: "commandExecution"; | 38814 | readonly type: "commandExecution"; |
| 30045 | } | 38815 | } |
| 30046 | | { | 38816 | | { |
| 30047 | readonly changes: ReadonlyArray<V2ThreadResumeResponse__FileUpdateChange>; | 38817 | readonly changes: ReadonlyArray<V2ThreadRevertResponse__FileUpdateChange>; |
| 30048 | readonly id: string; | 38818 | readonly id: string; |
| 30049 | readonly status: V2ThreadResumeResponse__PatchApplyStatus; | 38819 | readonly status: V2ThreadRevertResponse__PatchApplyStatus; |
| 30050 | readonly type: "fileChange"; | 38820 | readonly type: "fileChange"; |
| 30051 | } | 38821 | } |
| 30052 | | { | 38822 | | { |
| 30053 | readonly appContext?: V2ThreadResumeResponse__McpToolCallAppContext | null; | 38823 | readonly appContext?: V2ThreadRevertResponse__McpToolCallAppContext | null; |
| 30054 | readonly arguments: Schema.Json; | 38824 | readonly arguments: Schema.Json; |
| 30055 | readonly durationMs?: number | null; | 38825 | readonly durationMs?: number | null; |
| 30056 | readonly error?: V2ThreadResumeResponse__McpToolCallError | null; | 38826 | readonly error?: V2ThreadRevertResponse__McpToolCallError | null; |
| 30057 | readonly id: string; | 38827 | readonly id: string; |
| 30058 | readonly mcpAppResourceUri?: string | null; | 38828 | readonly mcpAppResourceUri?: string | null; |
| | 38829 | readonly mcpAppUi?: V2ThreadRevertResponse__McpAppUi | null; |
| 30059 | readonly pluginId?: string | null; | 38830 | readonly pluginId?: string | null; |
| 30060 | readonly result?: V2ThreadResumeResponse__McpToolCallResult | null; | 38831 | readonly readOnlyHint?: boolean | null; |
| | 38832 | readonly result?: V2ThreadRevertResponse__McpToolCallResult | null; |
| 30061 | readonly server: string; | 38833 | readonly server: string; |
| 30062 | readonly status: V2ThreadResumeResponse__McpToolCallStatus; | 38834 | readonly status: V2ThreadRevertResponse__McpToolCallStatus; |
| 30063 | readonly tool: string; | 38835 | readonly tool: string; |
| 30064 | readonly type: "mcpToolCall"; | 38836 | readonly type: "mcpToolCall"; |
| 30065 | } | 38837 | } |
| 30066 | | { | 38838 | | { |
| 30067 | readonly arguments: Schema.Json; | 38839 | readonly arguments: Schema.Json; |
| 30068 | readonly contentItems?: ReadonlyArray<V2ThreadResumeResponse__DynamicToolCallOutputContentItem> | null; | 38840 | readonly contentItems?: ReadonlyArray<V2ThreadRevertResponse__DynamicToolCallOutputContentItem> | null; |
| 30069 | readonly durationMs?: number | null; | 38841 | readonly durationMs?: number | null; |
| 30070 | readonly id: string; | 38842 | readonly id: string; |
| 30071 | readonly namespace?: string | null; | 38843 | readonly namespace?: string | null; |
| 30072 | readonly status: V2ThreadResumeResponse__DynamicToolCallStatus; | 38844 | readonly status: V2ThreadRevertResponse__DynamicToolCallStatus; |
| 30073 | readonly success?: boolean | null; | 38845 | readonly success?: boolean | null; |
| 30074 | readonly tool: string; | 38846 | readonly tool: string; |
| 30075 | readonly type: "dynamicToolCall"; | 38847 | readonly type: "dynamicToolCall"; |
| 30076 | } | 38848 | } |
| 30077 | | { | 38849 | | { |
| 30078 | readonly agentsStates: { readonly [x: string]: V2ThreadResumeResponse__CollabAgentState }; | 38850 | readonly agentsStates: { readonly [x: string]: V2ThreadRevertResponse__CollabAgentState }; |
| 30079 | readonly id: string; | 38851 | readonly id: string; |
| 30080 | readonly model?: string | null; | 38852 | readonly model?: string | null; |
| 30081 | readonly prompt?: string | null; | 38853 | readonly prompt?: string | null; |
| 30082 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; | 38854 | readonly reasoningEffort?: V2ThreadRevertResponse__ReasoningEffort | null; |
| 30083 | readonly receiverThreadIds: ReadonlyArray<string>; | 38855 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 30084 | readonly senderThreadId: string; | 38856 | readonly senderThreadId: string; |
| 30085 | readonly status: V2ThreadResumeResponse__CollabAgentToolCallStatus; | 38857 | readonly status: V2ThreadRevertResponse__CollabAgentToolCallStatus; |
| 30086 | readonly tool: V2ThreadResumeResponse__CollabAgentTool; | 38858 | readonly tool: V2ThreadRevertResponse__CollabAgentTool; |
| 30087 | readonly type: "collabAgentToolCall"; | 38859 | readonly type: "collabAgentToolCall"; |
| 30088 | } | 38860 | } |
| 30089 | | { | 38861 | | { |
| 30090 | readonly agentPath: string; | 38862 | readonly agentPath: string; |
| 30091 | readonly agentThreadId: string; | 38863 | readonly agentThreadId: string; |
| 30092 | readonly id: string; | 38864 | readonly id: string; |
| 30093 | readonly kind: V2ThreadResumeResponse__SubAgentActivityKind; | 38865 | readonly kind: V2ThreadRevertResponse__SubAgentActivityKind; |
| 30094 | readonly type: "subAgentActivity"; | 38866 | readonly type: "subAgentActivity"; |
| 30095 | } | 38867 | } |
| 30096 | | { | 38868 | | { |
| 30097 | readonly action?: V2ThreadResumeResponse__WebSearchAction | null; | 38869 | readonly action?: V2ThreadRevertResponse__WebSearchAction | null; |
| 30098 | readonly id: string; | 38870 | readonly id: string; |
| 30099 | readonly query: string; | 38871 | readonly query: string; |
| 30100 | readonly results?: ReadonlyArray<Schema.Json> | null; | 38872 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -30102,55 +38874,60 @@ export type V2ThreadResumeResponse__ThreadItem = | ... | @@ -30102,55 +38874,60 @@ export type V2ThreadResumeResponse__ThreadItem = |
| 30102 | } | 38874 | } |
| 30103 | | { | 38875 | | { |
| 30104 | readonly id: string; | 38876 | readonly id: string; |
| 30105 | readonly path: V2ThreadResumeResponse__LegacyAppPathString; | 38877 | readonly path: V2ThreadRevertResponse__LegacyAppPathString; |
| 30106 | readonly type: "imageView"; | 38878 | readonly type: "imageView"; |
| 30107 | } | 38879 | } |
| 30108 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 38880 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 30109 | | { | 38881 | | { |
| | 38882 | readonly failure?: V2ThreadRevertResponse__ImageGenerationFailure | null; |
| 30110 | readonly id: string; | 38883 | readonly id: string; |
| 30111 | readonly result: string; | 38884 | readonly result: string; |
| 30112 | readonly revisedPrompt?: string | null; | 38885 | readonly revisedPrompt?: string | null; |
| 30113 | readonly savedPath?: V2ThreadResumeResponse__AbsolutePathBuf | null; | 38886 | readonly savedPath?: V2ThreadRevertResponse__AbsolutePathBuf | null; |
| 30114 | readonly status: string; | 38887 | readonly status: string; |
| | 38888 | readonly transparentBackground?: boolean | null; |
| 30115 | readonly type: "imageGeneration"; | 38889 | readonly type: "imageGeneration"; |
| 30116 | } | 38890 | } |
| 30117 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 38891 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 30118 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 38892 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 30119 | | { readonly id: string; readonly type: "contextCompaction" }; | 38893 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 30120 | export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | 38894 | export const V2ThreadRevertResponse__ThreadItem = Schema.Union( |
| 30121 | [ | 38895 | [ |
| 30122 | Schema.Struct({ | 38896 | Schema.Struct({ |
| 30123 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 38897 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30124 | content: Schema.Array(V2ThreadResumeResponse__UserInput), | 38898 | content: Schema.Array(V2ThreadRevertResponse__UserInput), |
| 30125 | id: Schema.String, | 38899 | id: Schema.String, |
| 30126 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 38900 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 30127 | }).annotate({ title: "UserMessageThreadItem" }), | 38901 | }).annotate({ title: "UserMessageThreadItem" }), |
| 30128 | Schema.Struct({ | 38902 | Schema.Struct({ |
| 30129 | fragments: Schema.Array(V2ThreadResumeResponse__HookPromptFragment), | 38903 | fragments: Schema.Array(V2ThreadRevertResponse__HookPromptFragment), |
| 30130 | id: Schema.String, | 38904 | id: Schema.String, |
| 30131 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 38905 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 30132 | }).annotate({ title: "HookPromptThreadItem" }), | 38906 | }).annotate({ title: "HookPromptThreadItem" }), |
| 30133 | Schema.Struct({ | 38907 | Schema.Struct({ |
| | 38908 | delivery: Schema.optionalKey( |
| | 38909 | Schema.Union([V2ThreadRevertResponse__AgentMessageDelivery, Schema.Null]), |
| | 38910 | ), |
| 30134 | id: Schema.String, | 38911 | id: Schema.String, |
| 30135 | memoryCitation: Schema.optionalKey( | 38912 | memoryCitation: Schema.optionalKey( |
| 30136 | Schema.Union([V2ThreadResumeResponse__MemoryCitation, Schema.Null]), | 38913 | Schema.Union([V2ThreadRevertResponse__MemoryCitation, Schema.Null]), |
| 30137 | ), | 38914 | ), |
| 30138 | phase: Schema.optionalKey(Schema.Union([V2ThreadResumeResponse__MessagePhase, Schema.Null])), | 38915 | phase: Schema.optionalKey(Schema.Union([V2ThreadRevertResponse__MessagePhase, Schema.Null])), |
| 30139 | text: Schema.String, | | |
| 30140 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 30141 | questions: Schema.optionalKey( | 38916 | questions: Schema.optionalKey( |
| 30142 | Schema.Union([ | 38917 | Schema.Union([Schema.Array(V2ThreadRevertResponse__AsyncUserInputQuestion), Schema.Null]), |
| 30143 | Schema.Array( | | |
| 30144 | Schema.Struct({ | | |
| 30145 | title: Schema.String, | | |
| 30146 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 30147 | }), | | |
| 30148 | ), | | |
| 30149 | Schema.Null, | | |
| 30150 | ]), | | |
| 30151 | ), | 38918 | ), |
| | 38919 | text: Schema.String, |
| 30152 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 38920 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 30153 | }).annotate({ title: "AgentMessageThreadItem" }), | 38921 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 38922 | Schema.Struct({ |
| | 38923 | id: Schema.String, |
| | 38924 | name: Schema.String, |
| | 38925 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 38926 | output: V2ThreadRevertResponse__FunctionCallOutputBody, |
| | 38927 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 38928 | title: "FunctionCallOutputThreadItemType", |
| | 38929 | }), |
| | 38930 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 30154 | Schema.Struct({ | 38931 | Schema.Struct({ |
| 30155 | id: Schema.String, | 38932 | id: Schema.String, |
| 30156 | text: Schema.String, | 38933 | text: Schema.String, |
| ... | @@ -30176,13 +38953,13 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30176,13 +38953,13 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30176 | ]), | 38953 | ]), |
| 30177 | ), | 38954 | ), |
| 30178 | command: Schema.String.annotate({ description: "The command to be executed." }), | 38955 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 30179 | commandActions: Schema.Array(V2ThreadResumeResponse__CommandAction).annotate({ | 38956 | commandActions: Schema.Array(V2ThreadRevertResponse__CommandAction).annotate({ |
| 30180 | description: | 38957 | description: |
| 30181 | "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.", | 38958 | "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.", |
| 30182 | }), | 38959 | }), |
| 30183 | cwd: Schema.suspend( | 38960 | cwd: Schema.suspend( |
| 30184 | (): Schema.Codec<V2ThreadResumeResponse__LegacyAppPathString> => | 38961 | (): Schema.Codec<V2ThreadRevertResponse__LegacyAppPathString> => |
| 30185 | V2ThreadResumeResponse__LegacyAppPathString, | 38962 | V2ThreadRevertResponse__LegacyAppPathString, |
| 30186 | ).annotate({ description: "The command's working directory." }), | 38963 | ).annotate({ description: "The command's working directory." }), |
| 30187 | durationMs: Schema.optionalKey( | 38964 | durationMs: Schema.optionalKey( |
| 30188 | Schema.Union([ | 38965 | Schema.Union([ |
| ... | @@ -30203,6 +38980,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30203,6 +38980,15 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30203 | ]), | 38980 | ]), |
| 30204 | ), | 38981 | ), |
| 30205 | id: Schema.String, | 38982 | id: Schema.String, |
| | 38983 | pluginId: Schema.optionalKey( |
| | 38984 | Schema.Union([ |
| | 38985 | Schema.String.annotate({ |
| | 38986 | description: |
| | 38987 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 38988 | }), |
| | 38989 | Schema.Null, |
| | 38990 | ]), |
| | 38991 | ), |
| 30206 | processId: Schema.optionalKey( | 38992 | processId: Schema.optionalKey( |
| 30207 | Schema.Union([ | 38993 | Schema.Union([ |
| 30208 | Schema.String.annotate({ | 38994 | Schema.String.annotate({ |
| ... | @@ -30211,26 +38997,35 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30211,26 +38997,35 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30211 | Schema.Null, | 38997 | Schema.Null, |
| 30212 | ]), | 38998 | ]), |
| 30213 | ), | 38999 | ), |
| | 39000 | scriptPath: Schema.optionalKey( |
| | 39001 | Schema.Union([ |
| | 39002 | Schema.String.annotate({ |
| | 39003 | description: |
| | 39004 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 39005 | }), |
| | 39006 | Schema.Null, |
| | 39007 | ]), |
| | 39008 | ), |
| 30214 | source: Schema.optionalKey( | 39009 | source: Schema.optionalKey( |
| 30215 | Schema.suspend( | 39010 | Schema.suspend( |
| 30216 | (): Schema.Codec<V2ThreadResumeResponse__CommandExecutionSource> => | 39011 | (): Schema.Codec<V2ThreadRevertResponse__CommandExecutionSource> => |
| 30217 | V2ThreadResumeResponse__CommandExecutionSource, | 39012 | V2ThreadRevertResponse__CommandExecutionSource, |
| 30218 | ).annotate({ default: "agent" }), | 39013 | ).annotate({ default: "agent" }), |
| 30219 | ), | 39014 | ), |
| 30220 | status: V2ThreadResumeResponse__CommandExecutionStatus, | 39015 | status: V2ThreadRevertResponse__CommandExecutionStatus, |
| 30221 | type: Schema.Literal("commandExecution").annotate({ | 39016 | type: Schema.Literal("commandExecution").annotate({ |
| 30222 | title: "CommandExecutionThreadItemType", | 39017 | title: "CommandExecutionThreadItemType", |
| 30223 | }), | 39018 | }), |
| 30224 | }).annotate({ title: "CommandExecutionThreadItem" }), | 39019 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 30225 | Schema.Struct({ | 39020 | Schema.Struct({ |
| 30226 | changes: Schema.Array(V2ThreadResumeResponse__FileUpdateChange), | 39021 | changes: Schema.Array(V2ThreadRevertResponse__FileUpdateChange), |
| 30227 | id: Schema.String, | 39022 | id: Schema.String, |
| 30228 | status: V2ThreadResumeResponse__PatchApplyStatus, | 39023 | status: V2ThreadRevertResponse__PatchApplyStatus, |
| 30229 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 39024 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 30230 | }).annotate({ title: "FileChangeThreadItem" }), | 39025 | }).annotate({ title: "FileChangeThreadItem" }), |
| 30231 | Schema.Struct({ | 39026 | Schema.Struct({ |
| 30232 | appContext: Schema.optionalKey( | 39027 | appContext: Schema.optionalKey( |
| 30233 | Schema.Union([V2ThreadResumeResponse__McpToolCallAppContext, Schema.Null]), | 39028 | Schema.Union([V2ThreadRevertResponse__McpToolCallAppContext, Schema.Null]), |
| 30234 | ), | 39029 | ), |
| 30235 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 39030 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 30236 | durationMs: Schema.optionalKey( | 39031 | durationMs: Schema.optionalKey( |
| ... | @@ -30243,23 +39038,31 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30243,23 +39038,31 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30243 | ]), | 39038 | ]), |
| 30244 | ), | 39039 | ), |
| 30245 | error: Schema.optionalKey( | 39040 | error: Schema.optionalKey( |
| 30246 | Schema.Union([V2ThreadResumeResponse__McpToolCallError, Schema.Null]), | 39041 | Schema.Union([V2ThreadRevertResponse__McpToolCallError, Schema.Null]), |
| 30247 | ), | 39042 | ), |
| 30248 | id: Schema.String, | 39043 | id: Schema.String, |
| 30249 | mcpAppResourceUri: Schema.optionalKey( | 39044 | mcpAppResourceUri: Schema.optionalKey( |
| 30250 | Schema.Union([ | 39045 | Schema.Union([ |
| 30251 | Schema.String.annotate({ | 39046 | Schema.String.annotate({ |
| 30252 | description: "Deprecated: use `appContext.resourceUri` instead.", | 39047 | description: |
| | 39048 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 30253 | }), | 39049 | }), |
| 30254 | Schema.Null, | 39050 | Schema.Null, |
| 30255 | ]), | 39051 | ]), |
| 30256 | ), | 39052 | ), |
| | 39053 | mcpAppUi: Schema.optionalKey( |
| | 39054 | Schema.Union([V2ThreadRevertResponse__McpAppUi, Schema.Null]).annotate({ |
| | 39055 | description: |
| | 39056 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 39057 | }), |
| | 39058 | ), |
| 30257 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39059 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 39060 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 30258 | result: Schema.optionalKey( | 39061 | result: Schema.optionalKey( |
| 30259 | Schema.Union([V2ThreadResumeResponse__McpToolCallResult, Schema.Null]), | 39062 | Schema.Union([V2ThreadRevertResponse__McpToolCallResult, Schema.Null]), |
| 30260 | ), | 39063 | ), |
| 30261 | server: Schema.String, | 39064 | server: Schema.String, |
| 30262 | status: V2ThreadResumeResponse__McpToolCallStatus, | 39065 | status: V2ThreadRevertResponse__McpToolCallStatus, |
| 30263 | tool: Schema.String, | 39066 | tool: Schema.String, |
| 30264 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 39067 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 30265 | }).annotate({ title: "McpToolCallThreadItem" }), | 39068 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -30267,7 +39070,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30267,7 +39070,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30267 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 39070 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 30268 | contentItems: Schema.optionalKey( | 39071 | contentItems: Schema.optionalKey( |
| 30269 | Schema.Union([ | 39072 | Schema.Union([ |
| 30270 | Schema.Array(V2ThreadResumeResponse__DynamicToolCallOutputContentItem), | 39073 | Schema.Array(V2ThreadRevertResponse__DynamicToolCallOutputContentItem), |
| 30271 | Schema.Null, | 39074 | Schema.Null, |
| 30272 | ]), | 39075 | ]), |
| 30273 | ), | 39076 | ), |
| ... | @@ -30282,13 +39085,13 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30282,13 +39085,13 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30282 | ), | 39085 | ), |
| 30283 | id: Schema.String, | 39086 | id: Schema.String, |
| 30284 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39087 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30285 | status: V2ThreadResumeResponse__DynamicToolCallStatus, | 39088 | status: V2ThreadRevertResponse__DynamicToolCallStatus, |
| 30286 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 39089 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 30287 | tool: Schema.String, | 39090 | tool: Schema.String, |
| 30288 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 39091 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 30289 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 39092 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 30290 | Schema.Struct({ | 39093 | Schema.Struct({ |
| 30291 | agentsStates: Schema.Record(Schema.String, V2ThreadResumeResponse__CollabAgentState).annotate( | 39094 | agentsStates: Schema.Record(Schema.String, V2ThreadRevertResponse__CollabAgentState).annotate( |
| 30292 | { description: "Last known status of the target agents, when available." }, | 39095 | { description: "Last known status of the target agents, when available." }, |
| 30293 | ), | 39096 | ), |
| 30294 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 39097 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| ... | @@ -30309,7 +39112,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30309,7 +39112,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30309 | ]), | 39112 | ]), |
| 30310 | ), | 39113 | ), |
| 30311 | reasoningEffort: Schema.optionalKey( | 39114 | reasoningEffort: Schema.optionalKey( |
| 30312 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({ | 39115 | Schema.Union([V2ThreadRevertResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 30313 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 39116 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 30314 | }), | 39117 | }), |
| 30315 | ), | 39118 | ), |
| ... | @@ -30321,12 +39124,12 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30321,12 +39124,12 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30321 | description: "Thread ID of the agent issuing the collab request.", | 39124 | description: "Thread ID of the agent issuing the collab request.", |
| 30322 | }), | 39125 | }), |
| 30323 | status: Schema.suspend( | 39126 | status: Schema.suspend( |
| 30324 | (): Schema.Codec<V2ThreadResumeResponse__CollabAgentToolCallStatus> => | 39127 | (): Schema.Codec<V2ThreadRevertResponse__CollabAgentToolCallStatus> => |
| 30325 | V2ThreadResumeResponse__CollabAgentToolCallStatus, | 39128 | V2ThreadRevertResponse__CollabAgentToolCallStatus, |
| 30326 | ).annotate({ description: "Current status of the collab tool call." }), | 39129 | ).annotate({ description: "Current status of the collab tool call." }), |
| 30327 | tool: Schema.suspend( | 39130 | tool: Schema.suspend( |
| 30328 | (): Schema.Codec<V2ThreadResumeResponse__CollabAgentTool> => | 39131 | (): Schema.Codec<V2ThreadRevertResponse__CollabAgentTool> => |
| 30329 | V2ThreadResumeResponse__CollabAgentTool, | 39132 | V2ThreadRevertResponse__CollabAgentTool, |
| 30330 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 39133 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 30331 | type: Schema.Literal("collabAgentToolCall").annotate({ | 39134 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 30332 | title: "CollabAgentToolCallThreadItemType", | 39135 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -30336,14 +39139,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30336,14 +39139,14 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30336 | agentPath: Schema.String, | 39139 | agentPath: Schema.String, |
| 30337 | agentThreadId: Schema.String, | 39140 | agentThreadId: Schema.String, |
| 30338 | id: Schema.String, | 39141 | id: Schema.String, |
| 30339 | kind: V2ThreadResumeResponse__SubAgentActivityKind, | 39142 | kind: V2ThreadRevertResponse__SubAgentActivityKind, |
| 30340 | type: Schema.Literal("subAgentActivity").annotate({ | 39143 | type: Schema.Literal("subAgentActivity").annotate({ |
| 30341 | title: "SubAgentActivityThreadItemType", | 39144 | title: "SubAgentActivityThreadItemType", |
| 30342 | }), | 39145 | }), |
| 30343 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 39146 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 30344 | Schema.Struct({ | 39147 | Schema.Struct({ |
| 30345 | action: Schema.optionalKey( | 39148 | action: Schema.optionalKey( |
| 30346 | Schema.Union([V2ThreadResumeResponse__WebSearchAction, Schema.Null]), | 39149 | Schema.Union([V2ThreadRevertResponse__WebSearchAction, Schema.Null]), |
| 30347 | ), | 39150 | ), |
| 30348 | id: Schema.String, | 39151 | id: Schema.String, |
| 30349 | query: Schema.String, | 39152 | query: Schema.String, |
| ... | @@ -30360,7 +39163,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30360,7 +39163,7 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30360 | }).annotate({ title: "WebSearchThreadItem" }), | 39163 | }).annotate({ title: "WebSearchThreadItem" }), |
| 30361 | Schema.Struct({ | 39164 | Schema.Struct({ |
| 30362 | id: Schema.String, | 39165 | id: Schema.String, |
| 30363 | path: V2ThreadResumeResponse__LegacyAppPathString, | 39166 | path: V2ThreadRevertResponse__LegacyAppPathString, |
| 30364 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 39167 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 30365 | }).annotate({ title: "ImageViewThreadItem" }), | 39168 | }).annotate({ title: "ImageViewThreadItem" }), |
| 30366 | Schema.Struct({ | 39169 | Schema.Struct({ |
| ... | @@ -30378,13 +39181,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30378,13 +39181,17 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30378 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 39181 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 30379 | }), | 39182 | }), |
| 30380 | Schema.Struct({ | 39183 | Schema.Struct({ |
| | 39184 | failure: Schema.optionalKey( |
| | 39185 | Schema.Union([V2ThreadRevertResponse__ImageGenerationFailure, Schema.Null]), |
| | 39186 | ), |
| 30381 | id: Schema.String, | 39187 | id: Schema.String, |
| 30382 | result: Schema.String, | 39188 | result: Schema.String, |
| 30383 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39189 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30384 | savedPath: Schema.optionalKey( | 39190 | savedPath: Schema.optionalKey( |
| 30385 | Schema.Union([V2ThreadResumeResponse__AbsolutePathBuf, Schema.Null]), | 39191 | Schema.Union([V2ThreadRevertResponse__AbsolutePathBuf, Schema.Null]), |
| 30386 | ), | 39192 | ), |
| 30387 | status: Schema.String, | 39193 | status: Schema.String, |
| | 39194 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 30388 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 39195 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 30389 | }).annotate({ title: "ImageGenerationThreadItem" }), | 39196 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 30390 | Schema.Struct({ | 39197 | Schema.Struct({ |
| ... | @@ -30409,32 +39216,83 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( | ... | @@ -30409,32 +39216,83 @@ export const V2ThreadResumeResponse__ThreadItem = Schema.Union( |
| 30409 | }).annotate({ title: "ContextCompactionThreadItem" }), | 39216 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 30410 | ], | 39217 | ], |
| 30411 | { mode: "oneOf" }, | 39218 | { mode: "oneOf" }, |
| 30412 | ).annotate({ identifier: "V2ThreadResumeResponse__ThreadItem" }); | 39219 | ).annotate({ identifier: "V2ThreadRevertResponse__ThreadItem" }); |
| 30413 | | 39220 | |
| 30414 | export type V2ThreadRollbackResponse__ThreadItem = | 39221 | export type V2ThreadSettingsUpdatedNotification__ThreadSettings = { |
| | 39222 | readonly activePermissionProfile?: V2ThreadSettingsUpdatedNotification__ActivePermissionProfile | null; |
| | 39223 | readonly approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval; |
| | 39224 | readonly approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer; |
| | 39225 | readonly collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode; |
| | 39226 | readonly cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf; |
| | 39227 | readonly disabledPluginIds?: ReadonlyArray<string>; |
| | 39228 | readonly effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null; |
| | 39229 | readonly model: string; |
| | 39230 | readonly modelProvider: string; |
| | 39231 | readonly personality?: V2ThreadSettingsUpdatedNotification__Personality | null; |
| | 39232 | readonly sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy; |
| | 39233 | readonly serviceTier?: string | null; |
| | 39234 | readonly summary?: V2ThreadSettingsUpdatedNotification__ReasoningSummary | null; |
| | 39235 | }; |
| | 39236 | export const V2ThreadSettingsUpdatedNotification__ThreadSettings = Schema.Struct({ |
| | 39237 | activePermissionProfile: Schema.optionalKey( |
| | 39238 | Schema.Union([V2ThreadSettingsUpdatedNotification__ActivePermissionProfile, Schema.Null]), |
| | 39239 | ), |
| | 39240 | approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval, |
| | 39241 | approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer, |
| | 39242 | collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode, |
| | 39243 | cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf, |
| | 39244 | disabledPluginIds: Schema.optionalKey( |
| | 39245 | Schema.Array(Schema.String).annotate({ |
| | 39246 | description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| | 39247 | default: [], |
| | 39248 | }), |
| | 39249 | ), |
| | 39250 | effort: Schema.optionalKey( |
| | 39251 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]), |
| | 39252 | ), |
| | 39253 | model: Schema.String, |
| | 39254 | modelProvider: Schema.String, |
| | 39255 | personality: Schema.optionalKey( |
| | 39256 | Schema.Union([V2ThreadSettingsUpdatedNotification__Personality, Schema.Null]).annotate({ |
| | 39257 | description: |
| | 39258 | "@deprecated Reports the saved setting; `friendly` and `pragmatic` no longer select a style.", |
| | 39259 | }), |
| | 39260 | ), |
| | 39261 | sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy, |
| | 39262 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 39263 | summary: Schema.optionalKey( |
| | 39264 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningSummary, Schema.Null]), |
| | 39265 | ), |
| | 39266 | }).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__ThreadSettings" }); |
| | 39267 | |
| | 39268 | export type V2ThreadStartedNotification__ThreadItem = |
| 30415 | | { | 39269 | | { |
| 30416 | readonly clientId?: string | null; | 39270 | readonly clientId?: string | null; |
| 30417 | readonly content: ReadonlyArray<V2ThreadRollbackResponse__UserInput>; | 39271 | readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>; |
| 30418 | readonly id: string; | 39272 | readonly id: string; |
| 30419 | readonly type: "userMessage"; | 39273 | readonly type: "userMessage"; |
| 30420 | } | 39274 | } |
| 30421 | | { | 39275 | | { |
| 30422 | readonly fragments: ReadonlyArray<V2ThreadRollbackResponse__HookPromptFragment>; | 39276 | readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>; |
| 30423 | readonly id: string; | 39277 | readonly id: string; |
| 30424 | readonly type: "hookPrompt"; | 39278 | readonly type: "hookPrompt"; |
| 30425 | } | 39279 | } |
| 30426 | | { | 39280 | | { |
| | 39281 | readonly delivery?: V2ThreadStartedNotification__AgentMessageDelivery | null; |
| 30427 | readonly id: string; | 39282 | readonly id: string; |
| 30428 | readonly memoryCitation?: V2ThreadRollbackResponse__MemoryCitation | null; | 39283 | readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null; |
| 30429 | readonly phase?: V2ThreadRollbackResponse__MessagePhase | null; | 39284 | readonly phase?: V2ThreadStartedNotification__MessagePhase | null; |
| | 39285 | readonly questions?: ReadonlyArray<V2ThreadStartedNotification__AsyncUserInputQuestion> | null; |
| 30430 | readonly text: string; | 39286 | readonly text: string; |
| 30431 | readonly delivery?: "async" | null; | | |
| 30432 | readonly questions?: ReadonlyArray<{ | | |
| 30433 | readonly title: string; | | |
| 30434 | readonly options?: ReadonlyArray<string> | null; | | |
| 30435 | }> | null; | | |
| 30436 | readonly type: "agentMessage"; | 39287 | readonly type: "agentMessage"; |
| 30437 | } | 39288 | } |
| | 39289 | | { |
| | 39290 | readonly id: string; |
| | 39291 | readonly name: string; |
| | 39292 | readonly namespace?: string | null; |
| | 39293 | readonly output: V2ThreadStartedNotification__FunctionCallOutputBody; |
| | 39294 | readonly type: "functionCallOutput"; |
| | 39295 | } |
| 30438 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 39296 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 30439 | | { | 39297 | | { |
| 30440 | readonly content?: ReadonlyArray<string>; | 39298 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -30445,68 +39303,74 @@ export type V2ThreadRollbackResponse__ThreadItem = | ... | @@ -30445,68 +39303,74 @@ export type V2ThreadRollbackResponse__ThreadItem = |
| 30445 | | { | 39303 | | { |
| 30446 | readonly aggregatedOutput?: string | null; | 39304 | readonly aggregatedOutput?: string | null; |
| 30447 | readonly command: string; | 39305 | readonly command: string; |
| 30448 | readonly commandActions: ReadonlyArray<V2ThreadRollbackResponse__CommandAction>; | 39306 | readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>; |
| 30449 | readonly cwd: V2ThreadRollbackResponse__LegacyAppPathString; | 39307 | readonly cwd: V2ThreadStartedNotification__LegacyAppPathString; |
| 30450 | readonly durationMs?: number | null; | 39308 | readonly durationMs?: number | null; |
| 30451 | readonly exitCode?: number | null; | 39309 | readonly exitCode?: number | null; |
| 30452 | readonly id: string; | 39310 | readonly id: string; |
| | 39311 | readonly pluginId?: string | null; |
| 30453 | readonly processId?: string | null; | 39312 | readonly processId?: string | null; |
| 30454 | readonly source?: V2ThreadRollbackResponse__CommandExecutionSource; | 39313 | readonly scriptPath?: string | null; |
| 30455 | readonly status: V2ThreadRollbackResponse__CommandExecutionStatus; | 39314 | readonly source?: V2ThreadStartedNotification__CommandExecutionSource; |
| | 39315 | readonly status: V2ThreadStartedNotification__CommandExecutionStatus; |
| 30456 | readonly type: "commandExecution"; | 39316 | readonly type: "commandExecution"; |
| 30457 | } | 39317 | } |
| 30458 | | { | 39318 | | { |
| 30459 | readonly changes: ReadonlyArray<V2ThreadRollbackResponse__FileUpdateChange>; | 39319 | readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>; |
| 30460 | readonly id: string; | 39320 | readonly id: string; |
| 30461 | readonly status: V2ThreadRollbackResponse__PatchApplyStatus; | 39321 | readonly status: V2ThreadStartedNotification__PatchApplyStatus; |
| 30462 | readonly type: "fileChange"; | 39322 | readonly type: "fileChange"; |
| 30463 | } | 39323 | } |
| 30464 | | { | 39324 | | { |
| 30465 | readonly appContext?: V2ThreadRollbackResponse__McpToolCallAppContext | null; | 39325 | readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null; |
| 30466 | readonly arguments: Schema.Json; | 39326 | readonly arguments: Schema.Json; |
| 30467 | readonly durationMs?: number | null; | 39327 | readonly durationMs?: number | null; |
| 30468 | readonly error?: V2ThreadRollbackResponse__McpToolCallError | null; | 39328 | readonly error?: V2ThreadStartedNotification__McpToolCallError | null; |
| 30469 | readonly id: string; | 39329 | readonly id: string; |
| 30470 | readonly mcpAppResourceUri?: string | null; | 39330 | readonly mcpAppResourceUri?: string | null; |
| | 39331 | readonly mcpAppUi?: V2ThreadStartedNotification__McpAppUi | null; |
| 30471 | readonly pluginId?: string | null; | 39332 | readonly pluginId?: string | null; |
| 30472 | readonly result?: V2ThreadRollbackResponse__McpToolCallResult | null; | 39333 | readonly readOnlyHint?: boolean | null; |
| | 39334 | readonly result?: V2ThreadStartedNotification__McpToolCallResult | null; |
| 30473 | readonly server: string; | 39335 | readonly server: string; |
| 30474 | readonly status: V2ThreadRollbackResponse__McpToolCallStatus; | 39336 | readonly status: V2ThreadStartedNotification__McpToolCallStatus; |
| 30475 | readonly tool: string; | 39337 | readonly tool: string; |
| 30476 | readonly type: "mcpToolCall"; | 39338 | readonly type: "mcpToolCall"; |
| 30477 | } | 39339 | } |
| 30478 | | { | 39340 | | { |
| 30479 | readonly arguments: Schema.Json; | 39341 | readonly arguments: Schema.Json; |
| 30480 | readonly contentItems?: ReadonlyArray<V2ThreadRollbackResponse__DynamicToolCallOutputContentItem> | null; | 39342 | readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null; |
| 30481 | readonly durationMs?: number | null; | 39343 | readonly durationMs?: number | null; |
| 30482 | readonly id: string; | 39344 | readonly id: string; |
| 30483 | readonly namespace?: string | null; | 39345 | readonly namespace?: string | null; |
| 30484 | readonly status: V2ThreadRollbackResponse__DynamicToolCallStatus; | 39346 | readonly status: V2ThreadStartedNotification__DynamicToolCallStatus; |
| 30485 | readonly success?: boolean | null; | 39347 | readonly success?: boolean | null; |
| 30486 | readonly tool: string; | 39348 | readonly tool: string; |
| 30487 | readonly type: "dynamicToolCall"; | 39349 | readonly type: "dynamicToolCall"; |
| 30488 | } | 39350 | } |
| 30489 | | { | 39351 | | { |
| 30490 | readonly agentsStates: { readonly [x: string]: V2ThreadRollbackResponse__CollabAgentState }; | 39352 | readonly agentsStates: { |
| | 39353 | readonly [x: string]: V2ThreadStartedNotification__CollabAgentState; |
| | 39354 | }; |
| 30491 | readonly id: string; | 39355 | readonly id: string; |
| 30492 | readonly model?: string | null; | 39356 | readonly model?: string | null; |
| 30493 | readonly prompt?: string | null; | 39357 | readonly prompt?: string | null; |
| 30494 | readonly reasoningEffort?: V2ThreadRollbackResponse__ReasoningEffort | null; | 39358 | readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null; |
| 30495 | readonly receiverThreadIds: ReadonlyArray<string>; | 39359 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 30496 | readonly senderThreadId: string; | 39360 | readonly senderThreadId: string; |
| 30497 | readonly status: V2ThreadRollbackResponse__CollabAgentToolCallStatus; | 39361 | readonly status: V2ThreadStartedNotification__CollabAgentToolCallStatus; |
| 30498 | readonly tool: V2ThreadRollbackResponse__CollabAgentTool; | 39362 | readonly tool: V2ThreadStartedNotification__CollabAgentTool; |
| 30499 | readonly type: "collabAgentToolCall"; | 39363 | readonly type: "collabAgentToolCall"; |
| 30500 | } | 39364 | } |
| 30501 | | { | 39365 | | { |
| 30502 | readonly agentPath: string; | 39366 | readonly agentPath: string; |
| 30503 | readonly agentThreadId: string; | 39367 | readonly agentThreadId: string; |
| 30504 | readonly id: string; | 39368 | readonly id: string; |
| 30505 | readonly kind: V2ThreadRollbackResponse__SubAgentActivityKind; | 39369 | readonly kind: V2ThreadStartedNotification__SubAgentActivityKind; |
| 30506 | readonly type: "subAgentActivity"; | 39370 | readonly type: "subAgentActivity"; |
| 30507 | } | 39371 | } |
| 30508 | | { | 39372 | | { |
| 30509 | readonly action?: V2ThreadRollbackResponse__WebSearchAction | null; | 39373 | readonly action?: V2ThreadStartedNotification__WebSearchAction | null; |
| 30510 | readonly id: string; | 39374 | readonly id: string; |
| 30511 | readonly query: string; | 39375 | readonly query: string; |
| 30512 | readonly results?: ReadonlyArray<Schema.Json> | null; | 39376 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -30514,57 +39378,65 @@ export type V2ThreadRollbackResponse__ThreadItem = | ... | @@ -30514,57 +39378,65 @@ export type V2ThreadRollbackResponse__ThreadItem = |
| 30514 | } | 39378 | } |
| 30515 | | { | 39379 | | { |
| 30516 | readonly id: string; | 39380 | readonly id: string; |
| 30517 | readonly path: V2ThreadRollbackResponse__LegacyAppPathString; | 39381 | readonly path: V2ThreadStartedNotification__LegacyAppPathString; |
| 30518 | readonly type: "imageView"; | 39382 | readonly type: "imageView"; |
| 30519 | } | 39383 | } |
| 30520 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 39384 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 30521 | | { | 39385 | | { |
| | 39386 | readonly failure?: V2ThreadStartedNotification__ImageGenerationFailure | null; |
| 30522 | readonly id: string; | 39387 | readonly id: string; |
| 30523 | readonly result: string; | 39388 | readonly result: string; |
| 30524 | readonly revisedPrompt?: string | null; | 39389 | readonly revisedPrompt?: string | null; |
| 30525 | readonly savedPath?: V2ThreadRollbackResponse__AbsolutePathBuf | null; | 39390 | readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null; |
| 30526 | readonly status: string; | 39391 | readonly status: string; |
| | 39392 | readonly transparentBackground?: boolean | null; |
| 30527 | readonly type: "imageGeneration"; | 39393 | readonly type: "imageGeneration"; |
| 30528 | } | 39394 | } |
| 30529 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 39395 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 30530 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 39396 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 30531 | | { readonly id: string; readonly type: "contextCompaction" }; | 39397 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 30532 | export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | 39398 | export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 30533 | [ | 39399 | [ |
| 30534 | Schema.Struct({ | 39400 | Schema.Struct({ |
| 30535 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39401 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30536 | content: Schema.Array(V2ThreadRollbackResponse__UserInput), | 39402 | content: Schema.Array(V2ThreadStartedNotification__UserInput), |
| 30537 | id: Schema.String, | 39403 | id: Schema.String, |
| 30538 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 39404 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 30539 | }).annotate({ title: "UserMessageThreadItem" }), | 39405 | }).annotate({ title: "UserMessageThreadItem" }), |
| 30540 | Schema.Struct({ | 39406 | Schema.Struct({ |
| 30541 | fragments: Schema.Array(V2ThreadRollbackResponse__HookPromptFragment), | 39407 | fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment), |
| 30542 | id: Schema.String, | 39408 | id: Schema.String, |
| 30543 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 39409 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 30544 | }).annotate({ title: "HookPromptThreadItem" }), | 39410 | }).annotate({ title: "HookPromptThreadItem" }), |
| 30545 | Schema.Struct({ | 39411 | Schema.Struct({ |
| | 39412 | delivery: Schema.optionalKey( |
| | 39413 | Schema.Union([V2ThreadStartedNotification__AgentMessageDelivery, Schema.Null]), |
| | 39414 | ), |
| 30546 | id: Schema.String, | 39415 | id: Schema.String, |
| 30547 | memoryCitation: Schema.optionalKey( | 39416 | memoryCitation: Schema.optionalKey( |
| 30548 | Schema.Union([V2ThreadRollbackResponse__MemoryCitation, Schema.Null]), | 39417 | Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]), |
| 30549 | ), | 39418 | ), |
| 30550 | phase: Schema.optionalKey( | 39419 | phase: Schema.optionalKey( |
| 30551 | Schema.Union([V2ThreadRollbackResponse__MessagePhase, Schema.Null]), | 39420 | Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]), |
| 30552 | ), | 39421 | ), |
| 30553 | text: Schema.String, | | |
| 30554 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 30555 | questions: Schema.optionalKey( | 39422 | questions: Schema.optionalKey( |
| 30556 | Schema.Union([ | 39423 | Schema.Union([ |
| 30557 | Schema.Array( | 39424 | Schema.Array(V2ThreadStartedNotification__AsyncUserInputQuestion), |
| 30558 | Schema.Struct({ | | |
| 30559 | title: Schema.String, | | |
| 30560 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 30561 | }), | | |
| 30562 | ), | | |
| 30563 | Schema.Null, | 39425 | Schema.Null, |
| 30564 | ]), | 39426 | ]), |
| 30565 | ), | 39427 | ), |
| | 39428 | text: Schema.String, |
| 30566 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 39429 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 30567 | }).annotate({ title: "AgentMessageThreadItem" }), | 39430 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 39431 | Schema.Struct({ |
| | 39432 | id: Schema.String, |
| | 39433 | name: Schema.String, |
| | 39434 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 39435 | output: V2ThreadStartedNotification__FunctionCallOutputBody, |
| | 39436 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 39437 | title: "FunctionCallOutputThreadItemType", |
| | 39438 | }), |
| | 39439 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 30568 | Schema.Struct({ | 39440 | Schema.Struct({ |
| 30569 | id: Schema.String, | 39441 | id: Schema.String, |
| 30570 | text: Schema.String, | 39442 | text: Schema.String, |
| ... | @@ -30590,13 +39462,13 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30590,13 +39462,13 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30590 | ]), | 39462 | ]), |
| 30591 | ), | 39463 | ), |
| 30592 | command: Schema.String.annotate({ description: "The command to be executed." }), | 39464 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 30593 | commandActions: Schema.Array(V2ThreadRollbackResponse__CommandAction).annotate({ | 39465 | commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({ |
| 30594 | description: | 39466 | description: |
| 30595 | "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.", | 39467 | "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.", |
| 30596 | }), | 39468 | }), |
| 30597 | cwd: Schema.suspend( | 39469 | cwd: Schema.suspend( |
| 30598 | (): Schema.Codec<V2ThreadRollbackResponse__LegacyAppPathString> => | 39470 | (): Schema.Codec<V2ThreadStartedNotification__LegacyAppPathString> => |
| 30599 | V2ThreadRollbackResponse__LegacyAppPathString, | 39471 | V2ThreadStartedNotification__LegacyAppPathString, |
| 30600 | ).annotate({ description: "The command's working directory." }), | 39472 | ).annotate({ description: "The command's working directory." }), |
| 30601 | durationMs: Schema.optionalKey( | 39473 | durationMs: Schema.optionalKey( |
| 30602 | Schema.Union([ | 39474 | Schema.Union([ |
| ... | @@ -30617,6 +39489,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30617,6 +39489,15 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30617 | ]), | 39489 | ]), |
| 30618 | ), | 39490 | ), |
| 30619 | id: Schema.String, | 39491 | id: Schema.String, |
| | 39492 | pluginId: Schema.optionalKey( |
| | 39493 | Schema.Union([ |
| | 39494 | Schema.String.annotate({ |
| | 39495 | description: |
| | 39496 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 39497 | }), |
| | 39498 | Schema.Null, |
| | 39499 | ]), |
| | 39500 | ), |
| 30620 | processId: Schema.optionalKey( | 39501 | processId: Schema.optionalKey( |
| 30621 | Schema.Union([ | 39502 | Schema.Union([ |
| 30622 | Schema.String.annotate({ | 39503 | Schema.String.annotate({ |
| ... | @@ -30625,26 +39506,35 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30625,26 +39506,35 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30625 | Schema.Null, | 39506 | Schema.Null, |
| 30626 | ]), | 39507 | ]), |
| 30627 | ), | 39508 | ), |
| | 39509 | scriptPath: Schema.optionalKey( |
| | 39510 | Schema.Union([ |
| | 39511 | Schema.String.annotate({ |
| | 39512 | description: |
| | 39513 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 39514 | }), |
| | 39515 | Schema.Null, |
| | 39516 | ]), |
| | 39517 | ), |
| 30628 | source: Schema.optionalKey( | 39518 | source: Schema.optionalKey( |
| 30629 | Schema.suspend( | 39519 | Schema.suspend( |
| 30630 | (): Schema.Codec<V2ThreadRollbackResponse__CommandExecutionSource> => | 39520 | (): Schema.Codec<V2ThreadStartedNotification__CommandExecutionSource> => |
| 30631 | V2ThreadRollbackResponse__CommandExecutionSource, | 39521 | V2ThreadStartedNotification__CommandExecutionSource, |
| 30632 | ).annotate({ default: "agent" }), | 39522 | ).annotate({ default: "agent" }), |
| 30633 | ), | 39523 | ), |
| 30634 | status: V2ThreadRollbackResponse__CommandExecutionStatus, | 39524 | status: V2ThreadStartedNotification__CommandExecutionStatus, |
| 30635 | type: Schema.Literal("commandExecution").annotate({ | 39525 | type: Schema.Literal("commandExecution").annotate({ |
| 30636 | title: "CommandExecutionThreadItemType", | 39526 | title: "CommandExecutionThreadItemType", |
| 30637 | }), | 39527 | }), |
| 30638 | }).annotate({ title: "CommandExecutionThreadItem" }), | 39528 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 30639 | Schema.Struct({ | 39529 | Schema.Struct({ |
| 30640 | changes: Schema.Array(V2ThreadRollbackResponse__FileUpdateChange), | 39530 | changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange), |
| 30641 | id: Schema.String, | 39531 | id: Schema.String, |
| 30642 | status: V2ThreadRollbackResponse__PatchApplyStatus, | 39532 | status: V2ThreadStartedNotification__PatchApplyStatus, |
| 30643 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 39533 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 30644 | }).annotate({ title: "FileChangeThreadItem" }), | 39534 | }).annotate({ title: "FileChangeThreadItem" }), |
| 30645 | Schema.Struct({ | 39535 | Schema.Struct({ |
| 30646 | appContext: Schema.optionalKey( | 39536 | appContext: Schema.optionalKey( |
| 30647 | Schema.Union([V2ThreadRollbackResponse__McpToolCallAppContext, Schema.Null]), | 39537 | Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]), |
| 30648 | ), | 39538 | ), |
| 30649 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 39539 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 30650 | durationMs: Schema.optionalKey( | 39540 | durationMs: Schema.optionalKey( |
| ... | @@ -30657,23 +39547,31 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30657,23 +39547,31 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30657 | ]), | 39547 | ]), |
| 30658 | ), | 39548 | ), |
| 30659 | error: Schema.optionalKey( | 39549 | error: Schema.optionalKey( |
| 30660 | Schema.Union([V2ThreadRollbackResponse__McpToolCallError, Schema.Null]), | 39550 | Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]), |
| 30661 | ), | 39551 | ), |
| 30662 | id: Schema.String, | 39552 | id: Schema.String, |
| 30663 | mcpAppResourceUri: Schema.optionalKey( | 39553 | mcpAppResourceUri: Schema.optionalKey( |
| 30664 | Schema.Union([ | 39554 | Schema.Union([ |
| 30665 | Schema.String.annotate({ | 39555 | Schema.String.annotate({ |
| 30666 | description: "Deprecated: use `appContext.resourceUri` instead.", | 39556 | description: |
| | 39557 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 30667 | }), | 39558 | }), |
| 30668 | Schema.Null, | 39559 | Schema.Null, |
| 30669 | ]), | 39560 | ]), |
| 30670 | ), | 39561 | ), |
| | 39562 | mcpAppUi: Schema.optionalKey( |
| | 39563 | Schema.Union([V2ThreadStartedNotification__McpAppUi, Schema.Null]).annotate({ |
| | 39564 | description: |
| | 39565 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 39566 | }), |
| | 39567 | ), |
| 30671 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39568 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 39569 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 30672 | result: Schema.optionalKey( | 39570 | result: Schema.optionalKey( |
| 30673 | Schema.Union([V2ThreadRollbackResponse__McpToolCallResult, Schema.Null]), | 39571 | Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]), |
| 30674 | ), | 39572 | ), |
| 30675 | server: Schema.String, | 39573 | server: Schema.String, |
| 30676 | status: V2ThreadRollbackResponse__McpToolCallStatus, | 39574 | status: V2ThreadStartedNotification__McpToolCallStatus, |
| 30677 | tool: Schema.String, | 39575 | tool: Schema.String, |
| 30678 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 39576 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 30679 | }).annotate({ title: "McpToolCallThreadItem" }), | 39577 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -30681,7 +39579,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30681,7 +39579,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30681 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 39579 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 30682 | contentItems: Schema.optionalKey( | 39580 | contentItems: Schema.optionalKey( |
| 30683 | Schema.Union([ | 39581 | Schema.Union([ |
| 30684 | Schema.Array(V2ThreadRollbackResponse__DynamicToolCallOutputContentItem), | 39582 | Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem), |
| 30685 | Schema.Null, | 39583 | Schema.Null, |
| 30686 | ]), | 39584 | ]), |
| 30687 | ), | 39585 | ), |
| ... | @@ -30696,7 +39594,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30696,7 +39594,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30696 | ), | 39594 | ), |
| 30697 | id: Schema.String, | 39595 | id: Schema.String, |
| 30698 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39596 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30699 | status: V2ThreadRollbackResponse__DynamicToolCallStatus, | 39597 | status: V2ThreadStartedNotification__DynamicToolCallStatus, |
| 30700 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 39598 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 30701 | tool: Schema.String, | 39599 | tool: Schema.String, |
| 30702 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 39600 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| ... | @@ -30704,7 +39602,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30704,7 +39602,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30704 | Schema.Struct({ | 39602 | Schema.Struct({ |
| 30705 | agentsStates: Schema.Record( | 39603 | agentsStates: Schema.Record( |
| 30706 | Schema.String, | 39604 | Schema.String, |
| 30707 | V2ThreadRollbackResponse__CollabAgentState, | 39605 | V2ThreadStartedNotification__CollabAgentState, |
| 30708 | ).annotate({ description: "Last known status of the target agents, when available." }), | 39606 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 30709 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 39607 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 30710 | model: Schema.optionalKey( | 39608 | model: Schema.optionalKey( |
| ... | @@ -30724,7 +39622,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30724,7 +39622,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30724 | ]), | 39622 | ]), |
| 30725 | ), | 39623 | ), |
| 30726 | reasoningEffort: Schema.optionalKey( | 39624 | reasoningEffort: Schema.optionalKey( |
| 30727 | Schema.Union([V2ThreadRollbackResponse__ReasoningEffort, Schema.Null]).annotate({ | 39625 | Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| 30728 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 39626 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 30729 | }), | 39627 | }), |
| 30730 | ), | 39628 | ), |
| ... | @@ -30736,12 +39634,12 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30736,12 +39634,12 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30736 | description: "Thread ID of the agent issuing the collab request.", | 39634 | description: "Thread ID of the agent issuing the collab request.", |
| 30737 | }), | 39635 | }), |
| 30738 | status: Schema.suspend( | 39636 | status: Schema.suspend( |
| 30739 | (): Schema.Codec<V2ThreadRollbackResponse__CollabAgentToolCallStatus> => | 39637 | (): Schema.Codec<V2ThreadStartedNotification__CollabAgentToolCallStatus> => |
| 30740 | V2ThreadRollbackResponse__CollabAgentToolCallStatus, | 39638 | V2ThreadStartedNotification__CollabAgentToolCallStatus, |
| 30741 | ).annotate({ description: "Current status of the collab tool call." }), | 39639 | ).annotate({ description: "Current status of the collab tool call." }), |
| 30742 | tool: Schema.suspend( | 39640 | tool: Schema.suspend( |
| 30743 | (): Schema.Codec<V2ThreadRollbackResponse__CollabAgentTool> => | 39641 | (): Schema.Codec<V2ThreadStartedNotification__CollabAgentTool> => |
| 30744 | V2ThreadRollbackResponse__CollabAgentTool, | 39642 | V2ThreadStartedNotification__CollabAgentTool, |
| 30745 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 39643 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 30746 | type: Schema.Literal("collabAgentToolCall").annotate({ | 39644 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 30747 | title: "CollabAgentToolCallThreadItemType", | 39645 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -30751,14 +39649,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30751,14 +39649,14 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30751 | agentPath: Schema.String, | 39649 | agentPath: Schema.String, |
| 30752 | agentThreadId: Schema.String, | 39650 | agentThreadId: Schema.String, |
| 30753 | id: Schema.String, | 39651 | id: Schema.String, |
| 30754 | kind: V2ThreadRollbackResponse__SubAgentActivityKind, | 39652 | kind: V2ThreadStartedNotification__SubAgentActivityKind, |
| 30755 | type: Schema.Literal("subAgentActivity").annotate({ | 39653 | type: Schema.Literal("subAgentActivity").annotate({ |
| 30756 | title: "SubAgentActivityThreadItemType", | 39654 | title: "SubAgentActivityThreadItemType", |
| 30757 | }), | 39655 | }), |
| 30758 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 39656 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 30759 | Schema.Struct({ | 39657 | Schema.Struct({ |
| 30760 | action: Schema.optionalKey( | 39658 | action: Schema.optionalKey( |
| 30761 | Schema.Union([V2ThreadRollbackResponse__WebSearchAction, Schema.Null]), | 39659 | Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]), |
| 30762 | ), | 39660 | ), |
| 30763 | id: Schema.String, | 39661 | id: Schema.String, |
| 30764 | query: Schema.String, | 39662 | query: Schema.String, |
| ... | @@ -30775,7 +39673,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30775,7 +39673,7 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30775 | }).annotate({ title: "WebSearchThreadItem" }), | 39673 | }).annotate({ title: "WebSearchThreadItem" }), |
| 30776 | Schema.Struct({ | 39674 | Schema.Struct({ |
| 30777 | id: Schema.String, | 39675 | id: Schema.String, |
| 30778 | path: V2ThreadRollbackResponse__LegacyAppPathString, | 39676 | path: V2ThreadStartedNotification__LegacyAppPathString, |
| 30779 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 39677 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 30780 | }).annotate({ title: "ImageViewThreadItem" }), | 39678 | }).annotate({ title: "ImageViewThreadItem" }), |
| 30781 | Schema.Struct({ | 39679 | Schema.Struct({ |
| ... | @@ -30793,13 +39691,17 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30793,13 +39691,17 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30793 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 39691 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 30794 | }), | 39692 | }), |
| 30795 | Schema.Struct({ | 39693 | Schema.Struct({ |
| | 39694 | failure: Schema.optionalKey( |
| | 39695 | Schema.Union([V2ThreadStartedNotification__ImageGenerationFailure, Schema.Null]), |
| | 39696 | ), |
| 30796 | id: Schema.String, | 39697 | id: Schema.String, |
| 30797 | result: Schema.String, | 39698 | result: Schema.String, |
| 30798 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39699 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30799 | savedPath: Schema.optionalKey( | 39700 | savedPath: Schema.optionalKey( |
| 30800 | Schema.Union([V2ThreadRollbackResponse__AbsolutePathBuf, Schema.Null]), | 39701 | Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 30801 | ), | 39702 | ), |
| 30802 | status: Schema.String, | 39703 | status: Schema.String, |
| | 39704 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 30803 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 39705 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 30804 | }).annotate({ title: "ImageGenerationThreadItem" }), | 39706 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 30805 | Schema.Struct({ | 39707 | Schema.Struct({ |
| ... | @@ -30824,69 +39726,36 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( | ... | @@ -30824,69 +39726,36 @@ export const V2ThreadRollbackResponse__ThreadItem = Schema.Union( |
| 30824 | }).annotate({ title: "ContextCompactionThreadItem" }), | 39726 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 30825 | ], | 39727 | ], |
| 30826 | { mode: "oneOf" }, | 39728 | { mode: "oneOf" }, |
| 30827 | ).annotate({ identifier: "V2ThreadRollbackResponse__ThreadItem" }); | 39729 | ).annotate({ identifier: "V2ThreadStartedNotification__ThreadItem" }); |
| 30828 | | | |
| 30829 | export type V2ThreadSettingsUpdatedNotification__ThreadSettings = { | | |
| 30830 | readonly activePermissionProfile?: V2ThreadSettingsUpdatedNotification__ActivePermissionProfile | null; | | |
| 30831 | readonly approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval; | | |
| 30832 | readonly approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer; | | |
| 30833 | readonly collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode; | | |
| 30834 | readonly cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf; | | |
| 30835 | readonly effort?: V2ThreadSettingsUpdatedNotification__ReasoningEffort | null; | | |
| 30836 | readonly model: string; | | |
| 30837 | readonly modelProvider: string; | | |
| 30838 | readonly personality?: V2ThreadSettingsUpdatedNotification__Personality | null; | | |
| 30839 | readonly sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy; | | |
| 30840 | readonly serviceTier?: string | null; | | |
| 30841 | readonly summary?: V2ThreadSettingsUpdatedNotification__ReasoningSummary | null; | | |
| 30842 | }; | | |
| 30843 | export const V2ThreadSettingsUpdatedNotification__ThreadSettings = Schema.Struct({ | | |
| 30844 | activePermissionProfile: Schema.optionalKey( | | |
| 30845 | Schema.Union([V2ThreadSettingsUpdatedNotification__ActivePermissionProfile, Schema.Null]), | | |
| 30846 | ), | | |
| 30847 | approvalPolicy: V2ThreadSettingsUpdatedNotification__AskForApproval, | | |
| 30848 | approvalsReviewer: V2ThreadSettingsUpdatedNotification__ApprovalsReviewer, | | |
| 30849 | collaborationMode: V2ThreadSettingsUpdatedNotification__CollaborationMode, | | |
| 30850 | cwd: V2ThreadSettingsUpdatedNotification__AbsolutePathBuf, | | |
| 30851 | effort: Schema.optionalKey( | | |
| 30852 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningEffort, Schema.Null]), | | |
| 30853 | ), | | |
| 30854 | model: Schema.String, | | |
| 30855 | modelProvider: Schema.String, | | |
| 30856 | personality: Schema.optionalKey( | | |
| 30857 | Schema.Union([V2ThreadSettingsUpdatedNotification__Personality, Schema.Null]), | | |
| 30858 | ), | | |
| 30859 | sandboxPolicy: V2ThreadSettingsUpdatedNotification__SandboxPolicy, | | |
| 30860 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | | |
| 30861 | summary: Schema.optionalKey( | | |
| 30862 | Schema.Union([V2ThreadSettingsUpdatedNotification__ReasoningSummary, Schema.Null]), | | |
| 30863 | ), | | |
| 30864 | }).annotate({ identifier: "V2ThreadSettingsUpdatedNotification__ThreadSettings" }); | | |
| 30865 | | 39730 | |
| 30866 | export type V2ThreadStartedNotification__ThreadItem = | 39731 | export type V2ThreadStartResponse__ThreadItem = |
| 30867 | | { | 39732 | | { |
| 30868 | readonly clientId?: string | null; | 39733 | readonly clientId?: string | null; |
| 30869 | readonly content: ReadonlyArray<V2ThreadStartedNotification__UserInput>; | 39734 | readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>; |
| 30870 | readonly id: string; | 39735 | readonly id: string; |
| 30871 | readonly type: "userMessage"; | 39736 | readonly type: "userMessage"; |
| 30872 | } | 39737 | } |
| 30873 | | { | 39738 | | { |
| 30874 | readonly fragments: ReadonlyArray<V2ThreadStartedNotification__HookPromptFragment>; | 39739 | readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>; |
| 30875 | readonly id: string; | 39740 | readonly id: string; |
| 30876 | readonly type: "hookPrompt"; | 39741 | readonly type: "hookPrompt"; |
| 30877 | } | 39742 | } |
| 30878 | | { | 39743 | | { |
| | 39744 | readonly delivery?: V2ThreadStartResponse__AgentMessageDelivery | null; |
| 30879 | readonly id: string; | 39745 | readonly id: string; |
| 30880 | readonly memoryCitation?: V2ThreadStartedNotification__MemoryCitation | null; | 39746 | readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null; |
| 30881 | readonly phase?: V2ThreadStartedNotification__MessagePhase | null; | 39747 | readonly phase?: V2ThreadStartResponse__MessagePhase | null; |
| | 39748 | readonly questions?: ReadonlyArray<V2ThreadStartResponse__AsyncUserInputQuestion> | null; |
| 30882 | readonly text: string; | 39749 | readonly text: string; |
| 30883 | readonly delivery?: "async" | null; | | |
| 30884 | readonly questions?: ReadonlyArray<{ | | |
| 30885 | readonly title: string; | | |
| 30886 | readonly options?: ReadonlyArray<string> | null; | | |
| 30887 | }> | null; | | |
| 30888 | readonly type: "agentMessage"; | 39750 | readonly type: "agentMessage"; |
| 30889 | } | 39751 | } |
| | 39752 | | { |
| | 39753 | readonly id: string; |
| | 39754 | readonly name: string; |
| | 39755 | readonly namespace?: string | null; |
| | 39756 | readonly output: V2ThreadStartResponse__FunctionCallOutputBody; |
| | 39757 | readonly type: "functionCallOutput"; |
| | 39758 | } |
| 30890 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 39759 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 30891 | | { | 39760 | | { |
| 30892 | readonly content?: ReadonlyArray<string>; | 39761 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -30897,70 +39766,72 @@ export type V2ThreadStartedNotification__ThreadItem = | ... | @@ -30897,70 +39766,72 @@ export type V2ThreadStartedNotification__ThreadItem = |
| 30897 | | { | 39766 | | { |
| 30898 | readonly aggregatedOutput?: string | null; | 39767 | readonly aggregatedOutput?: string | null; |
| 30899 | readonly command: string; | 39768 | readonly command: string; |
| 30900 | readonly commandActions: ReadonlyArray<V2ThreadStartedNotification__CommandAction>; | 39769 | readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>; |
| 30901 | readonly cwd: V2ThreadStartedNotification__LegacyAppPathString; | 39770 | readonly cwd: V2ThreadStartResponse__LegacyAppPathString; |
| 30902 | readonly durationMs?: number | null; | 39771 | readonly durationMs?: number | null; |
| 30903 | readonly exitCode?: number | null; | 39772 | readonly exitCode?: number | null; |
| 30904 | readonly id: string; | 39773 | readonly id: string; |
| | 39774 | readonly pluginId?: string | null; |
| 30905 | readonly processId?: string | null; | 39775 | readonly processId?: string | null; |
| 30906 | readonly source?: V2ThreadStartedNotification__CommandExecutionSource; | 39776 | readonly scriptPath?: string | null; |
| 30907 | readonly status: V2ThreadStartedNotification__CommandExecutionStatus; | 39777 | readonly source?: V2ThreadStartResponse__CommandExecutionSource; |
| | 39778 | readonly status: V2ThreadStartResponse__CommandExecutionStatus; |
| 30908 | readonly type: "commandExecution"; | 39779 | readonly type: "commandExecution"; |
| 30909 | } | 39780 | } |
| 30910 | | { | 39781 | | { |
| 30911 | readonly changes: ReadonlyArray<V2ThreadStartedNotification__FileUpdateChange>; | 39782 | readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>; |
| 30912 | readonly id: string; | 39783 | readonly id: string; |
| 30913 | readonly status: V2ThreadStartedNotification__PatchApplyStatus; | 39784 | readonly status: V2ThreadStartResponse__PatchApplyStatus; |
| 30914 | readonly type: "fileChange"; | 39785 | readonly type: "fileChange"; |
| 30915 | } | 39786 | } |
| 30916 | | { | 39787 | | { |
| 30917 | readonly appContext?: V2ThreadStartedNotification__McpToolCallAppContext | null; | 39788 | readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null; |
| 30918 | readonly arguments: Schema.Json; | 39789 | readonly arguments: Schema.Json; |
| 30919 | readonly durationMs?: number | null; | 39790 | readonly durationMs?: number | null; |
| 30920 | readonly error?: V2ThreadStartedNotification__McpToolCallError | null; | 39791 | readonly error?: V2ThreadStartResponse__McpToolCallError | null; |
| 30921 | readonly id: string; | 39792 | readonly id: string; |
| 30922 | readonly mcpAppResourceUri?: string | null; | 39793 | readonly mcpAppResourceUri?: string | null; |
| | 39794 | readonly mcpAppUi?: V2ThreadStartResponse__McpAppUi | null; |
| 30923 | readonly pluginId?: string | null; | 39795 | readonly pluginId?: string | null; |
| 30924 | readonly result?: V2ThreadStartedNotification__McpToolCallResult | null; | 39796 | readonly readOnlyHint?: boolean | null; |
| | 39797 | readonly result?: V2ThreadStartResponse__McpToolCallResult | null; |
| 30925 | readonly server: string; | 39798 | readonly server: string; |
| 30926 | readonly status: V2ThreadStartedNotification__McpToolCallStatus; | 39799 | readonly status: V2ThreadStartResponse__McpToolCallStatus; |
| 30927 | readonly tool: string; | 39800 | readonly tool: string; |
| 30928 | readonly type: "mcpToolCall"; | 39801 | readonly type: "mcpToolCall"; |
| 30929 | } | 39802 | } |
| 30930 | | { | 39803 | | { |
| 30931 | readonly arguments: Schema.Json; | 39804 | readonly arguments: Schema.Json; |
| 30932 | readonly contentItems?: ReadonlyArray<V2ThreadStartedNotification__DynamicToolCallOutputContentItem> | null; | 39805 | readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null; |
| 30933 | readonly durationMs?: number | null; | 39806 | readonly durationMs?: number | null; |
| 30934 | readonly id: string; | 39807 | readonly id: string; |
| 30935 | readonly namespace?: string | null; | 39808 | readonly namespace?: string | null; |
| 30936 | readonly status: V2ThreadStartedNotification__DynamicToolCallStatus; | 39809 | readonly status: V2ThreadStartResponse__DynamicToolCallStatus; |
| 30937 | readonly success?: boolean | null; | 39810 | readonly success?: boolean | null; |
| 30938 | readonly tool: string; | 39811 | readonly tool: string; |
| 30939 | readonly type: "dynamicToolCall"; | 39812 | readonly type: "dynamicToolCall"; |
| 30940 | } | 39813 | } |
| 30941 | | { | 39814 | | { |
| 30942 | readonly agentsStates: { | 39815 | readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState }; |
| 30943 | readonly [x: string]: V2ThreadStartedNotification__CollabAgentState; | | |
| 30944 | }; | | |
| 30945 | readonly id: string; | 39816 | readonly id: string; |
| 30946 | readonly model?: string | null; | 39817 | readonly model?: string | null; |
| 30947 | readonly prompt?: string | null; | 39818 | readonly prompt?: string | null; |
| 30948 | readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null; | 39819 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| 30949 | readonly receiverThreadIds: ReadonlyArray<string>; | 39820 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 30950 | readonly senderThreadId: string; | 39821 | readonly senderThreadId: string; |
| 30951 | readonly status: V2ThreadStartedNotification__CollabAgentToolCallStatus; | 39822 | readonly status: V2ThreadStartResponse__CollabAgentToolCallStatus; |
| 30952 | readonly tool: V2ThreadStartedNotification__CollabAgentTool; | 39823 | readonly tool: V2ThreadStartResponse__CollabAgentTool; |
| 30953 | readonly type: "collabAgentToolCall"; | 39824 | readonly type: "collabAgentToolCall"; |
| 30954 | } | 39825 | } |
| 30955 | | { | 39826 | | { |
| 30956 | readonly agentPath: string; | 39827 | readonly agentPath: string; |
| 30957 | readonly agentThreadId: string; | 39828 | readonly agentThreadId: string; |
| 30958 | readonly id: string; | 39829 | readonly id: string; |
| 30959 | readonly kind: V2ThreadStartedNotification__SubAgentActivityKind; | 39830 | readonly kind: V2ThreadStartResponse__SubAgentActivityKind; |
| 30960 | readonly type: "subAgentActivity"; | 39831 | readonly type: "subAgentActivity"; |
| 30961 | } | 39832 | } |
| 30962 | | { | 39833 | | { |
| 30963 | readonly action?: V2ThreadStartedNotification__WebSearchAction | null; | 39834 | readonly action?: V2ThreadStartResponse__WebSearchAction | null; |
| 30964 | readonly id: string; | 39835 | readonly id: string; |
| 30965 | readonly query: string; | 39836 | readonly query: string; |
| 30966 | readonly results?: ReadonlyArray<Schema.Json> | null; | 39837 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -30968,57 +39839,60 @@ export type V2ThreadStartedNotification__ThreadItem = | ... | @@ -30968,57 +39839,60 @@ export type V2ThreadStartedNotification__ThreadItem = |
| 30968 | } | 39839 | } |
| 30969 | | { | 39840 | | { |
| 30970 | readonly id: string; | 39841 | readonly id: string; |
| 30971 | readonly path: V2ThreadStartedNotification__LegacyAppPathString; | 39842 | readonly path: V2ThreadStartResponse__LegacyAppPathString; |
| 30972 | readonly type: "imageView"; | 39843 | readonly type: "imageView"; |
| 30973 | } | 39844 | } |
| 30974 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 39845 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 30975 | | { | 39846 | | { |
| | 39847 | readonly failure?: V2ThreadStartResponse__ImageGenerationFailure | null; |
| 30976 | readonly id: string; | 39848 | readonly id: string; |
| 30977 | readonly result: string; | 39849 | readonly result: string; |
| 30978 | readonly revisedPrompt?: string | null; | 39850 | readonly revisedPrompt?: string | null; |
| 30979 | readonly savedPath?: V2ThreadStartedNotification__AbsolutePathBuf | null; | 39851 | readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null; |
| 30980 | readonly status: string; | 39852 | readonly status: string; |
| | 39853 | readonly transparentBackground?: boolean | null; |
| 30981 | readonly type: "imageGeneration"; | 39854 | readonly type: "imageGeneration"; |
| 30982 | } | 39855 | } |
| 30983 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 39856 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 30984 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 39857 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 30985 | | { readonly id: string; readonly type: "contextCompaction" }; | 39858 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 30986 | export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | 39859 | export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 30987 | [ | 39860 | [ |
| 30988 | Schema.Struct({ | 39861 | Schema.Struct({ |
| 30989 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 39862 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 30990 | content: Schema.Array(V2ThreadStartedNotification__UserInput), | 39863 | content: Schema.Array(V2ThreadStartResponse__UserInput), |
| 30991 | id: Schema.String, | 39864 | id: Schema.String, |
| 30992 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 39865 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 30993 | }).annotate({ title: "UserMessageThreadItem" }), | 39866 | }).annotate({ title: "UserMessageThreadItem" }), |
| 30994 | Schema.Struct({ | 39867 | Schema.Struct({ |
| 30995 | fragments: Schema.Array(V2ThreadStartedNotification__HookPromptFragment), | 39868 | fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment), |
| 30996 | id: Schema.String, | 39869 | id: Schema.String, |
| 30997 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 39870 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 30998 | }).annotate({ title: "HookPromptThreadItem" }), | 39871 | }).annotate({ title: "HookPromptThreadItem" }), |
| 30999 | Schema.Struct({ | 39872 | Schema.Struct({ |
| | 39873 | delivery: Schema.optionalKey( |
| | 39874 | Schema.Union([V2ThreadStartResponse__AgentMessageDelivery, Schema.Null]), |
| | 39875 | ), |
| 31000 | id: Schema.String, | 39876 | id: Schema.String, |
| 31001 | memoryCitation: Schema.optionalKey( | 39877 | memoryCitation: Schema.optionalKey( |
| 31002 | Schema.Union([V2ThreadStartedNotification__MemoryCitation, Schema.Null]), | 39878 | Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]), |
| 31003 | ), | | |
| 31004 | phase: Schema.optionalKey( | | |
| 31005 | Schema.Union([V2ThreadStartedNotification__MessagePhase, Schema.Null]), | | |
| 31006 | ), | 39879 | ), |
| 31007 | text: Schema.String, | 39880 | phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])), |
| 31008 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 31009 | questions: Schema.optionalKey( | 39881 | questions: Schema.optionalKey( |
| 31010 | Schema.Union([ | 39882 | Schema.Union([Schema.Array(V2ThreadStartResponse__AsyncUserInputQuestion), Schema.Null]), |
| 31011 | Schema.Array( | | |
| 31012 | Schema.Struct({ | | |
| 31013 | title: Schema.String, | | |
| 31014 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 31015 | }), | | |
| 31016 | ), | | |
| 31017 | Schema.Null, | | |
| 31018 | ]), | | |
| 31019 | ), | 39883 | ), |
| | 39884 | text: Schema.String, |
| 31020 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 39885 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 31021 | }).annotate({ title: "AgentMessageThreadItem" }), | 39886 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 39887 | Schema.Struct({ |
| | 39888 | id: Schema.String, |
| | 39889 | name: Schema.String, |
| | 39890 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 39891 | output: V2ThreadStartResponse__FunctionCallOutputBody, |
| | 39892 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 39893 | title: "FunctionCallOutputThreadItemType", |
| | 39894 | }), |
| | 39895 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 31022 | Schema.Struct({ | 39896 | Schema.Struct({ |
| 31023 | id: Schema.String, | 39897 | id: Schema.String, |
| 31024 | text: Schema.String, | 39898 | text: Schema.String, |
| ... | @@ -31044,13 +39918,13 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31044,13 +39918,13 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31044 | ]), | 39918 | ]), |
| 31045 | ), | 39919 | ), |
| 31046 | command: Schema.String.annotate({ description: "The command to be executed." }), | 39920 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 31047 | commandActions: Schema.Array(V2ThreadStartedNotification__CommandAction).annotate({ | 39921 | commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({ |
| 31048 | description: | 39922 | description: |
| 31049 | "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.", | 39923 | "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.", |
| 31050 | }), | 39924 | }), |
| 31051 | cwd: Schema.suspend( | 39925 | cwd: Schema.suspend( |
| 31052 | (): Schema.Codec<V2ThreadStartedNotification__LegacyAppPathString> => | 39926 | (): Schema.Codec<V2ThreadStartResponse__LegacyAppPathString> => |
| 31053 | V2ThreadStartedNotification__LegacyAppPathString, | 39927 | V2ThreadStartResponse__LegacyAppPathString, |
| 31054 | ).annotate({ description: "The command's working directory." }), | 39928 | ).annotate({ description: "The command's working directory." }), |
| 31055 | durationMs: Schema.optionalKey( | 39929 | durationMs: Schema.optionalKey( |
| 31056 | Schema.Union([ | 39930 | Schema.Union([ |
| ... | @@ -31071,6 +39945,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31071,6 +39945,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31071 | ]), | 39945 | ]), |
| 31072 | ), | 39946 | ), |
| 31073 | id: Schema.String, | 39947 | id: Schema.String, |
| | 39948 | pluginId: Schema.optionalKey( |
| | 39949 | Schema.Union([ |
| | 39950 | Schema.String.annotate({ |
| | 39951 | description: |
| | 39952 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 39953 | }), |
| | 39954 | Schema.Null, |
| | 39955 | ]), |
| | 39956 | ), |
| 31074 | processId: Schema.optionalKey( | 39957 | processId: Schema.optionalKey( |
| 31075 | Schema.Union([ | 39958 | Schema.Union([ |
| 31076 | Schema.String.annotate({ | 39959 | Schema.String.annotate({ |
| ... | @@ -31079,26 +39962,35 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31079,26 +39962,35 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31079 | Schema.Null, | 39962 | Schema.Null, |
| 31080 | ]), | 39963 | ]), |
| 31081 | ), | 39964 | ), |
| | 39965 | scriptPath: Schema.optionalKey( |
| | 39966 | Schema.Union([ |
| | 39967 | Schema.String.annotate({ |
| | 39968 | description: |
| | 39969 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 39970 | }), |
| | 39971 | Schema.Null, |
| | 39972 | ]), |
| | 39973 | ), |
| 31082 | source: Schema.optionalKey( | 39974 | source: Schema.optionalKey( |
| 31083 | Schema.suspend( | 39975 | Schema.suspend( |
| 31084 | (): Schema.Codec<V2ThreadStartedNotification__CommandExecutionSource> => | 39976 | (): Schema.Codec<V2ThreadStartResponse__CommandExecutionSource> => |
| 31085 | V2ThreadStartedNotification__CommandExecutionSource, | 39977 | V2ThreadStartResponse__CommandExecutionSource, |
| 31086 | ).annotate({ default: "agent" }), | 39978 | ).annotate({ default: "agent" }), |
| 31087 | ), | 39979 | ), |
| 31088 | status: V2ThreadStartedNotification__CommandExecutionStatus, | 39980 | status: V2ThreadStartResponse__CommandExecutionStatus, |
| 31089 | type: Schema.Literal("commandExecution").annotate({ | 39981 | type: Schema.Literal("commandExecution").annotate({ |
| 31090 | title: "CommandExecutionThreadItemType", | 39982 | title: "CommandExecutionThreadItemType", |
| 31091 | }), | 39983 | }), |
| 31092 | }).annotate({ title: "CommandExecutionThreadItem" }), | 39984 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 31093 | Schema.Struct({ | 39985 | Schema.Struct({ |
| 31094 | changes: Schema.Array(V2ThreadStartedNotification__FileUpdateChange), | 39986 | changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange), |
| 31095 | id: Schema.String, | 39987 | id: Schema.String, |
| 31096 | status: V2ThreadStartedNotification__PatchApplyStatus, | 39988 | status: V2ThreadStartResponse__PatchApplyStatus, |
| 31097 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 39989 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 31098 | }).annotate({ title: "FileChangeThreadItem" }), | 39990 | }).annotate({ title: "FileChangeThreadItem" }), |
| 31099 | Schema.Struct({ | 39991 | Schema.Struct({ |
| 31100 | appContext: Schema.optionalKey( | 39992 | appContext: Schema.optionalKey( |
| 31101 | Schema.Union([V2ThreadStartedNotification__McpToolCallAppContext, Schema.Null]), | 39993 | Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]), |
| 31102 | ), | 39994 | ), |
| 31103 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 39995 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 31104 | durationMs: Schema.optionalKey( | 39996 | durationMs: Schema.optionalKey( |
| ... | @@ -31111,23 +40003,31 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31111,23 +40003,31 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31111 | ]), | 40003 | ]), |
| 31112 | ), | 40004 | ), |
| 31113 | error: Schema.optionalKey( | 40005 | error: Schema.optionalKey( |
| 31114 | Schema.Union([V2ThreadStartedNotification__McpToolCallError, Schema.Null]), | 40006 | Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]), |
| 31115 | ), | 40007 | ), |
| 31116 | id: Schema.String, | 40008 | id: Schema.String, |
| 31117 | mcpAppResourceUri: Schema.optionalKey( | 40009 | mcpAppResourceUri: Schema.optionalKey( |
| 31118 | Schema.Union([ | 40010 | Schema.Union([ |
| 31119 | Schema.String.annotate({ | 40011 | Schema.String.annotate({ |
| 31120 | description: "Deprecated: use `appContext.resourceUri` instead.", | 40012 | description: |
| | 40013 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 31121 | }), | 40014 | }), |
| 31122 | Schema.Null, | 40015 | Schema.Null, |
| 31123 | ]), | 40016 | ]), |
| 31124 | ), | 40017 | ), |
| | 40018 | mcpAppUi: Schema.optionalKey( |
| | 40019 | Schema.Union([V2ThreadStartResponse__McpAppUi, Schema.Null]).annotate({ |
| | 40020 | description: |
| | 40021 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 40022 | }), |
| | 40023 | ), |
| 31125 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40024 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 40025 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 31126 | result: Schema.optionalKey( | 40026 | result: Schema.optionalKey( |
| 31127 | Schema.Union([V2ThreadStartedNotification__McpToolCallResult, Schema.Null]), | 40027 | Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]), |
| 31128 | ), | 40028 | ), |
| 31129 | server: Schema.String, | 40029 | server: Schema.String, |
| 31130 | status: V2ThreadStartedNotification__McpToolCallStatus, | 40030 | status: V2ThreadStartResponse__McpToolCallStatus, |
| 31131 | tool: Schema.String, | 40031 | tool: Schema.String, |
| 31132 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 40032 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 31133 | }).annotate({ title: "McpToolCallThreadItem" }), | 40033 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -31135,7 +40035,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31135,7 +40035,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31135 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 40035 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 31136 | contentItems: Schema.optionalKey( | 40036 | contentItems: Schema.optionalKey( |
| 31137 | Schema.Union([ | 40037 | Schema.Union([ |
| 31138 | Schema.Array(V2ThreadStartedNotification__DynamicToolCallOutputContentItem), | 40038 | Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem), |
| 31139 | Schema.Null, | 40039 | Schema.Null, |
| 31140 | ]), | 40040 | ]), |
| 31141 | ), | 40041 | ), |
| ... | @@ -31150,16 +40050,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31150,16 +40050,15 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31150 | ), | 40050 | ), |
| 31151 | id: Schema.String, | 40051 | id: Schema.String, |
| 31152 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40052 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31153 | status: V2ThreadStartedNotification__DynamicToolCallStatus, | 40053 | status: V2ThreadStartResponse__DynamicToolCallStatus, |
| 31154 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 40054 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 31155 | tool: Schema.String, | 40055 | tool: Schema.String, |
| 31156 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 40056 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 31157 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 40057 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 31158 | Schema.Struct({ | 40058 | Schema.Struct({ |
| 31159 | agentsStates: Schema.Record( | 40059 | agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({ |
| 31160 | Schema.String, | 40060 | description: "Last known status of the target agents, when available.", |
| 31161 | V2ThreadStartedNotification__CollabAgentState, | 40061 | }), |
| 31162 | ).annotate({ description: "Last known status of the target agents, when available." }), | | |
| 31163 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 40062 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 31164 | model: Schema.optionalKey( | 40063 | model: Schema.optionalKey( |
| 31165 | Schema.Union([ | 40064 | Schema.Union([ |
| ... | @@ -31178,7 +40077,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31178,7 +40077,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31178 | ]), | 40077 | ]), |
| 31179 | ), | 40078 | ), |
| 31180 | reasoningEffort: Schema.optionalKey( | 40079 | reasoningEffort: Schema.optionalKey( |
| 31181 | Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({ | 40080 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 31182 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 40081 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 31183 | }), | 40082 | }), |
| 31184 | ), | 40083 | ), |
| ... | @@ -31190,12 +40089,12 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31190,12 +40089,12 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31190 | description: "Thread ID of the agent issuing the collab request.", | 40089 | description: "Thread ID of the agent issuing the collab request.", |
| 31191 | }), | 40090 | }), |
| 31192 | status: Schema.suspend( | 40091 | status: Schema.suspend( |
| 31193 | (): Schema.Codec<V2ThreadStartedNotification__CollabAgentToolCallStatus> => | 40092 | (): Schema.Codec<V2ThreadStartResponse__CollabAgentToolCallStatus> => |
| 31194 | V2ThreadStartedNotification__CollabAgentToolCallStatus, | 40093 | V2ThreadStartResponse__CollabAgentToolCallStatus, |
| 31195 | ).annotate({ description: "Current status of the collab tool call." }), | 40094 | ).annotate({ description: "Current status of the collab tool call." }), |
| 31196 | tool: Schema.suspend( | 40095 | tool: Schema.suspend( |
| 31197 | (): Schema.Codec<V2ThreadStartedNotification__CollabAgentTool> => | 40096 | (): Schema.Codec<V2ThreadStartResponse__CollabAgentTool> => |
| 31198 | V2ThreadStartedNotification__CollabAgentTool, | 40097 | V2ThreadStartResponse__CollabAgentTool, |
| 31199 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 40098 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 31200 | type: Schema.Literal("collabAgentToolCall").annotate({ | 40099 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 31201 | title: "CollabAgentToolCallThreadItemType", | 40100 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -31205,14 +40104,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31205,14 +40104,14 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31205 | agentPath: Schema.String, | 40104 | agentPath: Schema.String, |
| 31206 | agentThreadId: Schema.String, | 40105 | agentThreadId: Schema.String, |
| 31207 | id: Schema.String, | 40106 | id: Schema.String, |
| 31208 | kind: V2ThreadStartedNotification__SubAgentActivityKind, | 40107 | kind: V2ThreadStartResponse__SubAgentActivityKind, |
| 31209 | type: Schema.Literal("subAgentActivity").annotate({ | 40108 | type: Schema.Literal("subAgentActivity").annotate({ |
| 31210 | title: "SubAgentActivityThreadItemType", | 40109 | title: "SubAgentActivityThreadItemType", |
| 31211 | }), | 40110 | }), |
| 31212 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 40111 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 31213 | Schema.Struct({ | 40112 | Schema.Struct({ |
| 31214 | action: Schema.optionalKey( | 40113 | action: Schema.optionalKey( |
| 31215 | Schema.Union([V2ThreadStartedNotification__WebSearchAction, Schema.Null]), | 40114 | Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]), |
| 31216 | ), | 40115 | ), |
| 31217 | id: Schema.String, | 40116 | id: Schema.String, |
| 31218 | query: Schema.String, | 40117 | query: Schema.String, |
| ... | @@ -31229,7 +40128,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31229,7 +40128,7 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31229 | }).annotate({ title: "WebSearchThreadItem" }), | 40128 | }).annotate({ title: "WebSearchThreadItem" }), |
| 31230 | Schema.Struct({ | 40129 | Schema.Struct({ |
| 31231 | id: Schema.String, | 40130 | id: Schema.String, |
| 31232 | path: V2ThreadStartedNotification__LegacyAppPathString, | 40131 | path: V2ThreadStartResponse__LegacyAppPathString, |
| 31233 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 40132 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 31234 | }).annotate({ title: "ImageViewThreadItem" }), | 40133 | }).annotate({ title: "ImageViewThreadItem" }), |
| 31235 | Schema.Struct({ | 40134 | Schema.Struct({ |
| ... | @@ -31247,13 +40146,17 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31247,13 +40146,17 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31247 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 40146 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 31248 | }), | 40147 | }), |
| 31249 | Schema.Struct({ | 40148 | Schema.Struct({ |
| | 40149 | failure: Schema.optionalKey( |
| | 40150 | Schema.Union([V2ThreadStartResponse__ImageGenerationFailure, Schema.Null]), |
| | 40151 | ), |
| 31250 | id: Schema.String, | 40152 | id: Schema.String, |
| 31251 | result: Schema.String, | 40153 | result: Schema.String, |
| 31252 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40154 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31253 | savedPath: Schema.optionalKey( | 40155 | savedPath: Schema.optionalKey( |
| 31254 | Schema.Union([V2ThreadStartedNotification__AbsolutePathBuf, Schema.Null]), | 40156 | Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]), |
| 31255 | ), | 40157 | ), |
| 31256 | status: Schema.String, | 40158 | status: Schema.String, |
| | 40159 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 31257 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 40160 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 31258 | }).annotate({ title: "ImageGenerationThreadItem" }), | 40161 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 31259 | Schema.Struct({ | 40162 | Schema.Struct({ |
| ... | @@ -31278,32 +40181,36 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( | ... | @@ -31278,32 +40181,36 @@ export const V2ThreadStartedNotification__ThreadItem = Schema.Union( |
| 31278 | }).annotate({ title: "ContextCompactionThreadItem" }), | 40181 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 31279 | ], | 40182 | ], |
| 31280 | { mode: "oneOf" }, | 40183 | { mode: "oneOf" }, |
| 31281 | ).annotate({ identifier: "V2ThreadStartedNotification__ThreadItem" }); | 40184 | ).annotate({ identifier: "V2ThreadStartResponse__ThreadItem" }); |
| 31282 | | 40185 | |
| 31283 | export type V2ThreadStartResponse__ThreadItem = | 40186 | export type V2ThreadTurnsListResponse__ThreadItem = |
| 31284 | | { | 40187 | | { |
| 31285 | readonly clientId?: string | null; | 40188 | readonly clientId?: string | null; |
| 31286 | readonly content: ReadonlyArray<V2ThreadStartResponse__UserInput>; | 40189 | readonly content: ReadonlyArray<V2ThreadTurnsListResponse__UserInput>; |
| 31287 | readonly id: string; | 40190 | readonly id: string; |
| 31288 | readonly type: "userMessage"; | 40191 | readonly type: "userMessage"; |
| 31289 | } | 40192 | } |
| 31290 | | { | 40193 | | { |
| 31291 | readonly fragments: ReadonlyArray<V2ThreadStartResponse__HookPromptFragment>; | 40194 | readonly fragments: ReadonlyArray<V2ThreadTurnsListResponse__HookPromptFragment>; |
| 31292 | readonly id: string; | 40195 | readonly id: string; |
| 31293 | readonly type: "hookPrompt"; | 40196 | readonly type: "hookPrompt"; |
| 31294 | } | 40197 | } |
| 31295 | | { | 40198 | | { |
| | 40199 | readonly delivery?: V2ThreadTurnsListResponse__AgentMessageDelivery | null; |
| 31296 | readonly id: string; | 40200 | readonly id: string; |
| 31297 | readonly memoryCitation?: V2ThreadStartResponse__MemoryCitation | null; | 40201 | readonly memoryCitation?: V2ThreadTurnsListResponse__MemoryCitation | null; |
| 31298 | readonly phase?: V2ThreadStartResponse__MessagePhase | null; | 40202 | readonly phase?: V2ThreadTurnsListResponse__MessagePhase | null; |
| | 40203 | readonly questions?: ReadonlyArray<V2ThreadTurnsListResponse__AsyncUserInputQuestion> | null; |
| 31299 | readonly text: string; | 40204 | readonly text: string; |
| 31300 | readonly delivery?: "async" | null; | | |
| 31301 | readonly questions?: ReadonlyArray<{ | | |
| 31302 | readonly title: string; | | |
| 31303 | readonly options?: ReadonlyArray<string> | null; | | |
| 31304 | }> | null; | | |
| 31305 | readonly type: "agentMessage"; | 40205 | readonly type: "agentMessage"; |
| 31306 | } | 40206 | } |
| | 40207 | | { |
| | 40208 | readonly id: string; |
| | 40209 | readonly name: string; |
| | 40210 | readonly namespace?: string | null; |
| | 40211 | readonly output: V2ThreadTurnsListResponse__FunctionCallOutputBody; |
| | 40212 | readonly type: "functionCallOutput"; |
| | 40213 | } |
| 31307 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 40214 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 31308 | | { | 40215 | | { |
| 31309 | readonly content?: ReadonlyArray<string>; | 40216 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -31314,68 +40221,72 @@ export type V2ThreadStartResponse__ThreadItem = | ... | @@ -31314,68 +40221,72 @@ export type V2ThreadStartResponse__ThreadItem = |
| 31314 | | { | 40221 | | { |
| 31315 | readonly aggregatedOutput?: string | null; | 40222 | readonly aggregatedOutput?: string | null; |
| 31316 | readonly command: string; | 40223 | readonly command: string; |
| 31317 | readonly commandActions: ReadonlyArray<V2ThreadStartResponse__CommandAction>; | 40224 | readonly commandActions: ReadonlyArray<V2ThreadTurnsListResponse__CommandAction>; |
| 31318 | readonly cwd: V2ThreadStartResponse__LegacyAppPathString; | 40225 | readonly cwd: V2ThreadTurnsListResponse__LegacyAppPathString; |
| 31319 | readonly durationMs?: number | null; | 40226 | readonly durationMs?: number | null; |
| 31320 | readonly exitCode?: number | null; | 40227 | readonly exitCode?: number | null; |
| 31321 | readonly id: string; | 40228 | readonly id: string; |
| | 40229 | readonly pluginId?: string | null; |
| 31322 | readonly processId?: string | null; | 40230 | readonly processId?: string | null; |
| 31323 | readonly source?: V2ThreadStartResponse__CommandExecutionSource; | 40231 | readonly scriptPath?: string | null; |
| 31324 | readonly status: V2ThreadStartResponse__CommandExecutionStatus; | 40232 | readonly source?: V2ThreadTurnsListResponse__CommandExecutionSource; |
| | 40233 | readonly status: V2ThreadTurnsListResponse__CommandExecutionStatus; |
| 31325 | readonly type: "commandExecution"; | 40234 | readonly type: "commandExecution"; |
| 31326 | } | 40235 | } |
| 31327 | | { | 40236 | | { |
| 31328 | readonly changes: ReadonlyArray<V2ThreadStartResponse__FileUpdateChange>; | 40237 | readonly changes: ReadonlyArray<V2ThreadTurnsListResponse__FileUpdateChange>; |
| 31329 | readonly id: string; | 40238 | readonly id: string; |
| 31330 | readonly status: V2ThreadStartResponse__PatchApplyStatus; | 40239 | readonly status: V2ThreadTurnsListResponse__PatchApplyStatus; |
| 31331 | readonly type: "fileChange"; | 40240 | readonly type: "fileChange"; |
| 31332 | } | 40241 | } |
| 31333 | | { | 40242 | | { |
| 31334 | readonly appContext?: V2ThreadStartResponse__McpToolCallAppContext | null; | 40243 | readonly appContext?: V2ThreadTurnsListResponse__McpToolCallAppContext | null; |
| 31335 | readonly arguments: Schema.Json; | 40244 | readonly arguments: Schema.Json; |
| 31336 | readonly durationMs?: number | null; | 40245 | readonly durationMs?: number | null; |
| 31337 | readonly error?: V2ThreadStartResponse__McpToolCallError | null; | 40246 | readonly error?: V2ThreadTurnsListResponse__McpToolCallError | null; |
| 31338 | readonly id: string; | 40247 | readonly id: string; |
| 31339 | readonly mcpAppResourceUri?: string | null; | 40248 | readonly mcpAppResourceUri?: string | null; |
| | 40249 | readonly mcpAppUi?: V2ThreadTurnsListResponse__McpAppUi | null; |
| 31340 | readonly pluginId?: string | null; | 40250 | readonly pluginId?: string | null; |
| 31341 | readonly result?: V2ThreadStartResponse__McpToolCallResult | null; | 40251 | readonly readOnlyHint?: boolean | null; |
| | 40252 | readonly result?: V2ThreadTurnsListResponse__McpToolCallResult | null; |
| 31342 | readonly server: string; | 40253 | readonly server: string; |
| 31343 | readonly status: V2ThreadStartResponse__McpToolCallStatus; | 40254 | readonly status: V2ThreadTurnsListResponse__McpToolCallStatus; |
| 31344 | readonly tool: string; | 40255 | readonly tool: string; |
| 31345 | readonly type: "mcpToolCall"; | 40256 | readonly type: "mcpToolCall"; |
| 31346 | } | 40257 | } |
| 31347 | | { | 40258 | | { |
| 31348 | readonly arguments: Schema.Json; | 40259 | readonly arguments: Schema.Json; |
| 31349 | readonly contentItems?: ReadonlyArray<V2ThreadStartResponse__DynamicToolCallOutputContentItem> | null; | 40260 | readonly contentItems?: ReadonlyArray<V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem> | null; |
| 31350 | readonly durationMs?: number | null; | 40261 | readonly durationMs?: number | null; |
| 31351 | readonly id: string; | 40262 | readonly id: string; |
| 31352 | readonly namespace?: string | null; | 40263 | readonly namespace?: string | null; |
| 31353 | readonly status: V2ThreadStartResponse__DynamicToolCallStatus; | 40264 | readonly status: V2ThreadTurnsListResponse__DynamicToolCallStatus; |
| 31354 | readonly success?: boolean | null; | 40265 | readonly success?: boolean | null; |
| 31355 | readonly tool: string; | 40266 | readonly tool: string; |
| 31356 | readonly type: "dynamicToolCall"; | 40267 | readonly type: "dynamicToolCall"; |
| 31357 | } | 40268 | } |
| 31358 | | { | 40269 | | { |
| 31359 | readonly agentsStates: { readonly [x: string]: V2ThreadStartResponse__CollabAgentState }; | 40270 | readonly agentsStates: { readonly [x: string]: V2ThreadTurnsListResponse__CollabAgentState }; |
| 31360 | readonly id: string; | 40271 | readonly id: string; |
| 31361 | readonly model?: string | null; | 40272 | readonly model?: string | null; |
| 31362 | readonly prompt?: string | null; | 40273 | readonly prompt?: string | null; |
| 31363 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; | 40274 | readonly reasoningEffort?: V2ThreadTurnsListResponse__ReasoningEffort | null; |
| 31364 | readonly receiverThreadIds: ReadonlyArray<string>; | 40275 | readonly receiverThreadIds: ReadonlyArray<string>; |
| 31365 | readonly senderThreadId: string; | 40276 | readonly senderThreadId: string; |
| 31366 | readonly status: V2ThreadStartResponse__CollabAgentToolCallStatus; | 40277 | readonly status: V2ThreadTurnsListResponse__CollabAgentToolCallStatus; |
| 31367 | readonly tool: V2ThreadStartResponse__CollabAgentTool; | 40278 | readonly tool: V2ThreadTurnsListResponse__CollabAgentTool; |
| 31368 | readonly type: "collabAgentToolCall"; | 40279 | readonly type: "collabAgentToolCall"; |
| 31369 | } | 40280 | } |
| 31370 | | { | 40281 | | { |
| 31371 | readonly agentPath: string; | 40282 | readonly agentPath: string; |
| 31372 | readonly agentThreadId: string; | 40283 | readonly agentThreadId: string; |
| 31373 | readonly id: string; | 40284 | readonly id: string; |
| 31374 | readonly kind: V2ThreadStartResponse__SubAgentActivityKind; | 40285 | readonly kind: V2ThreadTurnsListResponse__SubAgentActivityKind; |
| 31375 | readonly type: "subAgentActivity"; | 40286 | readonly type: "subAgentActivity"; |
| 31376 | } | 40287 | } |
| 31377 | | { | 40288 | | { |
| 31378 | readonly action?: V2ThreadStartResponse__WebSearchAction | null; | 40289 | readonly action?: V2ThreadTurnsListResponse__WebSearchAction | null; |
| 31379 | readonly id: string; | 40290 | readonly id: string; |
| 31380 | readonly query: string; | 40291 | readonly query: string; |
| 31381 | readonly results?: ReadonlyArray<Schema.Json> | null; | 40292 | readonly results?: ReadonlyArray<Schema.Json> | null; |
| ... | @@ -31383,55 +40294,65 @@ export type V2ThreadStartResponse__ThreadItem = | ... | @@ -31383,55 +40294,65 @@ export type V2ThreadStartResponse__ThreadItem = |
| 31383 | } | 40294 | } |
| 31384 | | { | 40295 | | { |
| 31385 | readonly id: string; | 40296 | readonly id: string; |
| 31386 | readonly path: V2ThreadStartResponse__LegacyAppPathString; | 40297 | readonly path: V2ThreadTurnsListResponse__LegacyAppPathString; |
| 31387 | readonly type: "imageView"; | 40298 | readonly type: "imageView"; |
| 31388 | } | 40299 | } |
| 31389 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 40300 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 31390 | | { | 40301 | | { |
| | 40302 | readonly failure?: V2ThreadTurnsListResponse__ImageGenerationFailure | null; |
| 31391 | readonly id: string; | 40303 | readonly id: string; |
| 31392 | readonly result: string; | 40304 | readonly result: string; |
| 31393 | readonly revisedPrompt?: string | null; | 40305 | readonly revisedPrompt?: string | null; |
| 31394 | readonly savedPath?: V2ThreadStartResponse__AbsolutePathBuf | null; | 40306 | readonly savedPath?: V2ThreadTurnsListResponse__AbsolutePathBuf | null; |
| 31395 | readonly status: string; | 40307 | readonly status: string; |
| | 40308 | readonly transparentBackground?: boolean | null; |
| 31396 | readonly type: "imageGeneration"; | 40309 | readonly type: "imageGeneration"; |
| 31397 | } | 40310 | } |
| 31398 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 40311 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| 31399 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } | 40312 | | { readonly id: string; readonly review: string; readonly type: "exitedReviewMode" } |
| 31400 | | { readonly id: string; readonly type: "contextCompaction" }; | 40313 | | { readonly id: string; readonly type: "contextCompaction" }; |
| 31401 | export const V2ThreadStartResponse__ThreadItem = Schema.Union( | 40314 | export const V2ThreadTurnsListResponse__ThreadItem = Schema.Union( |
| 31402 | [ | 40315 | [ |
| 31403 | Schema.Struct({ | 40316 | Schema.Struct({ |
| 31404 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40317 | clientId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31405 | content: Schema.Array(V2ThreadStartResponse__UserInput), | 40318 | content: Schema.Array(V2ThreadTurnsListResponse__UserInput), |
| 31406 | id: Schema.String, | 40319 | id: Schema.String, |
| 31407 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), | 40320 | type: Schema.Literal("userMessage").annotate({ title: "UserMessageThreadItemType" }), |
| 31408 | }).annotate({ title: "UserMessageThreadItem" }), | 40321 | }).annotate({ title: "UserMessageThreadItem" }), |
| 31409 | Schema.Struct({ | 40322 | Schema.Struct({ |
| 31410 | fragments: Schema.Array(V2ThreadStartResponse__HookPromptFragment), | 40323 | fragments: Schema.Array(V2ThreadTurnsListResponse__HookPromptFragment), |
| 31411 | id: Schema.String, | 40324 | id: Schema.String, |
| 31412 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 40325 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 31413 | }).annotate({ title: "HookPromptThreadItem" }), | 40326 | }).annotate({ title: "HookPromptThreadItem" }), |
| 31414 | Schema.Struct({ | 40327 | Schema.Struct({ |
| | 40328 | delivery: Schema.optionalKey( |
| | 40329 | Schema.Union([V2ThreadTurnsListResponse__AgentMessageDelivery, Schema.Null]), |
| | 40330 | ), |
| 31415 | id: Schema.String, | 40331 | id: Schema.String, |
| 31416 | memoryCitation: Schema.optionalKey( | 40332 | memoryCitation: Schema.optionalKey( |
| 31417 | Schema.Union([V2ThreadStartResponse__MemoryCitation, Schema.Null]), | 40333 | Schema.Union([V2ThreadTurnsListResponse__MemoryCitation, Schema.Null]), |
| | 40334 | ), |
| | 40335 | phase: Schema.optionalKey( |
| | 40336 | Schema.Union([V2ThreadTurnsListResponse__MessagePhase, Schema.Null]), |
| 31418 | ), | 40337 | ), |
| 31419 | phase: Schema.optionalKey(Schema.Union([V2ThreadStartResponse__MessagePhase, Schema.Null])), | | |
| 31420 | text: Schema.String, | | |
| 31421 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 31422 | questions: Schema.optionalKey( | 40338 | questions: Schema.optionalKey( |
| 31423 | Schema.Union([ | 40339 | Schema.Union([ |
| 31424 | Schema.Array( | 40340 | Schema.Array(V2ThreadTurnsListResponse__AsyncUserInputQuestion), |
| 31425 | Schema.Struct({ | | |
| 31426 | title: Schema.String, | | |
| 31427 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 31428 | }), | | |
| 31429 | ), | | |
| 31430 | Schema.Null, | 40341 | Schema.Null, |
| 31431 | ]), | 40342 | ]), |
| 31432 | ), | 40343 | ), |
| | 40344 | text: Schema.String, |
| 31433 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 40345 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 31434 | }).annotate({ title: "AgentMessageThreadItem" }), | 40346 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 40347 | Schema.Struct({ |
| | 40348 | id: Schema.String, |
| | 40349 | name: Schema.String, |
| | 40350 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 40351 | output: V2ThreadTurnsListResponse__FunctionCallOutputBody, |
| | 40352 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 40353 | title: "FunctionCallOutputThreadItemType", |
| | 40354 | }), |
| | 40355 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 31435 | Schema.Struct({ | 40356 | Schema.Struct({ |
| 31436 | id: Schema.String, | 40357 | id: Schema.String, |
| 31437 | text: Schema.String, | 40358 | text: Schema.String, |
| ... | @@ -31457,13 +40378,13 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31457,13 +40378,13 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31457 | ]), | 40378 | ]), |
| 31458 | ), | 40379 | ), |
| 31459 | command: Schema.String.annotate({ description: "The command to be executed." }), | 40380 | command: Schema.String.annotate({ description: "The command to be executed." }), |
| 31460 | commandActions: Schema.Array(V2ThreadStartResponse__CommandAction).annotate({ | 40381 | commandActions: Schema.Array(V2ThreadTurnsListResponse__CommandAction).annotate({ |
| 31461 | description: | 40382 | description: |
| 31462 | "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.", | 40383 | "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.", |
| 31463 | }), | 40384 | }), |
| 31464 | cwd: Schema.suspend( | 40385 | cwd: Schema.suspend( |
| 31465 | (): Schema.Codec<V2ThreadStartResponse__LegacyAppPathString> => | 40386 | (): Schema.Codec<V2ThreadTurnsListResponse__LegacyAppPathString> => |
| 31466 | V2ThreadStartResponse__LegacyAppPathString, | 40387 | V2ThreadTurnsListResponse__LegacyAppPathString, |
| 31467 | ).annotate({ description: "The command's working directory." }), | 40388 | ).annotate({ description: "The command's working directory." }), |
| 31468 | durationMs: Schema.optionalKey( | 40389 | durationMs: Schema.optionalKey( |
| 31469 | Schema.Union([ | 40390 | Schema.Union([ |
| ... | @@ -31484,6 +40405,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31484,6 +40405,15 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31484 | ]), | 40405 | ]), |
| 31485 | ), | 40406 | ), |
| 31486 | id: Schema.String, | 40407 | id: Schema.String, |
| | 40408 | pluginId: Schema.optionalKey( |
| | 40409 | Schema.Union([ |
| | 40410 | Schema.String.annotate({ |
| | 40411 | description: |
| | 40412 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 40413 | }), |
| | 40414 | Schema.Null, |
| | 40415 | ]), |
| | 40416 | ), |
| 31487 | processId: Schema.optionalKey( | 40417 | processId: Schema.optionalKey( |
| 31488 | Schema.Union([ | 40418 | Schema.Union([ |
| 31489 | Schema.String.annotate({ | 40419 | Schema.String.annotate({ |
| ... | @@ -31492,26 +40422,35 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31492,26 +40422,35 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31492 | Schema.Null, | 40422 | Schema.Null, |
| 31493 | ]), | 40423 | ]), |
| 31494 | ), | 40424 | ), |
| | 40425 | scriptPath: Schema.optionalKey( |
| | 40426 | Schema.Union([ |
| | 40427 | Schema.String.annotate({ |
| | 40428 | description: |
| | 40429 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 40430 | }), |
| | 40431 | Schema.Null, |
| | 40432 | ]), |
| | 40433 | ), |
| 31495 | source: Schema.optionalKey( | 40434 | source: Schema.optionalKey( |
| 31496 | Schema.suspend( | 40435 | Schema.suspend( |
| 31497 | (): Schema.Codec<V2ThreadStartResponse__CommandExecutionSource> => | 40436 | (): Schema.Codec<V2ThreadTurnsListResponse__CommandExecutionSource> => |
| 31498 | V2ThreadStartResponse__CommandExecutionSource, | 40437 | V2ThreadTurnsListResponse__CommandExecutionSource, |
| 31499 | ).annotate({ default: "agent" }), | 40438 | ).annotate({ default: "agent" }), |
| 31500 | ), | 40439 | ), |
| 31501 | status: V2ThreadStartResponse__CommandExecutionStatus, | 40440 | status: V2ThreadTurnsListResponse__CommandExecutionStatus, |
| 31502 | type: Schema.Literal("commandExecution").annotate({ | 40441 | type: Schema.Literal("commandExecution").annotate({ |
| 31503 | title: "CommandExecutionThreadItemType", | 40442 | title: "CommandExecutionThreadItemType", |
| 31504 | }), | 40443 | }), |
| 31505 | }).annotate({ title: "CommandExecutionThreadItem" }), | 40444 | }).annotate({ title: "CommandExecutionThreadItem" }), |
| 31506 | Schema.Struct({ | 40445 | Schema.Struct({ |
| 31507 | changes: Schema.Array(V2ThreadStartResponse__FileUpdateChange), | 40446 | changes: Schema.Array(V2ThreadTurnsListResponse__FileUpdateChange), |
| 31508 | id: Schema.String, | 40447 | id: Schema.String, |
| 31509 | status: V2ThreadStartResponse__PatchApplyStatus, | 40448 | status: V2ThreadTurnsListResponse__PatchApplyStatus, |
| 31510 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), | 40449 | type: Schema.Literal("fileChange").annotate({ title: "FileChangeThreadItemType" }), |
| 31511 | }).annotate({ title: "FileChangeThreadItem" }), | 40450 | }).annotate({ title: "FileChangeThreadItem" }), |
| 31512 | Schema.Struct({ | 40451 | Schema.Struct({ |
| 31513 | appContext: Schema.optionalKey( | 40452 | appContext: Schema.optionalKey( |
| 31514 | Schema.Union([V2ThreadStartResponse__McpToolCallAppContext, Schema.Null]), | 40453 | Schema.Union([V2ThreadTurnsListResponse__McpToolCallAppContext, Schema.Null]), |
| 31515 | ), | 40454 | ), |
| 31516 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 40455 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 31517 | durationMs: Schema.optionalKey( | 40456 | durationMs: Schema.optionalKey( |
| ... | @@ -31524,23 +40463,31 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31524,23 +40463,31 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31524 | ]), | 40463 | ]), |
| 31525 | ), | 40464 | ), |
| 31526 | error: Schema.optionalKey( | 40465 | error: Schema.optionalKey( |
| 31527 | Schema.Union([V2ThreadStartResponse__McpToolCallError, Schema.Null]), | 40466 | Schema.Union([V2ThreadTurnsListResponse__McpToolCallError, Schema.Null]), |
| 31528 | ), | 40467 | ), |
| 31529 | id: Schema.String, | 40468 | id: Schema.String, |
| 31530 | mcpAppResourceUri: Schema.optionalKey( | 40469 | mcpAppResourceUri: Schema.optionalKey( |
| 31531 | Schema.Union([ | 40470 | Schema.Union([ |
| 31532 | Schema.String.annotate({ | 40471 | Schema.String.annotate({ |
| 31533 | description: "Deprecated: use `appContext.resourceUri` instead.", | 40472 | description: |
| | 40473 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 31534 | }), | 40474 | }), |
| 31535 | Schema.Null, | 40475 | Schema.Null, |
| 31536 | ]), | 40476 | ]), |
| 31537 | ), | 40477 | ), |
| | 40478 | mcpAppUi: Schema.optionalKey( |
| | 40479 | Schema.Union([V2ThreadTurnsListResponse__McpAppUi, Schema.Null]).annotate({ |
| | 40480 | description: |
| | 40481 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 40482 | }), |
| | 40483 | ), |
| 31538 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40484 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 40485 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 31539 | result: Schema.optionalKey( | 40486 | result: Schema.optionalKey( |
| 31540 | Schema.Union([V2ThreadStartResponse__McpToolCallResult, Schema.Null]), | 40487 | Schema.Union([V2ThreadTurnsListResponse__McpToolCallResult, Schema.Null]), |
| 31541 | ), | 40488 | ), |
| 31542 | server: Schema.String, | 40489 | server: Schema.String, |
| 31543 | status: V2ThreadStartResponse__McpToolCallStatus, | 40490 | status: V2ThreadTurnsListResponse__McpToolCallStatus, |
| 31544 | tool: Schema.String, | 40491 | tool: Schema.String, |
| 31545 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), | 40492 | type: Schema.Literal("mcpToolCall").annotate({ title: "McpToolCallThreadItemType" }), |
| 31546 | }).annotate({ title: "McpToolCallThreadItem" }), | 40493 | }).annotate({ title: "McpToolCallThreadItem" }), |
| ... | @@ -31548,7 +40495,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31548,7 +40495,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31548 | arguments: Schema.Json.annotate({ expected: "JSON value" }), | 40495 | arguments: Schema.Json.annotate({ expected: "JSON value" }), |
| 31549 | contentItems: Schema.optionalKey( | 40496 | contentItems: Schema.optionalKey( |
| 31550 | Schema.Union([ | 40497 | Schema.Union([ |
| 31551 | Schema.Array(V2ThreadStartResponse__DynamicToolCallOutputContentItem), | 40498 | Schema.Array(V2ThreadTurnsListResponse__DynamicToolCallOutputContentItem), |
| 31552 | Schema.Null, | 40499 | Schema.Null, |
| 31553 | ]), | 40500 | ]), |
| 31554 | ), | 40501 | ), |
| ... | @@ -31563,15 +40510,16 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31563,15 +40510,16 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31563 | ), | 40510 | ), |
| 31564 | id: Schema.String, | 40511 | id: Schema.String, |
| 31565 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40512 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31566 | status: V2ThreadStartResponse__DynamicToolCallStatus, | 40513 | status: V2ThreadTurnsListResponse__DynamicToolCallStatus, |
| 31567 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 40514 | success: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 31568 | tool: Schema.String, | 40515 | tool: Schema.String, |
| 31569 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), | 40516 | type: Schema.Literal("dynamicToolCall").annotate({ title: "DynamicToolCallThreadItemType" }), |
| 31570 | }).annotate({ title: "DynamicToolCallThreadItem" }), | 40517 | }).annotate({ title: "DynamicToolCallThreadItem" }), |
| 31571 | Schema.Struct({ | 40518 | Schema.Struct({ |
| 31572 | agentsStates: Schema.Record(Schema.String, V2ThreadStartResponse__CollabAgentState).annotate({ | 40519 | agentsStates: Schema.Record( |
| 31573 | description: "Last known status of the target agents, when available.", | 40520 | Schema.String, |
| 31574 | }), | 40521 | V2ThreadTurnsListResponse__CollabAgentState, |
| | 40522 | ).annotate({ description: "Last known status of the target agents, when available." }), |
| 31575 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), | 40523 | id: Schema.String.annotate({ description: "Unique identifier for this collab tool call." }), |
| 31576 | model: Schema.optionalKey( | 40524 | model: Schema.optionalKey( |
| 31577 | Schema.Union([ | 40525 | Schema.Union([ |
| ... | @@ -31590,7 +40538,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31590,7 +40538,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31590 | ]), | 40538 | ]), |
| 31591 | ), | 40539 | ), |
| 31592 | reasoningEffort: Schema.optionalKey( | 40540 | reasoningEffort: Schema.optionalKey( |
| 31593 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({ | 40541 | Schema.Union([V2ThreadTurnsListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| 31594 | description: "Reasoning effort requested for the spawned agent, when applicable.", | 40542 | description: "Reasoning effort requested for the spawned agent, when applicable.", |
| 31595 | }), | 40543 | }), |
| 31596 | ), | 40544 | ), |
| ... | @@ -31602,12 +40550,12 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31602,12 +40550,12 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31602 | description: "Thread ID of the agent issuing the collab request.", | 40550 | description: "Thread ID of the agent issuing the collab request.", |
| 31603 | }), | 40551 | }), |
| 31604 | status: Schema.suspend( | 40552 | status: Schema.suspend( |
| 31605 | (): Schema.Codec<V2ThreadStartResponse__CollabAgentToolCallStatus> => | 40553 | (): Schema.Codec<V2ThreadTurnsListResponse__CollabAgentToolCallStatus> => |
| 31606 | V2ThreadStartResponse__CollabAgentToolCallStatus, | 40554 | V2ThreadTurnsListResponse__CollabAgentToolCallStatus, |
| 31607 | ).annotate({ description: "Current status of the collab tool call." }), | 40555 | ).annotate({ description: "Current status of the collab tool call." }), |
| 31608 | tool: Schema.suspend( | 40556 | tool: Schema.suspend( |
| 31609 | (): Schema.Codec<V2ThreadStartResponse__CollabAgentTool> => | 40557 | (): Schema.Codec<V2ThreadTurnsListResponse__CollabAgentTool> => |
| 31610 | V2ThreadStartResponse__CollabAgentTool, | 40558 | V2ThreadTurnsListResponse__CollabAgentTool, |
| 31611 | ).annotate({ description: "Name of the collab tool that was invoked." }), | 40559 | ).annotate({ description: "Name of the collab tool that was invoked." }), |
| 31612 | type: Schema.Literal("collabAgentToolCall").annotate({ | 40560 | type: Schema.Literal("collabAgentToolCall").annotate({ |
| 31613 | title: "CollabAgentToolCallThreadItemType", | 40561 | title: "CollabAgentToolCallThreadItemType", |
| ... | @@ -31617,14 +40565,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31617,14 +40565,14 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31617 | agentPath: Schema.String, | 40565 | agentPath: Schema.String, |
| 31618 | agentThreadId: Schema.String, | 40566 | agentThreadId: Schema.String, |
| 31619 | id: Schema.String, | 40567 | id: Schema.String, |
| 31620 | kind: V2ThreadStartResponse__SubAgentActivityKind, | 40568 | kind: V2ThreadTurnsListResponse__SubAgentActivityKind, |
| 31621 | type: Schema.Literal("subAgentActivity").annotate({ | 40569 | type: Schema.Literal("subAgentActivity").annotate({ |
| 31622 | title: "SubAgentActivityThreadItemType", | 40570 | title: "SubAgentActivityThreadItemType", |
| 31623 | }), | 40571 | }), |
| 31624 | }).annotate({ title: "SubAgentActivityThreadItem" }), | 40572 | }).annotate({ title: "SubAgentActivityThreadItem" }), |
| 31625 | Schema.Struct({ | 40573 | Schema.Struct({ |
| 31626 | action: Schema.optionalKey( | 40574 | action: Schema.optionalKey( |
| 31627 | Schema.Union([V2ThreadStartResponse__WebSearchAction, Schema.Null]), | 40575 | Schema.Union([V2ThreadTurnsListResponse__WebSearchAction, Schema.Null]), |
| 31628 | ), | 40576 | ), |
| 31629 | id: Schema.String, | 40577 | id: Schema.String, |
| 31630 | query: Schema.String, | 40578 | query: Schema.String, |
| ... | @@ -31641,7 +40589,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31641,7 +40589,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31641 | }).annotate({ title: "WebSearchThreadItem" }), | 40589 | }).annotate({ title: "WebSearchThreadItem" }), |
| 31642 | Schema.Struct({ | 40590 | Schema.Struct({ |
| 31643 | id: Schema.String, | 40591 | id: Schema.String, |
| 31644 | path: V2ThreadStartResponse__LegacyAppPathString, | 40592 | path: V2ThreadTurnsListResponse__LegacyAppPathString, |
| 31645 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), | 40593 | type: Schema.Literal("imageView").annotate({ title: "ImageViewThreadItemType" }), |
| 31646 | }).annotate({ title: "ImageViewThreadItem" }), | 40594 | }).annotate({ title: "ImageViewThreadItem" }), |
| 31647 | Schema.Struct({ | 40595 | Schema.Struct({ |
| ... | @@ -31659,13 +40607,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31659,13 +40607,17 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31659 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 40607 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 31660 | }), | 40608 | }), |
| 31661 | Schema.Struct({ | 40609 | Schema.Struct({ |
| | 40610 | failure: Schema.optionalKey( |
| | 40611 | Schema.Union([V2ThreadTurnsListResponse__ImageGenerationFailure, Schema.Null]), |
| | 40612 | ), |
| 31662 | id: Schema.String, | 40613 | id: Schema.String, |
| 31663 | result: Schema.String, | 40614 | result: Schema.String, |
| 31664 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40615 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 31665 | savedPath: Schema.optionalKey( | 40616 | savedPath: Schema.optionalKey( |
| 31666 | Schema.Union([V2ThreadStartResponse__AbsolutePathBuf, Schema.Null]), | 40617 | Schema.Union([V2ThreadTurnsListResponse__AbsolutePathBuf, Schema.Null]), |
| 31667 | ), | 40618 | ), |
| 31668 | status: Schema.String, | 40619 | status: Schema.String, |
| | 40620 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 31669 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 40621 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 31670 | }).annotate({ title: "ImageGenerationThreadItem" }), | 40622 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 31671 | Schema.Struct({ | 40623 | Schema.Struct({ |
| ... | @@ -31690,7 +40642,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( | ... | @@ -31690,7 +40642,7 @@ export const V2ThreadStartResponse__ThreadItem = Schema.Union( |
| 31690 | }).annotate({ title: "ContextCompactionThreadItem" }), | 40642 | }).annotate({ title: "ContextCompactionThreadItem" }), |
| 31691 | ], | 40643 | ], |
| 31692 | { mode: "oneOf" }, | 40644 | { mode: "oneOf" }, |
| 31693 | ).annotate({ identifier: "V2ThreadStartResponse__ThreadItem" }); | 40645 | ).annotate({ identifier: "V2ThreadTurnsListResponse__ThreadItem" }); |
| 31694 | | 40646 | |
| 31695 | export type V2ThreadUnarchiveResponse__ThreadItem = | 40647 | export type V2ThreadUnarchiveResponse__ThreadItem = |
| 31696 | | { | 40648 | | { |
| ... | @@ -31705,17 +40657,21 @@ export type V2ThreadUnarchiveResponse__ThreadItem = | ... | @@ -31705,17 +40657,21 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 31705 | readonly type: "hookPrompt"; | 40657 | readonly type: "hookPrompt"; |
| 31706 | } | 40658 | } |
| 31707 | | { | 40659 | | { |
| | 40660 | readonly delivery?: V2ThreadUnarchiveResponse__AgentMessageDelivery | null; |
| 31708 | readonly id: string; | 40661 | readonly id: string; |
| 31709 | readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null; | 40662 | readonly memoryCitation?: V2ThreadUnarchiveResponse__MemoryCitation | null; |
| 31710 | readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null; | 40663 | readonly phase?: V2ThreadUnarchiveResponse__MessagePhase | null; |
| | 40664 | readonly questions?: ReadonlyArray<V2ThreadUnarchiveResponse__AsyncUserInputQuestion> | null; |
| 31711 | readonly text: string; | 40665 | readonly text: string; |
| 31712 | readonly delivery?: "async" | null; | | |
| 31713 | readonly questions?: ReadonlyArray<{ | | |
| 31714 | readonly title: string; | | |
| 31715 | readonly options?: ReadonlyArray<string> | null; | | |
| 31716 | }> | null; | | |
| 31717 | readonly type: "agentMessage"; | 40666 | readonly type: "agentMessage"; |
| 31718 | } | 40667 | } |
| | 40668 | | { |
| | 40669 | readonly id: string; |
| | 40670 | readonly name: string; |
| | 40671 | readonly namespace?: string | null; |
| | 40672 | readonly output: V2ThreadUnarchiveResponse__FunctionCallOutputBody; |
| | 40673 | readonly type: "functionCallOutput"; |
| | 40674 | } |
| 31719 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 40675 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 31720 | | { | 40676 | | { |
| 31721 | readonly content?: ReadonlyArray<string>; | 40677 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -31731,7 +40687,9 @@ export type V2ThreadUnarchiveResponse__ThreadItem = | ... | @@ -31731,7 +40687,9 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 31731 | readonly durationMs?: number | null; | 40687 | readonly durationMs?: number | null; |
| 31732 | readonly exitCode?: number | null; | 40688 | readonly exitCode?: number | null; |
| 31733 | readonly id: string; | 40689 | readonly id: string; |
| | 40690 | readonly pluginId?: string | null; |
| 31734 | readonly processId?: string | null; | 40691 | readonly processId?: string | null; |
| | 40692 | readonly scriptPath?: string | null; |
| 31735 | readonly source?: V2ThreadUnarchiveResponse__CommandExecutionSource; | 40693 | readonly source?: V2ThreadUnarchiveResponse__CommandExecutionSource; |
| 31736 | readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus; | 40694 | readonly status: V2ThreadUnarchiveResponse__CommandExecutionStatus; |
| 31737 | readonly type: "commandExecution"; | 40695 | readonly type: "commandExecution"; |
| ... | @@ -31749,7 +40707,9 @@ export type V2ThreadUnarchiveResponse__ThreadItem = | ... | @@ -31749,7 +40707,9 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 31749 | readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null; | 40707 | readonly error?: V2ThreadUnarchiveResponse__McpToolCallError | null; |
| 31750 | readonly id: string; | 40708 | readonly id: string; |
| 31751 | readonly mcpAppResourceUri?: string | null; | 40709 | readonly mcpAppResourceUri?: string | null; |
| | 40710 | readonly mcpAppUi?: V2ThreadUnarchiveResponse__McpAppUi | null; |
| 31752 | readonly pluginId?: string | null; | 40711 | readonly pluginId?: string | null; |
| | 40712 | readonly readOnlyHint?: boolean | null; |
| 31753 | readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null; | 40713 | readonly result?: V2ThreadUnarchiveResponse__McpToolCallResult | null; |
| 31754 | readonly server: string; | 40714 | readonly server: string; |
| 31755 | readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus; | 40715 | readonly status: V2ThreadUnarchiveResponse__McpToolCallStatus; |
| ... | @@ -31800,11 +40760,13 @@ export type V2ThreadUnarchiveResponse__ThreadItem = | ... | @@ -31800,11 +40760,13 @@ export type V2ThreadUnarchiveResponse__ThreadItem = |
| 31800 | } | 40760 | } |
| 31801 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 40761 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 31802 | | { | 40762 | | { |
| | 40763 | readonly failure?: V2ThreadUnarchiveResponse__ImageGenerationFailure | null; |
| 31803 | readonly id: string; | 40764 | readonly id: string; |
| 31804 | readonly result: string; | 40765 | readonly result: string; |
| 31805 | readonly revisedPrompt?: string | null; | 40766 | readonly revisedPrompt?: string | null; |
| 31806 | readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null; | 40767 | readonly savedPath?: V2ThreadUnarchiveResponse__AbsolutePathBuf | null; |
| 31807 | readonly status: string; | 40768 | readonly status: string; |
| | 40769 | readonly transparentBackground?: boolean | null; |
| 31808 | readonly type: "imageGeneration"; | 40770 | readonly type: "imageGeneration"; |
| 31809 | } | 40771 | } |
| 31810 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 40772 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| ... | @@ -31824,6 +40786,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -31824,6 +40786,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 31824 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 40786 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 31825 | }).annotate({ title: "HookPromptThreadItem" }), | 40787 | }).annotate({ title: "HookPromptThreadItem" }), |
| 31826 | Schema.Struct({ | 40788 | Schema.Struct({ |
| | 40789 | delivery: Schema.optionalKey( |
| | 40790 | Schema.Union([V2ThreadUnarchiveResponse__AgentMessageDelivery, Schema.Null]), |
| | 40791 | ), |
| 31827 | id: Schema.String, | 40792 | id: Schema.String, |
| 31828 | memoryCitation: Schema.optionalKey( | 40793 | memoryCitation: Schema.optionalKey( |
| 31829 | Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]), | 40794 | Schema.Union([V2ThreadUnarchiveResponse__MemoryCitation, Schema.Null]), |
| ... | @@ -31831,21 +40796,24 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -31831,21 +40796,24 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 31831 | phase: Schema.optionalKey( | 40796 | phase: Schema.optionalKey( |
| 31832 | Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]), | 40797 | Schema.Union([V2ThreadUnarchiveResponse__MessagePhase, Schema.Null]), |
| 31833 | ), | 40798 | ), |
| 31834 | text: Schema.String, | | |
| 31835 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 31836 | questions: Schema.optionalKey( | 40799 | questions: Schema.optionalKey( |
| 31837 | Schema.Union([ | 40800 | Schema.Union([ |
| 31838 | Schema.Array( | 40801 | Schema.Array(V2ThreadUnarchiveResponse__AsyncUserInputQuestion), |
| 31839 | Schema.Struct({ | | |
| 31840 | title: Schema.String, | | |
| 31841 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 31842 | }), | | |
| 31843 | ), | | |
| 31844 | Schema.Null, | 40802 | Schema.Null, |
| 31845 | ]), | 40803 | ]), |
| 31846 | ), | 40804 | ), |
| | 40805 | text: Schema.String, |
| 31847 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 40806 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 31848 | }).annotate({ title: "AgentMessageThreadItem" }), | 40807 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 40808 | Schema.Struct({ |
| | 40809 | id: Schema.String, |
| | 40810 | name: Schema.String, |
| | 40811 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 40812 | output: V2ThreadUnarchiveResponse__FunctionCallOutputBody, |
| | 40813 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 40814 | title: "FunctionCallOutputThreadItemType", |
| | 40815 | }), |
| | 40816 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 31849 | Schema.Struct({ | 40817 | Schema.Struct({ |
| 31850 | id: Schema.String, | 40818 | id: Schema.String, |
| 31851 | text: Schema.String, | 40819 | text: Schema.String, |
| ... | @@ -31898,6 +40866,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -31898,6 +40866,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 31898 | ]), | 40866 | ]), |
| 31899 | ), | 40867 | ), |
| 31900 | id: Schema.String, | 40868 | id: Schema.String, |
| | 40869 | pluginId: Schema.optionalKey( |
| | 40870 | Schema.Union([ |
| | 40871 | Schema.String.annotate({ |
| | 40872 | description: |
| | 40873 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 40874 | }), |
| | 40875 | Schema.Null, |
| | 40876 | ]), |
| | 40877 | ), |
| 31901 | processId: Schema.optionalKey( | 40878 | processId: Schema.optionalKey( |
| 31902 | Schema.Union([ | 40879 | Schema.Union([ |
| 31903 | Schema.String.annotate({ | 40880 | Schema.String.annotate({ |
| ... | @@ -31906,6 +40883,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -31906,6 +40883,15 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 31906 | Schema.Null, | 40883 | Schema.Null, |
| 31907 | ]), | 40884 | ]), |
| 31908 | ), | 40885 | ), |
| | 40886 | scriptPath: Schema.optionalKey( |
| | 40887 | Schema.Union([ |
| | 40888 | Schema.String.annotate({ |
| | 40889 | description: |
| | 40890 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 40891 | }), |
| | 40892 | Schema.Null, |
| | 40893 | ]), |
| | 40894 | ), |
| 31909 | source: Schema.optionalKey( | 40895 | source: Schema.optionalKey( |
| 31910 | Schema.suspend( | 40896 | Schema.suspend( |
| 31911 | (): Schema.Codec<V2ThreadUnarchiveResponse__CommandExecutionSource> => | 40897 | (): Schema.Codec<V2ThreadUnarchiveResponse__CommandExecutionSource> => |
| ... | @@ -31944,12 +40930,20 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -31944,12 +40930,20 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 31944 | mcpAppResourceUri: Schema.optionalKey( | 40930 | mcpAppResourceUri: Schema.optionalKey( |
| 31945 | Schema.Union([ | 40931 | Schema.Union([ |
| 31946 | Schema.String.annotate({ | 40932 | Schema.String.annotate({ |
| 31947 | description: "Deprecated: use `appContext.resourceUri` instead.", | 40933 | description: |
| | 40934 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 31948 | }), | 40935 | }), |
| 31949 | Schema.Null, | 40936 | Schema.Null, |
| 31950 | ]), | 40937 | ]), |
| 31951 | ), | 40938 | ), |
| | 40939 | mcpAppUi: Schema.optionalKey( |
| | 40940 | Schema.Union([V2ThreadUnarchiveResponse__McpAppUi, Schema.Null]).annotate({ |
| | 40941 | description: |
| | 40942 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 40943 | }), |
| | 40944 | ), |
| 31952 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 40945 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 40946 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 31953 | result: Schema.optionalKey( | 40947 | result: Schema.optionalKey( |
| 31954 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]), | 40948 | Schema.Union([V2ThreadUnarchiveResponse__McpToolCallResult, Schema.Null]), |
| 31955 | ), | 40949 | ), |
| ... | @@ -32074,6 +41068,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -32074,6 +41068,9 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 32074 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 41068 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 32075 | }), | 41069 | }), |
| 32076 | Schema.Struct({ | 41070 | Schema.Struct({ |
| | 41071 | failure: Schema.optionalKey( |
| | 41072 | Schema.Union([V2ThreadUnarchiveResponse__ImageGenerationFailure, Schema.Null]), |
| | 41073 | ), |
| 32077 | id: Schema.String, | 41074 | id: Schema.String, |
| 32078 | result: Schema.String, | 41075 | result: Schema.String, |
| 32079 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 41076 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -32081,6 +41078,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( | ... | @@ -32081,6 +41078,7 @@ export const V2ThreadUnarchiveResponse__ThreadItem = Schema.Union( |
| 32081 | Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]), | 41078 | Schema.Union([V2ThreadUnarchiveResponse__AbsolutePathBuf, Schema.Null]), |
| 32082 | ), | 41079 | ), |
| 32083 | status: Schema.String, | 41080 | status: Schema.String, |
| | 41081 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 32084 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 41082 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 32085 | }).annotate({ title: "ImageGenerationThreadItem" }), | 41083 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 32086 | Schema.Struct({ | 41084 | Schema.Struct({ |
| ... | @@ -32120,17 +41118,21 @@ export type V2TurnCompletedNotification__ThreadItem = | ... | @@ -32120,17 +41118,21 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 32120 | readonly type: "hookPrompt"; | 41118 | readonly type: "hookPrompt"; |
| 32121 | } | 41119 | } |
| 32122 | | { | 41120 | | { |
| | 41121 | readonly delivery?: V2TurnCompletedNotification__AgentMessageDelivery | null; |
| 32123 | readonly id: string; | 41122 | readonly id: string; |
| 32124 | readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null; | 41123 | readonly memoryCitation?: V2TurnCompletedNotification__MemoryCitation | null; |
| 32125 | readonly phase?: V2TurnCompletedNotification__MessagePhase | null; | 41124 | readonly phase?: V2TurnCompletedNotification__MessagePhase | null; |
| | 41125 | readonly questions?: ReadonlyArray<V2TurnCompletedNotification__AsyncUserInputQuestion> | null; |
| 32126 | readonly text: string; | 41126 | readonly text: string; |
| 32127 | readonly delivery?: "async" | null; | | |
| 32128 | readonly questions?: ReadonlyArray<{ | | |
| 32129 | readonly title: string; | | |
| 32130 | readonly options?: ReadonlyArray<string> | null; | | |
| 32131 | }> | null; | | |
| 32132 | readonly type: "agentMessage"; | 41127 | readonly type: "agentMessage"; |
| 32133 | } | 41128 | } |
| | 41129 | | { |
| | 41130 | readonly id: string; |
| | 41131 | readonly name: string; |
| | 41132 | readonly namespace?: string | null; |
| | 41133 | readonly output: V2TurnCompletedNotification__FunctionCallOutputBody; |
| | 41134 | readonly type: "functionCallOutput"; |
| | 41135 | } |
| 32134 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 41136 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 32135 | | { | 41137 | | { |
| 32136 | readonly content?: ReadonlyArray<string>; | 41138 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -32146,7 +41148,9 @@ export type V2TurnCompletedNotification__ThreadItem = | ... | @@ -32146,7 +41148,9 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 32146 | readonly durationMs?: number | null; | 41148 | readonly durationMs?: number | null; |
| 32147 | readonly exitCode?: number | null; | 41149 | readonly exitCode?: number | null; |
| 32148 | readonly id: string; | 41150 | readonly id: string; |
| | 41151 | readonly pluginId?: string | null; |
| 32149 | readonly processId?: string | null; | 41152 | readonly processId?: string | null; |
| | 41153 | readonly scriptPath?: string | null; |
| 32150 | readonly source?: V2TurnCompletedNotification__CommandExecutionSource; | 41154 | readonly source?: V2TurnCompletedNotification__CommandExecutionSource; |
| 32151 | readonly status: V2TurnCompletedNotification__CommandExecutionStatus; | 41155 | readonly status: V2TurnCompletedNotification__CommandExecutionStatus; |
| 32152 | readonly type: "commandExecution"; | 41156 | readonly type: "commandExecution"; |
| ... | @@ -32164,7 +41168,9 @@ export type V2TurnCompletedNotification__ThreadItem = | ... | @@ -32164,7 +41168,9 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 32164 | readonly error?: V2TurnCompletedNotification__McpToolCallError | null; | 41168 | readonly error?: V2TurnCompletedNotification__McpToolCallError | null; |
| 32165 | readonly id: string; | 41169 | readonly id: string; |
| 32166 | readonly mcpAppResourceUri?: string | null; | 41170 | readonly mcpAppResourceUri?: string | null; |
| | 41171 | readonly mcpAppUi?: V2TurnCompletedNotification__McpAppUi | null; |
| 32167 | readonly pluginId?: string | null; | 41172 | readonly pluginId?: string | null; |
| | 41173 | readonly readOnlyHint?: boolean | null; |
| 32168 | readonly result?: V2TurnCompletedNotification__McpToolCallResult | null; | 41174 | readonly result?: V2TurnCompletedNotification__McpToolCallResult | null; |
| 32169 | readonly server: string; | 41175 | readonly server: string; |
| 32170 | readonly status: V2TurnCompletedNotification__McpToolCallStatus; | 41176 | readonly status: V2TurnCompletedNotification__McpToolCallStatus; |
| ... | @@ -32217,11 +41223,13 @@ export type V2TurnCompletedNotification__ThreadItem = | ... | @@ -32217,11 +41223,13 @@ export type V2TurnCompletedNotification__ThreadItem = |
| 32217 | } | 41223 | } |
| 32218 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 41224 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 32219 | | { | 41225 | | { |
| | 41226 | readonly failure?: V2TurnCompletedNotification__ImageGenerationFailure | null; |
| 32220 | readonly id: string; | 41227 | readonly id: string; |
| 32221 | readonly result: string; | 41228 | readonly result: string; |
| 32222 | readonly revisedPrompt?: string | null; | 41229 | readonly revisedPrompt?: string | null; |
| 32223 | readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null; | 41230 | readonly savedPath?: V2TurnCompletedNotification__AbsolutePathBuf | null; |
| 32224 | readonly status: string; | 41231 | readonly status: string; |
| | 41232 | readonly transparentBackground?: boolean | null; |
| 32225 | readonly type: "imageGeneration"; | 41233 | readonly type: "imageGeneration"; |
| 32226 | } | 41234 | } |
| 32227 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 41235 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| ... | @@ -32241,6 +41249,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -32241,6 +41249,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 32241 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 41249 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 32242 | }).annotate({ title: "HookPromptThreadItem" }), | 41250 | }).annotate({ title: "HookPromptThreadItem" }), |
| 32243 | Schema.Struct({ | 41251 | Schema.Struct({ |
| | 41252 | delivery: Schema.optionalKey( |
| | 41253 | Schema.Union([V2TurnCompletedNotification__AgentMessageDelivery, Schema.Null]), |
| | 41254 | ), |
| 32244 | id: Schema.String, | 41255 | id: Schema.String, |
| 32245 | memoryCitation: Schema.optionalKey( | 41256 | memoryCitation: Schema.optionalKey( |
| 32246 | Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]), | 41257 | Schema.Union([V2TurnCompletedNotification__MemoryCitation, Schema.Null]), |
| ... | @@ -32248,21 +41259,24 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -32248,21 +41259,24 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 32248 | phase: Schema.optionalKey( | 41259 | phase: Schema.optionalKey( |
| 32249 | Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]), | 41260 | Schema.Union([V2TurnCompletedNotification__MessagePhase, Schema.Null]), |
| 32250 | ), | 41261 | ), |
| 32251 | text: Schema.String, | | |
| 32252 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 32253 | questions: Schema.optionalKey( | 41262 | questions: Schema.optionalKey( |
| 32254 | Schema.Union([ | 41263 | Schema.Union([ |
| 32255 | Schema.Array( | 41264 | Schema.Array(V2TurnCompletedNotification__AsyncUserInputQuestion), |
| 32256 | Schema.Struct({ | | |
| 32257 | title: Schema.String, | | |
| 32258 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 32259 | }), | | |
| 32260 | ), | | |
| 32261 | Schema.Null, | 41265 | Schema.Null, |
| 32262 | ]), | 41266 | ]), |
| 32263 | ), | 41267 | ), |
| | 41268 | text: Schema.String, |
| 32264 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 41269 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 32265 | }).annotate({ title: "AgentMessageThreadItem" }), | 41270 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 41271 | Schema.Struct({ |
| | 41272 | id: Schema.String, |
| | 41273 | name: Schema.String, |
| | 41274 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 41275 | output: V2TurnCompletedNotification__FunctionCallOutputBody, |
| | 41276 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 41277 | title: "FunctionCallOutputThreadItemType", |
| | 41278 | }), |
| | 41279 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 32266 | Schema.Struct({ | 41280 | Schema.Struct({ |
| 32267 | id: Schema.String, | 41281 | id: Schema.String, |
| 32268 | text: Schema.String, | 41282 | text: Schema.String, |
| ... | @@ -32315,6 +41329,15 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -32315,6 +41329,15 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 32315 | ]), | 41329 | ]), |
| 32316 | ), | 41330 | ), |
| 32317 | id: Schema.String, | 41331 | id: Schema.String, |
| | 41332 | pluginId: Schema.optionalKey( |
| | 41333 | Schema.Union([ |
| | 41334 | Schema.String.annotate({ |
| | 41335 | description: |
| | 41336 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 41337 | }), |
| | 41338 | Schema.Null, |
| | 41339 | ]), |
| | 41340 | ), |
| 32318 | processId: Schema.optionalKey( | 41341 | processId: Schema.optionalKey( |
| 32319 | Schema.Union([ | 41342 | Schema.Union([ |
| 32320 | Schema.String.annotate({ | 41343 | Schema.String.annotate({ |
| ... | @@ -32323,6 +41346,15 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -32323,6 +41346,15 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 32323 | Schema.Null, | 41346 | Schema.Null, |
| 32324 | ]), | 41347 | ]), |
| 32325 | ), | 41348 | ), |
| | 41349 | scriptPath: Schema.optionalKey( |
| | 41350 | Schema.Union([ |
| | 41351 | Schema.String.annotate({ |
| | 41352 | description: |
| | 41353 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 41354 | }), |
| | 41355 | Schema.Null, |
| | 41356 | ]), |
| | 41357 | ), |
| 32326 | source: Schema.optionalKey( | 41358 | source: Schema.optionalKey( |
| 32327 | Schema.suspend( | 41359 | Schema.suspend( |
| 32328 | (): Schema.Codec<V2TurnCompletedNotification__CommandExecutionSource> => | 41360 | (): Schema.Codec<V2TurnCompletedNotification__CommandExecutionSource> => |
| ... | @@ -32361,12 +41393,20 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -32361,12 +41393,20 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 32361 | mcpAppResourceUri: Schema.optionalKey( | 41393 | mcpAppResourceUri: Schema.optionalKey( |
| 32362 | Schema.Union([ | 41394 | Schema.Union([ |
| 32363 | Schema.String.annotate({ | 41395 | Schema.String.annotate({ |
| 32364 | description: "Deprecated: use `appContext.resourceUri` instead.", | 41396 | description: |
| | 41397 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 32365 | }), | 41398 | }), |
| 32366 | Schema.Null, | 41399 | Schema.Null, |
| 32367 | ]), | 41400 | ]), |
| 32368 | ), | 41401 | ), |
| | 41402 | mcpAppUi: Schema.optionalKey( |
| | 41403 | Schema.Union([V2TurnCompletedNotification__McpAppUi, Schema.Null]).annotate({ |
| | 41404 | description: |
| | 41405 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 41406 | }), |
| | 41407 | ), |
| 32369 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 41408 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 41409 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 32370 | result: Schema.optionalKey( | 41410 | result: Schema.optionalKey( |
| 32371 | Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]), | 41411 | Schema.Union([V2TurnCompletedNotification__McpToolCallResult, Schema.Null]), |
| 32372 | ), | 41412 | ), |
| ... | @@ -32491,6 +41531,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -32491,6 +41531,9 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 32491 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 41531 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 32492 | }), | 41532 | }), |
| 32493 | Schema.Struct({ | 41533 | Schema.Struct({ |
| | 41534 | failure: Schema.optionalKey( |
| | 41535 | Schema.Union([V2TurnCompletedNotification__ImageGenerationFailure, Schema.Null]), |
| | 41536 | ), |
| 32494 | id: Schema.String, | 41537 | id: Schema.String, |
| 32495 | result: Schema.String, | 41538 | result: Schema.String, |
| 32496 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 41539 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -32498,6 +41541,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( | ... | @@ -32498,6 +41541,7 @@ export const V2TurnCompletedNotification__ThreadItem = Schema.Union( |
| 32498 | Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]), | 41541 | Schema.Union([V2TurnCompletedNotification__AbsolutePathBuf, Schema.Null]), |
| 32499 | ), | 41542 | ), |
| 32500 | status: Schema.String, | 41543 | status: Schema.String, |
| | 41544 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 32501 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 41545 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 32502 | }).annotate({ title: "ImageGenerationThreadItem" }), | 41546 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 32503 | Schema.Struct({ | 41547 | Schema.Struct({ |
| ... | @@ -32537,17 +41581,21 @@ export type V2TurnStartedNotification__ThreadItem = | ... | @@ -32537,17 +41581,21 @@ export type V2TurnStartedNotification__ThreadItem = |
| 32537 | readonly type: "hookPrompt"; | 41581 | readonly type: "hookPrompt"; |
| 32538 | } | 41582 | } |
| 32539 | | { | 41583 | | { |
| | 41584 | readonly delivery?: V2TurnStartedNotification__AgentMessageDelivery | null; |
| 32540 | readonly id: string; | 41585 | readonly id: string; |
| 32541 | readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null; | 41586 | readonly memoryCitation?: V2TurnStartedNotification__MemoryCitation | null; |
| 32542 | readonly phase?: V2TurnStartedNotification__MessagePhase | null; | 41587 | readonly phase?: V2TurnStartedNotification__MessagePhase | null; |
| | 41588 | readonly questions?: ReadonlyArray<V2TurnStartedNotification__AsyncUserInputQuestion> | null; |
| 32543 | readonly text: string; | 41589 | readonly text: string; |
| 32544 | readonly delivery?: "async" | null; | | |
| 32545 | readonly questions?: ReadonlyArray<{ | | |
| 32546 | readonly title: string; | | |
| 32547 | readonly options?: ReadonlyArray<string> | null; | | |
| 32548 | }> | null; | | |
| 32549 | readonly type: "agentMessage"; | 41590 | readonly type: "agentMessage"; |
| 32550 | } | 41591 | } |
| | 41592 | | { |
| | 41593 | readonly id: string; |
| | 41594 | readonly name: string; |
| | 41595 | readonly namespace?: string | null; |
| | 41596 | readonly output: V2TurnStartedNotification__FunctionCallOutputBody; |
| | 41597 | readonly type: "functionCallOutput"; |
| | 41598 | } |
| 32551 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 41599 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 32552 | | { | 41600 | | { |
| 32553 | readonly content?: ReadonlyArray<string>; | 41601 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -32563,7 +41611,9 @@ export type V2TurnStartedNotification__ThreadItem = | ... | @@ -32563,7 +41611,9 @@ export type V2TurnStartedNotification__ThreadItem = |
| 32563 | readonly durationMs?: number | null; | 41611 | readonly durationMs?: number | null; |
| 32564 | readonly exitCode?: number | null; | 41612 | readonly exitCode?: number | null; |
| 32565 | readonly id: string; | 41613 | readonly id: string; |
| | 41614 | readonly pluginId?: string | null; |
| 32566 | readonly processId?: string | null; | 41615 | readonly processId?: string | null; |
| | 41616 | readonly scriptPath?: string | null; |
| 32567 | readonly source?: V2TurnStartedNotification__CommandExecutionSource; | 41617 | readonly source?: V2TurnStartedNotification__CommandExecutionSource; |
| 32568 | readonly status: V2TurnStartedNotification__CommandExecutionStatus; | 41618 | readonly status: V2TurnStartedNotification__CommandExecutionStatus; |
| 32569 | readonly type: "commandExecution"; | 41619 | readonly type: "commandExecution"; |
| ... | @@ -32581,7 +41631,9 @@ export type V2TurnStartedNotification__ThreadItem = | ... | @@ -32581,7 +41631,9 @@ export type V2TurnStartedNotification__ThreadItem = |
| 32581 | readonly error?: V2TurnStartedNotification__McpToolCallError | null; | 41631 | readonly error?: V2TurnStartedNotification__McpToolCallError | null; |
| 32582 | readonly id: string; | 41632 | readonly id: string; |
| 32583 | readonly mcpAppResourceUri?: string | null; | 41633 | readonly mcpAppResourceUri?: string | null; |
| | 41634 | readonly mcpAppUi?: V2TurnStartedNotification__McpAppUi | null; |
| 32584 | readonly pluginId?: string | null; | 41635 | readonly pluginId?: string | null; |
| | 41636 | readonly readOnlyHint?: boolean | null; |
| 32585 | readonly result?: V2TurnStartedNotification__McpToolCallResult | null; | 41637 | readonly result?: V2TurnStartedNotification__McpToolCallResult | null; |
| 32586 | readonly server: string; | 41638 | readonly server: string; |
| 32587 | readonly status: V2TurnStartedNotification__McpToolCallStatus; | 41639 | readonly status: V2TurnStartedNotification__McpToolCallStatus; |
| ... | @@ -32632,11 +41684,13 @@ export type V2TurnStartedNotification__ThreadItem = | ... | @@ -32632,11 +41684,13 @@ export type V2TurnStartedNotification__ThreadItem = |
| 32632 | } | 41684 | } |
| 32633 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 41685 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 32634 | | { | 41686 | | { |
| | 41687 | readonly failure?: V2TurnStartedNotification__ImageGenerationFailure | null; |
| 32635 | readonly id: string; | 41688 | readonly id: string; |
| 32636 | readonly result: string; | 41689 | readonly result: string; |
| 32637 | readonly revisedPrompt?: string | null; | 41690 | readonly revisedPrompt?: string | null; |
| 32638 | readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null; | 41691 | readonly savedPath?: V2TurnStartedNotification__AbsolutePathBuf | null; |
| 32639 | readonly status: string; | 41692 | readonly status: string; |
| | 41693 | readonly transparentBackground?: boolean | null; |
| 32640 | readonly type: "imageGeneration"; | 41694 | readonly type: "imageGeneration"; |
| 32641 | } | 41695 | } |
| 32642 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 41696 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| ... | @@ -32656,6 +41710,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32656,6 +41710,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32656 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 41710 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 32657 | }).annotate({ title: "HookPromptThreadItem" }), | 41711 | }).annotate({ title: "HookPromptThreadItem" }), |
| 32658 | Schema.Struct({ | 41712 | Schema.Struct({ |
| | 41713 | delivery: Schema.optionalKey( |
| | 41714 | Schema.Union([V2TurnStartedNotification__AgentMessageDelivery, Schema.Null]), |
| | 41715 | ), |
| 32659 | id: Schema.String, | 41716 | id: Schema.String, |
| 32660 | memoryCitation: Schema.optionalKey( | 41717 | memoryCitation: Schema.optionalKey( |
| 32661 | Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]), | 41718 | Schema.Union([V2TurnStartedNotification__MemoryCitation, Schema.Null]), |
| ... | @@ -32663,21 +41720,24 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32663,21 +41720,24 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32663 | phase: Schema.optionalKey( | 41720 | phase: Schema.optionalKey( |
| 32664 | Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]), | 41721 | Schema.Union([V2TurnStartedNotification__MessagePhase, Schema.Null]), |
| 32665 | ), | 41722 | ), |
| 32666 | text: Schema.String, | | |
| 32667 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 32668 | questions: Schema.optionalKey( | 41723 | questions: Schema.optionalKey( |
| 32669 | Schema.Union([ | 41724 | Schema.Union([ |
| 32670 | Schema.Array( | 41725 | Schema.Array(V2TurnStartedNotification__AsyncUserInputQuestion), |
| 32671 | Schema.Struct({ | | |
| 32672 | title: Schema.String, | | |
| 32673 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 32674 | }), | | |
| 32675 | ), | | |
| 32676 | Schema.Null, | 41726 | Schema.Null, |
| 32677 | ]), | 41727 | ]), |
| 32678 | ), | 41728 | ), |
| | 41729 | text: Schema.String, |
| 32679 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 41730 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 32680 | }).annotate({ title: "AgentMessageThreadItem" }), | 41731 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 41732 | Schema.Struct({ |
| | 41733 | id: Schema.String, |
| | 41734 | name: Schema.String, |
| | 41735 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 41736 | output: V2TurnStartedNotification__FunctionCallOutputBody, |
| | 41737 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 41738 | title: "FunctionCallOutputThreadItemType", |
| | 41739 | }), |
| | 41740 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 32681 | Schema.Struct({ | 41741 | Schema.Struct({ |
| 32682 | id: Schema.String, | 41742 | id: Schema.String, |
| 32683 | text: Schema.String, | 41743 | text: Schema.String, |
| ... | @@ -32730,6 +41790,15 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32730,6 +41790,15 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32730 | ]), | 41790 | ]), |
| 32731 | ), | 41791 | ), |
| 32732 | id: Schema.String, | 41792 | id: Schema.String, |
| | 41793 | pluginId: Schema.optionalKey( |
| | 41794 | Schema.Union([ |
| | 41795 | Schema.String.annotate({ |
| | 41796 | description: |
| | 41797 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 41798 | }), |
| | 41799 | Schema.Null, |
| | 41800 | ]), |
| | 41801 | ), |
| 32733 | processId: Schema.optionalKey( | 41802 | processId: Schema.optionalKey( |
| 32734 | Schema.Union([ | 41803 | Schema.Union([ |
| 32735 | Schema.String.annotate({ | 41804 | Schema.String.annotate({ |
| ... | @@ -32738,6 +41807,15 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32738,6 +41807,15 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32738 | Schema.Null, | 41807 | Schema.Null, |
| 32739 | ]), | 41808 | ]), |
| 32740 | ), | 41809 | ), |
| | 41810 | scriptPath: Schema.optionalKey( |
| | 41811 | Schema.Union([ |
| | 41812 | Schema.String.annotate({ |
| | 41813 | description: |
| | 41814 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 41815 | }), |
| | 41816 | Schema.Null, |
| | 41817 | ]), |
| | 41818 | ), |
| 32741 | source: Schema.optionalKey( | 41819 | source: Schema.optionalKey( |
| 32742 | Schema.suspend( | 41820 | Schema.suspend( |
| 32743 | (): Schema.Codec<V2TurnStartedNotification__CommandExecutionSource> => | 41821 | (): Schema.Codec<V2TurnStartedNotification__CommandExecutionSource> => |
| ... | @@ -32776,12 +41854,20 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32776,12 +41854,20 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32776 | mcpAppResourceUri: Schema.optionalKey( | 41854 | mcpAppResourceUri: Schema.optionalKey( |
| 32777 | Schema.Union([ | 41855 | Schema.Union([ |
| 32778 | Schema.String.annotate({ | 41856 | Schema.String.annotate({ |
| 32779 | description: "Deprecated: use `appContext.resourceUri` instead.", | 41857 | description: |
| | 41858 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 32780 | }), | 41859 | }), |
| 32781 | Schema.Null, | 41860 | Schema.Null, |
| 32782 | ]), | 41861 | ]), |
| 32783 | ), | 41862 | ), |
| | 41863 | mcpAppUi: Schema.optionalKey( |
| | 41864 | Schema.Union([V2TurnStartedNotification__McpAppUi, Schema.Null]).annotate({ |
| | 41865 | description: |
| | 41866 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 41867 | }), |
| | 41868 | ), |
| 32784 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 41869 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 41870 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 32785 | result: Schema.optionalKey( | 41871 | result: Schema.optionalKey( |
| 32786 | Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]), | 41872 | Schema.Union([V2TurnStartedNotification__McpToolCallResult, Schema.Null]), |
| 32787 | ), | 41873 | ), |
| ... | @@ -32906,6 +41992,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32906,6 +41992,9 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32906 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 41992 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 32907 | }), | 41993 | }), |
| 32908 | Schema.Struct({ | 41994 | Schema.Struct({ |
| | 41995 | failure: Schema.optionalKey( |
| | 41996 | Schema.Union([V2TurnStartedNotification__ImageGenerationFailure, Schema.Null]), |
| | 41997 | ), |
| 32909 | id: Schema.String, | 41998 | id: Schema.String, |
| 32910 | result: Schema.String, | 41999 | result: Schema.String, |
| 32911 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 42000 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -32913,6 +42002,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32913,6 +42002,7 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32913 | Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]), | 42002 | Schema.Union([V2TurnStartedNotification__AbsolutePathBuf, Schema.Null]), |
| 32914 | ), | 42003 | ), |
| 32915 | status: Schema.String, | 42004 | status: Schema.String, |
| | 42005 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 32916 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 42006 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 32917 | }).annotate({ title: "ImageGenerationThreadItem" }), | 42007 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 32918 | Schema.Struct({ | 42008 | Schema.Struct({ |
| ... | @@ -32939,6 +42029,17 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( | ... | @@ -32939,6 +42029,17 @@ export const V2TurnStartedNotification__ThreadItem = Schema.Union( |
| 32939 | { mode: "oneOf" }, | 42029 | { mode: "oneOf" }, |
| 32940 | ).annotate({ identifier: "V2TurnStartedNotification__ThreadItem" }); | 42030 | ).annotate({ identifier: "V2TurnStartedNotification__ThreadItem" }); |
| 32941 | | 42031 | |
| | 42032 | export type V2TurnStartParams__TurnToolOutput = { |
| | 42033 | readonly name: string; |
| | 42034 | readonly namespace?: string | null; |
| | 42035 | readonly output: V2TurnStartParams__FunctionCallOutputBody; |
| | 42036 | }; |
| | 42037 | export const V2TurnStartParams__TurnToolOutput = Schema.Struct({ |
| | 42038 | name: Schema.String, |
| | 42039 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 42040 | output: V2TurnStartParams__FunctionCallOutputBody, |
| | 42041 | }).annotate({ identifier: "V2TurnStartParams__TurnToolOutput" }); |
| | 42042 | |
| 32942 | export type V2TurnStartResponse__ThreadItem = | 42043 | export type V2TurnStartResponse__ThreadItem = |
| 32943 | | { | 42044 | | { |
| 32944 | readonly clientId?: string | null; | 42045 | readonly clientId?: string | null; |
| ... | @@ -32952,17 +42053,21 @@ export type V2TurnStartResponse__ThreadItem = | ... | @@ -32952,17 +42053,21 @@ export type V2TurnStartResponse__ThreadItem = |
| 32952 | readonly type: "hookPrompt"; | 42053 | readonly type: "hookPrompt"; |
| 32953 | } | 42054 | } |
| 32954 | | { | 42055 | | { |
| | 42056 | readonly delivery?: V2TurnStartResponse__AgentMessageDelivery | null; |
| 32955 | readonly id: string; | 42057 | readonly id: string; |
| 32956 | readonly memoryCitation?: V2TurnStartResponse__MemoryCitation | null; | 42058 | readonly memoryCitation?: V2TurnStartResponse__MemoryCitation | null; |
| 32957 | readonly phase?: V2TurnStartResponse__MessagePhase | null; | 42059 | readonly phase?: V2TurnStartResponse__MessagePhase | null; |
| | 42060 | readonly questions?: ReadonlyArray<V2TurnStartResponse__AsyncUserInputQuestion> | null; |
| 32958 | readonly text: string; | 42061 | readonly text: string; |
| 32959 | readonly delivery?: "async" | null; | | |
| 32960 | readonly questions?: ReadonlyArray<{ | | |
| 32961 | readonly title: string; | | |
| 32962 | readonly options?: ReadonlyArray<string> | null; | | |
| 32963 | }> | null; | | |
| 32964 | readonly type: "agentMessage"; | 42062 | readonly type: "agentMessage"; |
| 32965 | } | 42063 | } |
| | 42064 | | { |
| | 42065 | readonly id: string; |
| | 42066 | readonly name: string; |
| | 42067 | readonly namespace?: string | null; |
| | 42068 | readonly output: V2TurnStartResponse__FunctionCallOutputBody; |
| | 42069 | readonly type: "functionCallOutput"; |
| | 42070 | } |
| 32966 | | { readonly id: string; readonly text: string; readonly type: "plan" } | 42071 | | { readonly id: string; readonly text: string; readonly type: "plan" } |
| 32967 | | { | 42072 | | { |
| 32968 | readonly content?: ReadonlyArray<string>; | 42073 | readonly content?: ReadonlyArray<string>; |
| ... | @@ -32978,7 +42083,9 @@ export type V2TurnStartResponse__ThreadItem = | ... | @@ -32978,7 +42083,9 @@ export type V2TurnStartResponse__ThreadItem = |
| 32978 | readonly durationMs?: number | null; | 42083 | readonly durationMs?: number | null; |
| 32979 | readonly exitCode?: number | null; | 42084 | readonly exitCode?: number | null; |
| 32980 | readonly id: string; | 42085 | readonly id: string; |
| | 42086 | readonly pluginId?: string | null; |
| 32981 | readonly processId?: string | null; | 42087 | readonly processId?: string | null; |
| | 42088 | readonly scriptPath?: string | null; |
| 32982 | readonly source?: V2TurnStartResponse__CommandExecutionSource; | 42089 | readonly source?: V2TurnStartResponse__CommandExecutionSource; |
| 32983 | readonly status: V2TurnStartResponse__CommandExecutionStatus; | 42090 | readonly status: V2TurnStartResponse__CommandExecutionStatus; |
| 32984 | readonly type: "commandExecution"; | 42091 | readonly type: "commandExecution"; |
| ... | @@ -32996,7 +42103,9 @@ export type V2TurnStartResponse__ThreadItem = | ... | @@ -32996,7 +42103,9 @@ export type V2TurnStartResponse__ThreadItem = |
| 32996 | readonly error?: V2TurnStartResponse__McpToolCallError | null; | 42103 | readonly error?: V2TurnStartResponse__McpToolCallError | null; |
| 32997 | readonly id: string; | 42104 | readonly id: string; |
| 32998 | readonly mcpAppResourceUri?: string | null; | 42105 | readonly mcpAppResourceUri?: string | null; |
| | 42106 | readonly mcpAppUi?: V2TurnStartResponse__McpAppUi | null; |
| 32999 | readonly pluginId?: string | null; | 42107 | readonly pluginId?: string | null; |
| | 42108 | readonly readOnlyHint?: boolean | null; |
| 33000 | readonly result?: V2TurnStartResponse__McpToolCallResult | null; | 42109 | readonly result?: V2TurnStartResponse__McpToolCallResult | null; |
| 33001 | readonly server: string; | 42110 | readonly server: string; |
| 33002 | readonly status: V2TurnStartResponse__McpToolCallStatus; | 42111 | readonly status: V2TurnStartResponse__McpToolCallStatus; |
| ... | @@ -33047,11 +42156,13 @@ export type V2TurnStartResponse__ThreadItem = | ... | @@ -33047,11 +42156,13 @@ export type V2TurnStartResponse__ThreadItem = |
| 33047 | } | 42156 | } |
| 33048 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } | 42157 | | { readonly durationMs: number; readonly id: string; readonly type: "sleep" } |
| 33049 | | { | 42158 | | { |
| | 42159 | readonly failure?: V2TurnStartResponse__ImageGenerationFailure | null; |
| 33050 | readonly id: string; | 42160 | readonly id: string; |
| 33051 | readonly result: string; | 42161 | readonly result: string; |
| 33052 | readonly revisedPrompt?: string | null; | 42162 | readonly revisedPrompt?: string | null; |
| 33053 | readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null; | 42163 | readonly savedPath?: V2TurnStartResponse__AbsolutePathBuf | null; |
| 33054 | readonly status: string; | 42164 | readonly status: string; |
| | 42165 | readonly transparentBackground?: boolean | null; |
| 33055 | readonly type: "imageGeneration"; | 42166 | readonly type: "imageGeneration"; |
| 33056 | } | 42167 | } |
| 33057 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } | 42168 | | { readonly id: string; readonly review: string; readonly type: "enteredReviewMode" } |
| ... | @@ -33071,26 +42182,29 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -33071,26 +42182,29 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 33071 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), | 42182 | type: Schema.Literal("hookPrompt").annotate({ title: "HookPromptThreadItemType" }), |
| 33072 | }).annotate({ title: "HookPromptThreadItem" }), | 42183 | }).annotate({ title: "HookPromptThreadItem" }), |
| 33073 | Schema.Struct({ | 42184 | Schema.Struct({ |
| | 42185 | delivery: Schema.optionalKey( |
| | 42186 | Schema.Union([V2TurnStartResponse__AgentMessageDelivery, Schema.Null]), |
| | 42187 | ), |
| 33074 | id: Schema.String, | 42188 | id: Schema.String, |
| 33075 | memoryCitation: Schema.optionalKey( | 42189 | memoryCitation: Schema.optionalKey( |
| 33076 | Schema.Union([V2TurnStartResponse__MemoryCitation, Schema.Null]), | 42190 | Schema.Union([V2TurnStartResponse__MemoryCitation, Schema.Null]), |
| 33077 | ), | 42191 | ), |
| 33078 | phase: Schema.optionalKey(Schema.Union([V2TurnStartResponse__MessagePhase, Schema.Null])), | 42192 | phase: Schema.optionalKey(Schema.Union([V2TurnStartResponse__MessagePhase, Schema.Null])), |
| 33079 | text: Schema.String, | | |
| 33080 | delivery: Schema.optionalKey(Schema.Union([Schema.Literal("async"), Schema.Null])), | | |
| 33081 | questions: Schema.optionalKey( | 42193 | questions: Schema.optionalKey( |
| 33082 | Schema.Union([ | 42194 | Schema.Union([Schema.Array(V2TurnStartResponse__AsyncUserInputQuestion), Schema.Null]), |
| 33083 | Schema.Array( | | |
| 33084 | Schema.Struct({ | | |
| 33085 | title: Schema.String, | | |
| 33086 | options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | | |
| 33087 | }), | | |
| 33088 | ), | | |
| 33089 | Schema.Null, | | |
| 33090 | ]), | | |
| 33091 | ), | 42195 | ), |
| | 42196 | text: Schema.String, |
| 33092 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), | 42197 | type: Schema.Literal("agentMessage").annotate({ title: "AgentMessageThreadItemType" }), |
| 33093 | }).annotate({ title: "AgentMessageThreadItem" }), | 42198 | }).annotate({ title: "AgentMessageThreadItem" }), |
| | 42199 | Schema.Struct({ |
| | 42200 | id: Schema.String, |
| | 42201 | name: Schema.String, |
| | 42202 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 42203 | output: V2TurnStartResponse__FunctionCallOutputBody, |
| | 42204 | type: Schema.Literal("functionCallOutput").annotate({ |
| | 42205 | title: "FunctionCallOutputThreadItemType", |
| | 42206 | }), |
| | 42207 | }).annotate({ title: "FunctionCallOutputThreadItem" }), |
| 33094 | Schema.Struct({ | 42208 | Schema.Struct({ |
| 33095 | id: Schema.String, | 42209 | id: Schema.String, |
| 33096 | text: Schema.String, | 42210 | text: Schema.String, |
| ... | @@ -33143,6 +42257,15 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -33143,6 +42257,15 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 33143 | ]), | 42257 | ]), |
| 33144 | ), | 42258 | ), |
| 33145 | id: Schema.String, | 42259 | id: Schema.String, |
| | 42260 | pluginId: Schema.optionalKey( |
| | 42261 | Schema.Union([ |
| | 42262 | Schema.String.annotate({ |
| | 42263 | description: |
| | 42264 | "Trusted first-party plugin id when this command resolves to one plugin script.", |
| | 42265 | }), |
| | 42266 | Schema.Null, |
| | 42267 | ]), |
| | 42268 | ), |
| 33146 | processId: Schema.optionalKey( | 42269 | processId: Schema.optionalKey( |
| 33147 | Schema.Union([ | 42270 | Schema.Union([ |
| 33148 | Schema.String.annotate({ | 42271 | Schema.String.annotate({ |
| ... | @@ -33151,6 +42274,15 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -33151,6 +42274,15 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 33151 | Schema.Null, | 42274 | Schema.Null, |
| 33152 | ]), | 42275 | ]), |
| 33153 | ), | 42276 | ), |
| | 42277 | scriptPath: Schema.optionalKey( |
| | 42278 | Schema.Union([ |
| | 42279 | Schema.String.annotate({ |
| | 42280 | description: |
| | 42281 | "Safe plugin-relative path when this command resolves to one plugin script.", |
| | 42282 | }), |
| | 42283 | Schema.Null, |
| | 42284 | ]), |
| | 42285 | ), |
| 33154 | source: Schema.optionalKey( | 42286 | source: Schema.optionalKey( |
| 33155 | Schema.suspend( | 42287 | Schema.suspend( |
| 33156 | (): Schema.Codec<V2TurnStartResponse__CommandExecutionSource> => | 42288 | (): Schema.Codec<V2TurnStartResponse__CommandExecutionSource> => |
| ... | @@ -33187,12 +42319,20 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -33187,12 +42319,20 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 33187 | mcpAppResourceUri: Schema.optionalKey( | 42319 | mcpAppResourceUri: Schema.optionalKey( |
| 33188 | Schema.Union([ | 42320 | Schema.Union([ |
| 33189 | Schema.String.annotate({ | 42321 | Schema.String.annotate({ |
| 33190 | description: "Deprecated: use `appContext.resourceUri` instead.", | 42322 | description: |
| | 42323 | "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 33191 | }), | 42324 | }), |
| 33192 | Schema.Null, | 42325 | Schema.Null, |
| 33193 | ]), | 42326 | ]), |
| 33194 | ), | 42327 | ), |
| | 42328 | mcpAppUi: Schema.optionalKey( |
| | 42329 | Schema.Union([V2TurnStartResponse__McpAppUi, Schema.Null]).annotate({ |
| | 42330 | description: |
| | 42331 | "Presentation captured from the invoked descriptor; absent in older history.", |
| | 42332 | }), |
| | 42333 | ), |
| 33195 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 42334 | pluginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 42335 | readOnlyHint: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 33196 | result: Schema.optionalKey( | 42336 | result: Schema.optionalKey( |
| 33197 | Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]), | 42337 | Schema.Union([V2TurnStartResponse__McpToolCallResult, Schema.Null]), |
| 33198 | ), | 42338 | ), |
| ... | @@ -33314,6 +42454,9 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -33314,6 +42454,9 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 33314 | description: "Display item emitted by the interruptible `clock.sleep` tool.", | 42454 | description: "Display item emitted by the interruptible `clock.sleep` tool.", |
| 33315 | }), | 42455 | }), |
| 33316 | Schema.Struct({ | 42456 | Schema.Struct({ |
| | 42457 | failure: Schema.optionalKey( |
| | 42458 | Schema.Union([V2TurnStartResponse__ImageGenerationFailure, Schema.Null]), |
| | 42459 | ), |
| 33317 | id: Schema.String, | 42460 | id: Schema.String, |
| 33318 | result: Schema.String, | 42461 | result: Schema.String, |
| 33319 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 42462 | revisedPrompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -33321,6 +42464,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -33321,6 +42464,7 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 33321 | Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]), | 42464 | Schema.Union([V2TurnStartResponse__AbsolutePathBuf, Schema.Null]), |
| 33322 | ), | 42465 | ), |
| 33323 | status: Schema.String, | 42466 | status: Schema.String, |
| | 42467 | transparentBackground: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 33324 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), | 42468 | type: Schema.Literal("imageGeneration").annotate({ title: "ImageGenerationThreadItemType" }), |
| 33325 | }).annotate({ title: "ImageGenerationThreadItem" }), | 42469 | }).annotate({ title: "ImageGenerationThreadItem" }), |
| 33326 | Schema.Struct({ | 42470 | Schema.Struct({ |
| ... | @@ -33347,6 +42491,122 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( | ... | @@ -33347,6 +42491,122 @@ export const V2TurnStartResponse__ThreadItem = Schema.Union( |
| 33347 | { mode: "oneOf" }, | 42491 | { mode: "oneOf" }, |
| 33348 | ).annotate({ identifier: "V2TurnStartResponse__ThreadItem" }); | 42492 | ).annotate({ identifier: "V2TurnStartResponse__ThreadItem" }); |
| 33349 | | 42493 | |
| | 42494 | export type ClientRequest__TurnStartParams = { |
| | 42495 | readonly approvalPolicy?: ClientRequest__AskForApproval | null; |
| | 42496 | readonly approvalsReviewer?: ClientRequest__ApprovalsReviewer | null; |
| | 42497 | readonly clientUserMessageId?: string | null; |
| | 42498 | readonly cwd?: string | null; |
| | 42499 | readonly disabledPluginIds?: ReadonlyArray<string> | null; |
| | 42500 | readonly effort?: ClientRequest__ReasoningEffort | null; |
| | 42501 | readonly input: ReadonlyArray<ClientRequest__UserInput>; |
| | 42502 | readonly model?: string | null; |
| | 42503 | readonly outputSchema?: Schema.Json; |
| | 42504 | readonly personality?: ClientRequest__Personality | null; |
| | 42505 | readonly sandboxPolicy?: ClientRequest__SandboxPolicy | null; |
| | 42506 | readonly serviceTier?: string | null; |
| | 42507 | readonly serviceTierForTurn?: string | null; |
| | 42508 | readonly summary?: ClientRequest__ReasoningSummary | null; |
| | 42509 | readonly threadId: string; |
| | 42510 | readonly toolOutput?: ClientRequest__TurnToolOutput | null; |
| | 42511 | readonly turnTrigger?: string | null; |
| | 42512 | }; |
| | 42513 | export const ClientRequest__TurnStartParams = Schema.Struct({ |
| | 42514 | approvalPolicy: Schema.optionalKey( |
| | 42515 | Schema.Union([ClientRequest__AskForApproval, Schema.Null]).annotate({ |
| | 42516 | description: "Override the approval policy for this turn and subsequent turns.", |
| | 42517 | }), |
| | 42518 | ), |
| | 42519 | approvalsReviewer: Schema.optionalKey( |
| | 42520 | Schema.Union([ClientRequest__ApprovalsReviewer, Schema.Null]).annotate({ |
| | 42521 | description: |
| | 42522 | "Override where approval requests are routed for review on this turn and subsequent turns.", |
| | 42523 | }), |
| | 42524 | ), |
| | 42525 | clientUserMessageId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 42526 | cwd: Schema.optionalKey( |
| | 42527 | Schema.Union([ |
| | 42528 | Schema.String.annotate({ |
| | 42529 | description: "Override the working directory for this turn and subsequent turns.", |
| | 42530 | }), |
| | 42531 | Schema.Null, |
| | 42532 | ]), |
| | 42533 | ), |
| | 42534 | disabledPluginIds: Schema.optionalKey( |
| | 42535 | Schema.Union([ |
| | 42536 | Schema.Array(Schema.String).annotate({ |
| | 42537 | description: |
| | 42538 | "Replace this thread's disabled plugin IDs. Omitted/null preserves the list; [] clears it.", |
| | 42539 | }), |
| | 42540 | Schema.Null, |
| | 42541 | ]), |
| | 42542 | ), |
| | 42543 | effort: Schema.optionalKey( |
| | 42544 | Schema.Union([ClientRequest__ReasoningEffort, Schema.Null]).annotate({ |
| | 42545 | description: "Override the reasoning effort for this turn and subsequent turns.", |
| | 42546 | }), |
| | 42547 | ), |
| | 42548 | input: Schema.Array(ClientRequest__UserInput), |
| | 42549 | model: Schema.optionalKey( |
| | 42550 | Schema.Union([ |
| | 42551 | Schema.String.annotate({ |
| | 42552 | description: "Override the model for this turn and subsequent turns.", |
| | 42553 | }), |
| | 42554 | Schema.Null, |
| | 42555 | ]), |
| | 42556 | ), |
| | 42557 | outputSchema: Schema.optionalKey( |
| | 42558 | Schema.Json.annotate({ |
| | 42559 | expected: "JSON value", |
| | 42560 | description: |
| | 42561 | "Optional JSON Schema used to constrain the final assistant message for this turn.", |
| | 42562 | }), |
| | 42563 | ), |
| | 42564 | personality: Schema.optionalKey( |
| | 42565 | Schema.Union([ClientRequest__Personality, Schema.Null]).annotate({ |
| | 42566 | description: |
| | 42567 | "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.", |
| | 42568 | }), |
| | 42569 | ), |
| | 42570 | sandboxPolicy: Schema.optionalKey( |
| | 42571 | Schema.Union([ClientRequest__SandboxPolicy, Schema.Null]).annotate({ |
| | 42572 | description: "Override the sandbox policy for this turn and subsequent turns.", |
| | 42573 | }), |
| | 42574 | ), |
| | 42575 | serviceTier: Schema.optionalKey( |
| | 42576 | Schema.Union([ |
| | 42577 | Schema.String.annotate({ |
| | 42578 | description: "Override the service tier for this turn and subsequent turns.", |
| | 42579 | }), |
| | 42580 | Schema.Null, |
| | 42581 | ]), |
| | 42582 | ), |
| | 42583 | serviceTierForTurn: Schema.optionalKey( |
| | 42584 | Schema.Union([ |
| | 42585 | Schema.String.annotate({ |
| | 42586 | description: |
| | 42587 | "Override the service tier only when this request starts a new turn. Use \"default\" for standard speed. Omitted or null inherits the thread's tier. Does not change the thread's tier or a turn being steered.", |
| | 42588 | }), |
| | 42589 | Schema.Null, |
| | 42590 | ]), |
| | 42591 | ), |
| | 42592 | summary: Schema.optionalKey( |
| | 42593 | Schema.Union([ClientRequest__ReasoningSummary, Schema.Null]).annotate({ |
| | 42594 | description: "Override the reasoning summary for this turn and subsequent turns.", |
| | 42595 | }), |
| | 42596 | ), |
| | 42597 | threadId: Schema.String, |
| | 42598 | toolOutput: Schema.optionalKey(Schema.Union([ClientRequest__TurnToolOutput, Schema.Null])), |
| | 42599 | turnTrigger: Schema.optionalKey( |
| | 42600 | Schema.Union([ |
| | 42601 | Schema.String.annotate({ |
| | 42602 | description: |
| | 42603 | "Optional source classification for the caller that starts this turn. Ignored when this request steers an already-active turn.", |
| | 42604 | }), |
| | 42605 | Schema.Null, |
| | 42606 | ]), |
| | 42607 | ), |
| | 42608 | }).annotate({ identifier: "ClientRequest__TurnStartParams" }); |
| | 42609 | |
| 33350 | export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = { | 42610 | export type CommandExecutionRequestApprovalParams__AdditionalFileSystemPermissions = { |
| 33351 | readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null; | 42611 | readonly entries?: ReadonlyArray<CommandExecutionRequestApprovalParams__FileSystemSandboxEntry> | null; |
| 33352 | readonly globScanMaxDepth?: number | null; | 42612 | readonly globScanMaxDepth?: number | null; |
| ... | @@ -33490,6 +42750,15 @@ export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions | ... | @@ -33490,6 +42750,15 @@ export const PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions |
| 33490 | ), | 42750 | ), |
| 33491 | }).annotate({ identifier: "PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions" }); | 42751 | }).annotate({ identifier: "PermissionsRequestApprovalResponse__AdditionalFileSystemPermissions" }); |
| 33492 | | 42752 | |
| | 42753 | export type ServerNotification__ThreadSettingsUpdatedNotification = { |
| | 42754 | readonly threadId: string; |
| | 42755 | readonly threadSettings: ServerNotification__ThreadSettings; |
| | 42756 | }; |
| | 42757 | export const ServerNotification__ThreadSettingsUpdatedNotification = Schema.Struct({ |
| | 42758 | threadId: Schema.String, |
| | 42759 | threadSettings: ServerNotification__ThreadSettings, |
| | 42760 | }).annotate({ identifier: "ServerNotification__ThreadSettingsUpdatedNotification" }); |
| | 42761 | |
| 33493 | export type ServerNotification__Turn = { | 42762 | export type ServerNotification__Turn = { |
| 33494 | readonly completedAt?: number | null; | 42763 | readonly completedAt?: number | null; |
| 33495 | readonly durationMs?: number | null; | 42764 | readonly durationMs?: number | null; |
| ... | @@ -33622,15 +42891,6 @@ export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct | ... | @@ -33622,15 +42891,6 @@ export const ServerNotification__AdditionalFileSystemPermissions = Schema.Struct |
| 33622 | ), | 42891 | ), |
| 33623 | }).annotate({ identifier: "ServerNotification__AdditionalFileSystemPermissions" }); | 42892 | }).annotate({ identifier: "ServerNotification__AdditionalFileSystemPermissions" }); |
| 33624 | | 42893 | |
| 33625 | export type ServerNotification__ThreadSettingsUpdatedNotification = { | | |
| 33626 | readonly threadId: string; | | |
| 33627 | readonly threadSettings: ServerNotification__ThreadSettings; | | |
| 33628 | }; | | |
| 33629 | export const ServerNotification__ThreadSettingsUpdatedNotification = Schema.Struct({ | | |
| 33630 | threadId: Schema.String, | | |
| 33631 | threadSettings: ServerNotification__ThreadSettings, | | |
| 33632 | }).annotate({ identifier: "ServerNotification__ThreadSettingsUpdatedNotification" }); | | |
| 33633 | | | |
| 33634 | export type ServerRequest__AdditionalFileSystemPermissions = { | 42894 | export type ServerRequest__AdditionalFileSystemPermissions = { |
| 33635 | readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null; | 42895 | readonly entries?: ReadonlyArray<ServerRequest__FileSystemSandboxEntry> | null; |
| 33636 | readonly globScanMaxDepth?: number | null; | 42896 | readonly globScanMaxDepth?: number | null; |
| ... | @@ -33681,6 +42941,230 @@ export const ServerRequest__McpElicitationEnumSchema = Schema.Union([ | ... | @@ -33681,6 +42941,230 @@ export const ServerRequest__McpElicitationEnumSchema = Schema.Union([ |
| 33681 | ServerRequest__McpElicitationLegacyTitledEnumSchema, | 42941 | ServerRequest__McpElicitationLegacyTitledEnumSchema, |
| 33682 | ]).annotate({ identifier: "ServerRequest__McpElicitationEnumSchema" }); | 42942 | ]).annotate({ identifier: "ServerRequest__McpElicitationEnumSchema" }); |
| 33683 | | 42943 | |
| | 42944 | export type V2ConfigReadResponse__Config = { |
| | 42945 | readonly analytics?: V2ConfigReadResponse__AnalyticsConfig | null; |
| | 42946 | readonly approval_policy?: V2ConfigReadResponse__AskForApproval | null; |
| | 42947 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; |
| | 42948 | readonly browser_use?: V2ConfigReadResponse__BrowserUseConfig | null; |
| | 42949 | readonly compact_prompt?: string | null; |
| | 42950 | readonly computer_use?: V2ConfigReadResponse__ComputerUseConfig | null; |
| | 42951 | readonly desktop?: { readonly [x: string]: Schema.Json } | null; |
| | 42952 | readonly developer_instructions?: string | null; |
| | 42953 | readonly forced_chatgpt_workspace_id?: V2ConfigReadResponse__ForcedChatgptWorkspaceIds | null; |
| | 42954 | readonly forced_login_method?: V2ConfigReadResponse__ForcedLoginMethod | null; |
| | 42955 | readonly instructions?: string | null; |
| | 42956 | readonly model?: string | null; |
| | 42957 | readonly model_auto_compact_token_limit?: number | null; |
| | 42958 | readonly model_auto_compact_token_limit_scope?: V2ConfigReadResponse__AutoCompactTokenLimitScope | null; |
| | 42959 | readonly model_context_window?: number | null; |
| | 42960 | readonly model_provider?: string | null; |
| | 42961 | readonly model_reasoning_effort?: V2ConfigReadResponse__ReasoningEffort | null; |
| | 42962 | readonly model_reasoning_summary?: V2ConfigReadResponse__ReasoningSummary | null; |
| | 42963 | readonly model_verbosity?: V2ConfigReadResponse__Verbosity | null; |
| | 42964 | readonly review_model?: string | null; |
| | 42965 | readonly sandbox_mode?: V2ConfigReadResponse__SandboxMode | null; |
| | 42966 | readonly sandbox_workspace_write?: V2ConfigReadResponse__SandboxWorkspaceWrite | null; |
| | 42967 | readonly service_tier?: string | null; |
| | 42968 | readonly tools?: V2ConfigReadResponse__ToolsV2 | null; |
| | 42969 | readonly web_search?: V2ConfigReadResponse__WebSearchMode | null; |
| | 42970 | } & { readonly [x: string]: Schema.Json }; |
| | 42971 | export const V2ConfigReadResponse__Config = Schema.StructWithRest( |
| | 42972 | Schema.Struct({ |
| | 42973 | analytics: Schema.optionalKey( |
| | 42974 | Schema.Union([V2ConfigReadResponse__AnalyticsConfig, Schema.Null]), |
| | 42975 | ), |
| | 42976 | approval_policy: Schema.optionalKey( |
| | 42977 | Schema.Union([V2ConfigReadResponse__AskForApproval, Schema.Null]), |
| | 42978 | ), |
| | 42979 | approvals_reviewer: Schema.optionalKey( |
| | 42980 | Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]).annotate({ |
| | 42981 | description: |
| | 42982 | "[UNSTABLE] Optional default for where approval requests are routed for review.", |
| | 42983 | }), |
| | 42984 | ), |
| | 42985 | browser_use: Schema.optionalKey( |
| | 42986 | Schema.Union([V2ConfigReadResponse__BrowserUseConfig, Schema.Null]), |
| | 42987 | ), |
| | 42988 | compact_prompt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 42989 | computer_use: Schema.optionalKey( |
| | 42990 | Schema.Union([V2ConfigReadResponse__ComputerUseConfig, Schema.Null]), |
| | 42991 | ), |
| | 42992 | desktop: Schema.optionalKey( |
| | 42993 | Schema.Union([ |
| | 42994 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })), |
| | 42995 | Schema.Null, |
| | 42996 | ]), |
| | 42997 | ), |
| | 42998 | developer_instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 42999 | forced_chatgpt_workspace_id: Schema.optionalKey( |
| | 43000 | Schema.Union([V2ConfigReadResponse__ForcedChatgptWorkspaceIds, Schema.Null]), |
| | 43001 | ), |
| | 43002 | forced_login_method: Schema.optionalKey( |
| | 43003 | Schema.Union([V2ConfigReadResponse__ForcedLoginMethod, Schema.Null]), |
| | 43004 | ), |
| | 43005 | instructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43006 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43007 | model_auto_compact_token_limit: Schema.optionalKey( |
| | 43008 | Schema.Union([ |
| | 43009 | Schema.Number.annotate({ format: "int64" }).check( |
| | 43010 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 43011 | ), |
| | 43012 | Schema.Null, |
| | 43013 | ]), |
| | 43014 | ), |
| | 43015 | model_auto_compact_token_limit_scope: Schema.optionalKey( |
| | 43016 | Schema.Union([V2ConfigReadResponse__AutoCompactTokenLimitScope, Schema.Null]), |
| | 43017 | ), |
| | 43018 | model_context_window: Schema.optionalKey( |
| | 43019 | Schema.Union([ |
| | 43020 | Schema.Number.annotate({ format: "int64" }).check( |
| | 43021 | Schema.isInt().annotate({ expected: "an integer" }), |
| | 43022 | ), |
| | 43023 | Schema.Null, |
| | 43024 | ]), |
| | 43025 | ), |
| | 43026 | model_provider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43027 | model_reasoning_effort: Schema.optionalKey( |
| | 43028 | Schema.Union([V2ConfigReadResponse__ReasoningEffort, Schema.Null]), |
| | 43029 | ), |
| | 43030 | model_reasoning_summary: Schema.optionalKey( |
| | 43031 | Schema.Union([V2ConfigReadResponse__ReasoningSummary, Schema.Null]), |
| | 43032 | ), |
| | 43033 | model_verbosity: Schema.optionalKey( |
| | 43034 | Schema.Union([V2ConfigReadResponse__Verbosity, Schema.Null]), |
| | 43035 | ), |
| | 43036 | review_model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43037 | sandbox_mode: Schema.optionalKey( |
| | 43038 | Schema.Union([V2ConfigReadResponse__SandboxMode, Schema.Null]), |
| | 43039 | ), |
| | 43040 | sandbox_workspace_write: Schema.optionalKey( |
| | 43041 | Schema.Union([V2ConfigReadResponse__SandboxWorkspaceWrite, Schema.Null]), |
| | 43042 | ), |
| | 43043 | service_tier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43044 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__ToolsV2, Schema.Null])), |
| | 43045 | web_search: Schema.optionalKey( |
| | 43046 | Schema.Union([V2ConfigReadResponse__WebSearchMode, Schema.Null]), |
| | 43047 | ), |
| | 43048 | }), |
| | 43049 | [Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" }))], |
| | 43050 | ).annotate({ identifier: "V2ConfigReadResponse__Config" }); |
| | 43051 | |
| | 43052 | export type V2ConfigRequirementsReadResponse__ConfigRequirements = { |
| | 43053 | readonly additionalDeveloperInstructions?: string | null; |
| | 43054 | readonly allowAppshots?: boolean | null; |
| | 43055 | readonly allowBrowserAndComputerUse?: boolean | null; |
| | 43056 | readonly allowLoginShell?: boolean | null; |
| | 43057 | readonly allowManagedHooksOnly?: boolean | null; |
| | 43058 | readonly allowRemoteControl?: boolean | null; |
| | 43059 | readonly allowedApprovalPolicies?: ReadonlyArray<V2ConfigRequirementsReadResponse__AskForApproval> | null; |
| | 43060 | readonly allowedLoginMethods?: ReadonlyArray<V2ConfigRequirementsReadResponse__ForcedLoginMethod> | null; |
| | 43061 | readonly allowedPermissionProfiles?: { readonly [x: string]: boolean } | null; |
| | 43062 | readonly allowedSandboxModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__SandboxMode> | null; |
| | 43063 | readonly allowedWebSearchModes?: ReadonlyArray<V2ConfigRequirementsReadResponse__WebSearchMode> | null; |
| | 43064 | readonly allowedWindowsSandboxImplementations?: ReadonlyArray<V2ConfigRequirementsReadResponse__WindowsSandboxImplementation> | null; |
| | 43065 | readonly autoReview?: V2ConfigRequirementsReadResponse__AutoReviewRequirements | null; |
| | 43066 | readonly browserUse?: V2ConfigRequirementsReadResponse__BrowserUseRequirements | null; |
| | 43067 | readonly chatgptBaseUrl?: string | null; |
| | 43068 | readonly checkForUpdateOnStartup?: boolean | null; |
| | 43069 | readonly cliAuthCredentialsStore?: V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode | null; |
| | 43070 | readonly computerUse?: V2ConfigRequirementsReadResponse__ComputerUseRequirements | null; |
| | 43071 | readonly defaultPermissions?: string | null; |
| | 43072 | readonly enforceResidency?: V2ConfigRequirementsReadResponse__ResidencyRequirement | null; |
| | 43073 | readonly featureRequirements?: { readonly [x: string]: boolean } | null; |
| | 43074 | readonly feedback?: V2ConfigRequirementsReadResponse__FeedbackRequirements | null; |
| | 43075 | readonly inAppBrowser?: V2ConfigRequirementsReadResponse__InAppBrowserRequirements | null; |
| | 43076 | readonly logDir?: string | null; |
| | 43077 | readonly modelCatalogJson?: string | null; |
| | 43078 | readonly modelProvider?: string | null; |
| | 43079 | readonly modelProviders?: { readonly [x: string]: Schema.Json } | null; |
| | 43080 | readonly models?: V2ConfigRequirementsReadResponse__ModelsRequirements | null; |
| | 43081 | readonly sqliteHome?: string | null; |
| | 43082 | }; |
| | 43083 | export const V2ConfigRequirementsReadResponse__ConfigRequirements = Schema.Struct({ |
| | 43084 | additionalDeveloperInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43085 | allowAppshots: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 43086 | allowBrowserAndComputerUse: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 43087 | allowLoginShell: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 43088 | allowManagedHooksOnly: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 43089 | allowRemoteControl: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 43090 | allowedApprovalPolicies: Schema.optionalKey( |
| | 43091 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__AskForApproval), Schema.Null]), |
| | 43092 | ), |
| | 43093 | allowedLoginMethods: Schema.optionalKey( |
| | 43094 | Schema.Union([ |
| | 43095 | Schema.Array(V2ConfigRequirementsReadResponse__ForcedLoginMethod).annotate({ |
| | 43096 | description: |
| | 43097 | "Effective login methods after managed, forced-login, and workspace restrictions. An empty list permits no login method. Older servers may omit this field.", |
| | 43098 | }), |
| | 43099 | Schema.Null, |
| | 43100 | ]), |
| | 43101 | ), |
| | 43102 | allowedPermissionProfiles: Schema.optionalKey( |
| | 43103 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), |
| | 43104 | ), |
| | 43105 | allowedSandboxModes: Schema.optionalKey( |
| | 43106 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__SandboxMode), Schema.Null]), |
| | 43107 | ), |
| | 43108 | allowedWebSearchModes: Schema.optionalKey( |
| | 43109 | Schema.Union([Schema.Array(V2ConfigRequirementsReadResponse__WebSearchMode), Schema.Null]), |
| | 43110 | ), |
| | 43111 | allowedWindowsSandboxImplementations: Schema.optionalKey( |
| | 43112 | Schema.Union([ |
| | 43113 | Schema.Array(V2ConfigRequirementsReadResponse__WindowsSandboxImplementation), |
| | 43114 | Schema.Null, |
| | 43115 | ]), |
| | 43116 | ), |
| | 43117 | autoReview: Schema.optionalKey( |
| | 43118 | Schema.Union([V2ConfigRequirementsReadResponse__AutoReviewRequirements, Schema.Null]), |
| | 43119 | ), |
| | 43120 | browserUse: Schema.optionalKey( |
| | 43121 | Schema.Union([V2ConfigRequirementsReadResponse__BrowserUseRequirements, Schema.Null]), |
| | 43122 | ), |
| | 43123 | chatgptBaseUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43124 | checkForUpdateOnStartup: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| | 43125 | cliAuthCredentialsStore: Schema.optionalKey( |
| | 43126 | Schema.Union([V2ConfigRequirementsReadResponse__CliAuthCredentialsStoreMode, Schema.Null]), |
| | 43127 | ), |
| | 43128 | computerUse: Schema.optionalKey( |
| | 43129 | Schema.Union([V2ConfigRequirementsReadResponse__ComputerUseRequirements, Schema.Null]), |
| | 43130 | ), |
| | 43131 | defaultPermissions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43132 | enforceResidency: Schema.optionalKey( |
| | 43133 | Schema.Union([V2ConfigRequirementsReadResponse__ResidencyRequirement, Schema.Null]), |
| | 43134 | ), |
| | 43135 | featureRequirements: Schema.optionalKey( |
| | 43136 | Schema.Union([Schema.Record(Schema.String, Schema.Boolean), Schema.Null]), |
| | 43137 | ), |
| | 43138 | feedback: Schema.optionalKey( |
| | 43139 | Schema.Union([V2ConfigRequirementsReadResponse__FeedbackRequirements, Schema.Null]), |
| | 43140 | ), |
| | 43141 | inAppBrowser: Schema.optionalKey( |
| | 43142 | Schema.Union([V2ConfigRequirementsReadResponse__InAppBrowserRequirements, Schema.Null]), |
| | 43143 | ), |
| | 43144 | logDir: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43145 | modelCatalogJson: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43146 | modelProvider: Schema.optionalKey( |
| | 43147 | Schema.Union([ |
| | 43148 | Schema.String.annotate({ |
| | 43149 | description: "Exact provider selection required by managed policy.", |
| | 43150 | }), |
| | 43151 | Schema.Null, |
| | 43152 | ]), |
| | 43153 | ), |
| | 43154 | modelProviders: Schema.optionalKey( |
| | 43155 | Schema.Union([ |
| | 43156 | Schema.Record(Schema.String, Schema.Json.annotate({ expected: "JSON value" })).annotate({ |
| | 43157 | description: "Complete required provider definitions, using config.toml field names.", |
| | 43158 | }), |
| | 43159 | Schema.Null, |
| | 43160 | ]), |
| | 43161 | ), |
| | 43162 | models: Schema.optionalKey( |
| | 43163 | Schema.Union([V2ConfigRequirementsReadResponse__ModelsRequirements, Schema.Null]), |
| | 43164 | ), |
| | 43165 | sqliteHome: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 43166 | }).annotate({ identifier: "V2ConfigRequirementsReadResponse__ConfigRequirements" }); |
| | 43167 | |
| 33684 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = { | 43168 | export type V2ItemGuardianApprovalReviewCompletedNotification__AdditionalFileSystemPermissions = { |
| 33685 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null; | 43169 | readonly entries?: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__FileSystemSandboxEntry> | null; |
| 33686 | readonly globScanMaxDepth?: number | null; | 43170 | readonly globScanMaxDepth?: number | null; |
| ... | @@ -33822,6 +43306,7 @@ export type V2PluginReadResponse__PluginDetail = { | ... | @@ -33822,6 +43306,7 @@ export type V2PluginReadResponse__PluginDetail = { |
| 33822 | readonly marketplaceName: string; | 43306 | readonly marketplaceName: string; |
| 33823 | readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null; | 43307 | readonly marketplacePath?: V2PluginReadResponse__AbsolutePathBuf | null; |
| 33824 | readonly mcpServers: ReadonlyArray<string>; | 43308 | readonly mcpServers: ReadonlyArray<string>; |
| | 43309 | readonly onboardingSkill?: V2PluginReadResponse__SkillSummary | null; |
| 33825 | readonly scheduledTasks?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskSummary> | null; | 43310 | readonly scheduledTasks?: ReadonlyArray<V2PluginReadResponse__ScheduledTaskSummary> | null; |
| 33826 | readonly shareUrl?: string | null; | 43311 | readonly shareUrl?: string | null; |
| 33827 | readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>; | 43312 | readonly skills: ReadonlyArray<V2PluginReadResponse__SkillSummary>; |
| ... | @@ -33837,6 +43322,11 @@ export const V2PluginReadResponse__PluginDetail = Schema.Struct({ | ... | @@ -33837,6 +43322,11 @@ export const V2PluginReadResponse__PluginDetail = Schema.Struct({ |
| 33837 | Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]), | 43322 | Schema.Union([V2PluginReadResponse__AbsolutePathBuf, Schema.Null]), |
| 33838 | ), | 43323 | ), |
| 33839 | mcpServers: Schema.Array(Schema.String), | 43324 | mcpServers: Schema.Array(Schema.String), |
| | 43325 | onboardingSkill: Schema.optionalKey( |
| | 43326 | Schema.Union([V2PluginReadResponse__SkillSummary, Schema.Null]).annotate({ |
| | 43327 | description: "The declared onboarding skill, when the plugin and visible skill are enabled.", |
| | 43328 | }), |
| | 43329 | ), |
| 33840 | scheduledTasks: Schema.optionalKey( | 43330 | scheduledTasks: Schema.optionalKey( |
| 33841 | Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskSummary), Schema.Null]), | 43331 | Schema.Union([Schema.Array(V2PluginReadResponse__ScheduledTaskSummary), Schema.Null]), |
| 33842 | ), | 43332 | ), |
| ... | @@ -33977,6 +43467,15 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ | ... | @@ -33977,6 +43467,15 @@ export const V2ThreadForkResponse__Turn = Schema.Struct({ |
| 33977 | status: V2ThreadForkResponse__TurnStatus, | 43467 | status: V2ThreadForkResponse__TurnStatus, |
| 33978 | }).annotate({ identifier: "V2ThreadForkResponse__Turn" }); | 43468 | }).annotate({ identifier: "V2ThreadForkResponse__Turn" }); |
| 33979 | | 43469 | |
| | 43470 | export type V2ThreadItemsListResponse__ThreadItemEntry = { |
| | 43471 | readonly item: V2ThreadItemsListResponse__ThreadItem; |
| | 43472 | readonly turnId: string; |
| | 43473 | }; |
| | 43474 | export const V2ThreadItemsListResponse__ThreadItemEntry = Schema.Struct({ |
| | 43475 | item: V2ThreadItemsListResponse__ThreadItem, |
| | 43476 | turnId: Schema.String.annotate({ description: "Turn containing this item." }), |
| | 43477 | }).annotate({ identifier: "V2ThreadItemsListResponse__ThreadItemEntry" }); |
| | 43478 | |
| 33980 | export type V2ThreadListResponse__Turn = { | 43479 | export type V2ThreadListResponse__Turn = { |
| 33981 | readonly completedAt?: number | null; | 43480 | readonly completedAt?: number | null; |
| 33982 | readonly durationMs?: number | null; | 43481 | readonly durationMs?: number | null; |
| ... | @@ -34219,17 +43718,17 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ | ... | @@ -34219,17 +43718,17 @@ export const V2ThreadResumeResponse__Turn = Schema.Struct({ |
| 34219 | status: V2ThreadResumeResponse__TurnStatus, | 43718 | status: V2ThreadResumeResponse__TurnStatus, |
| 34220 | }).annotate({ identifier: "V2ThreadResumeResponse__Turn" }); | 43719 | }).annotate({ identifier: "V2ThreadResumeResponse__Turn" }); |
| 34221 | | 43720 | |
| 34222 | export type V2ThreadRollbackResponse__Turn = { | 43721 | export type V2ThreadRevertResponse__Turn = { |
| 34223 | readonly completedAt?: number | null; | 43722 | readonly completedAt?: number | null; |
| 34224 | readonly durationMs?: number | null; | 43723 | readonly durationMs?: number | null; |
| 34225 | readonly error?: V2ThreadRollbackResponse__TurnError | null; | 43724 | readonly error?: V2ThreadRevertResponse__TurnError | null; |
| 34226 | readonly id: string; | 43725 | readonly id: string; |
| 34227 | readonly items: ReadonlyArray<V2ThreadRollbackResponse__ThreadItem>; | 43726 | readonly items: ReadonlyArray<V2ThreadRevertResponse__ThreadItem>; |
| 34228 | readonly itemsView?: V2ThreadRollbackResponse__TurnItemsView; | 43727 | readonly itemsView?: V2ThreadRevertResponse__TurnItemsView; |
| 34229 | readonly startedAt?: number | null; | 43728 | readonly startedAt?: number | null; |
| 34230 | readonly status: V2ThreadRollbackResponse__TurnStatus; | 43729 | readonly status: V2ThreadRevertResponse__TurnStatus; |
| 34231 | }; | 43730 | }; |
| 34232 | export const V2ThreadRollbackResponse__Turn = Schema.Struct({ | 43731 | export const V2ThreadRevertResponse__Turn = Schema.Struct({ |
| 34233 | completedAt: Schema.optionalKey( | 43732 | completedAt: Schema.optionalKey( |
| 34234 | Schema.Union([ | 43733 | Schema.Union([ |
| 34235 | Schema.Number.annotate({ | 43734 | Schema.Number.annotate({ |
| ... | @@ -34249,20 +43748,20 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ | ... | @@ -34249,20 +43748,20 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ |
| 34249 | ]), | 43748 | ]), |
| 34250 | ), | 43749 | ), |
| 34251 | error: Schema.optionalKey( | 43750 | error: Schema.optionalKey( |
| 34252 | Schema.Union([V2ThreadRollbackResponse__TurnError, Schema.Null]).annotate({ | 43751 | Schema.Union([V2ThreadRevertResponse__TurnError, Schema.Null]).annotate({ |
| 34253 | description: "Only populated when the Turn's status is failed.", | 43752 | description: "Only populated when the Turn's status is failed.", |
| 34254 | }), | 43753 | }), |
| 34255 | ), | 43754 | ), |
| 34256 | id: Schema.String.annotate({ | 43755 | id: Schema.String.annotate({ |
| 34257 | description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", | 43756 | description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", |
| 34258 | }), | 43757 | }), |
| 34259 | items: Schema.Array(V2ThreadRollbackResponse__ThreadItem).annotate({ | 43758 | items: Schema.Array(V2ThreadRevertResponse__ThreadItem).annotate({ |
| 34260 | description: "Thread items currently included in this turn payload.", | 43759 | description: "Thread items currently included in this turn payload.", |
| 34261 | }), | 43760 | }), |
| 34262 | itemsView: Schema.optionalKey( | 43761 | itemsView: Schema.optionalKey( |
| 34263 | Schema.suspend( | 43762 | Schema.suspend( |
| 34264 | (): Schema.Codec<V2ThreadRollbackResponse__TurnItemsView> => | 43763 | (): Schema.Codec<V2ThreadRevertResponse__TurnItemsView> => |
| 34265 | V2ThreadRollbackResponse__TurnItemsView, | 43764 | V2ThreadRevertResponse__TurnItemsView, |
| 34266 | ).annotate({ | 43765 | ).annotate({ |
| 34267 | description: "Describes how much of `items` has been loaded for this turn.", | 43766 | description: "Describes how much of `items` has been loaded for this turn.", |
| 34268 | default: "full", | 43767 | default: "full", |
| ... | @@ -34277,8 +43776,8 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ | ... | @@ -34277,8 +43776,8 @@ export const V2ThreadRollbackResponse__Turn = Schema.Struct({ |
| 34277 | Schema.Null, | 43776 | Schema.Null, |
| 34278 | ]), | 43777 | ]), |
| 34279 | ), | 43778 | ), |
| 34280 | status: V2ThreadRollbackResponse__TurnStatus, | 43779 | status: V2ThreadRevertResponse__TurnStatus, |
| 34281 | }).annotate({ identifier: "V2ThreadRollbackResponse__Turn" }); | 43780 | }).annotate({ identifier: "V2ThreadRevertResponse__Turn" }); |
| 34282 | | 43781 | |
| 34283 | export type V2ThreadStartedNotification__Turn = { | 43782 | export type V2ThreadStartedNotification__Turn = { |
| 34284 | readonly completedAt?: number | null; | 43783 | readonly completedAt?: number | null; |
| ... | @@ -34402,6 +43901,67 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ | ... | @@ -34402,6 +43901,67 @@ export const V2ThreadStartResponse__Turn = Schema.Struct({ |
| 34402 | status: V2ThreadStartResponse__TurnStatus, | 43901 | status: V2ThreadStartResponse__TurnStatus, |
| 34403 | }).annotate({ identifier: "V2ThreadStartResponse__Turn" }); | 43902 | }).annotate({ identifier: "V2ThreadStartResponse__Turn" }); |
| 34404 | | 43903 | |
| | 43904 | export type V2ThreadTurnsListResponse__Turn = { |
| | 43905 | readonly completedAt?: number | null; |
| | 43906 | readonly durationMs?: number | null; |
| | 43907 | readonly error?: V2ThreadTurnsListResponse__TurnError | null; |
| | 43908 | readonly id: string; |
| | 43909 | readonly items: ReadonlyArray<V2ThreadTurnsListResponse__ThreadItem>; |
| | 43910 | readonly itemsView?: V2ThreadTurnsListResponse__TurnItemsView; |
| | 43911 | readonly startedAt?: number | null; |
| | 43912 | readonly status: V2ThreadTurnsListResponse__TurnStatus; |
| | 43913 | }; |
| | 43914 | export const V2ThreadTurnsListResponse__Turn = Schema.Struct({ |
| | 43915 | completedAt: Schema.optionalKey( |
| | 43916 | Schema.Union([ |
| | 43917 | Schema.Number.annotate({ |
| | 43918 | description: "Unix timestamp (in seconds) when the turn completed.", |
| | 43919 | format: "int64", |
| | 43920 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 43921 | Schema.Null, |
| | 43922 | ]), |
| | 43923 | ), |
| | 43924 | durationMs: Schema.optionalKey( |
| | 43925 | Schema.Union([ |
| | 43926 | Schema.Number.annotate({ |
| | 43927 | description: "Duration between turn start and completion in milliseconds, if known.", |
| | 43928 | format: "int64", |
| | 43929 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 43930 | Schema.Null, |
| | 43931 | ]), |
| | 43932 | ), |
| | 43933 | error: Schema.optionalKey( |
| | 43934 | Schema.Union([V2ThreadTurnsListResponse__TurnError, Schema.Null]).annotate({ |
| | 43935 | description: "Only populated when the Turn's status is failed.", |
| | 43936 | }), |
| | 43937 | ), |
| | 43938 | id: Schema.String.annotate({ |
| | 43939 | description: "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", |
| | 43940 | }), |
| | 43941 | items: Schema.Array(V2ThreadTurnsListResponse__ThreadItem).annotate({ |
| | 43942 | description: "Thread items currently included in this turn payload.", |
| | 43943 | }), |
| | 43944 | itemsView: Schema.optionalKey( |
| | 43945 | Schema.suspend( |
| | 43946 | (): Schema.Codec<V2ThreadTurnsListResponse__TurnItemsView> => |
| | 43947 | V2ThreadTurnsListResponse__TurnItemsView, |
| | 43948 | ).annotate({ |
| | 43949 | description: "Describes how much of `items` has been loaded for this turn.", |
| | 43950 | default: "full", |
| | 43951 | }), |
| | 43952 | ), |
| | 43953 | startedAt: Schema.optionalKey( |
| | 43954 | Schema.Union([ |
| | 43955 | Schema.Number.annotate({ |
| | 43956 | description: "Unix timestamp (in seconds) when the turn started.", |
| | 43957 | format: "int64", |
| | 43958 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 43959 | Schema.Null, |
| | 43960 | ]), |
| | 43961 | ), |
| | 43962 | status: V2ThreadTurnsListResponse__TurnStatus, |
| | 43963 | }).annotate({ identifier: "V2ThreadTurnsListResponse__Turn" }); |
| | 43964 | |
| 34405 | export type V2ThreadUnarchiveResponse__Turn = { | 43965 | export type V2ThreadUnarchiveResponse__Turn = { |
| 34406 | readonly completedAt?: number | null; | 43966 | readonly completedAt?: number | null; |
| 34407 | readonly durationMs?: number | null; | 43967 | readonly durationMs?: number | null; |
| ... | @@ -34695,13 +44255,20 @@ export type ServerNotification__Thread = { | ... | @@ -34695,13 +44255,20 @@ export type ServerNotification__Thread = { |
| 34695 | readonly ephemeral: boolean; | 44255 | readonly ephemeral: boolean; |
| 34696 | readonly forkedFromId?: string | null; | 44256 | readonly forkedFromId?: string | null; |
| 34697 | readonly gitInfo?: ServerNotification__GitInfo | null; | 44257 | readonly gitInfo?: ServerNotification__GitInfo | null; |
| | 44258 | readonly historyMode?: ServerNotification__ThreadHistoryMode; |
| 34698 | readonly id: string; | 44259 | readonly id: string; |
| | 44260 | readonly model?: string | null; |
| 34699 | readonly modelProvider: string; | 44261 | readonly modelProvider: string; |
| 34700 | readonly name?: string | null; | 44262 | readonly name?: string | null; |
| | 44263 | readonly originator?: string | null; |
| 34701 | readonly parentThreadId?: string | null; | 44264 | readonly parentThreadId?: string | null; |
| 34702 | readonly path?: string | null; | 44265 | readonly path?: string | null; |
| 34703 | readonly preview: string; | 44266 | readonly preview: string; |
| | 44267 | readonly projectId: string | null; |
| | 44268 | readonly reasoningEffort?: ServerNotification__ReasoningEffort | null; |
| 34704 | readonly recencyAt?: number | null; | 44269 | readonly recencyAt?: number | null; |
| | 44270 | readonly section?: ServerNotification__ThreadSection | null; |
| | 44271 | readonly sectionEnteredAt?: number | null; |
| 34705 | readonly sessionId: string; | 44272 | readonly sessionId: string; |
| 34706 | readonly source: ServerNotification__SessionSource; | 44273 | readonly source: ServerNotification__SessionSource; |
| 34707 | readonly status: ServerNotification__ThreadStatus; | 44274 | readonly status: ServerNotification__ThreadStatus; |
| ... | @@ -34753,9 +44320,27 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -34753,9 +44320,27 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 34753 | description: "Optional Git metadata captured when the thread was created.", | 44320 | description: "Optional Git metadata captured when the thread was created.", |
| 34754 | }), | 44321 | }), |
| 34755 | ), | 44322 | ), |
| | 44323 | historyMode: Schema.optionalKey( |
| | 44324 | Schema.suspend( |
| | 44325 | (): Schema.Codec<ServerNotification__ThreadHistoryMode> => |
| | 44326 | ServerNotification__ThreadHistoryMode, |
| | 44327 | ).annotate({ |
| | 44328 | description: "Persisted thread history contract selected when this thread was created.", |
| | 44329 | default: "legacy", |
| | 44330 | }), |
| | 44331 | ), |
| 34756 | id: Schema.String.annotate({ | 44332 | id: Schema.String.annotate({ |
| 34757 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 44333 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 34758 | }), | 44334 | }), |
| | 44335 | model: Schema.optionalKey( |
| | 44336 | Schema.Union([ |
| | 44337 | Schema.String.annotate({ |
| | 44338 | description: |
| | 44339 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 44340 | }), |
| | 44341 | Schema.Null, |
| | 44342 | ]), |
| | 44343 | ), |
| 34759 | modelProvider: Schema.String.annotate({ | 44344 | modelProvider: Schema.String.annotate({ |
| 34760 | description: "Model provider used for this thread (for example, 'openai').", | 44345 | description: "Model provider used for this thread (for example, 'openai').", |
| 34761 | }), | 44346 | }), |
| ... | @@ -34765,6 +44350,15 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -34765,6 +44350,15 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 34765 | Schema.Null, | 44350 | Schema.Null, |
| 34766 | ]), | 44351 | ]), |
| 34767 | ), | 44352 | ), |
| | 44353 | originator: Schema.optionalKey( |
| | 44354 | Schema.Union([ |
| | 44355 | Schema.String.annotate({ |
| | 44356 | description: |
| | 44357 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 44358 | }), |
| | 44359 | Schema.Null, |
| | 44360 | ]), |
| | 44361 | ), |
| 34768 | parentThreadId: Schema.optionalKey( | 44362 | parentThreadId: Schema.optionalKey( |
| 34769 | Schema.Union([ | 44363 | Schema.Union([ |
| 34770 | Schema.String.annotate({ | 44364 | Schema.String.annotate({ |
| ... | @@ -34783,6 +44377,18 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -34783,6 +44377,18 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 34783 | preview: Schema.String.annotate({ | 44377 | preview: Schema.String.annotate({ |
| 34784 | description: "Usually the first user message in the thread, if available.", | 44378 | description: "Usually the first user message in the thread, if available.", |
| 34785 | }), | 44379 | }), |
| | 44380 | projectId: Schema.Union([ |
| | 44381 | Schema.String.annotate({ |
| | 44382 | description: "Canonical project assignment owned by app-server, if any.", |
| | 44383 | }), |
| | 44384 | Schema.Null, |
| | 44385 | ]), |
| | 44386 | reasoningEffort: Schema.optionalKey( |
| | 44387 | Schema.Union([ServerNotification__ReasoningEffort, Schema.Null]).annotate({ |
| | 44388 | description: |
| | 44389 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 44390 | }), |
| | 44391 | ), |
| 34786 | recencyAt: Schema.optionalKey( | 44392 | recencyAt: Schema.optionalKey( |
| 34787 | Schema.Union([ | 44393 | Schema.Union([ |
| 34788 | Schema.Number.annotate({ | 44394 | Schema.Number.annotate({ |
| ... | @@ -34792,6 +44398,20 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -34792,6 +44398,20 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 34792 | Schema.Null, | 44398 | Schema.Null, |
| 34793 | ]), | 44399 | ]), |
| 34794 | ), | 44400 | ), |
| | 44401 | section: Schema.optionalKey( |
| | 44402 | Schema.Union([ServerNotification__ThreadSection, Schema.Null]).annotate({ |
| | 44403 | description: "The independently persisted section selected for this thread, if any.", |
| | 44404 | }), |
| | 44405 | ), |
| | 44406 | sectionEnteredAt: Schema.optionalKey( |
| | 44407 | Schema.Union([ |
| | 44408 | Schema.Number.annotate({ |
| | 44409 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 44410 | format: "int64", |
| | 44411 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 44412 | Schema.Null, |
| | 44413 | ]), |
| | 44414 | ), |
| 34795 | sessionId: Schema.String.annotate({ | 44415 | sessionId: Schema.String.annotate({ |
| 34796 | description: "Session id shared by threads that belong to the same session tree.", | 44416 | description: "Session id shared by threads that belong to the same session tree.", |
| 34797 | }), | 44417 | }), |
| ... | @@ -34810,7 +44430,7 @@ export const ServerNotification__Thread = Schema.Struct({ | ... | @@ -34810,7 +44430,7 @@ export const ServerNotification__Thread = Schema.Struct({ |
| 34810 | ), | 44430 | ), |
| 34811 | turns: Schema.Array(ServerNotification__Turn).annotate({ | 44431 | turns: Schema.Array(ServerNotification__Turn).annotate({ |
| 34812 | description: | 44432 | description: |
| 34813 | "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.", | 44433 | "Only populated on `thread/resume`, `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.", |
| 34814 | }), | 44434 | }), |
| 34815 | updatedAt: Schema.Number.annotate({ | 44435 | updatedAt: Schema.Number.annotate({ |
| 34816 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 44436 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -34927,13 +44547,20 @@ export type V2ThreadForkResponse__Thread = { | ... | @@ -34927,13 +44547,20 @@ export type V2ThreadForkResponse__Thread = { |
| 34927 | readonly ephemeral: boolean; | 44547 | readonly ephemeral: boolean; |
| 34928 | readonly forkedFromId?: string | null; | 44548 | readonly forkedFromId?: string | null; |
| 34929 | readonly gitInfo?: V2ThreadForkResponse__GitInfo | null; | 44549 | readonly gitInfo?: V2ThreadForkResponse__GitInfo | null; |
| | 44550 | readonly historyMode?: V2ThreadForkResponse__ThreadHistoryMode; |
| 34930 | readonly id: string; | 44551 | readonly id: string; |
| | 44552 | readonly model?: string | null; |
| 34931 | readonly modelProvider: string; | 44553 | readonly modelProvider: string; |
| 34932 | readonly name?: string | null; | 44554 | readonly name?: string | null; |
| | 44555 | readonly originator?: string | null; |
| 34933 | readonly parentThreadId?: string | null; | 44556 | readonly parentThreadId?: string | null; |
| 34934 | readonly path?: string | null; | 44557 | readonly path?: string | null; |
| 34935 | readonly preview: string; | 44558 | readonly preview: string; |
| | 44559 | readonly projectId: string | null; |
| | 44560 | readonly reasoningEffort?: V2ThreadForkResponse__ReasoningEffort | null; |
| 34936 | readonly recencyAt?: number | null; | 44561 | readonly recencyAt?: number | null; |
| | 44562 | readonly section?: V2ThreadForkResponse__ThreadSection | null; |
| | 44563 | readonly sectionEnteredAt?: number | null; |
| 34937 | readonly sessionId: string; | 44564 | readonly sessionId: string; |
| 34938 | readonly source: V2ThreadForkResponse__SessionSource; | 44565 | readonly source: V2ThreadForkResponse__SessionSource; |
| 34939 | readonly status: V2ThreadForkResponse__ThreadStatus; | 44566 | readonly status: V2ThreadForkResponse__ThreadStatus; |
| ... | @@ -34986,9 +44613,27 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -34986,9 +44613,27 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 34986 | description: "Optional Git metadata captured when the thread was created.", | 44613 | description: "Optional Git metadata captured when the thread was created.", |
| 34987 | }), | 44614 | }), |
| 34988 | ), | 44615 | ), |
| | 44616 | historyMode: Schema.optionalKey( |
| | 44617 | Schema.suspend( |
| | 44618 | (): Schema.Codec<V2ThreadForkResponse__ThreadHistoryMode> => |
| | 44619 | V2ThreadForkResponse__ThreadHistoryMode, |
| | 44620 | ).annotate({ |
| | 44621 | description: "Persisted thread history contract selected when this thread was created.", |
| | 44622 | default: "legacy", |
| | 44623 | }), |
| | 44624 | ), |
| 34989 | id: Schema.String.annotate({ | 44625 | id: Schema.String.annotate({ |
| 34990 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 44626 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 34991 | }), | 44627 | }), |
| | 44628 | model: Schema.optionalKey( |
| | 44629 | Schema.Union([ |
| | 44630 | Schema.String.annotate({ |
| | 44631 | description: |
| | 44632 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 44633 | }), |
| | 44634 | Schema.Null, |
| | 44635 | ]), |
| | 44636 | ), |
| 34992 | modelProvider: Schema.String.annotate({ | 44637 | modelProvider: Schema.String.annotate({ |
| 34993 | description: "Model provider used for this thread (for example, 'openai').", | 44638 | description: "Model provider used for this thread (for example, 'openai').", |
| 34994 | }), | 44639 | }), |
| ... | @@ -34998,6 +44643,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -34998,6 +44643,15 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 34998 | Schema.Null, | 44643 | Schema.Null, |
| 34999 | ]), | 44644 | ]), |
| 35000 | ), | 44645 | ), |
| | 44646 | originator: Schema.optionalKey( |
| | 44647 | Schema.Union([ |
| | 44648 | Schema.String.annotate({ |
| | 44649 | description: |
| | 44650 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 44651 | }), |
| | 44652 | Schema.Null, |
| | 44653 | ]), |
| | 44654 | ), |
| 35001 | parentThreadId: Schema.optionalKey( | 44655 | parentThreadId: Schema.optionalKey( |
| 35002 | Schema.Union([ | 44656 | Schema.Union([ |
| 35003 | Schema.String.annotate({ | 44657 | Schema.String.annotate({ |
| ... | @@ -35016,6 +44670,18 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -35016,6 +44670,18 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 35016 | preview: Schema.String.annotate({ | 44670 | preview: Schema.String.annotate({ |
| 35017 | description: "Usually the first user message in the thread, if available.", | 44671 | description: "Usually the first user message in the thread, if available.", |
| 35018 | }), | 44672 | }), |
| | 44673 | projectId: Schema.Union([ |
| | 44674 | Schema.String.annotate({ |
| | 44675 | description: "Canonical project assignment owned by app-server, if any.", |
| | 44676 | }), |
| | 44677 | Schema.Null, |
| | 44678 | ]), |
| | 44679 | reasoningEffort: Schema.optionalKey( |
| | 44680 | Schema.Union([V2ThreadForkResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 44681 | description: |
| | 44682 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 44683 | }), |
| | 44684 | ), |
| 35019 | recencyAt: Schema.optionalKey( | 44685 | recencyAt: Schema.optionalKey( |
| 35020 | Schema.Union([ | 44686 | Schema.Union([ |
| 35021 | Schema.Number.annotate({ | 44687 | Schema.Number.annotate({ |
| ... | @@ -35025,6 +44691,20 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -35025,6 +44691,20 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 35025 | Schema.Null, | 44691 | Schema.Null, |
| 35026 | ]), | 44692 | ]), |
| 35027 | ), | 44693 | ), |
| | 44694 | section: Schema.optionalKey( |
| | 44695 | Schema.Union([V2ThreadForkResponse__ThreadSection, Schema.Null]).annotate({ |
| | 44696 | description: "The independently persisted section selected for this thread, if any.", |
| | 44697 | }), |
| | 44698 | ), |
| | 44699 | sectionEnteredAt: Schema.optionalKey( |
| | 44700 | Schema.Union([ |
| | 44701 | Schema.Number.annotate({ |
| | 44702 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 44703 | format: "int64", |
| | 44704 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 44705 | Schema.Null, |
| | 44706 | ]), |
| | 44707 | ), |
| 35028 | sessionId: Schema.String.annotate({ | 44708 | sessionId: Schema.String.annotate({ |
| 35029 | description: "Session id shared by threads that belong to the same session tree.", | 44709 | description: "Session id shared by threads that belong to the same session tree.", |
| 35030 | }), | 44710 | }), |
| ... | @@ -35043,7 +44723,7 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ | ... | @@ -35043,7 +44723,7 @@ export const V2ThreadForkResponse__Thread = Schema.Struct({ |
| 35043 | ), | 44723 | ), |
| 35044 | turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({ | 44724 | turns: Schema.Array(V2ThreadForkResponse__Turn).annotate({ |
| 35045 | description: | 44725 | description: |
| 35046 | "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.", | 44726 | "Only populated on `thread/resume`, `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.", |
| 35047 | }), | 44727 | }), |
| 35048 | updatedAt: Schema.Number.annotate({ | 44728 | updatedAt: Schema.Number.annotate({ |
| 35049 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 44729 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -35060,13 +44740,20 @@ export type V2ThreadListResponse__Thread = { | ... | @@ -35060,13 +44740,20 @@ export type V2ThreadListResponse__Thread = { |
| 35060 | readonly ephemeral: boolean; | 44740 | readonly ephemeral: boolean; |
| 35061 | readonly forkedFromId?: string | null; | 44741 | readonly forkedFromId?: string | null; |
| 35062 | readonly gitInfo?: V2ThreadListResponse__GitInfo | null; | 44742 | readonly gitInfo?: V2ThreadListResponse__GitInfo | null; |
| | 44743 | readonly historyMode?: V2ThreadListResponse__ThreadHistoryMode; |
| 35063 | readonly id: string; | 44744 | readonly id: string; |
| | 44745 | readonly model?: string | null; |
| 35064 | readonly modelProvider: string; | 44746 | readonly modelProvider: string; |
| 35065 | readonly name?: string | null; | 44747 | readonly name?: string | null; |
| | 44748 | readonly originator?: string | null; |
| 35066 | readonly parentThreadId?: string | null; | 44749 | readonly parentThreadId?: string | null; |
| 35067 | readonly path?: string | null; | 44750 | readonly path?: string | null; |
| 35068 | readonly preview: string; | 44751 | readonly preview: string; |
| | 44752 | readonly projectId: string | null; |
| | 44753 | readonly reasoningEffort?: V2ThreadListResponse__ReasoningEffort | null; |
| 35069 | readonly recencyAt?: number | null; | 44754 | readonly recencyAt?: number | null; |
| | 44755 | readonly section?: V2ThreadListResponse__ThreadSection | null; |
| | 44756 | readonly sectionEnteredAt?: number | null; |
| 35070 | readonly sessionId: string; | 44757 | readonly sessionId: string; |
| 35071 | readonly source: V2ThreadListResponse__SessionSource; | 44758 | readonly source: V2ThreadListResponse__SessionSource; |
| 35072 | readonly status: V2ThreadListResponse__ThreadStatus; | 44759 | readonly status: V2ThreadListResponse__ThreadStatus; |
| ... | @@ -35119,9 +44806,27 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -35119,9 +44806,27 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 35119 | description: "Optional Git metadata captured when the thread was created.", | 44806 | description: "Optional Git metadata captured when the thread was created.", |
| 35120 | }), | 44807 | }), |
| 35121 | ), | 44808 | ), |
| | 44809 | historyMode: Schema.optionalKey( |
| | 44810 | Schema.suspend( |
| | 44811 | (): Schema.Codec<V2ThreadListResponse__ThreadHistoryMode> => |
| | 44812 | V2ThreadListResponse__ThreadHistoryMode, |
| | 44813 | ).annotate({ |
| | 44814 | description: "Persisted thread history contract selected when this thread was created.", |
| | 44815 | default: "legacy", |
| | 44816 | }), |
| | 44817 | ), |
| 35122 | id: Schema.String.annotate({ | 44818 | id: Schema.String.annotate({ |
| 35123 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 44819 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 35124 | }), | 44820 | }), |
| | 44821 | model: Schema.optionalKey( |
| | 44822 | Schema.Union([ |
| | 44823 | Schema.String.annotate({ |
| | 44824 | description: |
| | 44825 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 44826 | }), |
| | 44827 | Schema.Null, |
| | 44828 | ]), |
| | 44829 | ), |
| 35125 | modelProvider: Schema.String.annotate({ | 44830 | modelProvider: Schema.String.annotate({ |
| 35126 | description: "Model provider used for this thread (for example, 'openai').", | 44831 | description: "Model provider used for this thread (for example, 'openai').", |
| 35127 | }), | 44832 | }), |
| ... | @@ -35131,6 +44836,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -35131,6 +44836,15 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 35131 | Schema.Null, | 44836 | Schema.Null, |
| 35132 | ]), | 44837 | ]), |
| 35133 | ), | 44838 | ), |
| | 44839 | originator: Schema.optionalKey( |
| | 44840 | Schema.Union([ |
| | 44841 | Schema.String.annotate({ |
| | 44842 | description: |
| | 44843 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 44844 | }), |
| | 44845 | Schema.Null, |
| | 44846 | ]), |
| | 44847 | ), |
| 35134 | parentThreadId: Schema.optionalKey( | 44848 | parentThreadId: Schema.optionalKey( |
| 35135 | Schema.Union([ | 44849 | Schema.Union([ |
| 35136 | Schema.String.annotate({ | 44850 | Schema.String.annotate({ |
| ... | @@ -35149,6 +44863,18 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -35149,6 +44863,18 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 35149 | preview: Schema.String.annotate({ | 44863 | preview: Schema.String.annotate({ |
| 35150 | description: "Usually the first user message in the thread, if available.", | 44864 | description: "Usually the first user message in the thread, if available.", |
| 35151 | }), | 44865 | }), |
| | 44866 | projectId: Schema.Union([ |
| | 44867 | Schema.String.annotate({ |
| | 44868 | description: "Canonical project assignment owned by app-server, if any.", |
| | 44869 | }), |
| | 44870 | Schema.Null, |
| | 44871 | ]), |
| | 44872 | reasoningEffort: Schema.optionalKey( |
| | 44873 | Schema.Union([V2ThreadListResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 44874 | description: |
| | 44875 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 44876 | }), |
| | 44877 | ), |
| 35152 | recencyAt: Schema.optionalKey( | 44878 | recencyAt: Schema.optionalKey( |
| 35153 | Schema.Union([ | 44879 | Schema.Union([ |
| 35154 | Schema.Number.annotate({ | 44880 | Schema.Number.annotate({ |
| ... | @@ -35158,6 +44884,20 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -35158,6 +44884,20 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 35158 | Schema.Null, | 44884 | Schema.Null, |
| 35159 | ]), | 44885 | ]), |
| 35160 | ), | 44886 | ), |
| | 44887 | section: Schema.optionalKey( |
| | 44888 | Schema.Union([V2ThreadListResponse__ThreadSection, Schema.Null]).annotate({ |
| | 44889 | description: "The independently persisted section selected for this thread, if any.", |
| | 44890 | }), |
| | 44891 | ), |
| | 44892 | sectionEnteredAt: Schema.optionalKey( |
| | 44893 | Schema.Union([ |
| | 44894 | Schema.Number.annotate({ |
| | 44895 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 44896 | format: "int64", |
| | 44897 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 44898 | Schema.Null, |
| | 44899 | ]), |
| | 44900 | ), |
| 35161 | sessionId: Schema.String.annotate({ | 44901 | sessionId: Schema.String.annotate({ |
| 35162 | description: "Session id shared by threads that belong to the same session tree.", | 44902 | description: "Session id shared by threads that belong to the same session tree.", |
| 35163 | }), | 44903 | }), |
| ... | @@ -35176,7 +44916,7 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ | ... | @@ -35176,7 +44916,7 @@ export const V2ThreadListResponse__Thread = Schema.Struct({ |
| 35176 | ), | 44916 | ), |
| 35177 | turns: Schema.Array(V2ThreadListResponse__Turn).annotate({ | 44917 | turns: Schema.Array(V2ThreadListResponse__Turn).annotate({ |
| 35178 | description: | 44918 | description: |
| 35179 | "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.", | 44919 | "Only populated on `thread/resume`, `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.", |
| 35180 | }), | 44920 | }), |
| 35181 | updatedAt: Schema.Number.annotate({ | 44921 | updatedAt: Schema.Number.annotate({ |
| 35182 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 44922 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -35193,13 +44933,20 @@ export type V2ThreadMetadataUpdateResponse__Thread = { | ... | @@ -35193,13 +44933,20 @@ export type V2ThreadMetadataUpdateResponse__Thread = { |
| 35193 | readonly ephemeral: boolean; | 44933 | readonly ephemeral: boolean; |
| 35194 | readonly forkedFromId?: string | null; | 44934 | readonly forkedFromId?: string | null; |
| 35195 | readonly gitInfo?: V2ThreadMetadataUpdateResponse__GitInfo | null; | 44935 | readonly gitInfo?: V2ThreadMetadataUpdateResponse__GitInfo | null; |
| | 44936 | readonly historyMode?: V2ThreadMetadataUpdateResponse__ThreadHistoryMode; |
| 35196 | readonly id: string; | 44937 | readonly id: string; |
| | 44938 | readonly model?: string | null; |
| 35197 | readonly modelProvider: string; | 44939 | readonly modelProvider: string; |
| 35198 | readonly name?: string | null; | 44940 | readonly name?: string | null; |
| | 44941 | readonly originator?: string | null; |
| 35199 | readonly parentThreadId?: string | null; | 44942 | readonly parentThreadId?: string | null; |
| 35200 | readonly path?: string | null; | 44943 | readonly path?: string | null; |
| 35201 | readonly preview: string; | 44944 | readonly preview: string; |
| | 44945 | readonly projectId: string | null; |
| | 44946 | readonly reasoningEffort?: V2ThreadMetadataUpdateResponse__ReasoningEffort | null; |
| 35202 | readonly recencyAt?: number | null; | 44947 | readonly recencyAt?: number | null; |
| | 44948 | readonly section?: V2ThreadMetadataUpdateResponse__ThreadSection | null; |
| | 44949 | readonly sectionEnteredAt?: number | null; |
| 35203 | readonly sessionId: string; | 44950 | readonly sessionId: string; |
| 35204 | readonly source: V2ThreadMetadataUpdateResponse__SessionSource; | 44951 | readonly source: V2ThreadMetadataUpdateResponse__SessionSource; |
| 35205 | readonly status: V2ThreadMetadataUpdateResponse__ThreadStatus; | 44952 | readonly status: V2ThreadMetadataUpdateResponse__ThreadStatus; |
| ... | @@ -35252,9 +44999,27 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ | ... | @@ -35252,9 +44999,27 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 35252 | description: "Optional Git metadata captured when the thread was created.", | 44999 | description: "Optional Git metadata captured when the thread was created.", |
| 35253 | }), | 45000 | }), |
| 35254 | ), | 45001 | ), |
| | 45002 | historyMode: Schema.optionalKey( |
| | 45003 | Schema.suspend( |
| | 45004 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__ThreadHistoryMode> => |
| | 45005 | V2ThreadMetadataUpdateResponse__ThreadHistoryMode, |
| | 45006 | ).annotate({ |
| | 45007 | description: "Persisted thread history contract selected when this thread was created.", |
| | 45008 | default: "legacy", |
| | 45009 | }), |
| | 45010 | ), |
| 35255 | id: Schema.String.annotate({ | 45011 | id: Schema.String.annotate({ |
| 35256 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 45012 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 35257 | }), | 45013 | }), |
| | 45014 | model: Schema.optionalKey( |
| | 45015 | Schema.Union([ |
| | 45016 | Schema.String.annotate({ |
| | 45017 | description: |
| | 45018 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 45019 | }), |
| | 45020 | Schema.Null, |
| | 45021 | ]), |
| | 45022 | ), |
| 35258 | modelProvider: Schema.String.annotate({ | 45023 | modelProvider: Schema.String.annotate({ |
| 35259 | description: "Model provider used for this thread (for example, 'openai').", | 45024 | description: "Model provider used for this thread (for example, 'openai').", |
| 35260 | }), | 45025 | }), |
| ... | @@ -35264,6 +45029,210 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ | ... | @@ -35264,6 +45029,210 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 35264 | Schema.Null, | 45029 | Schema.Null, |
| 35265 | ]), | 45030 | ]), |
| 35266 | ), | 45031 | ), |
| | 45032 | originator: Schema.optionalKey( |
| | 45033 | Schema.Union([ |
| | 45034 | Schema.String.annotate({ |
| | 45035 | description: |
| | 45036 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 45037 | }), |
| | 45038 | Schema.Null, |
| | 45039 | ]), |
| | 45040 | ), |
| | 45041 | parentThreadId: Schema.optionalKey( |
| | 45042 | Schema.Union([ |
| | 45043 | Schema.String.annotate({ |
| | 45044 | description: |
| | 45045 | "The ID of the parent thread. This will only be set if this thread is a subagent.", |
| | 45046 | }), |
| | 45047 | Schema.Null, |
| | 45048 | ]), |
| | 45049 | ), |
| | 45050 | path: Schema.optionalKey( |
| | 45051 | Schema.Union([ |
| | 45052 | Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }), |
| | 45053 | Schema.Null, |
| | 45054 | ]), |
| | 45055 | ), |
| | 45056 | preview: Schema.String.annotate({ |
| | 45057 | description: "Usually the first user message in the thread, if available.", |
| | 45058 | }), |
| | 45059 | projectId: Schema.Union([ |
| | 45060 | Schema.String.annotate({ |
| | 45061 | description: "Canonical project assignment owned by app-server, if any.", |
| | 45062 | }), |
| | 45063 | Schema.Null, |
| | 45064 | ]), |
| | 45065 | reasoningEffort: Schema.optionalKey( |
| | 45066 | Schema.Union([V2ThreadMetadataUpdateResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 45067 | description: |
| | 45068 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 45069 | }), |
| | 45070 | ), |
| | 45071 | recencyAt: Schema.optionalKey( |
| | 45072 | Schema.Union([ |
| | 45073 | Schema.Number.annotate({ |
| | 45074 | description: "Unix timestamp (in seconds) used for thread recency ordering.", |
| | 45075 | format: "int64", |
| | 45076 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 45077 | Schema.Null, |
| | 45078 | ]), |
| | 45079 | ), |
| | 45080 | section: Schema.optionalKey( |
| | 45081 | Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSection, Schema.Null]).annotate({ |
| | 45082 | description: "The independently persisted section selected for this thread, if any.", |
| | 45083 | }), |
| | 45084 | ), |
| | 45085 | sectionEnteredAt: Schema.optionalKey( |
| | 45086 | Schema.Union([ |
| | 45087 | Schema.Number.annotate({ |
| | 45088 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 45089 | format: "int64", |
| | 45090 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 45091 | Schema.Null, |
| | 45092 | ]), |
| | 45093 | ), |
| | 45094 | sessionId: Schema.String.annotate({ |
| | 45095 | description: "Session id shared by threads that belong to the same session tree.", |
| | 45096 | }), |
| | 45097 | source: Schema.suspend( |
| | 45098 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__SessionSource> => |
| | 45099 | V2ThreadMetadataUpdateResponse__SessionSource, |
| | 45100 | ).annotate({ |
| | 45101 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| | 45102 | }), |
| | 45103 | status: Schema.suspend( |
| | 45104 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__ThreadStatus> => |
| | 45105 | V2ThreadMetadataUpdateResponse__ThreadStatus, |
| | 45106 | ).annotate({ description: "Current runtime status for the thread." }), |
| | 45107 | threadSource: Schema.optionalKey( |
| | 45108 | Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({ |
| | 45109 | description: "Optional analytics source classification for this thread.", |
| | 45110 | }), |
| | 45111 | ), |
| | 45112 | turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({ |
| | 45113 | description: |
| | 45114 | "Only populated on `thread/resume`, `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.", |
| | 45115 | }), |
| | 45116 | updatedAt: Schema.Number.annotate({ |
| | 45117 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| | 45118 | format: "int64", |
| | 45119 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 45120 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__Thread" }); |
| | 45121 | |
| | 45122 | export type V2ThreadReadResponse__Thread = { |
| | 45123 | readonly agentNickname?: string | null; |
| | 45124 | readonly agentRole?: string | null; |
| | 45125 | readonly cliVersion: string; |
| | 45126 | readonly createdAt: number; |
| | 45127 | readonly cwd: V2ThreadReadResponse__AbsolutePathBuf; |
| | 45128 | readonly ephemeral: boolean; |
| | 45129 | readonly forkedFromId?: string | null; |
| | 45130 | readonly gitInfo?: V2ThreadReadResponse__GitInfo | null; |
| | 45131 | readonly historyMode?: V2ThreadReadResponse__ThreadHistoryMode; |
| | 45132 | readonly id: string; |
| | 45133 | readonly model?: string | null; |
| | 45134 | readonly modelProvider: string; |
| | 45135 | readonly name?: string | null; |
| | 45136 | readonly originator?: string | null; |
| | 45137 | readonly parentThreadId?: string | null; |
| | 45138 | readonly path?: string | null; |
| | 45139 | readonly preview: string; |
| | 45140 | readonly projectId: string | null; |
| | 45141 | readonly reasoningEffort?: V2ThreadReadResponse__ReasoningEffort | null; |
| | 45142 | readonly recencyAt?: number | null; |
| | 45143 | readonly section?: V2ThreadReadResponse__ThreadSection | null; |
| | 45144 | readonly sectionEnteredAt?: number | null; |
| | 45145 | readonly sessionId: string; |
| | 45146 | readonly source: V2ThreadReadResponse__SessionSource; |
| | 45147 | readonly status: V2ThreadReadResponse__ThreadStatus; |
| | 45148 | readonly threadSource?: V2ThreadReadResponse__ThreadSource | null; |
| | 45149 | readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>; |
| | 45150 | readonly updatedAt: number; |
| | 45151 | }; |
| | 45152 | export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| | 45153 | agentNickname: Schema.optionalKey( |
| | 45154 | Schema.Union([ |
| | 45155 | Schema.String.annotate({ |
| | 45156 | description: |
| | 45157 | "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.", |
| | 45158 | }), |
| | 45159 | Schema.Null, |
| | 45160 | ]), |
| | 45161 | ), |
| | 45162 | agentRole: Schema.optionalKey( |
| | 45163 | Schema.Union([ |
| | 45164 | Schema.String.annotate({ |
| | 45165 | description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.", |
| | 45166 | }), |
| | 45167 | Schema.Null, |
| | 45168 | ]), |
| | 45169 | ), |
| | 45170 | cliVersion: Schema.String.annotate({ |
| | 45171 | description: "Version of the CLI that created the thread.", |
| | 45172 | }), |
| | 45173 | createdAt: Schema.Number.annotate({ |
| | 45174 | description: "Unix timestamp (in seconds) when the thread was created.", |
| | 45175 | format: "int64", |
| | 45176 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 45177 | cwd: Schema.suspend( |
| | 45178 | (): Schema.Codec<V2ThreadReadResponse__AbsolutePathBuf> => |
| | 45179 | V2ThreadReadResponse__AbsolutePathBuf, |
| | 45180 | ).annotate({ description: "Working directory captured for the thread." }), |
| | 45181 | ephemeral: Schema.Boolean.annotate({ |
| | 45182 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| | 45183 | }), |
| | 45184 | forkedFromId: Schema.optionalKey( |
| | 45185 | Schema.Union([ |
| | 45186 | Schema.String.annotate({ |
| | 45187 | description: "Source thread id when this thread was created by forking another thread.", |
| | 45188 | }), |
| | 45189 | Schema.Null, |
| | 45190 | ]), |
| | 45191 | ), |
| | 45192 | gitInfo: Schema.optionalKey( |
| | 45193 | Schema.Union([V2ThreadReadResponse__GitInfo, Schema.Null]).annotate({ |
| | 45194 | description: "Optional Git metadata captured when the thread was created.", |
| | 45195 | }), |
| | 45196 | ), |
| | 45197 | historyMode: Schema.optionalKey( |
| | 45198 | Schema.suspend( |
| | 45199 | (): Schema.Codec<V2ThreadReadResponse__ThreadHistoryMode> => |
| | 45200 | V2ThreadReadResponse__ThreadHistoryMode, |
| | 45201 | ).annotate({ |
| | 45202 | description: "Persisted thread history contract selected when this thread was created.", |
| | 45203 | default: "legacy", |
| | 45204 | }), |
| | 45205 | ), |
| | 45206 | id: Schema.String.annotate({ |
| | 45207 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| | 45208 | }), |
| | 45209 | model: Schema.optionalKey( |
| | 45210 | Schema.Union([ |
| | 45211 | Schema.String.annotate({ |
| | 45212 | description: |
| | 45213 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 45214 | }), |
| | 45215 | Schema.Null, |
| | 45216 | ]), |
| | 45217 | ), |
| | 45218 | modelProvider: Schema.String.annotate({ |
| | 45219 | description: "Model provider used for this thread (for example, 'openai').", |
| | 45220 | }), |
| | 45221 | name: Schema.optionalKey( |
| | 45222 | Schema.Union([ |
| | 45223 | Schema.String.annotate({ description: "Optional user-facing thread title." }), |
| | 45224 | Schema.Null, |
| | 45225 | ]), |
| | 45226 | ), |
| | 45227 | originator: Schema.optionalKey( |
| | 45228 | Schema.Union([ |
| | 45229 | Schema.String.annotate({ |
| | 45230 | description: |
| | 45231 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 45232 | }), |
| | 45233 | Schema.Null, |
| | 45234 | ]), |
| | 45235 | ), |
| 35267 | parentThreadId: Schema.optionalKey( | 45236 | parentThreadId: Schema.optionalKey( |
| 35268 | Schema.Union([ | 45237 | Schema.Union([ |
| 35269 | Schema.String.annotate({ | 45238 | Schema.String.annotate({ |
| ... | @@ -35282,6 +45251,18 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ | ... | @@ -35282,6 +45251,18 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 35282 | preview: Schema.String.annotate({ | 45251 | preview: Schema.String.annotate({ |
| 35283 | description: "Usually the first user message in the thread, if available.", | 45252 | description: "Usually the first user message in the thread, if available.", |
| 35284 | }), | 45253 | }), |
| | 45254 | projectId: Schema.Union([ |
| | 45255 | Schema.String.annotate({ |
| | 45256 | description: "Canonical project assignment owned by app-server, if any.", |
| | 45257 | }), |
| | 45258 | Schema.Null, |
| | 45259 | ]), |
| | 45260 | reasoningEffort: Schema.optionalKey( |
| | 45261 | Schema.Union([V2ThreadReadResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 45262 | description: |
| | 45263 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 45264 | }), |
| | 45265 | ), |
| 35285 | recencyAt: Schema.optionalKey( | 45266 | recencyAt: Schema.optionalKey( |
| 35286 | Schema.Union([ | 45267 | Schema.Union([ |
| 35287 | Schema.Number.annotate({ | 45268 | Schema.Number.annotate({ |
| ... | @@ -35291,136 +45272,15 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ | ... | @@ -35291,136 +45272,15 @@ export const V2ThreadMetadataUpdateResponse__Thread = Schema.Struct({ |
| 35291 | Schema.Null, | 45272 | Schema.Null, |
| 35292 | ]), | 45273 | ]), |
| 35293 | ), | 45274 | ), |
| 35294 | sessionId: Schema.String.annotate({ | 45275 | section: Schema.optionalKey( |
| 35295 | description: "Session id shared by threads that belong to the same session tree.", | 45276 | Schema.Union([V2ThreadReadResponse__ThreadSection, Schema.Null]).annotate({ |
| 35296 | }), | 45277 | description: "The independently persisted section selected for this thread, if any.", |
| 35297 | source: Schema.suspend( | | |
| 35298 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__SessionSource> => | | |
| 35299 | V2ThreadMetadataUpdateResponse__SessionSource, | | |
| 35300 | ).annotate({ | | |
| 35301 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | | |
| 35302 | }), | | |
| 35303 | status: Schema.suspend( | | |
| 35304 | (): Schema.Codec<V2ThreadMetadataUpdateResponse__ThreadStatus> => | | |
| 35305 | V2ThreadMetadataUpdateResponse__ThreadStatus, | | |
| 35306 | ).annotate({ description: "Current runtime status for the thread." }), | | |
| 35307 | threadSource: Schema.optionalKey( | | |
| 35308 | Schema.Union([V2ThreadMetadataUpdateResponse__ThreadSource, Schema.Null]).annotate({ | | |
| 35309 | description: "Optional analytics source classification for this thread.", | | |
| 35310 | }), | 45278 | }), |
| 35311 | ), | 45279 | ), |
| 35312 | turns: Schema.Array(V2ThreadMetadataUpdateResponse__Turn).annotate({ | 45280 | sectionEnteredAt: Schema.optionalKey( |
| 35313 | description: | | |
| 35314 | "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.", | | |
| 35315 | }), | | |
| 35316 | updatedAt: Schema.Number.annotate({ | | |
| 35317 | description: "Unix timestamp (in seconds) when the thread was last updated.", | | |
| 35318 | format: "int64", | | |
| 35319 | }).check(Schema.isInt().annotate({ expected: "an integer" })), | | |
| 35320 | }).annotate({ identifier: "V2ThreadMetadataUpdateResponse__Thread" }); | | |
| 35321 | | | |
| 35322 | export type V2ThreadReadResponse__Thread = { | | |
| 35323 | readonly agentNickname?: string | null; | | |
| 35324 | readonly agentRole?: string | null; | | |
| 35325 | readonly cliVersion: string; | | |
| 35326 | readonly createdAt: number; | | |
| 35327 | readonly cwd: V2ThreadReadResponse__AbsolutePathBuf; | | |
| 35328 | readonly ephemeral: boolean; | | |
| 35329 | readonly forkedFromId?: string | null; | | |
| 35330 | readonly gitInfo?: V2ThreadReadResponse__GitInfo | null; | | |
| 35331 | readonly id: string; | | |
| 35332 | readonly modelProvider: string; | | |
| 35333 | readonly name?: string | null; | | |
| 35334 | readonly parentThreadId?: string | null; | | |
| 35335 | readonly path?: string | null; | | |
| 35336 | readonly preview: string; | | |
| 35337 | readonly recencyAt?: number | null; | | |
| 35338 | readonly sessionId: string; | | |
| 35339 | readonly source: V2ThreadReadResponse__SessionSource; | | |
| 35340 | readonly status: V2ThreadReadResponse__ThreadStatus; | | |
| 35341 | readonly threadSource?: V2ThreadReadResponse__ThreadSource | null; | | |
| 35342 | readonly turns: ReadonlyArray<V2ThreadReadResponse__Turn>; | | |
| 35343 | readonly updatedAt: number; | | |
| 35344 | }; | | |
| 35345 | export const V2ThreadReadResponse__Thread = Schema.Struct({ | | |
| 35346 | agentNickname: Schema.optionalKey( | | |
| 35347 | Schema.Union([ | | |
| 35348 | Schema.String.annotate({ | | |
| 35349 | description: | | |
| 35350 | "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.", | | |
| 35351 | }), | | |
| 35352 | Schema.Null, | | |
| 35353 | ]), | | |
| 35354 | ), | | |
| 35355 | agentRole: Schema.optionalKey( | | |
| 35356 | Schema.Union([ | | |
| 35357 | Schema.String.annotate({ | | |
| 35358 | description: "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.", | | |
| 35359 | }), | | |
| 35360 | Schema.Null, | | |
| 35361 | ]), | | |
| 35362 | ), | | |
| 35363 | cliVersion: Schema.String.annotate({ | | |
| 35364 | description: "Version of the CLI that created the thread.", | | |
| 35365 | }), | | |
| 35366 | createdAt: Schema.Number.annotate({ | | |
| 35367 | description: "Unix timestamp (in seconds) when the thread was created.", | | |
| 35368 | format: "int64", | | |
| 35369 | }).check(Schema.isInt().annotate({ expected: "an integer" })), | | |
| 35370 | cwd: Schema.suspend( | | |
| 35371 | (): Schema.Codec<V2ThreadReadResponse__AbsolutePathBuf> => | | |
| 35372 | V2ThreadReadResponse__AbsolutePathBuf, | | |
| 35373 | ).annotate({ description: "Working directory captured for the thread." }), | | |
| 35374 | ephemeral: Schema.Boolean.annotate({ | | |
| 35375 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | | |
| 35376 | }), | | |
| 35377 | forkedFromId: Schema.optionalKey( | | |
| 35378 | Schema.Union([ | | |
| 35379 | Schema.String.annotate({ | | |
| 35380 | description: "Source thread id when this thread was created by forking another thread.", | | |
| 35381 | }), | | |
| 35382 | Schema.Null, | | |
| 35383 | ]), | | |
| 35384 | ), | | |
| 35385 | gitInfo: Schema.optionalKey( | | |
| 35386 | Schema.Union([V2ThreadReadResponse__GitInfo, Schema.Null]).annotate({ | | |
| 35387 | description: "Optional Git metadata captured when the thread was created.", | | |
| 35388 | }), | | |
| 35389 | ), | | |
| 35390 | id: Schema.String.annotate({ | | |
| 35391 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | | |
| 35392 | }), | | |
| 35393 | modelProvider: Schema.String.annotate({ | | |
| 35394 | description: "Model provider used for this thread (for example, 'openai').", | | |
| 35395 | }), | | |
| 35396 | name: Schema.optionalKey( | | |
| 35397 | Schema.Union([ | | |
| 35398 | Schema.String.annotate({ description: "Optional user-facing thread title." }), | | |
| 35399 | Schema.Null, | | |
| 35400 | ]), | | |
| 35401 | ), | | |
| 35402 | parentThreadId: Schema.optionalKey( | | |
| 35403 | Schema.Union([ | | |
| 35404 | Schema.String.annotate({ | | |
| 35405 | description: | | |
| 35406 | "The ID of the parent thread. This will only be set if this thread is a subagent.", | | |
| 35407 | }), | | |
| 35408 | Schema.Null, | | |
| 35409 | ]), | | |
| 35410 | ), | | |
| 35411 | path: Schema.optionalKey( | | |
| 35412 | Schema.Union([ | | |
| 35413 | Schema.String.annotate({ description: "[UNSTABLE] Path to the thread on disk." }), | | |
| 35414 | Schema.Null, | | |
| 35415 | ]), | | |
| 35416 | ), | | |
| 35417 | preview: Schema.String.annotate({ | | |
| 35418 | description: "Usually the first user message in the thread, if available.", | | |
| 35419 | }), | | |
| 35420 | recencyAt: Schema.optionalKey( | | |
| 35421 | Schema.Union([ | 45281 | Schema.Union([ |
| 35422 | Schema.Number.annotate({ | 45282 | Schema.Number.annotate({ |
| 35423 | description: "Unix timestamp (in seconds) used for thread recency ordering.", | 45283 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| 35424 | format: "int64", | 45284 | format: "int64", |
| 35425 | }).check(Schema.isInt().annotate({ expected: "an integer" })), | 45285 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35426 | Schema.Null, | 45286 | Schema.Null, |
| ... | @@ -35444,7 +45304,7 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ | ... | @@ -35444,7 +45304,7 @@ export const V2ThreadReadResponse__Thread = Schema.Struct({ |
| 35444 | ), | 45304 | ), |
| 35445 | turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({ | 45305 | turns: Schema.Array(V2ThreadReadResponse__Turn).annotate({ |
| 35446 | description: | 45306 | description: |
| 35447 | "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.", | 45307 | "Only populated on `thread/resume`, `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.", |
| 35448 | }), | 45308 | }), |
| 35449 | updatedAt: Schema.Number.annotate({ | 45309 | updatedAt: Schema.Number.annotate({ |
| 35450 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 45310 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -35461,13 +45321,20 @@ export type V2ThreadResumeResponse__Thread = { | ... | @@ -35461,13 +45321,20 @@ export type V2ThreadResumeResponse__Thread = { |
| 35461 | readonly ephemeral: boolean; | 45321 | readonly ephemeral: boolean; |
| 35462 | readonly forkedFromId?: string | null; | 45322 | readonly forkedFromId?: string | null; |
| 35463 | readonly gitInfo?: V2ThreadResumeResponse__GitInfo | null; | 45323 | readonly gitInfo?: V2ThreadResumeResponse__GitInfo | null; |
| | 45324 | readonly historyMode?: V2ThreadResumeResponse__ThreadHistoryMode; |
| 35464 | readonly id: string; | 45325 | readonly id: string; |
| | 45326 | readonly model?: string | null; |
| 35465 | readonly modelProvider: string; | 45327 | readonly modelProvider: string; |
| 35466 | readonly name?: string | null; | 45328 | readonly name?: string | null; |
| | 45329 | readonly originator?: string | null; |
| 35467 | readonly parentThreadId?: string | null; | 45330 | readonly parentThreadId?: string | null; |
| 35468 | readonly path?: string | null; | 45331 | readonly path?: string | null; |
| 35469 | readonly preview: string; | 45332 | readonly preview: string; |
| | 45333 | readonly projectId: string | null; |
| | 45334 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 35470 | readonly recencyAt?: number | null; | 45335 | readonly recencyAt?: number | null; |
| | 45336 | readonly section?: V2ThreadResumeResponse__ThreadSection | null; |
| | 45337 | readonly sectionEnteredAt?: number | null; |
| 35471 | readonly sessionId: string; | 45338 | readonly sessionId: string; |
| 35472 | readonly source: V2ThreadResumeResponse__SessionSource; | 45339 | readonly source: V2ThreadResumeResponse__SessionSource; |
| 35473 | readonly status: V2ThreadResumeResponse__ThreadStatus; | 45340 | readonly status: V2ThreadResumeResponse__ThreadStatus; |
| ... | @@ -35520,9 +45387,27 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -35520,9 +45387,27 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 35520 | description: "Optional Git metadata captured when the thread was created.", | 45387 | description: "Optional Git metadata captured when the thread was created.", |
| 35521 | }), | 45388 | }), |
| 35522 | ), | 45389 | ), |
| | 45390 | historyMode: Schema.optionalKey( |
| | 45391 | Schema.suspend( |
| | 45392 | (): Schema.Codec<V2ThreadResumeResponse__ThreadHistoryMode> => |
| | 45393 | V2ThreadResumeResponse__ThreadHistoryMode, |
| | 45394 | ).annotate({ |
| | 45395 | description: "Persisted thread history contract selected when this thread was created.", |
| | 45396 | default: "legacy", |
| | 45397 | }), |
| | 45398 | ), |
| 35523 | id: Schema.String.annotate({ | 45399 | id: Schema.String.annotate({ |
| 35524 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 45400 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 35525 | }), | 45401 | }), |
| | 45402 | model: Schema.optionalKey( |
| | 45403 | Schema.Union([ |
| | 45404 | Schema.String.annotate({ |
| | 45405 | description: |
| | 45406 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 45407 | }), |
| | 45408 | Schema.Null, |
| | 45409 | ]), |
| | 45410 | ), |
| 35526 | modelProvider: Schema.String.annotate({ | 45411 | modelProvider: Schema.String.annotate({ |
| 35527 | description: "Model provider used for this thread (for example, 'openai').", | 45412 | description: "Model provider used for this thread (for example, 'openai').", |
| 35528 | }), | 45413 | }), |
| ... | @@ -35532,6 +45417,15 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -35532,6 +45417,15 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 35532 | Schema.Null, | 45417 | Schema.Null, |
| 35533 | ]), | 45418 | ]), |
| 35534 | ), | 45419 | ), |
| | 45420 | originator: Schema.optionalKey( |
| | 45421 | Schema.Union([ |
| | 45422 | Schema.String.annotate({ |
| | 45423 | description: |
| | 45424 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 45425 | }), |
| | 45426 | Schema.Null, |
| | 45427 | ]), |
| | 45428 | ), |
| 35535 | parentThreadId: Schema.optionalKey( | 45429 | parentThreadId: Schema.optionalKey( |
| 35536 | Schema.Union([ | 45430 | Schema.Union([ |
| 35537 | Schema.String.annotate({ | 45431 | Schema.String.annotate({ |
| ... | @@ -35550,6 +45444,18 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -35550,6 +45444,18 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 35550 | preview: Schema.String.annotate({ | 45444 | preview: Schema.String.annotate({ |
| 35551 | description: "Usually the first user message in the thread, if available.", | 45445 | description: "Usually the first user message in the thread, if available.", |
| 35552 | }), | 45446 | }), |
| | 45447 | projectId: Schema.Union([ |
| | 45448 | Schema.String.annotate({ |
| | 45449 | description: "Canonical project assignment owned by app-server, if any.", |
| | 45450 | }), |
| | 45451 | Schema.Null, |
| | 45452 | ]), |
| | 45453 | reasoningEffort: Schema.optionalKey( |
| | 45454 | Schema.Union([V2ThreadResumeResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 45455 | description: |
| | 45456 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 45457 | }), |
| | 45458 | ), |
| 35553 | recencyAt: Schema.optionalKey( | 45459 | recencyAt: Schema.optionalKey( |
| 35554 | Schema.Union([ | 45460 | Schema.Union([ |
| 35555 | Schema.Number.annotate({ | 45461 | Schema.Number.annotate({ |
| ... | @@ -35559,6 +45465,20 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -35559,6 +45465,20 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 35559 | Schema.Null, | 45465 | Schema.Null, |
| 35560 | ]), | 45466 | ]), |
| 35561 | ), | 45467 | ), |
| | 45468 | section: Schema.optionalKey( |
| | 45469 | Schema.Union([V2ThreadResumeResponse__ThreadSection, Schema.Null]).annotate({ |
| | 45470 | description: "The independently persisted section selected for this thread, if any.", |
| | 45471 | }), |
| | 45472 | ), |
| | 45473 | sectionEnteredAt: Schema.optionalKey( |
| | 45474 | Schema.Union([ |
| | 45475 | Schema.Number.annotate({ |
| | 45476 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 45477 | format: "int64", |
| | 45478 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 45479 | Schema.Null, |
| | 45480 | ]), |
| | 45481 | ), |
| 35562 | sessionId: Schema.String.annotate({ | 45482 | sessionId: Schema.String.annotate({ |
| 35563 | description: "Session id shared by threads that belong to the same session tree.", | 45483 | description: "Session id shared by threads that belong to the same session tree.", |
| 35564 | }), | 45484 | }), |
| ... | @@ -35578,7 +45498,7 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -35578,7 +45498,7 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 35578 | ), | 45498 | ), |
| 35579 | turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({ | 45499 | turns: Schema.Array(V2ThreadResumeResponse__Turn).annotate({ |
| 35580 | description: | 45500 | description: |
| 35581 | "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.", | 45501 | "Only populated on `thread/resume`, `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.", |
| 35582 | }), | 45502 | }), |
| 35583 | updatedAt: Schema.Number.annotate({ | 45503 | updatedAt: Schema.Number.annotate({ |
| 35584 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 45504 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -35586,30 +45506,37 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ | ... | @@ -35586,30 +45506,37 @@ export const V2ThreadResumeResponse__Thread = Schema.Struct({ |
| 35586 | }).check(Schema.isInt().annotate({ expected: "an integer" })), | 45506 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35587 | }).annotate({ identifier: "V2ThreadResumeResponse__Thread" }); | 45507 | }).annotate({ identifier: "V2ThreadResumeResponse__Thread" }); |
| 35588 | | 45508 | |
| 35589 | export type V2ThreadRollbackResponse__Thread = { | 45509 | export type V2ThreadRevertResponse__Thread = { |
| 35590 | readonly agentNickname?: string | null; | 45510 | readonly agentNickname?: string | null; |
| 35591 | readonly agentRole?: string | null; | 45511 | readonly agentRole?: string | null; |
| 35592 | readonly cliVersion: string; | 45512 | readonly cliVersion: string; |
| 35593 | readonly createdAt: number; | 45513 | readonly createdAt: number; |
| 35594 | readonly cwd: V2ThreadRollbackResponse__AbsolutePathBuf; | 45514 | readonly cwd: V2ThreadRevertResponse__AbsolutePathBuf; |
| 35595 | readonly ephemeral: boolean; | 45515 | readonly ephemeral: boolean; |
| 35596 | readonly forkedFromId?: string | null; | 45516 | readonly forkedFromId?: string | null; |
| 35597 | readonly gitInfo?: V2ThreadRollbackResponse__GitInfo | null; | 45517 | readonly gitInfo?: V2ThreadRevertResponse__GitInfo | null; |
| | 45518 | readonly historyMode?: V2ThreadRevertResponse__ThreadHistoryMode; |
| 35598 | readonly id: string; | 45519 | readonly id: string; |
| | 45520 | readonly model?: string | null; |
| 35599 | readonly modelProvider: string; | 45521 | readonly modelProvider: string; |
| 35600 | readonly name?: string | null; | 45522 | readonly name?: string | null; |
| | 45523 | readonly originator?: string | null; |
| 35601 | readonly parentThreadId?: string | null; | 45524 | readonly parentThreadId?: string | null; |
| 35602 | readonly path?: string | null; | 45525 | readonly path?: string | null; |
| 35603 | readonly preview: string; | 45526 | readonly preview: string; |
| | 45527 | readonly projectId: string | null; |
| | 45528 | readonly reasoningEffort?: V2ThreadRevertResponse__ReasoningEffort | null; |
| 35604 | readonly recencyAt?: number | null; | 45529 | readonly recencyAt?: number | null; |
| | 45530 | readonly section?: V2ThreadRevertResponse__ThreadSection | null; |
| | 45531 | readonly sectionEnteredAt?: number | null; |
| 35605 | readonly sessionId: string; | 45532 | readonly sessionId: string; |
| 35606 | readonly source: V2ThreadRollbackResponse__SessionSource; | 45533 | readonly source: V2ThreadRevertResponse__SessionSource; |
| 35607 | readonly status: V2ThreadRollbackResponse__ThreadStatus; | 45534 | readonly status: V2ThreadRevertResponse__ThreadStatus; |
| 35608 | readonly threadSource?: V2ThreadRollbackResponse__ThreadSource | null; | 45535 | readonly threadSource?: V2ThreadRevertResponse__ThreadSource | null; |
| 35609 | readonly turns: ReadonlyArray<V2ThreadRollbackResponse__Turn>; | 45536 | readonly turns: ReadonlyArray<V2ThreadRevertResponse__Turn>; |
| 35610 | readonly updatedAt: number; | 45537 | readonly updatedAt: number; |
| 35611 | }; | 45538 | }; |
| 35612 | export const V2ThreadRollbackResponse__Thread = Schema.Struct({ | 45539 | export const V2ThreadRevertResponse__Thread = Schema.Struct({ |
| 35613 | agentNickname: Schema.optionalKey( | 45540 | agentNickname: Schema.optionalKey( |
| 35614 | Schema.Union([ | 45541 | Schema.Union([ |
| 35615 | Schema.String.annotate({ | 45542 | Schema.String.annotate({ |
| ... | @@ -35635,8 +45562,8 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ | ... | @@ -35635,8 +45562,8 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 35635 | format: "int64", | 45562 | format: "int64", |
| 35636 | }).check(Schema.isInt().annotate({ expected: "an integer" })), | 45563 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35637 | cwd: Schema.suspend( | 45564 | cwd: Schema.suspend( |
| 35638 | (): Schema.Codec<V2ThreadRollbackResponse__AbsolutePathBuf> => | 45565 | (): Schema.Codec<V2ThreadRevertResponse__AbsolutePathBuf> => |
| 35639 | V2ThreadRollbackResponse__AbsolutePathBuf, | 45566 | V2ThreadRevertResponse__AbsolutePathBuf, |
| 35640 | ).annotate({ description: "Working directory captured for the thread." }), | 45567 | ).annotate({ description: "Working directory captured for the thread." }), |
| 35641 | ephemeral: Schema.Boolean.annotate({ | 45568 | ephemeral: Schema.Boolean.annotate({ |
| 35642 | description: "Whether the thread is ephemeral and should not be materialized on disk.", | 45569 | description: "Whether the thread is ephemeral and should not be materialized on disk.", |
| ... | @@ -35650,13 +45577,31 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ | ... | @@ -35650,13 +45577,31 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 35650 | ]), | 45577 | ]), |
| 35651 | ), | 45578 | ), |
| 35652 | gitInfo: Schema.optionalKey( | 45579 | gitInfo: Schema.optionalKey( |
| 35653 | Schema.Union([V2ThreadRollbackResponse__GitInfo, Schema.Null]).annotate({ | 45580 | Schema.Union([V2ThreadRevertResponse__GitInfo, Schema.Null]).annotate({ |
| 35654 | description: "Optional Git metadata captured when the thread was created.", | 45581 | description: "Optional Git metadata captured when the thread was created.", |
| 35655 | }), | 45582 | }), |
| 35656 | ), | 45583 | ), |
| | 45584 | historyMode: Schema.optionalKey( |
| | 45585 | Schema.suspend( |
| | 45586 | (): Schema.Codec<V2ThreadRevertResponse__ThreadHistoryMode> => |
| | 45587 | V2ThreadRevertResponse__ThreadHistoryMode, |
| | 45588 | ).annotate({ |
| | 45589 | description: "Persisted thread history contract selected when this thread was created.", |
| | 45590 | default: "legacy", |
| | 45591 | }), |
| | 45592 | ), |
| 35657 | id: Schema.String.annotate({ | 45593 | id: Schema.String.annotate({ |
| 35658 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 45594 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 35659 | }), | 45595 | }), |
| | 45596 | model: Schema.optionalKey( |
| | 45597 | Schema.Union([ |
| | 45598 | Schema.String.annotate({ |
| | 45599 | description: |
| | 45600 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 45601 | }), |
| | 45602 | Schema.Null, |
| | 45603 | ]), |
| | 45604 | ), |
| 35660 | modelProvider: Schema.String.annotate({ | 45605 | modelProvider: Schema.String.annotate({ |
| 35661 | description: "Model provider used for this thread (for example, 'openai').", | 45606 | description: "Model provider used for this thread (for example, 'openai').", |
| 35662 | }), | 45607 | }), |
| ... | @@ -35666,6 +45611,15 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ | ... | @@ -35666,6 +45611,15 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 35666 | Schema.Null, | 45611 | Schema.Null, |
| 35667 | ]), | 45612 | ]), |
| 35668 | ), | 45613 | ), |
| | 45614 | originator: Schema.optionalKey( |
| | 45615 | Schema.Union([ |
| | 45616 | Schema.String.annotate({ |
| | 45617 | description: |
| | 45618 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 45619 | }), |
| | 45620 | Schema.Null, |
| | 45621 | ]), |
| | 45622 | ), |
| 35669 | parentThreadId: Schema.optionalKey( | 45623 | parentThreadId: Schema.optionalKey( |
| 35670 | Schema.Union([ | 45624 | Schema.Union([ |
| 35671 | Schema.String.annotate({ | 45625 | Schema.String.annotate({ |
| ... | @@ -35684,6 +45638,18 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ | ... | @@ -35684,6 +45638,18 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 35684 | preview: Schema.String.annotate({ | 45638 | preview: Schema.String.annotate({ |
| 35685 | description: "Usually the first user message in the thread, if available.", | 45639 | description: "Usually the first user message in the thread, if available.", |
| 35686 | }), | 45640 | }), |
| | 45641 | projectId: Schema.Union([ |
| | 45642 | Schema.String.annotate({ |
| | 45643 | description: "Canonical project assignment owned by app-server, if any.", |
| | 45644 | }), |
| | 45645 | Schema.Null, |
| | 45646 | ]), |
| | 45647 | reasoningEffort: Schema.optionalKey( |
| | 45648 | Schema.Union([V2ThreadRevertResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 45649 | description: |
| | 45650 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 45651 | }), |
| | 45652 | ), |
| 35687 | recencyAt: Schema.optionalKey( | 45653 | recencyAt: Schema.optionalKey( |
| 35688 | Schema.Union([ | 45654 | Schema.Union([ |
| 35689 | Schema.Number.annotate({ | 45655 | Schema.Number.annotate({ |
| ... | @@ -35693,33 +45659,46 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ | ... | @@ -35693,33 +45659,46 @@ export const V2ThreadRollbackResponse__Thread = Schema.Struct({ |
| 35693 | Schema.Null, | 45659 | Schema.Null, |
| 35694 | ]), | 45660 | ]), |
| 35695 | ), | 45661 | ), |
| | 45662 | section: Schema.optionalKey( |
| | 45663 | Schema.Union([V2ThreadRevertResponse__ThreadSection, Schema.Null]).annotate({ |
| | 45664 | description: "The independently persisted section selected for this thread, if any.", |
| | 45665 | }), |
| | 45666 | ), |
| | 45667 | sectionEnteredAt: Schema.optionalKey( |
| | 45668 | Schema.Union([ |
| | 45669 | Schema.Number.annotate({ |
| | 45670 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 45671 | format: "int64", |
| | 45672 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 45673 | Schema.Null, |
| | 45674 | ]), |
| | 45675 | ), |
| 35696 | sessionId: Schema.String.annotate({ | 45676 | sessionId: Schema.String.annotate({ |
| 35697 | description: "Session id shared by threads that belong to the same session tree.", | 45677 | description: "Session id shared by threads that belong to the same session tree.", |
| 35698 | }), | 45678 | }), |
| 35699 | source: Schema.suspend( | 45679 | source: Schema.suspend( |
| 35700 | (): Schema.Codec<V2ThreadRollbackResponse__SessionSource> => | 45680 | (): Schema.Codec<V2ThreadRevertResponse__SessionSource> => |
| 35701 | V2ThreadRollbackResponse__SessionSource, | 45681 | V2ThreadRevertResponse__SessionSource, |
| 35702 | ).annotate({ | 45682 | ).annotate({ |
| 35703 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", | 45683 | description: "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).", |
| 35704 | }), | 45684 | }), |
| 35705 | status: Schema.suspend( | 45685 | status: Schema.suspend( |
| 35706 | (): Schema.Codec<V2ThreadRollbackResponse__ThreadStatus> => | 45686 | (): Schema.Codec<V2ThreadRevertResponse__ThreadStatus> => V2ThreadRevertResponse__ThreadStatus, |
| 35707 | V2ThreadRollbackResponse__ThreadStatus, | | |
| 35708 | ).annotate({ description: "Current runtime status for the thread." }), | 45687 | ).annotate({ description: "Current runtime status for the thread." }), |
| 35709 | threadSource: Schema.optionalKey( | 45688 | threadSource: Schema.optionalKey( |
| 35710 | Schema.Union([V2ThreadRollbackResponse__ThreadSource, Schema.Null]).annotate({ | 45689 | Schema.Union([V2ThreadRevertResponse__ThreadSource, Schema.Null]).annotate({ |
| 35711 | description: "Optional analytics source classification for this thread.", | 45690 | description: "Optional analytics source classification for this thread.", |
| 35712 | }), | 45691 | }), |
| 35713 | ), | 45692 | ), |
| 35714 | turns: Schema.Array(V2ThreadRollbackResponse__Turn).annotate({ | 45693 | turns: Schema.Array(V2ThreadRevertResponse__Turn).annotate({ |
| 35715 | description: | 45694 | description: |
| 35716 | "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.", | 45695 | "Only populated on `thread/resume`, `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.", |
| 35717 | }), | 45696 | }), |
| 35718 | updatedAt: Schema.Number.annotate({ | 45697 | updatedAt: Schema.Number.annotate({ |
| 35719 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 45698 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| 35720 | format: "int64", | 45699 | format: "int64", |
| 35721 | }).check(Schema.isInt().annotate({ expected: "an integer" })), | 45700 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| 35722 | }).annotate({ identifier: "V2ThreadRollbackResponse__Thread" }); | 45701 | }).annotate({ identifier: "V2ThreadRevertResponse__Thread" }); |
| 35723 | | 45702 | |
| 35724 | export type V2ThreadStartedNotification__Thread = { | 45703 | export type V2ThreadStartedNotification__Thread = { |
| 35725 | readonly agentNickname?: string | null; | 45704 | readonly agentNickname?: string | null; |
| ... | @@ -35730,13 +45709,20 @@ export type V2ThreadStartedNotification__Thread = { | ... | @@ -35730,13 +45709,20 @@ export type V2ThreadStartedNotification__Thread = { |
| 35730 | readonly ephemeral: boolean; | 45709 | readonly ephemeral: boolean; |
| 35731 | readonly forkedFromId?: string | null; | 45710 | readonly forkedFromId?: string | null; |
| 35732 | readonly gitInfo?: V2ThreadStartedNotification__GitInfo | null; | 45711 | readonly gitInfo?: V2ThreadStartedNotification__GitInfo | null; |
| | 45712 | readonly historyMode?: V2ThreadStartedNotification__ThreadHistoryMode; |
| 35733 | readonly id: string; | 45713 | readonly id: string; |
| | 45714 | readonly model?: string | null; |
| 35734 | readonly modelProvider: string; | 45715 | readonly modelProvider: string; |
| 35735 | readonly name?: string | null; | 45716 | readonly name?: string | null; |
| | 45717 | readonly originator?: string | null; |
| 35736 | readonly parentThreadId?: string | null; | 45718 | readonly parentThreadId?: string | null; |
| 35737 | readonly path?: string | null; | 45719 | readonly path?: string | null; |
| 35738 | readonly preview: string; | 45720 | readonly preview: string; |
| | 45721 | readonly projectId: string | null; |
| | 45722 | readonly reasoningEffort?: V2ThreadStartedNotification__ReasoningEffort | null; |
| 35739 | readonly recencyAt?: number | null; | 45723 | readonly recencyAt?: number | null; |
| | 45724 | readonly section?: V2ThreadStartedNotification__ThreadSection | null; |
| | 45725 | readonly sectionEnteredAt?: number | null; |
| 35740 | readonly sessionId: string; | 45726 | readonly sessionId: string; |
| 35741 | readonly source: V2ThreadStartedNotification__SessionSource; | 45727 | readonly source: V2ThreadStartedNotification__SessionSource; |
| 35742 | readonly status: V2ThreadStartedNotification__ThreadStatus; | 45728 | readonly status: V2ThreadStartedNotification__ThreadStatus; |
| ... | @@ -35789,9 +45775,27 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -35789,9 +45775,27 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 35789 | description: "Optional Git metadata captured when the thread was created.", | 45775 | description: "Optional Git metadata captured when the thread was created.", |
| 35790 | }), | 45776 | }), |
| 35791 | ), | 45777 | ), |
| | 45778 | historyMode: Schema.optionalKey( |
| | 45779 | Schema.suspend( |
| | 45780 | (): Schema.Codec<V2ThreadStartedNotification__ThreadHistoryMode> => |
| | 45781 | V2ThreadStartedNotification__ThreadHistoryMode, |
| | 45782 | ).annotate({ |
| | 45783 | description: "Persisted thread history contract selected when this thread was created.", |
| | 45784 | default: "legacy", |
| | 45785 | }), |
| | 45786 | ), |
| 35792 | id: Schema.String.annotate({ | 45787 | id: Schema.String.annotate({ |
| 35793 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 45788 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 35794 | }), | 45789 | }), |
| | 45790 | model: Schema.optionalKey( |
| | 45791 | Schema.Union([ |
| | 45792 | Schema.String.annotate({ |
| | 45793 | description: |
| | 45794 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 45795 | }), |
| | 45796 | Schema.Null, |
| | 45797 | ]), |
| | 45798 | ), |
| 35795 | modelProvider: Schema.String.annotate({ | 45799 | modelProvider: Schema.String.annotate({ |
| 35796 | description: "Model provider used for this thread (for example, 'openai').", | 45800 | description: "Model provider used for this thread (for example, 'openai').", |
| 35797 | }), | 45801 | }), |
| ... | @@ -35801,6 +45805,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -35801,6 +45805,15 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 35801 | Schema.Null, | 45805 | Schema.Null, |
| 35802 | ]), | 45806 | ]), |
| 35803 | ), | 45807 | ), |
| | 45808 | originator: Schema.optionalKey( |
| | 45809 | Schema.Union([ |
| | 45810 | Schema.String.annotate({ |
| | 45811 | description: |
| | 45812 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 45813 | }), |
| | 45814 | Schema.Null, |
| | 45815 | ]), |
| | 45816 | ), |
| 35804 | parentThreadId: Schema.optionalKey( | 45817 | parentThreadId: Schema.optionalKey( |
| 35805 | Schema.Union([ | 45818 | Schema.Union([ |
| 35806 | Schema.String.annotate({ | 45819 | Schema.String.annotate({ |
| ... | @@ -35819,6 +45832,18 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -35819,6 +45832,18 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 35819 | preview: Schema.String.annotate({ | 45832 | preview: Schema.String.annotate({ |
| 35820 | description: "Usually the first user message in the thread, if available.", | 45833 | description: "Usually the first user message in the thread, if available.", |
| 35821 | }), | 45834 | }), |
| | 45835 | projectId: Schema.Union([ |
| | 45836 | Schema.String.annotate({ |
| | 45837 | description: "Canonical project assignment owned by app-server, if any.", |
| | 45838 | }), |
| | 45839 | Schema.Null, |
| | 45840 | ]), |
| | 45841 | reasoningEffort: Schema.optionalKey( |
| | 45842 | Schema.Union([V2ThreadStartedNotification__ReasoningEffort, Schema.Null]).annotate({ |
| | 45843 | description: |
| | 45844 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 45845 | }), |
| | 45846 | ), |
| 35822 | recencyAt: Schema.optionalKey( | 45847 | recencyAt: Schema.optionalKey( |
| 35823 | Schema.Union([ | 45848 | Schema.Union([ |
| 35824 | Schema.Number.annotate({ | 45849 | Schema.Number.annotate({ |
| ... | @@ -35828,6 +45853,20 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -35828,6 +45853,20 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 35828 | Schema.Null, | 45853 | Schema.Null, |
| 35829 | ]), | 45854 | ]), |
| 35830 | ), | 45855 | ), |
| | 45856 | section: Schema.optionalKey( |
| | 45857 | Schema.Union([V2ThreadStartedNotification__ThreadSection, Schema.Null]).annotate({ |
| | 45858 | description: "The independently persisted section selected for this thread, if any.", |
| | 45859 | }), |
| | 45860 | ), |
| | 45861 | sectionEnteredAt: Schema.optionalKey( |
| | 45862 | Schema.Union([ |
| | 45863 | Schema.Number.annotate({ |
| | 45864 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 45865 | format: "int64", |
| | 45866 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 45867 | Schema.Null, |
| | 45868 | ]), |
| | 45869 | ), |
| 35831 | sessionId: Schema.String.annotate({ | 45870 | sessionId: Schema.String.annotate({ |
| 35832 | description: "Session id shared by threads that belong to the same session tree.", | 45871 | description: "Session id shared by threads that belong to the same session tree.", |
| 35833 | }), | 45872 | }), |
| ... | @@ -35848,7 +45887,7 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ | ... | @@ -35848,7 +45887,7 @@ export const V2ThreadStartedNotification__Thread = Schema.Struct({ |
| 35848 | ), | 45887 | ), |
| 35849 | turns: Schema.Array(V2ThreadStartedNotification__Turn).annotate({ | 45888 | turns: Schema.Array(V2ThreadStartedNotification__Turn).annotate({ |
| 35850 | description: | 45889 | description: |
| 35851 | "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.", | 45890 | "Only populated on `thread/resume`, `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.", |
| 35852 | }), | 45891 | }), |
| 35853 | updatedAt: Schema.Number.annotate({ | 45892 | updatedAt: Schema.Number.annotate({ |
| 35854 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 45893 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -35865,13 +45904,20 @@ export type V2ThreadStartResponse__Thread = { | ... | @@ -35865,13 +45904,20 @@ export type V2ThreadStartResponse__Thread = { |
| 35865 | readonly ephemeral: boolean; | 45904 | readonly ephemeral: boolean; |
| 35866 | readonly forkedFromId?: string | null; | 45905 | readonly forkedFromId?: string | null; |
| 35867 | readonly gitInfo?: V2ThreadStartResponse__GitInfo | null; | 45906 | readonly gitInfo?: V2ThreadStartResponse__GitInfo | null; |
| | 45907 | readonly historyMode?: V2ThreadStartResponse__ThreadHistoryMode; |
| 35868 | readonly id: string; | 45908 | readonly id: string; |
| | 45909 | readonly model?: string | null; |
| 35869 | readonly modelProvider: string; | 45910 | readonly modelProvider: string; |
| 35870 | readonly name?: string | null; | 45911 | readonly name?: string | null; |
| | 45912 | readonly originator?: string | null; |
| 35871 | readonly parentThreadId?: string | null; | 45913 | readonly parentThreadId?: string | null; |
| 35872 | readonly path?: string | null; | 45914 | readonly path?: string | null; |
| 35873 | readonly preview: string; | 45915 | readonly preview: string; |
| | 45916 | readonly projectId: string | null; |
| | 45917 | readonly reasoningEffort?: V2ThreadStartResponse__ReasoningEffort | null; |
| 35874 | readonly recencyAt?: number | null; | 45918 | readonly recencyAt?: number | null; |
| | 45919 | readonly section?: V2ThreadStartResponse__ThreadSection | null; |
| | 45920 | readonly sectionEnteredAt?: number | null; |
| 35875 | readonly sessionId: string; | 45921 | readonly sessionId: string; |
| 35876 | readonly source: V2ThreadStartResponse__SessionSource; | 45922 | readonly source: V2ThreadStartResponse__SessionSource; |
| 35877 | readonly status: V2ThreadStartResponse__ThreadStatus; | 45923 | readonly status: V2ThreadStartResponse__ThreadStatus; |
| ... | @@ -35924,9 +45970,27 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -35924,9 +45970,27 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 35924 | description: "Optional Git metadata captured when the thread was created.", | 45970 | description: "Optional Git metadata captured when the thread was created.", |
| 35925 | }), | 45971 | }), |
| 35926 | ), | 45972 | ), |
| | 45973 | historyMode: Schema.optionalKey( |
| | 45974 | Schema.suspend( |
| | 45975 | (): Schema.Codec<V2ThreadStartResponse__ThreadHistoryMode> => |
| | 45976 | V2ThreadStartResponse__ThreadHistoryMode, |
| | 45977 | ).annotate({ |
| | 45978 | description: "Persisted thread history contract selected when this thread was created.", |
| | 45979 | default: "legacy", |
| | 45980 | }), |
| | 45981 | ), |
| 35927 | id: Schema.String.annotate({ | 45982 | id: Schema.String.annotate({ |
| 35928 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 45983 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 35929 | }), | 45984 | }), |
| | 45985 | model: Schema.optionalKey( |
| | 45986 | Schema.Union([ |
| | 45987 | Schema.String.annotate({ |
| | 45988 | description: |
| | 45989 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 45990 | }), |
| | 45991 | Schema.Null, |
| | 45992 | ]), |
| | 45993 | ), |
| 35930 | modelProvider: Schema.String.annotate({ | 45994 | modelProvider: Schema.String.annotate({ |
| 35931 | description: "Model provider used for this thread (for example, 'openai').", | 45995 | description: "Model provider used for this thread (for example, 'openai').", |
| 35932 | }), | 45996 | }), |
| ... | @@ -35936,6 +46000,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -35936,6 +46000,15 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 35936 | Schema.Null, | 46000 | Schema.Null, |
| 35937 | ]), | 46001 | ]), |
| 35938 | ), | 46002 | ), |
| | 46003 | originator: Schema.optionalKey( |
| | 46004 | Schema.Union([ |
| | 46005 | Schema.String.annotate({ |
| | 46006 | description: |
| | 46007 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 46008 | }), |
| | 46009 | Schema.Null, |
| | 46010 | ]), |
| | 46011 | ), |
| 35939 | parentThreadId: Schema.optionalKey( | 46012 | parentThreadId: Schema.optionalKey( |
| 35940 | Schema.Union([ | 46013 | Schema.Union([ |
| 35941 | Schema.String.annotate({ | 46014 | Schema.String.annotate({ |
| ... | @@ -35954,6 +46027,18 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -35954,6 +46027,18 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 35954 | preview: Schema.String.annotate({ | 46027 | preview: Schema.String.annotate({ |
| 35955 | description: "Usually the first user message in the thread, if available.", | 46028 | description: "Usually the first user message in the thread, if available.", |
| 35956 | }), | 46029 | }), |
| | 46030 | projectId: Schema.Union([ |
| | 46031 | Schema.String.annotate({ |
| | 46032 | description: "Canonical project assignment owned by app-server, if any.", |
| | 46033 | }), |
| | 46034 | Schema.Null, |
| | 46035 | ]), |
| | 46036 | reasoningEffort: Schema.optionalKey( |
| | 46037 | Schema.Union([V2ThreadStartResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 46038 | description: |
| | 46039 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 46040 | }), |
| | 46041 | ), |
| 35957 | recencyAt: Schema.optionalKey( | 46042 | recencyAt: Schema.optionalKey( |
| 35958 | Schema.Union([ | 46043 | Schema.Union([ |
| 35959 | Schema.Number.annotate({ | 46044 | Schema.Number.annotate({ |
| ... | @@ -35963,6 +46048,20 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -35963,6 +46048,20 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 35963 | Schema.Null, | 46048 | Schema.Null, |
| 35964 | ]), | 46049 | ]), |
| 35965 | ), | 46050 | ), |
| | 46051 | section: Schema.optionalKey( |
| | 46052 | Schema.Union([V2ThreadStartResponse__ThreadSection, Schema.Null]).annotate({ |
| | 46053 | description: "The independently persisted section selected for this thread, if any.", |
| | 46054 | }), |
| | 46055 | ), |
| | 46056 | sectionEnteredAt: Schema.optionalKey( |
| | 46057 | Schema.Union([ |
| | 46058 | Schema.Number.annotate({ |
| | 46059 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 46060 | format: "int64", |
| | 46061 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 46062 | Schema.Null, |
| | 46063 | ]), |
| | 46064 | ), |
| 35966 | sessionId: Schema.String.annotate({ | 46065 | sessionId: Schema.String.annotate({ |
| 35967 | description: "Session id shared by threads that belong to the same session tree.", | 46066 | description: "Session id shared by threads that belong to the same session tree.", |
| 35968 | }), | 46067 | }), |
| ... | @@ -35981,7 +46080,7 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ | ... | @@ -35981,7 +46080,7 @@ export const V2ThreadStartResponse__Thread = Schema.Struct({ |
| 35981 | ), | 46080 | ), |
| 35982 | turns: Schema.Array(V2ThreadStartResponse__Turn).annotate({ | 46081 | turns: Schema.Array(V2ThreadStartResponse__Turn).annotate({ |
| 35983 | description: | 46082 | description: |
| 35984 | "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.", | 46083 | "Only populated on `thread/resume`, `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.", |
| 35985 | }), | 46084 | }), |
| 35986 | updatedAt: Schema.Number.annotate({ | 46085 | updatedAt: Schema.Number.annotate({ |
| 35987 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 46086 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -35998,13 +46097,20 @@ export type V2ThreadUnarchiveResponse__Thread = { | ... | @@ -35998,13 +46097,20 @@ export type V2ThreadUnarchiveResponse__Thread = { |
| 35998 | readonly ephemeral: boolean; | 46097 | readonly ephemeral: boolean; |
| 35999 | readonly forkedFromId?: string | null; | 46098 | readonly forkedFromId?: string | null; |
| 36000 | readonly gitInfo?: V2ThreadUnarchiveResponse__GitInfo | null; | 46099 | readonly gitInfo?: V2ThreadUnarchiveResponse__GitInfo | null; |
| | 46100 | readonly historyMode?: V2ThreadUnarchiveResponse__ThreadHistoryMode; |
| 36001 | readonly id: string; | 46101 | readonly id: string; |
| | 46102 | readonly model?: string | null; |
| 36002 | readonly modelProvider: string; | 46103 | readonly modelProvider: string; |
| 36003 | readonly name?: string | null; | 46104 | readonly name?: string | null; |
| | 46105 | readonly originator?: string | null; |
| 36004 | readonly parentThreadId?: string | null; | 46106 | readonly parentThreadId?: string | null; |
| 36005 | readonly path?: string | null; | 46107 | readonly path?: string | null; |
| 36006 | readonly preview: string; | 46108 | readonly preview: string; |
| | 46109 | readonly projectId: string | null; |
| | 46110 | readonly reasoningEffort?: V2ThreadUnarchiveResponse__ReasoningEffort | null; |
| 36007 | readonly recencyAt?: number | null; | 46111 | readonly recencyAt?: number | null; |
| | 46112 | readonly section?: V2ThreadUnarchiveResponse__ThreadSection | null; |
| | 46113 | readonly sectionEnteredAt?: number | null; |
| 36008 | readonly sessionId: string; | 46114 | readonly sessionId: string; |
| 36009 | readonly source: V2ThreadUnarchiveResponse__SessionSource; | 46115 | readonly source: V2ThreadUnarchiveResponse__SessionSource; |
| 36010 | readonly status: V2ThreadUnarchiveResponse__ThreadStatus; | 46116 | readonly status: V2ThreadUnarchiveResponse__ThreadStatus; |
| ... | @@ -36057,9 +46163,27 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -36057,9 +46163,27 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 36057 | description: "Optional Git metadata captured when the thread was created.", | 46163 | description: "Optional Git metadata captured when the thread was created.", |
| 36058 | }), | 46164 | }), |
| 36059 | ), | 46165 | ), |
| | 46166 | historyMode: Schema.optionalKey( |
| | 46167 | Schema.suspend( |
| | 46168 | (): Schema.Codec<V2ThreadUnarchiveResponse__ThreadHistoryMode> => |
| | 46169 | V2ThreadUnarchiveResponse__ThreadHistoryMode, |
| | 46170 | ).annotate({ |
| | 46171 | description: "Persisted thread history contract selected when this thread was created.", |
| | 46172 | default: "legacy", |
| | 46173 | }), |
| | 46174 | ), |
| 36060 | id: Schema.String.annotate({ | 46175 | id: Schema.String.annotate({ |
| 36061 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", | 46176 | description: "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 36062 | }), | 46177 | }), |
| | 46178 | model: Schema.optionalKey( |
| | 46179 | Schema.Union([ |
| | 46180 | Schema.String.annotate({ |
| | 46181 | description: |
| | 46182 | "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| | 46183 | }), |
| | 46184 | Schema.Null, |
| | 46185 | ]), |
| | 46186 | ), |
| 36063 | modelProvider: Schema.String.annotate({ | 46187 | modelProvider: Schema.String.annotate({ |
| 36064 | description: "Model provider used for this thread (for example, 'openai').", | 46188 | description: "Model provider used for this thread (for example, 'openai').", |
| 36065 | }), | 46189 | }), |
| ... | @@ -36069,6 +46193,15 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -36069,6 +46193,15 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 36069 | Schema.Null, | 46193 | Schema.Null, |
| 36070 | ]), | 46194 | ]), |
| 36071 | ), | 46195 | ), |
| | 46196 | originator: Schema.optionalKey( |
| | 46197 | Schema.Union([ |
| | 46198 | Schema.String.annotate({ |
| | 46199 | description: |
| | 46200 | "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| | 46201 | }), |
| | 46202 | Schema.Null, |
| | 46203 | ]), |
| | 46204 | ), |
| 36072 | parentThreadId: Schema.optionalKey( | 46205 | parentThreadId: Schema.optionalKey( |
| 36073 | Schema.Union([ | 46206 | Schema.Union([ |
| 36074 | Schema.String.annotate({ | 46207 | Schema.String.annotate({ |
| ... | @@ -36087,6 +46220,18 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -36087,6 +46220,18 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 36087 | preview: Schema.String.annotate({ | 46220 | preview: Schema.String.annotate({ |
| 36088 | description: "Usually the first user message in the thread, if available.", | 46221 | description: "Usually the first user message in the thread, if available.", |
| 36089 | }), | 46222 | }), |
| | 46223 | projectId: Schema.Union([ |
| | 46224 | Schema.String.annotate({ |
| | 46225 | description: "Canonical project assignment owned by app-server, if any.", |
| | 46226 | }), |
| | 46227 | Schema.Null, |
| | 46228 | ]), |
| | 46229 | reasoningEffort: Schema.optionalKey( |
| | 46230 | Schema.Union([V2ThreadUnarchiveResponse__ReasoningEffort, Schema.Null]).annotate({ |
| | 46231 | description: |
| | 46232 | "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry.", |
| | 46233 | }), |
| | 46234 | ), |
| 36090 | recencyAt: Schema.optionalKey( | 46235 | recencyAt: Schema.optionalKey( |
| 36091 | Schema.Union([ | 46236 | Schema.Union([ |
| 36092 | Schema.Number.annotate({ | 46237 | Schema.Number.annotate({ |
| ... | @@ -36096,6 +46241,20 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -36096,6 +46241,20 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 36096 | Schema.Null, | 46241 | Schema.Null, |
| 36097 | ]), | 46242 | ]), |
| 36098 | ), | 46243 | ), |
| | 46244 | section: Schema.optionalKey( |
| | 46245 | Schema.Union([V2ThreadUnarchiveResponse__ThreadSection, Schema.Null]).annotate({ |
| | 46246 | description: "The independently persisted section selected for this thread, if any.", |
| | 46247 | }), |
| | 46248 | ), |
| | 46249 | sectionEnteredAt: Schema.optionalKey( |
| | 46250 | Schema.Union([ |
| | 46251 | Schema.Number.annotate({ |
| | 46252 | description: "Unix timestamp in seconds when the thread entered its current section.", |
| | 46253 | format: "int64", |
| | 46254 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 46255 | Schema.Null, |
| | 46256 | ]), |
| | 46257 | ), |
| 36099 | sessionId: Schema.String.annotate({ | 46258 | sessionId: Schema.String.annotate({ |
| 36100 | description: "Session id shared by threads that belong to the same session tree.", | 46259 | description: "Session id shared by threads that belong to the same session tree.", |
| 36101 | }), | 46260 | }), |
| ... | @@ -36116,7 +46275,7 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ | ... | @@ -36116,7 +46275,7 @@ export const V2ThreadUnarchiveResponse__Thread = Schema.Struct({ |
| 36116 | ), | 46275 | ), |
| 36117 | turns: Schema.Array(V2ThreadUnarchiveResponse__Turn).annotate({ | 46276 | turns: Schema.Array(V2ThreadUnarchiveResponse__Turn).annotate({ |
| 36118 | description: | 46277 | description: |
| 36119 | "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.", | 46278 | "Only populated on `thread/resume`, `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.", |
| 36120 | }), | 46279 | }), |
| 36121 | updatedAt: Schema.Number.annotate({ | 46280 | updatedAt: Schema.Number.annotate({ |
| 36122 | description: "Unix timestamp (in seconds) when the thread was last updated.", | 46281 | description: "Unix timestamp (in seconds) when the thread was last updated.", |
| ... | @@ -36156,7 +46315,7 @@ export const ServerNotification__ThreadStartedNotification = Schema.Struct({ | ... | @@ -36156,7 +46315,7 @@ export const ServerNotification__ThreadStartedNotification = Schema.Struct({ |
| 36156 | export type ServerNotification__GuardianApprovalReviewAction = | 46315 | export type ServerNotification__GuardianApprovalReviewAction = |
| 36157 | | { | 46316 | | { |
| 36158 | readonly command: string; | 46317 | readonly command: string; |
| 36159 | readonly cwd: ServerNotification__AbsolutePathBuf; | 46318 | readonly cwd: ServerNotification__LegacyAppPathString; |
| 36160 | readonly source: ServerNotification__GuardianCommandSource; | 46319 | readonly source: ServerNotification__GuardianCommandSource; |
| 36161 | readonly type: "command"; | 46320 | readonly type: "command"; |
| 36162 | } | 46321 | } |
| ... | @@ -36168,8 +46327,15 @@ export type ServerNotification__GuardianApprovalReviewAction = | ... | @@ -36168,8 +46327,15 @@ export type ServerNotification__GuardianApprovalReviewAction = |
| 36168 | readonly type: "execve"; | 46327 | readonly type: "execve"; |
| 36169 | } | 46328 | } |
| 36170 | | { | 46329 | | { |
| 36171 | readonly cwd: ServerNotification__AbsolutePathBuf; | 46330 | readonly approvalId: string; |
| 36172 | readonly files: ReadonlyArray<ServerNotification__AbsolutePathBuf>; | 46331 | readonly cwd: ServerNotification__LegacyAppPathString; |
| | 46332 | readonly processId: string; |
| | 46333 | readonly stdin: string; |
| | 46334 | readonly type: "writeStdin"; |
| | 46335 | } |
| | 46336 | | { |
| | 46337 | readonly cwd: ServerNotification__LegacyAppPathString; |
| | 46338 | readonly files: ReadonlyArray<ServerNotification__LegacyAppPathString>; |
| 36173 | readonly type: "applyPatch"; | 46339 | readonly type: "applyPatch"; |
| 36174 | } | 46340 | } |
| 36175 | | { | 46341 | | { |
| ... | @@ -36196,7 +46362,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( | ... | @@ -36196,7 +46362,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( |
| 36196 | [ | 46362 | [ |
| 36197 | Schema.Struct({ | 46363 | Schema.Struct({ |
| 36198 | command: Schema.String, | 46364 | command: Schema.String, |
| 36199 | cwd: ServerNotification__AbsolutePathBuf, | 46365 | cwd: ServerNotification__LegacyAppPathString, |
| 36200 | source: ServerNotification__GuardianCommandSource, | 46366 | source: ServerNotification__GuardianCommandSource, |
| 36201 | type: Schema.Literal("command").annotate({ | 46367 | type: Schema.Literal("command").annotate({ |
| 36202 | title: "CommandGuardianApprovalReviewActionType", | 46368 | title: "CommandGuardianApprovalReviewActionType", |
| ... | @@ -36210,8 +46376,20 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( | ... | @@ -36210,8 +46376,20 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( |
| 36210 | type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }), | 46376 | type: Schema.Literal("execve").annotate({ title: "ExecveGuardianApprovalReviewActionType" }), |
| 36211 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), | 46377 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), |
| 36212 | Schema.Struct({ | 46378 | Schema.Struct({ |
| 36213 | cwd: ServerNotification__AbsolutePathBuf, | 46379 | approvalId: Schema.String, |
| 36214 | files: Schema.Array(ServerNotification__AbsolutePathBuf), | 46380 | cwd: ServerNotification__LegacyAppPathString, |
| | 46381 | processId: Schema.String, |
| | 46382 | stdin: Schema.String, |
| | 46383 | type: Schema.Literal("writeStdin").annotate({ |
| | 46384 | title: "WriteStdinGuardianApprovalReviewActionType", |
| | 46385 | }), |
| | 46386 | }).annotate({ |
| | 46387 | title: "WriteStdinGuardianApprovalReviewAction", |
| | 46388 | description: "A child approval for input to an existing command execution item.", |
| | 46389 | }), |
| | 46390 | Schema.Struct({ |
| | 46391 | cwd: ServerNotification__LegacyAppPathString, |
| | 46392 | files: Schema.Array(ServerNotification__LegacyAppPathString), |
| 36215 | type: Schema.Literal("applyPatch").annotate({ | 46393 | type: Schema.Literal("applyPatch").annotate({ |
| 36216 | title: "ApplyPatchGuardianApprovalReviewActionType", | 46394 | title: "ApplyPatchGuardianApprovalReviewActionType", |
| 36217 | }), | 46395 | }), |
| ... | @@ -36253,7 +46431,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( | ... | @@ -36253,7 +46431,7 @@ export const ServerNotification__GuardianApprovalReviewAction = Schema.Union( |
| 36253 | ).annotate({ identifier: "ServerNotification__GuardianApprovalReviewAction" }); | 46431 | ).annotate({ identifier: "ServerNotification__GuardianApprovalReviewAction" }); |
| 36254 | | 46432 | |
| 36255 | export type ServerRequest__PermissionsRequestApprovalParams = { | 46433 | export type ServerRequest__PermissionsRequestApprovalParams = { |
| 36256 | readonly cwd: ServerRequest__AbsolutePathBuf; | 46434 | readonly cwd: ServerRequest__LegacyAppPathString; |
| 36257 | readonly environmentId?: string | null; | 46435 | readonly environmentId?: string | null; |
| 36258 | readonly itemId: string; | 46436 | readonly itemId: string; |
| 36259 | readonly permissions: ServerRequest__RequestPermissionProfile; | 46437 | readonly permissions: ServerRequest__RequestPermissionProfile; |
| ... | @@ -36263,7 +46441,7 @@ export type ServerRequest__PermissionsRequestApprovalParams = { | ... | @@ -36263,7 +46441,7 @@ export type ServerRequest__PermissionsRequestApprovalParams = { |
| 36263 | readonly turnId: string; | 46441 | readonly turnId: string; |
| 36264 | }; | 46442 | }; |
| 36265 | export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({ | 46443 | export const ServerRequest__PermissionsRequestApprovalParams = Schema.Struct({ |
| 36266 | cwd: ServerRequest__AbsolutePathBuf, | 46444 | cwd: ServerRequest__LegacyAppPathString, |
| 36267 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 46445 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 36268 | itemId: Schema.String, | 46446 | itemId: Schema.String, |
| 36269 | permissions: ServerRequest__RequestPermissionProfile, | 46447 | permissions: ServerRequest__RequestPermissionProfile, |
| ... | @@ -36296,7 +46474,7 @@ export const ServerRequest__McpElicitationSchema = Schema.Struct({ | ... | @@ -36296,7 +46474,7 @@ export const ServerRequest__McpElicitationSchema = Schema.Struct({ |
| 36296 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction = | 46474 | export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalReviewAction = |
| 36297 | | { | 46475 | | { |
| 36298 | readonly command: string; | 46476 | readonly command: string; |
| 36299 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf; | 46477 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString; |
| 36300 | readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource; | 46478 | readonly source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource; |
| 36301 | readonly type: "command"; | 46479 | readonly type: "command"; |
| 36302 | } | 46480 | } |
| ... | @@ -36308,8 +46486,15 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR | ... | @@ -36308,8 +46486,15 @@ export type V2ItemGuardianApprovalReviewCompletedNotification__GuardianApprovalR |
| 36308 | readonly type: "execve"; | 46486 | readonly type: "execve"; |
| 36309 | } | 46487 | } |
| 36310 | | { | 46488 | | { |
| 36311 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf; | 46489 | readonly approvalId: string; |
| 36312 | readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf>; | 46490 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString; |
| | 46491 | readonly processId: string; |
| | 46492 | readonly stdin: string; |
| | 46493 | readonly type: "writeStdin"; |
| | 46494 | } |
| | 46495 | | { |
| | 46496 | readonly cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString; |
| | 46497 | readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString>; |
| 36313 | readonly type: "applyPatch"; | 46498 | readonly type: "applyPatch"; |
| 36314 | } | 46499 | } |
| 36315 | | { | 46500 | | { |
| ... | @@ -36337,7 +46522,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval | ... | @@ -36337,7 +46522,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval |
| 36337 | [ | 46522 | [ |
| 36338 | Schema.Struct({ | 46523 | Schema.Struct({ |
| 36339 | command: Schema.String, | 46524 | command: Schema.String, |
| 36340 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf, | 46525 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, |
| 36341 | source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource, | 46526 | source: V2ItemGuardianApprovalReviewCompletedNotification__GuardianCommandSource, |
| 36342 | type: Schema.Literal("command").annotate({ | 46527 | type: Schema.Literal("command").annotate({ |
| 36343 | title: "CommandGuardianApprovalReviewActionType", | 46528 | title: "CommandGuardianApprovalReviewActionType", |
| ... | @@ -36353,8 +46538,20 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval | ... | @@ -36353,8 +46538,20 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval |
| 36353 | }), | 46538 | }), |
| 36354 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), | 46539 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), |
| 36355 | Schema.Struct({ | 46540 | Schema.Struct({ |
| 36356 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf, | 46541 | approvalId: Schema.String, |
| 36357 | files: Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__AbsolutePathBuf), | 46542 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, |
| | 46543 | processId: Schema.String, |
| | 46544 | stdin: Schema.String, |
| | 46545 | type: Schema.Literal("writeStdin").annotate({ |
| | 46546 | title: "WriteStdinGuardianApprovalReviewActionType", |
| | 46547 | }), |
| | 46548 | }).annotate({ |
| | 46549 | title: "WriteStdinGuardianApprovalReviewAction", |
| | 46550 | description: "A child approval for input to an existing command execution item.", |
| | 46551 | }), |
| | 46552 | Schema.Struct({ |
| | 46553 | cwd: V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString, |
| | 46554 | files: Schema.Array(V2ItemGuardianApprovalReviewCompletedNotification__LegacyAppPathString), |
| 36358 | type: Schema.Literal("applyPatch").annotate({ | 46555 | type: Schema.Literal("applyPatch").annotate({ |
| 36359 | title: "ApplyPatchGuardianApprovalReviewActionType", | 46556 | title: "ApplyPatchGuardianApprovalReviewActionType", |
| 36360 | }), | 46557 | }), |
| ... | @@ -36400,7 +46597,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval | ... | @@ -36400,7 +46597,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification__GuardianApproval |
| 36400 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction = | 46597 | export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalReviewAction = |
| 36401 | | { | 46598 | | { |
| 36402 | readonly command: string; | 46599 | readonly command: string; |
| 36403 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf; | 46600 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString; |
| 36404 | readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource; | 46601 | readonly source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource; |
| 36405 | readonly type: "command"; | 46602 | readonly type: "command"; |
| 36406 | } | 46603 | } |
| ... | @@ -36412,8 +46609,15 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev | ... | @@ -36412,8 +46609,15 @@ export type V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRev |
| 36412 | readonly type: "execve"; | 46609 | readonly type: "execve"; |
| 36413 | } | 46610 | } |
| 36414 | | { | 46611 | | { |
| 36415 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf; | 46612 | readonly approvalId: string; |
| 36416 | readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf>; | 46613 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString; |
| | 46614 | readonly processId: string; |
| | 46615 | readonly stdin: string; |
| | 46616 | readonly type: "writeStdin"; |
| | 46617 | } |
| | 46618 | | { |
| | 46619 | readonly cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString; |
| | 46620 | readonly files: ReadonlyArray<V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString>; |
| 36417 | readonly type: "applyPatch"; | 46621 | readonly type: "applyPatch"; |
| 36418 | } | 46622 | } |
| 36419 | | { | 46623 | | { |
| ... | @@ -36441,7 +46645,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe | ... | @@ -36441,7 +46645,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe |
| 36441 | [ | 46645 | [ |
| 36442 | Schema.Struct({ | 46646 | Schema.Struct({ |
| 36443 | command: Schema.String, | 46647 | command: Schema.String, |
| 36444 | cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf, | 46648 | cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString, |
| 36445 | source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource, | 46649 | source: V2ItemGuardianApprovalReviewStartedNotification__GuardianCommandSource, |
| 36446 | type: Schema.Literal("command").annotate({ | 46650 | type: Schema.Literal("command").annotate({ |
| 36447 | title: "CommandGuardianApprovalReviewActionType", | 46651 | title: "CommandGuardianApprovalReviewActionType", |
| ... | @@ -36457,8 +46661,20 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe | ... | @@ -36457,8 +46661,20 @@ export const V2ItemGuardianApprovalReviewStartedNotification__GuardianApprovalRe |
| 36457 | }), | 46661 | }), |
| 36458 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), | 46662 | }).annotate({ title: "ExecveGuardianApprovalReviewAction" }), |
| 36459 | Schema.Struct({ | 46663 | Schema.Struct({ |
| 36460 | cwd: V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf, | 46664 | approvalId: Schema.String, |
| 36461 | files: Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__AbsolutePathBuf), | 46665 | cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString, |
| | 46666 | processId: Schema.String, |
| | 46667 | stdin: Schema.String, |
| | 46668 | type: Schema.Literal("writeStdin").annotate({ |
| | 46669 | title: "WriteStdinGuardianApprovalReviewActionType", |
| | 46670 | }), |
| | 46671 | }).annotate({ |
| | 46672 | title: "WriteStdinGuardianApprovalReviewAction", |
| | 46673 | description: "A child approval for input to an existing command execution item.", |
| | 46674 | }), |
| | 46675 | Schema.Struct({ |
| | 46676 | cwd: V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString, |
| | 46677 | files: Schema.Array(V2ItemGuardianApprovalReviewStartedNotification__LegacyAppPathString), |
| 36462 | type: Schema.Literal("applyPatch").annotate({ | 46678 | type: Schema.Literal("applyPatch").annotate({ |
| 36463 | title: "ApplyPatchGuardianApprovalReviewActionType", | 46679 | title: "ApplyPatchGuardianApprovalReviewActionType", |
| 36464 | }), | 46680 | }), |
| ... | @@ -36522,7 +46738,7 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = | ... | @@ -36522,7 +46738,7 @@ export const ServerNotification__ItemGuardianApprovalReviewStartedNotification = |
| 36522 | Schema.Union([ | 46738 | Schema.Union([ |
| 36523 | Schema.String.annotate({ | 46739 | Schema.String.annotate({ |
| 36524 | description: | 46740 | description: |
| 36525 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", | 46741 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 36526 | }), | 46742 | }), |
| 36527 | Schema.Null, | 46743 | Schema.Null, |
| 36528 | ]), | 46744 | ]), |
| ... | @@ -36563,7 +46779,7 @@ export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification | ... | @@ -36563,7 +46779,7 @@ export const ServerNotification__ItemGuardianApprovalReviewCompletedNotification |
| 36563 | Schema.Union([ | 46779 | Schema.Union([ |
| 36564 | Schema.String.annotate({ | 46780 | Schema.String.annotate({ |
| 36565 | description: | 46781 | description: |
| 36566 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", | 46782 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 36567 | }), | 46783 | }), |
| 36568 | Schema.Null, | 46784 | Schema.Null, |
| 36569 | ]), | 46785 | ]), |
| ... | @@ -36595,6 +46811,15 @@ export type ServerRequest__McpServerElicitationRequestParams = | ... | @@ -36595,6 +46811,15 @@ export type ServerRequest__McpServerElicitationRequestParams = |
| 36595 | readonly mode: "openai/form"; | 46811 | readonly mode: "openai/form"; |
| 36596 | readonly requestedSchema: Schema.Json; | 46812 | readonly requestedSchema: Schema.Json; |
| 36597 | } | 46813 | } |
| | 46814 | | { |
| | 46815 | readonly serverName: string; |
| | 46816 | readonly threadId: string; |
| | 46817 | readonly turnId?: string | null; |
| | 46818 | readonly _meta?: Schema.Json; |
| | 46819 | readonly message: string; |
| | 46820 | readonly mode: "openaiForm"; |
| | 46821 | readonly requestedSchema: Schema.Json; |
| | 46822 | } |
| 36598 | | { | 46823 | | { |
| 36599 | readonly serverName: string; | 46824 | readonly serverName: string; |
| 36600 | readonly threadId: string; | 46825 | readonly threadId: string; |
| ... | @@ -36641,6 +46866,23 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( | ... | @@ -36641,6 +46866,23 @@ export const ServerRequest__McpServerElicitationRequestParams = Schema.Union( |
| 36641 | mode: Schema.Literal("openai/form"), | 46866 | mode: Schema.Literal("openai/form"), |
| 36642 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), | 46867 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| 36643 | }), | 46868 | }), |
| | 46869 | Schema.Struct({ |
| | 46870 | serverName: Schema.String, |
| | 46871 | threadId: Schema.String, |
| | 46872 | turnId: Schema.optionalKey( |
| | 46873 | Schema.Union([ |
| | 46874 | Schema.String.annotate({ |
| | 46875 | description: |
| | 46876 | "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.", |
| | 46877 | }), |
| | 46878 | Schema.Null, |
| | 46879 | ]), |
| | 46880 | ), |
| | 46881 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 46882 | message: Schema.String, |
| | 46883 | mode: Schema.Literal("openaiForm"), |
| | 46884 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| | 46885 | }), |
| 36644 | Schema.Struct({ | 46886 | Schema.Struct({ |
| 36645 | serverName: Schema.String, | 46887 | serverName: Schema.String, |
| 36646 | threadId: Schema.String, | 46888 | threadId: Schema.String, |
| ... | @@ -36813,6 +47055,26 @@ export type ClientRequest = | ... | @@ -36813,6 +47055,26 @@ export type ClientRequest = |
| 36813 | readonly method: "thread/metadata/update"; | 47055 | readonly method: "thread/metadata/update"; |
| 36814 | readonly params: ClientRequest__ThreadMetadataUpdateParams; | 47056 | readonly params: ClientRequest__ThreadMetadataUpdateParams; |
| 36815 | } | 47057 | } |
| | 47058 | | { |
| | 47059 | readonly id: ClientRequest__RequestId; |
| | 47060 | readonly method: "thread/attachment/add"; |
| | 47061 | readonly params: ClientRequest__ThreadAttachmentAddParams; |
| | 47062 | } |
| | 47063 | | { |
| | 47064 | readonly id: ClientRequest__RequestId; |
| | 47065 | readonly method: "thread/attachment/list"; |
| | 47066 | readonly params: ClientRequest__ThreadAttachmentListParams; |
| | 47067 | } |
| | 47068 | | { |
| | 47069 | readonly id: ClientRequest__RequestId; |
| | 47070 | readonly method: "thread/attachment/remove"; |
| | 47071 | readonly params: ClientRequest__ThreadAttachmentRemoveParams; |
| | 47072 | } |
| | 47073 | | { |
| | 47074 | readonly id: ClientRequest__RequestId; |
| | 47075 | readonly method: "thread/section/move"; |
| | 47076 | readonly params: ClientRequest__ThreadSectionMoveParams; |
| | 47077 | } |
| 36816 | | { | 47078 | | { |
| 36817 | readonly id: ClientRequest__RequestId; | 47079 | readonly id: ClientRequest__RequestId; |
| 36818 | readonly method: "thread/unarchive"; | 47080 | readonly method: "thread/unarchive"; |
| ... | @@ -36835,14 +47097,34 @@ export type ClientRequest = | ... | @@ -36835,14 +47097,34 @@ export type ClientRequest = |
| 36835 | } | 47097 | } |
| 36836 | | { | 47098 | | { |
| 36837 | readonly id: ClientRequest__RequestId; | 47099 | readonly id: ClientRequest__RequestId; |
| 36838 | readonly method: "thread/rollback"; | 47100 | readonly method: "thread/revert"; |
| 36839 | readonly params: ClientRequest__ThreadRollbackParams; | 47101 | readonly params: ClientRequest__ThreadRevertParams; |
| 36840 | } | 47102 | } |
| 36841 | | { | 47103 | | { |
| 36842 | readonly id: ClientRequest__RequestId; | 47104 | readonly id: ClientRequest__RequestId; |
| 36843 | readonly method: "thread/list"; | 47105 | readonly method: "thread/list"; |
| 36844 | readonly params: ClientRequest__ThreadListParams; | 47106 | readonly params: ClientRequest__ThreadListParams; |
| 36845 | } | 47107 | } |
| | 47108 | | { |
| | 47109 | readonly id: ClientRequest__RequestId; |
| | 47110 | readonly method: "threadSection/list"; |
| | 47111 | readonly params: ClientRequest__ThreadSectionListParams; |
| | 47112 | } |
| | 47113 | | { |
| | 47114 | readonly id: ClientRequest__RequestId; |
| | 47115 | readonly method: "threadSection/create"; |
| | 47116 | readonly params: ClientRequest__ThreadSectionCreateParams; |
| | 47117 | } |
| | 47118 | | { |
| | 47119 | readonly id: ClientRequest__RequestId; |
| | 47120 | readonly method: "threadSection/update"; |
| | 47121 | readonly params: ClientRequest__ThreadSectionUpdateParams; |
| | 47122 | } |
| | 47123 | | { |
| | 47124 | readonly id: ClientRequest__RequestId; |
| | 47125 | readonly method: "threadSection/delete"; |
| | 47126 | readonly params: ClientRequest__ThreadSectionDeleteParams; |
| | 47127 | } |
| 36846 | | { | 47128 | | { |
| 36847 | readonly id: ClientRequest__RequestId; | 47129 | readonly id: ClientRequest__RequestId; |
| 36848 | readonly method: "thread/loaded/list"; | 47130 | readonly method: "thread/loaded/list"; |
| ... | @@ -36853,6 +47135,16 @@ export type ClientRequest = | ... | @@ -36853,6 +47135,16 @@ export type ClientRequest = |
| 36853 | readonly method: "thread/read"; | 47135 | readonly method: "thread/read"; |
| 36854 | readonly params: ClientRequest__ThreadReadParams; | 47136 | readonly params: ClientRequest__ThreadReadParams; |
| 36855 | } | 47137 | } |
| | 47138 | | { |
| | 47139 | readonly id: ClientRequest__RequestId; |
| | 47140 | readonly method: "thread/turns/list"; |
| | 47141 | readonly params: ClientRequest__ThreadTurnsListParams; |
| | 47142 | } |
| | 47143 | | { |
| | 47144 | readonly id: ClientRequest__RequestId; |
| | 47145 | readonly method: "thread/items/list"; |
| | 47146 | readonly params: ClientRequest__ThreadItemsListParams; |
| | 47147 | } |
| 36856 | | { | 47148 | | { |
| 36857 | readonly id: ClientRequest__RequestId; | 47149 | readonly id: ClientRequest__RequestId; |
| 36858 | readonly method: "thread/inject_items"; | 47150 | readonly method: "thread/inject_items"; |
| ... | @@ -36898,6 +47190,11 @@ export type ClientRequest = | ... | @@ -36898,6 +47190,11 @@ export type ClientRequest = |
| 36898 | readonly method: "plugin/installed"; | 47190 | readonly method: "plugin/installed"; |
| 36899 | readonly params: ClientRequest__PluginInstalledParams; | 47191 | readonly params: ClientRequest__PluginInstalledParams; |
| 36900 | } | 47192 | } |
| | 47193 | | { |
| | 47194 | readonly id: ClientRequest__RequestId; |
| | 47195 | readonly method: "plugin/reconcile"; |
| | 47196 | readonly params: ClientRequest__PluginReconcileParams; |
| | 47197 | } |
| 36901 | | { | 47198 | | { |
| 36902 | readonly id: ClientRequest__RequestId; | 47199 | readonly id: ClientRequest__RequestId; |
| 36903 | readonly method: "plugin/read"; | 47200 | readonly method: "plugin/read"; |
| ... | @@ -37106,7 +47403,7 @@ export type ClientRequest = | ... | @@ -37106,7 +47403,7 @@ export type ClientRequest = |
| 37106 | | { | 47403 | | { |
| 37107 | readonly id: ClientRequest__RequestId; | 47404 | readonly id: ClientRequest__RequestId; |
| 37108 | readonly method: "account/rateLimits/read"; | 47405 | readonly method: "account/rateLimits/read"; |
| 37109 | readonly params?: null; | 47406 | readonly params?: ClientRequest__GetAccountRateLimitsParams | null; |
| 37110 | } | 47407 | } |
| 37111 | | { | 47408 | | { |
| 37112 | readonly id: ClientRequest__RequestId; | 47409 | readonly id: ClientRequest__RequestId; |
| ... | @@ -37116,7 +47413,7 @@ export type ClientRequest = | ... | @@ -37116,7 +47413,7 @@ export type ClientRequest = |
| 37116 | | { | 47413 | | { |
| 37117 | readonly id: ClientRequest__RequestId; | 47414 | readonly id: ClientRequest__RequestId; |
| 37118 | readonly method: "account/usage/read"; | 47415 | readonly method: "account/usage/read"; |
| 37119 | readonly params?: null; | 47416 | readonly params?: ClientRequest__GetAccountTokenUsageParams | null; |
| 37120 | } | 47417 | } |
| 37121 | | { | 47418 | | { |
| 37122 | readonly id: ClientRequest__RequestId; | 47419 | readonly id: ClientRequest__RequestId; |
| ... | @@ -37168,6 +47465,11 @@ export type ClientRequest = | ... | @@ -37168,6 +47465,11 @@ export type ClientRequest = |
| 37168 | readonly method: "externalAgentConfig/import"; | 47465 | readonly method: "externalAgentConfig/import"; |
| 37169 | readonly params: ClientRequest__ExternalAgentConfigImportParams; | 47466 | readonly params: ClientRequest__ExternalAgentConfigImportParams; |
| 37170 | } | 47467 | } |
| | 47468 | | { |
| | 47469 | readonly id: ClientRequest__RequestId; |
| | 47470 | readonly method: "externalAgentConfig/import/recordHistory"; |
| | 47471 | readonly params: ClientRequest__ExternalAgentConfigImportHistoryRecordParams; |
| | 47472 | } |
| 37171 | | { | 47473 | | { |
| 37172 | readonly id: ClientRequest__RequestId; | 47474 | readonly id: ClientRequest__RequestId; |
| 37173 | readonly method: "externalAgentConfig/import/readHistories"; | 47475 | readonly method: "externalAgentConfig/import/readHistories"; |
| ... | @@ -37266,6 +47568,34 @@ export const ClientRequest = Schema.Union( | ... | @@ -37266,6 +47568,34 @@ export const ClientRequest = Schema.Union( |
| 37266 | }), | 47568 | }), |
| 37267 | params: ClientRequest__ThreadMetadataUpdateParams, | 47569 | params: ClientRequest__ThreadMetadataUpdateParams, |
| 37268 | }).annotate({ title: "Thread/metadata/updateRequest" }), | 47570 | }).annotate({ title: "Thread/metadata/updateRequest" }), |
| | 47571 | Schema.Struct({ |
| | 47572 | id: ClientRequest__RequestId, |
| | 47573 | method: Schema.Literal("thread/attachment/add").annotate({ |
| | 47574 | title: "Thread/attachment/addRequestMethod", |
| | 47575 | }), |
| | 47576 | params: ClientRequest__ThreadAttachmentAddParams, |
| | 47577 | }).annotate({ title: "Thread/attachment/addRequest" }), |
| | 47578 | Schema.Struct({ |
| | 47579 | id: ClientRequest__RequestId, |
| | 47580 | method: Schema.Literal("thread/attachment/list").annotate({ |
| | 47581 | title: "Thread/attachment/listRequestMethod", |
| | 47582 | }), |
| | 47583 | params: ClientRequest__ThreadAttachmentListParams, |
| | 47584 | }).annotate({ title: "Thread/attachment/listRequest" }), |
| | 47585 | Schema.Struct({ |
| | 47586 | id: ClientRequest__RequestId, |
| | 47587 | method: Schema.Literal("thread/attachment/remove").annotate({ |
| | 47588 | title: "Thread/attachment/removeRequestMethod", |
| | 47589 | }), |
| | 47590 | params: ClientRequest__ThreadAttachmentRemoveParams, |
| | 47591 | }).annotate({ title: "Thread/attachment/removeRequest" }), |
| | 47592 | Schema.Struct({ |
| | 47593 | id: ClientRequest__RequestId, |
| | 47594 | method: Schema.Literal("thread/section/move").annotate({ |
| | 47595 | title: "Thread/section/moveRequestMethod", |
| | 47596 | }), |
| | 47597 | params: ClientRequest__ThreadSectionMoveParams, |
| | 47598 | }).annotate({ title: "Thread/section/moveRequest" }), |
| 37269 | Schema.Struct({ | 47599 | Schema.Struct({ |
| 37270 | id: ClientRequest__RequestId, | 47600 | id: ClientRequest__RequestId, |
| 37271 | method: Schema.Literal("thread/unarchive").annotate({ | 47601 | method: Schema.Literal("thread/unarchive").annotate({ |
| ... | @@ -37296,14 +47626,42 @@ export const ClientRequest = Schema.Union( | ... | @@ -37296,14 +47626,42 @@ export const ClientRequest = Schema.Union( |
| 37296 | }).annotate({ title: "Thread/approveGuardianDeniedActionRequest" }), | 47626 | }).annotate({ title: "Thread/approveGuardianDeniedActionRequest" }), |
| 37297 | Schema.Struct({ | 47627 | Schema.Struct({ |
| 37298 | id: ClientRequest__RequestId, | 47628 | id: ClientRequest__RequestId, |
| 37299 | method: Schema.Literal("thread/rollback").annotate({ title: "Thread/rollbackRequestMethod" }), | 47629 | method: Schema.Literal("thread/revert").annotate({ title: "Thread/revertRequestMethod" }), |
| 37300 | params: ClientRequest__ThreadRollbackParams, | 47630 | params: ClientRequest__ThreadRevertParams, |
| 37301 | }).annotate({ title: "Thread/rollbackRequest" }), | 47631 | }).annotate({ title: "Thread/revertRequest" }), |
| 37302 | Schema.Struct({ | 47632 | Schema.Struct({ |
| 37303 | id: ClientRequest__RequestId, | 47633 | id: ClientRequest__RequestId, |
| 37304 | method: Schema.Literal("thread/list").annotate({ title: "Thread/listRequestMethod" }), | 47634 | method: Schema.Literal("thread/list").annotate({ title: "Thread/listRequestMethod" }), |
| 37305 | params: ClientRequest__ThreadListParams, | 47635 | params: ClientRequest__ThreadListParams, |
| 37306 | }).annotate({ title: "Thread/listRequest" }), | 47636 | }).annotate({ title: "Thread/listRequest" }), |
| | 47637 | Schema.Struct({ |
| | 47638 | id: ClientRequest__RequestId, |
| | 47639 | method: Schema.Literal("threadSection/list").annotate({ |
| | 47640 | title: "ThreadSection/listRequestMethod", |
| | 47641 | }), |
| | 47642 | params: ClientRequest__ThreadSectionListParams, |
| | 47643 | }).annotate({ title: "ThreadSection/listRequest" }), |
| | 47644 | Schema.Struct({ |
| | 47645 | id: ClientRequest__RequestId, |
| | 47646 | method: Schema.Literal("threadSection/create").annotate({ |
| | 47647 | title: "ThreadSection/createRequestMethod", |
| | 47648 | }), |
| | 47649 | params: ClientRequest__ThreadSectionCreateParams, |
| | 47650 | }).annotate({ title: "ThreadSection/createRequest" }), |
| | 47651 | Schema.Struct({ |
| | 47652 | id: ClientRequest__RequestId, |
| | 47653 | method: Schema.Literal("threadSection/update").annotate({ |
| | 47654 | title: "ThreadSection/updateRequestMethod", |
| | 47655 | }), |
| | 47656 | params: ClientRequest__ThreadSectionUpdateParams, |
| | 47657 | }).annotate({ title: "ThreadSection/updateRequest" }), |
| | 47658 | Schema.Struct({ |
| | 47659 | id: ClientRequest__RequestId, |
| | 47660 | method: Schema.Literal("threadSection/delete").annotate({ |
| | 47661 | title: "ThreadSection/deleteRequestMethod", |
| | 47662 | }), |
| | 47663 | params: ClientRequest__ThreadSectionDeleteParams, |
| | 47664 | }).annotate({ title: "ThreadSection/deleteRequest" }), |
| 37307 | Schema.Struct({ | 47665 | Schema.Struct({ |
| 37308 | id: ClientRequest__RequestId, | 47666 | id: ClientRequest__RequestId, |
| 37309 | method: Schema.Literal("thread/loaded/list").annotate({ | 47667 | method: Schema.Literal("thread/loaded/list").annotate({ |
| ... | @@ -37316,6 +47674,20 @@ export const ClientRequest = Schema.Union( | ... | @@ -37316,6 +47674,20 @@ export const ClientRequest = Schema.Union( |
| 37316 | method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }), | 47674 | method: Schema.Literal("thread/read").annotate({ title: "Thread/readRequestMethod" }), |
| 37317 | params: ClientRequest__ThreadReadParams, | 47675 | params: ClientRequest__ThreadReadParams, |
| 37318 | }).annotate({ title: "Thread/readRequest" }), | 47676 | }).annotate({ title: "Thread/readRequest" }), |
| | 47677 | Schema.Struct({ |
| | 47678 | id: ClientRequest__RequestId, |
| | 47679 | method: Schema.Literal("thread/turns/list").annotate({ |
| | 47680 | title: "Thread/turns/listRequestMethod", |
| | 47681 | }), |
| | 47682 | params: ClientRequest__ThreadTurnsListParams, |
| | 47683 | }).annotate({ title: "Thread/turns/listRequest" }), |
| | 47684 | Schema.Struct({ |
| | 47685 | id: ClientRequest__RequestId, |
| | 47686 | method: Schema.Literal("thread/items/list").annotate({ |
| | 47687 | title: "Thread/items/listRequestMethod", |
| | 47688 | }), |
| | 47689 | params: ClientRequest__ThreadItemsListParams, |
| | 47690 | }).annotate({ title: "Thread/items/listRequest" }), |
| 37319 | Schema.Struct({ | 47691 | Schema.Struct({ |
| 37320 | id: ClientRequest__RequestId, | 47692 | id: ClientRequest__RequestId, |
| 37321 | method: Schema.Literal("thread/inject_items").annotate({ | 47693 | method: Schema.Literal("thread/inject_items").annotate({ |
| ... | @@ -37375,6 +47747,13 @@ export const ClientRequest = Schema.Union( | ... | @@ -37375,6 +47747,13 @@ export const ClientRequest = Schema.Union( |
| 37375 | }), | 47747 | }), |
| 37376 | params: ClientRequest__PluginInstalledParams, | 47748 | params: ClientRequest__PluginInstalledParams, |
| 37377 | }).annotate({ title: "Plugin/installedRequest" }), | 47749 | }).annotate({ title: "Plugin/installedRequest" }), |
| | 47750 | Schema.Struct({ |
| | 47751 | id: ClientRequest__RequestId, |
| | 47752 | method: Schema.Literal("plugin/reconcile").annotate({ |
| | 47753 | title: "Plugin/reconcileRequestMethod", |
| | 47754 | }), |
| | 47755 | params: ClientRequest__PluginReconcileParams, |
| | 47756 | }).annotate({ title: "Plugin/reconcileRequest" }), |
| 37378 | Schema.Struct({ | 47757 | Schema.Struct({ |
| 37379 | id: ClientRequest__RequestId, | 47758 | id: ClientRequest__RequestId, |
| 37380 | method: Schema.Literal("plugin/read").annotate({ title: "Plugin/readRequestMethod" }), | 47759 | method: Schema.Literal("plugin/read").annotate({ title: "Plugin/readRequestMethod" }), |
| ... | @@ -37631,7 +48010,9 @@ export const ClientRequest = Schema.Union( | ... | @@ -37631,7 +48010,9 @@ export const ClientRequest = Schema.Union( |
| 37631 | method: Schema.Literal("account/rateLimits/read").annotate({ | 48010 | method: Schema.Literal("account/rateLimits/read").annotate({ |
| 37632 | title: "Account/rateLimits/readRequestMethod", | 48011 | title: "Account/rateLimits/readRequestMethod", |
| 37633 | }), | 48012 | }), |
| 37634 | params: Schema.optionalKey(Schema.Null), | 48013 | params: Schema.optionalKey( |
| | 48014 | Schema.Union([ClientRequest__GetAccountRateLimitsParams, Schema.Null]), |
| | 48015 | ), |
| 37635 | }).annotate({ title: "Account/rateLimits/readRequest" }), | 48016 | }).annotate({ title: "Account/rateLimits/readRequest" }), |
| 37636 | Schema.Struct({ | 48017 | Schema.Struct({ |
| 37637 | id: ClientRequest__RequestId, | 48018 | id: ClientRequest__RequestId, |
| ... | @@ -37645,7 +48026,9 @@ export const ClientRequest = Schema.Union( | ... | @@ -37645,7 +48026,9 @@ export const ClientRequest = Schema.Union( |
| 37645 | method: Schema.Literal("account/usage/read").annotate({ | 48026 | method: Schema.Literal("account/usage/read").annotate({ |
| 37646 | title: "Account/usage/readRequestMethod", | 48027 | title: "Account/usage/readRequestMethod", |
| 37647 | }), | 48028 | }), |
| 37648 | params: Schema.optionalKey(Schema.Null), | 48029 | params: Schema.optionalKey( |
| | 48030 | Schema.Union([ClientRequest__GetAccountTokenUsageParams, Schema.Null]), |
| | 48031 | ), |
| 37649 | }).annotate({ title: "Account/usage/readRequest" }), | 48032 | }).annotate({ title: "Account/usage/readRequest" }), |
| 37650 | Schema.Struct({ | 48033 | Schema.Struct({ |
| 37651 | id: ClientRequest__RequestId, | 48034 | id: ClientRequest__RequestId, |
| ... | @@ -37724,6 +48107,13 @@ export const ClientRequest = Schema.Union( | ... | @@ -37724,6 +48107,13 @@ export const ClientRequest = Schema.Union( |
| 37724 | }), | 48107 | }), |
| 37725 | params: ClientRequest__ExternalAgentConfigImportParams, | 48108 | params: ClientRequest__ExternalAgentConfigImportParams, |
| 37726 | }).annotate({ title: "ExternalAgentConfig/importRequest" }), | 48109 | }).annotate({ title: "ExternalAgentConfig/importRequest" }), |
| | 48110 | Schema.Struct({ |
| | 48111 | id: ClientRequest__RequestId, |
| | 48112 | method: Schema.Literal("externalAgentConfig/import/recordHistory").annotate({ |
| | 48113 | title: "ExternalAgentConfig/import/recordHistoryRequestMethod", |
| | 48114 | }), |
| | 48115 | params: ClientRequest__ExternalAgentConfigImportHistoryRecordParams, |
| | 48116 | }).annotate({ title: "ExternalAgentConfig/import/recordHistoryRequest" }), |
| 37727 | Schema.Struct({ | 48117 | Schema.Struct({ |
| 37728 | id: ClientRequest__RequestId, | 48118 | id: ClientRequest__RequestId, |
| 37729 | method: Schema.Literal("externalAgentConfig/import/readHistories").annotate({ | 48119 | method: Schema.Literal("externalAgentConfig/import/readHistories").annotate({ |
| ... | @@ -37791,6 +48181,16 @@ export const ClientRequest__CollaborationMode = Schema.Struct({ | ... | @@ -37791,6 +48181,16 @@ export const ClientRequest__CollaborationMode = Schema.Struct({ |
| 37791 | settings: ClientRequest__Settings, | 48181 | settings: ClientRequest__Settings, |
| 37792 | }).annotate({ description: "Collaboration mode for a Codex session." }); | 48182 | }).annotate({ description: "Collaboration mode for a Codex session." }); |
| 37793 | | 48183 | |
| | 48184 | export type ClientRequest__CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed"; |
| | 48185 | export const ClientRequest__CyberAccessProgram = Schema.Literals([ |
| | 48186 | "standard", |
| | 48187 | "daybreakBlue", |
| | 48188 | "daybreakRed", |
| | 48189 | ]).annotate({ |
| | 48190 | description: |
| | 48191 | "Requested cyber treatment for a ChatGPT-authenticated Codex turn. Authorization and model-tier restrictions remain server-owned.", |
| | 48192 | }); |
| | 48193 | |
| 37794 | export type ClientRequest__DynamicToolSpec = | 48194 | export type ClientRequest__DynamicToolSpec = |
| 37795 | | { | 48195 | | { |
| 37796 | readonly deferLoading?: boolean; | 48196 | readonly deferLoading?: boolean; |
| ... | @@ -37839,6 +48239,13 @@ export const ClientRequest__MultiAgentMode = Schema.Union( | ... | @@ -37839,6 +48239,13 @@ export const ClientRequest__MultiAgentMode = Schema.Union( |
| 37839 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 48239 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 37840 | }); | 48240 | }); |
| 37841 | | 48241 | |
| | 48242 | export type ClientRequest__PluginSearchScope = "global" | "workspace" | "personal"; |
| | 48243 | export const ClientRequest__PluginSearchScope = Schema.Literals([ |
| | 48244 | "global", |
| | 48245 | "workspace", |
| | 48246 | "personal", |
| | 48247 | ]); |
| | 48248 | |
| 37842 | export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number }; | 48249 | export type ClientRequest__ProcessTerminalSize = { readonly cols: number; readonly rows: number }; |
| 37843 | export const ClientRequest__ProcessTerminalSize = Schema.Struct({ | 48250 | export const ClientRequest__ProcessTerminalSize = Schema.Struct({ |
| 37844 | cols: Schema.Number.annotate({ | 48251 | cols: Schema.Number.annotate({ |
| ... | @@ -37859,6 +48266,12 @@ export const ClientRequest__ProcessTerminalSize = Schema.Struct({ | ... | @@ -37859,6 +48266,12 @@ export const ClientRequest__ProcessTerminalSize = Schema.Struct({ |
| 37859 | ), | 48266 | ), |
| 37860 | }).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." }); | 48267 | }).annotate({ description: "PTY size in character cells for `process/spawn` PTY sessions." }); |
| 37861 | | 48268 | |
| | 48269 | export type ClientRequest__ProjectRoot = { readonly path: ClientRequest__AbsolutePathBuf }; |
| | 48270 | export const ClientRequest__ProjectRoot = Schema.Struct({ path: ClientRequest__AbsolutePathBuf }); |
| | 48271 | |
| | 48272 | export type ClientRequest__ProjectSortKey = "position" | "recencyAt"; |
| | 48273 | export const ClientRequest__ProjectSortKey = Schema.Literals(["position", "recencyAt"]); |
| | 48274 | |
| 37862 | export type ClientRequest__RealtimeConversationVersion = "v1" | "v2" | "v3"; | 48275 | export type ClientRequest__RealtimeConversationVersion = "v1" | "v2" | "v3"; |
| 37863 | export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]); | 48276 | export const ClientRequest__RealtimeConversationVersion = Schema.Literals(["v1", "v2", "v3"]); |
| 37864 | | 48277 | |
| ... | @@ -37953,6 +48366,7 @@ export type ClientRequest__ResponseItem = | ... | @@ -37953,6 +48366,7 @@ export type ClientRequest__ResponseItem = |
| 37953 | | { | 48366 | | { |
| 37954 | readonly arguments: string; | 48367 | readonly arguments: string; |
| 37955 | readonly call_id: string; | 48368 | readonly call_id: string; |
| | 48369 | readonly encrypted_function_args?: ReadonlyArray<string> | null; |
| 37956 | readonly id?: string | null; | 48370 | readonly id?: string | null; |
| 37957 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; | 48371 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; |
| 37958 | readonly name: string; | 48372 | readonly name: string; |
| ... | @@ -37969,9 +48383,11 @@ export type ClientRequest__ResponseItem = | ... | @@ -37969,9 +48383,11 @@ export type ClientRequest__ResponseItem = |
| 37969 | readonly type: "tool_search_call"; | 48383 | readonly type: "tool_search_call"; |
| 37970 | } | 48384 | } |
| 37971 | | { | 48385 | | { |
| 37972 | readonly call_id: string; | 48386 | readonly call_id?: string | null; |
| 37973 | readonly id?: string | null; | 48387 | readonly id?: string | null; |
| 37974 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; | 48388 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; |
| | 48389 | readonly name?: string | null; |
| | 48390 | readonly namespace?: string | null; |
| 37975 | readonly output: ClientRequest__FunctionCallOutputBody; | 48391 | readonly output: ClientRequest__FunctionCallOutputBody; |
| 37976 | readonly type: "function_call_output"; | 48392 | readonly type: "function_call_output"; |
| 37977 | } | 48393 | } |
| ... | @@ -38023,6 +48439,10 @@ export type ClientRequest__ResponseItem = | ... | @@ -38023,6 +48439,10 @@ export type ClientRequest__ResponseItem = |
| 38023 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; | 48439 | readonly internal_chat_message_metadata_passthrough?: ClientRequest__InternalChatMessageMetadataPassthrough | null; |
| 38024 | readonly type: "compaction"; | 48440 | readonly type: "compaction"; |
| 38025 | } | 48441 | } |
| | 48442 | | { |
| | 48443 | readonly reasoning: ClientRequest__ConfigurationReasoning; |
| | 48444 | readonly type: "configuration_update"; |
| | 48445 | } |
| 38026 | | { readonly type: "compaction_trigger" } | 48446 | | { readonly type: "compaction_trigger" } |
| 38027 | | { | 48447 | | { |
| 38028 | readonly encrypted_content?: string | null; | 48448 | readonly encrypted_content?: string | null; |
| ... | @@ -38092,6 +48512,9 @@ export const ClientRequest__ResponseItem = Schema.Union( | ... | @@ -38092,6 +48512,9 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 38092 | Schema.Struct({ | 48512 | Schema.Struct({ |
| 38093 | arguments: Schema.String, | 48513 | arguments: Schema.String, |
| 38094 | call_id: Schema.String, | 48514 | call_id: Schema.String, |
| | 48515 | encrypted_function_args: Schema.optionalKey( |
| | 48516 | Schema.Union([Schema.Array(Schema.String), Schema.Null]), |
| | 48517 | ), |
| 38095 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 48518 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 38096 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 48519 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 38097 | Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]), | 48520 | Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]), |
| ... | @@ -38114,11 +48537,13 @@ export const ClientRequest__ResponseItem = Schema.Union( | ... | @@ -38114,11 +48537,13 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 38114 | }), | 48537 | }), |
| 38115 | }).annotate({ title: "ToolSearchCallResponseItem" }), | 48538 | }).annotate({ title: "ToolSearchCallResponseItem" }), |
| 38116 | Schema.Struct({ | 48539 | Schema.Struct({ |
| 38117 | call_id: Schema.String, | 48540 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 38118 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 48541 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 38119 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 48542 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 38120 | Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]), | 48543 | Schema.Union([ClientRequest__InternalChatMessageMetadataPassthrough, Schema.Null]), |
| 38121 | ), | 48544 | ), |
| | 48545 | name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 48546 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 38122 | output: ClientRequest__FunctionCallOutputBody, | 48547 | output: ClientRequest__FunctionCallOutputBody, |
| 38123 | type: Schema.Literal("function_call_output").annotate({ | 48548 | type: Schema.Literal("function_call_output").annotate({ |
| 38124 | title: "FunctionCallOutputResponseItemType", | 48549 | title: "FunctionCallOutputResponseItemType", |
| ... | @@ -38194,6 +48619,15 @@ export const ClientRequest__ResponseItem = Schema.Union( | ... | @@ -38194,6 +48619,15 @@ export const ClientRequest__ResponseItem = Schema.Union( |
| 38194 | ), | 48619 | ), |
| 38195 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), | 48620 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), |
| 38196 | }).annotate({ title: "CompactionResponseItem" }), | 48621 | }).annotate({ title: "CompactionResponseItem" }), |
| | 48622 | Schema.Struct({ |
| | 48623 | reasoning: ClientRequest__ConfigurationReasoning, |
| | 48624 | type: Schema.Literal("configuration_update").annotate({ |
| | 48625 | title: "ConfigurationUpdateResponseItemType", |
| | 48626 | }), |
| | 48627 | }).annotate({ |
| | 48628 | title: "ConfigurationUpdateResponseItem", |
| | 48629 | description: "A durable input control interpreted by the backend at its position in history.", |
| | 48630 | }), |
| 38197 | Schema.Struct({ | 48631 | Schema.Struct({ |
| 38198 | type: Schema.Literal("compaction_trigger").annotate({ | 48632 | type: Schema.Literal("compaction_trigger").annotate({ |
| 38199 | title: "CompactionTriggerResponseItemType", | 48633 | title: "CompactionTriggerResponseItemType", |
| ... | @@ -38285,7 +48719,8 @@ export const ClientRequest__ThreadRealtimeInitialItem = Schema.Struct({ | ... | @@ -38285,7 +48719,8 @@ export const ClientRequest__ThreadRealtimeInitialItem = Schema.Struct({ |
| 38285 | | 48719 | |
| 38286 | export type ClientRequest__ThreadRealtimeStartTransport = | 48720 | export type ClientRequest__ThreadRealtimeStartTransport = |
| 38287 | | { readonly type: "websocket" } | 48721 | | { readonly type: "websocket" } |
| 38288 | | { readonly sdp: string; readonly type: "webrtc" }; | 48722 | | { readonly sdp: string; readonly type: "webrtc" } |
| | 48723 | | { readonly callId: string; readonly type: "existingCall" }; |
| 38289 | export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union( | 48724 | export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union( |
| 38290 | [ | 48725 | [ |
| 38291 | Schema.Struct({ | 48726 | Schema.Struct({ |
| ... | @@ -38300,6 +48735,14 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union( | ... | @@ -38300,6 +48735,14 @@ export const ClientRequest__ThreadRealtimeStartTransport = Schema.Union( |
| 38300 | }), | 48735 | }), |
| 38301 | type: Schema.Literal("webrtc").annotate({ title: "WebrtcThreadRealtimeStartTransportType" }), | 48736 | type: Schema.Literal("webrtc").annotate({ title: "WebrtcThreadRealtimeStartTransportType" }), |
| 38302 | }).annotate({ title: "WebrtcThreadRealtimeStartTransport" }), | 48737 | }).annotate({ title: "WebrtcThreadRealtimeStartTransport" }), |
| | 48738 | Schema.Struct({ |
| | 48739 | callId: Schema.String.annotate({ |
| | 48740 | description: "Identifier of a realtime call already created and negotiated by the client.", |
| | 48741 | }), |
| | 48742 | type: Schema.Literal("existingCall").annotate({ |
| | 48743 | title: "ExistingCallThreadRealtimeStartTransportType", |
| | 48744 | }), |
| | 48745 | }).annotate({ title: "ExistingCallThreadRealtimeStartTransport" }), |
| 38303 | ], | 48746 | ], |
| 38304 | { mode: "oneOf" }, | 48747 | { mode: "oneOf" }, |
| 38305 | ).annotate({ description: "EXPERIMENTAL - transport used by thread realtime." }); | 48748 | ).annotate({ description: "EXPERIMENTAL - transport used by thread realtime." }); |
| ... | @@ -38334,6 +48777,13 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({ | ... | @@ -38334,6 +48777,13 @@ export const ClientRequest__ThreadResumeInitialTurnsPageParams = Schema.Struct({ |
| 38334 | ), | 48777 | ), |
| 38335 | }); | 48778 | }); |
| 38336 | | 48779 | |
| | 48780 | export type ClientRequest__ThreadSearchSortKey = "created_at" | "updated_at" | "recency_at"; |
| | 48781 | export const ClientRequest__ThreadSearchSortKey = Schema.Literals([ |
| | 48782 | "created_at", |
| | 48783 | "updated_at", |
| | 48784 | "recency_at", |
| | 48785 | ]); |
| | 48786 | |
| 38337 | export type ClientRequest__TurnEnvironmentParams = { | 48787 | export type ClientRequest__TurnEnvironmentParams = { |
| 38338 | readonly cwd: ClientRequest__LegacyAppPathString; | 48788 | readonly cwd: ClientRequest__LegacyAppPathString; |
| 38339 | readonly environmentId: string; | 48789 | readonly environmentId: string; |
| ... | @@ -38359,6 +48809,7 @@ export type CommandExecutionRequestApprovalParams = { | ... | @@ -38359,6 +48809,7 @@ export type CommandExecutionRequestApprovalParams = { |
| 38359 | readonly cwd?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null; | 48809 | readonly cwd?: CommandExecutionRequestApprovalParams__LegacyAppPathString | null; |
| 38360 | readonly environmentId?: string | null; | 48810 | readonly environmentId?: string | null; |
| 38361 | readonly itemId: string; | 48811 | readonly itemId: string; |
| | 48812 | readonly kind?: CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind; |
| 38362 | readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null; | 48813 | readonly networkApprovalContext?: CommandExecutionRequestApprovalParams__NetworkApprovalContext | null; |
| 38363 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; | 48814 | readonly proposedExecpolicyAmendment?: ReadonlyArray<string> | null; |
| 38364 | readonly proposedNetworkPolicyAmendments?: ReadonlyArray<CommandExecutionRequestApprovalParams__NetworkPolicyAmendment> | null; | 48815 | readonly proposedNetworkPolicyAmendments?: ReadonlyArray<CommandExecutionRequestApprovalParams__NetworkPolicyAmendment> | null; |
| ... | @@ -38372,7 +48823,7 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({ | ... | @@ -38372,7 +48823,7 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({ |
| 38372 | Schema.Union([ | 48823 | Schema.Union([ |
| 38373 | Schema.String.annotate({ | 48824 | Schema.String.annotate({ |
| 38374 | description: | 48825 | description: |
| 38375 | "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing.", | 48826 | "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing. Stdin approvals also use a distinct callback id; inspect `kind` to distinguish them.", |
| 38376 | }), | 48827 | }), |
| 38377 | Schema.Null, | 48828 | Schema.Null, |
| 38378 | ]), | 48829 | ]), |
| ... | @@ -38404,6 +48855,15 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({ | ... | @@ -38404,6 +48855,15 @@ export const CommandExecutionRequestApprovalParams = Schema.Struct({ |
| 38404 | ]), | 48855 | ]), |
| 38405 | ), | 48856 | ), |
| 38406 | itemId: Schema.String, | 48857 | itemId: Schema.String, |
| | 48858 | kind: Schema.optionalKey( |
| | 48859 | Schema.suspend( |
| | 48860 | (): Schema.Codec<CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind> => |
| | 48861 | CommandExecutionRequestApprovalParams__CommandExecutionApprovalKind, |
| | 48862 | ).annotate({ |
| | 48863 | description: "Kind of action under review. Defaults to `command` for older servers.", |
| | 48864 | default: "command", |
| | 48865 | }), |
| | 48866 | ), |
| 38407 | networkApprovalContext: Schema.optionalKey( | 48867 | networkApprovalContext: Schema.optionalKey( |
| 38408 | Schema.Union([ | 48868 | Schema.Union([ |
| 38409 | CommandExecutionRequestApprovalParams__NetworkApprovalContext, | 48869 | CommandExecutionRequestApprovalParams__NetworkApprovalContext, |
| ... | @@ -38797,6 +49257,15 @@ export type McpServerElicitationRequestParams = | ... | @@ -38797,6 +49257,15 @@ export type McpServerElicitationRequestParams = |
| 38797 | readonly mode: "openai/form"; | 49257 | readonly mode: "openai/form"; |
| 38798 | readonly requestedSchema: Schema.Json; | 49258 | readonly requestedSchema: Schema.Json; |
| 38799 | } | 49259 | } |
| | 49260 | | { |
| | 49261 | readonly serverName: string; |
| | 49262 | readonly threadId: string; |
| | 49263 | readonly turnId?: string | null; |
| | 49264 | readonly _meta?: Schema.Json; |
| | 49265 | readonly message: string; |
| | 49266 | readonly mode: "openaiForm"; |
| | 49267 | readonly requestedSchema: Schema.Json; |
| | 49268 | } |
| 38800 | | { | 49269 | | { |
| 38801 | readonly serverName: string; | 49270 | readonly serverName: string; |
| 38802 | readonly threadId: string; | 49271 | readonly threadId: string; |
| ... | @@ -38843,6 +49312,23 @@ export const McpServerElicitationRequestParams = Schema.Union( | ... | @@ -38843,6 +49312,23 @@ export const McpServerElicitationRequestParams = Schema.Union( |
| 38843 | mode: Schema.Literal("openai/form"), | 49312 | mode: Schema.Literal("openai/form"), |
| 38844 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), | 49313 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| 38845 | }), | 49314 | }), |
| | 49315 | Schema.Struct({ |
| | 49316 | serverName: Schema.String, |
| | 49317 | threadId: Schema.String, |
| | 49318 | turnId: Schema.optionalKey( |
| | 49319 | Schema.Union([ |
| | 49320 | Schema.String.annotate({ |
| | 49321 | description: |
| | 49322 | "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.", |
| | 49323 | }), |
| | 49324 | Schema.Null, |
| | 49325 | ]), |
| | 49326 | ), |
| | 49327 | _meta: Schema.optionalKey(Schema.Json.annotate({ expected: "JSON value" })), |
| | 49328 | message: Schema.String, |
| | 49329 | mode: Schema.Literal("openaiForm"), |
| | 49330 | requestedSchema: Schema.Json.annotate({ expected: "JSON value" }), |
| | 49331 | }), |
| 38846 | Schema.Struct({ | 49332 | Schema.Struct({ |
| 38847 | serverName: Schema.String, | 49333 | serverName: Schema.String, |
| 38848 | threadId: Schema.String, | 49334 | threadId: Schema.String, |
| ... | @@ -38888,7 +49374,7 @@ export const McpServerElicitationRequestResponse = Schema.Struct({ | ... | @@ -38888,7 +49374,7 @@ export const McpServerElicitationRequestResponse = Schema.Struct({ |
| 38888 | }).annotate({ title: "McpServerElicitationRequestResponse" }); | 49374 | }).annotate({ title: "McpServerElicitationRequestResponse" }); |
| 38889 | | 49375 | |
| 38890 | export type PermissionsRequestApprovalParams = { | 49376 | export type PermissionsRequestApprovalParams = { |
| 38891 | readonly cwd: PermissionsRequestApprovalParams__AbsolutePathBuf; | 49377 | readonly cwd: PermissionsRequestApprovalParams__LegacyAppPathString; |
| 38892 | readonly environmentId?: string | null; | 49378 | readonly environmentId?: string | null; |
| 38893 | readonly itemId: string; | 49379 | readonly itemId: string; |
| 38894 | readonly permissions: PermissionsRequestApprovalParams__RequestPermissionProfile; | 49380 | readonly permissions: PermissionsRequestApprovalParams__RequestPermissionProfile; |
| ... | @@ -38898,7 +49384,7 @@ export type PermissionsRequestApprovalParams = { | ... | @@ -38898,7 +49384,7 @@ export type PermissionsRequestApprovalParams = { |
| 38898 | readonly turnId: string; | 49384 | readonly turnId: string; |
| 38899 | }; | 49385 | }; |
| 38900 | export const PermissionsRequestApprovalParams = Schema.Struct({ | 49386 | export const PermissionsRequestApprovalParams = Schema.Struct({ |
| 38901 | cwd: PermissionsRequestApprovalParams__AbsolutePathBuf, | 49387 | cwd: PermissionsRequestApprovalParams__LegacyAppPathString, |
| 38902 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 49388 | environmentId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 38903 | itemId: Schema.String, | 49389 | itemId: Schema.String, |
| 38904 | permissions: PermissionsRequestApprovalParams__RequestPermissionProfile, | 49390 | permissions: PermissionsRequestApprovalParams__RequestPermissionProfile, |
| ... | @@ -38979,6 +49465,11 @@ export type ServerNotification = | ... | @@ -38979,6 +49465,11 @@ export type ServerNotification = |
| 38979 | readonly method: "thread/closed"; | 49465 | readonly method: "thread/closed"; |
| 38980 | readonly params: ServerNotification__ThreadClosedNotification; | 49466 | readonly params: ServerNotification__ThreadClosedNotification; |
| 38981 | } | 49467 | } |
| | 49468 | | { |
| | 49469 | readonly emittedAtMs?: number; |
| | 49470 | readonly method: "thread/reverted"; |
| | 49471 | readonly params: ServerNotification__ThreadRevertedNotification; |
| | 49472 | } |
| 38982 | | { | 49473 | | { |
| 38983 | readonly emittedAtMs?: number; | 49474 | readonly emittedAtMs?: number; |
| 38984 | readonly method: "skills/changed"; | 49475 | readonly method: "skills/changed"; |
| ... | @@ -38989,6 +49480,11 @@ export type ServerNotification = | ... | @@ -38989,6 +49480,11 @@ export type ServerNotification = |
| 38989 | readonly method: "thread/name/updated"; | 49480 | readonly method: "thread/name/updated"; |
| 38990 | readonly params: ServerNotification__ThreadNameUpdatedNotification; | 49481 | readonly params: ServerNotification__ThreadNameUpdatedNotification; |
| 38991 | } | 49482 | } |
| | 49483 | | { |
| | 49484 | readonly emittedAtMs?: number; |
| | 49485 | readonly method: "thread/attachment/updated"; |
| | 49486 | readonly params: ServerNotification__ThreadAttachmentUpdatedNotification; |
| | 49487 | } |
| 38992 | | { | 49488 | | { |
| 38993 | readonly emittedAtMs?: number; | 49489 | readonly emittedAtMs?: number; |
| 38994 | readonly method: "thread/goal/updated"; | 49490 | readonly method: "thread/goal/updated"; |
| ... | @@ -38999,6 +49495,21 @@ export type ServerNotification = | ... | @@ -38999,6 +49495,21 @@ export type ServerNotification = |
| 38999 | readonly method: "thread/goal/cleared"; | 49495 | readonly method: "thread/goal/cleared"; |
| 39000 | readonly params: ServerNotification__ThreadGoalClearedNotification; | 49496 | readonly params: ServerNotification__ThreadGoalClearedNotification; |
| 39001 | } | 49497 | } |
| | 49498 | | { |
| | 49499 | readonly emittedAtMs?: number; |
| | 49500 | readonly method: "thread/queue/changed"; |
| | 49501 | readonly params: ServerNotification__ThreadQueueChangedNotification; |
| | 49502 | } |
| | 49503 | | { |
| | 49504 | readonly emittedAtMs?: number; |
| | 49505 | readonly method: "project/changed"; |
| | 49506 | readonly params: ServerNotification__ProjectChangedNotification; |
| | 49507 | } |
| | 49508 | | { |
| | 49509 | readonly emittedAtMs?: number; |
| | 49510 | readonly method: "thread/project/updated"; |
| | 49511 | readonly params: ServerNotification__ThreadProjectUpdatedNotification; |
| | 49512 | } |
| 39002 | | { | 49513 | | { |
| 39003 | readonly emittedAtMs?: number; | 49514 | readonly emittedAtMs?: number; |
| 39004 | readonly method: "thread/environment/connected"; | 49515 | readonly method: "thread/environment/connected"; |
| ... | @@ -39064,6 +49575,11 @@ export type ServerNotification = | ... | @@ -39064,6 +49575,11 @@ export type ServerNotification = |
| 39064 | readonly method: "item/autoApprovalReview/completed"; | 49575 | readonly method: "item/autoApprovalReview/completed"; |
| 39065 | readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification; | 49576 | readonly params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification; |
| 39066 | } | 49577 | } |
| | 49578 | | { |
| | 49579 | readonly emittedAtMs?: number; |
| | 49580 | readonly method: "autoApprovalReview/strictReviewRequired"; |
| | 49581 | readonly params: ServerNotification__StrictReviewRequiredNotification; |
| | 49582 | } |
| 39067 | | { | 49583 | | { |
| 39068 | readonly emittedAtMs?: number; | 49584 | readonly emittedAtMs?: number; |
| 39069 | readonly method: "item/completed"; | 49585 | readonly method: "item/completed"; |
| ... | @@ -39134,6 +49650,11 @@ export type ServerNotification = | ... | @@ -39134,6 +49650,11 @@ export type ServerNotification = |
| 39134 | readonly method: "mcpServer/startupStatus/updated"; | 49650 | readonly method: "mcpServer/startupStatus/updated"; |
| 39135 | readonly params: ServerNotification__McpServerStatusUpdatedNotification; | 49651 | readonly params: ServerNotification__McpServerStatusUpdatedNotification; |
| 39136 | } | 49652 | } |
| | 49653 | | { |
| | 49654 | readonly emittedAtMs?: number; |
| | 49655 | readonly method: "mcpServer/event/stream/notification"; |
| | 49656 | readonly params: ServerNotification__McpServerEventStreamNotification; |
| | 49657 | } |
| 39137 | | { | 49658 | | { |
| 39138 | readonly emittedAtMs?: number; | 49659 | readonly emittedAtMs?: number; |
| 39139 | readonly method: "account/updated"; | 49660 | readonly method: "account/updated"; |
| ... | @@ -39199,6 +49720,16 @@ export type ServerNotification = | ... | @@ -39199,6 +49720,16 @@ export type ServerNotification = |
| 39199 | readonly method: "model/verification"; | 49720 | readonly method: "model/verification"; |
| 39200 | readonly params: ServerNotification__ModelVerificationNotification; | 49721 | readonly params: ServerNotification__ModelVerificationNotification; |
| 39201 | } | 49722 | } |
| | 49723 | | { |
| | 49724 | readonly emittedAtMs?: number; |
| | 49725 | readonly method: "modelProvider/authRecoveryStarted"; |
| | 49726 | readonly params: ServerNotification__AuthRecoveryNotification; |
| | 49727 | } |
| | 49728 | | { |
| | 49729 | readonly emittedAtMs?: number; |
| | 49730 | readonly method: "modelProvider/authRecoveryCompleted"; |
| | 49731 | readonly params: ServerNotification__AuthRecoveryNotification; |
| | 49732 | } |
| 39202 | | { | 49733 | | { |
| 39203 | readonly emittedAtMs?: number; | 49734 | readonly emittedAtMs?: number; |
| 39204 | readonly method: "turn/moderationMetadata"; | 49735 | readonly method: "turn/moderationMetadata"; |
| ... | @@ -39249,6 +49780,21 @@ export type ServerNotification = | ... | @@ -39249,6 +49780,21 @@ export type ServerNotification = |
| 39249 | readonly method: "thread/realtime/itemAdded"; | 49780 | readonly method: "thread/realtime/itemAdded"; |
| 39250 | readonly params: ServerNotification__ThreadRealtimeItemAddedNotification; | 49781 | readonly params: ServerNotification__ThreadRealtimeItemAddedNotification; |
| 39251 | } | 49782 | } |
| | 49783 | | { |
| | 49784 | readonly emittedAtMs?: number; |
| | 49785 | readonly method: "thread/realtime/item/started"; |
| | 49786 | readonly params: ServerNotification__ThreadRealtimeItemStartedNotification; |
| | 49787 | } |
| | 49788 | | { |
| | 49789 | readonly emittedAtMs?: number; |
| | 49790 | readonly method: "thread/realtime/item/transcript/delta"; |
| | 49791 | readonly params: ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification; |
| | 49792 | } |
| | 49793 | | { |
| | 49794 | readonly emittedAtMs?: number; |
| | 49795 | readonly method: "thread/realtime/item/completed"; |
| | 49796 | readonly params: ServerNotification__ThreadRealtimeItemCompletedNotification; |
| | 49797 | } |
| 39252 | | { | 49798 | | { |
| 39253 | readonly emittedAtMs?: number; | 49799 | readonly emittedAtMs?: number; |
| 39254 | readonly method: "thread/realtime/transcript/delta"; | 49800 | readonly method: "thread/realtime/transcript/delta"; |
| ... | @@ -39385,6 +49931,19 @@ export const ServerNotification = Schema.Union( | ... | @@ -39385,6 +49931,19 @@ export const ServerNotification = Schema.Union( |
| 39385 | }), | 49931 | }), |
| 39386 | params: ServerNotification__ThreadClosedNotification, | 49932 | params: ServerNotification__ThreadClosedNotification, |
| 39387 | }).annotate({ title: "Thread/closedNotification" }), | 49933 | }).annotate({ title: "Thread/closedNotification" }), |
| | 49934 | Schema.Struct({ |
| | 49935 | emittedAtMs: Schema.optionalKey( |
| | 49936 | Schema.Number.annotate({ |
| | 49937 | description: |
| | 49938 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 49939 | format: "int64", |
| | 49940 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 49941 | ), |
| | 49942 | method: Schema.Literal("thread/reverted").annotate({ |
| | 49943 | title: "Thread/revertedNotificationMethod", |
| | 49944 | }), |
| | 49945 | params: ServerNotification__ThreadRevertedNotification, |
| | 49946 | }).annotate({ title: "Thread/revertedNotification" }), |
| 39388 | Schema.Struct({ | 49947 | Schema.Struct({ |
| 39389 | emittedAtMs: Schema.optionalKey( | 49948 | emittedAtMs: Schema.optionalKey( |
| 39390 | Schema.Number.annotate({ | 49949 | Schema.Number.annotate({ |
| ... | @@ -39411,6 +49970,19 @@ export const ServerNotification = Schema.Union( | ... | @@ -39411,6 +49970,19 @@ export const ServerNotification = Schema.Union( |
| 39411 | }), | 49970 | }), |
| 39412 | params: ServerNotification__ThreadNameUpdatedNotification, | 49971 | params: ServerNotification__ThreadNameUpdatedNotification, |
| 39413 | }).annotate({ title: "Thread/name/updatedNotification" }), | 49972 | }).annotate({ title: "Thread/name/updatedNotification" }), |
| | 49973 | Schema.Struct({ |
| | 49974 | emittedAtMs: Schema.optionalKey( |
| | 49975 | Schema.Number.annotate({ |
| | 49976 | description: |
| | 49977 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 49978 | format: "int64", |
| | 49979 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 49980 | ), |
| | 49981 | method: Schema.Literal("thread/attachment/updated").annotate({ |
| | 49982 | title: "Thread/attachment/updatedNotificationMethod", |
| | 49983 | }), |
| | 49984 | params: ServerNotification__ThreadAttachmentUpdatedNotification, |
| | 49985 | }).annotate({ title: "Thread/attachment/updatedNotification" }), |
| 39414 | Schema.Struct({ | 49986 | Schema.Struct({ |
| 39415 | emittedAtMs: Schema.optionalKey( | 49987 | emittedAtMs: Schema.optionalKey( |
| 39416 | Schema.Number.annotate({ | 49988 | Schema.Number.annotate({ |
| ... | @@ -39437,6 +50009,45 @@ export const ServerNotification = Schema.Union( | ... | @@ -39437,6 +50009,45 @@ export const ServerNotification = Schema.Union( |
| 39437 | }), | 50009 | }), |
| 39438 | params: ServerNotification__ThreadGoalClearedNotification, | 50010 | params: ServerNotification__ThreadGoalClearedNotification, |
| 39439 | }).annotate({ title: "Thread/goal/clearedNotification" }), | 50011 | }).annotate({ title: "Thread/goal/clearedNotification" }), |
| | 50012 | Schema.Struct({ |
| | 50013 | emittedAtMs: Schema.optionalKey( |
| | 50014 | Schema.Number.annotate({ |
| | 50015 | description: |
| | 50016 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50017 | format: "int64", |
| | 50018 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50019 | ), |
| | 50020 | method: Schema.Literal("thread/queue/changed").annotate({ |
| | 50021 | title: "Thread/queue/changedNotificationMethod", |
| | 50022 | }), |
| | 50023 | params: ServerNotification__ThreadQueueChangedNotification, |
| | 50024 | }).annotate({ title: "Thread/queue/changedNotification" }), |
| | 50025 | Schema.Struct({ |
| | 50026 | emittedAtMs: Schema.optionalKey( |
| | 50027 | Schema.Number.annotate({ |
| | 50028 | description: |
| | 50029 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50030 | format: "int64", |
| | 50031 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50032 | ), |
| | 50033 | method: Schema.Literal("project/changed").annotate({ |
| | 50034 | title: "Project/changedNotificationMethod", |
| | 50035 | }), |
| | 50036 | params: ServerNotification__ProjectChangedNotification, |
| | 50037 | }).annotate({ title: "Project/changedNotification" }), |
| | 50038 | Schema.Struct({ |
| | 50039 | emittedAtMs: Schema.optionalKey( |
| | 50040 | Schema.Number.annotate({ |
| | 50041 | description: |
| | 50042 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50043 | format: "int64", |
| | 50044 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50045 | ), |
| | 50046 | method: Schema.Literal("thread/project/updated").annotate({ |
| | 50047 | title: "Thread/project/updatedNotificationMethod", |
| | 50048 | }), |
| | 50049 | params: ServerNotification__ThreadProjectUpdatedNotification, |
| | 50050 | }).annotate({ title: "Thread/project/updatedNotification" }), |
| 39440 | Schema.Struct({ | 50051 | Schema.Struct({ |
| 39441 | emittedAtMs: Schema.optionalKey( | 50052 | emittedAtMs: Schema.optionalKey( |
| 39442 | Schema.Number.annotate({ | 50053 | Schema.Number.annotate({ |
| ... | @@ -39600,6 +50211,19 @@ export const ServerNotification = Schema.Union( | ... | @@ -39600,6 +50211,19 @@ export const ServerNotification = Schema.Union( |
| 39600 | }), | 50211 | }), |
| 39601 | params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification, | 50212 | params: ServerNotification__ItemGuardianApprovalReviewCompletedNotification, |
| 39602 | }).annotate({ title: "Item/autoApprovalReview/completedNotification" }), | 50213 | }).annotate({ title: "Item/autoApprovalReview/completedNotification" }), |
| | 50214 | Schema.Struct({ |
| | 50215 | emittedAtMs: Schema.optionalKey( |
| | 50216 | Schema.Number.annotate({ |
| | 50217 | description: |
| | 50218 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50219 | format: "int64", |
| | 50220 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50221 | ), |
| | 50222 | method: Schema.Literal("autoApprovalReview/strictReviewRequired").annotate({ |
| | 50223 | title: "AutoApprovalReview/strictReviewRequiredNotificationMethod", |
| | 50224 | }), |
| | 50225 | params: ServerNotification__StrictReviewRequiredNotification, |
| | 50226 | }).annotate({ title: "AutoApprovalReview/strictReviewRequiredNotification" }), |
| 39603 | Schema.Struct({ | 50227 | Schema.Struct({ |
| 39604 | emittedAtMs: Schema.optionalKey( | 50228 | emittedAtMs: Schema.optionalKey( |
| 39605 | Schema.Number.annotate({ | 50229 | Schema.Number.annotate({ |
| ... | @@ -39799,6 +50423,19 @@ export const ServerNotification = Schema.Union( | ... | @@ -39799,6 +50423,19 @@ export const ServerNotification = Schema.Union( |
| 39799 | }), | 50423 | }), |
| 39800 | params: ServerNotification__McpServerStatusUpdatedNotification, | 50424 | params: ServerNotification__McpServerStatusUpdatedNotification, |
| 39801 | }).annotate({ title: "McpServer/startupStatus/updatedNotification" }), | 50425 | }).annotate({ title: "McpServer/startupStatus/updatedNotification" }), |
| | 50426 | Schema.Struct({ |
| | 50427 | emittedAtMs: Schema.optionalKey( |
| | 50428 | Schema.Number.annotate({ |
| | 50429 | description: |
| | 50430 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50431 | format: "int64", |
| | 50432 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50433 | ), |
| | 50434 | method: Schema.Literal("mcpServer/event/stream/notification").annotate({ |
| | 50435 | title: "McpServer/event/stream/notificationNotificationMethod", |
| | 50436 | }), |
| | 50437 | params: ServerNotification__McpServerEventStreamNotification, |
| | 50438 | }).annotate({ title: "McpServer/event/stream/notificationNotification" }), |
| 39802 | Schema.Struct({ | 50439 | Schema.Struct({ |
| 39803 | emittedAtMs: Schema.optionalKey( | 50440 | emittedAtMs: Schema.optionalKey( |
| 39804 | Schema.Number.annotate({ | 50441 | Schema.Number.annotate({ |
| ... | @@ -39969,6 +50606,32 @@ export const ServerNotification = Schema.Union( | ... | @@ -39969,6 +50606,32 @@ export const ServerNotification = Schema.Union( |
| 39969 | }), | 50606 | }), |
| 39970 | params: ServerNotification__ModelVerificationNotification, | 50607 | params: ServerNotification__ModelVerificationNotification, |
| 39971 | }).annotate({ title: "Model/verificationNotification" }), | 50608 | }).annotate({ title: "Model/verificationNotification" }), |
| | 50609 | Schema.Struct({ |
| | 50610 | emittedAtMs: Schema.optionalKey( |
| | 50611 | Schema.Number.annotate({ |
| | 50612 | description: |
| | 50613 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50614 | format: "int64", |
| | 50615 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50616 | ), |
| | 50617 | method: Schema.Literal("modelProvider/authRecoveryStarted").annotate({ |
| | 50618 | title: "ModelProvider/authRecoveryStartedNotificationMethod", |
| | 50619 | }), |
| | 50620 | params: ServerNotification__AuthRecoveryNotification, |
| | 50621 | }).annotate({ title: "ModelProvider/authRecoveryStartedNotification" }), |
| | 50622 | Schema.Struct({ |
| | 50623 | emittedAtMs: Schema.optionalKey( |
| | 50624 | Schema.Number.annotate({ |
| | 50625 | description: |
| | 50626 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50627 | format: "int64", |
| | 50628 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50629 | ), |
| | 50630 | method: Schema.Literal("modelProvider/authRecoveryCompleted").annotate({ |
| | 50631 | title: "ModelProvider/authRecoveryCompletedNotificationMethod", |
| | 50632 | }), |
| | 50633 | params: ServerNotification__AuthRecoveryNotification, |
| | 50634 | }).annotate({ title: "ModelProvider/authRecoveryCompletedNotification" }), |
| 39972 | Schema.Struct({ | 50635 | Schema.Struct({ |
| 39973 | emittedAtMs: Schema.optionalKey( | 50636 | emittedAtMs: Schema.optionalKey( |
| 39974 | Schema.Number.annotate({ | 50637 | Schema.Number.annotate({ |
| ... | @@ -40097,6 +50760,45 @@ export const ServerNotification = Schema.Union( | ... | @@ -40097,6 +50760,45 @@ export const ServerNotification = Schema.Union( |
| 40097 | }), | 50760 | }), |
| 40098 | params: ServerNotification__ThreadRealtimeItemAddedNotification, | 50761 | params: ServerNotification__ThreadRealtimeItemAddedNotification, |
| 40099 | }).annotate({ title: "Thread/realtime/itemAddedNotification" }), | 50762 | }).annotate({ title: "Thread/realtime/itemAddedNotification" }), |
| | 50763 | Schema.Struct({ |
| | 50764 | emittedAtMs: Schema.optionalKey( |
| | 50765 | Schema.Number.annotate({ |
| | 50766 | description: |
| | 50767 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50768 | format: "int64", |
| | 50769 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50770 | ), |
| | 50771 | method: Schema.Literal("thread/realtime/item/started").annotate({ |
| | 50772 | title: "Thread/realtime/item/startedNotificationMethod", |
| | 50773 | }), |
| | 50774 | params: ServerNotification__ThreadRealtimeItemStartedNotification, |
| | 50775 | }).annotate({ title: "Thread/realtime/item/startedNotification" }), |
| | 50776 | Schema.Struct({ |
| | 50777 | emittedAtMs: Schema.optionalKey( |
| | 50778 | Schema.Number.annotate({ |
| | 50779 | description: |
| | 50780 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50781 | format: "int64", |
| | 50782 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50783 | ), |
| | 50784 | method: Schema.Literal("thread/realtime/item/transcript/delta").annotate({ |
| | 50785 | title: "Thread/realtime/item/transcript/deltaNotificationMethod", |
| | 50786 | }), |
| | 50787 | params: ServerNotification__ThreadRealtimeItemTranscriptDeltaNotification, |
| | 50788 | }).annotate({ title: "Thread/realtime/item/transcript/deltaNotification" }), |
| | 50789 | Schema.Struct({ |
| | 50790 | emittedAtMs: Schema.optionalKey( |
| | 50791 | Schema.Number.annotate({ |
| | 50792 | description: |
| | 50793 | "Unix timestamp (in milliseconds) when app-server emitted this notification.", |
| | 50794 | format: "int64", |
| | 50795 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 50796 | ), |
| | 50797 | method: Schema.Literal("thread/realtime/item/completed").annotate({ |
| | 50798 | title: "Thread/realtime/item/completedNotificationMethod", |
| | 50799 | }), |
| | 50800 | params: ServerNotification__ThreadRealtimeItemCompletedNotification, |
| | 50801 | }).annotate({ title: "Thread/realtime/item/completedNotification" }), |
| 40100 | Schema.Struct({ | 50802 | Schema.Struct({ |
| 40101 | emittedAtMs: Schema.optionalKey( | 50803 | emittedAtMs: Schema.optionalKey( |
| 40102 | Schema.Number.annotate({ | 50804 | Schema.Number.annotate({ |
| ... | @@ -40240,15 +50942,25 @@ export const ServerNotification__MultiAgentMode = Schema.Union( | ... | @@ -40240,15 +50942,25 @@ export const ServerNotification__MultiAgentMode = Schema.Union( |
| 40240 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 50942 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 40241 | }); | 50943 | }); |
| 40242 | | 50944 | |
| | 50945 | export type ServerNotification__ThreadEnvironment = { |
| | 50946 | readonly cwd: ServerNotification__LegacyAppPathString; |
| | 50947 | readonly environmentId: string; |
| | 50948 | readonly runtimeWorkspaceRoots: ReadonlyArray<ServerNotification__LegacyAppPathString>; |
| | 50949 | }; |
| | 50950 | export const ServerNotification__ThreadEnvironment = Schema.Struct({ |
| | 50951 | cwd: ServerNotification__LegacyAppPathString, |
| | 50952 | environmentId: Schema.String, |
| | 50953 | runtimeWorkspaceRoots: Schema.Array(ServerNotification__LegacyAppPathString), |
| | 50954 | }).annotate({ |
| | 50955 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 50956 | }); |
| | 50957 | |
| 40243 | export type ServerNotification__ThreadExtra = { readonly [x: string]: Schema.Json }; | 50958 | export type ServerNotification__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 40244 | export const ServerNotification__ThreadExtra = Schema.Record( | 50959 | export const ServerNotification__ThreadExtra = Schema.Record( |
| 40245 | Schema.String, | 50960 | Schema.String, |
| 40246 | Schema.Json.annotate({ expected: "JSON value" }), | 50961 | Schema.Json.annotate({ expected: "JSON value" }), |
| 40247 | ).annotate({ description: "Extra app-server data for a thread." }); | 50962 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 40248 | | 50963 | |
| 40249 | export type ServerNotification__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 40250 | export const ServerNotification__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | | |
| 40251 | | | |
| 40252 | export type ServerRequest = | 50964 | export type ServerRequest = |
| 40253 | | { | 50965 | | { |
| 40254 | readonly id: ServerRequest__RequestId; | 50966 | readonly id: ServerRequest__RequestId; |
| ... | @@ -40474,6 +51186,7 @@ export const ServerRequest__CommandExecutionApprovalDecision = Schema.Union( | ... | @@ -40474,6 +51186,7 @@ export const ServerRequest__CommandExecutionApprovalDecision = Schema.Union( |
| 40474 | | 51186 | |
| 40475 | export type ToolRequestUserInputParams = { | 51187 | export type ToolRequestUserInputParams = { |
| 40476 | readonly autoResolutionMs?: number | null; | 51188 | readonly autoResolutionMs?: number | null; |
| | 51189 | readonly isBlocking: boolean; |
| 40477 | readonly itemId: string; | 51190 | readonly itemId: string; |
| 40478 | readonly questions: ReadonlyArray<ToolRequestUserInputParams__ToolRequestUserInputQuestion>; | 51191 | readonly questions: ReadonlyArray<ToolRequestUserInputParams__ToolRequestUserInputQuestion>; |
| 40479 | readonly threadId: string; | 51192 | readonly threadId: string; |
| ... | @@ -40482,7 +51195,10 @@ export type ToolRequestUserInputParams = { | ... | @@ -40482,7 +51195,10 @@ export type ToolRequestUserInputParams = { |
| 40482 | export const ToolRequestUserInputParams = Schema.Struct({ | 51195 | export const ToolRequestUserInputParams = Schema.Struct({ |
| 40483 | autoResolutionMs: Schema.optionalKey( | 51196 | autoResolutionMs: Schema.optionalKey( |
| 40484 | Schema.Union([ | 51197 | Schema.Union([ |
| 40485 | Schema.Number.annotate({ format: "uint64" }) | 51198 | Schema.Number.annotate({ |
| | 51199 | description: "@deprecated Use `isBlocking` to decide whether the request should block.", |
| | 51200 | format: "uint64", |
| | 51201 | }) |
| 40486 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 51202 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| 40487 | .check( | 51203 | .check( |
| 40488 | Schema.isGreaterThanOrEqualTo(0).annotate({ | 51204 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| ... | @@ -40492,6 +51208,7 @@ export const ToolRequestUserInputParams = Schema.Struct({ | ... | @@ -40492,6 +51208,7 @@ export const ToolRequestUserInputParams = Schema.Struct({ |
| 40492 | Schema.Null, | 51208 | Schema.Null, |
| 40493 | ]), | 51209 | ]), |
| 40494 | ), | 51210 | ), |
| | 51211 | isBlocking: Schema.Boolean, |
| 40495 | itemId: Schema.String, | 51212 | itemId: Schema.String, |
| 40496 | questions: Schema.Array(ToolRequestUserInputParams__ToolRequestUserInputQuestion), | 51213 | questions: Schema.Array(ToolRequestUserInputParams__ToolRequestUserInputQuestion), |
| 40497 | threadId: Schema.String, | 51214 | threadId: Schema.String, |
| ... | @@ -40549,11 +51266,15 @@ export const V1InitializeResponse = Schema.Struct({ | ... | @@ -40549,11 +51266,15 @@ export const V1InitializeResponse = Schema.Struct({ |
| 40549 | export type V2AccountLoginCompletedNotification = { | 51266 | export type V2AccountLoginCompletedNotification = { |
| 40550 | readonly error?: string | null; | 51267 | readonly error?: string | null; |
| 40551 | readonly loginId?: string | null; | 51268 | readonly loginId?: string | null; |
| | 51269 | readonly onboardingEntrypoint?: V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint | null; |
| 40552 | readonly success: boolean; | 51270 | readonly success: boolean; |
| 40553 | }; | 51271 | }; |
| 40554 | export const V2AccountLoginCompletedNotification = Schema.Struct({ | 51272 | export const V2AccountLoginCompletedNotification = Schema.Struct({ |
| 40555 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 51273 | error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 40556 | loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 51274 | loginId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 51275 | onboardingEntrypoint: Schema.optionalKey( |
| | 51276 | Schema.Union([V2AccountLoginCompletedNotification__DesktopOnboardingEntrypoint, Schema.Null]), |
| | 51277 | ), |
| 40557 | success: Schema.Boolean, | 51278 | success: Schema.Boolean, |
| 40558 | }).annotate({ title: "AccountLoginCompletedNotification" }); | 51279 | }).annotate({ title: "AccountLoginCompletedNotification" }); |
| 40559 | | 51280 | |
| ... | @@ -40703,6 +51424,7 @@ export const V2AppsListResponse = Schema.Struct({ | ... | @@ -40703,6 +51424,7 @@ export const V2AppsListResponse = Schema.Struct({ |
| 40703 | export type V2AppsReadParams = { | 51424 | export type V2AppsReadParams = { |
| 40704 | readonly appIds: ReadonlyArray<string>; | 51425 | readonly appIds: ReadonlyArray<string>; |
| 40705 | readonly includeTools?: boolean; | 51426 | readonly includeTools?: boolean; |
| | 51427 | readonly threadId?: string | null; |
| 40706 | }; | 51428 | }; |
| 40707 | export const V2AppsReadParams = Schema.Struct({ | 51429 | export const V2AppsReadParams = Schema.Struct({ |
| 40708 | appIds: Schema.Array(Schema.String).annotate({ | 51430 | appIds: Schema.Array(Schema.String).annotate({ |
| ... | @@ -40715,6 +51437,14 @@ export const V2AppsReadParams = Schema.Struct({ | ... | @@ -40715,6 +51437,14 @@ export const V2AppsReadParams = Schema.Struct({ |
| 40715 | "When true, include display-only public tool summaries in the returned metadata.", | 51437 | "When true, include display-only public tool summaries in the returned metadata.", |
| 40716 | }), | 51438 | }), |
| 40717 | ), | 51439 | ), |
| | 51440 | threadId: Schema.optionalKey( |
| | 51441 | Schema.Union([ |
| | 51442 | Schema.String.annotate({ |
| | 51443 | description: "Optional loaded thread id used to evaluate effective app configuration.", |
| | 51444 | }), |
| | 51445 | Schema.Null, |
| | 51446 | ]), |
| | 51447 | ), |
| 40718 | }).annotate({ | 51448 | }).annotate({ |
| 40719 | title: "AppsReadParams", | 51449 | title: "AppsReadParams", |
| 40720 | description: "EXPERIMENTAL - read metadata for specific apps/connectors.", | 51450 | description: "EXPERIMENTAL - read metadata for specific apps/connectors.", |
| ... | @@ -40729,6 +51459,19 @@ export const V2AppsReadResponse = Schema.Struct({ | ... | @@ -40729,6 +51459,19 @@ export const V2AppsReadResponse = Schema.Struct({ |
| 40729 | missingAppIds: Schema.Array(Schema.String), | 51459 | missingAppIds: Schema.Array(Schema.String), |
| 40730 | }).annotate({ title: "AppsReadResponse", description: "EXPERIMENTAL - app/read response." }); | 51460 | }).annotate({ title: "AppsReadResponse", description: "EXPERIMENTAL - app/read response." }); |
| 40731 | | 51461 | |
| | 51462 | export type V2AuthRecoveryNotification = { |
| | 51463 | readonly message: string; |
| | 51464 | readonly provider: string; |
| | 51465 | readonly threadId: string; |
| | 51466 | readonly turnId: string; |
| | 51467 | }; |
| | 51468 | export const V2AuthRecoveryNotification = Schema.Struct({ |
| | 51469 | message: Schema.String, |
| | 51470 | provider: Schema.String, |
| | 51471 | threadId: Schema.String, |
| | 51472 | turnId: Schema.String, |
| | 51473 | }).annotate({ title: "AuthRecoveryNotification" }); |
| | 51474 | |
| 40732 | export type V2CancelLoginAccountParams = { readonly loginId: string }; | 51475 | export type V2CancelLoginAccountParams = { readonly loginId: string }; |
| 40733 | export const V2CancelLoginAccountParams = Schema.Struct({ loginId: Schema.String }).annotate({ | 51476 | export const V2CancelLoginAccountParams = Schema.Struct({ loginId: Schema.String }).annotate({ |
| 40734 | title: "CancelLoginAccountParams", | 51477 | title: "CancelLoginAccountParams", |
| ... | @@ -41022,7 +51765,7 @@ export const V2ConfigBatchWriteParams = Schema.Struct({ | ... | @@ -41022,7 +51765,7 @@ export const V2ConfigBatchWriteParams = Schema.Struct({ |
| 41022 | reloadUserConfig: Schema.optionalKey( | 51765 | reloadUserConfig: Schema.optionalKey( |
| 41023 | Schema.Boolean.annotate({ | 51766 | Schema.Boolean.annotate({ |
| 41024 | description: | 51767 | description: |
| 41025 | "When true, hot-reload the updated user config into all loaded threads after writing.", | 51768 | "When true, hot-reload updated runtime settings into loaded threads after writing. Session-static model, reasoning-effort, Plan-mode reasoning-effort, and service-tier defaults are not reloaded. The deprecated personality setting is also not reloaded.", |
| 41026 | }), | 51769 | }), |
| 41027 | ), | 51770 | ), |
| 41028 | }).annotate({ title: "ConfigBatchWriteParams" }); | 51771 | }).annotate({ title: "ConfigBatchWriteParams" }); |
| ... | @@ -41060,6 +51803,8 @@ export type V2ConfigReadResponse__AppConfig = { | ... | @@ -41060,6 +51803,8 @@ export type V2ConfigReadResponse__AppConfig = { |
| 41060 | readonly default_tools_enabled?: boolean | null; | 51803 | readonly default_tools_enabled?: boolean | null; |
| 41061 | readonly destructive_enabled?: boolean | null; | 51804 | readonly destructive_enabled?: boolean | null; |
| 41062 | readonly enabled?: boolean; | 51805 | readonly enabled?: boolean; |
| | 51806 | readonly links?: V2ConfigReadResponse__AppLinksConfig | null; |
| | 51807 | readonly omit_tools_from?: ReadonlyArray<V2ConfigReadResponse__ToolExposureSurface> | null; |
| 41063 | readonly open_world_enabled?: boolean | null; | 51808 | readonly open_world_enabled?: boolean | null; |
| 41064 | readonly tools?: V2ConfigReadResponse__AppToolsConfig | null; | 51809 | readonly tools?: V2ConfigReadResponse__AppToolsConfig | null; |
| 41065 | }; | 51810 | }; |
| ... | @@ -41073,10 +51818,36 @@ export const V2ConfigReadResponse__AppConfig = Schema.Struct({ | ... | @@ -41073,10 +51818,36 @@ export const V2ConfigReadResponse__AppConfig = Schema.Struct({ |
| 41073 | default_tools_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 51818 | default_tools_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 41074 | destructive_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 51819 | destructive_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 41075 | enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), | 51820 | enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: true })), |
| | 51821 | links: Schema.optionalKey( |
| | 51822 | Schema.Union([V2ConfigReadResponse__AppLinksConfig, Schema.Null]).annotate({ |
| | 51823 | description: "Per-account approval settings keyed by link ID.", |
| | 51824 | }), |
| | 51825 | ), |
| | 51826 | omit_tools_from: Schema.optionalKey( |
| | 51827 | Schema.Union([ |
| | 51828 | Schema.Array(V2ConfigReadResponse__ToolExposureSurface).annotate({ |
| | 51829 | description: "Additional model-facing surfaces omitted for this connector's tools.", |
| | 51830 | }), |
| | 51831 | Schema.Null, |
| | 51832 | ]), |
| | 51833 | ), |
| 41076 | open_world_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 51834 | open_world_enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 41077 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__AppToolsConfig, Schema.Null])), | 51835 | tools: Schema.optionalKey(Schema.Union([V2ConfigReadResponse__AppToolsConfig, Schema.Null])), |
| 41078 | }); | 51836 | }); |
| 41079 | | 51837 | |
| | 51838 | export type V2ConfigReadResponse__AppLinkConfig = { |
| | 51839 | readonly approvals_reviewer?: V2ConfigReadResponse__ApprovalsReviewer | null; |
| | 51840 | readonly default_tools_approval_mode?: V2ConfigReadResponse__AppToolApproval | null; |
| | 51841 | }; |
| | 51842 | export const V2ConfigReadResponse__AppLinkConfig = Schema.Struct({ |
| | 51843 | approvals_reviewer: Schema.optionalKey( |
| | 51844 | Schema.Union([V2ConfigReadResponse__ApprovalsReviewer, Schema.Null]), |
| | 51845 | ), |
| | 51846 | default_tools_approval_mode: Schema.optionalKey( |
| | 51847 | Schema.Union([V2ConfigReadResponse__AppToolApproval, Schema.Null]), |
| | 51848 | ), |
| | 51849 | }).annotate({ description: "Approval settings for a connected account within an app." }); |
| | 51850 | |
| 41080 | export type V2ConfigReadResponse__AppsConfig = { | 51851 | export type V2ConfigReadResponse__AppsConfig = { |
| 41081 | readonly _default?: V2ConfigReadResponse__AppsDefaultConfig | null; | 51852 | readonly _default?: V2ConfigReadResponse__AppsDefaultConfig | null; |
| 41082 | }; | 51853 | }; |
| ... | @@ -41109,6 +51880,15 @@ export const V2ConfigRequirementsReadResponse = Schema.Struct({ | ... | @@ -41109,6 +51880,15 @@ export const V2ConfigRequirementsReadResponse = Schema.Struct({ |
| 41109 | ), | 51880 | ), |
| 41110 | }).annotate({ title: "ConfigRequirementsReadResponse" }); | 51881 | }).annotate({ title: "ConfigRequirementsReadResponse" }); |
| 41111 | | 51882 | |
| | 51883 | export type V2ConfigRequirementsReadResponse__ApplicationRequirements = { |
| | 51884 | readonly network?: V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements | null; |
| | 51885 | }; |
| | 51886 | export const V2ConfigRequirementsReadResponse__ApplicationRequirements = Schema.Struct({ |
| | 51887 | network: Schema.optionalKey( |
| | 51888 | Schema.Union([V2ConfigRequirementsReadResponse__ApplicationNetworkRequirements, Schema.Null]), |
| | 51889 | ), |
| | 51890 | }); |
| | 51891 | |
| 41112 | export type V2ConfigRequirementsReadResponse__ApprovalsReviewer = | 51892 | export type V2ConfigRequirementsReadResponse__ApprovalsReviewer = |
| 41113 | | "user" | 51893 | | "user" |
| 41114 | | "auto_review" | 51894 | | "auto_review" |
| ... | @@ -41123,6 +51903,7 @@ export const V2ConfigRequirementsReadResponse__ApprovalsReviewer = Schema.Litera | ... | @@ -41123,6 +51903,7 @@ export const V2ConfigRequirementsReadResponse__ApprovalsReviewer = Schema.Litera |
| 41123 | }); | 51903 | }); |
| 41124 | | 51904 | |
| 41125 | export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = { | 51905 | export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = { |
| | 51906 | readonly Interrupt?: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 41126 | readonly PermissionRequest: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; | 51907 | readonly PermissionRequest: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 41127 | readonly PostCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; | 51908 | readonly PostCompact: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| 41128 | readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; | 51909 | readonly PostToolUse: ReadonlyArray<V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup>; |
| ... | @@ -41138,6 +51919,11 @@ export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = { | ... | @@ -41138,6 +51919,11 @@ export type V2ConfigRequirementsReadResponse__ManagedHooksRequirements = { |
| 41138 | readonly windowsManagedDir?: string | null; | 51919 | readonly windowsManagedDir?: string | null; |
| 41139 | }; | 51920 | }; |
| 41140 | export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema.Struct({ | 51921 | export const V2ConfigRequirementsReadResponse__ManagedHooksRequirements = Schema.Struct({ |
| | 51922 | Interrupt: Schema.optionalKey( |
| | 51923 | Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup).annotate({ |
| | 51924 | default: [], |
| | 51925 | }), |
| | 51926 | ), |
| 41141 | PermissionRequest: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), | 51927 | PermissionRequest: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 41142 | PostCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), | 51928 | PostCompact: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| 41143 | PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), | 51929 | PostToolUse: Schema.Array(V2ConfigRequirementsReadResponse__ConfiguredHookMatcherGroup), |
| ... | @@ -41484,6 +52270,8 @@ export const V2ExperimentalFeatureListResponse = Schema.Struct({ | ... | @@ -41484,6 +52270,8 @@ export const V2ExperimentalFeatureListResponse = Schema.Struct({ |
| 41484 | export type V2ExternalAgentConfigDetectParams = { | 52270 | export type V2ExternalAgentConfigDetectParams = { |
| 41485 | readonly cwds?: ReadonlyArray<string> | null; | 52271 | readonly cwds?: ReadonlyArray<string> | null; |
| 41486 | readonly includeHome?: boolean; | 52272 | readonly includeHome?: boolean; |
| | 52273 | readonly maxSessionAgeDays?: number | null; |
| | 52274 | readonly maxSessions?: number | null; |
| 41487 | readonly migrationSource?: string | null; | 52275 | readonly migrationSource?: string | null; |
| 41488 | readonly source?: string | null; | 52276 | readonly source?: string | null; |
| 41489 | }; | 52277 | }; |
| ... | @@ -41501,6 +52289,37 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({ | ... | @@ -41501,6 +52289,37 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({ |
| 41501 | description: "If true, include detection under the user's home directory.", | 52289 | description: "If true, include detection under the user's home directory.", |
| 41502 | }), | 52290 | }), |
| 41503 | ), | 52291 | ), |
| | 52292 | maxSessionAgeDays: Schema.optionalKey( |
| | 52293 | Schema.Union([ |
| | 52294 | Schema.Number.annotate({ |
| | 52295 | description: |
| | 52296 | "Maximum age in days for detected sessions. Missing values use the default limit.", |
| | 52297 | format: "uint32", |
| | 52298 | }) |
| | 52299 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 52300 | .check( |
| | 52301 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 52302 | expected: "a value greater than or equal to 0", |
| | 52303 | }), |
| | 52304 | ), |
| | 52305 | Schema.Null, |
| | 52306 | ]), |
| | 52307 | ), |
| | 52308 | maxSessions: Schema.optionalKey( |
| | 52309 | Schema.Union([ |
| | 52310 | Schema.Number.annotate({ |
| | 52311 | description: "Maximum number of sessions to detect. Missing values use the default limit.", |
| | 52312 | format: "uint32", |
| | 52313 | }) |
| | 52314 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 52315 | .check( |
| | 52316 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 52317 | expected: "a value greater than or equal to 0", |
| | 52318 | }), |
| | 52319 | ), |
| | 52320 | Schema.Null, |
| | 52321 | ]), |
| | 52322 | ), |
| 41504 | migrationSource: Schema.optionalKey( | 52323 | migrationSource: Schema.optionalKey( |
| 41505 | Schema.Union([ | 52324 | Schema.Union([ |
| 41506 | Schema.String.annotate({ | 52325 | Schema.String.annotate({ |
| ... | @@ -41522,9 +52341,15 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({ | ... | @@ -41522,9 +52341,15 @@ export const V2ExternalAgentConfigDetectParams = Schema.Struct({ |
| 41522 | }).annotate({ title: "ExternalAgentConfigDetectParams" }); | 52341 | }).annotate({ title: "ExternalAgentConfigDetectParams" }); |
| 41523 | | 52342 | |
| 41524 | export type V2ExternalAgentConfigDetectResponse = { | 52343 | export type V2ExternalAgentConfigDetectResponse = { |
| | 52344 | readonly connectors?: ReadonlyArray<V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate>; |
| 41525 | readonly items: ReadonlyArray<V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem>; | 52345 | readonly items: ReadonlyArray<V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem>; |
| 41526 | }; | 52346 | }; |
| 41527 | export const V2ExternalAgentConfigDetectResponse = Schema.Struct({ | 52347 | export const V2ExternalAgentConfigDetectResponse = Schema.Struct({ |
| | 52348 | connectors: Schema.optionalKey( |
| | 52349 | Schema.Array( |
| | 52350 | V2ExternalAgentConfigDetectResponse__ExternalAgentDetectedConnectorCandidate, |
| | 52351 | ).annotate({ default: [] }), |
| | 52352 | ), |
| 41528 | items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem), | 52353 | items: Schema.Array(V2ExternalAgentConfigDetectResponse__ExternalAgentConfigMigrationItem), |
| 41529 | }).annotate({ title: "ExternalAgentConfigDetectResponse" }); | 52354 | }).annotate({ title: "ExternalAgentConfigDetectResponse" }); |
| 41530 | | 52355 | |
| ... | @@ -41552,9 +52377,28 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse = Schema.Struct({ | ... | @@ -41552,9 +52377,28 @@ export const V2ExternalAgentConfigImportHistoriesReadResponse = Schema.Struct({ |
| 41552 | ), | 52377 | ), |
| 41553 | }).annotate({ title: "ExternalAgentConfigImportHistoriesReadResponse" }); | 52378 | }).annotate({ title: "ExternalAgentConfigImportHistoriesReadResponse" }); |
| 41554 | | 52379 | |
| | 52380 | export type V2ExternalAgentConfigImportHistoryRecordParams = { |
| | 52381 | readonly itemTypeResults: ReadonlyArray<V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams>; |
| | 52382 | readonly providerId: string; |
| | 52383 | }; |
| | 52384 | export const V2ExternalAgentConfigImportHistoryRecordParams = Schema.Struct({ |
| | 52385 | itemTypeResults: Schema.Array( |
| | 52386 | V2ExternalAgentConfigImportHistoryRecordParams__ExternalAgentConfigImportHistoryRecordTypeResultParams, |
| | 52387 | ).annotate({ description: "Completed results grouped by imported item type." }), |
| | 52388 | providerId: Schema.String.annotate({ |
| | 52389 | description: "Opaque provider identifier for the externally completed import.", |
| | 52390 | }), |
| | 52391 | }).annotate({ title: "ExternalAgentConfigImportHistoryRecordParams" }); |
| | 52392 | |
| | 52393 | export type V2ExternalAgentConfigImportHistoryRecordResponse = { readonly importId: string }; |
| | 52394 | export const V2ExternalAgentConfigImportHistoryRecordResponse = Schema.Struct({ |
| | 52395 | importId: Schema.String, |
| | 52396 | }).annotate({ title: "ExternalAgentConfigImportHistoryRecordResponse" }); |
| | 52397 | |
| 41555 | export type V2ExternalAgentConfigImportParams = { | 52398 | export type V2ExternalAgentConfigImportParams = { |
| 41556 | readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>; | 52399 | readonly migrationItems: ReadonlyArray<V2ExternalAgentConfigImportParams__ExternalAgentConfigMigrationItem>; |
| 41557 | readonly migrationSource?: string | null; | 52400 | readonly migrationSource?: string | null; |
| | 52401 | readonly providerId?: string | null; |
| 41558 | readonly source?: string | null; | 52402 | readonly source?: string | null; |
| 41559 | }; | 52403 | }; |
| 41560 | export const V2ExternalAgentConfigImportParams = Schema.Struct({ | 52404 | export const V2ExternalAgentConfigImportParams = Schema.Struct({ |
| ... | @@ -41568,6 +52412,15 @@ export const V2ExternalAgentConfigImportParams = Schema.Struct({ | ... | @@ -41568,6 +52412,15 @@ export const V2ExternalAgentConfigImportParams = Schema.Struct({ |
| 41568 | Schema.Null, | 52412 | Schema.Null, |
| 41569 | ]), | 52413 | ]), |
| 41570 | ), | 52414 | ), |
| | 52415 | providerId: Schema.optionalKey( |
| | 52416 | Schema.Union([ |
| | 52417 | Schema.String.annotate({ |
| | 52418 | description: |
| | 52419 | "Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.", |
| | 52420 | }), |
| | 52421 | Schema.Null, |
| | 52422 | ]), |
| | 52423 | ), |
| 41571 | source: Schema.optionalKey( | 52424 | source: Schema.optionalKey( |
| 41572 | Schema.Union([ | 52425 | Schema.Union([ |
| 41573 | Schema.String.annotate({ | 52426 | Schema.String.annotate({ |
| ... | @@ -41613,10 +52466,22 @@ export const V2FeedbackUploadParams = Schema.Struct({ | ... | @@ -41613,10 +52466,22 @@ export const V2FeedbackUploadParams = Schema.Struct({ |
| 41613 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 52466 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 41614 | }).annotate({ title: "FeedbackUploadParams" }); | 52467 | }).annotate({ title: "FeedbackUploadParams" }); |
| 41615 | | 52468 | |
| 41616 | export type V2FeedbackUploadResponse = { readonly threadId: string }; | 52469 | export type V2FeedbackUploadResponse = { |
| 41617 | export const V2FeedbackUploadResponse = Schema.Struct({ threadId: Schema.String }).annotate({ | 52470 | readonly promptHash?: string | null; |
| 41618 | title: "FeedbackUploadResponse", | 52471 | readonly threadId: string; |
| 41619 | }); | 52472 | }; |
| | 52473 | export const V2FeedbackUploadResponse = Schema.Struct({ |
| | 52474 | promptHash: Schema.optionalKey( |
| | 52475 | Schema.Union([ |
| | 52476 | Schema.String.annotate({ |
| | 52477 | description: |
| | 52478 | "Whitespace-normalized SHA-256 of the session base instructions, matching the uploaded `prompt_hash` tag. Does not include later developer messages. Null when the reported rollout has no prompt metadata.", |
| | 52479 | }), |
| | 52480 | Schema.Null, |
| | 52481 | ]), |
| | 52482 | ), |
| | 52483 | threadId: Schema.String, |
| | 52484 | }).annotate({ title: "FeedbackUploadResponse" }); |
| 41620 | | 52485 | |
| 41621 | export type V2FileChangeOutputDeltaNotification = { | 52486 | export type V2FileChangeOutputDeltaNotification = { |
| 41622 | readonly delta: string; | 52487 | readonly delta: string; |
| ... | @@ -41906,16 +52771,43 @@ export const V2GetAccountParams = Schema.Struct({ | ... | @@ -41906,16 +52771,43 @@ export const V2GetAccountParams = Schema.Struct({ |
| 41906 | }).annotate({ title: "GetAccountParams" }); | 52771 | }).annotate({ title: "GetAccountParams" }); |
| 41907 | | 52772 | |
| 41908 | export type V2GetAccountRateLimitsResponse = { | 52773 | export type V2GetAccountRateLimitsResponse = { |
| | 52774 | readonly accountId?: string | null; |
| | 52775 | readonly ordinaryUsageAllowed?: boolean | null; |
| 41909 | readonly rateLimitResetCredits?: V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary | null; | 52776 | readonly rateLimitResetCredits?: V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary | null; |
| | 52777 | readonly rateLimitUpsell?: Schema.Json; |
| 41910 | readonly rateLimits: V2GetAccountRateLimitsResponse__RateLimitSnapshot; | 52778 | readonly rateLimits: V2GetAccountRateLimitsResponse__RateLimitSnapshot; |
| 41911 | readonly rateLimitsByLimitId?: { | 52779 | readonly rateLimitsByLimitId?: { |
| 41912 | readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot; | 52780 | readonly [x: string]: V2GetAccountRateLimitsResponse__RateLimitSnapshot; |
| 41913 | } | null; | 52781 | } | null; |
| 41914 | }; | 52782 | }; |
| 41915 | export const V2GetAccountRateLimitsResponse = Schema.Struct({ | 52783 | export const V2GetAccountRateLimitsResponse = Schema.Struct({ |
| | 52784 | accountId: Schema.optionalKey( |
| | 52785 | Schema.Union([ |
| | 52786 | Schema.String.annotate({ |
| | 52787 | description: "Account associated with this usage snapshot, when supplied by the backend.", |
| | 52788 | }), |
| | 52789 | Schema.Null, |
| | 52790 | ]), |
| | 52791 | ), |
| | 52792 | ordinaryUsageAllowed: Schema.optionalKey( |
| | 52793 | Schema.Union([ |
| | 52794 | Schema.Boolean.annotate({ |
| | 52795 | description: |
| | 52796 | "Backend permission for ordinary included usage, validated against the active account. Null means unavailable; clients must not infer recovery from percentages or reset times.", |
| | 52797 | }), |
| | 52798 | Schema.Null, |
| | 52799 | ]), |
| | 52800 | ), |
| 41916 | rateLimitResetCredits: Schema.optionalKey( | 52801 | rateLimitResetCredits: Schema.optionalKey( |
| 41917 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary, Schema.Null]), | 52802 | Schema.Union([V2GetAccountRateLimitsResponse__RateLimitResetCreditsSummary, Schema.Null]), |
| 41918 | ), | 52803 | ), |
| | 52804 | rateLimitUpsell: Schema.optionalKey( |
| | 52805 | Schema.Json.annotate({ |
| | 52806 | expected: "JSON value", |
| | 52807 | description: |
| | 52808 | "Optional backend-owned banner from the same usage read. Its nested keys retain the backend's snake_case contract; an absent banner leaves the client's existing UI unchanged.", |
| | 52809 | }), |
| | 52810 | ), |
| 41919 | rateLimits: Schema.suspend( | 52811 | rateLimits: Schema.suspend( |
| 41920 | (): Schema.Codec<V2GetAccountRateLimitsResponse__RateLimitSnapshot> => | 52812 | (): Schema.Codec<V2GetAccountRateLimitsResponse__RateLimitSnapshot> => |
| 41921 | V2GetAccountRateLimitsResponse__RateLimitSnapshot, | 52813 | V2GetAccountRateLimitsResponse__RateLimitSnapshot, |
| ... | @@ -41941,9 +52833,21 @@ export const V2GetAccountResponse = Schema.Struct({ | ... | @@ -41941,9 +52833,21 @@ export const V2GetAccountResponse = Schema.Struct({ |
| 41941 | requiresOpenaiAuth: Schema.Boolean, | 52833 | requiresOpenaiAuth: Schema.Boolean, |
| 41942 | }).annotate({ title: "GetAccountResponse" }); | 52834 | }).annotate({ title: "GetAccountResponse" }); |
| 41943 | | 52835 | |
| | 52836 | export type V2GetAccountResponse__WorkspaceRouting = { |
| | 52837 | readonly accountRoutingOverride: V2GetAccountResponse__AccountRoutingOverride; |
| | 52838 | readonly backendOrigin: string; |
| | 52839 | readonly chatgptAccountId: string; |
| | 52840 | }; |
| | 52841 | export const V2GetAccountResponse__WorkspaceRouting = Schema.Struct({ |
| | 52842 | accountRoutingOverride: V2GetAccountResponse__AccountRoutingOverride, |
| | 52843 | backendOrigin: Schema.String, |
| | 52844 | chatgptAccountId: Schema.String, |
| | 52845 | }); |
| | 52846 | |
| 41944 | export type V2GetAccountTokenUsageResponse = { | 52847 | export type V2GetAccountTokenUsageResponse = { |
| 41945 | readonly dailyUsageBuckets?: ReadonlyArray<V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket> | null; | 52848 | readonly dailyUsageBuckets?: ReadonlyArray<V2GetAccountTokenUsageResponse__AccountTokenUsageDailyBucket> | null; |
| 41946 | readonly summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary; | 52849 | readonly summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary; |
| | 52850 | readonly threadUsage?: V2GetAccountTokenUsageResponse__ThreadUsage | null; |
| 41947 | }; | 52851 | }; |
| 41948 | export const V2GetAccountTokenUsageResponse = Schema.Struct({ | 52852 | export const V2GetAccountTokenUsageResponse = Schema.Struct({ |
| 41949 | dailyUsageBuckets: Schema.optionalKey( | 52853 | dailyUsageBuckets: Schema.optionalKey( |
| ... | @@ -41953,6 +52857,12 @@ export const V2GetAccountTokenUsageResponse = Schema.Struct({ | ... | @@ -41953,6 +52857,12 @@ export const V2GetAccountTokenUsageResponse = Schema.Struct({ |
| 41953 | ]), | 52857 | ]), |
| 41954 | ), | 52858 | ), |
| 41955 | summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary, | 52859 | summary: V2GetAccountTokenUsageResponse__AccountTokenUsageSummary, |
| | 52860 | threadUsage: Schema.optionalKey( |
| | 52861 | Schema.Union([V2GetAccountTokenUsageResponse__ThreadUsage, Schema.Null]).annotate({ |
| | 52862 | description: |
| | 52863 | "Estimated usage when a thread was requested and its billing route is available.", |
| | 52864 | }), |
| | 52865 | ), |
| 41956 | }).annotate({ title: "GetAccountTokenUsageResponse" }); | 52866 | }).annotate({ title: "GetAccountTokenUsageResponse" }); |
| 41957 | | 52867 | |
| 41958 | export type V2GetWorkspaceMessagesResponse = { | 52868 | export type V2GetWorkspaceMessagesResponse = { |
| ... | @@ -42058,7 +52968,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ | ... | @@ -42058,7 +52968,7 @@ export const V2ItemGuardianApprovalReviewCompletedNotification = Schema.Struct({ |
| 42058 | Schema.Union([ | 52968 | Schema.Union([ |
| 42059 | Schema.String.annotate({ | 52969 | Schema.String.annotate({ |
| 42060 | description: | 52970 | description: |
| 42061 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", | 52971 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 42062 | }), | 52972 | }), |
| 42063 | Schema.Null, | 52973 | Schema.Null, |
| 42064 | ]), | 52974 | ]), |
| ... | @@ -42092,7 +53002,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ | ... | @@ -42092,7 +53002,7 @@ export const V2ItemGuardianApprovalReviewStartedNotification = Schema.Struct({ |
| 42092 | Schema.Union([ | 53002 | Schema.Union([ |
| 42093 | Schema.String.annotate({ | 53003 | Schema.String.annotate({ |
| 42094 | description: | 53004 | description: |
| 42095 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", | 53005 | "Identifier for the reviewed item or tool call when one exists.\n\nIn most cases, one review maps to one target item. The exceptions are - execve reviews, where a single command may contain multiple execve calls to review (only possible when using the shell_zsh_fork feature) - stdin reviews, which refer to the existing parent command item and have a separate approval ID in the action payload - network policy reviews, where there is no target item\n\nA network call is triggered by a CommandExecution item, so having a target_item_id set to the CommandExecution item would be misleading because the review is about the network call, not the command execution. Therefore, target_item_id is set to None for network policy reviews.", |
| 42096 | }), | 53006 | }), |
| 42097 | Schema.Null, | 53007 | Schema.Null, |
| 42098 | ]), | 53008 | ]), |
| ... | @@ -42192,7 +53102,14 @@ export type V2LoginAccountParams = | ... | @@ -42192,7 +53102,14 @@ export type V2LoginAccountParams = |
| 42192 | readonly chatgptPlanType?: string | null; | 53102 | readonly chatgptPlanType?: string | null; |
| 42193 | readonly type: "chatgptAuthTokens"; | 53103 | readonly type: "chatgptAuthTokens"; |
| 42194 | } | 53104 | } |
| 42195 | | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" }; | 53105 | | { readonly apiKey: string; readonly region: string; readonly type: "amazonBedrock" } |
| | 53106 | | { |
| | 53107 | readonly accessKeyId: string; |
| | 53108 | readonly region: string; |
| | 53109 | readonly secretAccessKey: string; |
| | 53110 | readonly sessionToken?: string | null; |
| | 53111 | readonly type: "amazonBedrockAccessKeys"; |
| | 53112 | }; |
| 42196 | export const V2LoginAccountParams = Schema.Union( | 53113 | export const V2LoginAccountParams = Schema.Union( |
| 42197 | [ | 53114 | [ |
| 42198 | Schema.Struct({ | 53115 | Schema.Struct({ |
| ... | @@ -42247,6 +53164,18 @@ export const V2LoginAccountParams = Schema.Union( | ... | @@ -42247,6 +53164,18 @@ export const V2LoginAccountParams = Schema.Union( |
| 42247 | title: "AmazonBedrockv2::LoginAccountParams", | 53164 | title: "AmazonBedrockv2::LoginAccountParams", |
| 42248 | description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.", | 53165 | description: "[UNSTABLE] Managed Amazon Bedrock login is experimental.", |
| 42249 | }), | 53166 | }), |
| | 53167 | Schema.Struct({ |
| | 53168 | accessKeyId: Schema.String, |
| | 53169 | region: Schema.String, |
| | 53170 | secretAccessKey: Schema.String, |
| | 53171 | sessionToken: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 53172 | type: Schema.Literal("amazonBedrockAccessKeys").annotate({ |
| | 53173 | title: "AmazonBedrockAccessKeysv2::LoginAccountParamsType", |
| | 53174 | }), |
| | 53175 | }).annotate({ |
| | 53176 | title: "AmazonBedrockAccessKeysv2::LoginAccountParams", |
| | 53177 | description: "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.", |
| | 53178 | }), |
| 42250 | ], | 53179 | ], |
| 42251 | { mode: "oneOf" }, | 53180 | { mode: "oneOf" }, |
| 42252 | ).annotate({ title: "LoginAccountParams" }); | 53181 | ).annotate({ title: "LoginAccountParams" }); |
| ... | @@ -42362,11 +53291,22 @@ export const V2MarketplaceUpgradeResponse = Schema.Struct({ | ... | @@ -42362,11 +53291,22 @@ export const V2MarketplaceUpgradeResponse = Schema.Struct({ |
| 42362 | }).annotate({ title: "MarketplaceUpgradeResponse" }); | 53291 | }).annotate({ title: "MarketplaceUpgradeResponse" }); |
| 42363 | | 53292 | |
| 42364 | export type V2McpResourceReadParams = { | 53293 | export type V2McpResourceReadParams = { |
| | 53294 | readonly connectorId?: string | null; |
| | 53295 | readonly originCallId?: string | null; |
| 42365 | readonly server: string; | 53296 | readonly server: string; |
| 42366 | readonly threadId?: string | null; | 53297 | readonly threadId?: string | null; |
| 42367 | readonly uri: string; | 53298 | readonly uri: string; |
| 42368 | }; | 53299 | }; |
| 42369 | export const V2McpResourceReadParams = Schema.Struct({ | 53300 | export const V2McpResourceReadParams = Schema.Struct({ |
| | 53301 | connectorId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 53302 | originCallId: Schema.optionalKey( |
| | 53303 | Schema.Union([ |
| | 53304 | Schema.String.annotate({ |
| | 53305 | description: "Originating MCP tool call used to select the resource's app.", |
| | 53306 | }), |
| | 53307 | Schema.Null, |
| | 53308 | ]), |
| | 53309 | ), |
| 42370 | server: Schema.String, | 53310 | server: Schema.String, |
| 42371 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 53311 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 42372 | uri: Schema.String, | 53312 | uri: Schema.String, |
| ... | @@ -42374,11 +53314,29 @@ export const V2McpResourceReadParams = Schema.Struct({ | ... | @@ -42374,11 +53314,29 @@ export const V2McpResourceReadParams = Schema.Struct({ |
| 42374 | | 53314 | |
| 42375 | export type V2McpResourceReadResponse = { | 53315 | export type V2McpResourceReadResponse = { |
| 42376 | readonly contents: ReadonlyArray<V2McpResourceReadResponse__ResourceContent>; | 53316 | readonly contents: ReadonlyArray<V2McpResourceReadResponse__ResourceContent>; |
| | 53317 | readonly originCallId?: string | null; |
| 42377 | }; | 53318 | }; |
| 42378 | export const V2McpResourceReadResponse = Schema.Struct({ | 53319 | export const V2McpResourceReadResponse = Schema.Struct({ |
| 42379 | contents: Schema.Array(V2McpResourceReadResponse__ResourceContent), | 53320 | contents: Schema.Array(V2McpResourceReadResponse__ResourceContent), |
| | 53321 | originCallId: Schema.optionalKey( |
| | 53322 | Schema.Union([ |
| | 53323 | Schema.String.annotate({ |
| | 53324 | description: "Originating call when the server applied app-specific resource scoping.", |
| | 53325 | }), |
| | 53326 | Schema.Null, |
| | 53327 | ]), |
| | 53328 | ), |
| 42380 | }).annotate({ title: "McpResourceReadResponse" }); | 53329 | }).annotate({ title: "McpResourceReadResponse" }); |
| 42381 | | 53330 | |
| | 53331 | export type V2McpServerEventStreamNotification = { |
| | 53332 | readonly notification: V2McpServerEventStreamNotification__McpServerEventNotification; |
| | 53333 | readonly subscriptionId: string; |
| | 53334 | }; |
| | 53335 | export const V2McpServerEventStreamNotification = Schema.Struct({ |
| | 53336 | notification: V2McpServerEventStreamNotification__McpServerEventNotification, |
| | 53337 | subscriptionId: Schema.String, |
| | 53338 | }).annotate({ title: "McpServerEventStreamNotification" }); |
| | 53339 | |
| 42382 | export type V2McpServerOauthLoginCompletedNotification = { | 53340 | export type V2McpServerOauthLoginCompletedNotification = { |
| 42383 | readonly error?: string | null; | 53341 | readonly error?: string | null; |
| 42384 | readonly name: string; | 53342 | readonly name: string; |
| ... | @@ -42393,12 +53351,22 @@ export const V2McpServerOauthLoginCompletedNotification = Schema.Struct({ | ... | @@ -42393,12 +53351,22 @@ export const V2McpServerOauthLoginCompletedNotification = Schema.Struct({ |
| 42393 | }).annotate({ title: "McpServerOauthLoginCompletedNotification" }); | 53351 | }).annotate({ title: "McpServerOauthLoginCompletedNotification" }); |
| 42394 | | 53352 | |
| 42395 | export type V2McpServerOauthLoginParams = { | 53353 | export type V2McpServerOauthLoginParams = { |
| | 53354 | readonly clientRegistration?: V2McpServerOauthLoginParams__McpServerOauthClientRegistration | null; |
| 42396 | readonly name: string; | 53355 | readonly name: string; |
| 42397 | readonly scopes?: ReadonlyArray<string> | null; | 53356 | readonly scopes?: ReadonlyArray<string> | null; |
| 42398 | readonly threadId?: string | null; | 53357 | readonly threadId?: string | null; |
| 42399 | readonly timeoutSecs?: number | null; | 53358 | readonly timeoutSecs?: number | null; |
| 42400 | }; | 53359 | }; |
| 42401 | export const V2McpServerOauthLoginParams = Schema.Struct({ | 53360 | export const V2McpServerOauthLoginParams = Schema.Struct({ |
| | 53361 | clientRegistration: Schema.optionalKey( |
| | 53362 | Schema.Union([ |
| | 53363 | V2McpServerOauthLoginParams__McpServerOauthClientRegistration, |
| | 53364 | Schema.Null, |
| | 53365 | ]).annotate({ |
| | 53366 | description: |
| | 53367 | "Registration strategy for this login only; omission selects automatic discovery.", |
| | 53368 | }), |
| | 53369 | ), |
| 42402 | name: Schema.String, | 53370 | name: Schema.String, |
| 42403 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), | 53371 | scopes: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])), |
| 42404 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 53372 | threadId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -42602,6 +53570,18 @@ export const V2ModelVerificationNotification = Schema.Struct({ | ... | @@ -42602,6 +53570,18 @@ export const V2ModelVerificationNotification = Schema.Struct({ |
| 42602 | verifications: Schema.Array(V2ModelVerificationNotification__ModelVerification), | 53570 | verifications: Schema.Array(V2ModelVerificationNotification__ModelVerification), |
| 42603 | }).annotate({ title: "ModelVerificationNotification" }); | 53571 | }).annotate({ title: "ModelVerificationNotification" }); |
| 42604 | | 53572 | |
| | 53573 | export type V2NullableGetAccountRateLimitsParams = V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams | null; |
| | 53574 | export const V2NullableGetAccountRateLimitsParams = Schema.Union([ |
| | 53575 | V2NullableGetAccountRateLimitsParams__GetAccountRateLimitsParams, |
| | 53576 | Schema.Null, |
| | 53577 | ]).annotate({ title: "Nullable_GetAccountRateLimitsParams" }); |
| | 53578 | |
| | 53579 | export type V2NullableGetAccountTokenUsageParams = V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams | null; |
| | 53580 | export const V2NullableGetAccountTokenUsageParams = Schema.Union([ |
| | 53581 | V2NullableGetAccountTokenUsageParams__GetAccountTokenUsageParams, |
| | 53582 | Schema.Null, |
| | 53583 | ]).annotate({ title: "Nullable_GetAccountTokenUsageParams" }); |
| | 53584 | |
| 42605 | export type V2PermissionProfileListParams = { | 53585 | export type V2PermissionProfileListParams = { |
| 42606 | readonly cursor?: string | null; | 53586 | readonly cursor?: string | null; |
| 42607 | readonly cwd?: string | null; | 53587 | readonly cwd?: string | null; |
| ... | @@ -42711,11 +53691,20 @@ export const V2PluginInstalledResponse = Schema.Struct({ | ... | @@ -42711,11 +53691,20 @@ export const V2PluginInstalledResponse = Schema.Struct({ |
| 42711 | }).annotate({ title: "PluginInstalledResponse" }); | 53691 | }).annotate({ title: "PluginInstalledResponse" }); |
| 42712 | | 53692 | |
| 42713 | export type V2PluginInstallParams = { | 53693 | export type V2PluginInstallParams = { |
| | 53694 | readonly installAttemptId?: string | null; |
| 42714 | readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null; | 53695 | readonly marketplacePath?: V2PluginInstallParams__AbsolutePathBuf | null; |
| 42715 | readonly pluginName: string; | 53696 | readonly pluginName: string; |
| 42716 | readonly remoteMarketplaceName?: string | null; | 53697 | readonly remoteMarketplaceName?: string | null; |
| 42717 | }; | 53698 | }; |
| 42718 | export const V2PluginInstallParams = Schema.Struct({ | 53699 | export const V2PluginInstallParams = Schema.Struct({ |
| | 53700 | installAttemptId: Schema.optionalKey( |
| | 53701 | Schema.Union([ |
| | 53702 | Schema.String.annotate({ |
| | 53703 | description: "Client-generated identifier used to correlate one installation attempt.", |
| | 53704 | }), |
| | 53705 | Schema.Null, |
| | 53706 | ]), |
| | 53707 | ), |
| 42719 | marketplacePath: Schema.optionalKey( | 53708 | marketplacePath: Schema.optionalKey( |
| 42720 | Schema.Union([V2PluginInstallParams__AbsolutePathBuf, Schema.Null]), | 53709 | Schema.Union([V2PluginInstallParams__AbsolutePathBuf, Schema.Null]), |
| 42721 | ), | 53710 | ), |
| ... | @@ -42734,6 +53723,7 @@ export const V2PluginInstallResponse = Schema.Struct({ | ... | @@ -42734,6 +53723,7 @@ export const V2PluginInstallResponse = Schema.Struct({ |
| 42734 | | 53723 | |
| 42735 | export type V2PluginListParams = { | 53724 | export type V2PluginListParams = { |
| 42736 | readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null; | 53725 | readonly cwds?: ReadonlyArray<V2PluginListParams__AbsolutePathBuf> | null; |
| | 53726 | readonly forceRefetch?: boolean; |
| 42737 | readonly marketplaceKinds?: ReadonlyArray<V2PluginListParams__PluginListMarketplaceKind> | null; | 53727 | readonly marketplaceKinds?: ReadonlyArray<V2PluginListParams__PluginListMarketplaceKind> | null; |
| 42738 | }; | 53728 | }; |
| 42739 | export const V2PluginListParams = Schema.Struct({ | 53729 | export const V2PluginListParams = Schema.Struct({ |
| ... | @@ -42746,6 +53736,11 @@ export const V2PluginListParams = Schema.Struct({ | ... | @@ -42746,6 +53736,11 @@ export const V2PluginListParams = Schema.Struct({ |
| 42746 | Schema.Null, | 53736 | Schema.Null, |
| 42747 | ]), | 53737 | ]), |
| 42748 | ), | 53738 | ), |
| | 53739 | forceRefetch: Schema.optionalKey( |
| | 53740 | Schema.Boolean.annotate({ |
| | 53741 | description: "Whether the client requests a fresh remote plugin catalog fetch.", |
| | 53742 | }), |
| | 53743 | ), |
| 42749 | marketplaceKinds: Schema.optionalKey( | 53744 | marketplaceKinds: Schema.optionalKey( |
| 42750 | Schema.Union([ | 53745 | Schema.Union([ |
| 42751 | Schema.Array(V2PluginListParams__PluginListMarketplaceKind).annotate({ | 53746 | Schema.Array(V2PluginListParams__PluginListMarketplaceKind).annotate({ |
| ... | @@ -42788,6 +53783,41 @@ export const V2PluginReadResponse = Schema.Struct({ | ... | @@ -42788,6 +53783,41 @@ export const V2PluginReadResponse = Schema.Struct({ |
| 42788 | plugin: V2PluginReadResponse__PluginDetail, | 53783 | plugin: V2PluginReadResponse__PluginDetail, |
| 42789 | }).annotate({ title: "PluginReadResponse" }); | 53784 | }).annotate({ title: "PluginReadResponse" }); |
| 42790 | | 53785 | |
| | 53786 | export type V2PluginReconcileParams = { readonly reason?: string | null }; |
| | 53787 | export const V2PluginReconcileParams = Schema.Struct({ |
| | 53788 | reason: Schema.optionalKey( |
| | 53789 | Schema.Union([ |
| | 53790 | Schema.String.annotate({ |
| | 53791 | description: "Optional client-provided reason recorded with the reconciliation attempt.", |
| | 53792 | }), |
| | 53793 | Schema.Null, |
| | 53794 | ]), |
| | 53795 | ), |
| | 53796 | }).annotate({ title: "PluginReconcileParams" }); |
| | 53797 | |
| | 53798 | export type V2PluginReconcileResponse = { |
| | 53799 | readonly changedPlugins: ReadonlyArray<V2PluginReconcileResponse__PluginReconcileChangedPlugin>; |
| | 53800 | readonly failedMaterializationRemotePluginIds: ReadonlyArray<string>; |
| | 53801 | readonly failedRemotePluginIds: ReadonlyArray<string>; |
| | 53802 | }; |
| | 53803 | export const V2PluginReconcileResponse = Schema.Struct({ |
| | 53804 | changedPlugins: Schema.Array(V2PluginReconcileResponse__PluginReconcileChangedPlugin).annotate({ |
| | 53805 | description: |
| | 53806 | "Plugins affected by bundle changes, enablement changes, or removals. Installed-state changes compare against the previous cached snapshot, including cached reinstalls. Removal hints survive cache cleanup failures; unchanged plugins are omitted.", |
| | 53807 | }), |
| | 53808 | failedMaterializationRemotePluginIds: Schema.Array(Schema.String).annotate({ |
| | 53809 | description: |
| | 53810 | "Subset of failures for which the requested bundle could not be materialized. A previously cached version may still be available.", |
| | 53811 | }), |
| | 53812 | failedRemotePluginIds: Schema.Array(Schema.String).annotate({ |
| | 53813 | description: "Backend remote plugin IDs whose bundle or identity update failed.", |
| | 53814 | }), |
| | 53815 | }).annotate({ |
| | 53816 | title: "PluginReconcileResponse", |
| | 53817 | description: |
| | 53818 | "Bundle and installed-state changes observed by this pass, not a runtime-readiness acknowledgement or a cumulative diff since the client's last request. Other metadata-only changes are not listed.", |
| | 53819 | }); |
| | 53820 | |
| 42791 | export type V2PluginShareCheckoutParams = { readonly remotePluginId: string }; | 53821 | export type V2PluginShareCheckoutParams = { readonly remotePluginId: string }; |
| 42792 | export const V2PluginShareCheckoutParams = Schema.Struct({ | 53822 | export const V2PluginShareCheckoutParams = Schema.Struct({ |
| 42793 | remotePluginId: Schema.String, | 53823 | remotePluginId: Schema.String, |
| ... | @@ -42854,10 +53884,12 @@ export const V2PluginShareSaveParams = Schema.Struct({ | ... | @@ -42854,10 +53884,12 @@ export const V2PluginShareSaveParams = Schema.Struct({ |
| 42854 | }).annotate({ title: "PluginShareSaveParams" }); | 53884 | }).annotate({ title: "PluginShareSaveParams" }); |
| 42855 | | 53885 | |
| 42856 | export type V2PluginShareSaveResponse = { | 53886 | export type V2PluginShareSaveResponse = { |
| | 53887 | readonly canPublishToWorkspace?: boolean | null; |
| 42857 | readonly remotePluginId: string; | 53888 | readonly remotePluginId: string; |
| 42858 | readonly shareUrl: string; | 53889 | readonly shareUrl: string; |
| 42859 | }; | 53890 | }; |
| 42860 | export const V2PluginShareSaveResponse = Schema.Struct({ | 53891 | export const V2PluginShareSaveResponse = Schema.Struct({ |
| | 53892 | canPublishToWorkspace: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 42861 | remotePluginId: Schema.String, | 53893 | remotePluginId: Schema.String, |
| 42862 | shareUrl: Schema.String, | 53894 | shareUrl: Schema.String, |
| 42863 | }).annotate({ title: "PluginShareSaveResponse" }); | 53895 | }).annotate({ title: "PluginShareSaveResponse" }); |
| ... | @@ -42969,11 +54001,21 @@ export const V2ProcessOutputDeltaNotification = Schema.Struct({ | ... | @@ -42969,11 +54001,21 @@ export const V2ProcessOutputDeltaNotification = Schema.Struct({ |
| 42969 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", | 54001 | description: "Base64-encoded output chunk emitted for a streaming `process/spawn` request.", |
| 42970 | }); | 54002 | }); |
| 42971 | | 54003 | |
| | 54004 | export type V2ProjectChangedNotification = { |
| | 54005 | readonly changeType: V2ProjectChangedNotification__ProjectChangeType; |
| | 54006 | readonly projectId: string; |
| | 54007 | }; |
| | 54008 | export const V2ProjectChangedNotification = Schema.Struct({ |
| | 54009 | changeType: V2ProjectChangedNotification__ProjectChangeType, |
| | 54010 | projectId: Schema.String, |
| | 54011 | }).annotate({ title: "ProjectChangedNotification" }); |
| | 54012 | |
| 42972 | export type V2RawResponseCompletedNotification = { | 54013 | export type V2RawResponseCompletedNotification = { |
| 42973 | readonly responseId: string; | 54014 | readonly responseId: string; |
| 42974 | readonly threadId: string; | 54015 | readonly threadId: string; |
| 42975 | readonly turnId: string; | 54016 | readonly turnId: string; |
| 42976 | readonly usage?: V2RawResponseCompletedNotification__TokenUsageBreakdown | null; | 54017 | readonly usage?: V2RawResponseCompletedNotification__TokenUsageBreakdown | null; |
| | 54018 | readonly usageMetadata?: V2RawResponseCompletedNotification__ResponseUsageMetadata | null; |
| 42977 | }; | 54019 | }; |
| 42978 | export const V2RawResponseCompletedNotification = Schema.Struct({ | 54020 | export const V2RawResponseCompletedNotification = Schema.Struct({ |
| 42979 | responseId: Schema.String, | 54021 | responseId: Schema.String, |
| ... | @@ -42982,6 +54024,9 @@ export const V2RawResponseCompletedNotification = Schema.Struct({ | ... | @@ -42982,6 +54024,9 @@ export const V2RawResponseCompletedNotification = Schema.Struct({ |
| 42982 | usage: Schema.optionalKey( | 54024 | usage: Schema.optionalKey( |
| 42983 | Schema.Union([V2RawResponseCompletedNotification__TokenUsageBreakdown, Schema.Null]), | 54025 | Schema.Union([V2RawResponseCompletedNotification__TokenUsageBreakdown, Schema.Null]), |
| 42984 | ), | 54026 | ), |
| | 54027 | usageMetadata: Schema.optionalKey( |
| | 54028 | Schema.Union([V2RawResponseCompletedNotification__ResponseUsageMetadata, Schema.Null]), |
| | 54029 | ), |
| 42985 | }).annotate({ | 54030 | }).annotate({ |
| 42986 | title: "RawResponseCompletedNotification", | 54031 | title: "RawResponseCompletedNotification", |
| 42987 | description: | 54032 | description: |
| ... | @@ -43073,7 +54118,7 @@ export const V2ReviewStartParams = Schema.Struct({ | ... | @@ -43073,7 +54118,7 @@ export const V2ReviewStartParams = Schema.Struct({ |
| 43073 | delivery: Schema.optionalKey( | 54118 | delivery: Schema.optionalKey( |
| 43074 | Schema.Union([V2ReviewStartParams__ReviewDelivery, Schema.Null]).annotate({ | 54119 | Schema.Union([V2ReviewStartParams__ReviewDelivery, Schema.Null]).annotate({ |
| 43075 | description: | 54120 | description: |
| 43076 | "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`).", | 54121 | "Where to run the review: inline (default) on the current thread or detached on a new thread (returned in `reviewThreadId`). Detached delivery is deprecated and emits `deprecationNotice`. Use `thread/start` followed by an inline review for a separate review thread.", |
| 43077 | }), | 54122 | }), |
| 43078 | ), | 54123 | ), |
| 43079 | target: V2ReviewStartParams__ReviewTarget, | 54124 | target: V2ReviewStartParams__ReviewTarget, |
| ... | @@ -43184,6 +54229,20 @@ export const V2SkillsListResponse = Schema.Struct({ | ... | @@ -43184,6 +54229,20 @@ export const V2SkillsListResponse = Schema.Struct({ |
| 43184 | data: Schema.Array(V2SkillsListResponse__SkillsListEntry), | 54229 | data: Schema.Array(V2SkillsListResponse__SkillsListEntry), |
| 43185 | }).annotate({ title: "SkillsListResponse" }); | 54230 | }).annotate({ title: "SkillsListResponse" }); |
| 43186 | | 54231 | |
| | 54232 | export type V2StrictReviewRequiredNotification = { |
| | 54233 | readonly startedAtMs: number; |
| | 54234 | readonly threadId: string; |
| | 54235 | readonly turnId: string; |
| | 54236 | }; |
| | 54237 | export const V2StrictReviewRequiredNotification = Schema.Struct({ |
| | 54238 | startedAtMs: Schema.Number.annotate({ |
| | 54239 | description: "Unix timestamp (in milliseconds) when this review started.", |
| | 54240 | format: "int64", |
| | 54241 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 54242 | threadId: Schema.String, |
| | 54243 | turnId: Schema.String, |
| | 54244 | }).annotate({ title: "StrictReviewRequiredNotification" }); |
| | 54245 | |
| 43187 | export type V2TerminalInteractionNotification = { | 54246 | export type V2TerminalInteractionNotification = { |
| 43188 | readonly itemId: string; | 54247 | readonly itemId: string; |
| 43189 | readonly processId: string; | 54248 | readonly processId: string; |
| ... | @@ -43233,6 +54292,112 @@ export const V2ThreadArchiveResponse = Schema.Record( | ... | @@ -43233,6 +54292,112 @@ export const V2ThreadArchiveResponse = Schema.Record( |
| 43233 | Schema.Json.annotate({ expected: "JSON value" }), | 54292 | Schema.Json.annotate({ expected: "JSON value" }), |
| 43234 | ).annotate({ title: "ThreadArchiveResponse" }); | 54293 | ).annotate({ title: "ThreadArchiveResponse" }); |
| 43235 | | 54294 | |
| | 54295 | export type V2ThreadAttachmentAddParams = { |
| | 54296 | readonly attachmentType: string; |
| | 54297 | readonly identityKey: string; |
| | 54298 | readonly payload: Schema.Json; |
| | 54299 | readonly threadId: string; |
| | 54300 | }; |
| | 54301 | export const V2ThreadAttachmentAddParams = Schema.Struct({ |
| | 54302 | attachmentType: Schema.String, |
| | 54303 | identityKey: Schema.String, |
| | 54304 | payload: Schema.Json.annotate({ expected: "JSON value" }), |
| | 54305 | threadId: Schema.String, |
| | 54306 | }).annotate({ |
| | 54307 | title: "ThreadAttachmentAddParams", |
| | 54308 | description: "Parameters for creating or locating an attachment on its owning thread.", |
| | 54309 | }); |
| | 54310 | |
| | 54311 | export type V2ThreadAttachmentAddResponse = { |
| | 54312 | readonly attachment: V2ThreadAttachmentAddResponse__ThreadAttachment; |
| | 54313 | readonly outcome: V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome; |
| | 54314 | }; |
| | 54315 | export const V2ThreadAttachmentAddResponse = Schema.Struct({ |
| | 54316 | attachment: V2ThreadAttachmentAddResponse__ThreadAttachment, |
| | 54317 | outcome: V2ThreadAttachmentAddResponse__ThreadAttachmentAddOutcome, |
| | 54318 | }).annotate({ |
| | 54319 | title: "ThreadAttachmentAddResponse", |
| | 54320 | description: "The created or existing attachment.", |
| | 54321 | }); |
| | 54322 | |
| | 54323 | export type V2ThreadAttachmentListParams = { |
| | 54324 | readonly cursor?: string | null; |
| | 54325 | readonly limit?: number | null; |
| | 54326 | readonly threadId: string; |
| | 54327 | }; |
| | 54328 | export const V2ThreadAttachmentListParams = Schema.Struct({ |
| | 54329 | cursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 54330 | limit: Schema.optionalKey( |
| | 54331 | Schema.Union([ |
| | 54332 | Schema.Number.annotate({ format: "uint32" }) |
| | 54333 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 54334 | .check( |
| | 54335 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 54336 | expected: "a value greater than or equal to 0", |
| | 54337 | }), |
| | 54338 | ), |
| | 54339 | Schema.Null, |
| | 54340 | ]), |
| | 54341 | ), |
| | 54342 | threadId: Schema.String, |
| | 54343 | }).annotate({ |
| | 54344 | title: "ThreadAttachmentListParams", |
| | 54345 | description: "Parameters for listing attachments from one thread.", |
| | 54346 | }); |
| | 54347 | |
| | 54348 | export type V2ThreadAttachmentListResponse = { |
| | 54349 | readonly data: ReadonlyArray<V2ThreadAttachmentListResponse__ThreadAttachment>; |
| | 54350 | readonly nextCursor?: string | null; |
| | 54351 | }; |
| | 54352 | export const V2ThreadAttachmentListResponse = Schema.Struct({ |
| | 54353 | data: Schema.Array(V2ThreadAttachmentListResponse__ThreadAttachment), |
| | 54354 | nextCursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 54355 | }).annotate({ |
| | 54356 | title: "ThreadAttachmentListResponse", |
| | 54357 | description: "One page of attachments associated with the requested thread.", |
| | 54358 | }); |
| | 54359 | |
| | 54360 | export type V2ThreadAttachmentRemoveParams = { |
| | 54361 | readonly attachmentType: string; |
| | 54362 | readonly identityKey: string; |
| | 54363 | readonly threadId: string; |
| | 54364 | }; |
| | 54365 | export const V2ThreadAttachmentRemoveParams = Schema.Struct({ |
| | 54366 | attachmentType: Schema.String, |
| | 54367 | identityKey: Schema.String, |
| | 54368 | threadId: Schema.String, |
| | 54369 | }).annotate({ |
| | 54370 | title: "ThreadAttachmentRemoveParams", |
| | 54371 | description: "Parameters for deleting an attachment by its stable thread-local identity.", |
| | 54372 | }); |
| | 54373 | |
| | 54374 | export type V2ThreadAttachmentRemoveResponse = { readonly [x: string]: Schema.Json }; |
| | 54375 | export const V2ThreadAttachmentRemoveResponse = Schema.Record( |
| | 54376 | Schema.String, |
| | 54377 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 54378 | ).annotate({ |
| | 54379 | title: "ThreadAttachmentRemoveResponse", |
| | 54380 | description: "Successful deletion does not return additional attachment data.", |
| | 54381 | }); |
| | 54382 | |
| | 54383 | export type V2ThreadAttachmentUpdatedNotification = { |
| | 54384 | readonly attachmentId: string; |
| | 54385 | readonly attachmentType: string; |
| | 54386 | readonly identityKey: string; |
| | 54387 | readonly operation: V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation; |
| | 54388 | readonly threadId: string; |
| | 54389 | }; |
| | 54390 | export const V2ThreadAttachmentUpdatedNotification = Schema.Struct({ |
| | 54391 | attachmentId: Schema.String, |
| | 54392 | attachmentType: Schema.String, |
| | 54393 | identityKey: Schema.String, |
| | 54394 | operation: V2ThreadAttachmentUpdatedNotification__ThreadAttachmentOperation, |
| | 54395 | threadId: Schema.String, |
| | 54396 | }).annotate({ |
| | 54397 | title: "ThreadAttachmentUpdatedNotification", |
| | 54398 | description: "Notification published after a thread attachment is created or deleted.", |
| | 54399 | }); |
| | 54400 | |
| 43236 | export type V2ThreadClosedNotification = { readonly threadId: string }; | 54401 | export type V2ThreadClosedNotification = { readonly threadId: string }; |
| 43237 | export const V2ThreadClosedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ | 54402 | export const V2ThreadClosedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 43238 | title: "ThreadClosedNotification", | 54403 | title: "ThreadClosedNotification", |
| ... | @@ -43273,6 +54438,7 @@ export type V2ThreadForkParams = { | ... | @@ -43273,6 +54438,7 @@ export type V2ThreadForkParams = { |
| 43273 | readonly cwd?: string | null; | 54438 | readonly cwd?: string | null; |
| 43274 | readonly developerInstructions?: string | null; | 54439 | readonly developerInstructions?: string | null; |
| 43275 | readonly ephemeral?: boolean; | 54440 | readonly ephemeral?: boolean; |
| | 54441 | readonly excludeTurns?: boolean; |
| 43276 | readonly lastTurnId?: string | null; | 54442 | readonly lastTurnId?: string | null; |
| 43277 | readonly model?: string | null; | 54443 | readonly model?: string | null; |
| 43278 | readonly modelProvider?: string | null; | 54444 | readonly modelProvider?: string | null; |
| ... | @@ -43301,6 +54467,12 @@ export const V2ThreadForkParams = Schema.Struct({ | ... | @@ -43301,6 +54467,12 @@ export const V2ThreadForkParams = Schema.Struct({ |
| 43301 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 54467 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 43302 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 54468 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 43303 | ephemeral: Schema.optionalKey(Schema.Boolean), | 54469 | ephemeral: Schema.optionalKey(Schema.Boolean), |
| | 54470 | excludeTurns: Schema.optionalKey( |
| | 54471 | Schema.Boolean.annotate({ |
| | 54472 | description: |
| | 54473 | "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.", |
| | 54474 | }), |
| | 54475 | ), |
| 43304 | lastTurnId: Schema.optionalKey( | 54476 | lastTurnId: Schema.optionalKey( |
| 43305 | Schema.Union([ | 54477 | Schema.Union([ |
| 43306 | Schema.String.annotate({ | 54478 | Schema.String.annotate({ |
| ... | @@ -43344,6 +54516,7 @@ export type V2ThreadForkResponse = { | ... | @@ -43344,6 +54516,7 @@ export type V2ThreadForkResponse = { |
| 43344 | readonly approvalPolicy: V2ThreadForkResponse__AskForApproval; | 54516 | readonly approvalPolicy: V2ThreadForkResponse__AskForApproval; |
| 43345 | readonly approvalsReviewer: V2ThreadForkResponse__ApprovalsReviewer; | 54517 | readonly approvalsReviewer: V2ThreadForkResponse__ApprovalsReviewer; |
| 43346 | readonly cwd: V2ThreadForkResponse__AbsolutePathBuf; | 54518 | readonly cwd: V2ThreadForkResponse__AbsolutePathBuf; |
| | 54519 | readonly disabledPluginIds?: ReadonlyArray<string>; |
| 43347 | readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>; | 54520 | readonly instructionSources?: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>; |
| 43348 | readonly model: string; | 54521 | readonly model: string; |
| 43349 | readonly modelProvider: string; | 54522 | readonly modelProvider: string; |
| ... | @@ -43359,6 +54532,12 @@ export const V2ThreadForkResponse = Schema.Struct({ | ... | @@ -43359,6 +54532,12 @@ export const V2ThreadForkResponse = Schema.Struct({ |
| 43359 | V2ThreadForkResponse__ApprovalsReviewer, | 54532 | V2ThreadForkResponse__ApprovalsReviewer, |
| 43360 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), | 54533 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), |
| 43361 | cwd: V2ThreadForkResponse__AbsolutePathBuf, | 54534 | cwd: V2ThreadForkResponse__AbsolutePathBuf, |
| | 54535 | disabledPluginIds: Schema.optionalKey( |
| | 54536 | Schema.Array(Schema.String).annotate({ |
| | 54537 | description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| | 54538 | default: [], |
| | 54539 | }), |
| | 54540 | ), |
| 43362 | instructionSources: Schema.optionalKey( | 54541 | instructionSources: Schema.optionalKey( |
| 43363 | Schema.Array(V2ThreadForkResponse__LegacyAppPathString).annotate({ | 54542 | Schema.Array(V2ThreadForkResponse__LegacyAppPathString).annotate({ |
| 43364 | description: | 54543 | description: |
| ... | @@ -43416,15 +54595,25 @@ export const V2ThreadForkResponse__MultiAgentMode = Schema.Union( | ... | @@ -43416,15 +54595,25 @@ export const V2ThreadForkResponse__MultiAgentMode = Schema.Union( |
| 43416 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 54595 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 43417 | }); | 54596 | }); |
| 43418 | | 54597 | |
| | 54598 | export type V2ThreadForkResponse__ThreadEnvironment = { |
| | 54599 | readonly cwd: V2ThreadForkResponse__LegacyAppPathString; |
| | 54600 | readonly environmentId: string; |
| | 54601 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadForkResponse__LegacyAppPathString>; |
| | 54602 | }; |
| | 54603 | export const V2ThreadForkResponse__ThreadEnvironment = Schema.Struct({ |
| | 54604 | cwd: V2ThreadForkResponse__LegacyAppPathString, |
| | 54605 | environmentId: Schema.String, |
| | 54606 | runtimeWorkspaceRoots: Schema.Array(V2ThreadForkResponse__LegacyAppPathString), |
| | 54607 | }).annotate({ |
| | 54608 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 54609 | }); |
| | 54610 | |
| 43419 | export type V2ThreadForkResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 54611 | export type V2ThreadForkResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 43420 | export const V2ThreadForkResponse__ThreadExtra = Schema.Record( | 54612 | export const V2ThreadForkResponse__ThreadExtra = Schema.Record( |
| 43421 | Schema.String, | 54613 | Schema.String, |
| 43422 | Schema.Json.annotate({ expected: "JSON value" }), | 54614 | Schema.Json.annotate({ expected: "JSON value" }), |
| 43423 | ).annotate({ description: "Extra app-server data for a thread." }); | 54615 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 43424 | | 54616 | |
| 43425 | export type V2ThreadForkResponse__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 43426 | export const V2ThreadForkResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | | |
| 43427 | | | |
| 43428 | export type V2ThreadGoalClearedNotification = { readonly threadId: string }; | 54617 | export type V2ThreadGoalClearedNotification = { readonly threadId: string }; |
| 43429 | export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ | 54618 | export const V2ThreadGoalClearedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 43430 | title: "ThreadGoalClearedNotification", | 54619 | title: "ThreadGoalClearedNotification", |
| ... | @@ -43505,13 +54694,87 @@ export const V2ThreadInjectItemsResponse = Schema.Record( | ... | @@ -43505,13 +54694,87 @@ export const V2ThreadInjectItemsResponse = Schema.Record( |
| 43505 | Schema.Json.annotate({ expected: "JSON value" }), | 54694 | Schema.Json.annotate({ expected: "JSON value" }), |
| 43506 | ).annotate({ title: "ThreadInjectItemsResponse" }); | 54695 | ).annotate({ title: "ThreadInjectItemsResponse" }); |
| 43507 | | 54696 | |
| | 54697 | export type V2ThreadItemsListParams = { |
| | 54698 | readonly cursor?: string | null; |
| | 54699 | readonly limit?: number | null; |
| | 54700 | readonly sortDirection?: V2ThreadItemsListParams__SortDirection | null; |
| | 54701 | readonly threadId: string; |
| | 54702 | readonly turnId?: string | null; |
| | 54703 | }; |
| | 54704 | export const V2ThreadItemsListParams = Schema.Struct({ |
| | 54705 | cursor: Schema.optionalKey( |
| | 54706 | Schema.Union([ |
| | 54707 | Schema.String.annotate({ |
| | 54708 | description: "Opaque cursor to pass to the next call to continue after the last item.", |
| | 54709 | }), |
| | 54710 | Schema.Null, |
| | 54711 | ]), |
| | 54712 | ), |
| | 54713 | limit: Schema.optionalKey( |
| | 54714 | Schema.Union([ |
| | 54715 | Schema.Number.annotate({ description: "Optional item page size.", format: "uint32" }) |
| | 54716 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 54717 | .check( |
| | 54718 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 54719 | expected: "a value greater than or equal to 0", |
| | 54720 | }), |
| | 54721 | ), |
| | 54722 | Schema.Null, |
| | 54723 | ]), |
| | 54724 | ), |
| | 54725 | sortDirection: Schema.optionalKey( |
| | 54726 | Schema.Union([V2ThreadItemsListParams__SortDirection, Schema.Null]).annotate({ |
| | 54727 | description: "Optional item pagination direction; defaults to ascending.", |
| | 54728 | }), |
| | 54729 | ), |
| | 54730 | threadId: Schema.String, |
| | 54731 | turnId: Schema.optionalKey( |
| | 54732 | Schema.Union([ |
| | 54733 | Schema.String.annotate({ |
| | 54734 | description: |
| | 54735 | "Optional turn id to filter by. When omitted, returns items across the thread.", |
| | 54736 | }), |
| | 54737 | Schema.Null, |
| | 54738 | ]), |
| | 54739 | ), |
| | 54740 | }).annotate({ title: "ThreadItemsListParams" }); |
| | 54741 | |
| | 54742 | export type V2ThreadItemsListResponse = { |
| | 54743 | readonly backwardsCursor?: string | null; |
| | 54744 | readonly data: ReadonlyArray<V2ThreadItemsListResponse__ThreadItemEntry>; |
| | 54745 | readonly nextCursor?: string | null; |
| | 54746 | }; |
| | 54747 | export const V2ThreadItemsListResponse = Schema.Struct({ |
| | 54748 | backwardsCursor: Schema.optionalKey( |
| | 54749 | Schema.Union([ |
| | 54750 | Schema.String.annotate({ |
| | 54751 | description: |
| | 54752 | "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one item.", |
| | 54753 | }), |
| | 54754 | Schema.Null, |
| | 54755 | ]), |
| | 54756 | ), |
| | 54757 | data: Schema.Array(V2ThreadItemsListResponse__ThreadItemEntry), |
| | 54758 | nextCursor: Schema.optionalKey( |
| | 54759 | Schema.Union([ |
| | 54760 | Schema.String.annotate({ |
| | 54761 | description: |
| | 54762 | "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.", |
| | 54763 | }), |
| | 54764 | Schema.Null, |
| | 54765 | ]), |
| | 54766 | ), |
| | 54767 | }).annotate({ title: "ThreadItemsListResponse" }); |
| | 54768 | |
| 43508 | export type V2ThreadListParams = { | 54769 | export type V2ThreadListParams = { |
| 43509 | readonly archived?: boolean | null; | 54770 | readonly archived?: boolean | null; |
| 43510 | readonly cursor?: string | null; | 54771 | readonly cursor?: string | null; |
| 43511 | readonly cwd?: V2ThreadListParams__ThreadListCwdFilter | null; | 54772 | readonly cwd?: V2ThreadListParams__ThreadListCwdFilter | null; |
| 43512 | readonly limit?: number | null; | 54773 | readonly limit?: number | null; |
| 43513 | readonly modelProviders?: ReadonlyArray<string> | null; | 54774 | readonly modelProviders?: ReadonlyArray<string> | null; |
| | 54775 | readonly originators?: ReadonlyArray<string> | null; |
| 43514 | readonly searchTerm?: string | null; | 54776 | readonly searchTerm?: string | null; |
| | 54777 | readonly sectionId?: string | null; |
| 43515 | readonly sortDirection?: V2ThreadListParams__SortDirection | null; | 54778 | readonly sortDirection?: V2ThreadListParams__SortDirection | null; |
| 43516 | readonly sortKey?: V2ThreadListParams__ThreadSortKey | null; | 54779 | readonly sortKey?: V2ThreadListParams__ThreadSortKey | null; |
| 43517 | readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null; | 54780 | readonly sourceKinds?: ReadonlyArray<V2ThreadListParams__ThreadSourceKind> | null; |
| ... | @@ -43565,6 +54828,15 @@ export const V2ThreadListParams = Schema.Struct({ | ... | @@ -43565,6 +54828,15 @@ export const V2ThreadListParams = Schema.Struct({ |
| 43565 | Schema.Null, | 54828 | Schema.Null, |
| 43566 | ]), | 54829 | ]), |
| 43567 | ), | 54830 | ), |
| | 54831 | originators: Schema.optionalKey( |
| | 54832 | Schema.Union([ |
| | 54833 | Schema.Array(Schema.String).annotate({ |
| | 54834 | description: |
| | 54835 | "Optional originator allowlist, matching any supplied value exactly. Supported by hosted backends only; the local app-server rejects a nonempty list. Omitted or empty lists leave originators unrestricted.", |
| | 54836 | }), |
| | 54837 | Schema.Null, |
| | 54838 | ]), |
| | 54839 | ), |
| 43568 | searchTerm: Schema.optionalKey( | 54840 | searchTerm: Schema.optionalKey( |
| 43569 | Schema.Union([ | 54841 | Schema.Union([ |
| 43570 | Schema.String.annotate({ | 54842 | Schema.String.annotate({ |
| ... | @@ -43573,6 +54845,15 @@ export const V2ThreadListParams = Schema.Struct({ | ... | @@ -43573,6 +54845,15 @@ export const V2ThreadListParams = Schema.Struct({ |
| 43573 | Schema.Null, | 54845 | Schema.Null, |
| 43574 | ]), | 54846 | ]), |
| 43575 | ), | 54847 | ), |
| | 54848 | sectionId: Schema.optionalKey( |
| | 54849 | Schema.Union([ |
| | 54850 | Schema.String.annotate({ |
| | 54851 | description: |
| | 54852 | "Omit to include every section, set to `null` for unsectioned threads, or provide a section ID to return only threads in that section.", |
| | 54853 | }), |
| | 54854 | Schema.Null, |
| | 54855 | ]), |
| | 54856 | ), |
| 43576 | sortDirection: Schema.optionalKey( | 54857 | sortDirection: Schema.optionalKey( |
| 43577 | Schema.Union([V2ThreadListParams__SortDirection, Schema.Null]).annotate({ | 54858 | Schema.Union([V2ThreadListParams__SortDirection, Schema.Null]).annotate({ |
| 43578 | description: "Optional sort direction; defaults to descending (newest first).", | 54859 | description: "Optional sort direction; defaults to descending (newest first).", |
| ... | @@ -43627,15 +54908,25 @@ export const V2ThreadListResponse = Schema.Struct({ | ... | @@ -43627,15 +54908,25 @@ export const V2ThreadListResponse = Schema.Struct({ |
| 43627 | ), | 54908 | ), |
| 43628 | }).annotate({ title: "ThreadListResponse" }); | 54909 | }).annotate({ title: "ThreadListResponse" }); |
| 43629 | | 54910 | |
| | 54911 | export type V2ThreadListResponse__ThreadEnvironment = { |
| | 54912 | readonly cwd: V2ThreadListResponse__LegacyAppPathString; |
| | 54913 | readonly environmentId: string; |
| | 54914 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadListResponse__LegacyAppPathString>; |
| | 54915 | }; |
| | 54916 | export const V2ThreadListResponse__ThreadEnvironment = Schema.Struct({ |
| | 54917 | cwd: V2ThreadListResponse__LegacyAppPathString, |
| | 54918 | environmentId: Schema.String, |
| | 54919 | runtimeWorkspaceRoots: Schema.Array(V2ThreadListResponse__LegacyAppPathString), |
| | 54920 | }).annotate({ |
| | 54921 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 54922 | }); |
| | 54923 | |
| 43630 | export type V2ThreadListResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 54924 | export type V2ThreadListResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 43631 | export const V2ThreadListResponse__ThreadExtra = Schema.Record( | 54925 | export const V2ThreadListResponse__ThreadExtra = Schema.Record( |
| 43632 | Schema.String, | 54926 | Schema.String, |
| 43633 | Schema.Json.annotate({ expected: "JSON value" }), | 54927 | Schema.Json.annotate({ expected: "JSON value" }), |
| 43634 | ).annotate({ description: "Extra app-server data for a thread." }); | 54928 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 43635 | | 54929 | |
| 43636 | export type V2ThreadListResponse__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 43637 | export const V2ThreadListResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | | |
| 43638 | | | |
| 43639 | export type V2ThreadLoadedListParams = { | 54930 | export type V2ThreadLoadedListParams = { |
| 43640 | readonly cursor?: string | null; | 54931 | readonly cursor?: string | null; |
| 43641 | readonly limit?: number | null; | 54932 | readonly limit?: number | null; |
| ... | @@ -43709,18 +55000,25 @@ export const V2ThreadMetadataUpdateResponse = Schema.Struct({ | ... | @@ -43709,18 +55000,25 @@ export const V2ThreadMetadataUpdateResponse = Schema.Struct({ |
| 43709 | thread: V2ThreadMetadataUpdateResponse__Thread, | 55000 | thread: V2ThreadMetadataUpdateResponse__Thread, |
| 43710 | }).annotate({ title: "ThreadMetadataUpdateResponse" }); | 55001 | }).annotate({ title: "ThreadMetadataUpdateResponse" }); |
| 43711 | | 55002 | |
| | 55003 | export type V2ThreadMetadataUpdateResponse__ThreadEnvironment = { |
| | 55004 | readonly cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString; |
| | 55005 | readonly environmentId: string; |
| | 55006 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadMetadataUpdateResponse__LegacyAppPathString>; |
| | 55007 | }; |
| | 55008 | export const V2ThreadMetadataUpdateResponse__ThreadEnvironment = Schema.Struct({ |
| | 55009 | cwd: V2ThreadMetadataUpdateResponse__LegacyAppPathString, |
| | 55010 | environmentId: Schema.String, |
| | 55011 | runtimeWorkspaceRoots: Schema.Array(V2ThreadMetadataUpdateResponse__LegacyAppPathString), |
| | 55012 | }).annotate({ |
| | 55013 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 55014 | }); |
| | 55015 | |
| 43712 | export type V2ThreadMetadataUpdateResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 55016 | export type V2ThreadMetadataUpdateResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 43713 | export const V2ThreadMetadataUpdateResponse__ThreadExtra = Schema.Record( | 55017 | export const V2ThreadMetadataUpdateResponse__ThreadExtra = Schema.Record( |
| 43714 | Schema.String, | 55018 | Schema.String, |
| 43715 | Schema.Json.annotate({ expected: "JSON value" }), | 55019 | Schema.Json.annotate({ expected: "JSON value" }), |
| 43716 | ).annotate({ description: "Extra app-server data for a thread." }); | 55020 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 43717 | | 55021 | |
| 43718 | export type V2ThreadMetadataUpdateResponse__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 43719 | export const V2ThreadMetadataUpdateResponse__ThreadHistoryMode = Schema.Literals([ | | |
| 43720 | "legacy", | | |
| 43721 | "paginated", | | |
| 43722 | ]); | | |
| 43723 | | | |
| 43724 | export type V2ThreadNameUpdatedNotification = { | 55022 | export type V2ThreadNameUpdatedNotification = { |
| 43725 | readonly threadId: string; | 55023 | readonly threadId: string; |
| 43726 | readonly threadName?: string | null; | 55024 | readonly threadName?: string | null; |
| ... | @@ -43730,11 +55028,26 @@ export const V2ThreadNameUpdatedNotification = Schema.Struct({ | ... | @@ -43730,11 +55028,26 @@ export const V2ThreadNameUpdatedNotification = Schema.Struct({ |
| 43730 | threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55028 | threadName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 43731 | }).annotate({ title: "ThreadNameUpdatedNotification" }); | 55029 | }).annotate({ title: "ThreadNameUpdatedNotification" }); |
| 43732 | | 55030 | |
| | 55031 | export type V2ThreadProjectUpdatedNotification = { |
| | 55032 | readonly projectId: string | null; |
| | 55033 | readonly threadId: string; |
| | 55034 | }; |
| | 55035 | export const V2ThreadProjectUpdatedNotification = Schema.Struct({ |
| | 55036 | projectId: Schema.Union([Schema.String, Schema.Null]), |
| | 55037 | threadId: Schema.String, |
| | 55038 | }).annotate({ title: "ThreadProjectUpdatedNotification" }); |
| | 55039 | |
| | 55040 | export type V2ThreadQueueChangedNotification = { readonly threadId: string }; |
| | 55041 | export const V2ThreadQueueChangedNotification = Schema.Struct({ threadId: Schema.String }).annotate( |
| | 55042 | { title: "ThreadQueueChangedNotification" }, |
| | 55043 | ); |
| | 55044 | |
| 43733 | export type V2ThreadReadParams = { readonly includeTurns?: boolean; readonly threadId: string }; | 55045 | export type V2ThreadReadParams = { readonly includeTurns?: boolean; readonly threadId: string }; |
| 43734 | export const V2ThreadReadParams = Schema.Struct({ | 55046 | export const V2ThreadReadParams = Schema.Struct({ |
| 43735 | includeTurns: Schema.optionalKey( | 55047 | includeTurns: Schema.optionalKey( |
| 43736 | Schema.Boolean.annotate({ | 55048 | Schema.Boolean.annotate({ |
| 43737 | description: "When true, include turns and their items from rollout history.", | 55049 | description: |
| | 55050 | "When true, include turns and their items from rollout history. Full-history hydration is deprecated for paginated threads; prefer a metadata-only read and page with `thread/turns/list` and `thread/items/list`.", |
| 43738 | }), | 55051 | }), |
| 43739 | ), | 55052 | ), |
| 43740 | threadId: Schema.String, | 55053 | threadId: Schema.String, |
| ... | @@ -43745,15 +55058,25 @@ export const V2ThreadReadResponse = Schema.Struct({ | ... | @@ -43745,15 +55058,25 @@ export const V2ThreadReadResponse = Schema.Struct({ |
| 43745 | thread: V2ThreadReadResponse__Thread, | 55058 | thread: V2ThreadReadResponse__Thread, |
| 43746 | }).annotate({ title: "ThreadReadResponse" }); | 55059 | }).annotate({ title: "ThreadReadResponse" }); |
| 43747 | | 55060 | |
| | 55061 | export type V2ThreadReadResponse__ThreadEnvironment = { |
| | 55062 | readonly cwd: V2ThreadReadResponse__LegacyAppPathString; |
| | 55063 | readonly environmentId: string; |
| | 55064 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadReadResponse__LegacyAppPathString>; |
| | 55065 | }; |
| | 55066 | export const V2ThreadReadResponse__ThreadEnvironment = Schema.Struct({ |
| | 55067 | cwd: V2ThreadReadResponse__LegacyAppPathString, |
| | 55068 | environmentId: Schema.String, |
| | 55069 | runtimeWorkspaceRoots: Schema.Array(V2ThreadReadResponse__LegacyAppPathString), |
| | 55070 | }).annotate({ |
| | 55071 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 55072 | }); |
| | 55073 | |
| 43748 | export type V2ThreadReadResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 55074 | export type V2ThreadReadResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 43749 | export const V2ThreadReadResponse__ThreadExtra = Schema.Record( | 55075 | export const V2ThreadReadResponse__ThreadExtra = Schema.Record( |
| 43750 | Schema.String, | 55076 | Schema.String, |
| 43751 | Schema.Json.annotate({ expected: "JSON value" }), | 55077 | Schema.Json.annotate({ expected: "JSON value" }), |
| 43752 | ).annotate({ description: "Extra app-server data for a thread." }); | 55078 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 43753 | | 55079 | |
| 43754 | export type V2ThreadReadResponse__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 43755 | export const V2ThreadReadResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | | |
| 43756 | | | |
| 43757 | export type V2ThreadRealtimeClosedNotification = { | 55080 | export type V2ThreadRealtimeClosedNotification = { |
| 43758 | readonly reason?: string | null; | 55081 | readonly reason?: string | null; |
| 43759 | readonly threadId: string; | 55082 | readonly threadId: string; |
| ... | @@ -43790,6 +55113,44 @@ export const V2ThreadRealtimeItemAddedNotification = Schema.Struct({ | ... | @@ -43790,6 +55113,44 @@ export const V2ThreadRealtimeItemAddedNotification = Schema.Struct({ |
| 43790 | description: "EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.", | 55113 | description: "EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.", |
| 43791 | }); | 55114 | }); |
| 43792 | | 55115 | |
| | 55116 | export type V2ThreadRealtimeItemCompletedNotification = { |
| | 55117 | readonly item: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem; |
| | 55118 | readonly threadId: string; |
| | 55119 | }; |
| | 55120 | export const V2ThreadRealtimeItemCompletedNotification = Schema.Struct({ |
| | 55121 | item: V2ThreadRealtimeItemCompletedNotification__ThreadRealtimeItem, |
| | 55122 | threadId: Schema.String, |
| | 55123 | }).annotate({ |
| | 55124 | title: "ThreadRealtimeItemCompletedNotification", |
| | 55125 | description: "EXPERIMENTAL - a realtime timeline item published after canonical commit.", |
| | 55126 | }); |
| | 55127 | |
| | 55128 | export type V2ThreadRealtimeItemStartedNotification = { |
| | 55129 | readonly item: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem; |
| | 55130 | readonly threadId: string; |
| | 55131 | }; |
| | 55132 | export const V2ThreadRealtimeItemStartedNotification = Schema.Struct({ |
| | 55133 | item: V2ThreadRealtimeItemStartedNotification__ThreadRealtimeItem, |
| | 55134 | threadId: Schema.String, |
| | 55135 | }).annotate({ |
| | 55136 | title: "ThreadRealtimeItemStartedNotification", |
| | 55137 | description: "EXPERIMENTAL - a realtime timeline item started before its content streams.", |
| | 55138 | }); |
| | 55139 | |
| | 55140 | export type V2ThreadRealtimeItemTranscriptDeltaNotification = { |
| | 55141 | readonly delta: string; |
| | 55142 | readonly itemId: string; |
| | 55143 | readonly threadId: string; |
| | 55144 | }; |
| | 55145 | export const V2ThreadRealtimeItemTranscriptDeltaNotification = Schema.Struct({ |
| | 55146 | delta: Schema.String, |
| | 55147 | itemId: Schema.String, |
| | 55148 | threadId: Schema.String, |
| | 55149 | }).annotate({ |
| | 55150 | title: "ThreadRealtimeItemTranscriptDeltaNotification", |
| | 55151 | description: "EXPERIMENTAL - text appended to an active realtime transcript item.", |
| | 55152 | }); |
| | 55153 | |
| 43793 | export type V2ThreadRealtimeOutputAudioDeltaNotification = { | 55154 | export type V2ThreadRealtimeOutputAudioDeltaNotification = { |
| 43794 | readonly audio: V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk; | 55155 | readonly audio: V2ThreadRealtimeOutputAudioDeltaNotification__ThreadRealtimeAudioChunk; |
| 43795 | readonly threadId: string; | 55156 | readonly threadId: string; |
| ... | @@ -43862,6 +55223,7 @@ export type V2ThreadResumeParams = { | ... | @@ -43862,6 +55223,7 @@ export type V2ThreadResumeParams = { |
| 43862 | readonly config?: { readonly [x: string]: Schema.Json } | null; | 55223 | readonly config?: { readonly [x: string]: Schema.Json } | null; |
| 43863 | readonly cwd?: string | null; | 55224 | readonly cwd?: string | null; |
| 43864 | readonly developerInstructions?: string | null; | 55225 | readonly developerInstructions?: string | null; |
| | 55226 | readonly excludeTurns?: boolean; |
| 43865 | readonly model?: string | null; | 55227 | readonly model?: string | null; |
| 43866 | readonly modelProvider?: string | null; | 55228 | readonly modelProvider?: string | null; |
| 43867 | readonly personality?: V2ThreadResumeParams__Personality | null; | 55229 | readonly personality?: V2ThreadResumeParams__Personality | null; |
| ... | @@ -43888,6 +55250,12 @@ export const V2ThreadResumeParams = Schema.Struct({ | ... | @@ -43888,6 +55250,12 @@ export const V2ThreadResumeParams = Schema.Struct({ |
| 43888 | ), | 55250 | ), |
| 43889 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55251 | cwd: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 43890 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55252 | developerInstructions: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 55253 | excludeTurns: Schema.optionalKey( |
| | 55254 | Schema.Boolean.annotate({ |
| | 55255 | description: |
| | 55256 | "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.", |
| | 55257 | }), |
| | 55258 | ), |
| 43891 | model: Schema.optionalKey( | 55259 | model: Schema.optionalKey( |
| 43892 | Schema.Union([ | 55260 | Schema.Union([ |
| 43893 | Schema.String.annotate({ | 55261 | Schema.String.annotate({ |
| ... | @@ -43897,7 +55265,12 @@ export const V2ThreadResumeParams = Schema.Struct({ | ... | @@ -43897,7 +55265,12 @@ export const V2ThreadResumeParams = Schema.Struct({ |
| 43897 | ]), | 55265 | ]), |
| 43898 | ), | 55266 | ), |
| 43899 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55267 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 43900 | personality: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__Personality, Schema.Null])), | 55268 | personality: Schema.optionalKey( |
| | 55269 | Schema.Union([V2ThreadResumeParams__Personality, Schema.Null]).annotate({ |
| | 55270 | description: |
| | 55271 | "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.", |
| | 55272 | }), |
| | 55273 | ), |
| 43901 | sandbox: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__SandboxMode, Schema.Null])), | 55274 | sandbox: Schema.optionalKey(Schema.Union([V2ThreadResumeParams__SandboxMode, Schema.Null])), |
| 43902 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55275 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 43903 | threadId: Schema.String, | 55276 | threadId: Schema.String, |
| ... | @@ -43949,6 +55322,7 @@ export type V2ThreadResumeParams__ResponseItem = | ... | @@ -43949,6 +55322,7 @@ export type V2ThreadResumeParams__ResponseItem = |
| 43949 | | { | 55322 | | { |
| 43950 | readonly arguments: string; | 55323 | readonly arguments: string; |
| 43951 | readonly call_id: string; | 55324 | readonly call_id: string; |
| | 55325 | readonly encrypted_function_args?: ReadonlyArray<string> | null; |
| 43952 | readonly id?: string | null; | 55326 | readonly id?: string | null; |
| 43953 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; | 55327 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; |
| 43954 | readonly name: string; | 55328 | readonly name: string; |
| ... | @@ -43965,9 +55339,11 @@ export type V2ThreadResumeParams__ResponseItem = | ... | @@ -43965,9 +55339,11 @@ export type V2ThreadResumeParams__ResponseItem = |
| 43965 | readonly type: "tool_search_call"; | 55339 | readonly type: "tool_search_call"; |
| 43966 | } | 55340 | } |
| 43967 | | { | 55341 | | { |
| 43968 | readonly call_id: string; | 55342 | readonly call_id?: string | null; |
| 43969 | readonly id?: string | null; | 55343 | readonly id?: string | null; |
| 43970 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; | 55344 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; |
| | 55345 | readonly name?: string | null; |
| | 55346 | readonly namespace?: string | null; |
| 43971 | readonly output: V2ThreadResumeParams__FunctionCallOutputBody; | 55347 | readonly output: V2ThreadResumeParams__FunctionCallOutputBody; |
| 43972 | readonly type: "function_call_output"; | 55348 | readonly type: "function_call_output"; |
| 43973 | } | 55349 | } |
| ... | @@ -44019,6 +55395,10 @@ export type V2ThreadResumeParams__ResponseItem = | ... | @@ -44019,6 +55395,10 @@ export type V2ThreadResumeParams__ResponseItem = |
| 44019 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; | 55395 | readonly internal_chat_message_metadata_passthrough?: V2ThreadResumeParams__InternalChatMessageMetadataPassthrough | null; |
| 44020 | readonly type: "compaction"; | 55396 | readonly type: "compaction"; |
| 44021 | } | 55397 | } |
| | 55398 | | { |
| | 55399 | readonly reasoning: V2ThreadResumeParams__ConfigurationReasoning; |
| | 55400 | readonly type: "configuration_update"; |
| | 55401 | } |
| 44022 | | { readonly type: "compaction_trigger" } | 55402 | | { readonly type: "compaction_trigger" } |
| 44023 | | { | 55403 | | { |
| 44024 | readonly encrypted_content?: string | null; | 55404 | readonly encrypted_content?: string | null; |
| ... | @@ -44088,6 +55468,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( | ... | @@ -44088,6 +55468,9 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 44088 | Schema.Struct({ | 55468 | Schema.Struct({ |
| 44089 | arguments: Schema.String, | 55469 | arguments: Schema.String, |
| 44090 | call_id: Schema.String, | 55470 | call_id: Schema.String, |
| | 55471 | encrypted_function_args: Schema.optionalKey( |
| | 55472 | Schema.Union([Schema.Array(Schema.String), Schema.Null]), |
| | 55473 | ), |
| 44091 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55474 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44092 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 55475 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 44093 | Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]), | 55476 | Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]), |
| ... | @@ -44110,11 +55493,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( | ... | @@ -44110,11 +55493,13 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 44110 | }), | 55493 | }), |
| 44111 | }).annotate({ title: "ToolSearchCallResponseItem" }), | 55494 | }).annotate({ title: "ToolSearchCallResponseItem" }), |
| 44112 | Schema.Struct({ | 55495 | Schema.Struct({ |
| 44113 | call_id: Schema.String, | 55496 | call_id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44114 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55497 | id: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44115 | internal_chat_message_metadata_passthrough: Schema.optionalKey( | 55498 | internal_chat_message_metadata_passthrough: Schema.optionalKey( |
| 44116 | Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]), | 55499 | Schema.Union([V2ThreadResumeParams__InternalChatMessageMetadataPassthrough, Schema.Null]), |
| 44117 | ), | 55500 | ), |
| | 55501 | name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| | 55502 | namespace: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44118 | output: V2ThreadResumeParams__FunctionCallOutputBody, | 55503 | output: V2ThreadResumeParams__FunctionCallOutputBody, |
| 44119 | type: Schema.Literal("function_call_output").annotate({ | 55504 | type: Schema.Literal("function_call_output").annotate({ |
| 44120 | title: "FunctionCallOutputResponseItemType", | 55505 | title: "FunctionCallOutputResponseItemType", |
| ... | @@ -44190,6 +55575,15 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( | ... | @@ -44190,6 +55575,15 @@ export const V2ThreadResumeParams__ResponseItem = Schema.Union( |
| 44190 | ), | 55575 | ), |
| 44191 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), | 55576 | type: Schema.Literal("compaction").annotate({ title: "CompactionResponseItemType" }), |
| 44192 | }).annotate({ title: "CompactionResponseItem" }), | 55577 | }).annotate({ title: "CompactionResponseItem" }), |
| | 55578 | Schema.Struct({ |
| | 55579 | reasoning: V2ThreadResumeParams__ConfigurationReasoning, |
| | 55580 | type: Schema.Literal("configuration_update").annotate({ |
| | 55581 | title: "ConfigurationUpdateResponseItemType", |
| | 55582 | }), |
| | 55583 | }).annotate({ |
| | 55584 | title: "ConfigurationUpdateResponseItem", |
| | 55585 | description: "A durable input control interpreted by the backend at its position in history.", |
| | 55586 | }), |
| 44193 | Schema.Struct({ | 55587 | Schema.Struct({ |
| 44194 | type: Schema.Literal("compaction_trigger").annotate({ | 55588 | type: Schema.Literal("compaction_trigger").annotate({ |
| 44195 | title: "CompactionTriggerResponseItemType", | 55589 | title: "CompactionTriggerResponseItemType", |
| ... | @@ -44245,14 +55639,18 @@ export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.S | ... | @@ -44245,14 +55639,18 @@ export const V2ThreadResumeParams__ThreadResumeInitialTurnsPageParams = Schema.S |
| 44245 | export type V2ThreadResumeResponse = { | 55639 | export type V2ThreadResumeResponse = { |
| 44246 | readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval; | 55640 | readonly approvalPolicy: V2ThreadResumeResponse__AskForApproval; |
| 44247 | readonly approvalsReviewer: V2ThreadResumeResponse__ApprovalsReviewer; | 55641 | readonly approvalsReviewer: V2ThreadResumeResponse__ApprovalsReviewer; |
| | 55642 | readonly collaborationMode?: V2ThreadResumeResponse__CollaborationMode | null; |
| 44248 | readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf; | 55643 | readonly cwd: V2ThreadResumeResponse__AbsolutePathBuf; |
| | 55644 | readonly disabledPluginIds?: ReadonlyArray<string>; |
| 44249 | readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>; | 55645 | readonly instructionSources?: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>; |
| | 55646 | readonly itemsBackwardsCursor?: string | null; |
| 44250 | readonly model: string; | 55647 | readonly model: string; |
| 44251 | readonly modelProvider: string; | 55648 | readonly modelProvider: string; |
| 44252 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; | 55649 | readonly reasoningEffort?: V2ThreadResumeResponse__ReasoningEffort | null; |
| 44253 | readonly sandbox: V2ThreadResumeResponse__SandboxPolicy; | 55650 | readonly sandbox: V2ThreadResumeResponse__SandboxPolicy; |
| 44254 | readonly serviceTier?: string | null; | 55651 | readonly serviceTier?: string | null; |
| 44255 | readonly thread: V2ThreadResumeResponse__Thread; | 55652 | readonly thread: V2ThreadResumeResponse__Thread; |
| | 55653 | readonly turnsBackwardsCursor?: string | null; |
| 44256 | }; | 55654 | }; |
| 44257 | export const V2ThreadResumeResponse = Schema.Struct({ | 55655 | export const V2ThreadResumeResponse = Schema.Struct({ |
| 44258 | approvalPolicy: V2ThreadResumeResponse__AskForApproval, | 55656 | approvalPolicy: V2ThreadResumeResponse__AskForApproval, |
| ... | @@ -44260,7 +55658,18 @@ export const V2ThreadResumeResponse = Schema.Struct({ | ... | @@ -44260,7 +55658,18 @@ export const V2ThreadResumeResponse = Schema.Struct({ |
| 44260 | (): Schema.Codec<V2ThreadResumeResponse__ApprovalsReviewer> => | 55658 | (): Schema.Codec<V2ThreadResumeResponse__ApprovalsReviewer> => |
| 44261 | V2ThreadResumeResponse__ApprovalsReviewer, | 55659 | V2ThreadResumeResponse__ApprovalsReviewer, |
| 44262 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), | 55660 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), |
| | 55661 | collaborationMode: Schema.optionalKey( |
| | 55662 | Schema.Union([V2ThreadResumeResponse__CollaborationMode, Schema.Null]).annotate({ |
| | 55663 | description: "Effective collaboration mode. Absent when resuming from an older server.", |
| | 55664 | }), |
| | 55665 | ), |
| 44263 | cwd: V2ThreadResumeResponse__AbsolutePathBuf, | 55666 | cwd: V2ThreadResumeResponse__AbsolutePathBuf, |
| | 55667 | disabledPluginIds: Schema.optionalKey( |
| | 55668 | Schema.Array(Schema.String).annotate({ |
| | 55669 | description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| | 55670 | default: [], |
| | 55671 | }), |
| | 55672 | ), |
| 44264 | instructionSources: Schema.optionalKey( | 55673 | instructionSources: Schema.optionalKey( |
| 44265 | Schema.Array(V2ThreadResumeResponse__LegacyAppPathString).annotate({ | 55674 | Schema.Array(V2ThreadResumeResponse__LegacyAppPathString).annotate({ |
| 44266 | description: | 55675 | description: |
| ... | @@ -44268,6 +55677,15 @@ export const V2ThreadResumeResponse = Schema.Struct({ | ... | @@ -44268,6 +55677,15 @@ export const V2ThreadResumeResponse = Schema.Struct({ |
| 44268 | default: [], | 55677 | default: [], |
| 44269 | }), | 55678 | }), |
| 44270 | ), | 55679 | ), |
| | 55680 | itemsBackwardsCursor: Schema.optionalKey( |
| | 55681 | Schema.Union([ |
| | 55682 | Schema.String.annotate({ |
| | 55683 | description: |
| | 55684 | 'Opaque cursor for hydrating paginated items backwards.\n\nPass this as `cursor` to `thread/items/list` with `sortDirection: "desc"`. The first page includes the item identified by the cursor.', |
| | 55685 | }), |
| | 55686 | Schema.Null, |
| | 55687 | ]), |
| | 55688 | ), |
| 44271 | model: Schema.String, | 55689 | model: Schema.String, |
| 44272 | modelProvider: Schema.String, | 55690 | modelProvider: Schema.String, |
| 44273 | reasoningEffort: Schema.optionalKey( | 55691 | reasoningEffort: Schema.optionalKey( |
| ... | @@ -44282,6 +55700,15 @@ export const V2ThreadResumeResponse = Schema.Struct({ | ... | @@ -44282,6 +55700,15 @@ export const V2ThreadResumeResponse = Schema.Struct({ |
| 44282 | }), | 55700 | }), |
| 44283 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55701 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44284 | thread: V2ThreadResumeResponse__Thread, | 55702 | thread: V2ThreadResumeResponse__Thread, |
| | 55703 | turnsBackwardsCursor: Schema.optionalKey( |
| | 55704 | Schema.Union([ |
| | 55705 | Schema.String.annotate({ |
| | 55706 | description: |
| | 55707 | 'Opaque cursor for hydrating paginated turns backwards.\n\nPass this as `cursor` to `thread/turns/list` with `sortDirection: "desc"`. The first page includes the turn identified by the cursor.', |
| | 55708 | }), |
| | 55709 | Schema.Null, |
| | 55710 | ]), |
| | 55711 | ), |
| 44285 | }).annotate({ title: "ThreadResumeResponse" }); | 55712 | }).annotate({ title: "ThreadResumeResponse" }); |
| 44286 | | 55713 | |
| 44287 | export type V2ThreadResumeResponse__ActivePermissionProfile = { | 55714 | export type V2ThreadResumeResponse__ActivePermissionProfile = { |
| ... | @@ -44319,15 +55746,25 @@ export const V2ThreadResumeResponse__MultiAgentMode = Schema.Union( | ... | @@ -44319,15 +55746,25 @@ export const V2ThreadResumeResponse__MultiAgentMode = Schema.Union( |
| 44319 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 55746 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 44320 | }); | 55747 | }); |
| 44321 | | 55748 | |
| | 55749 | export type V2ThreadResumeResponse__ThreadEnvironment = { |
| | 55750 | readonly cwd: V2ThreadResumeResponse__LegacyAppPathString; |
| | 55751 | readonly environmentId: string; |
| | 55752 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadResumeResponse__LegacyAppPathString>; |
| | 55753 | }; |
| | 55754 | export const V2ThreadResumeResponse__ThreadEnvironment = Schema.Struct({ |
| | 55755 | cwd: V2ThreadResumeResponse__LegacyAppPathString, |
| | 55756 | environmentId: Schema.String, |
| | 55757 | runtimeWorkspaceRoots: Schema.Array(V2ThreadResumeResponse__LegacyAppPathString), |
| | 55758 | }).annotate({ |
| | 55759 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 55760 | }); |
| | 55761 | |
| 44322 | export type V2ThreadResumeResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 55762 | export type V2ThreadResumeResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 44323 | export const V2ThreadResumeResponse__ThreadExtra = Schema.Record( | 55763 | export const V2ThreadResumeResponse__ThreadExtra = Schema.Record( |
| 44324 | Schema.String, | 55764 | Schema.String, |
| 44325 | Schema.Json.annotate({ expected: "JSON value" }), | 55765 | Schema.Json.annotate({ expected: "JSON value" }), |
| 44326 | ).annotate({ description: "Extra app-server data for a thread." }); | 55766 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 44327 | | 55767 | |
| 44328 | export type V2ThreadResumeResponse__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 44329 | export const V2ThreadResumeResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | | |
| 44330 | | | |
| 44331 | export type V2ThreadResumeResponse__TurnsPage = { | 55768 | export type V2ThreadResumeResponse__TurnsPage = { |
| 44332 | readonly backwardsCursor?: string | null; | 55769 | readonly backwardsCursor?: string | null; |
| 44333 | readonly data: ReadonlyArray<V2ThreadResumeResponse__Turn>; | 55770 | readonly data: ReadonlyArray<V2ThreadResumeResponse__Turn>; |
| ... | @@ -44339,41 +55776,232 @@ export const V2ThreadResumeResponse__TurnsPage = Schema.Struct({ | ... | @@ -44339,41 +55776,232 @@ export const V2ThreadResumeResponse__TurnsPage = Schema.Struct({ |
| 44339 | nextCursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 55776 | nextCursor: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44340 | }); | 55777 | }); |
| 44341 | | 55778 | |
| 44342 | export type V2ThreadRollbackParams = { readonly numTurns: number; readonly threadId: string }; | 55779 | export type V2ThreadRevertedNotification = { readonly threadId: string }; |
| 44343 | export const V2ThreadRollbackParams = Schema.Struct({ | 55780 | export const V2ThreadRevertedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 44344 | numTurns: Schema.Number.annotate({ | 55781 | title: "ThreadRevertedNotification", |
| 44345 | description: | 55782 | }); |
| 44346 | "The number of turns to drop from the end of the thread. Must be >= 1.\n\nThis only modifies the thread's history and does not revert local file changes that have been made by the agent. Clients are responsible for reverting these changes.", | 55783 | |
| 44347 | format: "uint32", | 55784 | export type V2ThreadRevertParams = { readonly beforeTurnId: string; readonly threadId: string }; |
| 44348 | }) | 55785 | export const V2ThreadRevertParams = Schema.Struct({ |
| 44349 | .check(Schema.isInt().annotate({ expected: "an integer" })) | 55786 | beforeTurnId: Schema.String.annotate({ |
| 44350 | .check( | 55787 | description: "Turn excluded from the replacement history, together with every later turn.", |
| 44351 | Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }), | 55788 | }), |
| 44352 | ), | | |
| 44353 | threadId: Schema.String, | 55789 | threadId: Schema.String, |
| 44354 | }).annotate({ | 55790 | }).annotate({ |
| 44355 | title: "ThreadRollbackParams", | 55791 | title: "ThreadRevertParams", |
| 44356 | description: "DEPRECATED: `thread/rollback` will be removed soon.", | 55792 | description: |
| | 55793 | "Replace a paginated thread's durable history with the prefix before one turn.\n\nThis only changes persisted conversation history. It does not revert local file changes.", |
| 44357 | }); | 55794 | }); |
| 44358 | | 55795 | |
| 44359 | export type V2ThreadRollbackResponse = { readonly thread: V2ThreadRollbackResponse__Thread }; | 55796 | export type V2ThreadRevertResponse = { |
| 44360 | export const V2ThreadRollbackResponse = Schema.Struct({ | 55797 | readonly itemsBackwardsCursor?: string | null; |
| | 55798 | readonly thread: V2ThreadRevertResponse__Thread; |
| | 55799 | readonly turnsBackwardsCursor?: string | null; |
| | 55800 | }; |
| | 55801 | export const V2ThreadRevertResponse = Schema.Struct({ |
| | 55802 | itemsBackwardsCursor: Schema.optionalKey( |
| | 55803 | Schema.Union([ |
| | 55804 | Schema.String.annotate({ |
| | 55805 | description: |
| | 55806 | 'Opaque cursor for hydrating paginated items backwards.\n\nPass this as `cursor` to `thread/items/list` with `sortDirection: "desc"`. The first page includes the item identified by the cursor.', |
| | 55807 | }), |
| | 55808 | Schema.Null, |
| | 55809 | ]), |
| | 55810 | ), |
| 44361 | thread: Schema.suspend( | 55811 | thread: Schema.suspend( |
| 44362 | (): Schema.Codec<V2ThreadRollbackResponse__Thread> => V2ThreadRollbackResponse__Thread, | 55812 | (): Schema.Codec<V2ThreadRevertResponse__Thread> => V2ThreadRevertResponse__Thread, |
| 44363 | ).annotate({ | 55813 | ).annotate({ |
| 44364 | description: | 55814 | description: |
| 44365 | "The updated thread after applying the rollback, with `turns` populated.\n\nThe ThreadItems stored in each Turn are lossy since we explicitly do not persist all agent interactions, such as command executions. This is the same behavior as `thread/resume`.", | 55815 | "Updated loaded thread metadata. `turns` is always empty; hydrate retained history through `thread/turns/list`.", |
| 44366 | }), | 55816 | }), |
| 44367 | }).annotate({ title: "ThreadRollbackResponse" }); | 55817 | turnsBackwardsCursor: Schema.optionalKey( |
| | 55818 | Schema.Union([ |
| | 55819 | Schema.String.annotate({ |
| | 55820 | description: |
| | 55821 | 'Opaque cursor for hydrating paginated turns backwards.\n\nPass this as `cursor` to `thread/turns/list` with `sortDirection: "desc"`. The first page includes the turn identified by the cursor.', |
| | 55822 | }), |
| | 55823 | Schema.Null, |
| | 55824 | ]), |
| | 55825 | ), |
| | 55826 | }).annotate({ title: "ThreadRevertResponse" }); |
| 44368 | | 55827 | |
| 44369 | export type V2ThreadRollbackResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 55828 | export type V2ThreadRevertResponse__ThreadEnvironment = { |
| 44370 | export const V2ThreadRollbackResponse__ThreadExtra = Schema.Record( | 55829 | readonly cwd: V2ThreadRevertResponse__LegacyAppPathString; |
| | 55830 | readonly environmentId: string; |
| | 55831 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadRevertResponse__LegacyAppPathString>; |
| | 55832 | }; |
| | 55833 | export const V2ThreadRevertResponse__ThreadEnvironment = Schema.Struct({ |
| | 55834 | cwd: V2ThreadRevertResponse__LegacyAppPathString, |
| | 55835 | environmentId: Schema.String, |
| | 55836 | runtimeWorkspaceRoots: Schema.Array(V2ThreadRevertResponse__LegacyAppPathString), |
| | 55837 | }).annotate({ |
| | 55838 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 55839 | }); |
| | 55840 | |
| | 55841 | export type V2ThreadRevertResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| | 55842 | export const V2ThreadRevertResponse__ThreadExtra = Schema.Record( |
| 44371 | Schema.String, | 55843 | Schema.String, |
| 44372 | Schema.Json.annotate({ expected: "JSON value" }), | 55844 | Schema.Json.annotate({ expected: "JSON value" }), |
| 44373 | ).annotate({ description: "Extra app-server data for a thread." }); | 55845 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 44374 | | 55846 | |
| 44375 | export type V2ThreadRollbackResponse__ThreadHistoryMode = "legacy" | "paginated"; | 55847 | export type V2ThreadSectionCreateParams = { |
| 44376 | export const V2ThreadRollbackResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | 55848 | readonly appearance?: V2ThreadSectionCreateParams__ThreadSectionAppearance | null; |
| | 55849 | readonly name: string; |
| | 55850 | }; |
| | 55851 | export const V2ThreadSectionCreateParams = Schema.Struct({ |
| | 55852 | appearance: Schema.optionalKey( |
| | 55853 | Schema.Union([V2ThreadSectionCreateParams__ThreadSectionAppearance, Schema.Null]), |
| | 55854 | ), |
| | 55855 | name: Schema.String.annotate({ description: "The user-visible name of the section." }), |
| | 55856 | }).annotate({ |
| | 55857 | title: "ThreadSectionCreateParams", |
| | 55858 | description: "Parameters for creating an independently persisted thread section.", |
| | 55859 | }); |
| | 55860 | |
| | 55861 | export type V2ThreadSectionCreateResponse = { |
| | 55862 | readonly section: V2ThreadSectionCreateResponse__ThreadSection; |
| | 55863 | }; |
| | 55864 | export const V2ThreadSectionCreateResponse = Schema.Struct({ |
| | 55865 | section: V2ThreadSectionCreateResponse__ThreadSection, |
| | 55866 | }).annotate({ |
| | 55867 | title: "ThreadSectionCreateResponse", |
| | 55868 | description: "The independently persisted section created by the server.", |
| | 55869 | }); |
| | 55870 | |
| | 55871 | export type V2ThreadSectionDeleteParams = { readonly sectionId: string }; |
| | 55872 | export const V2ThreadSectionDeleteParams = Schema.Struct({ |
| | 55873 | sectionId: Schema.String.annotate({ |
| | 55874 | description: "The stable, server-generated identity of the section to delete.", |
| | 55875 | }), |
| | 55876 | }).annotate({ |
| | 55877 | title: "ThreadSectionDeleteParams", |
| | 55878 | description: "Parameters for deleting an independently persisted thread section.", |
| | 55879 | }); |
| | 55880 | |
| | 55881 | export type V2ThreadSectionDeleteResponse = { readonly [x: string]: Schema.Json }; |
| | 55882 | export const V2ThreadSectionDeleteResponse = Schema.Record( |
| | 55883 | Schema.String, |
| | 55884 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 55885 | ).annotate({ |
| | 55886 | title: "ThreadSectionDeleteResponse", |
| | 55887 | description: "Successful deletion does not return additional section data.", |
| | 55888 | }); |
| | 55889 | |
| | 55890 | export type V2ThreadSectionListParams = { |
| | 55891 | readonly cursor?: string | null; |
| | 55892 | readonly limit?: number | null; |
| | 55893 | }; |
| | 55894 | export const V2ThreadSectionListParams = Schema.Struct({ |
| | 55895 | cursor: Schema.optionalKey( |
| | 55896 | Schema.Union([ |
| | 55897 | Schema.String.annotate({ |
| | 55898 | description: "Opaque pagination cursor returned by a previous call.", |
| | 55899 | }), |
| | 55900 | Schema.Null, |
| | 55901 | ]), |
| | 55902 | ), |
| | 55903 | limit: Schema.optionalKey( |
| | 55904 | Schema.Union([ |
| | 55905 | Schema.Number.annotate({ |
| | 55906 | description: "Maximum number of sections to return.", |
| | 55907 | format: "uint32", |
| | 55908 | }) |
| | 55909 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 55910 | .check( |
| | 55911 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 55912 | expected: "a value greater than or equal to 0", |
| | 55913 | }), |
| | 55914 | ), |
| | 55915 | Schema.Null, |
| | 55916 | ]), |
| | 55917 | ), |
| | 55918 | }).annotate({ |
| | 55919 | title: "ThreadSectionListParams", |
| | 55920 | description: "Parameters for listing independently persisted thread sections.", |
| | 55921 | }); |
| | 55922 | |
| | 55923 | export type V2ThreadSectionListResponse = { |
| | 55924 | readonly data: ReadonlyArray<V2ThreadSectionListResponse__ThreadSection>; |
| | 55925 | readonly nextCursor?: string | null; |
| | 55926 | }; |
| | 55927 | export const V2ThreadSectionListResponse = Schema.Struct({ |
| | 55928 | data: Schema.Array(V2ThreadSectionListResponse__ThreadSection), |
| | 55929 | nextCursor: Schema.optionalKey( |
| | 55930 | Schema.Union([ |
| | 55931 | Schema.String.annotate({ |
| | 55932 | description: "Opaque cursor for the next page, or `null` when no sections remain.", |
| | 55933 | }), |
| | 55934 | Schema.Null, |
| | 55935 | ]), |
| | 55936 | ), |
| | 55937 | }).annotate({ |
| | 55938 | title: "ThreadSectionListResponse", |
| | 55939 | description: "One page of independently persisted thread sections.", |
| | 55940 | }); |
| | 55941 | |
| | 55942 | export type V2ThreadSectionMoveParams = { |
| | 55943 | readonly beforeThreadId?: string | null; |
| | 55944 | readonly sectionId: string | null; |
| | 55945 | readonly threadId: string; |
| | 55946 | }; |
| | 55947 | export const V2ThreadSectionMoveParams = Schema.Struct({ |
| | 55948 | beforeThreadId: Schema.optionalKey( |
| | 55949 | Schema.Union([ |
| | 55950 | Schema.String.annotate({ |
| | 55951 | description: "Existing thread to insert before; omission or null appends to the section.", |
| | 55952 | }), |
| | 55953 | Schema.Null, |
| | 55954 | ]), |
| | 55955 | ), |
| | 55956 | sectionId: Schema.Union([ |
| | 55957 | Schema.String.annotate({ |
| | 55958 | description: "Destination section, or `null` to remove the thread from its section.", |
| | 55959 | }), |
| | 55960 | Schema.Null, |
| | 55961 | ]), |
| | 55962 | threadId: Schema.String.annotate({ |
| | 55963 | description: "Thread to move into, within, or out of a section.", |
| | 55964 | }), |
| | 55965 | }).annotate({ |
| | 55966 | title: "ThreadSectionMoveParams", |
| | 55967 | description: "Parameters for moving a thread within a server-owned section ordering.", |
| | 55968 | }); |
| | 55969 | |
| | 55970 | export type V2ThreadSectionMoveResponse = { readonly [x: string]: Schema.Json }; |
| | 55971 | export const V2ThreadSectionMoveResponse = Schema.Record( |
| | 55972 | Schema.String, |
| | 55973 | Schema.Json.annotate({ expected: "JSON value" }), |
| | 55974 | ).annotate({ title: "ThreadSectionMoveResponse" }); |
| | 55975 | |
| | 55976 | export type V2ThreadSectionUpdateParams = { |
| | 55977 | readonly appearance?: V2ThreadSectionUpdateParams__ThreadSectionAppearance | null; |
| | 55978 | readonly name: string; |
| | 55979 | readonly sectionId: string; |
| | 55980 | }; |
| | 55981 | export const V2ThreadSectionUpdateParams = Schema.Struct({ |
| | 55982 | appearance: Schema.optionalKey( |
| | 55983 | Schema.Union([V2ThreadSectionUpdateParams__ThreadSectionAppearance, Schema.Null]).annotate({ |
| | 55984 | description: "Omit to preserve appearance, use `null` to clear it, or provide a replacement.", |
| | 55985 | }), |
| | 55986 | ), |
| | 55987 | name: Schema.String.annotate({ description: "The updated user-visible name of the section." }), |
| | 55988 | sectionId: Schema.String.annotate({ |
| | 55989 | description: "The stable, server-generated identity of the section to update.", |
| | 55990 | }), |
| | 55991 | }).annotate({ |
| | 55992 | title: "ThreadSectionUpdateParams", |
| | 55993 | description: "Parameters for updating an independently persisted thread section.", |
| | 55994 | }); |
| | 55995 | |
| | 55996 | export type V2ThreadSectionUpdateResponse = { |
| | 55997 | readonly section: V2ThreadSectionUpdateResponse__ThreadSection; |
| | 55998 | }; |
| | 55999 | export const V2ThreadSectionUpdateResponse = Schema.Struct({ |
| | 56000 | section: V2ThreadSectionUpdateResponse__ThreadSection, |
| | 56001 | }).annotate({ |
| | 56002 | title: "ThreadSectionUpdateResponse", |
| | 56003 | description: "The independently persisted section after its name is updated.", |
| | 56004 | }); |
| 44377 | | 56005 | |
| 44378 | export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string }; | 56006 | export type V2ThreadSetNameParams = { readonly name: string; readonly threadId: string }; |
| 44379 | export const V2ThreadSetNameParams = Schema.Struct({ | 56007 | export const V2ThreadSetNameParams = Schema.Struct({ |
| ... | @@ -44411,13 +56039,27 @@ export const V2ThreadSettingsUpdatedNotification__MultiAgentMode = Schema.Union( | ... | @@ -44411,13 +56039,27 @@ export const V2ThreadSettingsUpdatedNotification__MultiAgentMode = Schema.Union( |
| 44411 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 56039 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 44412 | }); | 56040 | }); |
| 44413 | | 56041 | |
| 44414 | export type V2ThreadShellCommandParams = { readonly command: string; readonly threadId: string }; | 56042 | export type V2ThreadShellCommandParams = { |
| | 56043 | readonly command: string; |
| | 56044 | readonly threadId: string; |
| | 56045 | readonly timeoutMs?: number | null; |
| | 56046 | }; |
| 44415 | export const V2ThreadShellCommandParams = Schema.Struct({ | 56047 | export const V2ThreadShellCommandParams = Schema.Struct({ |
| 44416 | command: Schema.String.annotate({ | 56048 | command: Schema.String.annotate({ |
| 44417 | description: | 56049 | description: |
| 44418 | "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.", | 56050 | "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.", |
| 44419 | }), | 56051 | }), |
| 44420 | threadId: Schema.String, | 56052 | threadId: Schema.String, |
| | 56053 | timeoutMs: Schema.optionalKey( |
| | 56054 | Schema.Union([ |
| | 56055 | Schema.Number.annotate({ |
| | 56056 | description: |
| | 56057 | "Maximum execution time in milliseconds. Defaults to one hour when omitted or null. Must be non-negative; zero requests an immediate timeout, not unlimited execution. Does not affect the immediate RPC acknowledgement.", |
| | 56058 | format: "int64", |
| | 56059 | }).check(Schema.isInt().annotate({ expected: "an integer" })), |
| | 56060 | Schema.Null, |
| | 56061 | ]), |
| | 56062 | ), |
| 44421 | }).annotate({ title: "ThreadShellCommandParams" }); | 56063 | }).annotate({ title: "ThreadShellCommandParams" }); |
| 44422 | | 56064 | |
| 44423 | export type V2ThreadShellCommandResponse = { readonly [x: string]: Schema.Json }; | 56065 | export type V2ThreadShellCommandResponse = { readonly [x: string]: Schema.Json }; |
| ... | @@ -44431,18 +56073,25 @@ export const V2ThreadStartedNotification = Schema.Struct({ | ... | @@ -44431,18 +56073,25 @@ export const V2ThreadStartedNotification = Schema.Struct({ |
| 44431 | thread: V2ThreadStartedNotification__Thread, | 56073 | thread: V2ThreadStartedNotification__Thread, |
| 44432 | }).annotate({ title: "ThreadStartedNotification" }); | 56074 | }).annotate({ title: "ThreadStartedNotification" }); |
| 44433 | | 56075 | |
| | 56076 | export type V2ThreadStartedNotification__ThreadEnvironment = { |
| | 56077 | readonly cwd: V2ThreadStartedNotification__LegacyAppPathString; |
| | 56078 | readonly environmentId: string; |
| | 56079 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadStartedNotification__LegacyAppPathString>; |
| | 56080 | }; |
| | 56081 | export const V2ThreadStartedNotification__ThreadEnvironment = Schema.Struct({ |
| | 56082 | cwd: V2ThreadStartedNotification__LegacyAppPathString, |
| | 56083 | environmentId: Schema.String, |
| | 56084 | runtimeWorkspaceRoots: Schema.Array(V2ThreadStartedNotification__LegacyAppPathString), |
| | 56085 | }).annotate({ |
| | 56086 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 56087 | }); |
| | 56088 | |
| 44434 | export type V2ThreadStartedNotification__ThreadExtra = { readonly [x: string]: Schema.Json }; | 56089 | export type V2ThreadStartedNotification__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 44435 | export const V2ThreadStartedNotification__ThreadExtra = Schema.Record( | 56090 | export const V2ThreadStartedNotification__ThreadExtra = Schema.Record( |
| 44436 | Schema.String, | 56091 | Schema.String, |
| 44437 | Schema.Json.annotate({ expected: "JSON value" }), | 56092 | Schema.Json.annotate({ expected: "JSON value" }), |
| 44438 | ).annotate({ description: "Extra app-server data for a thread." }); | 56093 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 44439 | | 56094 | |
| 44440 | export type V2ThreadStartedNotification__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 44441 | export const V2ThreadStartedNotification__ThreadHistoryMode = Schema.Literals([ | | |
| 44442 | "legacy", | | |
| 44443 | "paginated", | | |
| 44444 | ]); | | |
| 44445 | | | |
| 44446 | export type V2ThreadStartParams = { | 56095 | export type V2ThreadStartParams = { |
| 44447 | readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null; | 56096 | readonly approvalPolicy?: V2ThreadStartParams__AskForApproval | null; |
| 44448 | readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null; | 56097 | readonly approvalsReviewer?: V2ThreadStartParams__ApprovalsReviewer | null; |
| ... | @@ -44482,7 +56131,11 @@ export const V2ThreadStartParams = Schema.Struct({ | ... | @@ -44482,7 +56131,11 @@ export const V2ThreadStartParams = Schema.Struct({ |
| 44482 | ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), | 56131 | ephemeral: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), |
| 44483 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 56132 | model: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44484 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 56133 | modelProvider: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44485 | personality: Schema.optionalKey(Schema.Union([V2ThreadStartParams__Personality, Schema.Null])), | 56134 | personality: Schema.optionalKey( |
| | 56135 | Schema.Union([V2ThreadStartParams__Personality, Schema.Null]).annotate({ |
| | 56136 | description: "@deprecated `friendly` and `pragmatic` no longer select a style.", |
| | 56137 | }), |
| | 56138 | ), |
| 44486 | sandbox: Schema.optionalKey(Schema.Union([V2ThreadStartParams__SandboxMode, Schema.Null])), | 56139 | sandbox: Schema.optionalKey(Schema.Union([V2ThreadStartParams__SandboxMode, Schema.Null])), |
| 44487 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 56140 | serviceName: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| 44488 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), | 56141 | serviceTier: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), |
| ... | @@ -44591,6 +56244,7 @@ export type V2ThreadStartResponse = { | ... | @@ -44591,6 +56244,7 @@ export type V2ThreadStartResponse = { |
| 44591 | readonly approvalPolicy: V2ThreadStartResponse__AskForApproval; | 56244 | readonly approvalPolicy: V2ThreadStartResponse__AskForApproval; |
| 44592 | readonly approvalsReviewer: V2ThreadStartResponse__ApprovalsReviewer; | 56245 | readonly approvalsReviewer: V2ThreadStartResponse__ApprovalsReviewer; |
| 44593 | readonly cwd: V2ThreadStartResponse__AbsolutePathBuf; | 56246 | readonly cwd: V2ThreadStartResponse__AbsolutePathBuf; |
| | 56247 | readonly disabledPluginIds?: ReadonlyArray<string>; |
| 44594 | readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>; | 56248 | readonly instructionSources?: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>; |
| 44595 | readonly model: string; | 56249 | readonly model: string; |
| 44596 | readonly modelProvider: string; | 56250 | readonly modelProvider: string; |
| ... | @@ -44606,6 +56260,12 @@ export const V2ThreadStartResponse = Schema.Struct({ | ... | @@ -44606,6 +56260,12 @@ export const V2ThreadStartResponse = Schema.Struct({ |
| 44606 | V2ThreadStartResponse__ApprovalsReviewer, | 56260 | V2ThreadStartResponse__ApprovalsReviewer, |
| 44607 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), | 56261 | ).annotate({ description: "Reviewer currently used for approval requests on this thread." }), |
| 44608 | cwd: V2ThreadStartResponse__AbsolutePathBuf, | 56262 | cwd: V2ThreadStartResponse__AbsolutePathBuf, |
| | 56263 | disabledPluginIds: Schema.optionalKey( |
| | 56264 | Schema.Array(Schema.String).annotate({ |
| | 56265 | description: "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| | 56266 | default: [], |
| | 56267 | }), |
| | 56268 | ), |
| 44609 | instructionSources: Schema.optionalKey( | 56269 | instructionSources: Schema.optionalKey( |
| 44610 | Schema.Array(V2ThreadStartResponse__LegacyAppPathString).annotate({ | 56270 | Schema.Array(V2ThreadStartResponse__LegacyAppPathString).annotate({ |
| 44611 | description: | 56271 | description: |
| ... | @@ -44663,15 +56323,25 @@ export const V2ThreadStartResponse__MultiAgentMode = Schema.Union( | ... | @@ -44663,15 +56323,25 @@ export const V2ThreadStartResponse__MultiAgentMode = Schema.Union( |
| 44663 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", | 56323 | "Controls the effective multi-agent delegation instructions for a turn. `custom` means the configured mode hint defines the policy instead of a built-in policy.", |
| 44664 | }); | 56324 | }); |
| 44665 | | 56325 | |
| | 56326 | export type V2ThreadStartResponse__ThreadEnvironment = { |
| | 56327 | readonly cwd: V2ThreadStartResponse__LegacyAppPathString; |
| | 56328 | readonly environmentId: string; |
| | 56329 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadStartResponse__LegacyAppPathString>; |
| | 56330 | }; |
| | 56331 | export const V2ThreadStartResponse__ThreadEnvironment = Schema.Struct({ |
| | 56332 | cwd: V2ThreadStartResponse__LegacyAppPathString, |
| | 56333 | environmentId: Schema.String, |
| | 56334 | runtimeWorkspaceRoots: Schema.Array(V2ThreadStartResponse__LegacyAppPathString), |
| | 56335 | }).annotate({ |
| | 56336 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 56337 | }); |
| | 56338 | |
| 44666 | export type V2ThreadStartResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 56339 | export type V2ThreadStartResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 44667 | export const V2ThreadStartResponse__ThreadExtra = Schema.Record( | 56340 | export const V2ThreadStartResponse__ThreadExtra = Schema.Record( |
| 44668 | Schema.String, | 56341 | Schema.String, |
| 44669 | Schema.Json.annotate({ expected: "JSON value" }), | 56342 | Schema.Json.annotate({ expected: "JSON value" }), |
| 44670 | ).annotate({ description: "Extra app-server data for a thread." }); | 56343 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 44671 | | 56344 | |
| 44672 | export type V2ThreadStartResponse__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 44673 | export const V2ThreadStartResponse__ThreadHistoryMode = Schema.Literals(["legacy", "paginated"]); | | |
| 44674 | | | |
| 44675 | export type V2ThreadStatusChangedNotification = { | 56345 | export type V2ThreadStatusChangedNotification = { |
| 44676 | readonly status: V2ThreadStatusChangedNotification__ThreadStatus; | 56346 | readonly status: V2ThreadStatusChangedNotification__ThreadStatus; |
| 44677 | readonly threadId: string; | 56347 | readonly threadId: string; |
| ... | @@ -44692,6 +56362,74 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({ | ... | @@ -44692,6 +56362,74 @@ export const V2ThreadTokenUsageUpdatedNotification = Schema.Struct({ |
| 44692 | turnId: Schema.String, | 56362 | turnId: Schema.String, |
| 44693 | }).annotate({ title: "ThreadTokenUsageUpdatedNotification" }); | 56363 | }).annotate({ title: "ThreadTokenUsageUpdatedNotification" }); |
| 44694 | | 56364 | |
| | 56365 | export type V2ThreadTurnsListParams = { |
| | 56366 | readonly cursor?: string | null; |
| | 56367 | readonly itemsView?: V2ThreadTurnsListParams__TurnItemsView | null; |
| | 56368 | readonly limit?: number | null; |
| | 56369 | readonly sortDirection?: V2ThreadTurnsListParams__SortDirection | null; |
| | 56370 | readonly threadId: string; |
| | 56371 | }; |
| | 56372 | export const V2ThreadTurnsListParams = Schema.Struct({ |
| | 56373 | cursor: Schema.optionalKey( |
| | 56374 | Schema.Union([ |
| | 56375 | Schema.String.annotate({ |
| | 56376 | description: "Opaque cursor to pass to the next call to continue after the last turn.", |
| | 56377 | }), |
| | 56378 | Schema.Null, |
| | 56379 | ]), |
| | 56380 | ), |
| | 56381 | itemsView: Schema.optionalKey( |
| | 56382 | Schema.Union([V2ThreadTurnsListParams__TurnItemsView, Schema.Null]).annotate({ |
| | 56383 | description: "How much item detail to include for each returned turn; defaults to summary.", |
| | 56384 | }), |
| | 56385 | ), |
| | 56386 | limit: Schema.optionalKey( |
| | 56387 | Schema.Union([ |
| | 56388 | Schema.Number.annotate({ description: "Optional turn page size.", format: "uint32" }) |
| | 56389 | .check(Schema.isInt().annotate({ expected: "an integer" })) |
| | 56390 | .check( |
| | 56391 | Schema.isGreaterThanOrEqualTo(0).annotate({ |
| | 56392 | expected: "a value greater than or equal to 0", |
| | 56393 | }), |
| | 56394 | ), |
| | 56395 | Schema.Null, |
| | 56396 | ]), |
| | 56397 | ), |
| | 56398 | sortDirection: Schema.optionalKey( |
| | 56399 | Schema.Union([V2ThreadTurnsListParams__SortDirection, Schema.Null]).annotate({ |
| | 56400 | description: "Optional turn pagination direction; defaults to descending.", |
| | 56401 | }), |
| | 56402 | ), |
| | 56403 | threadId: Schema.String, |
| | 56404 | }).annotate({ title: "ThreadTurnsListParams" }); |
| | 56405 | |
| | 56406 | export type V2ThreadTurnsListResponse = { |
| | 56407 | readonly backwardsCursor?: string | null; |
| | 56408 | readonly data: ReadonlyArray<V2ThreadTurnsListResponse__Turn>; |
| | 56409 | readonly nextCursor?: string | null; |
| | 56410 | }; |
| | 56411 | export const V2ThreadTurnsListResponse = Schema.Struct({ |
| | 56412 | backwardsCursor: Schema.optionalKey( |
| | 56413 | Schema.Union([ |
| | 56414 | Schema.String.annotate({ |
| | 56415 | description: |
| | 56416 | "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.", |
| | 56417 | }), |
| | 56418 | Schema.Null, |
| | 56419 | ]), |
| | 56420 | ), |
| | 56421 | data: Schema.Array(V2ThreadTurnsListResponse__Turn), |
| | 56422 | nextCursor: Schema.optionalKey( |
| | 56423 | Schema.Union([ |
| | 56424 | Schema.String.annotate({ |
| | 56425 | description: |
| | 56426 | "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.", |
| | 56427 | }), |
| | 56428 | Schema.Null, |
| | 56429 | ]), |
| | 56430 | ), |
| | 56431 | }).annotate({ title: "ThreadTurnsListResponse" }); |
| | 56432 | |
| 44695 | export type V2ThreadUnarchivedNotification = { readonly threadId: string }; | 56433 | export type V2ThreadUnarchivedNotification = { readonly threadId: string }; |
| 44696 | export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ | 56434 | export const V2ThreadUnarchivedNotification = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 44697 | title: "ThreadUnarchivedNotification", | 56435 | title: "ThreadUnarchivedNotification", |
| ... | @@ -44707,18 +56445,25 @@ export const V2ThreadUnarchiveResponse = Schema.Struct({ | ... | @@ -44707,18 +56445,25 @@ export const V2ThreadUnarchiveResponse = Schema.Struct({ |
| 44707 | thread: V2ThreadUnarchiveResponse__Thread, | 56445 | thread: V2ThreadUnarchiveResponse__Thread, |
| 44708 | }).annotate({ title: "ThreadUnarchiveResponse" }); | 56446 | }).annotate({ title: "ThreadUnarchiveResponse" }); |
| 44709 | | 56447 | |
| | 56448 | export type V2ThreadUnarchiveResponse__ThreadEnvironment = { |
| | 56449 | readonly cwd: V2ThreadUnarchiveResponse__LegacyAppPathString; |
| | 56450 | readonly environmentId: string; |
| | 56451 | readonly runtimeWorkspaceRoots: ReadonlyArray<V2ThreadUnarchiveResponse__LegacyAppPathString>; |
| | 56452 | }; |
| | 56453 | export const V2ThreadUnarchiveResponse__ThreadEnvironment = Schema.Struct({ |
| | 56454 | cwd: V2ThreadUnarchiveResponse__LegacyAppPathString, |
| | 56455 | environmentId: Schema.String, |
| | 56456 | runtimeWorkspaceRoots: Schema.Array(V2ThreadUnarchiveResponse__LegacyAppPathString), |
| | 56457 | }).annotate({ |
| | 56458 | description: "An environment selected by a loaded thread, independent of connection status.", |
| | 56459 | }); |
| | 56460 | |
| 44710 | export type V2ThreadUnarchiveResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; | 56461 | export type V2ThreadUnarchiveResponse__ThreadExtra = { readonly [x: string]: Schema.Json }; |
| 44711 | export const V2ThreadUnarchiveResponse__ThreadExtra = Schema.Record( | 56462 | export const V2ThreadUnarchiveResponse__ThreadExtra = Schema.Record( |
| 44712 | Schema.String, | 56463 | Schema.String, |
| 44713 | Schema.Json.annotate({ expected: "JSON value" }), | 56464 | Schema.Json.annotate({ expected: "JSON value" }), |
| 44714 | ).annotate({ description: "Extra app-server data for a thread." }); | 56465 | ).annotate({ description: "Extra app-server data for a thread." }); |
| 44715 | | 56466 | |
| 44716 | export type V2ThreadUnarchiveResponse__ThreadHistoryMode = "legacy" | "paginated"; | | |
| 44717 | export const V2ThreadUnarchiveResponse__ThreadHistoryMode = Schema.Literals([ | | |
| 44718 | "legacy", | | |
| 44719 | "paginated", | | |
| 44720 | ]); | | |
| 44721 | | | |
| 44722 | export type V2ThreadUnsubscribeParams = { readonly threadId: string }; | 56467 | export type V2ThreadUnsubscribeParams = { readonly threadId: string }; |
| 44723 | export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({ | 56468 | export const V2ThreadUnsubscribeParams = Schema.Struct({ threadId: Schema.String }).annotate({ |
| 44724 | title: "ThreadUnsubscribeParams", | 56469 | title: "ThreadUnsubscribeParams", |
| ... | @@ -44805,6 +56550,7 @@ export type V2TurnStartParams = { | ... | @@ -44805,6 +56550,7 @@ export type V2TurnStartParams = { |
| 44805 | readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null; | 56550 | readonly approvalsReviewer?: V2TurnStartParams__ApprovalsReviewer | null; |
| 44806 | readonly clientUserMessageId?: string | null; | 56551 | readonly clientUserMessageId?: string | null; |
| 44807 | readonly cwd?: string | null; | 56552 | readonly cwd?: string | null; |
| | 56553 | readonly disabledPluginIds?: ReadonlyArray<string> | null; |
| 44808 | readonly effort?: V2TurnStartParams__ReasoningEffort | null; | 56554 | readonly effort?: V2TurnStartParams__ReasoningEffort | null; |
| 44809 | readonly input: ReadonlyArray<V2TurnStartParams__UserInput>; | 56555 | readonly input: ReadonlyArray<V2TurnStartParams__UserInput>; |
| 44810 | readonly model?: string | null; | 56556 | readonly model?: string | null; |
| ... | @@ -44812,8 +56558,11 @@ export type V2TurnStartParams = { | ... | @@ -44812,8 +56558,11 @@ export type V2TurnStartParams = { |
| 44812 | readonly personality?: V2TurnStartParams__Personality | null; | 56558 | readonly personality?: V2TurnStartParams__Personality | null; |
| 44813 | readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null; | 56559 | readonly sandboxPolicy?: V2TurnStartParams__SandboxPolicy | null; |
| 44814 | readonly serviceTier?: string | null; | 56560 | readonly serviceTier?: string | null; |
| | 56561 | readonly serviceTierForTurn?: string | null; |
| 44815 | readonly summary?: V2TurnStartParams__ReasoningSummary | null; | 56562 | readonly summary?: V2TurnStartParams__ReasoningSummary | null; |
| 44816 | readonly threadId: string; | 56563 | readonly threadId: string; |
| | 56564 | readonly toolOutput?: V2TurnStartParams__TurnToolOutput | null; |
| | 56565 | readonly turnTrigger?: string | null; |
| 44817 | }; | 56566 | }; |
| 44818 | export const V2TurnStartParams = Schema.Struct({ | 56567 | export const V2TurnStartParams = Schema.Struct({ |
| 44819 | approvalPolicy: Schema.optionalKey( | 56568 | approvalPolicy: Schema.optionalKey( |
| ... | @@ -44836,6 +56585,15 @@ export const V2TurnStartParams = Schema.Struct({ | ... | @@ -44836,6 +56585,15 @@ export const V2TurnStartParams = Schema.Struct({ |
| 44836 | Schema.Null, | 56585 | Schema.Null, |
| 44837 | ]), | 56586 | ]), |
| 44838 | ), | 56587 | ), |
| | 56588 | disabledPluginIds: Schema.optionalKey( |
| | 56589 | Schema.Union([ |
| | 56590 | Schema.Array(Schema.String).annotate({ |
| | 56591 | description: |
| | 56592 | "Replace this thread's disabled plugin IDs. Omitted/null preserves the list; [] clears it.", |
| | 56593 | }), |
| | 56594 | Schema.Null, |
| | 56595 | ]), |
| | 56596 | ), |
| 44839 | effort: Schema.optionalKey( | 56597 | effort: Schema.optionalKey( |
| 44840 | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]).annotate({ | 56598 | Schema.Union([V2TurnStartParams__ReasoningEffort, Schema.Null]).annotate({ |
| 44841 | description: "Override the reasoning effort for this turn and subsequent turns.", | 56599 | description: "Override the reasoning effort for this turn and subsequent turns.", |
| ... | @@ -44859,7 +56617,8 @@ export const V2TurnStartParams = Schema.Struct({ | ... | @@ -44859,7 +56617,8 @@ export const V2TurnStartParams = Schema.Struct({ |
| 44859 | ), | 56617 | ), |
| 44860 | personality: Schema.optionalKey( | 56618 | personality: Schema.optionalKey( |
| 44861 | Schema.Union([V2TurnStartParams__Personality, Schema.Null]).annotate({ | 56619 | Schema.Union([V2TurnStartParams__Personality, Schema.Null]).annotate({ |
| 44862 | description: "Override the personality for this turn and subsequent turns.", | 56620 | description: |
| | 56621 | "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions.", |
| 44863 | }), | 56622 | }), |
| 44864 | ), | 56623 | ), |
| 44865 | sandboxPolicy: Schema.optionalKey( | 56624 | sandboxPolicy: Schema.optionalKey( |
| ... | @@ -44875,12 +56634,31 @@ export const V2TurnStartParams = Schema.Struct({ | ... | @@ -44875,12 +56634,31 @@ export const V2TurnStartParams = Schema.Struct({ |
| 44875 | Schema.Null, | 56634 | Schema.Null, |
| 44876 | ]), | 56635 | ]), |
| 44877 | ), | 56636 | ), |
| | 56637 | serviceTierForTurn: Schema.optionalKey( |
| | 56638 | Schema.Union([ |
| | 56639 | Schema.String.annotate({ |
| | 56640 | description: |
| | 56641 | "Override the service tier only when this request starts a new turn. Use \"default\" for standard speed. Omitted or null inherits the thread's tier. Does not change the thread's tier or a turn being steered.", |
| | 56642 | }), |
| | 56643 | Schema.Null, |
| | 56644 | ]), |
| | 56645 | ), |
| 44878 | summary: Schema.optionalKey( | 56646 | summary: Schema.optionalKey( |
| 44879 | Schema.Union([V2TurnStartParams__ReasoningSummary, Schema.Null]).annotate({ | 56647 | Schema.Union([V2TurnStartParams__ReasoningSummary, Schema.Null]).annotate({ |
| 44880 | description: "Override the reasoning summary for this turn and subsequent turns.", | 56648 | description: "Override the reasoning summary for this turn and subsequent turns.", |
| 44881 | }), | 56649 | }), |
| 44882 | ), | 56650 | ), |
| 44883 | threadId: Schema.String, | 56651 | threadId: Schema.String, |
| | 56652 | toolOutput: Schema.optionalKey(Schema.Union([V2TurnStartParams__TurnToolOutput, Schema.Null])), |
| | 56653 | turnTrigger: Schema.optionalKey( |
| | 56654 | Schema.Union([ |
| | 56655 | Schema.String.annotate({ |
| | 56656 | description: |
| | 56657 | "Optional source classification for the caller that starts this turn. Ignored when this request steers an already-active turn.", |
| | 56658 | }), |
| | 56659 | Schema.Null, |
| | 56660 | ]), |
| | 56661 | ), |
| 44884 | }).annotate({ title: "TurnStartParams" }); | 56662 | }).annotate({ title: "TurnStartParams" }); |
| 44885 | | 56663 | |
| 44886 | export type V2TurnStartParams__AdditionalContextEntry = { | 56664 | export type V2TurnStartParams__AdditionalContextEntry = { |
| ... | @@ -44901,6 +56679,16 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({ | ... | @@ -44901,6 +56679,16 @@ export const V2TurnStartParams__CollaborationMode = Schema.Struct({ |
| 44901 | settings: V2TurnStartParams__Settings, | 56679 | settings: V2TurnStartParams__Settings, |
| 44902 | }).annotate({ description: "Collaboration mode for a Codex session." }); | 56680 | }).annotate({ description: "Collaboration mode for a Codex session." }); |
| 44903 | | 56681 | |
| | 56682 | export type V2TurnStartParams__CyberAccessProgram = "standard" | "daybreakBlue" | "daybreakRed"; |
| | 56683 | export const V2TurnStartParams__CyberAccessProgram = Schema.Literals([ |
| | 56684 | "standard", |
| | 56685 | "daybreakBlue", |
| | 56686 | "daybreakRed", |
| | 56687 | ]).annotate({ |
| | 56688 | description: |
| | 56689 | "Requested cyber treatment for a ChatGPT-authenticated Codex turn. Authorization and model-tier restrictions remain server-owned.", |
| | 56690 | }); |
| | 56691 | |
| 44904 | export type V2TurnStartParams__MultiAgentMode = | 56692 | export type V2TurnStartParams__MultiAgentMode = |
| 44905 | | "explicitRequestOnly" | 56693 | | "explicitRequestOnly" |
| 44906 | | "proactive" | 56694 | | "proactive" |