@compozy/client 0.4.4 → 0.4.6

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.
@@ -80,6 +80,7 @@ export type AgentCatalogItemPayload = {
80
80
  };
81
81
  export type AgentCatalogResponse = {
82
82
  agents: Array<AgentCatalogItemPayload>;
83
+ diagnostics?: Array<DiagnosticItem>;
83
84
  facets: AgentCatalogFacetsPayload;
84
85
  page: CountedCursorPagePayload;
85
86
  sessions_available: boolean;
@@ -154,10 +155,14 @@ export type AgentIdentityPayload = {
154
155
  session_id: string;
155
156
  };
156
157
  export type AgentLimitsPayload = {
158
+ can_spawn_children: boolean;
157
159
  context_section_limit: number;
160
+ governed_spawn_depth: number;
161
+ max_active_per_workspace?: number;
158
162
  max_active_task_leases: number;
159
163
  max_children: number;
160
164
  max_spawn_depth: number;
165
+ spawn_blocked_reason?: string;
161
166
  };
162
167
  export type AgentMCPServerJSON = {
163
168
  args?: Array<string>;
@@ -610,6 +615,10 @@ export type AutonomyMatcher = {
610
615
  task_id?: string;
611
616
  workflow_id?: string;
612
617
  };
618
+ export type BindSessionWorktreeRequest = {
619
+ expected_worktree_id?: string | null;
620
+ worktree: string;
621
+ };
613
622
  export type BindingsConfig = {
614
623
  bottom_center: string;
615
624
  top_center: string;
@@ -1224,6 +1233,9 @@ export type CreateTriggerRequest = {
1224
1233
  webhook_secret_value?: string;
1225
1234
  workspace_id?: string;
1226
1235
  };
1236
+ export type CreateWorkspaceFolderRequest = {
1237
+ name: string;
1238
+ };
1227
1239
  export type CreateWorkspaceRequest = {
1228
1240
  add_dirs?: Array<string>;
1229
1241
  default_agent?: string;
@@ -1419,6 +1431,7 @@ export type Entry = {
1419
1431
  start_sequence: number;
1420
1432
  };
1421
1433
  export type ErrorPayload = {
1434
+ blockers?: Array<WorkspaceArchiveBlocker>;
1422
1435
  code?: string;
1423
1436
  config_path?: string;
1424
1437
  current_turn_id?: string;
@@ -1968,12 +1981,13 @@ export type GoalBlockingIssue = {
1968
1981
  note: string;
1969
1982
  };
1970
1983
  export type GoalCommandResult = {
1971
- outcome: "started" | "replaced" | "status" | "paused" | "resumed" | "cleared" | "error";
1984
+ outcome: "started" | "replaced" | "status" | "paused" | "resumed" | "cleared" | "stopped" | "error";
1972
1985
  reason_code: "goal_not_active" | "goal_replace_required" | "goal_replace_stale" | "goal_objective_required" | "goal_objective_too_large" | "goal_contract_clause_empty" | "goal_command_invalid" | "goal_draft_requires_idle" | "goal_evidence_too_large" | "goal_report_conflict" | "goal_session_busy_queue_full" | "goal_turn_filter_invalid" | "goal_judge_unavailable" | "goal_judge_broken" | "goal_judge_outcome_invalid" | "goal_action_control_invalid" | "goal_stop_reason_invalid" | "goal_prompt_request_failed" | "goal_agent_refused" | "goal_compaction_cancelled" | "goal_recovery_ambiguous" | "goal_control_revoked_in_flight" | "goal_reseed_confirmation_required" | "goal_presubmit_retries_exhausted" | "goal_budget_fenced" | "goal_origin_invalid" | "goal_origin_workspace_mismatch" | "goal_origin_profile_unavailable" | "goal_control_stale" | "goal_prompt_fenced" | "session_creation_identity_mismatch" | "continuous_binding_mismatch" | "goal_runtime_invalid" | "goal_caller_unauthorized";
1973
1986
  replaced_run_id: string | null;
1974
1987
  snapshot: GoalSnapshot | null;
1975
1988
  };
1976
1989
  export type GoalContextSnapshot = {
1990
+ diagnostic?: string;
1977
1991
  nudge_ratio: number;
1978
1992
  ratio: number | null;
1979
1993
  reported_at: string | null;
@@ -2020,6 +2034,7 @@ export type GoalSnapshot = {
2020
2034
  node_id: string;
2021
2035
  objective: string;
2022
2036
  origin_session_id: string;
2037
+ pause_requested?: boolean;
2023
2038
  run_id: string;
2024
2039
  run_status: "queued" | "running" | "watching" | "needs-approval" | "paused" | "done" | "no-op" | "blocked" | "failed" | "exhausted" | "stalled" | "canceled";
2025
2040
  status: "active" | "paused" | "blocked" | "usage-limited" | "budget-limited" | "complete";
@@ -3668,6 +3683,10 @@ export type ModelCatalogSourceStatusPayload = {
3668
3683
  export type MoveSessionRequest = {
3669
3684
  folder_id?: string;
3670
3685
  };
3686
+ export type MoveWorkspaceRequest = {
3687
+ folder_id?: string;
3688
+ workspace_id: string;
3689
+ };
3671
3690
  export type NewSessionWorktreeRequest = {
3672
3691
  name?: string;
3673
3692
  };
@@ -3960,6 +3979,11 @@ export type Predicate = {
3960
3979
  reason?: string;
3961
3980
  value: unknown;
3962
3981
  };
3982
+ export type ProcessesResponse = {
3983
+ groups: Array<SessionProcessGroupPayload>;
3984
+ scanned_at: string;
3985
+ supported: boolean;
3986
+ };
3963
3987
  export type Profile = {
3964
3988
  archived_at?: string | null;
3965
3989
  color: string;
@@ -4414,6 +4438,9 @@ export type RenameSessionFolderRequest = {
4414
4438
  export type RenameSessionRequest = {
4415
4439
  name: string;
4416
4440
  };
4441
+ export type RenameWorkspaceFolderRequest = {
4442
+ name: string;
4443
+ };
4417
4444
  export type ReorderSessionFoldersRequest = {
4418
4445
  folder_ids: Array<string>;
4419
4446
  };
@@ -4421,6 +4448,13 @@ export type ReorderSessionsRequest = {
4421
4448
  folder_id?: string;
4422
4449
  session_ids: Array<string>;
4423
4450
  };
4451
+ export type ReorderWorkspaceFoldersRequest = {
4452
+ folder_ids: Array<string>;
4453
+ };
4454
+ export type ReorderWorkspacesRequest = {
4455
+ folder_id?: string;
4456
+ workspace_ids: Array<string>;
4457
+ };
4424
4458
  export type ReplaceSessionInputRequest = {
4425
4459
  idempotency_key: string;
4426
4460
  message_id: string;
@@ -5040,6 +5074,7 @@ export type SessionAttentionSummaryPayload = {
5040
5074
  by_workspace: Array<WorkspaceAttentionSummaryPayload>;
5041
5075
  finished: number;
5042
5076
  needs_you: number;
5077
+ terminal_approvals?: Array<TerminalApprovalCountPayload>;
5043
5078
  };
5044
5079
  export type SessionBoardCountsPayload = {
5045
5080
  done: number;
@@ -5234,6 +5269,7 @@ export type SessionDeriveCutPayload = {
5234
5269
  turn_settled: boolean;
5235
5270
  };
5236
5271
  export type SessionDeriveErrorPayload = {
5272
+ blockers?: Array<WorkspaceArchiveBlocker>;
5237
5273
  child_session_id?: string;
5238
5274
  code?: string;
5239
5275
  config_path?: string;
@@ -5367,7 +5403,7 @@ export type SessionFoldersResponse = {
5367
5403
  export type SessionGoalCommandRequest = {
5368
5404
  expected_run_id?: string;
5369
5405
  objective?: string;
5370
- operation: "set" | "replace" | "status" | "pause" | "resume" | "clear";
5406
+ operation: "set" | "replace" | "status" | "pause" | "resume" | "stop" | "clear";
5371
5407
  runtime?: PromptRuntimeSelectionPayload | null;
5372
5408
  };
5373
5409
  export type SessionGoalResponse = {
@@ -5511,6 +5547,7 @@ export type SessionPayload = {
5511
5547
  children?: SessionChildrenPayload | null;
5512
5548
  created_at: string;
5513
5549
  derivation?: SessionDerivationPayload | null;
5550
+ diagnostics?: Array<DiagnosticItem>;
5514
5551
  effective_workspace_access: string;
5515
5552
  escalated?: boolean | null;
5516
5553
  failure?: SessionFailurePayload | null;
@@ -5522,6 +5559,7 @@ export type SessionPayload = {
5522
5559
  name?: string;
5523
5560
  parent_title?: string;
5524
5561
  pending_interactions: Array<PendingInteractionPayload>;
5562
+ process_summary?: SessionProcessSummaryPayload | null;
5525
5563
  profile_archived?: boolean;
5526
5564
  profile_color?: string;
5527
5565
  profile_emoji?: string;
@@ -5547,6 +5585,7 @@ export type SessionPayload = {
5547
5585
  waiting_on?: "sessions" | "monitor";
5548
5586
  workspace_id?: string;
5549
5587
  workspace_path?: string;
5588
+ worktree_binding?: WorktreeBindingAvailability | null;
5550
5589
  worktree_id?: string;
5551
5590
  };
5552
5591
  export type SessionPresenceRequest = {
@@ -5556,6 +5595,52 @@ export type SessionPresenceRequest = {
5556
5595
  export type SessionPresenceResponse = {
5557
5596
  lease_id: string;
5558
5597
  };
5598
+ export type SessionProcessGroupPayload = {
5599
+ items: Array<SessionProcessPayload>;
5600
+ orphaned: boolean;
5601
+ profile: string;
5602
+ session_id: string;
5603
+ session_name: string;
5604
+ workspace_id: string;
5605
+ };
5606
+ export type SessionProcessPayload = {
5607
+ age_seconds: number;
5608
+ argv0: string;
5609
+ attribution: "env" | "lineage";
5610
+ command: string;
5611
+ cpu_percent?: number | null;
5612
+ cwd: string;
5613
+ kind: "background" | "tool" | "terminal";
5614
+ parent_alive: boolean;
5615
+ pgid: number;
5616
+ pid: number;
5617
+ ports: Array<number>;
5618
+ rss_kb?: number | null;
5619
+ started_at: string;
5620
+ terminal_id?: string;
5621
+ };
5622
+ export type SessionProcessResult = {
5623
+ error?: string;
5624
+ outcome: "terminated" | "already_exited" | "identity_mismatch" | "failed" | "unproven";
5625
+ pid: number;
5626
+ started_at: string;
5627
+ };
5628
+ export type SessionProcessSummaryPayload = {
5629
+ background: number;
5630
+ ports: Array<number>;
5631
+ supported: boolean;
5632
+ terminals: number;
5633
+ total: number;
5634
+ };
5635
+ export type SessionProcessTarget = {
5636
+ pid: number;
5637
+ started_at: string;
5638
+ };
5639
+ export type SessionProcessesResponse = {
5640
+ items: Array<SessionProcessPayload>;
5641
+ scanned_at: string;
5642
+ supported: boolean;
5643
+ };
5559
5644
  export type SessionProfileFacetsPayload = {
5560
5645
  facets: SessionCatalogFacetsPayload;
5561
5646
  profile_id: string;
@@ -5583,6 +5668,7 @@ export type SessionPullRequestChecksPayload = {
5583
5668
  state: "passing" | "failing" | "pending" | "none" | "unknown";
5584
5669
  };
5585
5670
  export type SessionPullRequestErrorPayload = {
5671
+ blockers?: Array<WorkspaceArchiveBlocker>;
5586
5672
  cause?: string;
5587
5673
  code?: string;
5588
5674
  config_path?: string;
@@ -5695,6 +5781,7 @@ export type SessionStatusResponse = {
5695
5781
  attention?: string;
5696
5782
  badge: "running" | "idle" | "unhealthy" | "hung" | "waiting-for-auth" | "waiting-for-input" | "done" | "stopped" | "failed" | "unknown" | "needs-attention" | "waiting";
5697
5783
  derivation?: SessionDerivationPayload | null;
5784
+ diagnostics?: Array<DiagnosticItem>;
5698
5785
  eligible_for_wake: boolean;
5699
5786
  escalated?: boolean | null;
5700
5787
  health: "healthy" | "degraded" | "stale" | "dead" | "unknown";
@@ -7049,6 +7136,7 @@ export type StepProgress = {
7049
7136
  steps_total: number;
7050
7137
  };
7051
7138
  export type StopSessionRequest = {
7139
+ processes?: "keep" | "terminate";
7052
7140
  wait?: boolean | null;
7053
7141
  };
7054
7142
  export type StopWhenSpec = string | {
@@ -7653,6 +7741,7 @@ export type TaskPayload = {
7653
7741
  workspace_id?: string;
7654
7742
  };
7655
7743
  export type TaskQueryErrorPayload = {
7744
+ blockers?: Array<WorkspaceArchiveBlocker>;
7656
7745
  code?: string;
7657
7746
  config_path?: string;
7658
7747
  current_turn_id?: string;
@@ -7962,6 +8051,11 @@ export type TasksResponse = {
7962
8051
  export type TerminalAnswerInputRequest = {
7963
8052
  input: string;
7964
8053
  };
8054
+ export type TerminalApprovalCountPayload = {
8055
+ count: number;
8056
+ profile_id: string;
8057
+ workspace_id: string;
8058
+ };
7965
8059
  export type TerminalAttachTicketRequest = {
7966
8060
  client_id?: string;
7967
8061
  mode: "read" | "write";
@@ -8183,6 +8277,17 @@ export type TerminalWaitResponse = {
8183
8277
  screen: string;
8184
8278
  untrusted: boolean;
8185
8279
  };
8280
+ export type TerminateProcessesRequest = {
8281
+ targets: Array<SessionProcessTarget>;
8282
+ };
8283
+ export type TerminateSessionProcessesRequest = {
8284
+ all?: boolean;
8285
+ targets?: Array<SessionProcessTarget>;
8286
+ };
8287
+ export type TerminateSessionProcessesResponse = {
8288
+ results: Array<SessionProcessResult>;
8289
+ supported: boolean;
8290
+ };
8186
8291
  export type TimelineEntry = {
8187
8292
  at: string;
8188
8293
  attempt?: number;
@@ -8320,7 +8425,7 @@ export type ToolCallEventPayload = {
8320
8425
  destructive: boolean;
8321
8426
  display_title?: string;
8322
8427
  duration_ms?: number;
8323
- error_code?: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable";
8428
+ error_code?: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "session_worktree_conflict" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable" | "workspace_archived" | "workspace_busy" | "workspace_root_missing" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready" | "worktree_operation_in_progress" | "worktree_session_active";
8324
8429
  input_digest?: string;
8325
8430
  kind: "tool.call_started" | "tool.call_completed" | "tool.call_failed" | "tool.call_denied" | "tool.result_truncated";
8326
8431
  open_world: boolean;
@@ -8372,7 +8477,7 @@ export type ToolDescriptorPayload = {
8372
8477
  visibility: "internal" | "operator" | "session" | "model";
8373
8478
  };
8374
8479
  export type ToolErrorPayload = {
8375
- code: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable";
8480
+ code: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "session_worktree_conflict" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable" | "workspace_archived" | "workspace_busy" | "workspace_root_missing" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready" | "worktree_operation_in_progress" | "worktree_session_active";
8376
8481
  details?: {
8377
8482
  [key: string]: unknown;
8378
8483
  };
@@ -8919,6 +9024,11 @@ export type WorkerProfile = {
8919
9024
  required_capabilities?: Array<string>;
8920
9025
  speed?: "normal" | "fast";
8921
9026
  };
9027
+ export type WorkspaceArchiveBlocker = {
9028
+ id: string;
9029
+ kind: string;
9030
+ name: string;
9031
+ };
8922
9032
  export type WorkspaceAttentionSummaryPayload = {
8923
9033
  finished: number;
8924
9034
  needs_you: number;
@@ -8953,15 +9063,38 @@ export type WorkspaceDetailPayload = {
8953
9063
  skills?: Array<WorkspaceSkillPayload>;
8954
9064
  workspace: WorkspacePayload;
8955
9065
  };
9066
+ export type WorkspaceFolderPayload = {
9067
+ created_at: string;
9068
+ id: string;
9069
+ name: string;
9070
+ position: number;
9071
+ profile_id: string;
9072
+ updated_at: string;
9073
+ workspace_count: number;
9074
+ };
9075
+ export type WorkspaceFolderResponse = {
9076
+ folder: WorkspaceFolderPayload;
9077
+ };
9078
+ export type WorkspaceLayoutResponse = {
9079
+ folders: Array<WorkspaceFolderPayload>;
9080
+ placements: Array<WorkspacePlacementPayload>;
9081
+ };
8956
9082
  export type WorkspacePayload = {
8957
9083
  add_dirs: Array<string>;
9084
+ archived_at?: string | null;
8958
9085
  created_at: string;
8959
9086
  default_agent?: string;
8960
9087
  id: string;
8961
9088
  name: string;
8962
9089
  root_dir: string;
9090
+ root_missing?: boolean;
8963
9091
  updated_at: string;
8964
9092
  };
9093
+ export type WorkspacePlacementPayload = {
9094
+ folder_id?: string;
9095
+ position: number;
9096
+ workspace_id: string;
9097
+ };
8965
9098
  export type WorkspaceProfileHintPayload = {
8966
9099
  action: string;
8967
9100
  message: string;
@@ -8979,6 +9112,10 @@ export type WorkspaceSkillPayload = {
8979
9112
  export type WorkspacesResponse = {
8980
9113
  workspaces: Array<WorkspacePayload>;
8981
9114
  };
9115
+ export type WorktreeBindingAvailability = {
9116
+ available: boolean;
9117
+ unavailable_reason?: string;
9118
+ };
8982
9119
  export type WorktreeBindingsPayload = {
8983
9120
  agent_activity: string;
8984
9121
  };
@@ -15657,6 +15794,107 @@ export type GetOpenAPIDocumentResponses = {
15657
15794
  */
15658
15795
  200: unknown;
15659
15796
  };
15797
+ export type ListProcessesData = {
15798
+ body?: never;
15799
+ path?: never;
15800
+ query?: {
15801
+ /**
15802
+ * Workspace ID, or @user; mutually exclusive with all_workspaces
15803
+ */
15804
+ workspace_id?: string;
15805
+ /**
15806
+ * Include all projects and User sessions
15807
+ */
15808
+ all_workspaces?: boolean;
15809
+ /**
15810
+ * Only processes of stopped, archived, deleted or unknown sessions
15811
+ */
15812
+ orphaned?: boolean;
15813
+ /**
15814
+ * Read one profile's rows by name
15815
+ */
15816
+ profile?: string;
15817
+ /**
15818
+ * Read the owner-labeled all-profiles aggregate
15819
+ */
15820
+ all_profiles?: boolean;
15821
+ };
15822
+ url: "/api/processes";
15823
+ };
15824
+ export type ListProcessesErrors = {
15825
+ /**
15826
+ * Invalid process request
15827
+ */
15828
+ 400: ErrorPayload;
15829
+ /**
15830
+ * Process scope denied
15831
+ */
15832
+ 403: ErrorPayload;
15833
+ /**
15834
+ * Session not found
15835
+ */
15836
+ 404: ErrorPayload;
15837
+ /**
15838
+ * Internal server error
15839
+ */
15840
+ 500: ErrorPayload;
15841
+ /**
15842
+ * Process scanner unavailable
15843
+ */
15844
+ 503: ErrorPayload;
15845
+ };
15846
+ export type ListProcessesError = ListProcessesErrors[keyof ListProcessesErrors];
15847
+ export type ListProcessesResponses = {
15848
+ /**
15849
+ * Success
15850
+ */
15851
+ 200: ProcessesResponse;
15852
+ };
15853
+ export type ListProcessesResponse = ListProcessesResponses[keyof ListProcessesResponses];
15854
+ export type TerminateProcessesData = {
15855
+ /**
15856
+ * JSON request body
15857
+ */
15858
+ body: TerminateProcessesRequest;
15859
+ path?: never;
15860
+ query?: {
15861
+ /**
15862
+ * Act as this profile by name
15863
+ */
15864
+ profile?: string;
15865
+ };
15866
+ url: "/api/processes/terminate";
15867
+ };
15868
+ export type TerminateProcessesErrors = {
15869
+ /**
15870
+ * Invalid process request
15871
+ */
15872
+ 400: ErrorPayload;
15873
+ /**
15874
+ * Process scope denied
15875
+ */
15876
+ 403: ErrorPayload;
15877
+ /**
15878
+ * Session not found
15879
+ */
15880
+ 404: ErrorPayload;
15881
+ /**
15882
+ * Internal server error
15883
+ */
15884
+ 500: ErrorPayload;
15885
+ /**
15886
+ * Process scanner unavailable
15887
+ */
15888
+ 503: ErrorPayload;
15889
+ };
15890
+ export type TerminateProcessesError = TerminateProcessesErrors[keyof TerminateProcessesErrors];
15891
+ export type TerminateProcessesResponses = {
15892
+ /**
15893
+ * Success
15894
+ */
15895
+ 200: TerminateSessionProcessesResponse;
15896
+ };
15897
+ export type TerminateProcessesResponse = TerminateProcessesResponses[keyof TerminateProcessesResponses];
15660
15898
  export type ListProfilesData = {
15661
15899
  body?: never;
15662
15900
  path?: never;
@@ -23805,110 +24043,451 @@ export type DeliverWorkspaceWebhookResponses = {
23805
24043
  200: WebhookDeliveryResponse;
23806
24044
  };
23807
24045
  export type DeliverWorkspaceWebhookResponse = DeliverWorkspaceWebhookResponses[keyof DeliverWorkspaceWebhookResponses];
23808
- export type ListWorkspacesData = {
24046
+ export type GetWorkspaceLayoutData = {
23809
24047
  body?: never;
23810
24048
  path?: never;
23811
- query?: never;
23812
- url: "/api/workspaces";
24049
+ query?: {
24050
+ /**
24051
+ * Act as this profile by name
24052
+ */
24053
+ profile?: string;
24054
+ };
24055
+ url: "/api/workspace-folders";
23813
24056
  };
23814
- export type ListWorkspacesErrors = {
24057
+ export type GetWorkspaceLayoutErrors = {
24058
+ /**
24059
+ * Invalid layout request
24060
+ */
24061
+ 400: ErrorPayload;
24062
+ /**
24063
+ * Operator or unrestricted agent required
24064
+ */
24065
+ 403: ErrorPayload;
24066
+ /**
24067
+ * Workspace or workspace folder not found
24068
+ */
24069
+ 404: ErrorPayload;
23815
24070
  /**
23816
24071
  * Internal server error
23817
24072
  */
23818
24073
  500: ErrorPayload;
24074
+ /**
24075
+ * Workspace layout unavailable
24076
+ */
24077
+ 503: ErrorPayload;
23819
24078
  };
23820
- export type ListWorkspacesError = ListWorkspacesErrors[keyof ListWorkspacesErrors];
23821
- export type ListWorkspacesResponses = {
24079
+ export type GetWorkspaceLayoutError = GetWorkspaceLayoutErrors[keyof GetWorkspaceLayoutErrors];
24080
+ export type GetWorkspaceLayoutResponses = {
23822
24081
  /**
23823
24082
  * OK
23824
24083
  */
23825
- 200: WorkspacesResponse;
24084
+ 200: WorkspaceLayoutResponse;
23826
24085
  };
23827
- export type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
23828
- export type CreateWorkspaceData = {
24086
+ export type GetWorkspaceLayoutResponse = GetWorkspaceLayoutResponses[keyof GetWorkspaceLayoutResponses];
24087
+ export type CreateWorkspaceFolderData = {
23829
24088
  /**
23830
24089
  * JSON request body
23831
24090
  */
23832
- body: CreateWorkspaceRequest;
24091
+ body: CreateWorkspaceFolderRequest;
23833
24092
  path?: never;
23834
- query?: never;
23835
- url: "/api/workspaces";
24093
+ query?: {
24094
+ /**
24095
+ * Act as this profile by name
24096
+ */
24097
+ profile?: string;
24098
+ };
24099
+ url: "/api/workspace-folders";
23836
24100
  };
23837
- export type CreateWorkspaceErrors = {
24101
+ export type CreateWorkspaceFolderErrors = {
23838
24102
  /**
23839
- * Invalid workspace request
24103
+ * Invalid layout request
23840
24104
  */
23841
24105
  400: ErrorPayload;
23842
24106
  /**
23843
- * Workspace conflict
24107
+ * Operator or unrestricted agent required
23844
24108
  */
23845
- 409: ErrorPayload;
24109
+ 403: ErrorPayload;
23846
24110
  /**
23847
- * Unknown workspace config keys (workspace_config_invalid)
24111
+ * Workspace or workspace folder not found
23848
24112
  */
23849
- 422: ErrorPayload;
24113
+ 404: ErrorPayload;
24114
+ /**
24115
+ * Layout conflict or folder limit
24116
+ */
24117
+ 409: ErrorPayload;
23850
24118
  /**
23851
24119
  * Internal server error
23852
24120
  */
23853
24121
  500: ErrorPayload;
23854
- };
23855
- export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
23856
- export type CreateWorkspaceResponses = {
23857
24122
  /**
23858
- * Created
24123
+ * Workspace layout unavailable
23859
24124
  */
23860
- 201: WorkspaceResponse;
24125
+ 503: ErrorPayload;
23861
24126
  };
23862
- export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
23863
- export type ResolveWorkspaceData = {
24127
+ export type CreateWorkspaceFolderError = CreateWorkspaceFolderErrors[keyof CreateWorkspaceFolderErrors];
24128
+ export type CreateWorkspaceFolderResponses = {
23864
24129
  /**
23865
- * JSON request body
24130
+ * OK
23866
24131
  */
23867
- body: ResolveWorkspaceRequest;
23868
- path?: never;
23869
- query?: never;
23870
- url: "/api/workspaces/resolve";
24132
+ 201: WorkspaceFolderResponse;
23871
24133
  };
23872
- export type ResolveWorkspaceErrors = {
24134
+ export type CreateWorkspaceFolderResponse = CreateWorkspaceFolderResponses[keyof CreateWorkspaceFolderResponses];
24135
+ export type DeleteWorkspaceFolderData = {
24136
+ body?: never;
24137
+ path: {
24138
+ /**
24139
+ * Workspace folder id
24140
+ */
24141
+ folder_id: string;
24142
+ };
24143
+ query?: {
24144
+ /**
24145
+ * Act as this profile by name
24146
+ */
24147
+ profile?: string;
24148
+ };
24149
+ url: "/api/workspace-folders/{folder_id}";
24150
+ };
24151
+ export type DeleteWorkspaceFolderErrors = {
23873
24152
  /**
23874
- * Invalid workspace path
24153
+ * Invalid layout request
23875
24154
  */
23876
24155
  400: ErrorPayload;
23877
24156
  /**
23878
- * Workspace not found
24157
+ * Operator or unrestricted agent required
24158
+ */
24159
+ 403: ErrorPayload;
24160
+ /**
24161
+ * Workspace or workspace folder not found
23879
24162
  */
23880
24163
  404: ErrorPayload;
23881
24164
  /**
23882
- * Unknown workspace config keys (workspace_config_invalid)
24165
+ * Layout conflict or folder limit
23883
24166
  */
23884
- 422: ErrorPayload;
24167
+ 409: ErrorPayload;
23885
24168
  /**
23886
24169
  * Internal server error
23887
24170
  */
23888
24171
  500: ErrorPayload;
24172
+ /**
24173
+ * Workspace layout unavailable
24174
+ */
24175
+ 503: ErrorPayload;
23889
24176
  };
23890
- export type ResolveWorkspaceError = ResolveWorkspaceErrors[keyof ResolveWorkspaceErrors];
23891
- export type ResolveWorkspaceResponses = {
24177
+ export type DeleteWorkspaceFolderError = DeleteWorkspaceFolderErrors[keyof DeleteWorkspaceFolderErrors];
24178
+ export type DeleteWorkspaceFolderResponses = {
23892
24179
  /**
23893
24180
  * OK
23894
24181
  */
23895
- 200: WorkspaceResponse;
24182
+ 200: WorkspaceLayoutResponse;
23896
24183
  };
23897
- export type ResolveWorkspaceResponse = ResolveWorkspaceResponses[keyof ResolveWorkspaceResponses];
23898
- export type DeleteWorkspaceData = {
23899
- body?: never;
24184
+ export type DeleteWorkspaceFolderResponse = DeleteWorkspaceFolderResponses[keyof DeleteWorkspaceFolderResponses];
24185
+ export type RenameWorkspaceFolderData = {
24186
+ /**
24187
+ * JSON request body
24188
+ */
24189
+ body: RenameWorkspaceFolderRequest;
23900
24190
  path: {
23901
24191
  /**
23902
- * Workspace id
24192
+ * Workspace folder id
23903
24193
  */
23904
- id: string;
24194
+ folder_id: string;
23905
24195
  };
23906
- query?: never;
23907
- url: "/api/workspaces/{id}";
24196
+ query?: {
24197
+ /**
24198
+ * Act as this profile by name
24199
+ */
24200
+ profile?: string;
24201
+ };
24202
+ url: "/api/workspace-folders/{folder_id}";
23908
24203
  };
23909
- export type DeleteWorkspaceErrors = {
24204
+ export type RenameWorkspaceFolderErrors = {
23910
24205
  /**
23911
- * Workspace not found
24206
+ * Invalid layout request
24207
+ */
24208
+ 400: ErrorPayload;
24209
+ /**
24210
+ * Operator or unrestricted agent required
24211
+ */
24212
+ 403: ErrorPayload;
24213
+ /**
24214
+ * Workspace or workspace folder not found
24215
+ */
24216
+ 404: ErrorPayload;
24217
+ /**
24218
+ * Layout conflict or folder limit
24219
+ */
24220
+ 409: ErrorPayload;
24221
+ /**
24222
+ * Internal server error
24223
+ */
24224
+ 500: ErrorPayload;
24225
+ /**
24226
+ * Workspace layout unavailable
24227
+ */
24228
+ 503: ErrorPayload;
24229
+ };
24230
+ export type RenameWorkspaceFolderError = RenameWorkspaceFolderErrors[keyof RenameWorkspaceFolderErrors];
24231
+ export type RenameWorkspaceFolderResponses = {
24232
+ /**
24233
+ * OK
24234
+ */
24235
+ 200: WorkspaceFolderResponse;
24236
+ };
24237
+ export type RenameWorkspaceFolderResponse = RenameWorkspaceFolderResponses[keyof RenameWorkspaceFolderResponses];
24238
+ export type ReorderWorkspaceFoldersData = {
24239
+ /**
24240
+ * JSON request body
24241
+ */
24242
+ body: ReorderWorkspaceFoldersRequest;
24243
+ path?: never;
24244
+ query?: {
24245
+ /**
24246
+ * Act as this profile by name
24247
+ */
24248
+ profile?: string;
24249
+ };
24250
+ url: "/api/workspace-order/folders";
24251
+ };
24252
+ export type ReorderWorkspaceFoldersErrors = {
24253
+ /**
24254
+ * Invalid layout request
24255
+ */
24256
+ 400: ErrorPayload;
24257
+ /**
24258
+ * Operator or unrestricted agent required
24259
+ */
24260
+ 403: ErrorPayload;
24261
+ /**
24262
+ * Workspace or workspace folder not found
24263
+ */
24264
+ 404: ErrorPayload;
24265
+ /**
24266
+ * Layout conflict or folder limit
24267
+ */
24268
+ 409: ErrorPayload;
24269
+ /**
24270
+ * Internal server error
24271
+ */
24272
+ 500: ErrorPayload;
24273
+ /**
24274
+ * Workspace layout unavailable
24275
+ */
24276
+ 503: ErrorPayload;
24277
+ };
24278
+ export type ReorderWorkspaceFoldersError = ReorderWorkspaceFoldersErrors[keyof ReorderWorkspaceFoldersErrors];
24279
+ export type ReorderWorkspaceFoldersResponses = {
24280
+ /**
24281
+ * OK
24282
+ */
24283
+ 200: WorkspaceLayoutResponse;
24284
+ };
24285
+ export type ReorderWorkspaceFoldersResponse = ReorderWorkspaceFoldersResponses[keyof ReorderWorkspaceFoldersResponses];
24286
+ export type MoveWorkspaceData = {
24287
+ /**
24288
+ * JSON request body
24289
+ */
24290
+ body: MoveWorkspaceRequest;
24291
+ path?: never;
24292
+ query?: {
24293
+ /**
24294
+ * Act as this profile by name
24295
+ */
24296
+ profile?: string;
24297
+ };
24298
+ url: "/api/workspace-order/move";
24299
+ };
24300
+ export type MoveWorkspaceErrors = {
24301
+ /**
24302
+ * Invalid layout request
24303
+ */
24304
+ 400: ErrorPayload;
24305
+ /**
24306
+ * Operator or unrestricted agent required
24307
+ */
24308
+ 403: ErrorPayload;
24309
+ /**
24310
+ * Workspace or workspace folder not found
24311
+ */
24312
+ 404: ErrorPayload;
24313
+ /**
24314
+ * Layout conflict or folder limit
24315
+ */
24316
+ 409: ErrorPayload;
24317
+ /**
24318
+ * Internal server error
24319
+ */
24320
+ 500: ErrorPayload;
24321
+ /**
24322
+ * Workspace layout unavailable
24323
+ */
24324
+ 503: ErrorPayload;
24325
+ };
24326
+ export type MoveWorkspaceError = MoveWorkspaceErrors[keyof MoveWorkspaceErrors];
24327
+ export type MoveWorkspaceResponses = {
24328
+ /**
24329
+ * OK
24330
+ */
24331
+ 200: WorkspaceLayoutResponse;
24332
+ };
24333
+ export type MoveWorkspaceResponse = MoveWorkspaceResponses[keyof MoveWorkspaceResponses];
24334
+ export type ReorderWorkspacesData = {
24335
+ /**
24336
+ * JSON request body
24337
+ */
24338
+ body: ReorderWorkspacesRequest;
24339
+ path?: never;
24340
+ query?: {
24341
+ /**
24342
+ * Act as this profile by name
24343
+ */
24344
+ profile?: string;
24345
+ };
24346
+ url: "/api/workspace-order/workspaces";
24347
+ };
24348
+ export type ReorderWorkspacesErrors = {
24349
+ /**
24350
+ * Invalid layout request
24351
+ */
24352
+ 400: ErrorPayload;
24353
+ /**
24354
+ * Operator or unrestricted agent required
24355
+ */
24356
+ 403: ErrorPayload;
24357
+ /**
24358
+ * Workspace or workspace folder not found
24359
+ */
24360
+ 404: ErrorPayload;
24361
+ /**
24362
+ * Layout conflict or folder limit
24363
+ */
24364
+ 409: ErrorPayload;
24365
+ /**
24366
+ * Internal server error
24367
+ */
24368
+ 500: ErrorPayload;
24369
+ /**
24370
+ * Workspace layout unavailable
24371
+ */
24372
+ 503: ErrorPayload;
24373
+ };
24374
+ export type ReorderWorkspacesError = ReorderWorkspacesErrors[keyof ReorderWorkspacesErrors];
24375
+ export type ReorderWorkspacesResponses = {
24376
+ /**
24377
+ * OK
24378
+ */
24379
+ 200: WorkspaceLayoutResponse;
24380
+ };
24381
+ export type ReorderWorkspacesResponse = ReorderWorkspacesResponses[keyof ReorderWorkspacesResponses];
24382
+ export type ListWorkspacesData = {
24383
+ body?: never;
24384
+ path?: never;
24385
+ query?: {
24386
+ /**
24387
+ * List archived projects instead of active projects
24388
+ */
24389
+ archived?: boolean;
24390
+ };
24391
+ url: "/api/workspaces";
24392
+ };
24393
+ export type ListWorkspacesErrors = {
24394
+ /**
24395
+ * Internal server error
24396
+ */
24397
+ 500: ErrorPayload;
24398
+ };
24399
+ export type ListWorkspacesError = ListWorkspacesErrors[keyof ListWorkspacesErrors];
24400
+ export type ListWorkspacesResponses = {
24401
+ /**
24402
+ * OK
24403
+ */
24404
+ 200: WorkspacesResponse;
24405
+ };
24406
+ export type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
24407
+ export type CreateWorkspaceData = {
24408
+ /**
24409
+ * JSON request body
24410
+ */
24411
+ body: CreateWorkspaceRequest;
24412
+ path?: never;
24413
+ query?: never;
24414
+ url: "/api/workspaces";
24415
+ };
24416
+ export type CreateWorkspaceErrors = {
24417
+ /**
24418
+ * Invalid workspace request
24419
+ */
24420
+ 400: ErrorPayload;
24421
+ /**
24422
+ * Workspace conflict
24423
+ */
24424
+ 409: ErrorPayload;
24425
+ /**
24426
+ * Unknown workspace config keys (workspace_config_invalid)
24427
+ */
24428
+ 422: ErrorPayload;
24429
+ /**
24430
+ * Internal server error
24431
+ */
24432
+ 500: ErrorPayload;
24433
+ };
24434
+ export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
24435
+ export type CreateWorkspaceResponses = {
24436
+ /**
24437
+ * Created
24438
+ */
24439
+ 201: WorkspaceResponse;
24440
+ };
24441
+ export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
24442
+ export type ResolveWorkspaceData = {
24443
+ /**
24444
+ * JSON request body
24445
+ */
24446
+ body: ResolveWorkspaceRequest;
24447
+ path?: never;
24448
+ query?: never;
24449
+ url: "/api/workspaces/resolve";
24450
+ };
24451
+ export type ResolveWorkspaceErrors = {
24452
+ /**
24453
+ * Invalid workspace path
24454
+ */
24455
+ 400: ErrorPayload;
24456
+ /**
24457
+ * Workspace not found
24458
+ */
24459
+ 404: ErrorPayload;
24460
+ /**
24461
+ * Unknown workspace config keys (workspace_config_invalid)
24462
+ */
24463
+ 422: ErrorPayload;
24464
+ /**
24465
+ * Internal server error
24466
+ */
24467
+ 500: ErrorPayload;
24468
+ };
24469
+ export type ResolveWorkspaceError = ResolveWorkspaceErrors[keyof ResolveWorkspaceErrors];
24470
+ export type ResolveWorkspaceResponses = {
24471
+ /**
24472
+ * OK
24473
+ */
24474
+ 200: WorkspaceResponse;
24475
+ };
24476
+ export type ResolveWorkspaceResponse = ResolveWorkspaceResponses[keyof ResolveWorkspaceResponses];
24477
+ export type DeleteWorkspaceData = {
24478
+ body?: never;
24479
+ path: {
24480
+ /**
24481
+ * Workspace id
24482
+ */
24483
+ id: string;
24484
+ };
24485
+ query?: never;
24486
+ url: "/api/workspaces/{id}";
24487
+ };
24488
+ export type DeleteWorkspaceErrors = {
24489
+ /**
24490
+ * Workspace not found
23912
24491
  */
23913
24492
  404: ErrorPayload;
23914
24493
  /**
@@ -23993,6 +24572,72 @@ export type UpdateWorkspaceResponses = {
23993
24572
  200: WorkspaceResponse;
23994
24573
  };
23995
24574
  export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
24575
+ export type ArchiveWorkspaceData = {
24576
+ body?: never;
24577
+ path: {
24578
+ /**
24579
+ * Workspace name or id
24580
+ */
24581
+ id: string;
24582
+ };
24583
+ query?: never;
24584
+ url: "/api/workspaces/{id}/archive";
24585
+ };
24586
+ export type ArchiveWorkspaceErrors = {
24587
+ /**
24588
+ * Workspace not found
24589
+ */
24590
+ 404: ErrorPayload;
24591
+ /**
24592
+ * Workspace has active sessions, live Loops or enabled automations
24593
+ */
24594
+ 409: ErrorPayload;
24595
+ /**
24596
+ * Internal server error
24597
+ */
24598
+ 500: ErrorPayload;
24599
+ };
24600
+ export type ArchiveWorkspaceError = ArchiveWorkspaceErrors[keyof ArchiveWorkspaceErrors];
24601
+ export type ArchiveWorkspaceResponses = {
24602
+ /**
24603
+ * OK
24604
+ */
24605
+ 200: WorkspaceResponse;
24606
+ };
24607
+ export type ArchiveWorkspaceResponse = ArchiveWorkspaceResponses[keyof ArchiveWorkspaceResponses];
24608
+ export type UnarchiveWorkspaceData = {
24609
+ body?: never;
24610
+ path: {
24611
+ /**
24612
+ * Workspace name or id
24613
+ */
24614
+ id: string;
24615
+ };
24616
+ query?: never;
24617
+ url: "/api/workspaces/{id}/unarchive";
24618
+ };
24619
+ export type UnarchiveWorkspaceErrors = {
24620
+ /**
24621
+ * Workspace not found
24622
+ */
24623
+ 404: ErrorPayload;
24624
+ /**
24625
+ * Workspace has active sessions, live Loops or enabled automations
24626
+ */
24627
+ 409: ErrorPayload;
24628
+ /**
24629
+ * Internal server error
24630
+ */
24631
+ 500: ErrorPayload;
24632
+ };
24633
+ export type UnarchiveWorkspaceError = UnarchiveWorkspaceErrors[keyof UnarchiveWorkspaceErrors];
24634
+ export type UnarchiveWorkspaceResponses = {
24635
+ /**
24636
+ * OK
24637
+ */
24638
+ 200: WorkspaceResponse;
24639
+ };
24640
+ export type UnarchiveWorkspaceResponse = UnarchiveWorkspaceResponses[keyof UnarchiveWorkspaceResponses];
23996
24641
  export type ListAutomationSuggestionsData = {
23997
24642
  body?: never;
23998
24643
  path: {
@@ -26840,6 +27485,10 @@ export type DeleteSessionData = {
26840
27485
  session_id: string;
26841
27486
  };
26842
27487
  query?: {
27488
+ /**
27489
+ * Keep (default) or terminate attributed session processes
27490
+ */
27491
+ processes?: "keep" | "terminate";
26843
27492
  /**
26844
27493
  * Act as this profile by name
26845
27494
  */
@@ -26848,14 +27497,26 @@ export type DeleteSessionData = {
26848
27497
  url: "/api/workspaces/{workspace_id}/sessions/{session_id}";
26849
27498
  };
26850
27499
  export type DeleteSessionErrors = {
27500
+ /**
27501
+ * Invalid process policy
27502
+ */
27503
+ 400: ErrorPayload;
26851
27504
  /**
26852
27505
  * Session not found
26853
27506
  */
26854
27507
  404: ErrorPayload;
27508
+ /**
27509
+ * Process cleanup could not be verified
27510
+ */
27511
+ 409: ErrorPayload;
26855
27512
  /**
26856
27513
  * Internal server error
26857
27514
  */
26858
27515
  500: ErrorPayload;
27516
+ /**
27517
+ * Service unavailable - dependent service missing
27518
+ */
27519
+ 503: ErrorPayload;
26859
27520
  };
26860
27521
  export type DeleteSessionError = DeleteSessionErrors[keyof DeleteSessionErrors];
26861
27522
  export type DeleteSessionResponses = {
@@ -27013,6 +27674,10 @@ export type ArchiveSessionData = {
27013
27674
  session_id: string;
27014
27675
  };
27015
27676
  query?: {
27677
+ /**
27678
+ * Keep (default) or terminate attributed session processes
27679
+ */
27680
+ processes?: "keep" | "terminate";
27016
27681
  /**
27017
27682
  * Stop a live session through the normal stop path before archiving it; a failed stop leaves it unarchived
27018
27683
  */
@@ -28339,6 +29004,113 @@ export type UpdateSessionPresenceResponses = {
28339
29004
  204: void;
28340
29005
  };
28341
29006
  export type UpdateSessionPresenceResponse = UpdateSessionPresenceResponses[keyof UpdateSessionPresenceResponses];
29007
+ export type ListSessionProcessesData = {
29008
+ body?: never;
29009
+ path: {
29010
+ /**
29011
+ * Workspace id
29012
+ */
29013
+ workspace_id: string;
29014
+ /**
29015
+ * Session id
29016
+ */
29017
+ session_id: string;
29018
+ };
29019
+ query?: {
29020
+ /**
29021
+ * Read one profile's rows by name
29022
+ */
29023
+ profile?: string;
29024
+ /**
29025
+ * Read the owner-labeled all-profiles aggregate
29026
+ */
29027
+ all_profiles?: boolean;
29028
+ };
29029
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/processes";
29030
+ };
29031
+ export type ListSessionProcessesErrors = {
29032
+ /**
29033
+ * Invalid process request
29034
+ */
29035
+ 400: ErrorPayload;
29036
+ /**
29037
+ * Process scope denied
29038
+ */
29039
+ 403: ErrorPayload;
29040
+ /**
29041
+ * Session not found
29042
+ */
29043
+ 404: ErrorPayload;
29044
+ /**
29045
+ * Internal server error
29046
+ */
29047
+ 500: ErrorPayload;
29048
+ /**
29049
+ * Process scanner unavailable
29050
+ */
29051
+ 503: ErrorPayload;
29052
+ };
29053
+ export type ListSessionProcessesError = ListSessionProcessesErrors[keyof ListSessionProcessesErrors];
29054
+ export type ListSessionProcessesResponses = {
29055
+ /**
29056
+ * Success
29057
+ */
29058
+ 200: SessionProcessesResponse;
29059
+ };
29060
+ export type ListSessionProcessesResponse = ListSessionProcessesResponses[keyof ListSessionProcessesResponses];
29061
+ export type TerminateSessionProcessesData = {
29062
+ /**
29063
+ * JSON request body
29064
+ */
29065
+ body: TerminateSessionProcessesRequest;
29066
+ path: {
29067
+ /**
29068
+ * Workspace id
29069
+ */
29070
+ workspace_id: string;
29071
+ /**
29072
+ * Session id
29073
+ */
29074
+ session_id: string;
29075
+ };
29076
+ query?: {
29077
+ /**
29078
+ * Act as this profile by name
29079
+ */
29080
+ profile?: string;
29081
+ };
29082
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/processes/terminate";
29083
+ };
29084
+ export type TerminateSessionProcessesErrors = {
29085
+ /**
29086
+ * Invalid process request
29087
+ */
29088
+ 400: ErrorPayload;
29089
+ /**
29090
+ * Process scope denied
29091
+ */
29092
+ 403: ErrorPayload;
29093
+ /**
29094
+ * Session not found
29095
+ */
29096
+ 404: ErrorPayload;
29097
+ /**
29098
+ * Internal server error
29099
+ */
29100
+ 500: ErrorPayload;
29101
+ /**
29102
+ * Process scanner unavailable
29103
+ */
29104
+ 503: ErrorPayload;
29105
+ };
29106
+ export type TerminateSessionProcessesError = TerminateSessionProcessesErrors[keyof TerminateSessionProcessesErrors];
29107
+ export type TerminateSessionProcessesResponses = {
29108
+ /**
29109
+ * Success
29110
+ */
29111
+ 200: TerminateSessionProcessesResponse;
29112
+ };
29113
+ export type TerminateSessionProcessesResponse2 = TerminateSessionProcessesResponses[keyof TerminateSessionProcessesResponses];
28342
29114
  export type CancelSessionPromptData = {
28343
29115
  body?: never;
28344
29116
  path: {
@@ -28963,12 +29735,16 @@ export type StopSessionErrors = {
28963
29735
  * Session not found
28964
29736
  */
28965
29737
  404: ErrorPayload;
29738
+ /**
29739
+ * Process cleanup could not be verified
29740
+ */
29741
+ 409: ErrorPayload;
28966
29742
  /**
28967
29743
  * Internal server error
28968
29744
  */
28969
29745
  500: ErrorPayload;
28970
29746
  /**
28971
- * Stop manager unavailable
29747
+ * Service unavailable - dependent service missing
28972
29748
  */
28973
29749
  503: ErrorPayload;
28974
29750
  };
@@ -29437,6 +30213,113 @@ export type WaitForSessionResponses = {
29437
30213
  200: SessionWaitResponse;
29438
30214
  };
29439
30215
  export type WaitForSessionResponse = WaitForSessionResponses[keyof WaitForSessionResponses];
30216
+ export type UnbindSessionWorktreeData = {
30217
+ body?: never;
30218
+ path: {
30219
+ /**
30220
+ * Workspace id
30221
+ */
30222
+ workspace_id: string;
30223
+ /**
30224
+ * Session id
30225
+ */
30226
+ session_id: string;
30227
+ };
30228
+ query?: {
30229
+ /**
30230
+ * Act as this profile by name
30231
+ */
30232
+ profile?: string;
30233
+ /**
30234
+ * Expected current worktree id; empty for workspace root
30235
+ */
30236
+ expected_worktree_id?: string;
30237
+ };
30238
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/worktree";
30239
+ };
30240
+ export type UnbindSessionWorktreeErrors = {
30241
+ /**
30242
+ * Invalid binding request
30243
+ */
30244
+ 400: ErrorPayload;
30245
+ /**
30246
+ * Session or worktree not found
30247
+ */
30248
+ 404: ErrorPayload;
30249
+ /**
30250
+ * Session busy, stale binding or unavailable worktree
30251
+ */
30252
+ 409: ErrorPayload;
30253
+ /**
30254
+ * Internal server error
30255
+ */
30256
+ 500: ErrorPayload;
30257
+ /**
30258
+ * Binding unavailable
30259
+ */
30260
+ 503: ErrorPayload;
30261
+ };
30262
+ export type UnbindSessionWorktreeError = UnbindSessionWorktreeErrors[keyof UnbindSessionWorktreeErrors];
30263
+ export type UnbindSessionWorktreeResponses = {
30264
+ /**
30265
+ * Same session with updated execution location
30266
+ */
30267
+ 200: SessionResponse;
30268
+ };
30269
+ export type UnbindSessionWorktreeResponse = UnbindSessionWorktreeResponses[keyof UnbindSessionWorktreeResponses];
30270
+ export type BindSessionWorktreeData = {
30271
+ /**
30272
+ * JSON request body
30273
+ */
30274
+ body: BindSessionWorktreeRequest;
30275
+ path: {
30276
+ /**
30277
+ * Workspace id
30278
+ */
30279
+ workspace_id: string;
30280
+ /**
30281
+ * Session id
30282
+ */
30283
+ session_id: string;
30284
+ };
30285
+ query?: {
30286
+ /**
30287
+ * Act as this profile by name
30288
+ */
30289
+ profile?: string;
30290
+ };
30291
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/worktree";
30292
+ };
30293
+ export type BindSessionWorktreeErrors = {
30294
+ /**
30295
+ * Invalid binding request
30296
+ */
30297
+ 400: ErrorPayload;
30298
+ /**
30299
+ * Session or worktree not found
30300
+ */
30301
+ 404: ErrorPayload;
30302
+ /**
30303
+ * Session busy, stale binding or unavailable worktree
30304
+ */
30305
+ 409: ErrorPayload;
30306
+ /**
30307
+ * Internal server error
30308
+ */
30309
+ 500: ErrorPayload;
30310
+ /**
30311
+ * Binding unavailable
30312
+ */
30313
+ 503: ErrorPayload;
30314
+ };
30315
+ export type BindSessionWorktreeError = BindSessionWorktreeErrors[keyof BindSessionWorktreeErrors];
30316
+ export type BindSessionWorktreeResponses = {
30317
+ /**
30318
+ * Same session with updated execution location
30319
+ */
30320
+ 200: SessionResponse;
30321
+ };
30322
+ export type BindSessionWorktreeResponse = BindSessionWorktreeResponses[keyof BindSessionWorktreeResponses];
29440
30323
  export type ForkSessionToWorktreeData = {
29441
30324
  /**
29442
30325
  * JSON request body
@@ -29655,6 +30538,10 @@ export type CreateTerminalData = {
29655
30538
  * Registered browser client attachment token
29656
30539
  */
29657
30540
  "X-Compozy-Client-Token"?: string;
30541
+ /**
30542
+ * Browser client registration partition (project id, global, or user); defaults to the terminal workspace
30543
+ */
30544
+ "X-Compozy-Client-Workspace"?: string;
29658
30545
  };
29659
30546
  path: {
29660
30547
  /**
@@ -30166,6 +31053,10 @@ export type MintTerminalAttachTicketData = {
30166
31053
  * Registered browser client attachment token
30167
31054
  */
30168
31055
  "X-Compozy-Client-Token"?: string;
31056
+ /**
31057
+ * Browser client registration partition (project id, global, or user); defaults to the terminal workspace
31058
+ */
31059
+ "X-Compozy-Client-Workspace"?: string;
30169
31060
  };
30170
31061
  path: {
30171
31062
  /**