@compozy/client 0.5.4 → 0.5.5

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.
@@ -39,6 +39,12 @@ export type Action = {
39
39
  url?: string;
40
40
  view?: string;
41
41
  };
42
+ export type ActionDecl = {
43
+ auto_accept: boolean;
44
+ id: string;
45
+ instructions: string;
46
+ title: string;
47
+ };
42
48
  export type ActivityCost = {
43
49
  scope: string;
44
50
  tokens: number;
@@ -215,8 +221,12 @@ export type AgentInstanceCheckInPayload = {
215
221
  created_at: string;
216
222
  detail?: string;
217
223
  id: string;
224
+ occurrence_id: string;
225
+ proposals: CheckInProposalSummary;
218
226
  reason: string;
219
227
  result: string;
228
+ tool_calls: Array<CheckInToolCall>;
229
+ tools_status: string;
220
230
  };
221
231
  export type AgentInstanceCheckInsResponse = {
222
232
  check_ins: Array<AgentInstanceCheckInPayload>;
@@ -256,6 +266,8 @@ export type AgentInstanceOccurrenceResponse = {
256
266
  export type AgentInstancePayload = {
257
267
  activity: string;
258
268
  agent_name: string;
269
+ attention_dismissible: boolean;
270
+ authority_status: string;
259
271
  checks_enabled: boolean;
260
272
  created: boolean;
261
273
  created_at: string;
@@ -292,12 +304,25 @@ export type AgentInstancePeer = {
292
304
  scope: string;
293
305
  state: string;
294
306
  };
307
+ export type AgentInstancePickRequest = {
308
+ proposal: number | null;
309
+ };
310
+ export type AgentInstancePickResponse = {
311
+ pick: Pick;
312
+ };
295
313
  export type AgentInstanceProposal = {
314
+ action?: AgentInstanceProposalAction | null;
315
+ auto_accept_status: "picked" | "limit" | "queue_full" | "unapproved" | "no_main" | "inactive" | "none";
296
316
  body: string;
297
317
  item_keys: Array<string>;
298
318
  sources?: Array<AgentInstanceProposalSource>;
299
319
  title: string;
300
320
  };
321
+ export type AgentInstanceProposalAction = {
322
+ auto_accept: boolean;
323
+ id: string;
324
+ title: string;
325
+ };
301
326
  export type AgentInstanceProposalSource = {
302
327
  event_id: string;
303
328
  item_key?: string;
@@ -314,9 +339,13 @@ export type AgentInstanceReportPayload = {
314
339
  cause?: string;
315
340
  created_at: string;
316
341
  detail?: string;
342
+ diagnostics?: Array<string>;
317
343
  expired_by?: string;
318
344
  id: string;
319
345
  kind: string;
346
+ occurrence_id?: string;
347
+ picks: Array<Pick>;
348
+ picks_tracked: boolean;
320
349
  proposals?: Array<AgentInstanceProposal>;
321
350
  reason?: string;
322
351
  resource?: string;
@@ -326,6 +355,7 @@ export type AgentInstanceReportPayload = {
326
355
  source?: AgentInstanceReportSource | null;
327
356
  state: string;
328
357
  tool?: string;
358
+ tool_calls: CheckInToolSummary;
329
359
  };
330
360
  export type AgentInstanceReportSource = {
331
361
  event: string;
@@ -368,6 +398,7 @@ export type AgentMCPServerInput = {
368
398
  [key: string]: string;
369
399
  };
370
400
  name: string;
401
+ read_only_tools?: Array<string>;
371
402
  reference?: boolean;
372
403
  secret_env?: {
373
404
  [key: string]: string;
@@ -387,6 +418,7 @@ export type AgentMCPServerJSON = {
387
418
  [key: string]: string;
388
419
  };
389
420
  name: string;
421
+ read_only_tools?: Array<string>;
390
422
  reference?: boolean;
391
423
  secret_env?: {
392
424
  [key: string]: string;
@@ -840,6 +872,7 @@ export type AttentionNotificationPayload = {
840
872
  finished: boolean;
841
873
  generation: number;
842
874
  id: string;
875
+ instance_id?: string;
843
876
  item_index: number;
844
877
  kind: string;
845
878
  loop_name?: string;
@@ -848,6 +881,7 @@ export type AttentionNotificationPayload = {
848
881
  redacted: boolean;
849
882
  request_kind?: string;
850
883
  run_id?: string;
884
+ session_type?: string;
851
885
  source_id: string;
852
886
  terminal_id?: string;
853
887
  title: string;
@@ -1067,6 +1101,35 @@ export type ChangeTotalsPayload = {
1067
1101
  files: number;
1068
1102
  partial?: boolean;
1069
1103
  };
1104
+ export type CheckInProposalSummary = {
1105
+ auto_accepted: number;
1106
+ waiting: number;
1107
+ };
1108
+ export type CheckInToolCall = {
1109
+ access: string;
1110
+ args_preview?: string;
1111
+ backend: string;
1112
+ decision: string;
1113
+ deny_reason?: string;
1114
+ duration_ms: number;
1115
+ effect: string;
1116
+ error_code?: string;
1117
+ mcp_server?: string;
1118
+ outcome: string;
1119
+ seq: number;
1120
+ tool_id: string;
1121
+ };
1122
+ export type CheckInToolSummary = {
1123
+ denied: number;
1124
+ total: number;
1125
+ writes_done: number;
1126
+ writes_maybe: number;
1127
+ };
1128
+ export type CheckInsPolicy = {
1129
+ allow_writes?: Array<string>;
1130
+ max_tool_calls?: number | null;
1131
+ max_write_calls?: number | null;
1132
+ };
1070
1133
  export type Chip = {
1071
1134
  count?: number | null;
1072
1135
  fallback?: string;
@@ -1899,6 +1962,10 @@ export type ExtensionDeclaredProfilePayload = {
1899
1962
  name: string;
1900
1963
  needs_setup: boolean;
1901
1964
  };
1965
+ export type ExtensionEnableError = {
1966
+ code: string;
1967
+ error: string;
1968
+ };
1902
1969
  export type ExtensionEnablePreviewPayload = {
1903
1970
  agent_conflicts: Array<string>;
1904
1971
  automation_starting: Array<string>;
@@ -2864,6 +2931,15 @@ export type HeartbeatActorPayload = {
2864
2931
  kind: "user" | "agent" | "extension" | "system";
2865
2932
  ref?: string;
2866
2933
  };
2934
+ export type HeartbeatAuthorityPayload = {
2935
+ actions: Array<ActionDecl>;
2936
+ check_ins: CheckInsPolicy;
2937
+ digest: string;
2938
+ read_only_tools?: {
2939
+ [key: string]: Array<string>;
2940
+ };
2941
+ status: string;
2942
+ };
2867
2943
  export type HeartbeatConfigProvenancePayload = {
2868
2944
  digest: string;
2869
2945
  subset: HeartbeatConfigSubsetPayload;
@@ -2891,6 +2967,8 @@ export type HeartbeatDeleteByPathRequest = {
2891
2967
  workspace_id?: string;
2892
2968
  };
2893
2969
  export type HeartbeatFrontmatterPayload = {
2970
+ actions: Array<ActionDecl>;
2971
+ check_ins: CheckInsPolicy;
2894
2972
  context: HeartbeatContextProjectionPayload;
2895
2973
  enabled: boolean;
2896
2974
  preferences: HeartbeatFrontmatterPreferencesPayload;
@@ -2911,8 +2989,10 @@ export type HeartbeatMutationResponse = {
2911
2989
  revision: HeartbeatRevisionPayload;
2912
2990
  };
2913
2991
  export type HeartbeatPolicyPayload = {
2992
+ actions: Array<ActionDecl>;
2914
2993
  active: boolean;
2915
2994
  agent_name?: string;
2995
+ authority: HeartbeatAuthorityPayload;
2916
2996
  config_digest?: string;
2917
2997
  config_provenance: HeartbeatConfigProvenancePayload;
2918
2998
  created_at?: string | null;
@@ -2953,6 +3033,7 @@ export type HeartbeatPromptContributionPayload = {
2953
3033
  truncated: boolean;
2954
3034
  };
2955
3035
  export type HeartbeatPutByPathRequest = {
3036
+ approve_authority_sha256?: string;
2956
3037
  body: string;
2957
3038
  expected_digest: string;
2958
3039
  idempotency_key?: string;
@@ -3178,6 +3259,10 @@ export type InstallExtensionRequest = {
3178
3259
  allow_unverified?: boolean;
3179
3260
  asset?: string;
3180
3261
  confirm_gateway_digest?: string;
3262
+ /**
3263
+ * Enable after installation under the same operation lock. Activation failure returns 201 with enable_error and retains the installed package and inputs.
3264
+ */
3265
+ enable?: boolean;
3181
3266
  expected_digest?: string;
3182
3267
  inputs?: {
3183
3268
  [key: string]: Value;
@@ -3201,6 +3286,10 @@ export type InstallExtensionRequest = {
3201
3286
  */
3202
3287
  workspace_id?: string;
3203
3288
  };
3289
+ export type InstallExtensionResponse = {
3290
+ enable_error?: ExtensionEnableError | null;
3291
+ extension: ExtensionPayload;
3292
+ };
3204
3293
  export type JobPayload = {
3205
3294
  agent_name: string;
3206
3295
  created_at: string;
@@ -4060,6 +4149,11 @@ export type ManagedExtensionUpdatePayload = {
4060
4149
  status: string;
4061
4150
  warnings?: Array<DiagnosticItem>;
4062
4151
  };
4152
+ export type MarketplaceCategoryCount = {
4153
+ count: number;
4154
+ id: string;
4155
+ label: string;
4156
+ };
4063
4157
  export type MarketplaceCursorStalePayload = {
4064
4158
  code: string;
4065
4159
  error: string;
@@ -4094,6 +4188,7 @@ export type MarketplaceInputPayload = {
4094
4188
  type: string;
4095
4189
  };
4096
4190
  export type MarketplaceListResponse = {
4191
+ categories: Array<MarketplaceCategoryCount>;
4097
4192
  error?: string;
4098
4193
  error_class?: string;
4099
4194
  items: Array<MarketplaceListingPayload>;
@@ -4106,9 +4201,12 @@ export type MarketplaceListResponse = {
4106
4201
  };
4107
4202
  export type MarketplaceListingPayload = {
4108
4203
  author?: string;
4204
+ category: string;
4205
+ category_label: string;
4109
4206
  description: string;
4110
4207
  digest_sha256: string;
4111
4208
  entry_id: string;
4209
+ featured: boolean;
4112
4210
  format?: string;
4113
4211
  icon?: string;
4114
4212
  install_blocker?: string;
@@ -4145,6 +4243,21 @@ export type MarketplaceRefreshSourcePayload = {
4145
4243
  source: string;
4146
4244
  stale: boolean;
4147
4245
  };
4246
+ export type MarketplaceSection = {
4247
+ id: string;
4248
+ items: Array<MarketplaceListingPayload>;
4249
+ label: string;
4250
+ total: number;
4251
+ };
4252
+ export type MarketplaceSectionsResponse = {
4253
+ error?: string;
4254
+ error_class?: string;
4255
+ refreshing?: boolean;
4256
+ revision: string;
4257
+ sections: Array<MarketplaceSection>;
4258
+ sources: Array<MarketplaceSourceSummary>;
4259
+ stale: boolean;
4260
+ };
4148
4261
  export type MarketplaceServerPayload = {
4149
4262
  auth?: MCPAuthSummary | null;
4150
4263
  launch: string;
@@ -4578,6 +4691,16 @@ export type PermissionRollupResponse = {
4578
4691
  since: string;
4579
4692
  until: string;
4580
4693
  };
4694
+ export type Pick = {
4695
+ action_id?: string;
4696
+ actor: string;
4697
+ picked_at: string;
4698
+ proposal_index: number;
4699
+ queue_entry_id: string;
4700
+ report_id: string;
4701
+ state: string;
4702
+ target_session_id: string;
4703
+ };
4581
4704
  export type PickFilesEffect = {
4582
4705
  directories?: boolean;
4583
4706
  };
@@ -6860,7 +6983,7 @@ export type SettingsHookDeclarationPayload = {
6860
6983
  env?: {
6861
6984
  [key: string]: string;
6862
6985
  };
6863
- event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
6986
+ event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
6864
6987
  executor_kind?: "native" | "subprocess" | "wasm";
6865
6988
  matcher: HookMatcher;
6866
6989
  metadata?: {
@@ -7017,6 +7140,7 @@ export type SettingsMCPServerItemPayload = {
7017
7140
  override?: SettingsMCPExtensionOverridePayload | null;
7018
7141
  owner?: string;
7019
7142
  profile?: string;
7143
+ read_only_tools?: Array<string>;
7020
7144
  runtime_name?: string;
7021
7145
  runtime_status?: SettingsMCPServerRuntimeStatusPayload | null;
7022
7146
  scope: "user" | "profile" | "workspace" | "agent";
@@ -7037,6 +7161,7 @@ export type SettingsMCPServerPayload = {
7037
7161
  [key: string]: string;
7038
7162
  };
7039
7163
  name: string;
7164
+ read_only_tools?: Array<string>;
7040
7165
  secret_env?: {
7041
7166
  [key: string]: string;
7042
7167
  };
@@ -9220,7 +9345,9 @@ export type ToolContent = {
9220
9345
  type: string;
9221
9346
  };
9222
9347
  export type ToolDescriptorPayload = {
9348
+ access: string;
9223
9349
  backend: ToolBackendRefPayload;
9350
+ check_in_writable: boolean;
9224
9351
  concurrency_safe: boolean;
9225
9352
  description: string;
9226
9353
  destructive: boolean;
@@ -9589,13 +9716,14 @@ export type ValidateLoopRequest = {
9589
9716
  definition: LoopDefinitionDocument;
9590
9717
  };
9591
9718
  export type ValidationIssue = {
9719
+ code?: string;
9592
9720
  column?: number;
9593
9721
  field?: string;
9594
9722
  line?: number;
9595
9723
  message: string;
9596
9724
  path: string;
9597
9725
  scope?: string;
9598
- severity: "error" | "warning" | "warn";
9726
+ severity: "error" | "warning" | "warn" | "info";
9599
9727
  };
9600
9728
  export type Value = {
9601
9729
  [key: string]: never;
@@ -10077,6 +10205,7 @@ export type AgentMCPServerInputWritable = {
10077
10205
  [key: string]: string;
10078
10206
  };
10079
10207
  name: string;
10208
+ read_only_tools?: Array<string>;
10080
10209
  reference?: boolean;
10081
10210
  secret_env?: {
10082
10211
  [key: string]: string;
@@ -10139,6 +10268,10 @@ export type InstallExtensionRequestWritable = {
10139
10268
  allow_unverified?: boolean;
10140
10269
  asset?: string;
10141
10270
  confirm_gateway_digest?: string;
10271
+ /**
10272
+ * Enable after installation under the same operation lock. Activation failure returns 201 with enable_error and retains the installed package and inputs.
10273
+ */
10274
+ enable?: boolean;
10142
10275
  expected_digest?: string;
10143
10276
  inputs?: {
10144
10277
  [key: string]: ValueWritable;
@@ -11105,6 +11238,71 @@ export type ListAgentInstanceReportsResponses = {
11105
11238
  200: AgentInstanceReportsResponse;
11106
11239
  };
11107
11240
  export type ListAgentInstanceReportsResponse = ListAgentInstanceReportsResponses[keyof ListAgentInstanceReportsResponses];
11241
+ export type PickAgentInstanceProposalData = {
11242
+ /**
11243
+ * JSON request body
11244
+ */
11245
+ body: AgentInstancePickRequest;
11246
+ path: {
11247
+ /**
11248
+ * Instance ID
11249
+ */
11250
+ id: string;
11251
+ /**
11252
+ * Report ID
11253
+ */
11254
+ report_id: string;
11255
+ };
11256
+ query?: {
11257
+ /**
11258
+ * Act as this profile by name
11259
+ */
11260
+ profile?: string;
11261
+ };
11262
+ url: "/api/agent-instances/{id}/reports/{report_id}/pick";
11263
+ };
11264
+ export type PickAgentInstanceProposalErrors = {
11265
+ /**
11266
+ * Invalid profile selection
11267
+ */
11268
+ 400: ProfileErrorPayload;
11269
+ /**
11270
+ * Request failed
11271
+ */
11272
+ 403: ErrorPayload;
11273
+ /**
11274
+ * Request failed
11275
+ */
11276
+ 404: ErrorPayload;
11277
+ /**
11278
+ * Request failed
11279
+ */
11280
+ 409: ErrorPayload;
11281
+ /**
11282
+ * Request failed
11283
+ */
11284
+ 422: ErrorPayload;
11285
+ /**
11286
+ * Request failed
11287
+ */
11288
+ 429: ErrorPayload;
11289
+ /**
11290
+ * Request failed
11291
+ */
11292
+ 500: ErrorPayload;
11293
+ /**
11294
+ * Request failed
11295
+ */
11296
+ 503: ErrorPayload;
11297
+ };
11298
+ export type PickAgentInstanceProposalError = PickAgentInstanceProposalErrors[keyof PickAgentInstanceProposalErrors];
11299
+ export type PickAgentInstanceProposalResponses = {
11300
+ /**
11301
+ * Picked
11302
+ */
11303
+ 200: AgentInstancePickResponse;
11304
+ };
11305
+ export type PickAgentInstanceProposalResponse = PickAgentInstanceProposalResponses[keyof PickAgentInstanceProposalResponses];
11108
11306
  export type ResumeAgentInstanceData = {
11109
11307
  body?: never;
11110
11308
  path: {
@@ -12870,6 +13068,159 @@ export type PutAgentHeartbeatResponses = {
12870
13068
  200: HeartbeatMutationResponse;
12871
13069
  };
12872
13070
  export type PutAgentHeartbeatResponse = PutAgentHeartbeatResponses[keyof PutAgentHeartbeatResponses];
13071
+ export type GetAgentHeartbeatAuthorityData = {
13072
+ body?: never;
13073
+ path: {
13074
+ /**
13075
+ * Agent name
13076
+ */
13077
+ name: string;
13078
+ };
13079
+ query?: {
13080
+ /**
13081
+ * Workspace id
13082
+ */
13083
+ workspace_id?: string;
13084
+ /**
13085
+ * Act as this profile by name
13086
+ */
13087
+ profile?: string;
13088
+ };
13089
+ url: "/api/agents/{name}/heartbeat/authority";
13090
+ };
13091
+ export type GetAgentHeartbeatAuthorityErrors = {
13092
+ /**
13093
+ * Operator required
13094
+ */
13095
+ 403: ErrorPayload;
13096
+ /**
13097
+ * Agent not found
13098
+ */
13099
+ 404: ErrorPayload;
13100
+ /**
13101
+ * Authority changed
13102
+ */
13103
+ 409: ErrorPayload;
13104
+ /**
13105
+ * Invalid authority
13106
+ */
13107
+ 422: ErrorPayload;
13108
+ /**
13109
+ * Authority storage unavailable
13110
+ */
13111
+ 503: ErrorPayload;
13112
+ };
13113
+ export type GetAgentHeartbeatAuthorityError = GetAgentHeartbeatAuthorityErrors[keyof GetAgentHeartbeatAuthorityErrors];
13114
+ export type GetAgentHeartbeatAuthorityResponses = {
13115
+ /**
13116
+ * Check-in authority
13117
+ */
13118
+ 200: HeartbeatAuthorityPayload;
13119
+ };
13120
+ export type GetAgentHeartbeatAuthorityResponse = GetAgentHeartbeatAuthorityResponses[keyof GetAgentHeartbeatAuthorityResponses];
13121
+ export type RevokeAgentHeartbeatAuthorityData = {
13122
+ body?: never;
13123
+ path: {
13124
+ /**
13125
+ * Agent name
13126
+ */
13127
+ name: string;
13128
+ };
13129
+ query?: {
13130
+ /**
13131
+ * Workspace id
13132
+ */
13133
+ workspace_id?: string;
13134
+ /**
13135
+ * Act as this profile by name
13136
+ */
13137
+ profile?: string;
13138
+ };
13139
+ url: "/api/agents/{name}/heartbeat/authority/approve";
13140
+ };
13141
+ export type RevokeAgentHeartbeatAuthorityErrors = {
13142
+ /**
13143
+ * Operator required
13144
+ */
13145
+ 403: ErrorPayload;
13146
+ /**
13147
+ * Agent not found
13148
+ */
13149
+ 404: ErrorPayload;
13150
+ /**
13151
+ * Authority changed
13152
+ */
13153
+ 409: ErrorPayload;
13154
+ /**
13155
+ * Invalid authority
13156
+ */
13157
+ 422: ErrorPayload;
13158
+ /**
13159
+ * Authority storage unavailable
13160
+ */
13161
+ 503: ErrorPayload;
13162
+ };
13163
+ export type RevokeAgentHeartbeatAuthorityError = RevokeAgentHeartbeatAuthorityErrors[keyof RevokeAgentHeartbeatAuthorityErrors];
13164
+ export type RevokeAgentHeartbeatAuthorityResponses = {
13165
+ /**
13166
+ * Authority revoked
13167
+ */
13168
+ 204: void;
13169
+ };
13170
+ export type RevokeAgentHeartbeatAuthorityResponse = RevokeAgentHeartbeatAuthorityResponses[keyof RevokeAgentHeartbeatAuthorityResponses];
13171
+ export type ApproveAgentHeartbeatAuthorityData = {
13172
+ /**
13173
+ * JSON request body
13174
+ */
13175
+ body: HeartbeatScriptApprovalRequest;
13176
+ path: {
13177
+ /**
13178
+ * Agent name
13179
+ */
13180
+ name: string;
13181
+ };
13182
+ query?: {
13183
+ /**
13184
+ * Workspace id
13185
+ */
13186
+ workspace_id?: string;
13187
+ /**
13188
+ * Act as this profile by name
13189
+ */
13190
+ profile?: string;
13191
+ };
13192
+ url: "/api/agents/{name}/heartbeat/authority/approve";
13193
+ };
13194
+ export type ApproveAgentHeartbeatAuthorityErrors = {
13195
+ /**
13196
+ * Operator required
13197
+ */
13198
+ 403: ErrorPayload;
13199
+ /**
13200
+ * Agent not found
13201
+ */
13202
+ 404: ErrorPayload;
13203
+ /**
13204
+ * Authority changed
13205
+ */
13206
+ 409: ErrorPayload;
13207
+ /**
13208
+ * Invalid authority
13209
+ */
13210
+ 422: ErrorPayload;
13211
+ /**
13212
+ * Authority storage unavailable
13213
+ */
13214
+ 503: ErrorPayload;
13215
+ };
13216
+ export type ApproveAgentHeartbeatAuthorityError = ApproveAgentHeartbeatAuthorityErrors[keyof ApproveAgentHeartbeatAuthorityErrors];
13217
+ export type ApproveAgentHeartbeatAuthorityResponses = {
13218
+ /**
13219
+ * Authority approved
13220
+ */
13221
+ 204: void;
13222
+ };
13223
+ export type ApproveAgentHeartbeatAuthorityResponse = ApproveAgentHeartbeatAuthorityResponses[keyof ApproveAgentHeartbeatAuthorityResponses];
12873
13224
  export type ListAgentHeartbeatHistoryData = {
12874
13225
  body?: never;
12875
13226
  path: {
@@ -15928,9 +16279,9 @@ export type InstallExtensionResponses = {
15928
16279
  /**
15929
16280
  * Created
15930
16281
  */
15931
- 201: ExtensionResponse;
16282
+ 201: InstallExtensionResponse;
15932
16283
  };
15933
- export type InstallExtensionResponse = InstallExtensionResponses[keyof InstallExtensionResponses];
16284
+ export type InstallExtensionResponse2 = InstallExtensionResponses[keyof InstallExtensionResponses];
15934
16285
  export type ListExtensionCommandsData = {
15935
16286
  body?: never;
15936
16287
  path?: never;
@@ -17191,7 +17542,7 @@ export type GetHookCatalogData = {
17191
17542
  /**
17192
17543
  * Hook event name
17193
17544
  */
17194
- event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
17545
+ event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
17195
17546
  /**
17196
17547
  * Hook source
17197
17548
  */
@@ -17574,6 +17925,10 @@ export type ListMarketplaceData = {
17574
17925
  * Optional catalog search query
17575
17926
  */
17576
17927
  q?: string;
17928
+ /**
17929
+ * Optional CompozyOS category id
17930
+ */
17931
+ category?: string;
17577
17932
  /**
17578
17933
  * Maximum results from 1 to 100
17579
17934
  */
@@ -17717,6 +18072,55 @@ export type RefreshMarketplaceCatalogResponses = {
17717
18072
  200: MarketplaceRefreshResponse;
17718
18073
  };
17719
18074
  export type RefreshMarketplaceCatalogResponse = RefreshMarketplaceCatalogResponses[keyof RefreshMarketplaceCatalogResponses];
18075
+ export type GetMarketplaceSectionsData = {
18076
+ body?: never;
18077
+ path?: never;
18078
+ query?: {
18079
+ /**
18080
+ * Optional catalog search query
18081
+ */
18082
+ q?: string;
18083
+ /**
18084
+ * Entries per section from 1 to 12; default 6
18085
+ */
18086
+ per_section?: number;
18087
+ /**
18088
+ * Installed-state projection scope
18089
+ */
18090
+ scope?: "global" | "profile" | "workspace";
18091
+ /**
18092
+ * Required for profile scope
18093
+ */
18094
+ profile?: string;
18095
+ /**
18096
+ * Required for workspace scope
18097
+ */
18098
+ workspace_id?: string;
18099
+ };
18100
+ url: "/api/marketplace/sections";
18101
+ };
18102
+ export type GetMarketplaceSectionsErrors = {
18103
+ /**
18104
+ * Invalid request
18105
+ */
18106
+ 400: ErrorPayload;
18107
+ /**
18108
+ * Internal server error
18109
+ */
18110
+ 500: ErrorPayload;
18111
+ /**
18112
+ * Catalog dependency is not configured
18113
+ */
18114
+ 503: ErrorPayload;
18115
+ };
18116
+ export type GetMarketplaceSectionsError = GetMarketplaceSectionsErrors[keyof GetMarketplaceSectionsErrors];
18117
+ export type GetMarketplaceSectionsResponses = {
18118
+ /**
18119
+ * OK
18120
+ */
18121
+ 200: MarketplaceSectionsResponse;
18122
+ };
18123
+ export type GetMarketplaceSectionsResponse = GetMarketplaceSectionsResponses[keyof GetMarketplaceSectionsResponses];
17720
18124
  export type ListMarketplaceSourcesData = {
17721
18125
  body?: never;
17722
18126
  path?: never;
@@ -20758,6 +21162,10 @@ export type ListSessionsData = {
20758
21162
  * Exclude settled automation-run sessions; search, type, parent, root, archive=only and later=only reads ignore it
20759
21163
  */
20760
21164
  exclude_finished_automation?: boolean;
21165
+ /**
21166
+ * Exclude every automation job or trigger run session the operator has not prompted, whatever its state; search, type, parent, root, archive=only and later=only reads ignore it
21167
+ */
21168
+ exclude_automation?: boolean;
20761
21169
  /**
20762
21170
  * Filter by exact session state
20763
21171
  */
@@ -20959,6 +21367,10 @@ export type ListSessionFacetsData = {
20959
21367
  * Exclude settled automation-run sessions; search, type, parent, root, archive=only and later=only reads ignore it
20960
21368
  */
20961
21369
  exclude_finished_automation?: boolean;
21370
+ /**
21371
+ * Exclude every automation job or trigger run session the operator has not prompted from the counts, whatever its state; facets ignore the text query, so the counts keep excluding runs a search can list. type, parent, root, archive=only and later=only reads ignore it
21372
+ */
21373
+ exclude_automation?: boolean;
20962
21374
  /**
20963
21375
  * Workspace id or path
20964
21376
  */
@@ -28216,7 +28628,7 @@ export type GetHookRunsData = {
28216
28628
  /**
28217
28629
  * Hook event name
28218
28630
  */
28219
- event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
28631
+ event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
28220
28632
  /**
28221
28633
  * Hook execution outcome
28222
28634
  */
@@ -30801,6 +31213,10 @@ export type ListWorkspaceSessionsData = {
30801
31213
  * Exclude settled automation-run sessions; search, type, parent, root, archive=only and later=only reads ignore it
30802
31214
  */
30803
31215
  exclude_finished_automation?: boolean;
31216
+ /**
31217
+ * Exclude every automation job or trigger run session the operator has not prompted, whatever its state; search, type, parent, root, archive=only and later=only reads ignore it
31218
+ */
31219
+ exclude_automation?: boolean;
30804
31220
  /**
30805
31221
  * Filter by exact session state
30806
31222
  */