@compozy/client 0.4.5 → 0.4.7

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.
@@ -155,10 +155,14 @@ export type AgentIdentityPayload = {
155
155
  session_id: string;
156
156
  };
157
157
  export type AgentLimitsPayload = {
158
+ can_spawn_children: boolean;
158
159
  context_section_limit: number;
160
+ governed_spawn_depth: number;
161
+ max_active_per_workspace?: number;
159
162
  max_active_task_leases: number;
160
163
  max_children: number;
161
164
  max_spawn_depth: number;
165
+ spawn_blocked_reason?: string;
162
166
  };
163
167
  export type AgentMCPServerJSON = {
164
168
  args?: Array<string>;
@@ -1229,6 +1233,9 @@ export type CreateTriggerRequest = {
1229
1233
  webhook_secret_value?: string;
1230
1234
  workspace_id?: string;
1231
1235
  };
1236
+ export type CreateWorkspaceFolderRequest = {
1237
+ name: string;
1238
+ };
1232
1239
  export type CreateWorkspaceRequest = {
1233
1240
  add_dirs?: Array<string>;
1234
1241
  default_agent?: string;
@@ -3676,6 +3683,14 @@ export type ModelCatalogSourceStatusPayload = {
3676
3683
  export type MoveSessionRequest = {
3677
3684
  folder_id?: string;
3678
3685
  };
3686
+ export type MoveSessionToLaterRequest = {
3687
+ reason?: string;
3688
+ return_at?: string | null;
3689
+ };
3690
+ export type MoveWorkspaceRequest = {
3691
+ folder_id?: string;
3692
+ workspace_id: string;
3693
+ };
3679
3694
  export type NewSessionWorktreeRequest = {
3680
3695
  name?: string;
3681
3696
  };
@@ -3968,6 +3983,11 @@ export type Predicate = {
3968
3983
  reason?: string;
3969
3984
  value: unknown;
3970
3985
  };
3986
+ export type ProcessesResponse = {
3987
+ groups: Array<SessionProcessGroupPayload>;
3988
+ scanned_at: string;
3989
+ supported: boolean;
3990
+ };
3971
3991
  export type Profile = {
3972
3992
  archived_at?: string | null;
3973
3993
  color: string;
@@ -4374,7 +4394,7 @@ export type RecoverTaskRunRequest = {
4374
4394
  export type Redaction = {
4375
4395
  bytes?: number;
4376
4396
  path: string;
4377
- reason: "approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied";
4397
+ reason: "approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready";
4378
4398
  };
4379
4399
  export type Reference = {
4380
4400
  effective_paused?: boolean;
@@ -4422,6 +4442,9 @@ export type RenameSessionFolderRequest = {
4422
4442
  export type RenameSessionRequest = {
4423
4443
  name: string;
4424
4444
  };
4445
+ export type RenameWorkspaceFolderRequest = {
4446
+ name: string;
4447
+ };
4425
4448
  export type ReorderSessionFoldersRequest = {
4426
4449
  folder_ids: Array<string>;
4427
4450
  };
@@ -4429,6 +4452,13 @@ export type ReorderSessionsRequest = {
4429
4452
  folder_id?: string;
4430
4453
  session_ids: Array<string>;
4431
4454
  };
4455
+ export type ReorderWorkspaceFoldersRequest = {
4456
+ folder_ids: Array<string>;
4457
+ };
4458
+ export type ReorderWorkspacesRequest = {
4459
+ folder_id?: string;
4460
+ workspace_ids: Array<string>;
4461
+ };
4432
4462
  export type ReplaceSessionInputRequest = {
4433
4463
  idempotency_key: string;
4434
4464
  message_id: string;
@@ -4533,6 +4563,9 @@ export type RestartActionStatus = {
4533
4563
  status: "pending" | "stopping" | "waiting_release" | "starting" | "ready" | "failed";
4534
4564
  updated_at: string;
4535
4565
  };
4566
+ export type ResumeSessionFromLaterRequest = {
4567
+ with_children?: boolean;
4568
+ };
4536
4569
  export type ResumeTaskRequest = {
4537
4570
  metadata?: unknown;
4538
4571
  };
@@ -4960,7 +4993,7 @@ export type Selection = {
4960
4993
  export type SendPromptResultPayload = {
4961
4994
  canceled_queued_entries?: number;
4962
4995
  delivery: string;
4963
- disposition?: "direct" | "steering" | "queued" | "interrupting";
4996
+ disposition?: "direct" | "steering" | "queued" | "interrupting" | "later";
4964
4997
  entry_id?: string;
4965
4998
  estimated_send_at?: string | null;
4966
4999
  goal?: GoalCommandResult | null;
@@ -5048,11 +5081,13 @@ export type SessionAttentionSummaryPayload = {
5048
5081
  by_workspace: Array<WorkspaceAttentionSummaryPayload>;
5049
5082
  finished: number;
5050
5083
  needs_you: number;
5084
+ terminal_approvals?: Array<TerminalApprovalCountPayload>;
5051
5085
  };
5052
5086
  export type SessionBoardCountsPayload = {
5053
5087
  done: number;
5054
5088
  in_review: number;
5055
5089
  needs_you: number;
5090
+ waiting: number;
5056
5091
  working: number;
5057
5092
  };
5058
5093
  export type SessionCatalogFacetsPayload = {
@@ -5068,6 +5103,7 @@ export type SessionCatalogFacetsResponse = {
5068
5103
  by_profile: Array<SessionProfileFacetsPayload>;
5069
5104
  by_workspace: Array<SessionWorkspaceFacetsPayload>;
5070
5105
  facets: SessionCatalogFacetsPayload;
5106
+ later?: number;
5071
5107
  };
5072
5108
  export type SessionCatalogPagePayload = {
5073
5109
  has_more: boolean;
@@ -5084,6 +5120,7 @@ export type SessionChildrenPayload = {
5084
5120
  in_review: number;
5085
5121
  needs_you: number;
5086
5122
  total: number;
5123
+ waiting: number;
5087
5124
  working: number;
5088
5125
  };
5089
5126
  export type SessionCommandPayload = {
@@ -5460,6 +5497,12 @@ export type SessionInspectResponse = {
5460
5497
  export type SessionInteractionsResponse = {
5461
5498
  interactions: Array<PendingInteractionPayload>;
5462
5499
  };
5500
+ export type SessionLaterPayload = {
5501
+ parked_at: string;
5502
+ pending_messages: number;
5503
+ reason?: string;
5504
+ return_at?: string | null;
5505
+ };
5463
5506
  export type SessionLineagePayload = {
5464
5507
  auto_stop_on_parent: boolean;
5465
5508
  kind?: "" | "provenance" | "spawn" | "continue" | "fork" | "recovery";
@@ -5514,7 +5557,7 @@ export type SessionPayload = {
5514
5557
  attention_changed_at?: string | null;
5515
5558
  available_commands: Array<ACPAvailableCommandPayload>;
5516
5559
  badge: "running" | "idle" | "unhealthy" | "hung" | "waiting-for-auth" | "waiting-for-input" | "done" | "stopped" | "failed" | "unknown" | "needs-attention" | "waiting";
5517
- board_column: "needs_you" | "working" | "in_review" | "done";
5560
+ board_column: "needs_you" | "working" | "waiting" | "in_review" | "done";
5518
5561
  branch?: string;
5519
5562
  busy_input?: BusyInputState | null;
5520
5563
  children?: SessionChildrenPayload | null;
@@ -5527,11 +5570,13 @@ export type SessionPayload = {
5527
5570
  folder_id?: string;
5528
5571
  health?: SessionHealthPayload | null;
5529
5572
  id: string;
5573
+ later?: SessionLaterPayload | null;
5530
5574
  lineage?: SessionLineagePayload | null;
5531
5575
  monitor_summary?: SessionMonitorSummaryPayload | null;
5532
5576
  name?: string;
5533
5577
  parent_title?: string;
5534
5578
  pending_interactions: Array<PendingInteractionPayload>;
5579
+ process_summary?: SessionProcessSummaryPayload | null;
5535
5580
  profile_archived?: boolean;
5536
5581
  profile_color?: string;
5537
5582
  profile_emoji?: string;
@@ -5542,6 +5587,7 @@ export type SessionPayload = {
5542
5587
  pull_request_lookup: SessionPullRequestLookupPayload | null;
5543
5588
  queue?: SessionQueueSummaryPayload | null;
5544
5589
  reply_watches?: Array<ReplyWatchPayload>;
5590
+ returned_from_later_at?: string | null;
5545
5591
  runtime: SessionRuntimePayload;
5546
5592
  scope: string;
5547
5593
  state: "starting" | "active" | "stopping" | "stopped";
@@ -5567,6 +5613,52 @@ export type SessionPresenceRequest = {
5567
5613
  export type SessionPresenceResponse = {
5568
5614
  lease_id: string;
5569
5615
  };
5616
+ export type SessionProcessGroupPayload = {
5617
+ items: Array<SessionProcessPayload>;
5618
+ orphaned: boolean;
5619
+ profile: string;
5620
+ session_id: string;
5621
+ session_name: string;
5622
+ workspace_id: string;
5623
+ };
5624
+ export type SessionProcessPayload = {
5625
+ age_seconds: number;
5626
+ argv0: string;
5627
+ attribution: "env" | "lineage";
5628
+ command: string;
5629
+ cpu_percent?: number | null;
5630
+ cwd: string;
5631
+ kind: "background" | "tool" | "terminal";
5632
+ parent_alive: boolean;
5633
+ pgid: number;
5634
+ pid: number;
5635
+ ports: Array<number>;
5636
+ rss_kb?: number | null;
5637
+ started_at: string;
5638
+ terminal_id?: string;
5639
+ };
5640
+ export type SessionProcessResult = {
5641
+ error?: string;
5642
+ outcome: "terminated" | "already_exited" | "identity_mismatch" | "failed" | "unproven";
5643
+ pid: number;
5644
+ started_at: string;
5645
+ };
5646
+ export type SessionProcessSummaryPayload = {
5647
+ background: number;
5648
+ ports: Array<number>;
5649
+ supported: boolean;
5650
+ terminals: number;
5651
+ total: number;
5652
+ };
5653
+ export type SessionProcessTarget = {
5654
+ pid: number;
5655
+ started_at: string;
5656
+ };
5657
+ export type SessionProcessesResponse = {
5658
+ items: Array<SessionProcessPayload>;
5659
+ scanned_at: string;
5660
+ supported: boolean;
5661
+ };
5570
5662
  export type SessionProfileFacetsPayload = {
5571
5663
  facets: SessionCatalogFacetsPayload;
5572
5664
  profile_id: string;
@@ -6149,6 +6241,7 @@ export type SettingsMCPAuthStatusPayload = {
6149
6241
  client_id?: string;
6150
6242
  diagnostic?: string;
6151
6243
  expires_at?: string | null;
6244
+ inherited?: boolean;
6152
6245
  issuer?: string;
6153
6246
  owner: string;
6154
6247
  profile?: string;
@@ -7062,6 +7155,7 @@ export type StepProgress = {
7062
7155
  steps_total: number;
7063
7156
  };
7064
7157
  export type StopSessionRequest = {
7158
+ processes?: "keep" | "terminate";
7065
7159
  wait?: boolean | null;
7066
7160
  };
7067
7161
  export type StopWhenSpec = string | {
@@ -7976,6 +8070,11 @@ export type TasksResponse = {
7976
8070
  export type TerminalAnswerInputRequest = {
7977
8071
  input: string;
7978
8072
  };
8073
+ export type TerminalApprovalCountPayload = {
8074
+ count: number;
8075
+ profile_id: string;
8076
+ workspace_id: string;
8077
+ };
7979
8078
  export type TerminalAttachTicketRequest = {
7980
8079
  client_id?: string;
7981
8080
  mode: "read" | "write";
@@ -8021,6 +8120,7 @@ export type TerminalCreateRequest = {
8021
8120
  rows?: number;
8022
8121
  shell?: string;
8023
8122
  title?: string;
8123
+ worktree?: string;
8024
8124
  };
8025
8125
  export type TerminalDeliveredResponse = {
8026
8126
  delivered: boolean;
@@ -8197,6 +8297,17 @@ export type TerminalWaitResponse = {
8197
8297
  screen: string;
8198
8298
  untrusted: boolean;
8199
8299
  };
8300
+ export type TerminateProcessesRequest = {
8301
+ targets: Array<SessionProcessTarget>;
8302
+ };
8303
+ export type TerminateSessionProcessesRequest = {
8304
+ all?: boolean;
8305
+ targets?: Array<SessionProcessTarget>;
8306
+ };
8307
+ export type TerminateSessionProcessesResponse = {
8308
+ results: Array<SessionProcessResult>;
8309
+ supported: boolean;
8310
+ };
8200
8311
  export type TimelineEntry = {
8201
8312
  at: string;
8202
8313
  attempt?: number;
@@ -8314,7 +8425,7 @@ export type ToolAvailabilityPayload = {
8314
8425
  conflicted: boolean;
8315
8426
  enabled: boolean;
8316
8427
  executable: boolean;
8317
- reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied">;
8428
+ reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready">;
8318
8429
  registered: boolean;
8319
8430
  };
8320
8431
  export type ToolBackendRefPayload = {
@@ -8334,12 +8445,12 @@ export type ToolCallEventPayload = {
8334
8445
  destructive: boolean;
8335
8446
  display_title?: string;
8336
8447
  duration_ms?: number;
8337
- 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";
8448
+ 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_in_later" | "session_later_stop_failed" | "session_worktree_conflict" | "slow_consumer" | "subagent_later_follows_parent" | "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";
8338
8449
  input_digest?: string;
8339
8450
  kind: "tool.call_started" | "tool.call_completed" | "tool.call_failed" | "tool.call_denied" | "tool.result_truncated";
8340
8451
  open_world: boolean;
8341
8452
  read_only: boolean;
8342
- reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied">;
8453
+ reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready">;
8343
8454
  redacted_input_fields?: Array<string>;
8344
8455
  result_bytes?: number;
8345
8456
  result_digest?: string;
@@ -8386,14 +8497,14 @@ export type ToolDescriptorPayload = {
8386
8497
  visibility: "internal" | "operator" | "session" | "model";
8387
8498
  };
8388
8499
  export type ToolErrorPayload = {
8389
- 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";
8500
+ 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_in_later" | "session_later_stop_failed" | "session_worktree_conflict" | "slow_consumer" | "subagent_later_follows_parent" | "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";
8390
8501
  details?: {
8391
8502
  [key: string]: unknown;
8392
8503
  };
8393
8504
  layer?: string;
8394
8505
  message: string;
8395
8506
  partial_result?: ToolResult | null;
8396
- reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied">;
8507
+ reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready">;
8397
8508
  tool_id?: string;
8398
8509
  };
8399
8510
  export type ToolErrorResponse = {
@@ -8429,7 +8540,7 @@ export type ToolPolicyDecisionPayload = {
8429
8540
  availability_result?: string;
8430
8541
  callable: boolean;
8431
8542
  hook_result?: string;
8432
- reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied">;
8543
+ reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready">;
8433
8544
  registry_policy_result?: string;
8434
8545
  session_policy_result?: string;
8435
8546
  source_policy_result?: string;
@@ -8477,7 +8588,7 @@ export type ToolsResponse = {
8477
8588
  export type ToolsetPayload = {
8478
8589
  expanded_tools?: Array<string>;
8479
8590
  id: string;
8480
- reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied">;
8591
+ reason_codes?: Array<"approval_canceled" | "approval_rejected" | "approval_required" | "approval_timed_out" | "approval_token_expired" | "approval_token_mismatch" | "approval_token_missing" | "approval_token_replayed" | "approval_unreachable" | "backend_not_executable" | "backend_unhealthy" | "call_canceled" | "call_timed_out" | "config_path_not_found" | "conflicted_id" | "conflicted_sanitized_name" | "dependency_missing" | "extension_capability_missing" | "extension_inactive" | "extension_runtime_mismatch" | "generation_fenced" | "handler_missing" | "hook_denied" | "id_empty" | "id_empty_segment" | "id_invalid_format" | "id_too_long" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "loop_source_immutable" | "loop_version_conflict" | "mcp_auth_expired" | "mcp_auth_invalid" | "mcp_auth_refresh_failed" | "mcp_auth_required" | "mcp_auth_unconfigured" | "mcp_unreachable" | "policy_denied" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "reserved_conflict" | "reserved_namespace" | "result_budget_exceeded" | "result_persistence_failed" | "runtime_descriptor_mismatch" | "runtime_descriptor_missing" | "schema_invalid" | "secret_metadata" | "session_denied" | "skill_definition_invalid" | "skill_resource_not_found" | "slow_consumer" | "source_disabled" | "spawn_budget_exhausted" | "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_artifact_corrupt" | "tool_artifact_not_found" | "tool_unknown" | "toolset_cycle" | "toolset_unknown" | "visibility_denied" | "worktree_missing" | "worktree_not_found" | "worktree_not_ready">;
8481
8592
  status: string;
8482
8593
  tools?: Array<string>;
8483
8594
  toolsets?: Array<string>;
@@ -8972,6 +9083,22 @@ export type WorkspaceDetailPayload = {
8972
9083
  skills?: Array<WorkspaceSkillPayload>;
8973
9084
  workspace: WorkspacePayload;
8974
9085
  };
9086
+ export type WorkspaceFolderPayload = {
9087
+ created_at: string;
9088
+ id: string;
9089
+ name: string;
9090
+ position: number;
9091
+ profile_id: string;
9092
+ updated_at: string;
9093
+ workspace_count: number;
9094
+ };
9095
+ export type WorkspaceFolderResponse = {
9096
+ folder: WorkspaceFolderPayload;
9097
+ };
9098
+ export type WorkspaceLayoutResponse = {
9099
+ folders: Array<WorkspaceFolderPayload>;
9100
+ placements: Array<WorkspacePlacementPayload>;
9101
+ };
8975
9102
  export type WorkspacePayload = {
8976
9103
  add_dirs: Array<string>;
8977
9104
  archived_at?: string | null;
@@ -8983,6 +9110,11 @@ export type WorkspacePayload = {
8983
9110
  root_missing?: boolean;
8984
9111
  updated_at: string;
8985
9112
  };
9113
+ export type WorkspacePlacementPayload = {
9114
+ folder_id?: string;
9115
+ position: number;
9116
+ workspace_id: string;
9117
+ };
8986
9118
  export type WorkspaceProfileHintPayload = {
8987
9119
  action: string;
8988
9120
  message: string;
@@ -9097,6 +9229,7 @@ export type WorktreePayload = {
9097
9229
  base_ref?: string;
9098
9230
  behind: number | null;
9099
9231
  branch: string;
9232
+ create_error?: string;
9100
9233
  created_at: string;
9101
9234
  created_branch: boolean;
9102
9235
  created_head?: string;
@@ -15682,6 +15815,107 @@ export type GetOpenAPIDocumentResponses = {
15682
15815
  */
15683
15816
  200: unknown;
15684
15817
  };
15818
+ export type ListProcessesData = {
15819
+ body?: never;
15820
+ path?: never;
15821
+ query?: {
15822
+ /**
15823
+ * Workspace ID, or @user; mutually exclusive with all_workspaces
15824
+ */
15825
+ workspace_id?: string;
15826
+ /**
15827
+ * Include all projects and User sessions
15828
+ */
15829
+ all_workspaces?: boolean;
15830
+ /**
15831
+ * Only processes of stopped, archived, deleted or unknown sessions
15832
+ */
15833
+ orphaned?: boolean;
15834
+ /**
15835
+ * Read one profile's rows by name
15836
+ */
15837
+ profile?: string;
15838
+ /**
15839
+ * Read the owner-labeled all-profiles aggregate
15840
+ */
15841
+ all_profiles?: boolean;
15842
+ };
15843
+ url: "/api/processes";
15844
+ };
15845
+ export type ListProcessesErrors = {
15846
+ /**
15847
+ * Invalid process request
15848
+ */
15849
+ 400: ErrorPayload;
15850
+ /**
15851
+ * Process scope denied
15852
+ */
15853
+ 403: ErrorPayload;
15854
+ /**
15855
+ * Session not found
15856
+ */
15857
+ 404: ErrorPayload;
15858
+ /**
15859
+ * Internal server error
15860
+ */
15861
+ 500: ErrorPayload;
15862
+ /**
15863
+ * Process scanner unavailable
15864
+ */
15865
+ 503: ErrorPayload;
15866
+ };
15867
+ export type ListProcessesError = ListProcessesErrors[keyof ListProcessesErrors];
15868
+ export type ListProcessesResponses = {
15869
+ /**
15870
+ * Success
15871
+ */
15872
+ 200: ProcessesResponse;
15873
+ };
15874
+ export type ListProcessesResponse = ListProcessesResponses[keyof ListProcessesResponses];
15875
+ export type TerminateProcessesData = {
15876
+ /**
15877
+ * JSON request body
15878
+ */
15879
+ body: TerminateProcessesRequest;
15880
+ path?: never;
15881
+ query?: {
15882
+ /**
15883
+ * Act as this profile by name
15884
+ */
15885
+ profile?: string;
15886
+ };
15887
+ url: "/api/processes/terminate";
15888
+ };
15889
+ export type TerminateProcessesErrors = {
15890
+ /**
15891
+ * Invalid process request
15892
+ */
15893
+ 400: ErrorPayload;
15894
+ /**
15895
+ * Process scope denied
15896
+ */
15897
+ 403: ErrorPayload;
15898
+ /**
15899
+ * Session not found
15900
+ */
15901
+ 404: ErrorPayload;
15902
+ /**
15903
+ * Internal server error
15904
+ */
15905
+ 500: ErrorPayload;
15906
+ /**
15907
+ * Process scanner unavailable
15908
+ */
15909
+ 503: ErrorPayload;
15910
+ };
15911
+ export type TerminateProcessesError = TerminateProcessesErrors[keyof TerminateProcessesErrors];
15912
+ export type TerminateProcessesResponses = {
15913
+ /**
15914
+ * Success
15915
+ */
15916
+ 200: TerminateSessionProcessesResponse;
15917
+ };
15918
+ export type TerminateProcessesResponse = TerminateProcessesResponses[keyof TerminateProcessesResponses];
15685
15919
  export type ListProfilesData = {
15686
15920
  body?: never;
15687
15921
  path?: never;
@@ -17473,7 +17707,7 @@ export type ListSessionsData = {
17473
17707
  */
17474
17708
  attention?: boolean;
17475
17709
  /**
17476
- * Repeatable board column filter: needs_you, working, in_review, done
17710
+ * Repeatable board column filter: needs_you, working, waiting, in_review, done
17477
17711
  */
17478
17712
  board_column?: Array<string>;
17479
17713
  /**
@@ -17484,6 +17718,10 @@ export type ListSessionsData = {
17484
17718
  * Archived session visibility
17485
17719
  */
17486
17720
  archive?: "exclude" | "only" | "include";
17721
+ /**
17722
+ * Visibility of sessions parked in Later; excluded by default
17723
+ */
17724
+ later?: "exclude" | "only" | "include";
17487
17725
  /**
17488
17726
  * Stable session ordering
17489
17727
  */
@@ -17665,6 +17903,10 @@ export type ListSessionFacetsData = {
17665
17903
  * Archived session visibility
17666
17904
  */
17667
17905
  archive?: "exclude" | "only" | "include";
17906
+ /**
17907
+ * Visibility of sessions parked in Later; excluded by default
17908
+ */
17909
+ later?: "exclude" | "only" | "include";
17668
17910
  /**
17669
17911
  * Read one profile's rows by name
17670
17912
  */
@@ -23830,137 +24072,473 @@ export type DeliverWorkspaceWebhookResponses = {
23830
24072
  200: WebhookDeliveryResponse;
23831
24073
  };
23832
24074
  export type DeliverWorkspaceWebhookResponse = DeliverWorkspaceWebhookResponses[keyof DeliverWorkspaceWebhookResponses];
23833
- export type ListWorkspacesData = {
24075
+ export type GetWorkspaceLayoutData = {
23834
24076
  body?: never;
23835
24077
  path?: never;
23836
24078
  query?: {
23837
24079
  /**
23838
- * List archived projects instead of active projects
24080
+ * Act as this profile by name
23839
24081
  */
23840
- archived?: boolean;
24082
+ profile?: string;
23841
24083
  };
23842
- url: "/api/workspaces";
23843
- };
23844
- export type ListWorkspacesErrors = {
23845
- /**
23846
- * Internal server error
23847
- */
23848
- 500: ErrorPayload;
23849
- };
23850
- export type ListWorkspacesError = ListWorkspacesErrors[keyof ListWorkspacesErrors];
23851
- export type ListWorkspacesResponses = {
23852
- /**
23853
- * OK
23854
- */
23855
- 200: WorkspacesResponse;
24084
+ url: "/api/workspace-folders";
23856
24085
  };
23857
- export type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
23858
- export type CreateWorkspaceData = {
23859
- /**
23860
- * JSON request body
23861
- */
23862
- body: CreateWorkspaceRequest;
23863
- path?: never;
23864
- query?: never;
23865
- url: "/api/workspaces";
23866
- };
23867
- export type CreateWorkspaceErrors = {
24086
+ export type GetWorkspaceLayoutErrors = {
23868
24087
  /**
23869
- * Invalid workspace request
24088
+ * Invalid layout request
23870
24089
  */
23871
24090
  400: ErrorPayload;
23872
24091
  /**
23873
- * Workspace conflict
24092
+ * Operator or unrestricted agent required
23874
24093
  */
23875
- 409: ErrorPayload;
24094
+ 403: ErrorPayload;
23876
24095
  /**
23877
- * Unknown workspace config keys (workspace_config_invalid)
24096
+ * Workspace or workspace folder not found
23878
24097
  */
23879
- 422: ErrorPayload;
24098
+ 404: ErrorPayload;
23880
24099
  /**
23881
24100
  * Internal server error
23882
24101
  */
23883
24102
  500: ErrorPayload;
24103
+ /**
24104
+ * Workspace layout unavailable
24105
+ */
24106
+ 503: ErrorPayload;
23884
24107
  };
23885
- export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
23886
- export type CreateWorkspaceResponses = {
24108
+ export type GetWorkspaceLayoutError = GetWorkspaceLayoutErrors[keyof GetWorkspaceLayoutErrors];
24109
+ export type GetWorkspaceLayoutResponses = {
23887
24110
  /**
23888
- * Created
24111
+ * OK
23889
24112
  */
23890
- 201: WorkspaceResponse;
24113
+ 200: WorkspaceLayoutResponse;
23891
24114
  };
23892
- export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
23893
- export type ResolveWorkspaceData = {
24115
+ export type GetWorkspaceLayoutResponse = GetWorkspaceLayoutResponses[keyof GetWorkspaceLayoutResponses];
24116
+ export type CreateWorkspaceFolderData = {
23894
24117
  /**
23895
24118
  * JSON request body
23896
24119
  */
23897
- body: ResolveWorkspaceRequest;
24120
+ body: CreateWorkspaceFolderRequest;
23898
24121
  path?: never;
23899
- query?: never;
23900
- url: "/api/workspaces/resolve";
24122
+ query?: {
24123
+ /**
24124
+ * Act as this profile by name
24125
+ */
24126
+ profile?: string;
24127
+ };
24128
+ url: "/api/workspace-folders";
23901
24129
  };
23902
- export type ResolveWorkspaceErrors = {
24130
+ export type CreateWorkspaceFolderErrors = {
23903
24131
  /**
23904
- * Invalid workspace path
24132
+ * Invalid layout request
23905
24133
  */
23906
24134
  400: ErrorPayload;
23907
24135
  /**
23908
- * Workspace not found
24136
+ * Operator or unrestricted agent required
24137
+ */
24138
+ 403: ErrorPayload;
24139
+ /**
24140
+ * Workspace or workspace folder not found
23909
24141
  */
23910
24142
  404: ErrorPayload;
23911
24143
  /**
23912
- * Unknown workspace config keys (workspace_config_invalid)
24144
+ * Layout conflict or folder limit
23913
24145
  */
23914
- 422: ErrorPayload;
24146
+ 409: ErrorPayload;
23915
24147
  /**
23916
24148
  * Internal server error
23917
24149
  */
23918
24150
  500: ErrorPayload;
24151
+ /**
24152
+ * Workspace layout unavailable
24153
+ */
24154
+ 503: ErrorPayload;
23919
24155
  };
23920
- export type ResolveWorkspaceError = ResolveWorkspaceErrors[keyof ResolveWorkspaceErrors];
23921
- export type ResolveWorkspaceResponses = {
24156
+ export type CreateWorkspaceFolderError = CreateWorkspaceFolderErrors[keyof CreateWorkspaceFolderErrors];
24157
+ export type CreateWorkspaceFolderResponses = {
23922
24158
  /**
23923
24159
  * OK
23924
24160
  */
23925
- 200: WorkspaceResponse;
24161
+ 201: WorkspaceFolderResponse;
23926
24162
  };
23927
- export type ResolveWorkspaceResponse = ResolveWorkspaceResponses[keyof ResolveWorkspaceResponses];
23928
- export type DeleteWorkspaceData = {
24163
+ export type CreateWorkspaceFolderResponse = CreateWorkspaceFolderResponses[keyof CreateWorkspaceFolderResponses];
24164
+ export type DeleteWorkspaceFolderData = {
23929
24165
  body?: never;
23930
24166
  path: {
23931
24167
  /**
23932
- * Workspace id
24168
+ * Workspace folder id
23933
24169
  */
23934
- id: string;
24170
+ folder_id: string;
23935
24171
  };
23936
- query?: never;
23937
- url: "/api/workspaces/{id}";
24172
+ query?: {
24173
+ /**
24174
+ * Act as this profile by name
24175
+ */
24176
+ profile?: string;
24177
+ };
24178
+ url: "/api/workspace-folders/{folder_id}";
23938
24179
  };
23939
- export type DeleteWorkspaceErrors = {
24180
+ export type DeleteWorkspaceFolderErrors = {
23940
24181
  /**
23941
- * Workspace not found
24182
+ * Invalid layout request
24183
+ */
24184
+ 400: ErrorPayload;
24185
+ /**
24186
+ * Operator or unrestricted agent required
24187
+ */
24188
+ 403: ErrorPayload;
24189
+ /**
24190
+ * Workspace or workspace folder not found
23942
24191
  */
23943
24192
  404: ErrorPayload;
24193
+ /**
24194
+ * Layout conflict or folder limit
24195
+ */
24196
+ 409: ErrorPayload;
23944
24197
  /**
23945
24198
  * Internal server error
23946
24199
  */
23947
24200
  500: ErrorPayload;
24201
+ /**
24202
+ * Workspace layout unavailable
24203
+ */
24204
+ 503: ErrorPayload;
23948
24205
  };
23949
- export type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
23950
- export type DeleteWorkspaceResponses = {
24206
+ export type DeleteWorkspaceFolderError = DeleteWorkspaceFolderErrors[keyof DeleteWorkspaceFolderErrors];
24207
+ export type DeleteWorkspaceFolderResponses = {
23951
24208
  /**
23952
- * No Content
24209
+ * OK
23953
24210
  */
23954
- 204: void;
24211
+ 200: WorkspaceLayoutResponse;
23955
24212
  };
23956
- export type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
23957
- export type GetWorkspaceData = {
23958
- body?: never;
24213
+ export type DeleteWorkspaceFolderResponse = DeleteWorkspaceFolderResponses[keyof DeleteWorkspaceFolderResponses];
24214
+ export type RenameWorkspaceFolderData = {
24215
+ /**
24216
+ * JSON request body
24217
+ */
24218
+ body: RenameWorkspaceFolderRequest;
23959
24219
  path: {
23960
24220
  /**
23961
- * Workspace id or path
24221
+ * Workspace folder id
23962
24222
  */
23963
- id: string;
24223
+ folder_id: string;
24224
+ };
24225
+ query?: {
24226
+ /**
24227
+ * Act as this profile by name
24228
+ */
24229
+ profile?: string;
24230
+ };
24231
+ url: "/api/workspace-folders/{folder_id}";
24232
+ };
24233
+ export type RenameWorkspaceFolderErrors = {
24234
+ /**
24235
+ * Invalid layout request
24236
+ */
24237
+ 400: ErrorPayload;
24238
+ /**
24239
+ * Operator or unrestricted agent required
24240
+ */
24241
+ 403: ErrorPayload;
24242
+ /**
24243
+ * Workspace or workspace folder not found
24244
+ */
24245
+ 404: ErrorPayload;
24246
+ /**
24247
+ * Layout conflict or folder limit
24248
+ */
24249
+ 409: ErrorPayload;
24250
+ /**
24251
+ * Internal server error
24252
+ */
24253
+ 500: ErrorPayload;
24254
+ /**
24255
+ * Workspace layout unavailable
24256
+ */
24257
+ 503: ErrorPayload;
24258
+ };
24259
+ export type RenameWorkspaceFolderError = RenameWorkspaceFolderErrors[keyof RenameWorkspaceFolderErrors];
24260
+ export type RenameWorkspaceFolderResponses = {
24261
+ /**
24262
+ * OK
24263
+ */
24264
+ 200: WorkspaceFolderResponse;
24265
+ };
24266
+ export type RenameWorkspaceFolderResponse = RenameWorkspaceFolderResponses[keyof RenameWorkspaceFolderResponses];
24267
+ export type ReorderWorkspaceFoldersData = {
24268
+ /**
24269
+ * JSON request body
24270
+ */
24271
+ body: ReorderWorkspaceFoldersRequest;
24272
+ path?: never;
24273
+ query?: {
24274
+ /**
24275
+ * Act as this profile by name
24276
+ */
24277
+ profile?: string;
24278
+ };
24279
+ url: "/api/workspace-order/folders";
24280
+ };
24281
+ export type ReorderWorkspaceFoldersErrors = {
24282
+ /**
24283
+ * Invalid layout request
24284
+ */
24285
+ 400: ErrorPayload;
24286
+ /**
24287
+ * Operator or unrestricted agent required
24288
+ */
24289
+ 403: ErrorPayload;
24290
+ /**
24291
+ * Workspace or workspace folder not found
24292
+ */
24293
+ 404: ErrorPayload;
24294
+ /**
24295
+ * Layout conflict or folder limit
24296
+ */
24297
+ 409: ErrorPayload;
24298
+ /**
24299
+ * Internal server error
24300
+ */
24301
+ 500: ErrorPayload;
24302
+ /**
24303
+ * Workspace layout unavailable
24304
+ */
24305
+ 503: ErrorPayload;
24306
+ };
24307
+ export type ReorderWorkspaceFoldersError = ReorderWorkspaceFoldersErrors[keyof ReorderWorkspaceFoldersErrors];
24308
+ export type ReorderWorkspaceFoldersResponses = {
24309
+ /**
24310
+ * OK
24311
+ */
24312
+ 200: WorkspaceLayoutResponse;
24313
+ };
24314
+ export type ReorderWorkspaceFoldersResponse = ReorderWorkspaceFoldersResponses[keyof ReorderWorkspaceFoldersResponses];
24315
+ export type MoveWorkspaceData = {
24316
+ /**
24317
+ * JSON request body
24318
+ */
24319
+ body: MoveWorkspaceRequest;
24320
+ path?: never;
24321
+ query?: {
24322
+ /**
24323
+ * Act as this profile by name
24324
+ */
24325
+ profile?: string;
24326
+ };
24327
+ url: "/api/workspace-order/move";
24328
+ };
24329
+ export type MoveWorkspaceErrors = {
24330
+ /**
24331
+ * Invalid layout request
24332
+ */
24333
+ 400: ErrorPayload;
24334
+ /**
24335
+ * Operator or unrestricted agent required
24336
+ */
24337
+ 403: ErrorPayload;
24338
+ /**
24339
+ * Workspace or workspace folder not found
24340
+ */
24341
+ 404: ErrorPayload;
24342
+ /**
24343
+ * Layout conflict or folder limit
24344
+ */
24345
+ 409: ErrorPayload;
24346
+ /**
24347
+ * Internal server error
24348
+ */
24349
+ 500: ErrorPayload;
24350
+ /**
24351
+ * Workspace layout unavailable
24352
+ */
24353
+ 503: ErrorPayload;
24354
+ };
24355
+ export type MoveWorkspaceError = MoveWorkspaceErrors[keyof MoveWorkspaceErrors];
24356
+ export type MoveWorkspaceResponses = {
24357
+ /**
24358
+ * OK
24359
+ */
24360
+ 200: WorkspaceLayoutResponse;
24361
+ };
24362
+ export type MoveWorkspaceResponse = MoveWorkspaceResponses[keyof MoveWorkspaceResponses];
24363
+ export type ReorderWorkspacesData = {
24364
+ /**
24365
+ * JSON request body
24366
+ */
24367
+ body: ReorderWorkspacesRequest;
24368
+ path?: never;
24369
+ query?: {
24370
+ /**
24371
+ * Act as this profile by name
24372
+ */
24373
+ profile?: string;
24374
+ };
24375
+ url: "/api/workspace-order/workspaces";
24376
+ };
24377
+ export type ReorderWorkspacesErrors = {
24378
+ /**
24379
+ * Invalid layout request
24380
+ */
24381
+ 400: ErrorPayload;
24382
+ /**
24383
+ * Operator or unrestricted agent required
24384
+ */
24385
+ 403: ErrorPayload;
24386
+ /**
24387
+ * Workspace or workspace folder not found
24388
+ */
24389
+ 404: ErrorPayload;
24390
+ /**
24391
+ * Layout conflict or folder limit
24392
+ */
24393
+ 409: ErrorPayload;
24394
+ /**
24395
+ * Internal server error
24396
+ */
24397
+ 500: ErrorPayload;
24398
+ /**
24399
+ * Workspace layout unavailable
24400
+ */
24401
+ 503: ErrorPayload;
24402
+ };
24403
+ export type ReorderWorkspacesError = ReorderWorkspacesErrors[keyof ReorderWorkspacesErrors];
24404
+ export type ReorderWorkspacesResponses = {
24405
+ /**
24406
+ * OK
24407
+ */
24408
+ 200: WorkspaceLayoutResponse;
24409
+ };
24410
+ export type ReorderWorkspacesResponse = ReorderWorkspacesResponses[keyof ReorderWorkspacesResponses];
24411
+ export type ListWorkspacesData = {
24412
+ body?: never;
24413
+ path?: never;
24414
+ query?: {
24415
+ /**
24416
+ * List archived projects instead of active projects
24417
+ */
24418
+ archived?: boolean;
24419
+ };
24420
+ url: "/api/workspaces";
24421
+ };
24422
+ export type ListWorkspacesErrors = {
24423
+ /**
24424
+ * Internal server error
24425
+ */
24426
+ 500: ErrorPayload;
24427
+ };
24428
+ export type ListWorkspacesError = ListWorkspacesErrors[keyof ListWorkspacesErrors];
24429
+ export type ListWorkspacesResponses = {
24430
+ /**
24431
+ * OK
24432
+ */
24433
+ 200: WorkspacesResponse;
24434
+ };
24435
+ export type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
24436
+ export type CreateWorkspaceData = {
24437
+ /**
24438
+ * JSON request body
24439
+ */
24440
+ body: CreateWorkspaceRequest;
24441
+ path?: never;
24442
+ query?: never;
24443
+ url: "/api/workspaces";
24444
+ };
24445
+ export type CreateWorkspaceErrors = {
24446
+ /**
24447
+ * Invalid workspace request
24448
+ */
24449
+ 400: ErrorPayload;
24450
+ /**
24451
+ * Workspace conflict
24452
+ */
24453
+ 409: ErrorPayload;
24454
+ /**
24455
+ * Unknown workspace config keys (workspace_config_invalid)
24456
+ */
24457
+ 422: ErrorPayload;
24458
+ /**
24459
+ * Internal server error
24460
+ */
24461
+ 500: ErrorPayload;
24462
+ };
24463
+ export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
24464
+ export type CreateWorkspaceResponses = {
24465
+ /**
24466
+ * Created
24467
+ */
24468
+ 201: WorkspaceResponse;
24469
+ };
24470
+ export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
24471
+ export type ResolveWorkspaceData = {
24472
+ /**
24473
+ * JSON request body
24474
+ */
24475
+ body: ResolveWorkspaceRequest;
24476
+ path?: never;
24477
+ query?: never;
24478
+ url: "/api/workspaces/resolve";
24479
+ };
24480
+ export type ResolveWorkspaceErrors = {
24481
+ /**
24482
+ * Invalid workspace path
24483
+ */
24484
+ 400: ErrorPayload;
24485
+ /**
24486
+ * Workspace not found
24487
+ */
24488
+ 404: ErrorPayload;
24489
+ /**
24490
+ * Unknown workspace config keys (workspace_config_invalid)
24491
+ */
24492
+ 422: ErrorPayload;
24493
+ /**
24494
+ * Internal server error
24495
+ */
24496
+ 500: ErrorPayload;
24497
+ };
24498
+ export type ResolveWorkspaceError = ResolveWorkspaceErrors[keyof ResolveWorkspaceErrors];
24499
+ export type ResolveWorkspaceResponses = {
24500
+ /**
24501
+ * OK
24502
+ */
24503
+ 200: WorkspaceResponse;
24504
+ };
24505
+ export type ResolveWorkspaceResponse = ResolveWorkspaceResponses[keyof ResolveWorkspaceResponses];
24506
+ export type DeleteWorkspaceData = {
24507
+ body?: never;
24508
+ path: {
24509
+ /**
24510
+ * Workspace id
24511
+ */
24512
+ id: string;
24513
+ };
24514
+ query?: never;
24515
+ url: "/api/workspaces/{id}";
24516
+ };
24517
+ export type DeleteWorkspaceErrors = {
24518
+ /**
24519
+ * Workspace not found
24520
+ */
24521
+ 404: ErrorPayload;
24522
+ /**
24523
+ * Internal server error
24524
+ */
24525
+ 500: ErrorPayload;
24526
+ };
24527
+ export type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
24528
+ export type DeleteWorkspaceResponses = {
24529
+ /**
24530
+ * No Content
24531
+ */
24532
+ 204: void;
24533
+ };
24534
+ export type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
24535
+ export type GetWorkspaceData = {
24536
+ body?: never;
24537
+ path: {
24538
+ /**
24539
+ * Workspace id or path
24540
+ */
24541
+ id: string;
23964
24542
  };
23965
24543
  query?: never;
23966
24544
  url: "/api/workspaces/{id}";
@@ -26859,7 +27437,7 @@ export type ListWorkspaceSessionsData = {
26859
27437
  */
26860
27438
  attention?: boolean;
26861
27439
  /**
26862
- * Repeatable board column filter: needs_you, working, in_review, done
27440
+ * Repeatable board column filter: needs_you, working, waiting, in_review, done
26863
27441
  */
26864
27442
  board_column?: Array<string>;
26865
27443
  /**
@@ -26870,6 +27448,10 @@ export type ListWorkspaceSessionsData = {
26870
27448
  * Archived session visibility
26871
27449
  */
26872
27450
  archive?: "exclude" | "only" | "include";
27451
+ /**
27452
+ * Visibility of sessions parked in Later; excluded by default
27453
+ */
27454
+ later?: "exclude" | "only" | "include";
26873
27455
  /**
26874
27456
  * Stable session ordering
26875
27457
  */
@@ -26936,6 +27518,10 @@ export type DeleteSessionData = {
26936
27518
  session_id: string;
26937
27519
  };
26938
27520
  query?: {
27521
+ /**
27522
+ * Keep (default) or terminate attributed session processes
27523
+ */
27524
+ processes?: "keep" | "terminate";
26939
27525
  /**
26940
27526
  * Act as this profile by name
26941
27527
  */
@@ -26944,14 +27530,26 @@ export type DeleteSessionData = {
26944
27530
  url: "/api/workspaces/{workspace_id}/sessions/{session_id}";
26945
27531
  };
26946
27532
  export type DeleteSessionErrors = {
27533
+ /**
27534
+ * Invalid process policy
27535
+ */
27536
+ 400: ErrorPayload;
26947
27537
  /**
26948
27538
  * Session not found
26949
27539
  */
26950
27540
  404: ErrorPayload;
27541
+ /**
27542
+ * Process cleanup could not be verified
27543
+ */
27544
+ 409: ErrorPayload;
26951
27545
  /**
26952
27546
  * Internal server error
26953
27547
  */
26954
27548
  500: ErrorPayload;
27549
+ /**
27550
+ * Service unavailable - dependent service missing
27551
+ */
27552
+ 503: ErrorPayload;
26955
27553
  };
26956
27554
  export type DeleteSessionError = DeleteSessionErrors[keyof DeleteSessionErrors];
26957
27555
  export type DeleteSessionResponses = {
@@ -27109,6 +27707,10 @@ export type ArchiveSessionData = {
27109
27707
  session_id: string;
27110
27708
  };
27111
27709
  query?: {
27710
+ /**
27711
+ * Keep (default) or terminate attributed session processes
27712
+ */
27713
+ processes?: "keep" | "terminate";
27112
27714
  /**
27113
27715
  * Stop a live session through the normal stop path before archiving it; a failed stop leaves it unarchived
27114
27716
  */
@@ -28123,6 +28725,59 @@ export type ListSessionInteractionsResponses = {
28123
28725
  200: SessionInteractionsResponse;
28124
28726
  };
28125
28727
  export type ListSessionInteractionsResponse = ListSessionInteractionsResponses[keyof ListSessionInteractionsResponses];
28728
+ export type MoveSessionToLaterData = {
28729
+ /**
28730
+ * JSON request body
28731
+ */
28732
+ body?: MoveSessionToLaterRequest;
28733
+ path: {
28734
+ /**
28735
+ * Workspace id
28736
+ */
28737
+ workspace_id: string;
28738
+ /**
28739
+ * Session id
28740
+ */
28741
+ session_id: string;
28742
+ };
28743
+ query?: {
28744
+ /**
28745
+ * Act as this profile by name
28746
+ */
28747
+ profile?: string;
28748
+ };
28749
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/later";
28750
+ };
28751
+ export type MoveSessionToLaterErrors = {
28752
+ /**
28753
+ * Invalid Move to Later request
28754
+ */
28755
+ 400: ErrorPayload;
28756
+ /**
28757
+ * Session not found
28758
+ */
28759
+ 404: ErrorPayload;
28760
+ /**
28761
+ * Subagents move with their parent, or the session tree could not be stopped
28762
+ */
28763
+ 409: ErrorPayload;
28764
+ /**
28765
+ * Internal server error
28766
+ */
28767
+ 500: ErrorPayload;
28768
+ /**
28769
+ * Service unavailable - dependent service missing
28770
+ */
28771
+ 503: ErrorPayload;
28772
+ };
28773
+ export type MoveSessionToLaterError = MoveSessionToLaterErrors[keyof MoveSessionToLaterErrors];
28774
+ export type MoveSessionToLaterResponses = {
28775
+ /**
28776
+ * OK
28777
+ */
28778
+ 200: SessionResponse;
28779
+ };
28780
+ export type MoveSessionToLaterResponse = MoveSessionToLaterResponses[keyof MoveSessionToLaterResponses];
28126
28781
  export type ListSessionMonitorsData = {
28127
28782
  body?: never;
28128
28783
  path: {
@@ -28435,6 +29090,113 @@ export type UpdateSessionPresenceResponses = {
28435
29090
  204: void;
28436
29091
  };
28437
29092
  export type UpdateSessionPresenceResponse = UpdateSessionPresenceResponses[keyof UpdateSessionPresenceResponses];
29093
+ export type ListSessionProcessesData = {
29094
+ body?: never;
29095
+ path: {
29096
+ /**
29097
+ * Workspace id
29098
+ */
29099
+ workspace_id: string;
29100
+ /**
29101
+ * Session id
29102
+ */
29103
+ session_id: string;
29104
+ };
29105
+ query?: {
29106
+ /**
29107
+ * Read one profile's rows by name
29108
+ */
29109
+ profile?: string;
29110
+ /**
29111
+ * Read the owner-labeled all-profiles aggregate
29112
+ */
29113
+ all_profiles?: boolean;
29114
+ };
29115
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/processes";
29116
+ };
29117
+ export type ListSessionProcessesErrors = {
29118
+ /**
29119
+ * Invalid process request
29120
+ */
29121
+ 400: ErrorPayload;
29122
+ /**
29123
+ * Process scope denied
29124
+ */
29125
+ 403: ErrorPayload;
29126
+ /**
29127
+ * Session not found
29128
+ */
29129
+ 404: ErrorPayload;
29130
+ /**
29131
+ * Internal server error
29132
+ */
29133
+ 500: ErrorPayload;
29134
+ /**
29135
+ * Process scanner unavailable
29136
+ */
29137
+ 503: ErrorPayload;
29138
+ };
29139
+ export type ListSessionProcessesError = ListSessionProcessesErrors[keyof ListSessionProcessesErrors];
29140
+ export type ListSessionProcessesResponses = {
29141
+ /**
29142
+ * Success
29143
+ */
29144
+ 200: SessionProcessesResponse;
29145
+ };
29146
+ export type ListSessionProcessesResponse = ListSessionProcessesResponses[keyof ListSessionProcessesResponses];
29147
+ export type TerminateSessionProcessesData = {
29148
+ /**
29149
+ * JSON request body
29150
+ */
29151
+ body: TerminateSessionProcessesRequest;
29152
+ path: {
29153
+ /**
29154
+ * Workspace id
29155
+ */
29156
+ workspace_id: string;
29157
+ /**
29158
+ * Session id
29159
+ */
29160
+ session_id: string;
29161
+ };
29162
+ query?: {
29163
+ /**
29164
+ * Act as this profile by name
29165
+ */
29166
+ profile?: string;
29167
+ };
29168
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/processes/terminate";
29169
+ };
29170
+ export type TerminateSessionProcessesErrors = {
29171
+ /**
29172
+ * Invalid process request
29173
+ */
29174
+ 400: ErrorPayload;
29175
+ /**
29176
+ * Process scope denied
29177
+ */
29178
+ 403: ErrorPayload;
29179
+ /**
29180
+ * Session not found
29181
+ */
29182
+ 404: ErrorPayload;
29183
+ /**
29184
+ * Internal server error
29185
+ */
29186
+ 500: ErrorPayload;
29187
+ /**
29188
+ * Process scanner unavailable
29189
+ */
29190
+ 503: ErrorPayload;
29191
+ };
29192
+ export type TerminateSessionProcessesError = TerminateSessionProcessesErrors[keyof TerminateSessionProcessesErrors];
29193
+ export type TerminateSessionProcessesResponses = {
29194
+ /**
29195
+ * Success
29196
+ */
29197
+ 200: TerminateSessionProcessesResponse;
29198
+ };
29199
+ export type TerminateSessionProcessesResponse2 = TerminateSessionProcessesResponses[keyof TerminateSessionProcessesResponses];
28438
29200
  export type CancelSessionPromptData = {
28439
29201
  body?: never;
28440
29202
  path: {
@@ -28755,6 +29517,59 @@ export type RepairSessionResponses = {
28755
29517
  200: SessionRepairResponse;
28756
29518
  };
28757
29519
  export type RepairSessionResponse = RepairSessionResponses[keyof RepairSessionResponses];
29520
+ export type ResumeSessionFromLaterData = {
29521
+ /**
29522
+ * JSON request body
29523
+ */
29524
+ body?: ResumeSessionFromLaterRequest;
29525
+ path: {
29526
+ /**
29527
+ * Workspace id
29528
+ */
29529
+ workspace_id: string;
29530
+ /**
29531
+ * Session id
29532
+ */
29533
+ session_id: string;
29534
+ };
29535
+ query?: {
29536
+ /**
29537
+ * Act as this profile by name
29538
+ */
29539
+ profile?: string;
29540
+ };
29541
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/resume-later";
29542
+ };
29543
+ export type ResumeSessionFromLaterErrors = {
29544
+ /**
29545
+ * Invalid Back from Later request
29546
+ */
29547
+ 400: ErrorPayload;
29548
+ /**
29549
+ * Session not found
29550
+ */
29551
+ 404: ErrorPayload;
29552
+ /**
29553
+ * The session could not leave Later
29554
+ */
29555
+ 409: ErrorPayload;
29556
+ /**
29557
+ * Internal server error
29558
+ */
29559
+ 500: ErrorPayload;
29560
+ /**
29561
+ * Service unavailable - dependent service missing
29562
+ */
29563
+ 503: ErrorPayload;
29564
+ };
29565
+ export type ResumeSessionFromLaterError = ResumeSessionFromLaterErrors[keyof ResumeSessionFromLaterErrors];
29566
+ export type ResumeSessionFromLaterResponses = {
29567
+ /**
29568
+ * OK
29569
+ */
29570
+ 200: SessionResponse;
29571
+ };
29572
+ export type ResumeSessionFromLaterResponse = ResumeSessionFromLaterResponses[keyof ResumeSessionFromLaterResponses];
28758
29573
  export type RewindSessionConversationData = {
28759
29574
  /**
28760
29575
  * JSON request body
@@ -29059,12 +29874,16 @@ export type StopSessionErrors = {
29059
29874
  * Session not found
29060
29875
  */
29061
29876
  404: ErrorPayload;
29877
+ /**
29878
+ * Process cleanup could not be verified
29879
+ */
29880
+ 409: ErrorPayload;
29062
29881
  /**
29063
29882
  * Internal server error
29064
29883
  */
29065
29884
  500: ErrorPayload;
29066
29885
  /**
29067
- * Stop manager unavailable
29886
+ * Service unavailable - dependent service missing
29068
29887
  */
29069
29888
  503: ErrorPayload;
29070
29889
  };
@@ -29891,7 +30710,11 @@ export type CreateTerminalErrors = {
29891
30710
  */
29892
30711
  403: TerminalErrorResponse;
29893
30712
  /**
29894
- * Terminal limit reached
30713
+ * Worktree not found
30714
+ */
30715
+ 404: TerminalErrorResponse;
30716
+ /**
30717
+ * Terminal limit reached or worktree unavailable
29895
30718
  */
29896
30719
  409: TerminalErrorResponse;
29897
30720
  /**