@compozy/client 0.3.0-beta.37 → 0.3.0-beta.39

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.
@@ -219,6 +219,7 @@ export type AgentPayload = {
219
219
  speed?: "normal" | "fast";
220
220
  tools?: Array<string>;
221
221
  toolsets?: Array<string>;
222
+ workspace_access?: string;
222
223
  workspace_id?: string;
223
224
  };
224
225
  export type AgentProbeHealthPayload = {
@@ -350,24 +351,31 @@ export type AgentSoulValidateRequest = {
350
351
  export type AgentSpawnPayload = {
351
352
  lineage: SessionLineagePayload;
352
353
  permissions: SpawnPermissionPolicyPayload;
354
+ prompt?: SpawnPromptPayload | null;
353
355
  session: SessionPayload;
356
+ worktree?: SpawnWorktreePayload | null;
354
357
  };
355
358
  export type AgentSpawnRequest = {
356
359
  acp_options?: Array<AgentACPOptionSelection>;
357
360
  agent_name: string;
358
361
  auto_stop_on_parent: boolean;
359
362
  idempotency_key?: string;
363
+ inherit_permissions?: boolean;
360
364
  model?: string;
361
365
  name?: string;
366
+ new_worktree?: SpawnNewWorktreeRequest | null;
362
367
  notify_creator?: boolean | null;
363
- permissions: SpawnPermissionPolicyPayload;
368
+ permissions: SpawnPermissionRequestPayload;
369
+ prompt?: string;
364
370
  prompt_overlay?: string;
365
371
  provider?: string;
366
372
  reasoning_effort?: string;
367
373
  spawn_role: string;
368
374
  speed?: "normal" | "fast";
375
+ toolsets?: Array<string>;
369
376
  ttl_seconds: number;
370
377
  workspace?: string;
378
+ worktree?: string;
371
379
  };
372
380
  export type AgentSpawnResponse = {
373
381
  spawn: AgentSpawnPayload;
@@ -989,7 +997,7 @@ export type ContractWindowManagerDesktop = {
989
997
  order: number;
990
998
  };
991
999
  export type ContractWindowManagerErrorPayload = {
992
- code: "window_manager_workspace_not_found" | "window_manager_revision_conflict" | "window_manager_invalid_command" | "window_manager_invalid_topology" | "window_manager_desktop_not_found" | "window_manager_window_not_found" | "window_manager_not_stacked" | "window_manager_window_pinned" | "window_manager_client_not_found" | "window_manager_destination_required" | "window_manager_final_desktop" | "window_manager_history_boundary" | "window_manager_layout_not_found" | "window_manager_slow_consumer" | "window_manager_unavailable";
1000
+ code: "window_manager_workspace_not_found" | "window_manager_revision_conflict" | "window_binding_invalid" | "window_manager_invalid_command" | "window_manager_invalid_topology" | "window_manager_desktop_not_found" | "window_manager_window_not_found" | "window_manager_not_stacked" | "window_manager_window_pinned" | "window_manager_client_not_found" | "window_manager_destination_required" | "window_manager_final_desktop" | "window_manager_history_boundary" | "window_manager_layout_not_found" | "window_manager_slow_consumer" | "window_manager_unavailable";
993
1001
  conflicts?: Array<Conflict>;
994
1002
  current_revision?: number;
995
1003
  diagnostics?: Array<Diagnostic>;
@@ -1100,6 +1108,7 @@ export type CreateAgentPayload = {
1100
1108
  speed?: "normal" | "fast";
1101
1109
  tools?: Array<string>;
1102
1110
  toolsets?: Array<string>;
1111
+ workspace_access?: string;
1103
1112
  };
1104
1113
  export type CreateAgentRequest = {
1105
1114
  agent: CreateAgentPayload;
@@ -1122,7 +1131,7 @@ export type CreateJobRequest = {
1122
1131
  prompt: string;
1123
1132
  retry?: RetryConfig | null;
1124
1133
  schedule: ScheduleSpec;
1125
- scope: "global" | "workspace";
1134
+ scope: "global" | "workspace" | "user" | "@user";
1126
1135
  target_kind?: string;
1127
1136
  task?: JobTaskConfig | null;
1128
1137
  workspace_id?: string;
@@ -1148,6 +1157,7 @@ export type CreateSessionRequest = {
1148
1157
  name?: string;
1149
1158
  new_worktree?: NewSessionWorktreeRequest | null;
1150
1159
  parent_session_id?: string;
1160
+ scope?: string;
1151
1161
  workspace?: string;
1152
1162
  workspace_path?: string;
1153
1163
  worktree?: string;
@@ -1174,7 +1184,7 @@ export type CreateTaskChildRequest = {
1174
1184
  metadata?: unknown;
1175
1185
  owner?: Ownership | null;
1176
1186
  priority?: "low" | "medium" | "high" | "urgent";
1177
- scope: "global" | "workspace";
1187
+ scope: "global" | "workspace" | "user" | "@user";
1178
1188
  title: string;
1179
1189
  wake_creator?: boolean | null;
1180
1190
  workspace?: string;
@@ -1190,7 +1200,7 @@ export type CreateTaskRequest = {
1190
1200
  metadata?: unknown;
1191
1201
  owner?: Ownership | null;
1192
1202
  priority?: "low" | "medium" | "high" | "urgent";
1193
- scope: "global" | "workspace";
1203
+ scope: "global" | "workspace" | "user" | "@user";
1194
1204
  title: string;
1195
1205
  wake_creator?: boolean | null;
1196
1206
  workspace?: string;
@@ -1208,7 +1218,7 @@ export type CreateTriggerRequest = {
1208
1218
  name: string;
1209
1219
  prompt: string;
1210
1220
  retry?: RetryConfig | null;
1211
- scope: "global" | "workspace";
1221
+ scope: "global" | "workspace" | "user" | "@user";
1212
1222
  target_kind?: string;
1213
1223
  webhook_id?: string;
1214
1224
  webhook_secret_value?: string;
@@ -1227,6 +1237,11 @@ export type CreateWorktreeRequest = {
1227
1237
  name?: string;
1228
1238
  path?: string;
1229
1239
  };
1240
+ export type CursorPagePayload = {
1241
+ has_more: boolean;
1242
+ limit: number;
1243
+ next_cursor?: string;
1244
+ };
1230
1245
  export type DaemonIdentityPayload = {
1231
1246
  http_host: string;
1232
1247
  http_port: number;
@@ -1356,6 +1371,7 @@ export type DuplicateAgentOverrides = {
1356
1371
  speed?: "normal" | "fast";
1357
1372
  tools?: Array<string>;
1358
1373
  toolsets?: Array<string>;
1374
+ workspace_access?: string;
1359
1375
  };
1360
1376
  export type DuplicateAgentRequest = {
1361
1377
  name: string;
@@ -2706,11 +2722,32 @@ export type LoopBudget = {
2706
2722
  tokens: number;
2707
2723
  wall_clock_sec: number;
2708
2724
  };
2725
+ export type LoopCatalogAggregateEntryPayload = {
2726
+ aggregate_30d: LoopCatalogAggregatePayload;
2727
+ catalog: LoopCatalogResourceSpec;
2728
+ contract: LoopContract;
2729
+ description?: string;
2730
+ inputs?: {
2731
+ [key: string]: LoopInput;
2732
+ };
2733
+ last_run?: LoopCatalogLastRunPayload | null;
2734
+ name: string;
2735
+ source: LoopCatalogSourcePayload;
2736
+ start?: Array<LoopStartBinding>;
2737
+ success_rate_30d: number;
2738
+ version: number;
2739
+ workspace_id?: string;
2740
+ };
2709
2741
  export type LoopCatalogAggregatePayload = {
2710
2742
  failed: number;
2711
2743
  runs: number;
2712
2744
  succeeded: number;
2713
2745
  };
2746
+ export type LoopCatalogBatchResponse = {
2747
+ entries: Array<LoopCatalogAggregateEntryPayload>;
2748
+ errors: Array<LoopCatalogWorkspaceError>;
2749
+ truncated: boolean;
2750
+ };
2714
2751
  export type LoopCatalogEntryPayload = {
2715
2752
  aggregate_30d: LoopCatalogAggregatePayload;
2716
2753
  catalog: LoopCatalogResourceSpec;
@@ -2725,6 +2762,7 @@ export type LoopCatalogEntryPayload = {
2725
2762
  start?: Array<LoopStartBinding>;
2726
2763
  success_rate_30d: number;
2727
2764
  version: number;
2765
+ workspace_id?: string;
2728
2766
  };
2729
2767
  export type LoopCatalogFacetsPayload = {
2730
2768
  categories: {
@@ -2749,6 +2787,15 @@ export type LoopCatalogResourceSpec = {
2749
2787
  keywords?: Array<string>;
2750
2788
  use_when?: string;
2751
2789
  };
2790
+ export type LoopCatalogSourcePayload = {
2791
+ kind: "marketplace" | "user" | "additional" | "workspace";
2792
+ layer: string;
2793
+ };
2794
+ export type LoopCatalogWorkspaceError = {
2795
+ code: string;
2796
+ message: string;
2797
+ workspace_id?: string;
2798
+ };
2752
2799
  export type LoopConfig = {
2753
2800
  budget_on_exceeded?: "halt" | "escalate";
2754
2801
  budget_tokens?: number | null;
@@ -3079,6 +3126,7 @@ export type LoopNodeInventoryItem = {
3079
3126
  state: "waiting" | "quarantined" | "attention" | "retrying";
3080
3127
  state_at: string;
3081
3128
  wait?: LoopNodeWaitPayload | null;
3129
+ workspace_id?: string;
3082
3130
  };
3083
3131
  export type LoopNodeInventoryResponse = {
3084
3132
  items: Array<LoopNodeInventoryItem>;
@@ -3166,11 +3214,13 @@ export type LoopRequestPayload = {
3166
3214
  loop_run_id: string;
3167
3215
  node_id: string;
3168
3216
  opened_at: string;
3217
+ profile_id: string;
3169
3218
  prompt: string;
3170
3219
  proposed_preview?: unknown;
3171
3220
  resolved_at?: string | null;
3172
3221
  respond_schema?: unknown;
3173
3222
  state: string;
3223
+ workspace_id?: string;
3174
3224
  };
3175
3225
  export type LoopRequestProvenance = {
3176
3226
  actor_id: string;
@@ -3783,6 +3833,7 @@ export type OverviewAttentionItemPayload = {
3783
3833
  session_id?: string;
3784
3834
  task_id?: string;
3785
3835
  title: string;
3836
+ workspace_id: string;
3786
3837
  };
3787
3838
  export type OverviewAttentionPayload = {
3788
3839
  by_kind: {
@@ -4154,6 +4205,91 @@ export type ProviderSummaryPayload = {
4154
4205
  runtime_strategy?: "session_config" | "launch_arg" | "provider_managed";
4155
4206
  session_env_status?: Array<SettingsProviderCredentialStatusPayload>;
4156
4207
  };
4208
+ export type ProviderUsageAccount = {
4209
+ label: string;
4210
+ plan: string;
4211
+ };
4212
+ export type ProviderUsageAmount = {
4213
+ unit: string;
4214
+ value: string;
4215
+ };
4216
+ export type ProviderUsageBalance = {
4217
+ expires_at: string | null;
4218
+ id: string;
4219
+ label: string;
4220
+ remaining: ProviderUsageAmount;
4221
+ };
4222
+ export type ProviderUsageEnvelope = {
4223
+ enabled: boolean;
4224
+ generated_at: string;
4225
+ keychain_supported: boolean;
4226
+ profile_id: string;
4227
+ revision: number;
4228
+ targets: Array<ProviderUsageTarget>;
4229
+ tray: ProviderUsageTraySignal | null;
4230
+ };
4231
+ export type ProviderUsageError = {
4232
+ action: string;
4233
+ code: string;
4234
+ message: string;
4235
+ retry_after: string | null;
4236
+ };
4237
+ export type ProviderUsageRefreshRequest = {
4238
+ intent?: string;
4239
+ max_age_seconds?: number;
4240
+ profile?: string;
4241
+ provider_ids?: Array<string>;
4242
+ wait_ms?: number | null;
4243
+ };
4244
+ export type ProviderUsageSource = {
4245
+ kind: string;
4246
+ label: string;
4247
+ };
4248
+ export type ProviderUsageSpendCap = {
4249
+ enabled: boolean | null;
4250
+ id: string;
4251
+ label: string;
4252
+ limit: ProviderUsageAmount | null;
4253
+ resets_at: string | null;
4254
+ used: ProviderUsageAmount;
4255
+ used_percent: number | null;
4256
+ };
4257
+ export type ProviderUsageTarget = {
4258
+ account: ProviderUsageAccount | null;
4259
+ balances: Array<ProviderUsageBalance>;
4260
+ checked_at: string | null;
4261
+ confidence: string;
4262
+ error: ProviderUsageError | null;
4263
+ measured_at: string | null;
4264
+ next_refresh_at: string | null;
4265
+ provider_id: string;
4266
+ provider_name: string;
4267
+ refreshing: boolean;
4268
+ source: ProviderUsageSource | null;
4269
+ spend_caps: Array<ProviderUsageSpendCap>;
4270
+ status: string;
4271
+ windows: Array<ProviderUsageWindow>;
4272
+ };
4273
+ export type ProviderUsageTraySignal = {
4274
+ label: string;
4275
+ provider_id: string;
4276
+ resets_at: string | null;
4277
+ severity: string;
4278
+ stale: boolean;
4279
+ used_percent: number;
4280
+ window_id: string;
4281
+ };
4282
+ export type ProviderUsageWindow = {
4283
+ duration_seconds: number | null;
4284
+ id: string;
4285
+ kind: string;
4286
+ label: string;
4287
+ limit: ProviderUsageAmount | null;
4288
+ reset_text: string;
4289
+ resets_at: string | null;
4290
+ used: ProviderUsageAmount | null;
4291
+ used_percent: number | null;
4292
+ };
4157
4293
  export type PutLoopAnnotationsRequest = {
4158
4294
  annotations: Array<LoopAnnotationPayload>;
4159
4295
  };
@@ -4230,7 +4366,7 @@ export type RecoverTaskRunRequest = {
4230
4366
  export type Redaction = {
4231
4367
  bytes?: number;
4232
4368
  path: string;
4233
- 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" | "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";
4369
+ 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";
4234
4370
  };
4235
4371
  export type Reference = {
4236
4372
  effective_paused?: boolean;
@@ -4250,6 +4386,11 @@ export type ReloadExtensionRequest = {
4250
4386
  confirm_gateway_digest?: string;
4251
4387
  generation_hash: string;
4252
4388
  };
4389
+ export type RemoveDiscoveredWorktreeRequest = {
4390
+ expect_stale?: boolean;
4391
+ force?: boolean;
4392
+ path: string;
4393
+ };
4253
4394
  export type RenameProfilePlan = {
4254
4395
  dormant_placements: Array<ProfilePlacement>;
4255
4396
  machine_folders: Array<string>;
@@ -4552,6 +4693,7 @@ export type RunOutcome = {
4552
4693
  };
4553
4694
  export type RunPayload = {
4554
4695
  attempt: number;
4696
+ attribution: string;
4555
4697
  delivery_error?: string;
4556
4698
  delivery_error_at?: string | null;
4557
4699
  ended_at?: string | null;
@@ -4574,6 +4716,7 @@ export type RunPayload = {
4574
4716
  task_id?: string;
4575
4717
  task_run_id?: string;
4576
4718
  trigger_id?: string;
4719
+ workspace_id?: string | null;
4577
4720
  };
4578
4721
  export type RunResponse = {
4579
4722
  run: RunPayload;
@@ -4655,6 +4798,7 @@ export type RunWorktreeExitActionRequest = {
4655
4798
  title?: string;
4656
4799
  };
4657
4800
  export type RunsResponse = {
4801
+ page?: CursorPagePayload | null;
4658
4802
  runs: Array<RunPayload>;
4659
4803
  };
4660
4804
  export type RuntimeActivityPayload = {
@@ -4906,6 +5050,7 @@ export type SessionCatalogFacetsPayload = {
4906
5050
  working: number;
4907
5051
  };
4908
5052
  export type SessionCatalogFacetsResponse = {
5053
+ by_profile: Array<SessionProfileFacetsPayload>;
4909
5054
  by_workspace: Array<SessionWorkspaceFacetsPayload>;
4910
5055
  facets: SessionCatalogFacetsPayload;
4911
5056
  };
@@ -5306,6 +5451,30 @@ export type SessionLineagePayload = {
5306
5451
  spawn_role?: string;
5307
5452
  ttl_expires_at?: string | null;
5308
5453
  };
5454
+ export type SessionMonitorPayload = {
5455
+ created_at: string;
5456
+ deadline_at: string;
5457
+ description: string;
5458
+ exit_code?: number | null;
5459
+ fired_at?: string | null;
5460
+ kind: string;
5461
+ monitor_id: string;
5462
+ pattern?: string;
5463
+ reason?: string;
5464
+ session_id: string;
5465
+ status: string;
5466
+ terminal_id?: string;
5467
+ until?: string;
5468
+ };
5469
+ export type SessionMonitorResponse = {
5470
+ monitor: SessionMonitorPayload;
5471
+ };
5472
+ export type SessionMonitorSummaryPayload = {
5473
+ active: number;
5474
+ };
5475
+ export type SessionMonitorsResponse = {
5476
+ monitors: Array<SessionMonitorPayload>;
5477
+ };
5309
5478
  export type SessionOwner = {
5310
5479
  session_id: string;
5311
5480
  workspace_id: string;
@@ -5325,12 +5494,14 @@ export type SessionPayload = {
5325
5494
  busy_input?: BusyInputState | null;
5326
5495
  created_at: string;
5327
5496
  derivation?: SessionDerivationPayload | null;
5497
+ effective_workspace_access: string;
5328
5498
  escalated?: boolean | null;
5329
5499
  failure?: SessionFailurePayload | null;
5330
5500
  folder_id?: string;
5331
5501
  health?: SessionHealthPayload | null;
5332
5502
  id: string;
5333
5503
  lineage?: SessionLineagePayload | null;
5504
+ monitor_summary?: SessionMonitorSummaryPayload | null;
5334
5505
  name?: string;
5335
5506
  pending_interactions: Array<PendingInteractionPayload>;
5336
5507
  profile_archived?: boolean;
@@ -5342,6 +5513,7 @@ export type SessionPayload = {
5342
5513
  queue?: SessionQueueSummaryPayload | null;
5343
5514
  reply_watches?: Array<ReplyWatchPayload>;
5344
5515
  runtime: SessionRuntimePayload;
5516
+ scope: string;
5345
5517
  state: "starting" | "active" | "stopping" | "stopped";
5346
5518
  stop_cause?: string;
5347
5519
  stop_detail?: string;
@@ -5363,6 +5535,10 @@ export type SessionPresenceRequest = {
5363
5535
  export type SessionPresenceResponse = {
5364
5536
  lease_id: string;
5365
5537
  };
5538
+ export type SessionProfileFacetsPayload = {
5539
+ facets: SessionCatalogFacetsPayload;
5540
+ profile_id: string;
5541
+ };
5366
5542
  export type SessionPromptCancelResponse = {
5367
5543
  outcome: string;
5368
5544
  session_id: string;
@@ -5420,6 +5596,7 @@ export type SessionRuntimePayload = {
5420
5596
  generation?: number;
5421
5597
  last_known?: RuntimeSelectionPayload | null;
5422
5598
  recovery?: SessionRuntimeRecoveryPayload | null;
5599
+ requested?: PromptRuntimeSelectionPayload | null;
5423
5600
  selected?: PromptRuntimeSelectionPayload | null;
5424
5601
  selection_revision: number;
5425
5602
  status: string;
@@ -5513,6 +5690,7 @@ export type SessionUsagePayload = {
5513
5690
  total_cost?: number | null;
5514
5691
  total_tokens?: number | null;
5515
5692
  turn_count: number;
5693
+ work_time?: SessionWorkTimePayload | null;
5516
5694
  };
5517
5695
  export type SessionUsageResponse = {
5518
5696
  usage: SessionUsagePayload;
@@ -5542,6 +5720,11 @@ export type SessionWaitResponse = {
5542
5720
  until?: Array<string>;
5543
5721
  waited_ms: number;
5544
5722
  };
5723
+ export type SessionWorkTimePayload = {
5724
+ active_duration_ms: number;
5725
+ last_completed_turn_id?: string;
5726
+ turn_count: number;
5727
+ };
5545
5728
  export type SessionWorkspaceFacetsPayload = {
5546
5729
  facets: SessionCatalogFacetsPayload;
5547
5730
  workspace_id: string;
@@ -5553,6 +5736,9 @@ export type SetExtensionEnablementRequest = {
5553
5736
  export type SetExtensionSecretsRequest = {
5554
5737
  bindings: Array<ExtensionSecretBindingInput>;
5555
5738
  };
5739
+ export type SetSessionParentRequest = {
5740
+ parent_session_id: string;
5741
+ };
5556
5742
  export type SetSessionRuntimeRequest = {
5557
5743
  expected_revision: number | null;
5558
5744
  runtime: PromptRuntimeSelectionPayload;
@@ -5579,7 +5765,7 @@ export type SettingsApplyResponse = {
5579
5765
  restart_required?: boolean;
5580
5766
  restart_scope?: string;
5581
5767
  scope?: "user" | "profile" | "workspace" | "agent";
5582
- section?: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace" | "providers" | "mcp-servers" | "hooks";
5768
+ section?: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace" | "providers" | "mcp-servers" | "hooks";
5583
5769
  skipped?: boolean;
5584
5770
  skipped_reason?: string;
5585
5771
  warnings?: Array<string>;
@@ -5597,7 +5783,7 @@ export type SettingsAttentionResponse = {
5597
5783
  config: SettingsAttentionPayload;
5598
5784
  profile?: string;
5599
5785
  scope: "user" | "profile" | "workspace";
5600
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
5786
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
5601
5787
  workspace_id?: string;
5602
5788
  };
5603
5789
  export type SettingsAutomationConfigPayload = {
@@ -5612,10 +5798,11 @@ export type SettingsAutomationResponse = {
5612
5798
  links?: Array<SettingsOperationalLinkPayload>;
5613
5799
  runtime: SettingsAutomationRuntimePayload;
5614
5800
  scope: "user";
5615
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
5801
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
5616
5802
  };
5617
5803
  export type SettingsAutomationRuntimePayload = {
5618
5804
  available: boolean;
5805
+ host_timezone?: string;
5619
5806
  job_enabled: number;
5620
5807
  job_total: number;
5621
5808
  last_synced_at?: string | null;
@@ -5637,7 +5824,7 @@ export type SettingsCmdPaletteResponse = {
5637
5824
  personalization: boolean;
5638
5825
  profile?: string;
5639
5826
  scope: "user" | "profile" | "workspace";
5640
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
5827
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
5641
5828
  workspace_id?: string;
5642
5829
  };
5643
5830
  export type SettingsConfigPathsPayload = {
@@ -5752,7 +5939,7 @@ export type SettingsGeneralResponse = {
5752
5939
  config_paths: SettingsConfigPathsPayload;
5753
5940
  runtime: SettingsDaemonRuntimePayload;
5754
5941
  scope: "user";
5755
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
5942
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
5756
5943
  };
5757
5944
  export type SettingsGlobalShortcutPayload = {
5758
5945
  active_chord?: string;
@@ -5799,7 +5986,7 @@ export type SettingsHooksExtensionsResponse = {
5799
5986
  hooks?: Array<SettingsHookItemPayload>;
5800
5987
  installed?: Array<SettingsInstalledExtensionPayload>;
5801
5988
  scope: "user";
5802
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
5989
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
5803
5990
  transport_parity: SettingsTransportParityPayload;
5804
5991
  };
5805
5992
  export type SettingsHooksResponse = {
@@ -5984,7 +6171,7 @@ export type SettingsMarketplaceResponse = {
5984
6171
  available_scopes: Array<"user">;
5985
6172
  config: SettingsMarketplaceCatalogPayload;
5986
6173
  scope: "user";
5987
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6174
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
5988
6175
  };
5989
6176
  export type SettingsObservabilityConfigPayload = {
5990
6177
  enabled: boolean;
@@ -5998,7 +6185,7 @@ export type SettingsObservabilityResponse = {
5998
6185
  log_tail: SettingsLogTailCapabilityPayload;
5999
6186
  runtime: SettingsObservabilityRuntimePayload;
6000
6187
  scope: "user";
6001
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6188
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6002
6189
  };
6003
6190
  export type SettingsObservabilityRuntimePayload = {
6004
6191
  active_agents: number;
@@ -6026,7 +6213,7 @@ export type SettingsPersonaResponse = {
6026
6213
  config: SettingsDefaultsPayload;
6027
6214
  profile?: string;
6028
6215
  scope: "user" | "profile" | "workspace";
6029
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6216
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6030
6217
  workspace_id?: string;
6031
6218
  };
6032
6219
  export type SettingsProviderAuthStatusPayload = {
@@ -6136,6 +6323,27 @@ export type SettingsProviderSettingsPayload = {
6136
6323
  steer_capability?: "steer_ext" | "concurrent_prompt" | "none";
6137
6324
  transport?: string;
6138
6325
  };
6326
+ export type SettingsProviderUsagePayload = {
6327
+ enabled: boolean;
6328
+ providers: {
6329
+ [key: string]: SettingsProviderUsageProviderPayload;
6330
+ };
6331
+ refresh_interval: string;
6332
+ };
6333
+ export type SettingsProviderUsageProviderPayload = {
6334
+ enabled?: boolean | null;
6335
+ keychain_access?: boolean | null;
6336
+ };
6337
+ export type SettingsProviderUsageResponse = {
6338
+ available_scopes: Array<"user">;
6339
+ config: SettingsProviderUsagePayload;
6340
+ keychain_supported: boolean;
6341
+ scope: "user";
6342
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6343
+ };
6344
+ export type SettingsProviderUsageUpdateRequest = {
6345
+ config: SettingsProviderUsagePayload;
6346
+ };
6139
6347
  export type SettingsProviderWritePayload = {
6140
6348
  auth_acp_method?: string | null;
6141
6349
  auth_login_command?: string | null;
@@ -6194,8 +6402,35 @@ export type SettingsRolesResponse = {
6194
6402
  available_scopes: Array<"user" | "workspace">;
6195
6403
  config: SettingsRolesConfigPayload;
6196
6404
  scope: "user" | "workspace";
6197
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6405
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6406
+ workspace_id?: string;
6407
+ };
6408
+ export type SettingsShellLegacyScopePayload = {
6409
+ explicit: boolean;
6410
+ revision: number;
6411
+ value: "workspace" | "all-workspaces";
6412
+ };
6413
+ export type SettingsShellMutationResponse = {
6414
+ active_config_hash: string;
6415
+ active_generation: number;
6416
+ agent_name?: string;
6417
+ applied: boolean;
6418
+ apply_record_id: string;
6419
+ config: SettingsShellPayload;
6420
+ legacy_scope: SettingsShellLegacyScopePayload;
6421
+ lifecycle: "live" | "live-add" | "live-remove-if-unused" | "restart-required" | "session-rebind";
6422
+ next_action: "none" | "restart-daemon" | "new-session" | "retry";
6423
+ partial_failures?: Array<SettingsApplyFailurePayload>;
6424
+ profile?: string;
6425
+ restart_required?: boolean;
6426
+ restart_scope?: string;
6427
+ scope?: "user" | "profile" | "workspace" | "agent";
6428
+ section?: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace" | "providers" | "mcp-servers" | "hooks";
6429
+ skipped?: boolean;
6430
+ skipped_reason?: string;
6431
+ warnings?: Array<string>;
6198
6432
  workspace_id?: string;
6433
+ write_target?: "global-config" | "profile-config" | "workspace-config" | "global-mcp-sidecar" | "profile-mcp-sidecar" | "workspace-mcp-sidecar" | "global-agent-file" | "workspace-agent-file";
6199
6434
  };
6200
6435
  export type SettingsShellPayload = {
6201
6436
  sessions: SettingsShellSessionsPayload;
@@ -6203,12 +6438,15 @@ export type SettingsShellPayload = {
6203
6438
  export type SettingsShellResponse = {
6204
6439
  available_scopes: Array<"user">;
6205
6440
  config: SettingsShellPayload;
6441
+ legacy_scope: SettingsShellLegacyScopePayload;
6206
6442
  scope: "user";
6207
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6443
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6444
+ warnings: Array<string>;
6208
6445
  };
6209
6446
  export type SettingsShellSessionsPayload = {
6210
- scope: "workspace" | "all-workspaces";
6211
- sort: "created" | "name" | "last_activity" | "attention" | "manual";
6447
+ group_by?: "none" | "project" | "profile";
6448
+ scope?: "workspace" | "all-workspaces";
6449
+ sort?: "created" | "name" | "last_activity" | "attention" | "manual";
6212
6450
  };
6213
6451
  export type SettingsSkillSourceCollisionPayload = {
6214
6452
  name: string;
@@ -6281,7 +6519,7 @@ export type SettingsSkillsMutationResponse = {
6281
6519
  restart_scope?: string;
6282
6520
  runtime_available: boolean;
6283
6521
  scope: "user" | "profile" | "workspace" | "agent";
6284
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6522
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6285
6523
  skipped?: boolean;
6286
6524
  skipped_reason?: string;
6287
6525
  sources: Array<SettingsSkillSourcePayload>;
@@ -6305,7 +6543,7 @@ export type SettingsSkillsResponse = {
6305
6543
  profile?: string;
6306
6544
  runtime_available: boolean;
6307
6545
  scope: "user" | "profile" | "workspace" | "agent";
6308
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6546
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6309
6547
  sources: Array<SettingsSkillSourcePayload>;
6310
6548
  workspace_id?: string;
6311
6549
  };
@@ -6481,7 +6719,7 @@ export type SettingsWindowManagerMutationResponse = {
6481
6719
  extension_defaults: Array<SettingsWindowManagerDefaultPayload>;
6482
6720
  global_shortcuts: Array<SettingsGlobalShortcutPayload>;
6483
6721
  scope: "user" | "workspace";
6484
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6722
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6485
6723
  workspace_id?: string;
6486
6724
  };
6487
6725
  export type SettingsWindowManagerResponse = {
@@ -6501,7 +6739,7 @@ export type SettingsWindowManagerResponse = {
6501
6739
  extension_defaults: Array<SettingsWindowManagerDefaultPayload>;
6502
6740
  global_shortcuts: Array<SettingsGlobalShortcutPayload>;
6503
6741
  scope: "user" | "workspace";
6504
- section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "observability" | "hooks-extensions" | "marketplace";
6742
+ section: "general" | "persona" | "roles" | "skills" | "automation" | "window-manager" | "cmd-palette" | "attention" | "shell" | "provider-usage" | "observability" | "hooks-extensions" | "marketplace";
6505
6743
  workspace_id?: string;
6506
6744
  };
6507
6745
  export type SettingsWindowManagerSnapPayload = {
@@ -6669,12 +6907,38 @@ export type SpawnBudgetPayload = {
6669
6907
  max_depth: number;
6670
6908
  ttl_seconds: number;
6671
6909
  };
6910
+ export type SpawnNewWorktreeRequest = {
6911
+ base_ref?: string;
6912
+ branch?: string;
6913
+ name?: string;
6914
+ };
6672
6915
  export type SpawnPermissionPolicyPayload = {
6673
6916
  mcp_servers: Array<string>;
6674
6917
  skills: Array<string>;
6675
6918
  tools: Array<string>;
6676
6919
  workspace_paths: Array<string>;
6677
6920
  };
6921
+ export type SpawnPermissionRequestPayload = {
6922
+ mcp_servers?: Array<string>;
6923
+ skills?: Array<string>;
6924
+ tools?: Array<string>;
6925
+ workspace_paths?: Array<string>;
6926
+ };
6927
+ export type SpawnPromptPayload = {
6928
+ error?: string;
6929
+ message_id: string;
6930
+ reply_watch_id?: string;
6931
+ reply_watch_state?: string;
6932
+ status: string;
6933
+ };
6934
+ export type SpawnWorktreePayload = {
6935
+ base_sha?: string;
6936
+ branch: string;
6937
+ created: boolean;
6938
+ id: string;
6939
+ name: string;
6940
+ path: string;
6941
+ };
6678
6942
  export type StartBinding = {
6679
6943
  input_mapping?: {
6680
6944
  [key: string]: string;
@@ -7965,7 +8229,7 @@ export type ToolAvailabilityPayload = {
7965
8229
  conflicted: boolean;
7966
8230
  enabled: boolean;
7967
8231
  executable: boolean;
7968
- 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" | "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">;
8232
+ 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">;
7969
8233
  registered: boolean;
7970
8234
  };
7971
8235
  export type ToolBackendRefPayload = {
@@ -7985,12 +8249,12 @@ export type ToolCallEventPayload = {
7985
8249
  destructive: boolean;
7986
8250
  display_title?: string;
7987
8251
  duration_ms?: number;
7988
- 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_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";
8252
+ 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";
7989
8253
  input_digest?: string;
7990
8254
  kind: "tool.call_started" | "tool.call_completed" | "tool.call_failed" | "tool.call_denied" | "tool.result_truncated";
7991
8255
  open_world: boolean;
7992
8256
  read_only: boolean;
7993
- 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" | "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">;
8257
+ 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">;
7994
8258
  redacted_input_fields?: Array<string>;
7995
8259
  result_bytes?: number;
7996
8260
  result_digest?: string;
@@ -8037,14 +8301,14 @@ export type ToolDescriptorPayload = {
8037
8301
  visibility: "internal" | "operator" | "session" | "model";
8038
8302
  };
8039
8303
  export type ToolErrorPayload = {
8040
- 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_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";
8304
+ 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";
8041
8305
  details?: {
8042
8306
  [key: string]: unknown;
8043
8307
  };
8044
8308
  layer?: string;
8045
8309
  message: string;
8046
8310
  partial_result?: ToolResult | null;
8047
- 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" | "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">;
8311
+ 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">;
8048
8312
  tool_id?: string;
8049
8313
  };
8050
8314
  export type ToolErrorResponse = {
@@ -8080,7 +8344,7 @@ export type ToolPolicyDecisionPayload = {
8080
8344
  availability_result?: string;
8081
8345
  callable: boolean;
8082
8346
  hook_result?: string;
8083
- 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" | "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">;
8347
+ 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">;
8084
8348
  registry_policy_result?: string;
8085
8349
  session_policy_result?: string;
8086
8350
  source_policy_result?: string;
@@ -8128,7 +8392,7 @@ export type ToolsResponse = {
8128
8392
  export type ToolsetPayload = {
8129
8393
  expanded_tools?: Array<string>;
8130
8394
  id: string;
8131
- 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" | "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">;
8395
+ 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">;
8132
8396
  status: string;
8133
8397
  tools?: Array<string>;
8134
8398
  toolsets?: Array<string>;
@@ -9668,6 +9932,79 @@ export type CreateAgentResponses = {
9668
9932
  201: AgentResponse;
9669
9933
  };
9670
9934
  export type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
9935
+ export type ListAgentsAggregateData = {
9936
+ body?: never;
9937
+ path?: never;
9938
+ query?: {
9939
+ /**
9940
+ * Read all projects and User rows
9941
+ */
9942
+ all_workspaces?: boolean;
9943
+ /**
9944
+ * Repeatable project IDs or @user; requires all_workspaces=true
9945
+ */
9946
+ workspace_ids?: Array<string>;
9947
+ /**
9948
+ * Exact agent name
9949
+ */
9950
+ name?: string;
9951
+ /**
9952
+ * Case-insensitive agent name or category search
9953
+ */
9954
+ q?: string;
9955
+ /**
9956
+ * Exact category path joined by slash separators
9957
+ */
9958
+ category?: string;
9959
+ /**
9960
+ * Agent session status
9961
+ */
9962
+ status?: "active" | "idle";
9963
+ /**
9964
+ * Opaque cursor bound to workspace and filters
9965
+ */
9966
+ cursor?: string;
9967
+ /**
9968
+ * Agents per page (1-100; default 50)
9969
+ */
9970
+ limit?: number;
9971
+ /**
9972
+ * Act as this profile by name
9973
+ */
9974
+ profile?: string;
9975
+ };
9976
+ url: "/api/agents/aggregate";
9977
+ };
9978
+ export type ListAgentsAggregateErrors = {
9979
+ /**
9980
+ * Invalid filter
9981
+ */
9982
+ 400: ErrorPayload;
9983
+ /**
9984
+ * Workspace not found
9985
+ */
9986
+ 404: ErrorPayload;
9987
+ /**
9988
+ * Workspace root missing
9989
+ */
9990
+ 410: ErrorPayload;
9991
+ /**
9992
+ * Internal server error
9993
+ */
9994
+ 500: ErrorPayload;
9995
+ /**
9996
+ * Workspace resolver unavailable
9997
+ */
9998
+ 503: ErrorPayload;
9999
+ };
10000
+ export type ListAgentsAggregateError = ListAgentsAggregateErrors[keyof ListAgentsAggregateErrors];
10001
+ export type ListAgentsAggregateResponses = {
10002
+ /**
10003
+ * OK
10004
+ */
10005
+ 200: AgentCatalogResponse;
10006
+ };
10007
+ export type ListAgentsAggregateResponse = ListAgentsAggregateResponses[keyof ListAgentsAggregateResponses];
9671
10008
  export type ListAgentCatalogData = {
9672
10009
  body?: never;
9673
10010
  path?: never;
@@ -10838,11 +11175,19 @@ export type ListAutomationJobsData = {
10838
11175
  /**
10839
11176
  * Filter by automation scope
10840
11177
  */
10841
- scope?: "global" | "workspace";
11178
+ scope?: "global" | "workspace" | "user" | "@user";
10842
11179
  /**
10843
11180
  * Filter by workspace id
10844
11181
  */
10845
11182
  workspace_id?: string;
11183
+ /**
11184
+ * Read every definition
11185
+ */
11186
+ all_workspaces?: boolean;
11187
+ /**
11188
+ * Project IDs or @user; requires all_workspaces=true
11189
+ */
11190
+ workspace_ids?: Array<string>;
10846
11191
  /**
10847
11192
  * Filter by job source
10848
11193
  */
@@ -11193,6 +11538,22 @@ export type ListAutomationRunsData = {
11193
11538
  body?: never;
11194
11539
  path?: never;
11195
11540
  query?: {
11541
+ /**
11542
+ * Filter by source project; @user selects User
11543
+ */
11544
+ workspace_id?: string;
11545
+ /**
11546
+ * Read every run, including unknown attribution
11547
+ */
11548
+ all_workspaces?: boolean;
11549
+ /**
11550
+ * Source project IDs or @user; excludes unknown attribution
11551
+ */
11552
+ workspace_ids?: Array<string>;
11553
+ /**
11554
+ * Opaque source-filter-bound cursor
11555
+ */
11556
+ cursor?: string;
11196
11557
  /**
11197
11558
  * Filter by automation job id
11198
11559
  */
@@ -11292,38 +11653,91 @@ export type GetAutomationRunResponses = {
11292
11653
  200: RunResponse;
11293
11654
  };
11294
11655
  export type GetAutomationRunResponse = GetAutomationRunResponses[keyof GetAutomationRunResponses];
11295
- export type ListAutomationTriggersData = {
11656
+ export type ListAutomationSuggestionsAggregateData = {
11296
11657
  body?: never;
11297
11658
  path?: never;
11298
11659
  query?: {
11299
11660
  /**
11300
- * Filter by automation scope
11301
- */
11302
- scope?: "global" | "workspace";
11303
- /**
11304
- * Filter by workspace id
11305
- */
11306
- workspace_id?: string;
11307
- /**
11308
- * Filter by trigger source
11309
- */
11310
- source?: "config" | "package" | "dynamic";
11311
- /**
11312
- * Filter by target kind; task matches no trigger
11313
- */
11314
- target?: "agent" | "loop" | "task";
11315
- /**
11316
- * Filter by enabled state
11661
+ * Read all projects and User rows
11317
11662
  */
11318
- enabled?: boolean;
11663
+ all_workspaces?: boolean;
11319
11664
  /**
11320
- * Filter by trigger event
11665
+ * Repeatable project IDs or @user; requires all_workspaces=true
11321
11666
  */
11322
- event?: string;
11667
+ workspace_ids?: Array<string>;
11323
11668
  /**
11324
- * Search triggers by definition or filter fields
11669
+ * Filter by suggestion status
11325
11670
  */
11326
- q?: string;
11671
+ status?: "pending" | "accepted" | "dismissed";
11672
+ };
11673
+ url: "/api/automation/suggestions";
11674
+ };
11675
+ export type ListAutomationSuggestionsAggregateErrors = {
11676
+ /**
11677
+ * Invalid suggestion status
11678
+ */
11679
+ 400: ErrorPayload;
11680
+ /**
11681
+ * Workspace not found
11682
+ */
11683
+ 404: ErrorPayload;
11684
+ /**
11685
+ * Internal server error
11686
+ */
11687
+ 500: ErrorPayload;
11688
+ /**
11689
+ * Automation manager is not configured
11690
+ */
11691
+ 503: ErrorPayload;
11692
+ };
11693
+ export type ListAutomationSuggestionsAggregateError = ListAutomationSuggestionsAggregateErrors[keyof ListAutomationSuggestionsAggregateErrors];
11694
+ export type ListAutomationSuggestionsAggregateResponses = {
11695
+ /**
11696
+ * OK
11697
+ */
11698
+ 200: AutomationSuggestionsResponse;
11699
+ };
11700
+ export type ListAutomationSuggestionsAggregateResponse = ListAutomationSuggestionsAggregateResponses[keyof ListAutomationSuggestionsAggregateResponses];
11701
+ export type ListAutomationTriggersData = {
11702
+ body?: never;
11703
+ path?: never;
11704
+ query?: {
11705
+ /**
11706
+ * Filter by automation scope
11707
+ */
11708
+ scope?: "global" | "workspace" | "user" | "@user";
11709
+ /**
11710
+ * Filter by workspace id
11711
+ */
11712
+ workspace_id?: string;
11713
+ /**
11714
+ * Read every definition
11715
+ */
11716
+ all_workspaces?: boolean;
11717
+ /**
11718
+ * Project IDs or @user; requires all_workspaces=true
11719
+ */
11720
+ workspace_ids?: Array<string>;
11721
+ /**
11722
+ * Filter by trigger source
11723
+ */
11724
+ source?: "config" | "package" | "dynamic";
11725
+ /**
11726
+ * Filter by target kind; task matches no trigger
11727
+ */
11728
+ target?: "agent" | "loop" | "task";
11729
+ /**
11730
+ * Filter by enabled state
11731
+ */
11732
+ enabled?: boolean;
11733
+ /**
11734
+ * Filter by trigger event
11735
+ */
11736
+ event?: string;
11737
+ /**
11738
+ * Search triggers by definition or filter fields
11739
+ */
11740
+ q?: string;
11327
11741
  /**
11328
11742
  * Continue after this automation trigger cursor
11329
11743
  */
@@ -13720,6 +14134,221 @@ export type ListLogsResponses = {
13720
14134
  200: LogsListResponse;
13721
14135
  };
13722
14136
  export type ListLogsResponse = ListLogsResponses[keyof ListLogsResponses];
14137
+ export type ListLoopRequestsAggregateData = {
14138
+ body?: never;
14139
+ path?: never;
14140
+ query?: {
14141
+ /**
14142
+ * Read all registered projects and User rows
14143
+ */
14144
+ all_workspaces?: boolean;
14145
+ /**
14146
+ * Repeatable project IDs or @user; requires all_workspaces=true
14147
+ */
14148
+ workspace_ids?: Array<string>;
14149
+ /**
14150
+ * Filter by Loop run id
14151
+ */
14152
+ run_id?: string;
14153
+ /**
14154
+ * Filter by pending or resolved state
14155
+ */
14156
+ state?: string;
14157
+ /**
14158
+ * Opaque continuation cursor
14159
+ */
14160
+ cursor?: string;
14161
+ /**
14162
+ * Maximum number of records to return
14163
+ */
14164
+ limit?: number;
14165
+ /**
14166
+ * Read one profile's rows by name
14167
+ */
14168
+ profile?: string;
14169
+ /**
14170
+ * Read the owner-labeled all-profiles aggregate
14171
+ */
14172
+ all_profiles?: boolean;
14173
+ };
14174
+ url: "/api/loop-requests";
14175
+ };
14176
+ export type ListLoopRequestsAggregateErrors = {
14177
+ /**
14178
+ * Invalid Loop request
14179
+ */
14180
+ 400: ErrorPayload;
14181
+ /**
14182
+ * Internal server error
14183
+ */
14184
+ 500: ErrorPayload;
14185
+ /**
14186
+ * Loop service is not configured
14187
+ */
14188
+ 503: ErrorPayload;
14189
+ };
14190
+ export type ListLoopRequestsAggregateError = ListLoopRequestsAggregateErrors[keyof ListLoopRequestsAggregateErrors];
14191
+ export type ListLoopRequestsAggregateResponses = {
14192
+ /**
14193
+ * OK
14194
+ */
14195
+ 200: LoopRequestsResponse;
14196
+ };
14197
+ export type ListLoopRequestsAggregateResponse = ListLoopRequestsAggregateResponses[keyof ListLoopRequestsAggregateResponses];
14198
+ export type ListLoopRunsAggregateData = {
14199
+ body?: never;
14200
+ path?: never;
14201
+ query?: {
14202
+ /**
14203
+ * Read all registered projects and User rows
14204
+ */
14205
+ all_workspaces?: boolean;
14206
+ /**
14207
+ * Repeatable project IDs or @user; requires all_workspaces=true
14208
+ */
14209
+ workspace_ids?: Array<string>;
14210
+ /**
14211
+ * Filter by Loop name
14212
+ */
14213
+ loop?: string;
14214
+ /**
14215
+ * Filter by Loop status
14216
+ */
14217
+ status?: string;
14218
+ /**
14219
+ * Filter by catalog or session origin
14220
+ */
14221
+ origin?: string;
14222
+ /**
14223
+ * Filter by origin session id
14224
+ */
14225
+ origin_session?: string;
14226
+ /**
14227
+ * Filter by live or terminal status
14228
+ */
14229
+ live?: boolean;
14230
+ /**
14231
+ * Opaque server-order cursor
14232
+ */
14233
+ cursor?: string;
14234
+ /**
14235
+ * Maximum number of records to return
14236
+ */
14237
+ limit?: number;
14238
+ /**
14239
+ * Read one profile's rows by name
14240
+ */
14241
+ profile?: string;
14242
+ /**
14243
+ * Read the owner-labeled all-profiles aggregate
14244
+ */
14245
+ all_profiles?: boolean;
14246
+ /**
14247
+ * Aggregate runs support recency order only
14248
+ */
14249
+ order?: "recency";
14250
+ };
14251
+ url: "/api/loop-runs";
14252
+ };
14253
+ export type ListLoopRunsAggregateErrors = {
14254
+ /**
14255
+ * Invalid Loop request
14256
+ */
14257
+ 400: ErrorPayload;
14258
+ /**
14259
+ * Internal server error
14260
+ */
14261
+ 500: ErrorPayload;
14262
+ /**
14263
+ * Loop service is not configured
14264
+ */
14265
+ 503: ErrorPayload;
14266
+ };
14267
+ export type ListLoopRunsAggregateError = ListLoopRunsAggregateErrors[keyof ListLoopRunsAggregateErrors];
14268
+ export type ListLoopRunsAggregateResponses = {
14269
+ /**
14270
+ * OK
14271
+ */
14272
+ 200: LoopRunsResponse;
14273
+ };
14274
+ export type ListLoopRunsAggregateResponse = ListLoopRunsAggregateResponses[keyof ListLoopRunsAggregateResponses];
14275
+ export type ListLoopsAggregateData = {
14276
+ body?: never;
14277
+ path?: never;
14278
+ query?: {
14279
+ /**
14280
+ * Read all registered projects and User rows
14281
+ */
14282
+ all_workspaces?: boolean;
14283
+ /**
14284
+ * Repeatable project IDs or @user; requires all_workspaces=true
14285
+ */
14286
+ workspace_ids?: Array<string>;
14287
+ /**
14288
+ * Search Loop name or contract goal
14289
+ */
14290
+ q?: string;
14291
+ /**
14292
+ * Filter by effective Loop kind
14293
+ */
14294
+ kind?: "read_only" | "workspace";
14295
+ /**
14296
+ * Filter by exact catalog category
14297
+ */
14298
+ category?: string;
14299
+ /**
14300
+ * Filter by exact latest-run status
14301
+ */
14302
+ status?: "queued" | "running" | "watching" | "needs-approval" | "paused" | "done" | "no-op" | "blocked" | "failed" | "exhausted" | "stalled" | "canceled";
14303
+ /**
14304
+ * Stable read-only-first name order
14305
+ */
14306
+ sort?: "name";
14307
+ /**
14308
+ * Continue after this workspace- and query-bound Loop cursor
14309
+ */
14310
+ cursor?: string;
14311
+ /**
14312
+ * Maximum number of Loops to return; defaults to 50 and is capped at 200
14313
+ */
14314
+ limit?: number;
14315
+ /**
14316
+ * Read one profile's rows by name
14317
+ */
14318
+ profile?: string;
14319
+ /**
14320
+ * Read the owner-labeled all-profiles aggregate
14321
+ */
14322
+ all_profiles?: boolean;
14323
+ };
14324
+ url: "/api/loops";
14325
+ };
14326
+ export type ListLoopsAggregateErrors = {
14327
+ /**
14328
+ * Invalid Loop request
14329
+ */
14330
+ 400: ErrorPayload;
14331
+ /**
14332
+ * Forbidden
14333
+ */
14334
+ 403: ErrorPayload;
14335
+ /**
14336
+ * Internal server error
14337
+ */
14338
+ 500: ErrorPayload;
14339
+ /**
14340
+ * Loop service is not configured
14341
+ */
14342
+ 503: ErrorPayload;
14343
+ };
14344
+ export type ListLoopsAggregateError = ListLoopsAggregateErrors[keyof ListLoopsAggregateErrors];
14345
+ export type ListLoopsAggregateResponses = {
14346
+ /**
14347
+ * OK
14348
+ */
14349
+ 200: LoopCatalogBatchResponse;
14350
+ };
14351
+ export type ListLoopsAggregateResponse = ListLoopsAggregateResponses[keyof ListLoopsAggregateResponses];
13723
14352
  export type ListMarketplaceData = {
13724
14353
  body?: never;
13725
14354
  path?: never;
@@ -14465,6 +15094,10 @@ export type ListAttentionNotificationsData = {
14465
15094
  * Home workspace scope; empty selects global tasks
14466
15095
  */
14467
15096
  workspace?: string;
15097
+ /**
15098
+ * Every project's tasks, matching an All projects Home overview
15099
+ */
15100
+ all_workspaces?: boolean;
14468
15101
  /**
14469
15102
  * Read one profile's rows by name
14470
15103
  */
@@ -14517,6 +15150,10 @@ export type AcknowledgeAttentionNotificationsData = {
14517
15150
  * Home workspace scope; empty selects global tasks
14518
15151
  */
14519
15152
  workspace?: string;
15153
+ /**
15154
+ * Every project's tasks, matching an All projects Home overview
15155
+ */
15156
+ all_workspaces?: boolean;
14520
15157
  /**
14521
15158
  * Read one profile's rows by name
14522
15159
  */
@@ -14566,6 +15203,10 @@ export type GetObserveOverviewData = {
14566
15203
  body?: never;
14567
15204
  path?: never;
14568
15205
  query?: {
15206
+ /**
15207
+ * Read every project and User within the profile lens; conflicts with workspace
15208
+ */
15209
+ all_workspaces?: boolean;
14569
15210
  /**
14570
15211
  * Profile owning acknowledgement receipts, including aggregate reads
14571
15212
  */
@@ -14590,6 +15231,14 @@ export type GetObserveOverviewData = {
14590
15231
  url: "/api/observe/overview";
14591
15232
  };
14592
15233
  export type GetObserveOverviewErrors = {
15234
+ /**
15235
+ * Invalid workspace breadth
15236
+ */
15237
+ 400: ErrorPayload;
15238
+ /**
15239
+ * Agent aggregate access denied
15240
+ */
15241
+ 403: ErrorPayload;
14593
15242
  /**
14594
15243
  * Workspace not found
14595
15244
  */
@@ -14619,10 +15268,18 @@ export type GetTaskDashboardData = {
14619
15268
  body?: never;
14620
15269
  path?: never;
14621
15270
  query?: {
15271
+ /**
15272
+ * Read every project and User within the profile lens; conflicts with workspace
15273
+ */
15274
+ all_workspaces?: boolean;
15275
+ /**
15276
+ * Repeatable project IDs; @user selects User; requires all_workspaces=true
15277
+ */
15278
+ workspace_ids?: Array<string>;
14622
15279
  /**
14623
15280
  * Filter by task scope
14624
15281
  */
14625
- scope?: "global" | "workspace";
15282
+ scope?: "global" | "workspace" | "user" | "@user";
14626
15283
  /**
14627
15284
  * Filter by workspace path, name, or ID
14628
15285
  */
@@ -14655,6 +15312,14 @@ export type GetTaskDashboardData = {
14655
15312
  url: "/api/observe/tasks/dashboard";
14656
15313
  };
14657
15314
  export type GetTaskDashboardErrors = {
15315
+ /**
15316
+ * Invalid workspace breadth
15317
+ */
15318
+ 400: ErrorPayload;
15319
+ /**
15320
+ * Agent aggregate access denied
15321
+ */
15322
+ 403: ErrorPayload;
14658
15323
  /**
14659
15324
  * Workspace not found
14660
15325
  */
@@ -14687,11 +15352,19 @@ export type GetTaskInboxData = {
14687
15352
  /**
14688
15353
  * Filter by task scope
14689
15354
  */
14690
- scope?: "global" | "workspace";
15355
+ scope?: "global" | "workspace" | "user" | "@user";
14691
15356
  /**
14692
15357
  * Filter by workspace path, name, or ID
14693
15358
  */
14694
15359
  workspace?: string;
15360
+ /**
15361
+ * Read all projects and User rows
15362
+ */
15363
+ all_workspaces?: boolean;
15364
+ /**
15365
+ * Repeatable project IDs or @user; requires all_workspaces=true
15366
+ */
15367
+ workspace_ids?: Array<string>;
14695
15368
  /**
14696
15369
  * Filter by active run worktree ID
14697
15370
  */
@@ -15510,6 +16183,144 @@ export type UnarchiveProfileResponses = {
15510
16183
  200: UnarchiveProfileResponse;
15511
16184
  };
15512
16185
  export type UnarchiveProfileResponse2 = UnarchiveProfileResponses[keyof UnarchiveProfileResponses];
16186
+ export type ListProviderUsageData = {
16187
+ body?: never;
16188
+ path?: never;
16189
+ query?: {
16190
+ /**
16191
+ * Profile name; defaults to the caller session profile or default
16192
+ */
16193
+ profile?: string;
16194
+ };
16195
+ url: "/api/provider-usage";
16196
+ };
16197
+ export type ListProviderUsageErrors = {
16198
+ /**
16199
+ * Invalid request
16200
+ */
16201
+ 400: ErrorPayload;
16202
+ /**
16203
+ * App token route forbidden
16204
+ */
16205
+ 403: ErrorPayload;
16206
+ /**
16207
+ * Profile or provider not found
16208
+ */
16209
+ 404: ErrorPayload | ProfileErrorPayload;
16210
+ /**
16211
+ * Usage disabled or session profile conflict
16212
+ */
16213
+ 409: ErrorPayload | ProfileErrorPayload;
16214
+ /**
16215
+ * Internal server error
16216
+ */
16217
+ 500: ErrorPayload;
16218
+ /**
16219
+ * Usage service unavailable
16220
+ */
16221
+ 503: ErrorPayload;
16222
+ };
16223
+ export type ListProviderUsageError = ListProviderUsageErrors[keyof ListProviderUsageErrors];
16224
+ export type ListProviderUsageResponses = {
16225
+ /**
16226
+ * Profile-scoped usage envelope
16227
+ */
16228
+ 200: ProviderUsageEnvelope;
16229
+ };
16230
+ export type ListProviderUsageResponse = ListProviderUsageResponses[keyof ListProviderUsageResponses];
16231
+ export type GetProviderUsageData = {
16232
+ body?: never;
16233
+ path: {
16234
+ /**
16235
+ * Canonical provider ID
16236
+ */
16237
+ provider_id: string;
16238
+ };
16239
+ query?: {
16240
+ /**
16241
+ * Profile name; defaults to the caller session profile or default
16242
+ */
16243
+ profile?: string;
16244
+ };
16245
+ url: "/api/provider-usage/providers/{provider_id}";
16246
+ };
16247
+ export type GetProviderUsageErrors = {
16248
+ /**
16249
+ * Invalid request
16250
+ */
16251
+ 400: ErrorPayload;
16252
+ /**
16253
+ * App token route forbidden
16254
+ */
16255
+ 403: ErrorPayload;
16256
+ /**
16257
+ * Profile or provider not found
16258
+ */
16259
+ 404: ErrorPayload | ProfileErrorPayload;
16260
+ /**
16261
+ * Usage disabled or session profile conflict
16262
+ */
16263
+ 409: ErrorPayload | ProfileErrorPayload;
16264
+ /**
16265
+ * Internal server error
16266
+ */
16267
+ 500: ErrorPayload;
16268
+ /**
16269
+ * Usage service unavailable
16270
+ */
16271
+ 503: ErrorPayload;
16272
+ };
16273
+ export type GetProviderUsageError = GetProviderUsageErrors[keyof GetProviderUsageErrors];
16274
+ export type GetProviderUsageResponses = {
16275
+ /**
16276
+ * Profile-scoped usage envelope
16277
+ */
16278
+ 200: ProviderUsageEnvelope;
16279
+ };
16280
+ export type GetProviderUsageResponse = GetProviderUsageResponses[keyof GetProviderUsageResponses];
16281
+ export type RefreshProviderUsageData = {
16282
+ /**
16283
+ * JSON request body
16284
+ */
16285
+ body?: ProviderUsageRefreshRequest;
16286
+ path?: never;
16287
+ query?: never;
16288
+ url: "/api/provider-usage/refresh";
16289
+ };
16290
+ export type RefreshProviderUsageErrors = {
16291
+ /**
16292
+ * Invalid request
16293
+ */
16294
+ 400: ErrorPayload;
16295
+ /**
16296
+ * App token route forbidden
16297
+ */
16298
+ 403: ErrorPayload;
16299
+ /**
16300
+ * Profile or provider not found
16301
+ */
16302
+ 404: ErrorPayload | ProfileErrorPayload;
16303
+ /**
16304
+ * Usage disabled or session profile conflict
16305
+ */
16306
+ 409: ErrorPayload | ProfileErrorPayload;
16307
+ /**
16308
+ * Internal server error
16309
+ */
16310
+ 500: ErrorPayload;
16311
+ /**
16312
+ * Usage service unavailable
16313
+ */
16314
+ 503: ErrorPayload;
16315
+ };
16316
+ export type RefreshProviderUsageError = RefreshProviderUsageErrors[keyof RefreshProviderUsageErrors];
16317
+ export type RefreshProviderUsageResponses = {
16318
+ /**
16319
+ * Profile-scoped usage envelope
16320
+ */
16321
+ 200: ProviderUsageEnvelope;
16322
+ };
16323
+ export type RefreshProviderUsageResponse = RefreshProviderUsageResponses[keyof RefreshProviderUsageResponses];
15513
16324
  export type ListProvidersData = {
15514
16325
  body?: never;
15515
16326
  path?: never;
@@ -16344,7 +17155,7 @@ export type GetSchedulerBacklogData = {
16344
17155
  /**
16345
17156
  * Filter by catalog visibility
16346
17157
  */
16347
- scope?: "all" | "global" | "workspace";
17158
+ scope?: "all" | "global" | "workspace" | "user" | "@user";
16348
17159
  /**
16349
17160
  * Filter by workspace path, name, or ID
16350
17161
  */
@@ -16503,6 +17314,10 @@ export type ListSessionsData = {
16503
17314
  * Use the explicit all-workspaces aggregate
16504
17315
  */
16505
17316
  all_workspaces?: boolean;
17317
+ /**
17318
+ * Project IDs or @user; repeatable, requires all_workspaces
17319
+ */
17320
+ workspace_ids?: Array<string>;
16506
17321
  /**
16507
17322
  * Include metadata-only health for returned sessions
16508
17323
  */
@@ -16700,6 +17515,10 @@ export type ListSessionFacetsData = {
16700
17515
  * Use the explicit all-workspaces aggregate
16701
17516
  */
16702
17517
  all_workspaces?: boolean;
17518
+ /**
17519
+ * Project IDs or @user; repeatable, requires all_workspaces
17520
+ */
17521
+ workspace_ids?: Array<string>;
16703
17522
  /**
16704
17523
  * Filter by bound worktree id
16705
17524
  */
@@ -18416,6 +19235,70 @@ export type UpdateSettingsPersonaResponses = {
18416
19235
  200: SettingsApplyResponse;
18417
19236
  };
18418
19237
  export type UpdateSettingsPersonaResponse = UpdateSettingsPersonaResponses[keyof UpdateSettingsPersonaResponses];
19238
+ export type GetSettingsProviderUsageData = {
19239
+ body?: never;
19240
+ path?: never;
19241
+ query?: never;
19242
+ url: "/api/settings/provider-usage";
19243
+ };
19244
+ export type GetSettingsProviderUsageErrors = {
19245
+ /**
19246
+ * Internal server error
19247
+ */
19248
+ 500: ErrorPayload;
19249
+ };
19250
+ export type GetSettingsProviderUsageError = GetSettingsProviderUsageErrors[keyof GetSettingsProviderUsageErrors];
19251
+ export type GetSettingsProviderUsageResponses = {
19252
+ /**
19253
+ * OK
19254
+ */
19255
+ 200: SettingsProviderUsageResponse;
19256
+ };
19257
+ export type GetSettingsProviderUsageResponse = GetSettingsProviderUsageResponses[keyof GetSettingsProviderUsageResponses];
19258
+ export type UpdateSettingsProviderUsageData = {
19259
+ /**
19260
+ * JSON request body
19261
+ */
19262
+ body: SettingsProviderUsageUpdateRequest;
19263
+ path?: never;
19264
+ query?: {
19265
+ /**
19266
+ * Collection profile name or ID for local Keychain consent; independent of user config scope; defaults to default
19267
+ */
19268
+ collection_profile?: string;
19269
+ };
19270
+ url: "/api/settings/provider-usage";
19271
+ };
19272
+ export type UpdateSettingsProviderUsageErrors = {
19273
+ /**
19274
+ * Invalid settings payload
19275
+ */
19276
+ 400: ErrorPayload | ProfileErrorPayload;
19277
+ /**
19278
+ * Forbidden
19279
+ */
19280
+ 403: ErrorPayload;
19281
+ /**
19282
+ * Collection profile not found
19283
+ */
19284
+ 404: ProfileErrorPayload;
19285
+ /**
19286
+ * Conflicting settings change
19287
+ */
19288
+ 409: ErrorPayload | ProfileErrorPayload;
19289
+ /**
19290
+ * Internal server error
19291
+ */
19292
+ 500: ErrorPayload;
19293
+ };
19294
+ export type UpdateSettingsProviderUsageError = UpdateSettingsProviderUsageErrors[keyof UpdateSettingsProviderUsageErrors];
19295
+ export type UpdateSettingsProviderUsageResponses = {
19296
+ /**
19297
+ * OK
19298
+ */
19299
+ 200: SettingsApplyResponse;
19300
+ };
19301
+ export type UpdateSettingsProviderUsageResponse = UpdateSettingsProviderUsageResponses[keyof UpdateSettingsProviderUsageResponses];
18419
19302
  export type ListSettingsProvidersData = {
18420
19303
  body?: never;
18421
19304
  path?: never;
@@ -18673,7 +19556,7 @@ export type UpdateSettingsShellResponses = {
18673
19556
  /**
18674
19557
  * OK
18675
19558
  */
18676
- 200: SettingsApplyResponse;
19559
+ 200: SettingsShellMutationResponse;
18677
19560
  };
18678
19561
  export type UpdateSettingsShellResponse = UpdateSettingsShellResponses[keyof UpdateSettingsShellResponses];
18679
19562
  export type GetSettingsSkillsData = {
@@ -20071,10 +20954,18 @@ export type ListTasksData = {
20071
20954
  body?: never;
20072
20955
  path?: never;
20073
20956
  query?: {
20957
+ /**
20958
+ * Read every project and User within the profile lens; conflicts with workspace
20959
+ */
20960
+ all_workspaces?: boolean;
20961
+ /**
20962
+ * Repeatable project IDs; @user selects User; requires all_workspaces=true
20963
+ */
20964
+ workspace_ids?: Array<string>;
20074
20965
  /**
20075
20966
  * Filter by catalog visibility
20076
20967
  */
20077
- scope?: "all" | "global" | "workspace";
20968
+ scope?: "all" | "global" | "workspace" | "user" | "@user";
20078
20969
  /**
20079
20970
  * Filter by workspace path, name, or ID
20080
20971
  */
@@ -20151,6 +21042,10 @@ export type ListTasksErrors = {
20151
21042
  * Invalid task filter or cursor
20152
21043
  */
20153
21044
  400: TaskQueryErrorPayload;
21045
+ /**
21046
+ * Agent aggregate access denied
21047
+ */
21048
+ 403: ErrorPayload;
20154
21049
  /**
20155
21050
  * Workspace not found
20156
21051
  */
@@ -21720,28 +22615,89 @@ export type MarkTaskReadErrors = {
21720
22615
  /**
21721
22616
  * Task not found
21722
22617
  */
21723
- 404: ErrorPayload;
22618
+ 404: ErrorPayload;
22619
+ /**
22620
+ * Invalid task triage request
22621
+ */
22622
+ 422: ErrorPayload;
22623
+ /**
22624
+ * Internal server error
22625
+ */
22626
+ 500: ErrorPayload;
22627
+ /**
22628
+ * Task service is not configured
22629
+ */
22630
+ 503: ErrorPayload;
22631
+ };
22632
+ export type MarkTaskReadError = MarkTaskReadErrors[keyof MarkTaskReadErrors];
22633
+ export type MarkTaskReadResponses = {
22634
+ /**
22635
+ * OK
22636
+ */
22637
+ 200: TaskTriageStateResponse;
22638
+ };
22639
+ export type MarkTaskReadResponse = MarkTaskReadResponses[keyof MarkTaskReadResponses];
22640
+ export type ListTerminalsAggregateData = {
22641
+ body?: never;
22642
+ path?: never;
22643
+ query?: {
22644
+ /**
22645
+ * Read all projects and User rows
22646
+ */
22647
+ all_workspaces?: boolean;
22648
+ /**
22649
+ * Repeatable project IDs or @user; requires all_workspaces=true
22650
+ */
22651
+ workspace_ids?: Array<string>;
22652
+ /**
22653
+ * Read one profile's rows by name
22654
+ */
22655
+ profile?: string;
22656
+ /**
22657
+ * Read the owner-labeled all-profiles aggregate
22658
+ */
22659
+ all_profiles?: boolean;
22660
+ };
22661
+ url: "/api/terminals";
22662
+ };
22663
+ export type ListTerminalsAggregateErrors = {
22664
+ /**
22665
+ * Malformed terminal request
22666
+ */
22667
+ 400: TerminalErrorResponse;
22668
+ /**
22669
+ * Terminal authentication required
22670
+ */
22671
+ 401: TerminalErrorResponse;
22672
+ /**
22673
+ * Terminal operation forbidden
22674
+ */
22675
+ 403: TerminalErrorResponse;
22676
+ /**
22677
+ * Terminal state or profile conflict
22678
+ */
22679
+ 409: TerminalErrorResponse;
21724
22680
  /**
21725
- * Invalid task triage request
22681
+ * Invalid profile selection
21726
22682
  */
21727
- 422: ErrorPayload;
22683
+ 422: TerminalErrorResponse;
21728
22684
  /**
21729
- * Internal server error
22685
+ * Terminal transport failed
21730
22686
  */
21731
- 500: ErrorPayload;
22687
+ 500: TerminalErrorResponse;
21732
22688
  /**
21733
- * Task service is not configured
22689
+ * Terminal service unavailable
21734
22690
  */
21735
- 503: ErrorPayload;
22691
+ 503: TerminalErrorResponse;
21736
22692
  };
21737
- export type MarkTaskReadError = MarkTaskReadErrors[keyof MarkTaskReadErrors];
21738
- export type MarkTaskReadResponses = {
22693
+ export type ListTerminalsAggregateError = ListTerminalsAggregateErrors[keyof ListTerminalsAggregateErrors];
22694
+ export type ListTerminalsAggregateResponses = {
21739
22695
  /**
21740
22696
  * OK
21741
22697
  */
21742
- 200: TaskTriageStateResponse;
22698
+ 200: TerminalListResponse;
21743
22699
  };
21744
- export type MarkTaskReadResponse = MarkTaskReadResponses[keyof MarkTaskReadResponses];
22700
+ export type ListTerminalsAggregateResponse = ListTerminalsAggregateResponses[keyof ListTerminalsAggregateResponses];
21745
22701
  export type ListToolApprovalGrantsData = {
21746
22702
  body?: never;
21747
22703
  path?: never;
@@ -25623,6 +26579,10 @@ export type ListWorkspaceSessionsData = {
25623
26579
  workspace_id: string;
25624
26580
  };
25625
26581
  query?: {
26582
+ /**
26583
+ * Project IDs or @user; repeatable, requires all_workspaces
26584
+ */
26585
+ workspace_ids?: Array<string>;
25626
26586
  /**
25627
26587
  * Include metadata-only health for returned sessions
25628
26588
  */
@@ -25922,6 +26882,10 @@ export type ArchiveSessionData = {
25922
26882
  session_id: string;
25923
26883
  };
25924
26884
  query?: {
26885
+ /**
26886
+ * Stop a live session through the normal stop path before archiving it; a failed stop leaves it unarchived
26887
+ */
26888
+ stop?: boolean;
25925
26889
  /**
25926
26890
  * Act as this profile by name
25927
26891
  */
@@ -25930,12 +26894,16 @@ export type ArchiveSessionData = {
25930
26894
  url: "/api/workspaces/{workspace_id}/sessions/{session_id}/archive";
25931
26895
  };
25932
26896
  export type ArchiveSessionErrors = {
26897
+ /**
26898
+ * Invalid archive request
26899
+ */
26900
+ 400: ErrorPayload;
25933
26901
  /**
25934
26902
  * Session not found
25935
26903
  */
25936
26904
  404: ErrorPayload;
25937
26905
  /**
25938
- * Session must be stopped before archiving
26906
+ * Session must be stopped before archiving, or the requested stop failed
25939
26907
  */
25940
26908
  409: ErrorPayload;
25941
26909
  /**
@@ -26928,6 +27896,84 @@ export type ListSessionInteractionsResponses = {
26928
27896
  200: SessionInteractionsResponse;
26929
27897
  };
26930
27898
  export type ListSessionInteractionsResponse = ListSessionInteractionsResponses[keyof ListSessionInteractionsResponses];
27899
+ export type ListSessionMonitorsData = {
27900
+ body?: never;
27901
+ path: {
27902
+ /**
27903
+ * Workspace id
27904
+ */
27905
+ workspace_id: string;
27906
+ /**
27907
+ * Session id
27908
+ */
27909
+ session_id: string;
27910
+ };
27911
+ query?: never;
27912
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors";
27913
+ };
27914
+ export type ListSessionMonitorsErrors = {
27915
+ /**
27916
+ * Session or monitor not found
27917
+ */
27918
+ 404: ErrorPayload;
27919
+ /**
27920
+ * Internal server error
27921
+ */
27922
+ 500: ErrorPayload;
27923
+ /**
27924
+ * Session monitors unavailable
27925
+ */
27926
+ 503: ErrorPayload;
27927
+ };
27928
+ export type ListSessionMonitorsError = ListSessionMonitorsErrors[keyof ListSessionMonitorsErrors];
27929
+ export type ListSessionMonitorsResponses = {
27930
+ /**
27931
+ * Success
27932
+ */
27933
+ 200: SessionMonitorsResponse;
27934
+ };
27935
+ export type ListSessionMonitorsResponse = ListSessionMonitorsResponses[keyof ListSessionMonitorsResponses];
27936
+ export type CancelSessionMonitorData = {
27937
+ body?: never;
27938
+ path: {
27939
+ /**
27940
+ * Workspace id
27941
+ */
27942
+ workspace_id: string;
27943
+ /**
27944
+ * Session id
27945
+ */
27946
+ session_id: string;
27947
+ /**
27948
+ * Monitor id
27949
+ */
27950
+ monitor_id: string;
27951
+ };
27952
+ query?: never;
27953
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors/{monitor_id}/cancel";
27954
+ };
27955
+ export type CancelSessionMonitorErrors = {
27956
+ /**
27957
+ * Session or monitor not found
27958
+ */
27959
+ 404: ErrorPayload;
27960
+ /**
27961
+ * Internal server error
27962
+ */
27963
+ 500: ErrorPayload;
27964
+ /**
27965
+ * Session monitors unavailable
27966
+ */
27967
+ 503: ErrorPayload;
27968
+ };
27969
+ export type CancelSessionMonitorError = CancelSessionMonitorErrors[keyof CancelSessionMonitorErrors];
27970
+ export type CancelSessionMonitorResponses = {
27971
+ /**
27972
+ * Success
27973
+ */
27974
+ 200: SessionMonitorResponse;
27975
+ };
27976
+ export type CancelSessionMonitorResponse = CancelSessionMonitorResponses[keyof CancelSessionMonitorResponses];
26931
27977
  export type MoveSessionData = {
26932
27978
  /**
26933
27979
  * JSON request body
@@ -26981,6 +28027,109 @@ export type MoveSessionResponses = {
26981
28027
  200: SessionFoldersResponse;
26982
28028
  };
26983
28029
  export type MoveSessionResponse = MoveSessionResponses[keyof MoveSessionResponses];
28030
+ export type ClearSessionParentData = {
28031
+ body?: never;
28032
+ path: {
28033
+ /**
28034
+ * Workspace id
28035
+ */
28036
+ workspace_id: string;
28037
+ /**
28038
+ * Session id
28039
+ */
28040
+ session_id: string;
28041
+ };
28042
+ query?: {
28043
+ /**
28044
+ * Act as this profile by name
28045
+ */
28046
+ profile?: string;
28047
+ };
28048
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/parent";
28049
+ };
28050
+ export type ClearSessionParentErrors = {
28051
+ /**
28052
+ * Invalid reparent request
28053
+ */
28054
+ 400: ErrorPayload;
28055
+ /**
28056
+ * Session not found
28057
+ */
28058
+ 404: ErrorPayload;
28059
+ /**
28060
+ * Reparent refused by a lineage rule; code names the rule
28061
+ */
28062
+ 409: ErrorPayload;
28063
+ /**
28064
+ * Internal server error
28065
+ */
28066
+ 500: ErrorPayload;
28067
+ /**
28068
+ * Session reparent unavailable
28069
+ */
28070
+ 503: ErrorPayload;
28071
+ };
28072
+ export type ClearSessionParentError = ClearSessionParentErrors[keyof ClearSessionParentErrors];
28073
+ export type ClearSessionParentResponses = {
28074
+ /**
28075
+ * OK
28076
+ */
28077
+ 200: SessionResponse;
28078
+ };
28079
+ export type ClearSessionParentResponse = ClearSessionParentResponses[keyof ClearSessionParentResponses];
28080
+ export type SetSessionParentData = {
28081
+ /**
28082
+ * JSON request body
28083
+ */
28084
+ body: SetSessionParentRequest;
28085
+ path: {
28086
+ /**
28087
+ * Workspace id
28088
+ */
28089
+ workspace_id: string;
28090
+ /**
28091
+ * Session id
28092
+ */
28093
+ session_id: string;
28094
+ };
28095
+ query?: {
28096
+ /**
28097
+ * Act as this profile by name
28098
+ */
28099
+ profile?: string;
28100
+ };
28101
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/parent";
28102
+ };
28103
+ export type SetSessionParentErrors = {
28104
+ /**
28105
+ * Invalid reparent request
28106
+ */
28107
+ 400: ErrorPayload;
28108
+ /**
28109
+ * Session not found
28110
+ */
28111
+ 404: ErrorPayload;
28112
+ /**
28113
+ * Reparent refused by a lineage rule; code names the rule
28114
+ */
28115
+ 409: ErrorPayload;
28116
+ /**
28117
+ * Internal server error
28118
+ */
28119
+ 500: ErrorPayload;
28120
+ /**
28121
+ * Session reparent unavailable
28122
+ */
28123
+ 503: ErrorPayload;
28124
+ };
28125
+ export type SetSessionParentError = SetSessionParentErrors[keyof SetSessionParentErrors];
28126
+ export type SetSessionParentResponses = {
28127
+ /**
28128
+ * OK
28129
+ */
28130
+ 200: SessionResponse;
28131
+ };
28132
+ export type SetSessionParentResponse = SetSessionParentResponses[keyof SetSessionParentResponses];
26984
28133
  export type UpdateSessionPresenceData = {
26985
28134
  /**
26986
28135
  * JSON request body
@@ -29478,6 +30627,10 @@ export type RegisterWindowManagerClientData = {
29478
30627
  url: "/api/workspaces/{workspace_id}/window-manager/clients";
29479
30628
  };
29480
30629
  export type RegisterWindowManagerClientErrors = {
30630
+ /**
30631
+ * Invalid window workspace binding
30632
+ */
30633
+ 400: ContractWindowManagerErrorPayload;
29481
30634
  /**
29482
30635
  * Workspace or referenced entity not found
29483
30636
  */
@@ -29524,6 +30677,10 @@ export type UnregisterWindowManagerClientData = {
29524
30677
  url: "/api/workspaces/{workspace_id}/window-manager/clients/{client_id}";
29525
30678
  };
29526
30679
  export type UnregisterWindowManagerClientErrors = {
30680
+ /**
30681
+ * Invalid window workspace binding
30682
+ */
30683
+ 400: ContractWindowManagerErrorPayload;
29527
30684
  /**
29528
30685
  * Workspace or referenced entity not found
29529
30686
  */
@@ -29569,6 +30726,10 @@ export type ExecuteWindowManagerCommandData = {
29569
30726
  url: "/api/workspaces/{workspace_id}/window-manager/commands";
29570
30727
  };
29571
30728
  export type ExecuteWindowManagerCommandErrors = {
30729
+ /**
30730
+ * Invalid window workspace binding
30731
+ */
30732
+ 400: ContractWindowManagerErrorPayload;
29572
30733
  /**
29573
30734
  * Workspace or referenced entity not found
29574
30735
  */
@@ -29648,6 +30809,10 @@ export type ReplaceWindowManagerLayoutData = {
29648
30809
  url: "/api/workspaces/{workspace_id}/window-manager/layout";
29649
30810
  };
29650
30811
  export type ReplaceWindowManagerLayoutErrors = {
30812
+ /**
30813
+ * Invalid window workspace binding
30814
+ */
30815
+ 400: ContractWindowManagerErrorPayload;
29651
30816
  /**
29652
30817
  * Workspace or referenced entity not found
29653
30818
  */
@@ -29869,6 +31034,10 @@ export type ValidateWindowManagerLayoutData = {
29869
31034
  url: "/api/workspaces/{workspace_id}/window-manager/layout/validate";
29870
31035
  };
29871
31036
  export type ValidateWindowManagerLayoutErrors = {
31037
+ /**
31038
+ * Invalid window workspace binding
31039
+ */
31040
+ 400: ContractWindowManagerErrorPayload;
29872
31041
  /**
29873
31042
  * Workspace or referenced entity not found
29874
31043
  */
@@ -29914,6 +31083,10 @@ export type PreviewWindowManagerCommandData = {
29914
31083
  url: "/api/workspaces/{workspace_id}/window-manager/preview";
29915
31084
  };
29916
31085
  export type PreviewWindowManagerCommandErrors = {
31086
+ /**
31087
+ * Invalid window workspace binding
31088
+ */
31089
+ 400: ContractWindowManagerErrorPayload;
29917
31090
  /**
29918
31091
  * Workspace or referenced entity not found
29919
31092
  */
@@ -30095,6 +31268,59 @@ export type AdoptWorktreeResponses = {
30095
31268
  200: WorktreeResponse;
30096
31269
  };
30097
31270
  export type AdoptWorktreeResponse = AdoptWorktreeResponses[keyof AdoptWorktreeResponses];
31271
+ export type RemoveDiscoveredWorktreeData = {
31272
+ /**
31273
+ * JSON request body
31274
+ */
31275
+ body: RemoveDiscoveredWorktreeRequest;
31276
+ path: {
31277
+ /**
31278
+ * Workspace id or path
31279
+ */
31280
+ workspace_id: string;
31281
+ };
31282
+ query?: {
31283
+ /**
31284
+ * Act as this profile by name
31285
+ */
31286
+ profile?: string;
31287
+ };
31288
+ url: "/api/workspaces/{workspace_id}/worktrees/discovered/remove";
31289
+ };
31290
+ export type RemoveDiscoveredWorktreeErrors = {
31291
+ /**
31292
+ * Invalid discovered removal request
31293
+ */
31294
+ 400: ErrorPayload;
31295
+ /**
31296
+ * Hook or profile does not permit removal
31297
+ */
31298
+ 403: ErrorPayload;
31299
+ /**
31300
+ * Discovered worktree or workspace not found
31301
+ */
31302
+ 404: ErrorPayload;
31303
+ /**
31304
+ * Removal requires another decision
31305
+ */
31306
+ 409: WorktreeRemovalRefusalPayload;
31307
+ /**
31308
+ * Internal server error
31309
+ */
31310
+ 500: ErrorPayload;
31311
+ /**
31312
+ * Worktree service is unavailable
31313
+ */
31314
+ 503: ErrorPayload;
31315
+ };
31316
+ export type RemoveDiscoveredWorktreeError = RemoveDiscoveredWorktreeErrors[keyof RemoveDiscoveredWorktreeErrors];
31317
+ export type RemoveDiscoveredWorktreeResponses = {
31318
+ /**
31319
+ * No Content
31320
+ */
31321
+ 204: void;
31322
+ };
31323
+ export type RemoveDiscoveredWorktreeResponse = RemoveDiscoveredWorktreeResponses[keyof RemoveDiscoveredWorktreeResponses];
30098
31324
  export type RemoveWorktreeData = {
30099
31325
  body?: never;
30100
31326
  path: {
@@ -30529,4 +31755,45 @@ export type GetWorktreeStatusResponses = {
30529
31755
  200: WorktreeStatusResponse;
30530
31756
  };
30531
31757
  export type GetWorktreeStatusResponse = GetWorktreeStatusResponses[keyof GetWorktreeStatusResponses];
31758
+ export type ListWorktreesAggregateData = {
31759
+ body?: never;
31760
+ path?: never;
31761
+ query?: {
31762
+ /**
31763
+ * Read all projects and User rows
31764
+ */
31765
+ all_workspaces?: boolean;
31766
+ /**
31767
+ * Repeatable project IDs or @user; requires all_workspaces=true
31768
+ */
31769
+ workspace_ids?: Array<string>;
31770
+ };
31771
+ url: "/api/worktrees";
31772
+ };
31773
+ export type ListWorktreesAggregateErrors = {
31774
+ /**
31775
+ * Invalid worktree list query
31776
+ */
31777
+ 400: ErrorPayload;
31778
+ /**
31779
+ * Workspace not found
31780
+ */
31781
+ 404: ErrorPayload;
31782
+ /**
31783
+ * Internal server error
31784
+ */
31785
+ 500: ErrorPayload;
31786
+ /**
31787
+ * Worktree service is unavailable
31788
+ */
31789
+ 503: ErrorPayload;
31790
+ };
31791
+ export type ListWorktreesAggregateError = ListWorktreesAggregateErrors[keyof ListWorktreesAggregateErrors];
31792
+ export type ListWorktreesAggregateResponses = {
31793
+ /**
31794
+ * OK
31795
+ */
31796
+ 200: WorktreesResponse;
31797
+ };
31798
+ export type ListWorktreesAggregateResponse = ListWorktreesAggregateResponses[keyof ListWorktreesAggregateResponses];
30532
31799
  //# sourceMappingURL=types.gen.d.ts.map