@qwen-code/web-shell 0.26.0 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +88 -34
  2. package/dist/{PierreFilePreview-BKwQRLBv.js → PierreFilePreview-BSn2Dh41.js} +1 -1
  3. package/dist/{SpreadsheetPreview-gWWUaRgJ.js → SpreadsheetPreview-Cs6SPlHq.js} +2 -2
  4. package/dist/{WorkspaceFileBrowser-BLwOb5Br.js → WorkspaceFileBrowser-Du2JJJeH.js} +2 -2
  5. package/dist/{agents-route-Pu5E-8GT.js → agents-route-Dk7VmGeH.js} +2 -2
  6. package/dist/daemon-react-sdk.js +1 -1
  7. package/dist/{index-BSBUK1JZ.js → index-C7o_tVb8.js} +60955 -56828
  8. package/dist/index.js +3 -3
  9. package/dist/sw.js +1 -1
  10. package/dist/transcript.js +6903 -6937
  11. package/dist/types/App.d.ts +7 -1
  12. package/dist/types/ManagedStandaloneApp.d.ts +9 -0
  13. package/dist/types/components/ChatEditor.d.ts +5 -2
  14. package/dist/types/components/ChatPane.d.ts +4 -1
  15. package/dist/types/components/ContextCompressionFeedback.d.ts +2 -2
  16. package/dist/types/components/ContextUsagePopover.d.ts +2 -2
  17. package/dist/types/components/SessionPrBadge.d.ts +5 -3
  18. package/dist/types/components/SplitView.d.ts +4 -1
  19. package/dist/types/components/UnavailableModelTooltip.d.ts +12 -0
  20. package/dist/types/components/artifacts/ArtifactPanel.d.ts +4 -1
  21. package/dist/types/components/artifacts/SideTaskPanel.d.ts +4 -1
  22. package/dist/types/components/dialogs/ScheduledTasksDialog.d.ts +5 -1
  23. package/dist/types/components/dialogs/scheduledTasksSchedule.d.ts +1 -0
  24. package/dist/types/components/managed/ManagedArchivedSessions.d.ts +17 -0
  25. package/dist/types/components/managed/ManagedChildSessionView.d.ts +8 -0
  26. package/dist/types/components/managed/ManagedMcpManagerPage.d.ts +8 -0
  27. package/dist/types/components/managed/ManagedRecoveryPanel.d.ts +9 -0
  28. package/dist/types/components/managed/ManagedSessionActions.d.ts +19 -0
  29. package/dist/types/components/managed/ManagedSessionNavigationRow.d.ts +9 -0
  30. package/dist/types/components/managed/ManagedSessionsPage.d.ts +4 -2
  31. package/dist/types/components/managed/ManagedTaskPanel.d.ts +3 -1
  32. package/dist/types/components/managed/ManagedWorkspaceNavigation.d.ts +3 -1
  33. package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +3 -1
  34. package/dist/types/components/managed/generated/managed-agent-api.d.ts +594 -34
  35. package/dist/types/components/managed/java-managed-agent-client.d.ts +67 -3
  36. package/dist/types/components/managed/java-managed-agent-event-projector.d.ts +1 -2
  37. package/dist/types/components/managed/java-managed-agent-provider.d.ts +2 -6
  38. package/dist/types/components/managed/managed-agent-provider.d.ts +75 -13
  39. package/dist/types/components/managed/managed-lifecycle-messages.d.ts +80 -0
  40. package/dist/types/components/managed/managed-lifecycle-messages.transcript-stub.d.ts +2 -0
  41. package/dist/types/components/managed/managed-mcp-command-storage.d.ts +16 -0
  42. package/dist/types/components/managed/managed-mcp-management-types.d.ts +8 -0
  43. package/dist/types/components/managed/managed-mcp-messages.d.ts +4 -0
  44. package/dist/types/components/managed/managed-mcp-messages.transcript-stub.d.ts +2 -0
  45. package/dist/types/components/managed/managed-recovery-handoff.d.ts +17 -0
  46. package/dist/types/components/managed/managed-recovery-messages.d.ts +31 -0
  47. package/dist/types/components/managed/managed-session-export.d.ts +21 -0
  48. package/dist/types/components/managed/use-managed-actions.d.ts +2 -1
  49. package/dist/types/components/managed/use-managed-context-compression.d.ts +23 -0
  50. package/dist/types/components/managed/use-managed-mcp-management.d.ts +25 -0
  51. package/dist/types/components/managed/use-managed-mcp.d.ts +1 -1
  52. package/dist/types/components/managed/use-managed-recovery.d.ts +14 -0
  53. package/dist/types/components/managed/use-managed-session-lifecycle.d.ts +26 -0
  54. package/dist/types/components/managed/use-managed-tasks.d.ts +3 -0
  55. package/dist/types/components/managed/use-managed-turn-cancel.d.ts +9 -0
  56. package/dist/types/components/mcp/McpDetails.d.ts +30 -0
  57. package/dist/types/components/messages/SettingsMessage.d.ts +7 -1
  58. package/dist/types/components/plugins/PluginManagerPage.d.ts +3 -1
  59. package/dist/types/components/sidebar/RecentSessions.d.ts +23 -0
  60. package/dist/types/components/sidebar/SessionDetailsTooltip.d.ts +2 -1
  61. package/dist/types/components/sidebar/StandaloneRecents.d.ts +1 -1
  62. package/dist/types/components/sidebar/WebShellSidebar.d.ts +10 -3
  63. package/dist/types/components/sidebar/WorkspaceMenu.d.ts +3 -0
  64. package/dist/types/components/sidebar/workspaceOrder.d.ts +12 -0
  65. package/dist/types/customization.d.ts +1 -0
  66. package/dist/types/daemon/index.d.ts +1 -1
  67. package/dist/types/daemon/workspace/index.d.ts +1 -1
  68. package/dist/types/daemon/workspace/types.d.ts +25 -0
  69. package/dist/types/daemon-react-sdk.d.ts +2 -0
  70. package/dist/types/hooks/composer-draft-attachments.d.ts +21 -0
  71. package/dist/types/hooks/composer-draft-session.d.ts +39 -0
  72. package/dist/types/hooks/useComposerCore.d.ts +1 -0
  73. package/dist/types/hooks/useContextUsageControls.d.ts +8 -3
  74. package/dist/types/index.d.ts +2 -1
  75. package/dist/types/main.d.ts +3 -1
  76. package/dist/types/settings.d.ts +4 -0
  77. package/dist/types/unavailableModels.d.ts +24 -0
  78. package/dist/types/utils/composerModels.d.ts +18 -0
  79. package/dist/types/utils/indexeddb.d.ts +17 -0
  80. package/dist/{useDaemonMidTurnInjected-BoG_wM2a.js → useDaemonMidTurnInjected-DGp6d4J1.js} +1455 -1224
  81. package/package.json +1 -1
@@ -91,7 +91,7 @@ export interface paths {
91
91
  };
92
92
  get?: never;
93
93
  put?: never;
