@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.
@@ -243,6 +243,23 @@ export interface paths {
243
243
  patch?: never;
244
244
  trace?: never;
245
245
  };
246
+ "/api/agents/aggregate": {
247
+ parameters: {
248
+ query?: never;
249
+ header?: never;
250
+ path?: never;
251
+ cookie?: never;
252
+ };
253
+ /** List a filtered agent fleet with exact session metrics */
254
+ get: operations["listAgentsAggregate"];
255
+ put?: never;
256
+ post?: never;
257
+ delete?: never;
258
+ options?: never;
259
+ head?: never;
260
+ patch?: never;
261
+ trace?: never;
262
+ };
246
263
  "/api/agents/catalog": {
247
264
  parameters: {
248
265
  query?: never;
@@ -611,6 +628,23 @@ export interface paths {
611
628
  patch?: never;
612
629
  trace?: never;
613
630
  };
631
+ "/api/automation/suggestions": {
632
+ parameters: {
633
+ query?: never;
634
+ header?: never;
635
+ path?: never;
636
+ cookie?: never;
637
+ };
638
+ /** List consent-first automation suggestions for one workspace */
639
+ get: operations["listAutomationSuggestionsAggregate"];
640
+ put?: never;
641
+ post?: never;
642
+ delete?: never;
643
+ options?: never;
644
+ head?: never;
645
+ patch?: never;
646
+ trace?: never;
647
+ };
614
648
  "/api/automation/triggers": {
615
649
  parameters: {
616
650
  query?: never;
@@ -1472,6 +1506,57 @@ export interface paths {
1472
1506
  patch?: never;
1473
1507
  trace?: never;
1474
1508
  };
1509
+ "/api/loop-requests": {
1510
+ parameters: {
1511
+ query?: never;
1512
+ header?: never;
1513
+ path?: never;
1514
+ cookie?: never;
1515
+ };
1516
+ /** List Loop human requests */
1517
+ get: operations["listLoopRequestsAggregate"];
1518
+ put?: never;
1519
+ post?: never;
1520
+ delete?: never;
1521
+ options?: never;
1522
+ head?: never;
1523
+ patch?: never;
1524
+ trace?: never;
1525
+ };
1526
+ "/api/loop-runs": {
1527
+ parameters: {
1528
+ query?: never;
1529
+ header?: never;
1530
+ path?: never;
1531
+ cookie?: never;
1532
+ };
1533
+ /** List Loop runs */
1534
+ get: operations["listLoopRunsAggregate"];
1535
+ put?: never;
1536
+ post?: never;
1537
+ delete?: never;
1538
+ options?: never;
1539
+ head?: never;
1540
+ patch?: never;
1541
+ trace?: never;
1542
+ };
1543
+ "/api/loops": {
1544
+ parameters: {
1545
+ query?: never;
1546
+ header?: never;
1547
+ path?: never;
1548
+ cookie?: never;
1549
+ };
1550
+ /** List Loop catalog entries */
1551
+ get: operations["listLoopsAggregate"];
1552
+ put?: never;
1553
+ post?: never;
1554
+ delete?: never;
1555
+ options?: never;
1556
+ head?: never;
1557
+ patch?: never;
1558
+ trace?: never;
1559
+ };
1475
1560
  "/api/marketplace": {
1476
1561
  parameters: {
1477
1562
  query?: never;
@@ -2057,6 +2142,74 @@ export interface paths {
2057
2142
  patch?: never;
2058
2143
  trace?: never;
2059
2144
  };
2145
+ "/api/provider-usage": {
2146
+ parameters: {
2147
+ query?: never;
2148
+ header?: never;
2149
+ path?: never;
2150
+ cookie?: never;
2151
+ };
2152
+ /** Read cached provider usage (experimental) */
2153
+ get: operations["listProviderUsage"];
2154
+ put?: never;
2155
+ post?: never;
2156
+ delete?: never;
2157
+ options?: never;
2158
+ head?: never;
2159
+ patch?: never;
2160
+ trace?: never;
2161
+ };
2162
+ "/api/provider-usage/providers/{provider_id}": {
2163
+ parameters: {
2164
+ query?: never;
2165
+ header?: never;
2166
+ path?: never;
2167
+ cookie?: never;
2168
+ };
2169
+ /** Read cached provider usage (experimental) */
2170
+ get: operations["getProviderUsage"];
2171
+ put?: never;
2172
+ post?: never;
2173
+ delete?: never;
2174
+ options?: never;
2175
+ head?: never;
2176
+ patch?: never;
2177
+ trace?: never;
2178
+ };
2179
+ "/api/provider-usage/refresh": {
2180
+ parameters: {
2181
+ query?: never;
2182
+ header?: never;
2183
+ path?: never;
2184
+ cookie?: never;
2185
+ };
2186
+ get?: never;
2187
+ put?: never;
2188
+ /** Refresh provider usage (experimental) */
2189
+ post: operations["refreshProviderUsage"];
2190
+ delete?: never;
2191
+ options?: never;
2192
+ head?: never;
2193
+ patch?: never;
2194
+ trace?: never;
2195
+ };
2196
+ "/api/provider-usage/stream": {
2197
+ parameters: {
2198
+ query?: never;
2199
+ header?: never;
2200
+ path?: never;
2201
+ cookie?: never;
2202
+ };
2203
+ /** Stream provider usage invalidations (experimental) */
2204
+ get: operations["streamProviderUsage"];
2205
+ put?: never;
2206
+ post?: never;
2207
+ delete?: never;
2208
+ options?: never;
2209
+ head?: never;
2210
+ patch?: never;
2211
+ trace?: never;
2212
+ };
2060
2213
  "/api/providers": {
2061
2214
  parameters: {
2062
2215
  query?: never;
@@ -2972,6 +3125,24 @@ export interface paths {
2972
3125
  patch: operations["updateSettingsPersona"];
2973
3126
  trace?: never;
2974
3127
  };
3128
+ "/api/settings/provider-usage": {
3129
+ parameters: {
3130
+ query?: never;
3131
+ header?: never;
3132
+ path?: never;
3133
+ cookie?: never;
3134
+ };
3135
+ /** Read the provider usage settings section */
3136
+ get: operations["getSettingsProviderUsage"];
3137
+ put?: never;
3138
+ post?: never;
3139
+ delete?: never;
3140
+ options?: never;
3141
+ head?: never;
3142
+ /** Update the provider usage settings section */
3143
+ patch: operations["updateSettingsProviderUsage"];
3144
+ trace?: never;
3145
+ };
2975
3146
  "/api/settings/providers": {
2976
3147
  parameters: {
2977
3148
  query?: never;
@@ -4023,6 +4194,40 @@ export interface paths {
4023
4194
  patch?: never;
4024
4195
  trace?: never;
4025
4196
  };
4197
+ "/api/terminals": {
4198
+ parameters: {
4199
+ query?: never;
4200
+ header?: never;
4201
+ path?: never;
4202
+ cookie?: never;
4203
+ };
4204
+ /** List workspace terminals */
4205
+ get: operations["listTerminalsAggregate"];
4206
+ put?: never;
4207
+ post?: never;
4208
+ delete?: never;
4209
+ options?: never;
4210
+ head?: never;
4211
+ patch?: never;
4212
+ trace?: never;
4213
+ };
4214
+ "/api/terminals/catalog-stream": {
4215
+ parameters: {
4216
+ query?: never;
4217
+ header?: never;
4218
+ path?: never;
4219
+ cookie?: never;
4220
+ };
4221
+ /** Stream one profile-scoped terminal catalog */
4222
+ get: operations["streamTerminalsAggregate"];
4223
+ put?: never;
4224
+ post?: never;
4225
+ delete?: never;
4226
+ options?: never;
4227
+ head?: never;
4228
+ patch?: never;
4229
+ trace?: never;
4230
+ };
4026
4231
  "/api/tool-approval-grants": {
4027
4232
  parameters: {
4028
4233
  query?: never;
@@ -5104,7 +5309,7 @@ export interface paths {
5104
5309
  };
5105
5310
  get?: never;
5106
5311
  put?: never;
5107
- /** Archive a stopped session */
5312
+ /** Archive a stopped session, or stop and archive a live session with stop=true */
5108
5313
  post: operations["archiveSession"];
5109
5314
  delete?: never;
5110
5315
  options?: never;
@@ -5436,6 +5641,40 @@ export interface paths {
5436
5641
  patch?: never;
5437
5642
  trace?: never;
5438
5643
  };
5644
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors": {
5645
+ parameters: {
5646
+ query?: never;
5647
+ header?: never;
5648
+ path?: never;
5649
+ cookie?: never;
5650
+ };
5651
+ /** List a session's monitors */
5652
+ get: operations["listSessionMonitors"];
5653
+ put?: never;
5654
+ post?: never;
5655
+ delete?: never;
5656
+ options?: never;
5657
+ head?: never;
5658
+ patch?: never;
5659
+ trace?: never;
5660
+ };
5661
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/monitors/{monitor_id}/cancel": {
5662
+ parameters: {
5663
+ query?: never;
5664
+ header?: never;
5665
+ path?: never;
5666
+ cookie?: never;
5667
+ };
5668
+ get?: never;
5669
+ put?: never;
5670
+ /** Cancel a session monitor without waking the session */
5671
+ post: operations["cancelSessionMonitor"];
5672
+ delete?: never;
5673
+ options?: never;
5674
+ head?: never;
5675
+ patch?: never;
5676
+ trace?: never;
5677
+ };
5439
5678
  "/api/workspaces/{workspace_id}/sessions/{session_id}/move": {
5440
5679
  parameters: {
5441
5680
  query?: never;
@@ -5453,6 +5692,24 @@ export interface paths {
5453
5692
  patch?: never;
5454
5693
  trace?: never;
5455
5694
  };
5695
+ "/api/workspaces/{workspace_id}/sessions/{session_id}/parent": {
5696
+ parameters: {
5697
+ query?: never;
5698
+ header?: never;
5699
+ path?: never;
5700
+ cookie?: never;
5701
+ };
5702
+ get?: never;
5703
+ /** Adopt a parentless user session as a child of another session */
5704
+ put: operations["setSessionParent"];
5705
+ post?: never;
5706
+ /** Make an adopted child session top-level again */
5707
+ delete: operations["clearSessionParent"];
5708
+ options?: never;
5709
+ head?: never;
5710
+ patch?: never;
5711
+ trace?: never;
5712
+ };
5456
5713
  "/api/workspaces/{workspace_id}/sessions/{session_id}/presence": {
5457
5714
  parameters: {
5458
5715
  query?: never;
@@ -6431,6 +6688,23 @@ export interface paths {
6431
6688
  patch?: never;
6432
6689
  trace?: never;
6433
6690
  };
6691
+ "/api/workspaces/{workspace_id}/worktrees/discovered/remove": {
6692
+ parameters: {
6693
+ query?: never;
6694
+ header?: never;
6695
+ path?: never;
6696
+ cookie?: never;
6697
+ };
6698
+ get?: never;
6699
+ put?: never;
6700
+ /** Remove a discovered worktree */
6701
+ post: operations["removeDiscoveredWorktree"];
6702
+ delete?: never;
6703
+ options?: never;
6704
+ head?: never;
6705
+ patch?: never;
6706
+ trace?: never;
6707
+ };
6434
6708
  "/api/workspaces/{workspace_id}/worktrees/{worktree_id}": {
6435
6709
  parameters: {
6436
6710
  query?: never;
@@ -6568,6 +6842,23 @@ export interface paths {
6568
6842
  patch?: never;
6569
6843
  trace?: never;
6570
6844
  };
6845
+ "/api/worktrees": {
6846
+ parameters: {
6847
+ query?: never;
6848
+ header?: never;
6849
+ path?: never;
6850
+ cookie?: never;
6851
+ };
6852
+ /** List registered and discovered worktrees */
6853
+ get: operations["listWorktreesAggregate"];
6854
+ put?: never;
6855
+ post?: never;
6856
+ delete?: never;
6857
+ options?: never;
6858
+ head?: never;
6859
+ patch?: never;
6860
+ trace?: never;
6861
+ };
6571
6862
  "/api/worktrees/catalog-stream": {
6572
6863
  parameters: {
6573
6864
  query?: never;
@@ -6815,6 +7106,7 @@ export interface components {
6815
7106
  speed?: "normal" | "fast";
6816
7107
  tools?: string[];
6817
7108
  toolsets?: string[];
7109
+ workspace_access?: string;
6818
7110
  workspace_id?: string;
6819
7111
  };
6820
7112
  AgentProbeHealthPayload: {
@@ -6963,26 +7255,33 @@ export interface components {
6963
7255
  AgentSpawnPayload: {
6964
7256
  lineage: components["schemas"]["SessionLineagePayload"];
6965
7257
  permissions: components["schemas"]["SpawnPermissionPolicyPayload"];
7258
+ prompt?: components["schemas"]["SpawnPromptPayload"] | null;
6966
7259
  session: components["schemas"]["SessionPayload"];
7260
+ worktree?: components["schemas"]["SpawnWorktreePayload"] | null;
6967
7261
  };
6968
7262
  AgentSpawnRequest: {
6969
7263
  acp_options?: components["schemas"]["AgentACPOptionSelection"][];
6970
7264
  agent_name: string;
6971
7265
  auto_stop_on_parent: boolean;
6972
7266
  idempotency_key?: string;
7267
+ inherit_permissions?: boolean;
6973
7268
  model?: string;
6974
7269
  name?: string;
7270
+ new_worktree?: components["schemas"]["SpawnNewWorktreeRequest"] | null;
6975
7271
  notify_creator?: boolean | null;
6976
- permissions: components["schemas"]["SpawnPermissionPolicyPayload"];
7272
+ permissions: components["schemas"]["SpawnPermissionRequestPayload"];
7273
+ prompt?: string;
6977
7274
  prompt_overlay?: string;
6978
7275
  provider?: string;
6979
7276
  reasoning_effort?: string;
6980
7277
  spawn_role: string;
6981
7278
  /** @enum {string} */
6982
7279
  speed?: "normal" | "fast";
7280
+ toolsets?: string[];
6983
7281
  /** Format: int64 */
6984
7282
  ttl_seconds: number;
6985
7283
  workspace?: string;
7284
+ worktree?: string;
6986
7285
  };
6987
7286
  AgentSpawnResponse: {
6988
7287
  spawn: components["schemas"]["AgentSpawnPayload"];
@@ -7736,6 +8035,7 @@ export interface components {
7736
8035
  code:
7737
8036
  | "window_manager_workspace_not_found"
7738
8037
  | "window_manager_revision_conflict"
8038
+ | "window_binding_invalid"
7739
8039
  | "window_manager_invalid_command"
7740
8040
  | "window_manager_invalid_topology"
7741
8041
  | "window_manager_desktop_not_found"
@@ -7886,6 +8186,7 @@ export interface components {
7886
8186
  speed?: "normal" | "fast";
7887
8187
  tools?: string[];
7888
8188
  toolsets?: string[];
8189
+ workspace_access?: string;
7889
8190
  };
7890
8191
  CreateAgentRequest: {
7891
8192
  agent: components["schemas"]["CreateAgentPayload"];
@@ -7910,7 +8211,7 @@ export interface components {
7910
8211
  retry?: components["schemas"]["RetryConfig"] | null;
7911
8212
  schedule: components["schemas"]["ScheduleSpec"];
7912
8213
  /** @enum {string} */
7913
- scope: "global" | "workspace";
8214
+ scope: "global" | "workspace" | "user" | "@user";
7914
8215
  target_kind?: string;
7915
8216
  task?: components["schemas"]["JobTaskConfig"] | null;
7916
8217
  workspace_id?: string;
@@ -7936,6 +8237,7 @@ export interface components {
7936
8237
  name?: string;
7937
8238
  new_worktree?: components["schemas"]["NewSessionWorktreeRequest"] | null;
7938
8239
  parent_session_id?: string;
8240
+ scope?: string;
7939
8241
  workspace?: string;
7940
8242
  workspace_path?: string;
7941
8243
  worktree?: string;
@@ -7967,7 +8269,7 @@ export interface components {
7967
8269
  /** @enum {string} */
7968
8270
  priority?: "low" | "medium" | "high" | "urgent";
7969
8271
  /** @enum {string} */
7970
- scope: "global" | "workspace";
8272
+ scope: "global" | "workspace" | "user" | "@user";
7971
8273
  title: string;
7972
8274
  wake_creator?: boolean | null;
7973
8275
  workspace?: string;
@@ -7986,7 +8288,7 @@ export interface components {
7986
8288
  /** @enum {string} */
7987
8289
  priority?: "low" | "medium" | "high" | "urgent";
7988
8290
  /** @enum {string} */
7989
- scope: "global" | "workspace";
8291
+ scope: "global" | "workspace" | "user" | "@user";
7990
8292
  title: string;
7991
8293
  wake_creator?: boolean | null;
7992
8294
  workspace?: string;
@@ -8005,7 +8307,7 @@ export interface components {
8005
8307
  prompt: string;
8006
8308
  retry?: components["schemas"]["RetryConfig"] | null;
8007
8309
  /** @enum {string} */
8008
- scope: "global" | "workspace";
8310
+ scope: "global" | "workspace" | "user" | "@user";
8009
8311
  target_kind?: string;
8010
8312
  webhook_id?: string;
8011
8313
  webhook_secret_value?: string;
@@ -8024,6 +8326,11 @@ export interface components {
8024
8326
  name?: string;
8025
8327
  path?: string;
8026
8328
  };
8329
+ CursorPagePayload: {
8330
+ has_more: boolean;
8331
+ limit: number;
8332
+ next_cursor?: string;
8333
+ };
8027
8334
  DaemonIdentityPayload: {
8028
8335
  http_host: string;
8029
8336
  http_port: number;
@@ -8163,6 +8470,7 @@ export interface components {
8163
8470
  speed?: "normal" | "fast";
8164
8471
  tools?: string[];
8165
8472
  toolsets?: string[];
8473
+ workspace_access?: string;
8166
8474
  };
8167
8475
  DuplicateAgentRequest: {
8168
8476
  name: string;
@@ -9895,11 +10203,33 @@ export interface components {
9895
10203
  tokens: number;
9896
10204
  wall_clock_sec: number;
9897
10205
  };
10206
+ LoopCatalogAggregateEntryPayload: {
10207
+ aggregate_30d: components["schemas"]["LoopCatalogAggregatePayload"];
10208
+ catalog: components["schemas"]["LoopCatalogResourceSpec"];
10209
+ contract: components["schemas"]["LoopContract"];
10210
+ description?: string;
10211
+ inputs?: {
10212
+ [key: string]: components["schemas"]["LoopInput"];
10213
+ };
10214
+ last_run?: components["schemas"]["LoopCatalogLastRunPayload"] | null;
10215
+ name: string;
10216
+ source: components["schemas"]["LoopCatalogSourcePayload"];
10217
+ start?: components["schemas"]["LoopStartBinding"][];
10218
+ /** Format: double */
10219
+ success_rate_30d: number;
10220
+ version: number;
10221
+ workspace_id?: string;
10222
+ };
9898
10223
  LoopCatalogAggregatePayload: {
9899
10224
  failed: number;
9900
10225
  runs: number;
9901
10226
  succeeded: number;
9902
10227
  };
10228
+ LoopCatalogBatchResponse: {
10229
+ entries: components["schemas"]["LoopCatalogAggregateEntryPayload"][];
10230
+ errors: components["schemas"]["LoopCatalogWorkspaceError"][];
10231
+ truncated: boolean;
10232
+ };
9903
10233
  LoopCatalogEntryPayload: {
9904
10234
  aggregate_30d: components["schemas"]["LoopCatalogAggregatePayload"];
9905
10235
  catalog: components["schemas"]["LoopCatalogResourceSpec"];
@@ -9916,6 +10246,7 @@ export interface components {
9916
10246
  /** Format: double */
9917
10247
  success_rate_30d: number;
9918
10248
  version: number;
10249
+ workspace_id?: string;
9919
10250
  };
9920
10251
  LoopCatalogFacetsPayload: {
9921
10252
  categories: {
@@ -9956,6 +10287,16 @@ export interface components {
9956
10287
  keywords?: string[];
9957
10288
  use_when?: string;
9958
10289
  };
10290
+ LoopCatalogSourcePayload: {
10291
+ /** @enum {string} */
10292
+ kind: "marketplace" | "user" | "additional" | "workspace";
10293
+ layer: string;
10294
+ };
10295
+ LoopCatalogWorkspaceError: {
10296
+ code: string;
10297
+ message: string;
10298
+ workspace_id?: string;
10299
+ };
9959
10300
  LoopConfig: {
9960
10301
  /** @enum {string|null} */
9961
10302
  budget_on_exceeded?: "halt" | "escalate" | null;
@@ -10450,6 +10791,7 @@ export interface components {
10450
10791
  /** Format: date-time */
10451
10792
  state_at: string;
10452
10793
  wait?: components["schemas"]["LoopNodeWaitPayload"] | null;
10794
+ workspace_id?: string;
10453
10795
  };
10454
10796
  LoopNodeInventoryResponse: {
10455
10797
  items: components["schemas"]["LoopNodeInventoryItem"][];
@@ -10548,12 +10890,14 @@ export interface components {
10548
10890
  node_id: string;
10549
10891
  /** Format: date-time */
10550
10892
  opened_at: string;
10893
+ profile_id: string;
10551
10894
  prompt: string;
10552
10895
  proposed_preview?: unknown;
10553
10896
  /** Format: date-time */
10554
10897
  resolved_at?: string | null;
10555
10898
  respond_schema?: unknown;
10556
10899
  state: string;
10900
+ workspace_id?: string;
10557
10901
  };
10558
10902
  LoopRequestProvenance: {
10559
10903
  actor_id: string;
@@ -11321,6 +11665,7 @@ export interface components {
11321
11665
  session_id?: string;
11322
11666
  task_id?: string;
11323
11667
  title: string;
11668
+ workspace_id: string;
11324
11669
  };
11325
11670
  OverviewAttentionPayload: {
11326
11671
  by_kind: {
@@ -11743,6 +12088,112 @@ export interface components {
11743
12088
  runtime_strategy?: "session_config" | "launch_arg" | "provider_managed";
11744
12089
  session_env_status?: components["schemas"]["SettingsProviderCredentialStatusPayload"][];
11745
12090
  };
12091
+ ProviderUsageAccount: {
12092
+ label: string;
12093
+ plan: string;
12094
+ };
12095
+ ProviderUsageAmount: {
12096
+ unit: string;
12097
+ value: string;
12098
+ };
12099
+ ProviderUsageBalance: {
12100
+ /** Format: date-time */
12101
+ expires_at: string | null;
12102
+ id: string;
12103
+ label: string;
12104
+ remaining: components["schemas"]["ProviderUsageAmount"];
12105
+ };
12106
+ ProviderUsageEnvelope: {
12107
+ enabled: boolean;
12108
+ /** Format: date-time */
12109
+ generated_at: string;
12110
+ keychain_supported: boolean;
12111
+ profile_id: string;
12112
+ /** Format: uint64 */
12113
+ revision: number;
12114
+ targets: components["schemas"]["ProviderUsageTarget"][];
12115
+ tray: components["schemas"]["ProviderUsageTraySignal"] | null;
12116
+ };
12117
+ ProviderUsageError: {
12118
+ action: string;
12119
+ code: string;
12120
+ message: string;
12121
+ /** Format: date-time */
12122
+ retry_after: string | null;
12123
+ };
12124
+ ProviderUsageRefreshRequest: {
12125
+ intent?: string;
12126
+ /** Format: int64 */
12127
+ max_age_seconds?: number;
12128
+ profile?: string;
12129
+ provider_ids?: string[];
12130
+ /** Format: int64 */
12131
+ wait_ms?: number | null;
12132
+ };
12133
+ ProviderUsageSource: {
12134
+ kind: string;
12135
+ label: string;
12136
+ };
12137
+ ProviderUsageSpendCap: {
12138
+ enabled: boolean | null;
12139
+ id: string;
12140
+ label: string;
12141
+ limit: components["schemas"]["ProviderUsageAmount"] | null;
12142
+ /** Format: date-time */
12143
+ resets_at: string | null;
12144
+ used: components["schemas"]["ProviderUsageAmount"];
12145
+ /** Format: double */
12146
+ used_percent: number | null;
12147
+ };
12148
+ ProviderUsageStreamEvent: {
12149
+ boot_id: string;
12150
+ /** Format: uint64 */
12151
+ revision: number;
12152
+ };
12153
+ ProviderUsageTarget: {
12154
+ account: components["schemas"]["ProviderUsageAccount"] | null;
12155
+ balances: components["schemas"]["ProviderUsageBalance"][];
12156
+ /** Format: date-time */
12157
+ checked_at: string | null;
12158
+ confidence: string;
12159
+ error: components["schemas"]["ProviderUsageError"] | null;
12160
+ /** Format: date-time */
12161
+ measured_at: string | null;
12162
+ /** Format: date-time */
12163
+ next_refresh_at: string | null;
12164
+ provider_id: string;
12165
+ provider_name: string;
12166
+ refreshing: boolean;
12167
+ source: components["schemas"]["ProviderUsageSource"] | null;
12168
+ spend_caps: components["schemas"]["ProviderUsageSpendCap"][];
12169
+ status: string;
12170
+ windows: components["schemas"]["ProviderUsageWindow"][];
12171
+ };
12172
+ ProviderUsageTraySignal: {
12173
+ label: string;
12174
+ provider_id: string;
12175
+ /** Format: date-time */
12176
+ resets_at: string | null;
12177
+ severity: string;
12178
+ stale: boolean;
12179
+ /** Format: double */
12180
+ used_percent: number;
12181
+ window_id: string;
12182
+ };
12183
+ ProviderUsageWindow: {
12184
+ /** Format: int64 */
12185
+ duration_seconds: number | null;
12186
+ id: string;
12187
+ kind: string;
12188
+ label: string;
12189
+ limit: components["schemas"]["ProviderUsageAmount"] | null;
12190
+ reset_text: string;
12191
+ /** Format: date-time */
12192
+ resets_at: string | null;
12193
+ used: components["schemas"]["ProviderUsageAmount"] | null;
12194
+ /** Format: double */
12195
+ used_percent: number | null;
12196
+ };
11746
12197
  PutLoopAnnotationsRequest: {
11747
12198
  annotations: components["schemas"]["LoopAnnotationPayload"][];
11748
12199
  };
@@ -11894,6 +12345,7 @@ export interface components {
11894
12345
  | "skill_resource_not_found"
11895
12346
  | "slow_consumer"
11896
12347
  | "source_disabled"
12348
+ | "spawn_budget_exhausted"
11897
12349
  | "subscriber_limit_reached"
11898
12350
  | "terminal_exited"
11899
12351
  | "terminal_expired"
@@ -11943,6 +12395,11 @@ export interface components {
11943
12395
  confirm_gateway_digest?: string;
11944
12396
  generation_hash: string;
11945
12397
  };
12398
+ RemoveDiscoveredWorktreeRequest: {
12399
+ expect_stale?: boolean;
12400
+ force?: boolean;
12401
+ path: string;
12402
+ };
11946
12403
  RenameProfilePlan: {
11947
12404
  dormant_placements: components["schemas"]["ProfilePlacement"][];
11948
12405
  machine_folders: string[];
@@ -12275,6 +12732,7 @@ export interface components {
12275
12732
  };
12276
12733
  RunPayload: {
12277
12734
  attempt: number;
12735
+ attribution: string;
12278
12736
  delivery_error?: string;
12279
12737
  /** Format: date-time */
12280
12738
  delivery_error_at?: string | null;
@@ -12302,6 +12760,7 @@ export interface components {
12302
12760
  task_id?: string;
12303
12761
  task_run_id?: string;
12304
12762
  trigger_id?: string;
12763
+ workspace_id?: string | null;
12305
12764
  };
12306
12765
  RunResponse: {
12307
12766
  run: components["schemas"]["RunPayload"];
@@ -12407,6 +12866,7 @@ export interface components {
12407
12866
  title?: string;
12408
12867
  };
12409
12868
  RunsResponse: {
12869
+ page?: components["schemas"]["CursorPagePayload"] | null;
12410
12870
  runs: components["schemas"]["RunPayload"][];
12411
12871
  };
12412
12872
  RuntimeActivityPayload: {
@@ -12724,6 +13184,7 @@ export interface components {
12724
13184
  working: number;
12725
13185
  };
12726
13186
  SessionCatalogFacetsResponse: {
13187
+ by_profile: components["schemas"]["SessionProfileFacetsPayload"][];
12727
13188
  by_workspace: components["schemas"]["SessionWorkspaceFacetsPayload"][];
12728
13189
  facets: components["schemas"]["SessionCatalogFacetsPayload"];
12729
13190
  };
@@ -13206,6 +13667,33 @@ export interface components {
13206
13667
  /** Format: date-time */
13207
13668
  ttl_expires_at?: string | null;
13208
13669
  };
13670
+ SessionMonitorPayload: {
13671
+ /** Format: date-time */
13672
+ created_at: string;
13673
+ /** Format: date-time */
13674
+ deadline_at: string;
13675
+ description: string;
13676
+ exit_code?: number | null;
13677
+ /** Format: date-time */
13678
+ fired_at?: string | null;
13679
+ kind: string;
13680
+ monitor_id: string;
13681
+ pattern?: string;
13682
+ reason?: string;
13683
+ session_id: string;
13684
+ status: string;
13685
+ terminal_id?: string;
13686
+ until?: string;
13687
+ };
13688
+ SessionMonitorResponse: {
13689
+ monitor: components["schemas"]["SessionMonitorPayload"];
13690
+ };
13691
+ SessionMonitorSummaryPayload: {
13692
+ active: number;
13693
+ };
13694
+ SessionMonitorsResponse: {
13695
+ monitors: components["schemas"]["SessionMonitorPayload"][];
13696
+ };
13209
13697
  SessionOwner: {
13210
13698
  session_id: string;
13211
13699
  workspace_id: string;
@@ -13229,12 +13717,14 @@ export interface components {
13229
13717
  /** Format: date-time */
13230
13718
  created_at: string;
13231
13719
  derivation?: components["schemas"]["SessionDerivationPayload"] | null;
13720
+ effective_workspace_access: string;
13232
13721
  escalated?: boolean | null;
13233
13722
  failure?: components["schemas"]["SessionFailurePayload"] | null;
13234
13723
  folder_id?: string;
13235
13724
  health?: components["schemas"]["SessionHealthPayload"] | null;
13236
13725
  id: string;
13237
13726
  lineage?: components["schemas"]["SessionLineagePayload"] | null;
13727
+ monitor_summary?: components["schemas"]["SessionMonitorSummaryPayload"] | null;
13238
13728
  name?: string;
13239
13729
  pending_interactions: components["schemas"]["PendingInteractionPayload"][];
13240
13730
  profile_archived?: boolean;
@@ -13246,6 +13736,7 @@ export interface components {
13246
13736
  queue?: components["schemas"]["SessionQueueSummaryPayload"] | null;
13247
13737
  reply_watches?: components["schemas"]["ReplyWatchPayload"][];
13248
13738
  runtime: components["schemas"]["SessionRuntimePayload"];
13739
+ scope: string;
13249
13740
  /** @enum {string} */
13250
13741
  state: "starting" | "active" | "stopping" | "stopped";
13251
13742
  stop_cause?: string;
@@ -13283,6 +13774,10 @@ export interface components {
13283
13774
  SessionPresenceResponse: {
13284
13775
  lease_id: string;
13285
13776
  };
13777
+ SessionProfileFacetsPayload: {
13778
+ facets: components["schemas"]["SessionCatalogFacetsPayload"];
13779
+ profile_id: string;
13780
+ };
13286
13781
  SessionPromptCancelResponse: {
13287
13782
  outcome: string;
13288
13783
  session_id: string;
@@ -13342,6 +13837,7 @@ export interface components {
13342
13837
  generation?: number;
13343
13838
  last_known?: components["schemas"]["RuntimeSelectionPayload"] | null;
13344
13839
  recovery?: components["schemas"]["SessionRuntimeRecoveryPayload"] | null;
13840
+ requested?: components["schemas"]["PromptRuntimeSelectionPayload"] | null;
13345
13841
  selected?: components["schemas"]["PromptRuntimeSelectionPayload"] | null;
13346
13842
  /** Format: int64 */
13347
13843
  selection_revision: number;
@@ -13478,6 +13974,7 @@ export interface components {
13478
13974
  total_tokens?: number | null;
13479
13975
  /** Format: int64 */
13480
13976
  turn_count: number;
13977
+ work_time?: components["schemas"]["SessionWorkTimePayload"] | null;
13481
13978
  };
13482
13979
  SessionUsageResponse: {
13483
13980
  usage: components["schemas"]["SessionUsagePayload"];
@@ -13512,6 +14009,13 @@ export interface components {
13512
14009
  /** Format: int64 */
13513
14010
  waited_ms: number;
13514
14011
  };
14012
+ SessionWorkTimePayload: {
14013
+ /** Format: int64 */
14014
+ active_duration_ms: number;
14015
+ last_completed_turn_id?: string;
14016
+ /** Format: int64 */
14017
+ turn_count: number;
14018
+ };
13515
14019
  SessionWorkspaceFacetsPayload: {
13516
14020
  facets: components["schemas"]["SessionCatalogFacetsPayload"];
13517
14021
  workspace_id: string;
@@ -13523,6 +14027,9 @@ export interface components {
13523
14027
  SetExtensionSecretsRequest: {
13524
14028
  bindings: components["schemas"]["ExtensionSecretBindingInput"][];
13525
14029
  };
14030
+ SetSessionParentRequest: {
14031
+ parent_session_id: string;
14032
+ };
13526
14033
  SetSessionRuntimeRequest: {
13527
14034
  /** Format: int64 */
13528
14035
  expected_revision: number | null;
@@ -13571,6 +14078,7 @@ export interface components {
13571
14078
  | "cmd-palette"
13572
14079
  | "attention"
13573
14080
  | "shell"
14081
+ | "provider-usage"
13574
14082
  | "observability"
13575
14083
  | "hooks-extensions"
13576
14084
  | "marketplace"
@@ -13615,6 +14123,7 @@ export interface components {
13615
14123
  | "cmd-palette"
13616
14124
  | "attention"
13617
14125
  | "shell"
14126
+ | "provider-usage"
13618
14127
  | "observability"
13619
14128
  | "hooks-extensions"
13620
14129
  | "marketplace";
@@ -13644,12 +14153,14 @@ export interface components {
13644
14153
  | "cmd-palette"
13645
14154
  | "attention"
13646
14155
  | "shell"
14156
+ | "provider-usage"
13647
14157
  | "observability"
13648
14158
  | "hooks-extensions"
13649
14159
  | "marketplace";
13650
14160
  };
13651
14161
  SettingsAutomationRuntimePayload: {
13652
14162
  available: boolean;
14163
+ host_timezone?: string;
13653
14164
  job_enabled: number;
13654
14165
  job_total: number;
13655
14166
  /** Format: date-time */
@@ -13685,6 +14196,7 @@ export interface components {
13685
14196
  | "cmd-palette"
13686
14197
  | "attention"
13687
14198
  | "shell"
14199
+ | "provider-usage"
13688
14200
  | "observability"
13689
14201
  | "hooks-extensions"
13690
14202
  | "marketplace";
@@ -13815,6 +14327,7 @@ export interface components {
13815
14327
  | "cmd-palette"
13816
14328
  | "attention"
13817
14329
  | "shell"
14330
+ | "provider-usage"
13818
14331
  | "observability"
13819
14332
  | "hooks-extensions"
13820
14333
  | "marketplace";
@@ -13979,6 +14492,7 @@ export interface components {
13979
14492
  | "cmd-palette"
13980
14493
  | "attention"
13981
14494
  | "shell"
14495
+ | "provider-usage"
13982
14496
  | "observability"
13983
14497
  | "hooks-extensions"
13984
14498
  | "marketplace";
@@ -14191,6 +14705,7 @@ export interface components {
14191
14705
  | "cmd-palette"
14192
14706
  | "attention"
14193
14707
  | "shell"
14708
+ | "provider-usage"
14194
14709
  | "observability"
14195
14710
  | "hooks-extensions"
14196
14711
  | "marketplace";
@@ -14220,6 +14735,7 @@ export interface components {
14220
14735
  | "cmd-palette"
14221
14736
  | "attention"
14222
14737
  | "shell"
14738
+ | "provider-usage"
14223
14739
  | "observability"
14224
14740
  | "hooks-extensions"
14225
14741
  | "marketplace";
@@ -14267,6 +14783,7 @@ export interface components {
14267
14783
  | "cmd-palette"
14268
14784
  | "attention"
14269
14785
  | "shell"
14786
+ | "provider-usage"
14270
14787
  | "observability"
14271
14788
  | "hooks-extensions"
14272
14789
  | "marketplace";
@@ -14390,6 +14907,42 @@ export interface components {
14390
14907
  steer_capability?: "steer_ext" | "concurrent_prompt" | "none";
14391
14908
  transport?: string;
14392
14909
  };
14910
+ SettingsProviderUsagePayload: {
14911
+ enabled: boolean;
14912
+ providers: {
14913
+ [key: string]: components["schemas"]["SettingsProviderUsageProviderPayload"];
14914
+ };
14915
+ refresh_interval: string;
14916
+ };
14917
+ SettingsProviderUsageProviderPayload: {
14918
+ enabled?: boolean | null;
14919
+ keychain_access?: boolean | null;
14920
+ };
14921
+ SettingsProviderUsageResponse: {
14922
+ available_scopes: "user"[];
14923
+ config: components["schemas"]["SettingsProviderUsagePayload"];
14924
+ keychain_supported: boolean;
14925
+ /** @enum {string} */
14926
+ scope: "user";
14927
+ /** @enum {string} */
14928
+ section:
14929
+ | "general"
14930
+ | "persona"
14931
+ | "roles"
14932
+ | "skills"
14933
+ | "automation"
14934
+ | "window-manager"
14935
+ | "cmd-palette"
14936
+ | "attention"
14937
+ | "shell"
14938
+ | "provider-usage"
14939
+ | "observability"
14940
+ | "hooks-extensions"
14941
+ | "marketplace";
14942
+ };
14943
+ SettingsProviderUsageUpdateRequest: {
14944
+ config: components["schemas"]["SettingsProviderUsagePayload"];
14945
+ };
14393
14946
  SettingsProviderWritePayload: {
14394
14947
  auth_acp_method?: string | null;
14395
14948
  auth_login_command?: string | null;
@@ -14465,17 +15018,83 @@ export interface components {
14465
15018
  | "cmd-palette"
14466
15019
  | "attention"
14467
15020
  | "shell"
15021
+ | "provider-usage"
14468
15022
  | "observability"
14469
15023
  | "hooks-extensions"
14470
15024
  | "marketplace";
14471
15025
  workspace_id?: string;
14472
15026
  };
15027
+ SettingsShellLegacyScopePayload: {
15028
+ explicit: boolean;
15029
+ /** Format: uint64 */
15030
+ revision: number;
15031
+ /** @enum {string} */
15032
+ value: "workspace" | "all-workspaces";
15033
+ };
15034
+ SettingsShellMutationResponse: {
15035
+ active_config_hash: string;
15036
+ /** Format: int64 */
15037
+ active_generation: number;
15038
+ agent_name?: string;
15039
+ applied: boolean;
15040
+ apply_record_id: string;
15041
+ config: components["schemas"]["SettingsShellPayload"];
15042
+ legacy_scope: components["schemas"]["SettingsShellLegacyScopePayload"];
15043
+ /** @enum {string} */
15044
+ lifecycle:
15045
+ | "live"
15046
+ | "live-add"
15047
+ | "live-remove-if-unused"
15048
+ | "restart-required"
15049
+ | "session-rebind";
15050
+ /** @enum {string} */
15051
+ next_action: "none" | "restart-daemon" | "new-session" | "retry";
15052
+ partial_failures?: components["schemas"]["SettingsApplyFailurePayload"][];
15053
+ profile?: string;
15054
+ restart_required?: boolean;
15055
+ restart_scope?: string;
15056
+ /** @enum {string} */
15057
+ scope?: "user" | "profile" | "workspace" | "agent";
15058
+ /** @enum {string} */
15059
+ section?:
15060
+ | "general"
15061
+ | "persona"
15062
+ | "roles"
15063
+ | "skills"
15064
+ | "automation"
15065
+ | "window-manager"
15066
+ | "cmd-palette"
15067
+ | "attention"
15068
+ | "shell"
15069
+ | "provider-usage"
15070
+ | "observability"
15071
+ | "hooks-extensions"
15072
+ | "marketplace"
15073
+ | "providers"
15074
+ | "mcp-servers"
15075
+ | "hooks";
15076
+ skipped?: boolean;
15077
+ skipped_reason?: string;
15078
+ warnings?: string[];
15079
+ workspace_id?: string;
15080
+ /** @enum {string} */
15081
+ write_target?:
15082
+ | "global-config"
15083
+ | "profile-config"
15084
+ | "workspace-config"
15085
+ | "global-mcp-sidecar"
15086
+ | "profile-mcp-sidecar"
15087
+ | "workspace-mcp-sidecar"
15088
+ | "global-agent-file"
15089
+ | "workspace-agent-file";
15090
+ };
14473
15091
  SettingsShellPayload: {
14474
15092
  sessions: components["schemas"]["SettingsShellSessionsPayload"];
14475
15093
  };
14476
15094
  SettingsShellResponse: {
14477
15095
  available_scopes: "user"[];
14478
15096
  config: components["schemas"]["SettingsShellPayload"];
15097
+ legacy_scope: components["schemas"]["SettingsShellLegacyScopePayload"];
14479
15098
  /** @enum {string} */
14480
15099
  scope: "user";
14481
15100
  /** @enum {string} */
@@ -14489,15 +15108,19 @@ export interface components {
14489
15108
  | "cmd-palette"
14490
15109
  | "attention"
14491
15110
  | "shell"
15111
+ | "provider-usage"
14492
15112
  | "observability"
14493
15113
  | "hooks-extensions"
14494
15114
  | "marketplace";
15115
+ warnings: string[];
14495
15116
  };
14496
15117
  SettingsShellSessionsPayload: {
14497
15118
  /** @enum {string} */
14498
- scope: "workspace" | "all-workspaces";
15119
+ group_by?: "none" | "project" | "profile";
15120
+ /** @enum {string} */
15121
+ scope?: "workspace" | "all-workspaces";
14499
15122
  /** @enum {string} */
14500
- sort: "created" | "name" | "last_activity" | "attention" | "manual";
15123
+ sort?: "created" | "name" | "last_activity" | "attention" | "manual";
14501
15124
  };
14502
15125
  SettingsSkillSourceCollisionPayload: {
14503
15126
  name: string;
@@ -14590,6 +15213,7 @@ export interface components {
14590
15213
  | "cmd-palette"
14591
15214
  | "attention"
14592
15215
  | "shell"
15216
+ | "provider-usage"
14593
15217
  | "observability"
14594
15218
  | "hooks-extensions"
14595
15219
  | "marketplace";
@@ -14637,6 +15261,7 @@ export interface components {
14637
15261
  | "cmd-palette"
14638
15262
  | "attention"
14639
15263
  | "shell"
15264
+ | "provider-usage"
14640
15265
  | "observability"
14641
15266
  | "hooks-extensions"
14642
15267
  | "marketplace";
@@ -14940,6 +15565,7 @@ export interface components {
14940
15565
  | "cmd-palette"
14941
15566
  | "attention"
14942
15567
  | "shell"
15568
+ | "provider-usage"
14943
15569
  | "observability"
14944
15570
  | "hooks-extensions"
14945
15571
  | "marketplace";
@@ -14974,6 +15600,7 @@ export interface components {
14974
15600
  | "cmd-palette"
14975
15601
  | "attention"
14976
15602
  | "shell"
15603
+ | "provider-usage"
14977
15604
  | "observability"
14978
15605
  | "hooks-extensions"
14979
15606
  | "marketplace";
@@ -15168,12 +15795,38 @@ export interface components {
15168
15795
  /** Format: int64 */
15169
15796
  ttl_seconds: number;
15170
15797
  };
15798
+ SpawnNewWorktreeRequest: {
15799
+ base_ref?: string;
15800
+ branch?: string;
15801
+ name?: string;
15802
+ };
15171
15803
  SpawnPermissionPolicyPayload: {
15172
15804
  mcp_servers: string[];
15173
15805
  skills: string[];
15174
15806
  tools: string[];
15175
15807
  workspace_paths: string[];
15176
15808
  };
15809
+ SpawnPermissionRequestPayload: {
15810
+ mcp_servers?: string[];
15811
+ skills?: string[];
15812
+ tools?: string[];
15813
+ workspace_paths?: string[];
15814
+ };
15815
+ SpawnPromptPayload: {
15816
+ error?: string;
15817
+ message_id: string;
15818
+ reply_watch_id?: string;
15819
+ reply_watch_state?: string;
15820
+ status: string;
15821
+ };
15822
+ SpawnWorktreePayload: {
15823
+ base_sha?: string;
15824
+ branch: string;
15825
+ created: boolean;
15826
+ id: string;
15827
+ name: string;
15828
+ path: string;
15829
+ };
15177
15830
  StartBinding: {
15178
15831
  input_mapping?: {
15179
15832
  [key: string]: string;
@@ -16948,6 +17601,7 @@ export interface components {
16948
17601
  | "skill_resource_not_found"
16949
17602
  | "slow_consumer"
16950
17603
  | "source_disabled"
17604
+ | "spawn_budget_exhausted"
16951
17605
  | "subscriber_limit_reached"
16952
17606
  | "terminal_exited"
16953
17607
  | "terminal_expired"
@@ -17010,6 +17664,7 @@ export interface components {
17010
17664
  | "recording_already_started"
17011
17665
  | "recording_not_active"
17012
17666
  | "recording_unavailable"
17667
+ | "session_archive_stop_failed"
17013
17668
  | "session_busy"
17014
17669
  | "slow_consumer"
17015
17670
  | "subscriber_limit_reached"
@@ -17108,6 +17763,7 @@ export interface components {
17108
17763
  | "skill_resource_not_found"
17109
17764
  | "slow_consumer"
17110
17765
  | "source_disabled"
17766
+ | "spawn_budget_exhausted"
17111
17767
  | "subscriber_limit_reached"
17112
17768
  | "terminal_exited"
17113
17769
  | "terminal_expired"
@@ -17201,6 +17857,7 @@ export interface components {
17201
17857
  | "recording_already_started"
17202
17858
  | "recording_not_active"
17203
17859
  | "recording_unavailable"
17860
+ | "session_archive_stop_failed"
17204
17861
  | "session_busy"
17205
17862
  | "slow_consumer"
17206
17863
  | "subscriber_limit_reached"
@@ -17295,6 +17952,7 @@ export interface components {
17295
17952
  | "skill_resource_not_found"
17296
17953
  | "slow_consumer"
17297
17954
  | "source_disabled"
17955
+ | "spawn_budget_exhausted"
17298
17956
  | "subscriber_limit_reached"
17299
17957
  | "terminal_exited"
17300
17958
  | "terminal_expired"
@@ -17413,6 +18071,7 @@ export interface components {
17413
18071
  | "skill_resource_not_found"
17414
18072
  | "slow_consumer"
17415
18073
  | "source_disabled"
18074
+ | "spawn_budget_exhausted"
17416
18075
  | "subscriber_limit_reached"
17417
18076
  | "terminal_exited"
17418
18077
  | "terminal_expired"
@@ -17545,6 +18204,7 @@ export interface components {
17545
18204
  | "skill_resource_not_found"
17546
18205
  | "slow_consumer"
17547
18206
  | "source_disabled"
18207
+ | "spawn_budget_exhausted"
17548
18208
  | "subscriber_limit_reached"
17549
18209
  | "terminal_exited"
17550
18210
  | "terminal_expired"
@@ -18361,6 +19021,7 @@ export interface components {
18361
19021
  code:
18362
19022
  | "window_manager_workspace_not_found"
18363
19023
  | "window_manager_revision_conflict"
19024
+ | "window_binding_invalid"
18364
19025
  | "window_manager_invalid_command"
18365
19026
  | "window_manager_invalid_topology"
18366
19027
  | "window_manager_desktop_not_found"
@@ -20150,6 +20811,90 @@ export interface operations {
20150
20811
  };
20151
20812
  };
20152
20813
  };
20814
+ listAgentsAggregate: {
20815
+ parameters: {
20816
+ query?: {
20817
+ /** @description Read all projects and User rows */
20818
+ all_workspaces?: boolean;
20819
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
20820
+ workspace_ids?: string[];
20821
+ /** @description Exact agent name */
20822
+ name?: string;
20823
+ /** @description Case-insensitive agent name or category search */
20824
+ q?: string;
20825
+ /** @description Exact category path joined by slash separators */
20826
+ category?: string;
20827
+ /** @description Agent session status */
20828
+ status?: "active" | "idle";
20829
+ /** @description Opaque cursor bound to workspace and filters */
20830
+ cursor?: string;
20831
+ /** @description Agents per page (1-100; default 50) */
20832
+ limit?: number;
20833
+ /** @description Act as this profile by name */
20834
+ profile?: string;
20835
+ };
20836
+ header?: never;
20837
+ path?: never;
20838
+ cookie?: never;
20839
+ };
20840
+ requestBody?: never;
20841
+ responses: {
20842
+ /** @description OK */
20843
+ 200: {
20844
+ headers: {
20845
+ [name: string]: unknown;
20846
+ };
20847
+ content: {
20848
+ "application/json": components["schemas"]["AgentCatalogResponse"];
20849
+ };
20850
+ };
20851
+ /** @description Invalid filter */
20852
+ 400: {
20853
+ headers: {
20854
+ [name: string]: unknown;
20855
+ };
20856
+ content: {
20857
+ "application/json": components["schemas"]["ErrorPayload"];
20858
+ };
20859
+ };
20860
+ /** @description Workspace not found */
20861
+ 404: {
20862
+ headers: {
20863
+ [name: string]: unknown;
20864
+ };
20865
+ content: {
20866
+ "application/json": components["schemas"]["ErrorPayload"];
20867
+ };
20868
+ };
20869
+ /** @description Workspace root missing */
20870
+ 410: {
20871
+ headers: {
20872
+ [name: string]: unknown;
20873
+ };
20874
+ content: {
20875
+ "application/json": components["schemas"]["ErrorPayload"];
20876
+ };
20877
+ };
20878
+ /** @description Internal server error */
20879
+ 500: {
20880
+ headers: {
20881
+ [name: string]: unknown;
20882
+ };
20883
+ content: {
20884
+ "application/json": components["schemas"]["ErrorPayload"];
20885
+ };
20886
+ };
20887
+ /** @description Workspace resolver unavailable */
20888
+ 503: {
20889
+ headers: {
20890
+ [name: string]: unknown;
20891
+ };
20892
+ content: {
20893
+ "application/json": components["schemas"]["ErrorPayload"];
20894
+ };
20895
+ };
20896
+ };
20897
+ };
20153
20898
  listAgentCatalog: {
20154
20899
  parameters: {
20155
20900
  query?: {
@@ -21903,9 +22648,13 @@ export interface operations {
21903
22648
  parameters: {
21904
22649
  query?: {
21905
22650
  /** @description Filter by automation scope */
21906
- scope?: "global" | "workspace";
22651
+ scope?: "global" | "workspace" | "user" | "@user";
21907
22652
  /** @description Filter by workspace id */
21908
22653
  workspace_id?: string;
22654
+ /** @description Read every definition */
22655
+ all_workspaces?: boolean;
22656
+ /** @description Project IDs or @user; requires all_workspaces=true */
22657
+ workspace_ids?: string[];
21909
22658
  /** @description Filter by job source */
21910
22659
  source?: "config" | "package" | "dynamic";
21911
22660
  /** @description Filter by target kind; task matches jobs with a task target */
@@ -22379,6 +23128,14 @@ export interface operations {
22379
23128
  listAutomationRuns: {
22380
23129
  parameters: {
22381
23130
  query?: {
23131
+ /** @description Filter by source project; @user selects User */
23132
+ workspace_id?: string;
23133
+ /** @description Read every run, including unknown attribution */
23134
+ all_workspaces?: boolean;
23135
+ /** @description Source project IDs or @user; excludes unknown attribution */
23136
+ workspace_ids?: string[];
23137
+ /** @description Opaque source-filter-bound cursor */
23138
+ cursor?: string;
22382
23139
  /** @description Filter by automation job id */
22383
23140
  job_id?: string;
22384
23141
  /** @description Filter by automation trigger id */
@@ -22495,13 +23252,80 @@ export interface operations {
22495
23252
  };
22496
23253
  };
22497
23254
  };
23255
+ listAutomationSuggestionsAggregate: {
23256
+ parameters: {
23257
+ query?: {
23258
+ /** @description Read all projects and User rows */
23259
+ all_workspaces?: boolean;
23260
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
23261
+ workspace_ids?: string[];
23262
+ /** @description Filter by suggestion status */
23263
+ status?: "pending" | "accepted" | "dismissed";
23264
+ };
23265
+ header?: never;
23266
+ path?: never;
23267
+ cookie?: never;
23268
+ };
23269
+ requestBody?: never;
23270
+ responses: {
23271
+ /** @description OK */
23272
+ 200: {
23273
+ headers: {
23274
+ [name: string]: unknown;
23275
+ };
23276
+ content: {
23277
+ "application/json": components["schemas"]["AutomationSuggestionsResponse"];
23278
+ };
23279
+ };
23280
+ /** @description Invalid suggestion status */
23281
+ 400: {
23282
+ headers: {
23283
+ [name: string]: unknown;
23284
+ };
23285
+ content: {
23286
+ "application/json": components["schemas"]["ErrorPayload"];
23287
+ };
23288
+ };
23289
+ /** @description Workspace not found */
23290
+ 404: {
23291
+ headers: {
23292
+ [name: string]: unknown;
23293
+ };
23294
+ content: {
23295
+ "application/json": components["schemas"]["ErrorPayload"];
23296
+ };
23297
+ };
23298
+ /** @description Internal server error */
23299
+ 500: {
23300
+ headers: {
23301
+ [name: string]: unknown;
23302
+ };
23303
+ content: {
23304
+ "application/json": components["schemas"]["ErrorPayload"];
23305
+ };
23306
+ };
23307
+ /** @description Automation manager is not configured */
23308
+ 503: {
23309
+ headers: {
23310
+ [name: string]: unknown;
23311
+ };
23312
+ content: {
23313
+ "application/json": components["schemas"]["ErrorPayload"];
23314
+ };
23315
+ };
23316
+ };
23317
+ };
22498
23318
  listAutomationTriggers: {
22499
23319
  parameters: {
22500
23320
  query?: {
22501
23321
  /** @description Filter by automation scope */
22502
- scope?: "global" | "workspace";
23322
+ scope?: "global" | "workspace" | "user" | "@user";
22503
23323
  /** @description Filter by workspace id */
22504
23324
  workspace_id?: string;
23325
+ /** @description Read every definition */
23326
+ all_workspaces?: boolean;
23327
+ /** @description Project IDs or @user; requires all_workspaces=true */
23328
+ workspace_ids?: string[];
22505
23329
  /** @description Filter by trigger source */
22506
23330
  source?: "config" | "package" | "dynamic";
22507
23331
  /** @description Filter by target kind; task matches no trigger */
@@ -26206,6 +27030,233 @@ export interface operations {
26206
27030
  };
26207
27031
  };
26208
27032
  };
27033
+ listLoopRequestsAggregate: {
27034
+ parameters: {
27035
+ query?: {
27036
+ /** @description Read all registered projects and User rows */
27037
+ all_workspaces?: boolean;
27038
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
27039
+ workspace_ids?: string[];
27040
+ /** @description Filter by Loop run id */
27041
+ run_id?: string;
27042
+ /** @description Filter by pending or resolved state */
27043
+ state?: string;
27044
+ /** @description Opaque continuation cursor */
27045
+ cursor?: string;
27046
+ /** @description Maximum number of records to return */
27047
+ limit?: number;
27048
+ /** @description Read one profile's rows by name */
27049
+ profile?: string;
27050
+ /** @description Read the owner-labeled all-profiles aggregate */
27051
+ all_profiles?: boolean;
27052
+ };
27053
+ header?: never;
27054
+ path?: never;
27055
+ cookie?: never;
27056
+ };
27057
+ requestBody?: never;
27058
+ responses: {
27059
+ /** @description OK */
27060
+ 200: {
27061
+ headers: {
27062
+ [name: string]: unknown;
27063
+ };
27064
+ content: {
27065
+ "application/json": components["schemas"]["LoopRequestsResponse"];
27066
+ };
27067
+ };
27068
+ /** @description Invalid Loop request */
27069
+ 400: {
27070
+ headers: {
27071
+ [name: string]: unknown;
27072
+ };
27073
+ content: {
27074
+ "application/json": components["schemas"]["ErrorPayload"];
27075
+ };
27076
+ };
27077
+ /** @description Internal server error */
27078
+ 500: {
27079
+ headers: {
27080
+ [name: string]: unknown;
27081
+ };
27082
+ content: {
27083
+ "application/json": components["schemas"]["ErrorPayload"];
27084
+ };
27085
+ };
27086
+ /** @description Loop service is not configured */
27087
+ 503: {
27088
+ headers: {
27089
+ [name: string]: unknown;
27090
+ };
27091
+ content: {
27092
+ "application/json": components["schemas"]["ErrorPayload"];
27093
+ };
27094
+ };
27095
+ };
27096
+ };
27097
+ listLoopRunsAggregate: {
27098
+ parameters: {
27099
+ query?: {
27100
+ /** @description Read all registered projects and User rows */
27101
+ all_workspaces?: boolean;
27102
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
27103
+ workspace_ids?: string[];
27104
+ /** @description Filter by Loop name */
27105
+ loop?: string;
27106
+ /** @description Filter by Loop status */
27107
+ status?: string;
27108
+ /** @description Filter by catalog or session origin */
27109
+ origin?: string;
27110
+ /** @description Filter by origin session id */
27111
+ origin_session?: string;
27112
+ /** @description Filter by live or terminal status */
27113
+ live?: boolean;
27114
+ /** @description Opaque server-order cursor */
27115
+ cursor?: string;
27116
+ /** @description Maximum number of records to return */
27117
+ limit?: number;
27118
+ /** @description Read one profile's rows by name */
27119
+ profile?: string;
27120
+ /** @description Read the owner-labeled all-profiles aggregate */
27121
+ all_profiles?: boolean;
27122
+ /** @description Aggregate runs support recency order only */
27123
+ order?: "recency";
27124
+ };
27125
+ header?: never;
27126
+ path?: never;
27127
+ cookie?: never;
27128
+ };
27129
+ requestBody?: never;
27130
+ responses: {
27131
+ /** @description OK */
27132
+ 200: {
27133
+ headers: {
27134
+ [name: string]: unknown;
27135
+ };
27136
+ content: {
27137
+ "application/json": components["schemas"]["LoopRunsResponse"];
27138
+ };
27139
+ };
27140
+ /** @description Invalid Loop request */
27141
+ 400: {
27142
+ headers: {
27143
+ [name: string]: unknown;
27144
+ };
27145
+ content: {
27146
+ "application/json": components["schemas"]["ErrorPayload"];
27147
+ };
27148
+ };
27149
+ /** @description Internal server error */
27150
+ 500: {
27151
+ headers: {
27152
+ [name: string]: unknown;
27153
+ };
27154
+ content: {
27155
+ "application/json": components["schemas"]["ErrorPayload"];
27156
+ };
27157
+ };
27158
+ /** @description Loop service is not configured */
27159
+ 503: {
27160
+ headers: {
27161
+ [name: string]: unknown;
27162
+ };
27163
+ content: {
27164
+ "application/json": components["schemas"]["ErrorPayload"];
27165
+ };
27166
+ };
27167
+ };
27168
+ };
27169
+ listLoopsAggregate: {
27170
+ parameters: {
27171
+ query?: {
27172
+ /** @description Read all registered projects and User rows */
27173
+ all_workspaces?: boolean;
27174
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
27175
+ workspace_ids?: string[];
27176
+ /** @description Search Loop name or contract goal */
27177
+ q?: string;
27178
+ /** @description Filter by effective Loop kind */
27179
+ kind?: "read_only" | "workspace";
27180
+ /** @description Filter by exact catalog category */
27181
+ category?: string;
27182
+ /** @description Filter by exact latest-run status */
27183
+ status?:
27184
+ | "queued"
27185
+ | "running"
27186
+ | "watching"
27187
+ | "needs-approval"
27188
+ | "paused"
27189
+ | "done"
27190
+ | "no-op"
27191
+ | "blocked"
27192
+ | "failed"
27193
+ | "exhausted"
27194
+ | "stalled"
27195
+ | "canceled";
27196
+ /** @description Stable read-only-first name order */
27197
+ sort?: "name";
27198
+ /** @description Continue after this workspace- and query-bound Loop cursor */
27199
+ cursor?: string;
27200
+ /** @description Maximum number of Loops to return; defaults to 50 and is capped at 200 */
27201
+ limit?: number;
27202
+ /** @description Read one profile's rows by name */
27203
+ profile?: string;
27204
+ /** @description Read the owner-labeled all-profiles aggregate */
27205
+ all_profiles?: boolean;
27206
+ };
27207
+ header?: never;
27208
+ path?: never;
27209
+ cookie?: never;
27210
+ };
27211
+ requestBody?: never;
27212
+ responses: {
27213
+ /** @description OK */
27214
+ 200: {
27215
+ headers: {
27216
+ [name: string]: unknown;
27217
+ };
27218
+ content: {
27219
+ "application/json": components["schemas"]["LoopCatalogBatchResponse"];
27220
+ };
27221
+ };
27222
+ /** @description Invalid Loop request */
27223
+ 400: {
27224
+ headers: {
27225
+ [name: string]: unknown;
27226
+ };
27227
+ content: {
27228
+ "application/json": components["schemas"]["ErrorPayload"];
27229
+ };
27230
+ };
27231
+ /** @description Forbidden */
27232
+ 403: {
27233
+ headers: {
27234
+ [name: string]: unknown;
27235
+ };
27236
+ content: {
27237
+ "application/json": components["schemas"]["ErrorPayload"];
27238
+ };
27239
+ };
27240
+ /** @description Internal server error */
27241
+ 500: {
27242
+ headers: {
27243
+ [name: string]: unknown;
27244
+ };
27245
+ content: {
27246
+ "application/json": components["schemas"]["ErrorPayload"];
27247
+ };
27248
+ };
27249
+ /** @description Loop service is not configured */
27250
+ 503: {
27251
+ headers: {
27252
+ [name: string]: unknown;
27253
+ };
27254
+ content: {
27255
+ "application/json": components["schemas"]["ErrorPayload"];
27256
+ };
27257
+ };
27258
+ };
27259
+ };
26209
27260
  listMarketplace: {
26210
27261
  parameters: {
26211
27262
  query?: {
@@ -27362,6 +28413,8 @@ export interface operations {
27362
28413
  receipt_profile?: string;
27363
28414
  /** @description Home workspace scope; empty selects global tasks */
27364
28415
  workspace?: string;
28416
+ /** @description Every project's tasks, matching an All projects Home overview */
28417
+ all_workspaces?: boolean;
27365
28418
  /** @description Read one profile's rows by name */
27366
28419
  profile?: string;
27367
28420
  /** @description Read the owner-labeled all-profiles aggregate */
@@ -27427,6 +28480,8 @@ export interface operations {
27427
28480
  receipt_profile?: string;
27428
28481
  /** @description Home workspace scope; empty selects global tasks */
27429
28482
  workspace?: string;
28483
+ /** @description Every project's tasks, matching an All projects Home overview */
28484
+ all_workspaces?: boolean;
27430
28485
  /** @description Read one profile's rows by name */
27431
28486
  profile?: string;
27432
28487
  /** @description Read the owner-labeled all-profiles aggregate */
@@ -27502,6 +28557,8 @@ export interface operations {
27502
28557
  getObserveOverview: {
27503
28558
  parameters: {
27504
28559
  query?: {
28560
+ /** @description Read every project and User within the profile lens; conflicts with workspace */
28561
+ all_workspaces?: boolean;
27505
28562
  /** @description Profile owning acknowledgement receipts, including aggregate reads */
27506
28563
  receipt_profile?: string;
27507
28564
  /** @description Scope aggregates to one workspace; empty selects the global home scope */
@@ -27528,6 +28585,24 @@ export interface operations {
27528
28585
  "application/json": components["schemas"]["ObserveOverviewResponse"];
27529
28586
  };
27530
28587
  };
28588
+ /** @description Invalid workspace breadth */
28589
+ 400: {
28590
+ headers: {
28591
+ [name: string]: unknown;
28592
+ };
28593
+ content: {
28594
+ "application/json": components["schemas"]["ErrorPayload"];
28595
+ };
28596
+ };
28597
+ /** @description Agent aggregate access denied */
28598
+ 403: {
28599
+ headers: {
28600
+ [name: string]: unknown;
28601
+ };
28602
+ content: {
28603
+ "application/json": components["schemas"]["ErrorPayload"];
28604
+ };
28605
+ };
27531
28606
  /** @description Workspace not found */
27532
28607
  404: {
27533
28608
  headers: {
@@ -27569,8 +28644,12 @@ export interface operations {
27569
28644
  getTaskDashboard: {
27570
28645
  parameters: {
27571
28646
  query?: {
28647
+ /** @description Read every project and User within the profile lens; conflicts with workspace */
28648
+ all_workspaces?: boolean;
28649
+ /** @description Repeatable project IDs; @user selects User; requires all_workspaces=true */
28650
+ workspace_ids?: string[];
27572
28651
  /** @description Filter by task scope */
27573
- scope?: "global" | "workspace";
28652
+ scope?: "global" | "workspace" | "user" | "@user";
27574
28653
  /** @description Filter by workspace path, name, or ID */
27575
28654
  workspace?: string;
27576
28655
  /** @description Filter by active run worktree ID */
@@ -27609,6 +28688,24 @@ export interface operations {
27609
28688
  "application/json": components["schemas"]["TaskDashboardResponse"];
27610
28689
  };
27611
28690
  };
28691
+ /** @description Invalid workspace breadth */
28692
+ 400: {
28693
+ headers: {
28694
+ [name: string]: unknown;
28695
+ };
28696
+ content: {
28697
+ "application/json": components["schemas"]["ErrorPayload"];
28698
+ };
28699
+ };
28700
+ /** @description Agent aggregate access denied */
28701
+ 403: {
28702
+ headers: {
28703
+ [name: string]: unknown;
28704
+ };
28705
+ content: {
28706
+ "application/json": components["schemas"]["ErrorPayload"];
28707
+ };
28708
+ };
27612
28709
  /** @description Workspace not found */
27613
28710
  404: {
27614
28711
  headers: {
@@ -27651,9 +28748,13 @@ export interface operations {
27651
28748
  parameters: {
27652
28749
  query?: {
27653
28750
  /** @description Filter by task scope */
27654
- scope?: "global" | "workspace";
28751
+ scope?: "global" | "workspace" | "user" | "@user";
27655
28752
  /** @description Filter by workspace path, name, or ID */
27656
28753
  workspace?: string;
28754
+ /** @description Read all projects and User rows */
28755
+ all_workspaces?: boolean;
28756
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
28757
+ workspace_ids?: string[];
27657
28758
  /** @description Filter by active run worktree ID */
27658
28759
  worktree?: string;
27659
28760
  /** @description Filter by owner kind */
@@ -28954,6 +30055,335 @@ export interface operations {
28954
30055
  };
28955
30056
  };
28956
30057
  };
30058
+ listProviderUsage: {
30059
+ parameters: {
30060
+ query?: {
30061
+ /** @description Profile name; defaults to the caller session profile or default */
30062
+ profile?: string;
30063
+ };
30064
+ header?: never;
30065
+ path?: never;
30066
+ cookie?: never;
30067
+ };
30068
+ requestBody?: never;
30069
+ responses: {
30070
+ /** @description Profile-scoped usage envelope */
30071
+ 200: {
30072
+ headers: {
30073
+ [name: string]: unknown;
30074
+ };
30075
+ content: {
30076
+ "application/json": components["schemas"]["ProviderUsageEnvelope"];
30077
+ };
30078
+ };
30079
+ /** @description Invalid request */
30080
+ 400: {
30081
+ headers: {
30082
+ [name: string]: unknown;
30083
+ };
30084
+ content: {
30085
+ "application/json": components["schemas"]["ErrorPayload"];
30086
+ };
30087
+ };
30088
+ /** @description App token route forbidden */
30089
+ 403: {
30090
+ headers: {
30091
+ [name: string]: unknown;
30092
+ };
30093
+ content: {
30094
+ "application/json": components["schemas"]["ErrorPayload"];
30095
+ };
30096
+ };
30097
+ /** @description Profile or provider not found */
30098
+ 404: {
30099
+ headers: {
30100
+ [name: string]: unknown;
30101
+ };
30102
+ content: {
30103
+ "application/json":
30104
+ | components["schemas"]["ErrorPayload"]
30105
+ | components["schemas"]["ProfileErrorPayload"];
30106
+ };
30107
+ };
30108
+ /** @description Usage disabled or session profile conflict */
30109
+ 409: {
30110
+ headers: {
30111
+ [name: string]: unknown;
30112
+ };
30113
+ content: {
30114
+ "application/json":
30115
+ | components["schemas"]["ErrorPayload"]
30116
+ | components["schemas"]["ProfileErrorPayload"];
30117
+ };
30118
+ };
30119
+ /** @description Internal server error */
30120
+ 500: {
30121
+ headers: {
30122
+ [name: string]: unknown;
30123
+ };
30124
+ content: {
30125
+ "application/json": components["schemas"]["ErrorPayload"];
30126
+ };
30127
+ };
30128
+ /** @description Usage service unavailable */
30129
+ 503: {
30130
+ headers: {
30131
+ [name: string]: unknown;
30132
+ };
30133
+ content: {
30134
+ "application/json": components["schemas"]["ErrorPayload"];
30135
+ };
30136
+ };
30137
+ };
30138
+ };
30139
+ getProviderUsage: {
30140
+ parameters: {
30141
+ query?: {
30142
+ /** @description Profile name; defaults to the caller session profile or default */
30143
+ profile?: string;
30144
+ };
30145
+ header?: never;
30146
+ path: {
30147
+ /** @description Canonical provider ID */
30148
+ provider_id: string;
30149
+ };
30150
+ cookie?: never;
30151
+ };
30152
+ requestBody?: never;
30153
+ responses: {
30154
+ /** @description Profile-scoped usage envelope */
30155
+ 200: {
30156
+ headers: {
30157
+ [name: string]: unknown;
30158
+ };
30159
+ content: {
30160
+ "application/json": components["schemas"]["ProviderUsageEnvelope"];
30161
+ };
30162
+ };
30163
+ /** @description Invalid request */
30164
+ 400: {
30165
+ headers: {
30166
+ [name: string]: unknown;
30167
+ };
30168
+ content: {
30169
+ "application/json": components["schemas"]["ErrorPayload"];
30170
+ };
30171
+ };
30172
+ /** @description App token route forbidden */
30173
+ 403: {
30174
+ headers: {
30175
+ [name: string]: unknown;
30176
+ };
30177
+ content: {
30178
+ "application/json": components["schemas"]["ErrorPayload"];
30179
+ };
30180
+ };
30181
+ /** @description Profile or provider not found */
30182
+ 404: {
30183
+ headers: {
30184
+ [name: string]: unknown;
30185
+ };
30186
+ content: {
30187
+ "application/json":
30188
+ | components["schemas"]["ErrorPayload"]
30189
+ | components["schemas"]["ProfileErrorPayload"];
30190
+ };
30191
+ };
30192
+ /** @description Usage disabled or session profile conflict */
30193
+ 409: {
30194
+ headers: {
30195
+ [name: string]: unknown;
30196
+ };
30197
+ content: {
30198
+ "application/json":
30199
+ | components["schemas"]["ErrorPayload"]
30200
+ | components["schemas"]["ProfileErrorPayload"];
30201
+ };
30202
+ };
30203
+ /** @description Internal server error */
30204
+ 500: {
30205
+ headers: {
30206
+ [name: string]: unknown;
30207
+ };
30208
+ content: {
30209
+ "application/json": components["schemas"]["ErrorPayload"];
30210
+ };
30211
+ };
30212
+ /** @description Usage service unavailable */
30213
+ 503: {
30214
+ headers: {
30215
+ [name: string]: unknown;
30216
+ };
30217
+ content: {
30218
+ "application/json": components["schemas"]["ErrorPayload"];
30219
+ };
30220
+ };
30221
+ };
30222
+ };
30223
+ refreshProviderUsage: {
30224
+ parameters: {
30225
+ query?: never;
30226
+ header?: never;
30227
+ path?: never;
30228
+ cookie?: never;
30229
+ };
30230
+ /** @description JSON request body */
30231
+ requestBody?: {
30232
+ content: {
30233
+ "application/json": components["schemas"]["ProviderUsageRefreshRequest"];
30234
+ };
30235
+ };
30236
+ responses: {
30237
+ /** @description Profile-scoped usage envelope */
30238
+ 200: {
30239
+ headers: {
30240
+ [name: string]: unknown;
30241
+ };
30242
+ content: {
30243
+ "application/json": components["schemas"]["ProviderUsageEnvelope"];
30244
+ };
30245
+ };
30246
+ /** @description Invalid request */
30247
+ 400: {
30248
+ headers: {
30249
+ [name: string]: unknown;
30250
+ };
30251
+ content: {
30252
+ "application/json": components["schemas"]["ErrorPayload"];
30253
+ };
30254
+ };
30255
+ /** @description App token route forbidden */
30256
+ 403: {
30257
+ headers: {
30258
+ [name: string]: unknown;
30259
+ };
30260
+ content: {
30261
+ "application/json": components["schemas"]["ErrorPayload"];
30262
+ };
30263
+ };
30264
+ /** @description Profile or provider not found */
30265
+ 404: {
30266
+ headers: {
30267
+ [name: string]: unknown;
30268
+ };
30269
+ content: {
30270
+ "application/json":
30271
+ | components["schemas"]["ErrorPayload"]
30272
+ | components["schemas"]["ProfileErrorPayload"];
30273
+ };
30274
+ };
30275
+ /** @description Usage disabled or session profile conflict */
30276
+ 409: {
30277
+ headers: {
30278
+ [name: string]: unknown;
30279
+ };
30280
+ content: {
30281
+ "application/json":
30282
+ | components["schemas"]["ErrorPayload"]
30283
+ | components["schemas"]["ProfileErrorPayload"];
30284
+ };
30285
+ };
30286
+ /** @description Internal server error */
30287
+ 500: {
30288
+ headers: {
30289
+ [name: string]: unknown;
30290
+ };
30291
+ content: {
30292
+ "application/json": components["schemas"]["ErrorPayload"];
30293
+ };
30294
+ };
30295
+ /** @description Usage service unavailable */
30296
+ 503: {
30297
+ headers: {
30298
+ [name: string]: unknown;
30299
+ };
30300
+ content: {
30301
+ "application/json": components["schemas"]["ErrorPayload"];
30302
+ };
30303
+ };
30304
+ };
30305
+ };
30306
+ streamProviderUsage: {
30307
+ parameters: {
30308
+ query?: {
30309
+ /** @description Profile name; defaults to the caller session profile or default */
30310
+ profile?: string;
30311
+ };
30312
+ header?: never;
30313
+ path?: never;
30314
+ cookie?: never;
30315
+ };
30316
+ requestBody?: never;
30317
+ responses: {
30318
+ /** @description ready and provider_usage_changed revision events */
30319
+ 200: {
30320
+ headers: {
30321
+ [name: string]: unknown;
30322
+ };
30323
+ content: {
30324
+ "text/event-stream": components["schemas"]["ProviderUsageStreamEvent"];
30325
+ };
30326
+ };
30327
+ /** @description Invalid request */
30328
+ 400: {
30329
+ headers: {
30330
+ [name: string]: unknown;
30331
+ };
30332
+ content: {
30333
+ "application/json": components["schemas"]["ErrorPayload"];
30334
+ };
30335
+ };
30336
+ /** @description App token route forbidden */
30337
+ 403: {
30338
+ headers: {
30339
+ [name: string]: unknown;
30340
+ };
30341
+ content: {
30342
+ "application/json": components["schemas"]["ErrorPayload"];
30343
+ };
30344
+ };
30345
+ /** @description Profile or provider not found */
30346
+ 404: {
30347
+ headers: {
30348
+ [name: string]: unknown;
30349
+ };
30350
+ content: {
30351
+ "application/json":
30352
+ | components["schemas"]["ErrorPayload"]
30353
+ | components["schemas"]["ProfileErrorPayload"];
30354
+ };
30355
+ };
30356
+ /** @description Usage disabled or session profile conflict */
30357
+ 409: {
30358
+ headers: {
30359
+ [name: string]: unknown;
30360
+ };
30361
+ content: {
30362
+ "application/json":
30363
+ | components["schemas"]["ErrorPayload"]
30364
+ | components["schemas"]["ProfileErrorPayload"];
30365
+ };
30366
+ };
30367
+ /** @description Internal server error */
30368
+ 500: {
30369
+ headers: {
30370
+ [name: string]: unknown;
30371
+ };
30372
+ content: {
30373
+ "application/json": components["schemas"]["ErrorPayload"];
30374
+ };
30375
+ };
30376
+ /** @description Usage service unavailable */
30377
+ 503: {
30378
+ headers: {
30379
+ [name: string]: unknown;
30380
+ };
30381
+ content: {
30382
+ "application/json": components["schemas"]["ErrorPayload"];
30383
+ };
30384
+ };
30385
+ };
30386
+ };
28957
30387
  listProviders: {
28958
30388
  parameters: {
28959
30389
  query?: never;
@@ -30199,7 +31629,7 @@ export interface operations {
30199
31629
  /** @description Maximum number of queued runs to return */
30200
31630
  limit?: number;
30201
31631
  /** @description Filter by catalog visibility */
30202
- scope?: "all" | "global" | "workspace";
31632
+ scope?: "all" | "global" | "workspace" | "user" | "@user";
30203
31633
  /** @description Filter by workspace path, name, or ID */
30204
31634
  workspace?: string;
30205
31635
  /** @description Include runs blocked by task pause state */
@@ -30457,6 +31887,8 @@ export interface operations {
30457
31887
  workspace_id?: string;
30458
31888
  /** @description Use the explicit all-workspaces aggregate */
30459
31889
  all_workspaces?: boolean;
31890
+ /** @description Project IDs or @user; repeatable, requires all_workspaces */
31891
+ workspace_ids?: string[];
30460
31892
  /** @description Include metadata-only health for returned sessions */
30461
31893
  include_health?: boolean;
30462
31894
  /** @description Omit the exact catalog count for a bounded cursor read */
@@ -30756,6 +32188,8 @@ export interface operations {
30756
32188
  workspace_id?: string;
30757
32189
  /** @description Use the explicit all-workspaces aggregate */
30758
32190
  all_workspaces?: boolean;
32191
+ /** @description Project IDs or @user; repeatable, requires all_workspaces */
32192
+ workspace_ids?: string[];
30759
32193
  /** @description Filter by bound worktree id */
30760
32194
  worktree?: string;
30761
32195
  /** @description Filter by exact agent name */
@@ -33178,6 +34612,112 @@ export interface operations {
33178
34612
  };
33179
34613
  };
33180
34614
  };
34615
+ getSettingsProviderUsage: {
34616
+ parameters: {
34617
+ query?: never;
34618
+ header?: never;
34619
+ path?: never;
34620
+ cookie?: never;
34621
+ };
34622
+ requestBody?: never;
34623
+ responses: {
34624
+ /** @description OK */
34625
+ 200: {
34626
+ headers: {
34627
+ [name: string]: unknown;
34628
+ };
34629
+ content: {
34630
+ "application/json": components["schemas"]["SettingsProviderUsageResponse"];
34631
+ };
34632
+ };
34633
+ /** @description Internal server error */
34634
+ 500: {
34635
+ headers: {
34636
+ [name: string]: unknown;
34637
+ };
34638
+ content: {
34639
+ "application/json": components["schemas"]["ErrorPayload"];
34640
+ };
34641
+ };
34642
+ };
34643
+ };
34644
+ updateSettingsProviderUsage: {
34645
+ parameters: {
34646
+ query?: {
34647
+ /** @description Collection profile name or ID for local Keychain consent; independent of user config scope; defaults to default */
34648
+ collection_profile?: string;
34649
+ };
34650
+ header?: never;
34651
+ path?: never;
34652
+ cookie?: never;
34653
+ };
34654
+ /** @description JSON request body */
34655
+ requestBody: {
34656
+ content: {
34657
+ "application/json": components["schemas"]["SettingsProviderUsageUpdateRequest"];
34658
+ };
34659
+ };
34660
+ responses: {
34661
+ /** @description OK */
34662
+ 200: {
34663
+ headers: {
34664
+ [name: string]: unknown;
34665
+ };
34666
+ content: {
34667
+ "application/json": components["schemas"]["SettingsApplyResponse"];
34668
+ };
34669
+ };
34670
+ /** @description Invalid settings payload */
34671
+ 400: {
34672
+ headers: {
34673
+ [name: string]: unknown;
34674
+ };
34675
+ content: {
34676
+ "application/json":
34677
+ | components["schemas"]["ErrorPayload"]
34678
+ | components["schemas"]["ProfileErrorPayload"];
34679
+ };
34680
+ };
34681
+ /** @description Forbidden */
34682
+ 403: {
34683
+ headers: {
34684
+ [name: string]: unknown;
34685
+ };
34686
+ content: {
34687
+ "application/json": components["schemas"]["ErrorPayload"];
34688
+ };
34689
+ };
34690
+ /** @description Collection profile not found */
34691
+ 404: {
34692
+ headers: {
34693
+ [name: string]: unknown;
34694
+ };
34695
+ content: {
34696
+ "application/json": components["schemas"]["ProfileErrorPayload"];
34697
+ };
34698
+ };
34699
+ /** @description Conflicting settings change */
34700
+ 409: {
34701
+ headers: {
34702
+ [name: string]: unknown;
34703
+ };
34704
+ content: {
34705
+ "application/json":
34706
+ | components["schemas"]["ErrorPayload"]
34707
+ | components["schemas"]["ProfileErrorPayload"];
34708
+ };
34709
+ };
34710
+ /** @description Internal server error */
34711
+ 500: {
34712
+ headers: {
34713
+ [name: string]: unknown;
34714
+ };
34715
+ content: {
34716
+ "application/json": components["schemas"]["ErrorPayload"];
34717
+ };
34718
+ };
34719
+ };
34720
+ };
33181
34721
  listSettingsProviders: {
33182
34722
  parameters: {
33183
34723
  query?: never;
@@ -33548,7 +35088,7 @@ export interface operations {
33548
35088
  [name: string]: unknown;
33549
35089
  };
33550
35090
  content: {
33551
- "application/json": components["schemas"]["SettingsApplyResponse"];
35091
+ "application/json": components["schemas"]["SettingsShellMutationResponse"];
33552
35092
  };
33553
35093
  };
33554
35094
  /** @description Invalid settings payload */
@@ -35624,8 +37164,12 @@ export interface operations {
35624
37164
  listTasks: {
35625
37165
  parameters: {
35626
37166
  query?: {
37167
+ /** @description Read every project and User within the profile lens; conflicts with workspace */
37168
+ all_workspaces?: boolean;
37169
+ /** @description Repeatable project IDs; @user selects User; requires all_workspaces=true */
37170
+ workspace_ids?: string[];
35627
37171
  /** @description Filter by catalog visibility */
35628
- scope?: "all" | "global" | "workspace";
37172
+ scope?: "all" | "global" | "workspace" | "user" | "@user";
35629
37173
  /** @description Filter by workspace path, name, or ID */
35630
37174
  workspace?: string;
35631
37175
  /** @description Filter by task status */
@@ -35694,6 +37238,15 @@ export interface operations {
35694
37238
  "application/json": components["schemas"]["TaskQueryErrorPayload"];
35695
37239
  };
35696
37240
  };
37241
+ /** @description Agent aggregate access denied */
37242
+ 403: {
37243
+ headers: {
37244
+ [name: string]: unknown;
37245
+ };
37246
+ content: {
37247
+ "application/json": components["schemas"]["ErrorPayload"];
37248
+ };
37249
+ };
35697
37250
  /** @description Workspace not found */
35698
37251
  404: {
35699
37252
  headers: {
@@ -37747,11 +39300,143 @@ export interface operations {
37747
39300
  };
37748
39301
  };
37749
39302
  };
37750
- streamTask: {
39303
+ streamTask: {
39304
+ parameters: {
39305
+ query?: {
39306
+ /** @description Replay events after the supplied task stream sequence */
39307
+ after_sequence?: number;
39308
+ /** @description Read one profile's rows by name */
39309
+ profile?: string;
39310
+ /** @description Read the owner-labeled all-profiles aggregate */
39311
+ all_profiles?: boolean;
39312
+ };
39313
+ header?: never;
39314
+ path: {
39315
+ /** @description Task id */
39316
+ id: string;
39317
+ };
39318
+ cookie?: never;
39319
+ };
39320
+ requestBody?: never;
39321
+ responses: {
39322
+ /** @description Standard SSE message stream; the payload type identifies each task event */
39323
+ 200: {
39324
+ headers: {
39325
+ [name: string]: unknown;
39326
+ };
39327
+ content: {
39328
+ "text/event-stream": components["schemas"]["TaskStreamEventPayload"];
39329
+ };
39330
+ };
39331
+ /** @description Task not found */
39332
+ 404: {
39333
+ headers: {
39334
+ [name: string]: unknown;
39335
+ };
39336
+ content: {
39337
+ "application/json": components["schemas"]["ErrorPayload"];
39338
+ };
39339
+ };
39340
+ /** @description Invalid task stream query */
39341
+ 422: {
39342
+ headers: {
39343
+ [name: string]: unknown;
39344
+ };
39345
+ content: {
39346
+ "application/json": components["schemas"]["ErrorPayload"];
39347
+ };
39348
+ };
39349
+ /** @description Internal server error */
39350
+ 500: {
39351
+ headers: {
39352
+ [name: string]: unknown;
39353
+ };
39354
+ content: {
39355
+ "application/json": components["schemas"]["ErrorPayload"];
39356
+ };
39357
+ };
39358
+ /** @description Task service is not configured */
39359
+ 503: {
39360
+ headers: {
39361
+ [name: string]: unknown;
39362
+ };
39363
+ content: {
39364
+ "application/json": components["schemas"]["ErrorPayload"];
39365
+ };
39366
+ };
39367
+ };
39368
+ };
39369
+ getTaskTimeline: {
39370
+ parameters: {
39371
+ query?: {
39372
+ /** @description Return only events after the supplied sequence */
39373
+ after_sequence?: number;
39374
+ /** @description Maximum number of timeline items to return */
39375
+ limit?: number;
39376
+ /** @description Read one profile's rows by name */
39377
+ profile?: string;
39378
+ /** @description Read the owner-labeled all-profiles aggregate */
39379
+ all_profiles?: boolean;
39380
+ };
39381
+ header?: never;
39382
+ path: {
39383
+ /** @description Task id */
39384
+ id: string;
39385
+ };
39386
+ cookie?: never;
39387
+ };
39388
+ requestBody?: never;
39389
+ responses: {
39390
+ /** @description OK */
39391
+ 200: {
39392
+ headers: {
39393
+ [name: string]: unknown;
39394
+ };
39395
+ content: {
39396
+ "application/json": components["schemas"]["TaskTimelineResponse"];
39397
+ };
39398
+ };
39399
+ /** @description Task not found */
39400
+ 404: {
39401
+ headers: {
39402
+ [name: string]: unknown;
39403
+ };
39404
+ content: {
39405
+ "application/json": components["schemas"]["ErrorPayload"];
39406
+ };
39407
+ };
39408
+ /** @description Invalid timeline query */
39409
+ 422: {
39410
+ headers: {
39411
+ [name: string]: unknown;
39412
+ };
39413
+ content: {
39414
+ "application/json": components["schemas"]["ErrorPayload"];
39415
+ };
39416
+ };
39417
+ /** @description Internal server error */
39418
+ 500: {
39419
+ headers: {
39420
+ [name: string]: unknown;
39421
+ };
39422
+ content: {
39423
+ "application/json": components["schemas"]["ErrorPayload"];
39424
+ };
39425
+ };
39426
+ /** @description Task service is not configured */
39427
+ 503: {
39428
+ headers: {
39429
+ [name: string]: unknown;
39430
+ };
39431
+ content: {
39432
+ "application/json": components["schemas"]["ErrorPayload"];
39433
+ };
39434
+ };
39435
+ };
39436
+ };
39437
+ getTaskTree: {
37751
39438
  parameters: {
37752
39439
  query?: {
37753
- /** @description Replay events after the supplied task stream sequence */
37754
- after_sequence?: number;
37755
39440
  /** @description Read one profile's rows by name */
37756
39441
  profile?: string;
37757
39442
  /** @description Read the owner-labeled all-profiles aggregate */
@@ -37766,13 +39451,13 @@ export interface operations {
37766
39451
  };
37767
39452
  requestBody?: never;
37768
39453
  responses: {
37769
- /** @description Standard SSE message stream; the payload type identifies each task event */
39454
+ /** @description OK */
37770
39455
  200: {
37771
39456
  headers: {
37772
39457
  [name: string]: unknown;
37773
39458
  };
37774
39459
  content: {
37775
- "text/event-stream": components["schemas"]["TaskStreamEventPayload"];
39460
+ "application/json": components["schemas"]["TaskTreeResponse"];
37776
39461
  };
37777
39462
  };
37778
39463
  /** @description Task not found */
@@ -37784,7 +39469,7 @@ export interface operations {
37784
39469
  "application/json": components["schemas"]["ErrorPayload"];
37785
39470
  };
37786
39471
  };
37787
- /** @description Invalid task stream query */
39472
+ /** @description Invalid task id */
37788
39473
  422: {
37789
39474
  headers: {
37790
39475
  [name: string]: unknown;
@@ -37813,17 +39498,11 @@ export interface operations {
37813
39498
  };
37814
39499
  };
37815
39500
  };
37816
- getTaskTimeline: {
39501
+ archiveTask: {
37817
39502
  parameters: {
37818
39503
  query?: {
37819
- /** @description Return only events after the supplied sequence */
37820
- after_sequence?: number;
37821
- /** @description Maximum number of timeline items to return */
37822
- limit?: number;
37823
- /** @description Read one profile's rows by name */
39504
+ /** @description Act as this profile by name */
37824
39505
  profile?: string;
37825
- /** @description Read the owner-labeled all-profiles aggregate */
37826
- all_profiles?: boolean;
37827
39506
  };
37828
39507
  header?: never;
37829
39508
  path: {
@@ -37840,7 +39519,7 @@ export interface operations {
37840
39519
  [name: string]: unknown;
37841
39520
  };
37842
39521
  content: {
37843
- "application/json": components["schemas"]["TaskTimelineResponse"];
39522
+ "application/json": components["schemas"]["TaskTriageStateResponse"];
37844
39523
  };
37845
39524
  };
37846
39525
  /** @description Task not found */
@@ -37852,7 +39531,7 @@ export interface operations {
37852
39531
  "application/json": components["schemas"]["ErrorPayload"];
37853
39532
  };
37854
39533
  };
37855
- /** @description Invalid timeline query */
39534
+ /** @description Invalid task triage request */
37856
39535
  422: {
37857
39536
  headers: {
37858
39537
  [name: string]: unknown;
@@ -37881,13 +39560,11 @@ export interface operations {
37881
39560
  };
37882
39561
  };
37883
39562
  };
37884
- getTaskTree: {
39563
+ dismissTask: {
37885
39564
  parameters: {
37886
39565
  query?: {
37887
- /** @description Read one profile's rows by name */
39566
+ /** @description Act as this profile by name */
37888
39567
  profile?: string;
37889
- /** @description Read the owner-labeled all-profiles aggregate */
37890
- all_profiles?: boolean;
37891
39568
  };
37892
39569
  header?: never;
37893
39570
  path: {
@@ -37904,7 +39581,7 @@ export interface operations {
37904
39581
  [name: string]: unknown;
37905
39582
  };
37906
39583
  content: {
37907
- "application/json": components["schemas"]["TaskTreeResponse"];
39584
+ "application/json": components["schemas"]["TaskTriageStateResponse"];
37908
39585
  };
37909
39586
  };
37910
39587
  /** @description Task not found */
@@ -37916,7 +39593,7 @@ export interface operations {
37916
39593
  "application/json": components["schemas"]["ErrorPayload"];
37917
39594
  };
37918
39595
  };
37919
- /** @description Invalid task id */
39596
+ /** @description Invalid task triage request */
37920
39597
  422: {
37921
39598
  headers: {
37922
39599
  [name: string]: unknown;
@@ -37945,7 +39622,7 @@ export interface operations {
37945
39622
  };
37946
39623
  };
37947
39624
  };
37948
- archiveTask: {
39625
+ markTaskRead: {
37949
39626
  parameters: {
37950
39627
  query?: {
37951
39628
  /** @description Act as this profile by name */
@@ -38007,17 +39684,20 @@ export interface operations {
38007
39684
  };
38008
39685
  };
38009
39686
  };
38010
- dismissTask: {
39687
+ listTerminalsAggregate: {
38011
39688
  parameters: {
38012
39689
  query?: {
38013
- /** @description Act as this profile by name */
39690
+ /** @description Read all projects and User rows */
39691
+ all_workspaces?: boolean;
39692
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
39693
+ workspace_ids?: string[];
39694
+ /** @description Read one profile's rows by name */
38014
39695
  profile?: string;
39696
+ /** @description Read the owner-labeled all-profiles aggregate */
39697
+ all_profiles?: boolean;
38015
39698
  };
38016
39699
  header?: never;
38017
- path: {
38018
- /** @description Task id */
38019
- id: string;
38020
- };
39700
+ path?: never;
38021
39701
  cookie?: never;
38022
39702
  };
38023
39703
  requestBody?: never;
@@ -38028,105 +39708,163 @@ export interface operations {
38028
39708
  [name: string]: unknown;
38029
39709
  };
38030
39710
  content: {
38031
- "application/json": components["schemas"]["TaskTriageStateResponse"];
39711
+ "application/json": components["schemas"]["TerminalListResponse"];
38032
39712
  };
38033
39713
  };
38034
- /** @description Task not found */
38035
- 404: {
39714
+ /** @description Malformed terminal request */
39715
+ 400: {
38036
39716
  headers: {
38037
39717
  [name: string]: unknown;
38038
39718
  };
38039
39719
  content: {
38040
- "application/json": components["schemas"]["ErrorPayload"];
39720
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38041
39721
  };
38042
39722
  };
38043
- /** @description Invalid task triage request */
39723
+ /** @description Terminal authentication required */
39724
+ 401: {
39725
+ headers: {
39726
+ [name: string]: unknown;
39727
+ };
39728
+ content: {
39729
+ "application/json": components["schemas"]["TerminalErrorResponse"];
39730
+ };
39731
+ };
39732
+ /** @description Terminal operation forbidden */
39733
+ 403: {
39734
+ headers: {
39735
+ [name: string]: unknown;
39736
+ };
39737
+ content: {
39738
+ "application/json": components["schemas"]["TerminalErrorResponse"];
39739
+ };
39740
+ };
39741
+ /** @description Terminal state or profile conflict */
39742
+ 409: {
39743
+ headers: {
39744
+ [name: string]: unknown;
39745
+ };
39746
+ content: {
39747
+ "application/json": components["schemas"]["TerminalErrorResponse"];
39748
+ };
39749
+ };
39750
+ /** @description Invalid profile selection */
38044
39751
  422: {
38045
39752
  headers: {
38046
39753
  [name: string]: unknown;
38047
39754
  };
38048
39755
  content: {
38049
- "application/json": components["schemas"]["ErrorPayload"];
39756
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38050
39757
  };
38051
39758
  };
38052
- /** @description Internal server error */
39759
+ /** @description Terminal transport failed */
38053
39760
  500: {
38054
39761
  headers: {
38055
39762
  [name: string]: unknown;
38056
39763
  };
38057
39764
  content: {
38058
- "application/json": components["schemas"]["ErrorPayload"];
39765
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38059
39766
  };
38060
39767
  };
38061
- /** @description Task service is not configured */
39768
+ /** @description Terminal service unavailable */
38062
39769
  503: {
38063
39770
  headers: {
38064
39771
  [name: string]: unknown;
38065
39772
  };
38066
39773
  content: {
38067
- "application/json": components["schemas"]["ErrorPayload"];
39774
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38068
39775
  };
38069
39776
  };
38070
39777
  };
38071
39778
  };
38072
- markTaskRead: {
39779
+ streamTerminalsAggregate: {
38073
39780
  parameters: {
38074
39781
  query?: {
39782
+ /** @description Read all projects and User rows */
39783
+ all_workspaces?: boolean;
39784
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
39785
+ workspace_ids?: string[];
38075
39786
  /** @description Act as this profile by name */
38076
39787
  profile?: string;
38077
39788
  };
38078
- header?: never;
38079
- path: {
38080
- /** @description Task id */
38081
- id: string;
39789
+ header?: {
39790
+ /** @description Resume after the last terminal catalog event */
39791
+ "Last-Event-ID"?: string;
38082
39792
  };
39793
+ path?: never;
38083
39794
  cookie?: never;
38084
39795
  };
38085
39796
  requestBody?: never;
38086
39797
  responses: {
38087
- /** @description OK */
39798
+ /** @description Terminal catalog event stream */
38088
39799
  200: {
38089
39800
  headers: {
38090
39801
  [name: string]: unknown;
38091
39802
  };
38092
39803
  content: {
38093
- "application/json": components["schemas"]["TaskTriageStateResponse"];
39804
+ "text/event-stream": components["schemas"]["TerminalCatalogSnapshot"];
38094
39805
  };
38095
39806
  };
38096
- /** @description Task not found */
38097
- 404: {
39807
+ /** @description Malformed terminal request */
39808
+ 400: {
38098
39809
  headers: {
38099
39810
  [name: string]: unknown;
38100
39811
  };
38101
39812
  content: {
38102
- "application/json": components["schemas"]["ErrorPayload"];
39813
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38103
39814
  };
38104
39815
  };
38105
- /** @description Invalid task triage request */
39816
+ /** @description Terminal authentication required */
39817
+ 401: {
39818
+ headers: {
39819
+ [name: string]: unknown;
39820
+ };
39821
+ content: {
39822
+ "application/json": components["schemas"]["TerminalErrorResponse"];
39823
+ };
39824
+ };
39825
+ /** @description Terminal operation forbidden */
39826
+ 403: {
39827
+ headers: {
39828
+ [name: string]: unknown;
39829
+ };
39830
+ content: {
39831
+ "application/json": components["schemas"]["TerminalErrorResponse"];
39832
+ };
39833
+ };
39834
+ /** @description Terminal state or profile conflict */
39835
+ 409: {
39836
+ headers: {
39837
+ [name: string]: unknown;
39838
+ };
39839
+ content: {
39840
+ "application/json": components["schemas"]["TerminalErrorResponse"];
39841
+ };
39842
+ };
39843
+ /** @description Invalid terminal catalog cursor */
38106
39844
  422: {
38107
39845
  headers: {
38108
39846
  [name: string]: unknown;
38109
39847
  };
38110
39848
  content: {
38111
- "application/json": components["schemas"]["ErrorPayload"];
39849
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38112
39850
  };
38113
39851
  };
38114
- /** @description Internal server error */
39852
+ /** @description Terminal transport failed */
38115
39853
  500: {
38116
39854
  headers: {
38117
39855
  [name: string]: unknown;
38118
39856
  };
38119
39857
  content: {
38120
- "application/json": components["schemas"]["ErrorPayload"];
39858
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38121
39859
  };
38122
39860
  };
38123
- /** @description Task service is not configured */
39861
+ /** @description Terminal catalog unavailable */
38124
39862
  503: {
38125
39863
  headers: {
38126
39864
  [name: string]: unknown;
38127
39865
  };
38128
39866
  content: {
38129
- "application/json": components["schemas"]["ErrorPayload"];
39867
+ "application/json": components["schemas"]["TerminalErrorResponse"];
38130
39868
  };
38131
39869
  };
38132
39870
  };
@@ -43872,6 +45610,8 @@ export interface operations {
43872
45610
  listWorkspaceSessions: {
43873
45611
  parameters: {
43874
45612
  query?: {
45613
+ /** @description Project IDs or @user; repeatable, requires all_workspaces */
45614
+ workspace_ids?: string[];
43875
45615
  /** @description Include metadata-only health for returned sessions */
43876
45616
  include_health?: boolean;
43877
45617
  /** @description Omit the exact catalog count for a bounded cursor read */
@@ -44208,6 +45948,8 @@ export interface operations {
44208
45948
  archiveSession: {
44209
45949
  parameters: {
44210
45950
  query?: {
45951
+ /** @description Stop a live session through the normal stop path before archiving it; a failed stop leaves it unarchived */
45952
+ stop?: boolean;
44211
45953
  /** @description Act as this profile by name */
44212
45954
  profile?: string;
44213
45955
  };
@@ -44231,6 +45973,15 @@ export interface operations {
44231
45973
  "application/json": components["schemas"]["SessionResponse"];
44232
45974
  };
44233
45975
  };
45976
+ /** @description Invalid archive request */
45977
+ 400: {
45978
+ headers: {
45979
+ [name: string]: unknown;
45980
+ };
45981
+ content: {
45982
+ "application/json": components["schemas"]["ErrorPayload"];
45983
+ };
45984
+ };
44234
45985
  /** @description Session not found */
44235
45986
  404: {
44236
45987
  headers: {
@@ -44240,7 +45991,7 @@ export interface operations {
44240
45991
  "application/json": components["schemas"]["ErrorPayload"];
44241
45992
  };
44242
45993
  };
44243
- /** @description Session must be stopped before archiving */
45994
+ /** @description Session must be stopped before archiving, or the requested stop failed */
44244
45995
  409: {
44245
45996
  headers: {
44246
45997
  [name: string]: unknown;
@@ -45642,6 +47393,112 @@ export interface operations {
45642
47393
  };
45643
47394
  };
45644
47395
  };
47396
+ listSessionMonitors: {
47397
+ parameters: {
47398
+ query?: never;
47399
+ header?: never;
47400
+ path: {
47401
+ /** @description Workspace id */
47402
+ workspace_id: string;
47403
+ /** @description Session id */
47404
+ session_id: string;
47405
+ };
47406
+ cookie?: never;
47407
+ };
47408
+ requestBody?: never;
47409
+ responses: {
47410
+ /** @description Success */
47411
+ 200: {
47412
+ headers: {
47413
+ [name: string]: unknown;
47414
+ };
47415
+ content: {
47416
+ "application/json": components["schemas"]["SessionMonitorsResponse"];
47417
+ };
47418
+ };
47419
+ /** @description Session or monitor not found */
47420
+ 404: {
47421
+ headers: {
47422
+ [name: string]: unknown;
47423
+ };
47424
+ content: {
47425
+ "application/json": components["schemas"]["ErrorPayload"];
47426
+ };
47427
+ };
47428
+ /** @description Internal server error */
47429
+ 500: {
47430
+ headers: {
47431
+ [name: string]: unknown;
47432
+ };
47433
+ content: {
47434
+ "application/json": components["schemas"]["ErrorPayload"];
47435
+ };
47436
+ };
47437
+ /** @description Session monitors unavailable */
47438
+ 503: {
47439
+ headers: {
47440
+ [name: string]: unknown;
47441
+ };
47442
+ content: {
47443
+ "application/json": components["schemas"]["ErrorPayload"];
47444
+ };
47445
+ };
47446
+ };
47447
+ };
47448
+ cancelSessionMonitor: {
47449
+ parameters: {
47450
+ query?: never;
47451
+ header?: never;
47452
+ path: {
47453
+ /** @description Workspace id */
47454
+ workspace_id: string;
47455
+ /** @description Session id */
47456
+ session_id: string;
47457
+ /** @description Monitor id */
47458
+ monitor_id: string;
47459
+ };
47460
+ cookie?: never;
47461
+ };
47462
+ requestBody?: never;
47463
+ responses: {
47464
+ /** @description Success */
47465
+ 200: {
47466
+ headers: {
47467
+ [name: string]: unknown;
47468
+ };
47469
+ content: {
47470
+ "application/json": components["schemas"]["SessionMonitorResponse"];
47471
+ };
47472
+ };
47473
+ /** @description Session or monitor not found */
47474
+ 404: {
47475
+ headers: {
47476
+ [name: string]: unknown;
47477
+ };
47478
+ content: {
47479
+ "application/json": components["schemas"]["ErrorPayload"];
47480
+ };
47481
+ };
47482
+ /** @description Internal server error */
47483
+ 500: {
47484
+ headers: {
47485
+ [name: string]: unknown;
47486
+ };
47487
+ content: {
47488
+ "application/json": components["schemas"]["ErrorPayload"];
47489
+ };
47490
+ };
47491
+ /** @description Session monitors unavailable */
47492
+ 503: {
47493
+ headers: {
47494
+ [name: string]: unknown;
47495
+ };
47496
+ content: {
47497
+ "application/json": components["schemas"]["ErrorPayload"];
47498
+ };
47499
+ };
47500
+ };
47501
+ };
45645
47502
  moveSession: {
45646
47503
  parameters: {
45647
47504
  query?: {
@@ -45720,6 +47577,157 @@ export interface operations {
45720
47577
  };
45721
47578
  };
45722
47579
  };
47580
+ setSessionParent: {
47581
+ parameters: {
47582
+ query?: {
47583
+ /** @description Act as this profile by name */
47584
+ profile?: string;
47585
+ };
47586
+ header?: never;
47587
+ path: {
47588
+ /** @description Workspace id */
47589
+ workspace_id: string;
47590
+ /** @description Session id */
47591
+ session_id: string;
47592
+ };
47593
+ cookie?: never;
47594
+ };
47595
+ /** @description JSON request body */
47596
+ requestBody: {
47597
+ content: {
47598
+ "application/json": components["schemas"]["SetSessionParentRequest"];
47599
+ };
47600
+ };
47601
+ responses: {
47602
+ /** @description OK */
47603
+ 200: {
47604
+ headers: {
47605
+ [name: string]: unknown;
47606
+ };
47607
+ content: {
47608
+ "application/json": components["schemas"]["SessionResponse"];
47609
+ };
47610
+ };
47611
+ /** @description Invalid reparent request */
47612
+ 400: {
47613
+ headers: {
47614
+ [name: string]: unknown;
47615
+ };
47616
+ content: {
47617
+ "application/json": components["schemas"]["ErrorPayload"];
47618
+ };
47619
+ };
47620
+ /** @description Session not found */
47621
+ 404: {
47622
+ headers: {
47623
+ [name: string]: unknown;
47624
+ };
47625
+ content: {
47626
+ "application/json": components["schemas"]["ErrorPayload"];
47627
+ };
47628
+ };
47629
+ /** @description Reparent refused by a lineage rule; code names the rule */
47630
+ 409: {
47631
+ headers: {
47632
+ [name: string]: unknown;
47633
+ };
47634
+ content: {
47635
+ "application/json": components["schemas"]["ErrorPayload"];
47636
+ };
47637
+ };
47638
+ /** @description Internal server error */
47639
+ 500: {
47640
+ headers: {
47641
+ [name: string]: unknown;
47642
+ };
47643
+ content: {
47644
+ "application/json": components["schemas"]["ErrorPayload"];
47645
+ };
47646
+ };
47647
+ /** @description Session reparent unavailable */
47648
+ 503: {
47649
+ headers: {
47650
+ [name: string]: unknown;
47651
+ };
47652
+ content: {
47653
+ "application/json": components["schemas"]["ErrorPayload"];
47654
+ };
47655
+ };
47656
+ };
47657
+ };
47658
+ clearSessionParent: {
47659
+ parameters: {
47660
+ query?: {
47661
+ /** @description Act as this profile by name */
47662
+ profile?: string;
47663
+ };
47664
+ header?: never;
47665
+ path: {
47666
+ /** @description Workspace id */
47667
+ workspace_id: string;
47668
+ /** @description Session id */
47669
+ session_id: string;
47670
+ };
47671
+ cookie?: never;
47672
+ };
47673
+ requestBody?: never;
47674
+ responses: {
47675
+ /** @description OK */
47676
+ 200: {
47677
+ headers: {
47678
+ [name: string]: unknown;
47679
+ };
47680
+ content: {
47681
+ "application/json": components["schemas"]["SessionResponse"];
47682
+ };
47683
+ };
47684
+ /** @description Invalid reparent request */
47685
+ 400: {
47686
+ headers: {
47687
+ [name: string]: unknown;
47688
+ };
47689
+ content: {
47690
+ "application/json": components["schemas"]["ErrorPayload"];
47691
+ };
47692
+ };
47693
+ /** @description Session not found */
47694
+ 404: {
47695
+ headers: {
47696
+ [name: string]: unknown;
47697
+ };
47698
+ content: {
47699
+ "application/json": components["schemas"]["ErrorPayload"];
47700
+ };
47701
+ };
47702
+ /** @description Reparent refused by a lineage rule; code names the rule */
47703
+ 409: {
47704
+ headers: {
47705
+ [name: string]: unknown;
47706
+ };
47707
+ content: {
47708
+ "application/json": components["schemas"]["ErrorPayload"];
47709
+ };
47710
+ };
47711
+ /** @description Internal server error */
47712
+ 500: {
47713
+ headers: {
47714
+ [name: string]: unknown;
47715
+ };
47716
+ content: {
47717
+ "application/json": components["schemas"]["ErrorPayload"];
47718
+ };
47719
+ };
47720
+ /** @description Session reparent unavailable */
47721
+ 503: {
47722
+ headers: {
47723
+ [name: string]: unknown;
47724
+ };
47725
+ content: {
47726
+ "application/json": components["schemas"]["ErrorPayload"];
47727
+ };
47728
+ };
47729
+ };
47730
+ };
45723
47731
  updateSessionPresence: {
45724
47732
  parameters: {
45725
47733
  query?: never;
@@ -49744,6 +51752,15 @@ export interface operations {
49744
51752
  "application/json": components["schemas"]["ContractWindowManagerClientView"];
49745
51753
  };
49746
51754
  };
51755
+ /** @description Invalid window workspace binding */
51756
+ 400: {
51757
+ headers: {
51758
+ [name: string]: unknown;
51759
+ };
51760
+ content: {
51761
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
51762
+ };
51763
+ };
49747
51764
  /** @description Workspace or referenced entity not found */
49748
51765
  404: {
49749
51766
  headers: {
@@ -49806,6 +51823,15 @@ export interface operations {
49806
51823
  };
49807
51824
  content?: never;
49808
51825
  };
51826
+ /** @description Invalid window workspace binding */
51827
+ 400: {
51828
+ headers: {
51829
+ [name: string]: unknown;
51830
+ };
51831
+ content: {
51832
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
51833
+ };
51834
+ };
49809
51835
  /** @description Workspace or referenced entity not found */
49810
51836
  404: {
49811
51837
  headers: {
@@ -49873,6 +51899,15 @@ export interface operations {
49873
51899
  "application/json": components["schemas"]["ContractWindowManagerResult"];
49874
51900
  };
49875
51901
  };
51902
+ /** @description Invalid window workspace binding */
51903
+ 400: {
51904
+ headers: {
51905
+ [name: string]: unknown;
51906
+ };
51907
+ content: {
51908
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
51909
+ };
51910
+ };
49876
51911
  /** @description Workspace or referenced entity not found */
49877
51912
  404: {
49878
51913
  headers: {
@@ -49984,6 +52019,15 @@ export interface operations {
49984
52019
  "application/json": components["schemas"]["ContractWindowManagerResult"];
49985
52020
  };
49986
52021
  };
52022
+ /** @description Invalid window workspace binding */
52023
+ 400: {
52024
+ headers: {
52025
+ [name: string]: unknown;
52026
+ };
52027
+ content: {
52028
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
52029
+ };
52030
+ };
49987
52031
  /** @description Workspace or referenced entity not found */
49988
52032
  404: {
49989
52033
  headers: {
@@ -50342,6 +52386,15 @@ export interface operations {
50342
52386
  "application/json": components["schemas"]["ContractWindowManagerLayoutValidationResponse"];
50343
52387
  };
50344
52388
  };
52389
+ /** @description Invalid window workspace binding */
52390
+ 400: {
52391
+ headers: {
52392
+ [name: string]: unknown;
52393
+ };
52394
+ content: {
52395
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
52396
+ };
52397
+ };
50345
52398
  /** @description Workspace or referenced entity not found */
50346
52399
  404: {
50347
52400
  headers: {
@@ -50409,6 +52462,15 @@ export interface operations {
50409
52462
  "application/json": components["schemas"]["ContractWindowManagerPreview"];
50410
52463
  };
50411
52464
  };
52465
+ /** @description Invalid window workspace binding */
52466
+ 400: {
52467
+ headers: {
52468
+ [name: string]: unknown;
52469
+ };
52470
+ content: {
52471
+ "application/json": components["schemas"]["ContractWindowManagerErrorPayload"];
52472
+ };
52473
+ };
50412
52474
  /** @description Workspace or referenced entity not found */
50413
52475
  404: {
50414
52476
  headers: {
@@ -50768,6 +52830,89 @@ export interface operations {
50768
52830
  };
50769
52831
  };
50770
52832
  };
52833
+ removeDiscoveredWorktree: {
52834
+ parameters: {
52835
+ query?: {
52836
+ /** @description Act as this profile by name */
52837
+ profile?: string;
52838
+ };
52839
+ header?: never;
52840
+ path: {
52841
+ /** @description Workspace id or path */
52842
+ workspace_id: string;
52843
+ };
52844
+ cookie?: never;
52845
+ };
52846
+ /** @description JSON request body */
52847
+ requestBody: {
52848
+ content: {
52849
+ "application/json": components["schemas"]["RemoveDiscoveredWorktreeRequest"];
52850
+ };
52851
+ };
52852
+ responses: {
52853
+ /** @description No Content */
52854
+ 204: {
52855
+ headers: {
52856
+ [name: string]: unknown;
52857
+ };
52858
+ content?: never;
52859
+ };
52860
+ /** @description Invalid discovered removal request */
52861
+ 400: {
52862
+ headers: {
52863
+ [name: string]: unknown;
52864
+ };
52865
+ content: {
52866
+ "application/json": components["schemas"]["ErrorPayload"];
52867
+ };
52868
+ };
52869
+ /** @description Hook or profile does not permit removal */
52870
+ 403: {
52871
+ headers: {
52872
+ [name: string]: unknown;
52873
+ };
52874
+ content: {
52875
+ "application/json": components["schemas"]["ErrorPayload"];
52876
+ };
52877
+ };
52878
+ /** @description Discovered worktree or workspace not found */
52879
+ 404: {
52880
+ headers: {
52881
+ [name: string]: unknown;
52882
+ };
52883
+ content: {
52884
+ "application/json": components["schemas"]["ErrorPayload"];
52885
+ };
52886
+ };
52887
+ /** @description Removal requires another decision */
52888
+ 409: {
52889
+ headers: {
52890
+ [name: string]: unknown;
52891
+ };
52892
+ content: {
52893
+ "application/json": components["schemas"]["WorktreeRemovalRefusalPayload"];
52894
+ };
52895
+ };
52896
+ /** @description Internal server error */
52897
+ 500: {
52898
+ headers: {
52899
+ [name: string]: unknown;
52900
+ };
52901
+ content: {
52902
+ "application/json": components["schemas"]["ErrorPayload"];
52903
+ };
52904
+ };
52905
+ /** @description Worktree service is unavailable */
52906
+ 503: {
52907
+ headers: {
52908
+ [name: string]: unknown;
52909
+ };
52910
+ content: {
52911
+ "application/json": components["schemas"]["ErrorPayload"];
52912
+ };
52913
+ };
52914
+ };
52915
+ };
50771
52916
  inspectWorktree: {
50772
52917
  parameters: {
50773
52918
  query?: never;
@@ -51484,6 +53629,67 @@ export interface operations {
51484
53629
  };
51485
53630
  };
51486
53631
  };
53632
+ listWorktreesAggregate: {
53633
+ parameters: {
53634
+ query?: {
53635
+ /** @description Read all projects and User rows */
53636
+ all_workspaces?: boolean;
53637
+ /** @description Repeatable project IDs or @user; requires all_workspaces=true */
53638
+ workspace_ids?: string[];
53639
+ };
53640
+ header?: never;
53641
+ path?: never;
53642
+ cookie?: never;
53643
+ };
53644
+ requestBody?: never;
53645
+ responses: {
53646
+ /** @description OK */
53647
+ 200: {
53648
+ headers: {
53649
+ [name: string]: unknown;
53650
+ };
53651
+ content: {
53652
+ "application/json": components["schemas"]["WorktreesResponse"];
53653
+ };
53654
+ };
53655
+ /** @description Invalid worktree list query */
53656
+ 400: {
53657
+ headers: {
53658
+ [name: string]: unknown;
53659
+ };
53660
+ content: {
53661
+ "application/json": components["schemas"]["ErrorPayload"];
53662
+ };
53663
+ };
53664
+ /** @description Workspace not found */
53665
+ 404: {
53666
+ headers: {
53667
+ [name: string]: unknown;
53668
+ };
53669
+ content: {
53670
+ "application/json": components["schemas"]["ErrorPayload"];
53671
+ };
53672
+ };
53673
+ /** @description Internal server error */
53674
+ 500: {
53675
+ headers: {
53676
+ [name: string]: unknown;
53677
+ };
53678
+ content: {
53679
+ "application/json": components["schemas"]["ErrorPayload"];
53680
+ };
53681
+ };
53682
+ /** @description Worktree service is unavailable */
53683
+ 503: {
53684
+ headers: {
53685
+ [name: string]: unknown;
53686
+ };
53687
+ content: {
53688
+ "application/json": components["schemas"]["ErrorPayload"];
53689
+ };
53690
+ };
53691
+ };
53692
+ };
51487
53693
  streamWorktreeCatalog: {
51488
53694
  parameters: {
51489
53695
  query?: never;