94
- /** @description Maps workspaceId/cwdRelative to public Workspace selection without using environmentId or absolute cwd. Shares G0's opt-in initial file-tool Turn admission with public Session creation: the server-selected profile for the built-in qwen-code agent, and the profile selected by a stored definition's single allowlisted hosted_profile tools entry for a definition-pinned Session. Newly bound qwen-code Sessions, including empty creation, persist hosted-workspace-shell/1 with mandatory default/auto-edit approval when the Shell deployment opt-in is enabled; otherwise they persist hosted-workspace-files/1 with the configured file approval mode. The switch does not override a stored AgentDefinition's compiled profile or approval mode. Public callers cannot select the built-in profile. Any caller holding the OPERATOR role may submit later Turns and rename the Session under the same opt-in, while the Workspace registry row stays ACTIVE and still backs the binding, the actor recorded by the Workspace create command keeps OPERATOR or above, and the Session is active and undeleted and is either a qwen-code Session on the frozen execution profile or pinned to a stored definition; Workspace close follows its separate close capability and lifecycle admission; the same caller may cancel a running Turn (its delivery re-checks no grant it needs survives the cancellation), and the Session's own liveness keeps OPERATOR access even when its Workspace's background-exit observation closes some other bound Session; cancel is always allowed for its own running Turn even outside the Workspace files opt-in. A definition-pinned Session keeps its pinned revision's tool profile, model and instructions for its whole life, and a replay of the create command reuses the original pin; a WebShell Session inherits its Workspace's default Workspace selection when the request omits one. Shell Sessions additionally require the Shell opt-in and valid persisted approval for fresh Turns; disabling only Shell admission preserves original-key replay and accepted approvals and cancellation while Workspace files remain enabled and persisted approval remains valid. The public Shell tool list does not include the child agent tool. Invalid approval or files-off can refuse attachment. Public Shell close, archive, unarchive and delete stay unavailable, including protocol-0. Fresh Shell sending also requires foregroundShell=true; workspaceTurns alone is not sufficient Shell Turn admission. Manual rename uses the independent rename capability. */
94
+ /** @description Maps workspaceId/cwdRelative to public Workspace selection without using environmentId or absolute cwd. Shares G0's opt-in initial file-tool Turn admission with public Session creation: the server-selected profile for the built-in qwen-code agent, and the profile selected by a stored definition's single allowlisted hosted_profile tools entry for a definition-pinned Session. Newly bound qwen-code Sessions, including empty creation, persist hosted-workspace-shell/1 with mandatory default/auto-edit approval when the Shell deployment opt-in is enabled; otherwise they persist hosted-workspace-files/1 with the configured file approval mode. The switch does not override a stored AgentDefinition's compiled profile or approval mode. Public callers cannot select the built-in profile. Any caller holding the OPERATOR role may submit later Turns and rename the Session under the same opt-in, while the Workspace registry row stays ACTIVE and still backs the binding, the actor recorded by the Workspace create command keeps OPERATOR or above, and the Session is active and undeleted and is either a qwen-code Session on the frozen execution profile or pinned to a stored definition; Workspace close follows its separate close capability and lifecycle admission; the same caller may cancel a running Turn (its delivery re-checks no grant it needs survives the cancellation), and the Session's own liveness keeps OPERATOR access even when its Workspace's background-exit observation closes some other bound Session; cancel is always allowed for its own running Turn even outside the Workspace files opt-in. A definition-pinned Session keeps its pinned revision's tool profile, model and instructions for its whole life, and a replay of the create command reuses the original pin; a WebShell Session inherits its Workspace's default Workspace selection when the request omits one. Shell Sessions additionally require the Shell opt-in and valid persisted approval for fresh Turns; disabling only Shell admission preserves original-key replay and accepted approvals and cancellation while Workspace files remain enabled and persisted approval remains valid. Qualified new public Shell Sessions expose agent by default under the public-child deployment switch and runtime/Harness admission; existing Sessions retain their original tool scope. Invalid approval or files-off can refuse attachment. Public Shell close and active delete require lifecycle v2 and reliable original-Worker stop support; archive and unarchive require completed close proof. Fresh Shell sending also requires foregroundShell=true; workspaceTurns alone is not sufficient Shell Turn admission. Manual rename uses the independent rename capability. */
95
95
  post: operations["webShellCreateSession"];
96
96
  delete?: never;
97
97
  options?: never;
@@ -108,6 +108,7 @@ export interface paths {
108
108
  };
109
109
  get?: never;
110
110
  put?: never;
111
+ /** @description Admits the command durably and returns its operation identity, admission stage and delivery state. Replaying the same idempotency key returns the original command operation. Existing Session and actor authorization checks apply. */
111
112
  post: operations["webShellSubmitTurn"];
112
113
  delete?: never;
113
114
  options?: never;
@@ -124,6 +125,7 @@ export interface paths {
124
125
  };
125
126
  get?: never;
126
127
  put?: never;
128
+ /** @description Admits the command durably and returns its operation identity, admission stage and delivery state. Replaying the same idempotency key returns the original command operation. Existing Session and actor authorization checks apply. */
127
129
  post: operations["webShellCancelTurn"];
128
130
  delete?: never;
129
131
  options?: never;
@@ -523,7 +525,7 @@ export interface paths {
523
525
  };
524
526
  get?: never;
525
527
  put?: never;
526
- /** @description Change the execution approval policy of an eligible Workspace Session: built-in qwen-code or a stored AgentDefinition on exactly hosted-workspace-files/1 or hosted-workspace-shell/1,/2. With liveSupported, execution policy changes affect subsequent current-Turn permission checks and permit eligible pending ordinary tool approvals. Otherwise the Session must be idle. Plan changes remain idle-only. Requires its recorded owner, current OPERATOR or OWNER access and Session-specific Harness feature support. Changes are revision-checked and actor/session-scoped idempotent. Definition creation policy and pins remain immutable. */
528
+ /** @description Change the execution approval policy of an eligible Workspace Session: built-in qwen-code or a stored AgentDefinition on exactly hosted-workspace-files/1, hosted-workspace-files/3 or hosted-workspace-shell/1. With liveSupported, execution policy changes affect subsequent current-Turn permission checks and permit eligible pending ordinary tool approvals. Otherwise the Session must be idle. Plan changes remain idle-only. Requires its recorded owner, current OPERATOR or OWNER access and Session-specific Harness feature support. Changes are revision-checked and actor/session-scoped idempotent. Definition creation policy and pins remain immutable. */
527
529
  post: operations["changeWebShellSessionApproval"];
528
530
  delete?: never;
529
531
  options?: never;
@@ -706,6 +708,128 @@ export interface paths {
706
708
  patch?: never;
707
709
  trace?: never;
708
710
  };
711
+ "/api/agent/web-shell/v1/sessions/compress": {
712
+ parameters: {
713
+ query?: never;
714
+ header?: never;
715
+ path?: never;
716
+ cookie?: never;
717
+ };
718
+ get?: never;
719
+ put?: never;
720
+ /** @description Admits idle-only context compression without creating a Turn. A trusted Workspace OPERATOR or OWNER is required. Read authorization precedes actor-scoped idempotency replay; replay precedes mutable role, capability, revision and busy checks. Expected compaction revision begins at zero. Returns 409 session_context_busy for active or queued Turns, approvals, unsettled Hooks, recovery or conflicting context operations; 409 compaction_revision_conflict for a stale revision; 409 idempotency_conflict for key reuse with different content. A 202 is durable admission; query the original operation for completion. Unknown acceptance is reconciled from native evidence without blind redelivery. A compressed outcome invalidates the prior context usage until a new main-model observation; noop and failure preserve history and revision. */
721
+ post: operations["webShellCompressContext"];
722
+ delete?: never;
723
+ options?: never;
724
+ head?: never;
725
+ patch?: never;
726
+ trace?: never;
727
+ };
728
+ "/api/agent/web-shell/v1/session-mcp/management/query": {
729
+ parameters: {
730
+ query?: never;
731
+ header?: never;
732
+ path?: never;
733
+ cookie?: never;
734
+ };
735
+ get?: never;
736
+ put?: never;
737
+ /** @description Requires a trusted Workspace operator and the Session creator execution grants. Manage only the selected active public Session; commands retain immutable definition pins, serialize while idle, and select only deployed Runtime definitions. Status reads persisted receipts without restarting or replaying the original effect. Management reattachment never drives recovery, cleanup, or wake dispatch. After a Harness restart, continue or recover the Session through its normal execution flow first; otherwise management returns 409 hosted_mcp_session_load_required. A fresh empty Session can initialize without a Turn; command status never creates one. Unsupported management queries return supported=false. Responses never include private executable recipes or credentials. */
738
+ post: operations["queryWebShellSessionMcpManagement"];
739
+ delete?: never;
740
+ options?: never;
741
+ head?: never;
742
+ patch?: never;
743
+ trace?: never;
744
+ };
745
+ "/api/agent/web-shell/v1/session-mcp/management/submit": {
746
+ parameters: {
747
+ query?: never;
748
+ header?: never;
749
+ path?: never;
750
+ cookie?: never;
751
+ };
752
+ get?: never;
753
+ put?: never;
754
+ /** @description Requires a trusted Workspace operator and the Session creator execution grants. Manage only the selected active public Session; commands retain immutable definition pins, serialize while idle, and select only deployed Runtime definitions. Status reads persisted receipts without restarting or replaying the original effect. Management reattachment never drives recovery, cleanup, or wake dispatch. After a Harness restart, continue or recover the Session through its normal execution flow first; otherwise management returns 409 hosted_mcp_session_load_required. A fresh empty Session can initialize without a Turn; command status never creates one. Unsupported management queries return supported=false. Responses never include private executable recipes or credentials. */
755
+ post: operations["submitWebShellSessionMcpManagement"];
756
+ delete?: never;
757
+ options?: never;
758
+ head?: never;
759
+ patch?: never;
760
+ trace?: never;
761
+ };
762
+ "/api/agent/web-shell/v1/session-mcp/management/operations/query": {
763
+ parameters: {
764
+ query?: never;
765
+ header?: never;
766
+ path?: never;
767
+ cookie?: never;
768
+ };
769
+ get?: never;
770
+ put?: never;
771
+ /** @description Requires a trusted Workspace operator and the Session creator execution grants. Manage only the selected active public Session; commands retain immutable definition pins, serialize while idle, and select only deployed Runtime definitions. Status reads persisted receipts without restarting or replaying the original effect. Management reattachment never drives recovery, cleanup, or wake dispatch. After a Harness restart, continue or recover the Session through its normal execution flow first; otherwise management returns 409 hosted_mcp_session_load_required. A fresh empty Session can initialize without a Turn; command status never creates one. Unsupported management queries return supported=false. Responses never include private executable recipes or credentials. */
772
+ post: operations["queryWebShellSessionMcpManagementOperation"];
773
+ delete?: never;
774
+ options?: never;
775
+ head?: never;
776
+ patch?: never;
777
+ trace?: never;
778
+ };
779
+ "/api/agent/web-shell/v1/session-recovery/query": {
780
+ parameters: {
781
+ query?: never;
782
+ header?: never;
783
+ path?: never;
784
+ cookie?: never;
785
+ };
786
+ get?: never;
787
+ put?: never;
788
+ /** @description Read authorized durable recovery facts and only already attached Harness evidence without loading a Session, acquiring a Runtime, invoking tools or models, stopping work or clearing a block. Missing or unreadable native readiness evidence never proves ready. This is Session-scoped; ordinary Workspace admission and concurrent unrelated Sessions remain independent. */
789
+ post: operations["queryWebShellSessionRecovery"];
790
+ delete?: never;
791
+ options?: never;
792
+ head?: never;
793
+ patch?: never;
794
+ trace?: never;
795
+ };
796
+ "/api/agent/web-shell/v1/session-recovery/recheck": {
797
+ parameters: {
798
+ query?: never;
799
+ header?: never;
800
+ path?: never;
801
+ cookie?: never;
802
+ };
803
+ get?: never;
804
+ put?: never;
805
+ /** @description Recheck only the latest original Turn under the existing cancellation/cleanup authorization. Repeated requests coalesce and may only advance existing cancellation/reconciliation or retry settled cleanup; they never resubmit input, replay effects, reset retry budgets or change claim generations. A stale Turn returns recovery_target_changed and ineligible work returns recovery_recheck_unavailable. 202 means requested, not cancelled or ready. For a terminal Java Turn whose Harness attachment is cold or whose status cannot be read, this POST may attempt a narrow cleanup-only load. It must verify the original prompt has a durable native terminal, covered continuation checkpoint or lawful initial state, and no pending input before retrying only its existing cleanup. It never resumes models, tools, MCP or Hooks, clears a permanent journal block, or treats a historical SQL failure as native settlement. */
806
+ post: operations["recheckWebShellSessionRecovery"];
807
+ delete?: never;
808
+ options?: never;
809
+ head?: never;
810
+ patch?: never;
811
+ trace?: never;
812
+ };
813
+ "/api/agent/web-shell/v1/sessions/export/query": {
814
+ parameters: {
815
+ query?: never;
816
+ header?: never;
817
+ path?: never;
818
+ cookie?: never;
819
+ };
820
+ get?: never;
821
+ put?: never;
822
+ /**
823
+ * Read one immutable public Session snapshot page for reading exports
824
+ * @description Requires current Session read authorization on every page. Reuses the public item snapshot cursor, whose subsequent pages retain the original snapshot version and watermark. No private journal, Runtime or storage credentials are returned. The client waits for a snapshot covering its captured Session watermark before using its first page.
825
+ */
826
+ post: operations["webShellExportSession"];
827
+ delete?: never;
828
+ options?: never;
829
+ head?: never;
830
+ patch?: never;
831
+ trace?: never;
832
+ };
709
833
  }
710
834
  export type webhooks = Record<string, never>;
711
835
  export interface components {
@@ -784,6 +908,14 @@ export interface components {
784
908
  cursor?: string | null;
785
909
  /** @default 20 */
786
910
  limit?: number | null;
911
+ /**
912
+ * @description Filter before pagination. Omission preserves all readable, undeleted Sessions. Cursors are bound to the normalized archive state and title query.
913
+ * @default all
914
+ * @enum {string}
915
+ */
916
+ archiveState?: "unarchived" | "archived" | "all";
917
+ /** @description Case-insensitive literal title substring, with surrounding whitespace stripped. Empty means no title filter; %, _ and backslash are literal. Applied before pagination. Cursors are bound to the stripped query and archiveState; listing is not a snapshot across title or archive changes. */
918
+ titleQuery?: string | null;
787
919
  };
788
920
  WebShellSessionRequest: {
789
921
  /** Format: uuid */
@@ -810,8 +942,8 @@ export interface components {
810
942
  requestId?: string | null;
811
943
  idempotencyKey: string;
812
944
  agentId: string;
813
- /** @description Planned; phase one rejects non-blank values. */
814
- environmentId?: string | null;
945
+ /** @description Optional host-catalog model for a bound built-in qwen-code Session. Requires modelSelectionSupported. Persisted atomically before the first Turn and included in creation idempotency; omission preserves the default model and old digest. */
946
+ modelId?: string;
815
947
  /** @description The server enforces the bound in UTF-16 code units (Java String.length()), so an astral character counts as two: a title this schema's code-point maxLength accepts can still exceed the server's 256-unit bound and answer 400 invalid_title. */
816
948
  title?: string | null;
817
949
  /** @description Text has a 4,000,000-character aggregate budget and per-block 1,000,000-character cap, counted in code points. Hosted also enforces its 64 KiB durable-record limit for text-only inputs and a 32 MiB prepared-snapshot ceiling. A complete canonical input containing file/image attachments must fit within 8 MiB and requires input-attachments/1. */
@@ -837,12 +969,6 @@ export interface components {
837
969
  /** @description Text has a 4,000,000-character aggregate budget and per-block 1,000,000-character cap, counted in code points. Hosted also enforces its 64 KiB durable-record limit for text-only inputs and a 32 MiB prepared-snapshot ceiling. A complete canonical input containing file/image attachments must fit within 8 MiB and requires input-attachments/1. */
838
970
  input?: components["schemas"]["InputBlock"][];
839
971
  metadata?: components["schemas"]["WebShellMetadata"];
840
- /**
841
- * @description D7-3. java_durable asks for the java_durable admission view: the 202 then names the command's operation (operationId, admissionStage, deliveryState), so a lost response resolves through that operation. Only a deployment whose Sessions advertise durableOperations admits it; elsewhere it answers 400 unsupported_feature before anything is read or written. Absent or harness_confirmed keeps today's response. harness_confirmed is the pinned reference design's qwen_confirmed. The request digest leaves this field out, so a retry under the same idempotencyKey replays the same command in either view.
842
- * @default harness_confirmed
843
- * @enum {string}
844
- */
845
- admissionProfile?: "harness_confirmed" | "java_durable";
846
972
  };
847
973
  WebShellCancelRequest: {
848
974
  /** @description Trace correlation only. */
@@ -851,34 +977,36 @@ export interface components {
851
977
  /** Format: uuid */
852
978
  sessionId: string;
853
979
  turnId: string;
854
- /**
855
- * @description D7-3. java_durable asks for the java_durable admission view: the 202 then names the command's operation (operationId, admissionStage, deliveryState), so a lost response resolves through that operation. Only a deployment whose Sessions advertise durableOperations admits it; elsewhere it answers 400 unsupported_feature before anything is read or written. Absent or harness_confirmed keeps today's response. harness_confirmed is the pinned reference design's qwen_confirmed. The request digest leaves this field out, so a retry under the same idempotencyKey replays the same command in either view.
856
- * @default harness_confirmed
857
- * @enum {string}
858
- */
859
- admissionProfile?: "harness_confirmed" | "java_durable";
860
980
  };
861
981
  /** @description Arbitrary caller metadata, as a JSON object (or null). Accepted and ignored in Phase 1: nothing from it is persisted. On WebShellCreateRequest the Session title travels in that request's own `title` field; WebShellSubmitRequest has no title surface. Any keys are valid. */
862
982
  WebShellMetadata: {
863
983
  [key: string]: unknown;
864
984
  } | null;
865
- /** @description accepted means Java durable delivery responsibility, not model execution. The three operation fields come together, and only on a Turn input or cancel admission that asked for admissionProfile java_durable on a deployment advertising durableOperations (D7-3): operationId names the command's original submit_input or cancel operation, readable through the operation query, and admissionStage and deliveryState are that operation's latest durable values. A fresh input reads java_durable and pending; a cancel of a Turn that already ended reads its settled values. A retry under the same key answers the same operation with replayed true. Missing fields keep the legacy harness_confirmed response semantics, also for Session creation and for a replayed command recorded before v1.58. */
985
+ /** @description Command admission. Session creation and internal commands may omit operation fields. */
866
986
  WebShellAdmission: {
867
987
  /** Format: uuid */
868
988
  sessionId: string;
869
989
  turnId?: string | null;
870
990
  status: string;
871
991
  replayed: boolean;
992
+ /** @description Durable operation identifier for turn submission or cancellation. */
872
993
  operationId?: string;
873
- /** @enum {string} */
994
+ /**
995
+ * @description Persisted admission stage of the operation.
996
+ * @enum {string}
997
+ */
874
998
  admissionStage?: "java_durable" | "harness_confirmed";
875
- /** @enum {string} */
999
+ /**
1000
+ * @description Current delivery state of the operation.
1001
+ * @enum {string}
1002
+ */
876
1003
  deliveryState?: "pending" | "leased" | "confirmed" | "blocked";
877
1004
  };
878
1005
  WebShellTurn: {
879
1006
  turnId: string;
880
1007
  /** Format: uuid */
881
1008
  sessionId: string;
1009
+ /** @description recovery_blocked with hosted_harness_recovery_blocked means the Harness stopped without a safely settled Turn. The input remains active internally. Execution redispatch is parked, while bounded read-only observation of the original Harness journal may settle a later terminal result. Policy changes and lifecycle close wait for settlement; explicit cancellation remains available. */
882
1010
  status: string;
883
1011
  /** Format: int64 */
884
1012
  submittedAt: number;
@@ -922,6 +1050,17 @@ export interface components {
922
1050
  planMode?: boolean;
923
1051
  /** @description Optional deployment capability; missing means false. */
924
1052
  planModeSupported?: boolean;
1053
+ /**
1054
+ * Format: int64
1055
+ * @description Sequence of the most recent native context.compacted event; independent of Workspace context revision. Omitted when retained pre-upgrade evidence cannot establish the revision, and context compression is unavailable.
1056
+ * @default 0
1057
+ */
1058
+ compactionRevision?: number | null;
1059
+ /** @description Current durable context compression operation, including recovery_blocked; absent when none is active. */
1060
+ contextCompressionOperationId?: string | null;
1061
+ /** @description Current unsettled lifecycle operation, queried in batch under Session read authorization. A failed close/delete may leave the Session closing/deleting; only explicit retry starts a new operation. Settled Sessions omit this projection. */
1062
+ lifecycleOperation?: components["schemas"]["WebShellLifecycleOperation"];
1063
+ recovery?: components["schemas"]["SessionRecovery"];
925
1064
  };
926
1065
  WebShellSessionCapabilities: {
927
1066
  /**
@@ -929,11 +1068,6 @@ export interface components {
929
1068
  * @default false
930
1069
  */
931
1070
  cwdChange?: boolean;
932
- /**
933
- * @description D7-3. Present only on a deployment that enables the java_durable admission profile, where it is true while the Session is readable: a Turn input or cancel may then ask for admissionProfile java_durable. Omitted elsewhere, where asking for it answers 400 unsupported_feature.
934
- * @default false
935
- */
936
- durableOperations?: boolean;
937
1071
  /** @default false */
938
1072
  actions: boolean;
939
1073
  /**
@@ -944,22 +1078,22 @@ export interface components {
944
1078
  tasks: boolean;
945
1079
  artifacts: boolean;
946
1080
  /**
947
- * @description Deployment support for close independently of archive/delete. Admission also requires Session ownership and current read access for a bound Session.
1081
+ * @description Close support including current actor authority. Workspace-bound Sessions require the recorded Session owner and current read access. Source-state and idle admission remain authoritative on the server.
948
1082
  * @default false
949
1083
  */
950
1084
  sessionClose?: boolean;
951
1085
  /**
952
- * @description Optional support for this retention operation. For a Workspace-bound Session requires completed reliable-close evidence; authorization and source-state validation still apply.
1086
+ * @description Archive support including current actor authority. Workspace-bound Sessions require completed reliable-close evidence, the recorded Session owner and current read access. Source-state and idle admission remain authoritative on the server.
953
1087
  * @default false
954
1088
  */
955
1089
  sessionArchive?: boolean;
956
1090
  /**
957
- * @description Optional support for this retention operation. For a Workspace-bound Session requires completed reliable-close evidence; authorization and source-state validation still apply.
1091
+ * @description Unarchive support including current actor authority. Workspace-bound Sessions require completed reliable-close evidence, the recorded Session owner and current read access. Source-state and idle admission remain authoritative on the server.
958
1092
  * @default false
959
1093
  */
960
1094
  sessionUnarchive?: boolean;
961
1095
  /**
962
- * @description Optional support capability. ACTIVE Workspace files Sessions require L3 lifecycle protocol and reliable original Runtime stop; CLOSED/ARCHIVED Sessions use independent L2 close evidence. Current creator/read authorization and idle/source-state admission checks still apply. The aggregate session lifecycle capability is unchanged.
1096
+ * @description Delete support including current actor authority. ACTIVE Workspace Sessions require a supported reliable-close protocol; CLOSED/ARCHIVED Sessions use completed close evidence. Workspace-bound Sessions require the recorded Session owner and current read access. Source-state and idle admission remain authoritative on the server. The aggregate session lifecycle capability is unchanged.
963
1097
  * @default false
964
1098
  */
965
1099
  sessionDelete?: boolean;
@@ -967,7 +1101,7 @@ export interface components {
967
1101
  foregroundShell?: boolean;
968
1102
  /** @description The caller may request an idle Session model change using the server model catalog. Missing means unsupported; authorization and revision admission still apply. */
969
1103
  modelChange?: boolean;
970
- /** @description The caller owns this eligible Workspace Session with current OPERATOR or OWNER access. Built-in qwen-code requires approval-selection/1; stored AgentDefinitions on exactly hosted-workspace-files/1 or hosted-workspace-shell/1,/2 also require agent-definition-approval-selection/1. Idle-state admission is checked separately. Missing means false. */
1104
+ /** @description The caller owns this eligible Workspace Session with current OPERATOR or OWNER access. Built-in qwen-code requires approval-selection/1; stored AgentDefinitions on exactly hosted-workspace-files/1, hosted-workspace-files/3 or hosted-workspace-shell/1 also require agent-definition-approval-selection/1. Idle-state admission is checked separately. Missing means false. */
971
1105
  approvalModeChange?: boolean;
972
1106
  /** @description Optional deployment capability; missing means false. */
973
1107
  inputAttachments?: boolean;
@@ -976,6 +1110,16 @@ export interface components {
976
1110
  * @default false
977
1111
  */
978
1112
  rename?: boolean;
1113
+ /**
1114
+ * @description Requires a compatible Hosted Harness and an active Workspace Session. WebShell also reflects the current caller OPERATOR or OWNER grant; admission separately checks idle state.
1115
+ * @default false
1116
+ */
1117
+ contextCompression?: boolean;
1118
+ /**
1119
+ * @description Public child orchestration support for this persisted Session; launch and caller authorization are checked separately.
1120
+ * @default false
1121
+ */
1122
+ childAgents?: boolean;
979
1123
  };
980
1124
  WebShellSessionPage: {
981
1125
  data: components["schemas"]["WebShellSession"][];
@@ -1115,7 +1259,7 @@ export interface components {
1115
1259
  * @default false
1116
1260
  */
1117
1261
  workspaceContext: boolean;
1118
- /** @description Supports authorized Workspace discovery, Session creation, and saved binding read-back. This capability does not advertise execution readiness. Deployments may separately opt in to an initial Workspace Turn at creation: Read/Write/Edit under hosted-workspace-files/1, or file tools plus mandatory-approval foreground Shell under hosted-workspace-shell/1 when the Shell opt-in is enabled. The public Shell tool list does not include the child agent tool. Callers holding the OPERATOR role may submit later Turns or rename under the same opt-in while the registry row stays ACTIVE and still backs the Session's binding and the actor recorded by the Workspace create command keeps OPERATOR or above, and may cancel a running Turn (its delivery re-checks no grants). Shell fresh sending also requires foregroundShell=true. Public Shell close, archive, unarchive and delete stay unavailable, including protocol-0, while close of other profiles follows its separate capability and lifecycle admission; archive, delete and unarchive follow their separate retention capabilities after reliable Workspace close. */
1262
+ /** @description Supports authorized Workspace discovery, Session creation, and saved binding read-back. This capability does not advertise execution readiness. Deployments may separately opt in to an initial Workspace Turn at creation: Read/Write/Edit under hosted-workspace-files/1, or file tools plus mandatory-approval foreground Shell under hosted-workspace-shell/1 when the Shell opt-in is enabled. Qualified new public Shell Sessions expose agent by default under the public-child deployment switch and runtime/Harness admission; existing Sessions retain their original tool scope. Callers holding the OPERATOR role may submit later Turns or rename under the same opt-in while the registry row stays ACTIVE and still backs the Session's binding and the actor recorded by the Workspace create command keeps OPERATOR or above, and may cancel a running Turn (its delivery re-checks no grants). Shell fresh sending also requires foregroundShell=true. Public Shell close and active delete require lifecycle v2 and reliable original-Worker stop support; archive and unarchive require completed close proof, while close of other profiles follows its separate capability and lifecycle admission; archive, delete and unarchive follow their separate retention capabilities after reliable Workspace close. */
1119
1263
  workspaceBinding: boolean;
1120
1264
  /** @description Supports creating empty Workspaces under the operator-controlled root. Missing or false means unsupported; current actor and server admission checks still apply. */
1121
1265
  workspaceCreation?: boolean;
@@ -1285,13 +1429,18 @@ export interface components {
1285
1429
  policyRevision: string;
1286
1430
  answers: components["schemas"]["WebShellQuestionAnswer"][];
1287
1431
  };
1288
- WebShellOperation: components["schemas"]["WebShellCwdOperation"] | components["schemas"]["WebShellCommandOperation"];
1432
+ WebShellOperation: components["schemas"]["WebShellCwdOperation"] | components["schemas"]["WebShellCommandOperation"] | components["schemas"]["WebShellContextCompressionOperation"];
1289
1433
  WebShellActionQueryRequest: {
1290
1434
  /** Format: uuid */
1291
1435
  sessionId: string;
1292
1436
  cursor?: string;
1293
1437
  /** @default 20 */
1294
1438
  limit?: number;
1439
+ /**
1440
+ * @description Include pending permission Actions of this public root Session and its direct children; each Action retains its actual owning sessionId.
1441
+ * @default false
1442
+ */
1443
+ includeChildren?: boolean;
1295
1444
  };
1296
1445
  WebShellActionGetRequest: {
1297
1446
  /** Format: uuid */
@@ -1310,6 +1459,8 @@ export interface components {
1310
1459
  /** Format: uuid */
1311
1460
  sessionId: string;
1312
1461
  idempotencyKey: string;
1462
+ /** @description Trace-only client request identity, excluded from idempotency digests. */
1463
+ requestId?: string | null;
1313
1464
  };
1314
1465
  WebShellWorkspaceQueryRequest: {
1315
1466
  cursor?: string | null;
@@ -1374,11 +1525,20 @@ export interface components {
1374
1525
  /** @description The newest Artifacts that hold durable task output, at most 100, oldest first. Entries must not rotate out until older Artifacts can be enumerated and attributed to the task: an evicted Artifact stays readable by id through the Session artifact routes but is no longer discoverable from the task. */
1375
1526
  artifactRefs: string[];
1376
1527
  actionCapabilities: components["schemas"]["TaskActionCapability"][];
1528
+ /** @description A durable stop request has been recorded. This does not prove that the task has terminated. */
1529
+ stopRequested?: boolean;
1530
+ /**
1531
+ * @description The actual immutable approval mode of this public child Session.
1532
+ * @enum {string}
1533
+ */
1534
+ approvalMode?: "default" | "auto-edit" | "yolo";
1377
1535
  } & (unknown & unknown & unknown & unknown & unknown);
1378
1536
  WebShellTaskPage: {
1379
1537
  data: components["schemas"]["WebShellTask"][];
1380
1538
  hasMore: boolean;
1381
1539
  nextCursor?: string | null;
1540
+ /** @description The total number of nonterminal child Agent tasks in this Session, independent of pagination. */
1541
+ activeChildCount?: number;
1382
1542
  } & unknown;
1383
1543
  /** @description One task event: a logical state change, a bounded output chunk, or an Artifact reference. High-volume output goes to Artifacts or bounded chunks in this paged stream, never one Session event per raw line. The closed schema validates the server's own version; clients ignore unknown optional fields and unknown types and checkpoint their cursors. Strict response validation against an older minor version is not supported. Event identity, position, payload and accepted schema/projection versions are immutable across restart, projection rebuild and archival. */
1384
1544
  WebShellTaskEvent: {
@@ -1533,6 +1693,8 @@ export interface components {
1533
1693
  planModeSupported?: boolean;
1534
1694
  /** @description Optional deployment capability; missing means false. */
1535
1695
  inputAttachments?: boolean;
1696
+ /** @description Optional capability for modelId on Workspace creation. Missing means false. */
1697
+ modelSelectionSupported?: boolean;
1536
1698
  /** @description Optional deployment capability; missing means false. Requires a compatible Harness and durable Session Store. */
1537
1699
  skillsSupported?: boolean;
1538
1700
  };
@@ -1777,7 +1939,7 @@ export interface components {
1777
1939
  };
1778
1940
  WebShellRenameResult: {
1779
1941
  sessionId: string;
1780
- /** @description Current persisted title from the confirmed mutation or completed replay. Existing legacy titles can exceed the fresh-title input bound. */
1942
+ /** @description Current persisted title from the confirmed mutation or completed replay. */
1781
1943
  title: string;
1782
1944
  replayed: boolean;
1783
1945
  };
@@ -1795,6 +1957,156 @@ export interface components {
1795
1957
  /** @description Whether the user may invoke this Skill; defaults to true. */
1796
1958
  user_invocable?: boolean;
1797
1959
  };
1960
+ WebShellContextCompressionRequest: {
1961
+ requestId?: string;
1962
+ sessionId: string;
1963
+ idempotencyKey: string;
1964
+ /** Format: int64 */
1965
+ expectedCompactionRevision: number;
1966
+ };
1967
+ WebShellContextCompressionOperation: {
1968
+ operationId: string;
1969
+ /** Format: uuid */
1970
+ sessionId: string;
1971
+ /** @constant */
1972
+ type: "context_compression";
1973
+ /** @enum {string} */
1974
+ status: "pending" | "running" | "recovery_blocked" | "completed" | "failed";
1975
+ /** Format: int64 */
1976
+ expectedCompactionRevision: number;
1977
+ /** Format: int64 */
1978
+ compactionRevision?: number | null;
1979
+ /** @enum {string|null} */
1980
+ outcome?: "compressed" | "noop" | null;
1981
+ failureCode?: string | null;
1982
+ replayed: boolean;
1983
+ };
1984
+ ManagedMcpServerPin: {
1985
+ serverId: string;
1986
+ serverRevision: number;
1987
+ definitionDigest: string;
1988
+ };
1989
+ ManagedMcpPublishedServer: {
1990
+ serverId: string;
1991
+ serverRevision: number;
1992
+ definitionDigest: string;
1993
+ /** @enum {string} */
1994
+ transport: "stdio" | "streamable-http" | "sse";
1995
+ };
1996
+ ManagedMcpManagementServer: {
1997
+ serverId: string;
1998
+ serverRevision: number;
1999
+ definitionDigest: string;
2000
+ /** @enum {string} */
2001
+ state: "enabled" | "disabled" | "removed";
2002
+ };
2003
+ ManagedMcpManagementOperation: {
2004
+ /** Format: uuid */
2005
+ operationId: string;
2006
+ /** @enum {string} */
2007
+ action: "add" | "edit" | "remove" | "enable" | "disable" | "reload" | "restart";
2008
+ serverId: string;
2009
+ revision: number;
2010
+ /** @enum {string} */
2011
+ state: "pending" | "settled" | "failed" | "recovery_required";
2012
+ error?: {
2013
+ code: string;
2014
+ };
2015
+ };
2016
+ ManagedMcpManagementSnapshot: {
2017
+ sessionId: string;
2018
+ revision: number;
2019
+ supported: boolean;
2020
+ availableServers: components["schemas"]["ManagedMcpPublishedServer"][];
2021
+ servers: components["schemas"]["ManagedMcpManagementServer"][];
2022
+ operation?: components["schemas"]["ManagedMcpManagementOperation"];
2023
+ };
2024
+ WebShellMcpManagementQuery: {
2025
+ sessionId: string;
2026
+ requestId?: string;
2027
+ };
2028
+ WebShellMcpManagementSubmit: {
2029
+ sessionId: string;
2030
+ requestId?: string;
2031
+ idempotencyKey: string;
2032
+ /** @enum {string} */
2033
+ action: "add" | "edit" | "remove" | "enable" | "disable" | "reload" | "restart";
2034
+ serverId: string;
2035
+ expectedRevision: number;
2036
+ server?: components["schemas"]["ManagedMcpServerPin"];
2037
+ };
2038
+ WebShellMcpManagementOperationQuery: {
2039
+ sessionId: string;
2040
+ /** Format: uuid */
2041
+ operationId: string;
2042
+ requestId?: string;
2043
+ };
2044
+ SessionRecoveryActions: {
2045
+ recheck: boolean;
2046
+ cancel: boolean;
2047
+ continueInNewSession: boolean;
2048
+ };
2049
+ /** @description Separate from Session lifecycle and Turn outcome. ready requires affirmative native input settlement and an admissible continuation boundary with no active Java Turn or blocking debt. Actions are authorization-scoped hints, checked again by their mutations. A new-Session action opens an editable text handoff and grants no additional Workspace permission. A cold or unreadable terminal Turn may advertise a proof-checked cleanup recheck while remaining operator_required with nextTurnAllowed=false; only affirmative native evidence after that mutation can establish readiness. */
2050
+ SessionRecovery: {
2051
+ /** @enum {string} */
2052
+ state: "recovering" | "awaiting_evidence" | "cleanup_pending" | "ready" | "operator_required";
2053
+ reasonCode: string;
2054
+ /** @description Public Turn identity; never an internal prompt, checkpoint or execution reference. */
2055
+ turnId?: string;
2056
+ nextTurnAllowed: boolean;
2057
+ actions: components["schemas"]["SessionRecoveryActions"];
2058
+ /**
2059
+ * Format: int64
2060
+ * @description Known next reconciliation time in Unix epoch milliseconds.
2061
+ */
2062
+ nextRecheckAt?: number;
2063
+ };
2064
+ WebShellRecoveryRecheckRequest: {
2065
+ sessionId: string;
2066
+ turnId: string;
2067
+ };
2068
+ WebShellLifecycleOperation: {
2069
+ operationId: string;
2070
+ /** @enum {string} */
2071
+ type: "close" | "archive" | "delete";
2072
+ /** @enum {string} */
2073
+ status: "pending" | "running" | "completed" | "failed" | "recovery_blocked";
2074
+ failureCode?: string | null;
2075
+ };
2076
+ WebShellExportPage: {
2077
+ items: components["schemas"]["WebShellItem"][];
2078
+ nextCursor?: string | null;
2079
+ hasMore: boolean;
2080
+ /** Format: int64 */
2081
+ snapshotThroughSequence: number;
2082
+ };
2083
+ WebShellExportRequest: {
2084
+ /** Format: uuid */
2085
+ sessionId: string;
2086
+ cursor?: string | null;
2087
+ /** @default 100 */
2088
+ limit?: number | null;
2089
+ };
2090
+ /** @description Durable Turn input or cancellation admission. The operation identifies the saved command and remains stable across idempotent retries. */
2091
+ WebShellTurnAdmission: {
2092
+ /** Format: uuid */
2093
+ sessionId: string;
2094
+ turnId: string;
2095
+ status: string;
2096
+ replayed: boolean;
2097
+ /** @description Durable operation identifier for turn submission or cancellation. */
2098
+ operationId: string;
2099
+ /**
2100
+ * @description Persisted admission stage of the operation.
2101
+ * @enum {string}
2102
+ */
2103
+ admissionStage: "java_durable" | "harness_confirmed";
2104
+ /**
2105
+ * @description Current delivery state of the operation.
2106
+ * @enum {string}
2107
+ */
2108
+ deliveryState: "pending" | "leased" | "confirmed" | "blocked";
2109
+ };
1798
2110
  };
1799
2111
  responses: {
1800
2112
  /** @description The authenticated actor belongs to another tenant than X-Qwen-Tenant-Id or has an invalid ID (actor_scope_mismatch, which the tenant filter answers on every /v1/agents/ and WebShell route), or the resource is readable but the actor lacks this operation or the original Action responder permission. Artifact content reads may also return artifact_content_forbidden when the actor cannot read the original bytes. */
@@ -1851,6 +2163,15 @@ export interface components {
1851
2163
  "application/json": components["schemas"]["ErrorEnvelope"];
1852
2164
  };
1853
2165
  };
2166
+ /** @description Replay cursor is older than the retained replay floor. */
2167
+ CursorExpired: {
2168
+ headers: {
2169
+ [name: string]: unknown;
2170
+ };
2171
+ content: {
2172
+ "application/json": components["schemas"]["ErrorEnvelope"];
2173
+ };
2174
+ };
1854
2175
  /** @description Task event cursor is strictly below the task's durable retention floor, which survives an empty retained set; equality is valid. The envelope's replay_floor_sequence and snapshot_through_sequence stay absent because task cursors are opaque. */
1855
2176
  TaskCursorExpired: {
1856
2177
  headers: {
@@ -2082,7 +2403,7 @@ export interface operations {
2082
2403
  [name: string]: unknown;
2083
2404
  };
2084
2405
  content: {
2085
- "application/json": components["schemas"]["WebShellAdmission"];
2406
+ "application/json": components["schemas"]["WebShellTurnAdmission"];
2086
2407
  };
2087
2408
  };
2088
2409
  400: components["responses"]["BadRequest"];
@@ -2113,7 +2434,7 @@ export interface operations {
2113
2434
  [name: string]: unknown;
2114
2435
  };
2115
2436
  content: {
2116
- "application/json": components["schemas"]["WebShellAdmission"];
2437
+ "application/json": components["schemas"]["WebShellTurnAdmission"];
2117
2438
  };
2118
2439
  };
2119
2440
  400: components["responses"]["BadRequest"];
@@ -3288,4 +3609,243 @@ export interface operations {
3288
3609
  };
3289
3610
  };
3290
3611
  };
3612
+ webShellCompressContext: {
3613
+ parameters: {
3614
+ query?: never;
3615
+ header?: never;
3616
+ path?: never;
3617
+ cookie?: never;
3618
+ };
3619
+ requestBody: {
3620
+ content: {
3621
+ "application/json": components["schemas"]["WebShellContextCompressionRequest"];
3622
+ };
3623
+ };
3624
+ responses: {
3625
+ /** @description Durable context compression operation. */
3626
+ 202: {
3627
+ headers: {
3628
+ [name: string]: unknown;
3629
+ };
3630
+ content: {
3631
+ "application/json": components["schemas"]["WebShellContextCompressionOperation"];
3632
+ };
3633
+ };
3634
+ 400: components["responses"]["BadRequest"];
3635
+ 401: components["responses"]["Unauthorized"];
3636
+ 403: components["responses"]["Forbidden"];
3637
+ 404: components["responses"]["NotFound"];
3638
+ 409: components["responses"]["Conflict"];
3639
+ 413: components["responses"]["PayloadTooLarge"];
3640
+ };
3641
+ };
3642
+ queryWebShellSessionMcpManagement: {
3643
+ parameters: {
3644
+ query?: never;
3645
+ header?: never;
3646
+ path?: never;
3647
+ cookie?: never;
3648
+ };
3649
+ requestBody: {
3650
+ content: {
3651
+ "application/json": components["schemas"]["WebShellMcpManagementQuery"];
3652
+ };
3653
+ };
3654
+ responses: {
3655
+ /** @description Session-local MCP settings and operation snapshot. Inventory describes published pins rather than live connection health; operation status omits inventory. */
3656
+ 200: {
3657
+ headers: {
3658
+ [name: string]: unknown;
3659
+ };
3660
+ content: {
3661
+ "application/json": components["schemas"]["ManagedMcpManagementSnapshot"];
3662
+ };
3663
+ };
3664
+ 400: components["responses"]["BadRequest"];
3665
+ 401: components["responses"]["Unauthorized"];
3666
+ 403: components["responses"]["Forbidden"];
3667
+ 404: components["responses"]["NotFound"];
3668
+ 409: components["responses"]["Conflict"];
3669
+ 413: components["responses"]["PayloadTooLarge"];
3670
+ /** @description The original MCP Runtime or management operation cannot be confirmed. Retry the same operation identity. */
3671
+ 503: {
3672
+ headers: {
3673
+ [name: string]: unknown;
3674
+ };
3675
+ content: {
3676
+ "application/json": components["schemas"]["ErrorEnvelope"];
3677
+ };
3678
+ };
3679
+ };
3680
+ };
3681
+ submitWebShellSessionMcpManagement: {
3682
+ parameters: {
3683
+ query?: never;
3684
+ header?: never;
3685
+ path?: never;
3686
+ cookie?: never;
3687
+ };
3688
+ requestBody: {
3689
+ content: {
3690
+ "application/json": components["schemas"]["WebShellMcpManagementSubmit"];
3691
+ };
3692
+ };
3693
+ responses: {
3694
+ /** @description Session-local MCP settings and operation snapshot. Inventory describes published pins rather than live connection health; operation status omits inventory. */
3695
+ 200: {
3696
+ headers: {
3697
+ [name: string]: unknown;
3698
+ };
3699
+ content: {
3700
+ "application/json": components["schemas"]["ManagedMcpManagementSnapshot"];
3701
+ };
3702
+ };
3703
+ 400: components["responses"]["BadRequest"];
3704
+ 401: components["responses"]["Unauthorized"];
3705
+ 403: components["responses"]["Forbidden"];
3706
+ 404: components["responses"]["NotFound"];
3707
+ 409: components["responses"]["Conflict"];
3708
+ 413: components["responses"]["PayloadTooLarge"];
3709
+ /** @description The original MCP Runtime or management operation cannot be confirmed. Retry the same operation identity. */
3710
+ 503: {
3711
+ headers: {
3712
+ [name: string]: unknown;
3713
+ };
3714
+ content: {
3715
+ "application/json": components["schemas"]["ErrorEnvelope"];
3716
+ };
3717
+ };
3718
+ };
3719
+ };
3720
+ queryWebShellSessionMcpManagementOperation: {
3721
+ parameters: {
3722
+ query?: never;
3723
+ header?: never;
3724
+ path?: never;
3725
+ cookie?: never;
3726
+ };
3727
+ requestBody: {
3728
+ content: {
3729
+ "application/json": components["schemas"]["WebShellMcpManagementOperationQuery"];
3730
+ };
3731
+ };
3732
+ responses: {
3733
+ /** @description Session-local MCP settings and operation snapshot. Inventory describes published pins rather than live connection health; operation status omits inventory. */
3734
+ 200: {
3735
+ headers: {
3736
+ [name: string]: unknown;
3737
+ };
3738
+ content: {
3739
+ "application/json": components["schemas"]["ManagedMcpManagementSnapshot"];
3740
+ };
3741
+ };
3742
+ 400: components["responses"]["BadRequest"];
3743
+ 401: components["responses"]["Unauthorized"];
3744
+ 403: components["responses"]["Forbidden"];
3745
+ 404: components["responses"]["NotFound"];
3746
+ 409: components["responses"]["Conflict"];
3747
+ 413: components["responses"]["PayloadTooLarge"];
3748
+ /** @description The original MCP Runtime or management operation cannot be confirmed. Retry the same operation identity. */
3749
+ 503: {
3750
+ headers: {
3751
+ [name: string]: unknown;
3752
+ };
3753
+ content: {
3754
+ "application/json": components["schemas"]["ErrorEnvelope"];
3755
+ };
3756
+ };
3757
+ };
3758
+ };
3759
+ queryWebShellSessionRecovery: {
3760
+ parameters: {
3761
+ query?: never;
3762
+ header?: never;
3763
+ path?: never;
3764
+ cookie?: never;
3765
+ };
3766
+ requestBody: {
3767
+ content: {
3768
+ "application/json": components["schemas"]["WebShellSessionRequest"];
3769
+ };
3770
+ };
3771
+ responses: {
3772
+ /** @description Current recovery evidence. */
3773
+ 200: {
3774
+ headers: {
3775
+ [name: string]: unknown;
3776
+ };
3777
+ content: {
3778
+ "application/json": components["schemas"]["SessionRecovery"];
3779
+ };
3780
+ };
3781
+ 400: components["responses"]["BadRequest"];
3782
+ 401: components["responses"]["Unauthorized"];
3783
+ 403: components["responses"]["Forbidden"];
3784
+ 404: components["responses"]["NotFound"];
3785
+ 409: components["responses"]["Conflict"];
3786
+ 413: components["responses"]["PayloadTooLarge"];
3787
+ 503: components["responses"]["Unavailable"];
3788
+ };
3789
+ };
3790
+ recheckWebShellSessionRecovery: {
3791
+ parameters: {
3792
+ query?: never;
3793
+ header?: never;
3794
+ path?: never;
3795
+ cookie?: never;
3796
+ };
3797
+ requestBody: {
3798
+ content: {
3799
+ "application/json": components["schemas"]["WebShellRecoveryRecheckRequest"];
3800
+ };
3801
+ };
3802
+ responses: {
3803
+ /** @description Current recovery evidence; recheck admission is not settlement. */
3804
+ 202: {
3805
+ headers: {
3806
+ [name: string]: unknown;
3807
+ };
3808
+ content: {
3809
+ "application/json": components["schemas"]["SessionRecovery"];
3810
+ };
3811
+ };
3812
+ 400: components["responses"]["BadRequest"];
3813
+ 401: components["responses"]["Unauthorized"];
3814
+ 403: components["responses"]["Forbidden"];
3815
+ 404: components["responses"]["NotFound"];
3816
+ 409: components["responses"]["Conflict"];
3817
+ 413: components["responses"]["PayloadTooLarge"];
3818
+ 503: components["responses"]["Unavailable"];
3819
+ };
3820
+ };
3821
+ webShellExportSession: {
3822
+ parameters: {
3823
+ query?: never;
3824
+ header?: never;
3825
+ path?: never;
3826
+ cookie?: never;
3827
+ };
3828
+ requestBody: {
3829
+ content: {
3830
+ "application/json": components["schemas"]["WebShellExportRequest"];
3831
+ };
3832
+ };
3833
+ responses: {
3834
+ /** @description Immutable public item snapshot page. */
3835
+ 200: {
3836
+ headers: {
3837
+ [name: string]: unknown;
3838
+ };
3839
+ content: {
3840
+ "application/json": components["schemas"]["WebShellExportPage"];
3841
+ };
3842
+ };
3843
+ 400: components["responses"]["BadRequest"];
3844
+ 401: components["responses"]["Unauthorized"];
3845
+ 403: components["responses"]["Forbidden"];
3846
+ 404: components["responses"]["NotFound"];
3847
+ 409: components["responses"]["CursorExpired"];
3848
+ 413: components["responses"]["PayloadTooLarge"];
3849
+ };
3850
+ };
3291
3851
  }