@compozy/client 0.5.1 → 0.5.3

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.
@@ -76,11 +76,22 @@ export type AgentACPOptionSelection = {
76
76
  id: string;
77
77
  value_id?: string;
78
78
  };
79
+ export type AgentActivityBatchRequest = {
80
+ days?: number;
81
+ items: Array<AgentActivitySelection>;
82
+ };
83
+ export type AgentActivityBatchResponse = {
84
+ activities: Array<AgentActivityResponse>;
85
+ };
79
86
  export type AgentActivityResponse = {
80
87
  busy_by_hour: Array<ActivityHour>;
81
88
  cost_by_project: Array<ActivityCost>;
82
89
  reports_by_day: Array<ActivityDay>;
83
90
  };
91
+ export type AgentActivitySelection = {
92
+ name: string;
93
+ workspaces: Array<string>;
94
+ };
84
95
  export type AgentCapabilityPayload = {
85
96
  id: string;
86
97
  source?: string;
@@ -152,6 +163,7 @@ export type AgentDraftRuntime = {
152
163
  export type AgentEffectiveRuntimePayload = {
153
164
  acp_options?: Array<AgentACPOptionSelection>;
154
165
  model?: string;
166
+ permissions?: string;
155
167
  provider: string;
156
168
  reasoning_effort?: string;
157
169
  session_env?: {
@@ -163,6 +175,7 @@ export type AgentEffectiveRuntimePayload = {
163
175
  };
164
176
  export type AgentEffectiveRuntimeSources = {
165
177
  model?: string;
178
+ permissions?: string;
166
179
  provider: string;
167
180
  reasoning_effort?: string;
168
181
  speed?: string;
@@ -347,17 +360,40 @@ export type AgentLimitsPayload = {
347
360
  max_spawn_depth: number;
348
361
  spawn_blocked_reason?: string;
349
362
  };
363
+ export type AgentMCPServerInput = {
364
+ args?: Array<string>;
365
+ auth?: SettingsMCPAuthConfigPayload | null;
366
+ command?: string;
367
+ env?: {
368
+ [key: string]: string;
369
+ };
370
+ name: string;
371
+ reference?: boolean;
372
+ secret_env?: {
373
+ [key: string]: string;
374
+ };
375
+ secret_headers?: {
376
+ [key: string]: string;
377
+ };
378
+ transport?: string;
379
+ url?: string;
380
+ };
350
381
  export type AgentMCPServerJSON = {
351
382
  args?: Array<string>;
352
383
  auth?: SettingsMCPAuthConfigViewPayload | null;
384
+ broken_reference?: boolean;
353
385
  command?: string;
354
386
  env?: {
355
387
  [key: string]: string;
356
388
  };
357
389
  name: string;
390
+ reference?: boolean;
358
391
  secret_env?: {
359
392
  [key: string]: string;
360
393
  };
394
+ secret_headers?: {
395
+ [key: string]: string;
396
+ };
361
397
  transport?: string;
362
398
  url?: string;
363
399
  };
@@ -972,7 +1008,7 @@ export type BulkForceTaskRunResponse = {
972
1008
  export type BusyInputState = {
973
1009
  default_mode: string;
974
1010
  steer_capability: "steer_ext" | "concurrent_prompt" | "none";
975
- steer_delivery?: "injected" | "pending_injection" | "interrupt_fallback";
1011
+ steer_delivery?: "injected" | "pending_injection" | "pending_boundary" | "after_turn" | "interrupt_fallback";
976
1012
  };
977
1013
  export type CancelTaskRequest = {
978
1014
  metadata?: unknown;
@@ -1408,10 +1444,11 @@ export type CreateAgentPayload = {
1408
1444
  display_name?: string | null;
1409
1445
  fallback_chain?: Array<AgentFallbackRoutePayload>;
1410
1446
  /**
1411
- * Agent kind: on_demand (default) or always_on; fixed at creation. stays_on is the deprecated v0.5.0 spelling of always_on and is removed in v0.5.2.
1447
+ * Agent kind: on_demand (default) or always_on; fixed at creation.
1412
1448
  */
1413
- kind?: "on_demand" | "always_on" | "stays_on";
1449
+ kind?: "on_demand" | "always_on";
1414
1450
  label?: string;
1451
+ mcp_servers?: Array<AgentMCPServerInput>;
1415
1452
  model?: string;
1416
1453
  name: string;
1417
1454
  permission_rules?: Array<AgentPermissionRulePayload>;
@@ -1698,9 +1735,9 @@ export type DuplicateAgentOverrides = {
1698
1735
  description?: string | null;
1699
1736
  display_name?: string | null;
1700
1737
  /**
1701
- * Agent kind: on_demand (default) or always_on; fixed at creation. stays_on is the deprecated v0.5.0 spelling of always_on and is removed in v0.5.2.
1738
+ * Agent kind: on_demand (default) or always_on; fixed at creation.
1702
1739
  */
1703
- kind?: "on_demand" | "always_on" | "stays_on";
1740
+ kind?: "on_demand" | "always_on";
1704
1741
  model?: string;
1705
1742
  permission_rules?: Array<AgentPermissionRulePayload>;
1706
1743
  permissions?: "deny-all" | "approve-reads" | "approve-edits" | "auto" | "approve-all";
@@ -1719,9 +1756,9 @@ export type DuplicateAgentOverrides = {
1719
1756
  };
1720
1757
  export type DuplicateAgentRequest = {
1721
1758
  /**
1722
- * Agent kind: on_demand (default) or always_on; fixed at creation. stays_on is the deprecated v0.5.0 spelling of always_on and is removed in v0.5.2.
1759
+ * Agent kind: on_demand (default) or always_on; fixed at creation.
1723
1760
  */
1724
- kind?: "on_demand" | "always_on" | "stays_on";
1761
+ kind?: "on_demand" | "always_on";
1725
1762
  name: string;
1726
1763
  overrides?: DuplicateAgentOverrides | null;
1727
1764
  scope?: "workspace" | "global";
@@ -2836,9 +2873,11 @@ export type HeartbeatSourceScriptPayload = {
2836
2873
  last_modified?: string | null;
2837
2874
  line_count?: number;
2838
2875
  name: string;
2876
+ path?: string;
2839
2877
  sha256: string;
2840
2878
  };
2841
2879
  export type HeartbeatSourceStatus = {
2880
+ awaiting_approval?: boolean;
2842
2881
  error?: Error | null;
2843
2882
  failure_streak: number;
2844
2883
  id: string;
@@ -2848,6 +2887,8 @@ export type HeartbeatSourceStatus = {
2848
2887
  last_success_at?: string;
2849
2888
  next_poll_at?: string;
2850
2889
  script?: string;
2890
+ script_path?: string;
2891
+ script_sha256?: string;
2851
2892
  status: string;
2852
2893
  };
2853
2894
  export type HeartbeatStatusResponse = {
@@ -4723,6 +4764,7 @@ export type ProviderUsageTarget = {
4723
4764
  account: ProviderUsageAccount | null;
4724
4765
  balances: Array<ProviderUsageBalance>;
4725
4766
  checked_at: string | null;
4767
+ collector_id?: string;
4726
4768
  confidence: string;
4727
4769
  error: ProviderUsageError | null;
4728
4770
  measured_at: string | null;
@@ -4781,6 +4823,7 @@ export type PutSettingsHookRequest = {
4781
4823
  };
4782
4824
  export type PutSettingsMCPServerRequest = {
4783
4825
  preserve_env?: Array<string>;
4826
+ preserve_headers?: boolean;
4784
4827
  preserve_secrets?: SettingsMCPSecretPreservationPayload | null;
4785
4828
  secret_values?: SettingsMCPSecretValuesPayload | null;
4786
4829
  server: SettingsMCPServerPayload;
@@ -5002,10 +5045,18 @@ export type RestartActionStatus = {
5002
5045
  old_socket_path: string;
5003
5046
  old_started_at: string;
5004
5047
  operation_id: string;
5048
+ progress?: RestartProgress | null;
5005
5049
  started_at: string;
5006
5050
  status: "pending" | "stopping" | "waiting_release" | "starting" | "ready" | "failed";
5007
5051
  updated_at: string;
5008
5052
  };
5053
+ export type RestartProgress = {
5054
+ completed: number;
5055
+ phase: "migrating";
5056
+ stage: string;
5057
+ total: number;
5058
+ updated_at: string;
5059
+ };
5009
5060
  export type ResumeSessionFromLaterRequest = {
5010
5061
  with_children?: boolean;
5011
5062
  };
@@ -5451,7 +5502,7 @@ export type SendPromptResultPayload = {
5451
5502
  replayed: boolean;
5452
5503
  reply_watch?: ReplyWatchRefPayload | null;
5453
5504
  status: string;
5454
- steer_delivery?: "injected" | "pending_injection" | "interrupt_fallback";
5505
+ steer_delivery?: "injected" | "pending_injection" | "pending_boundary" | "after_turn" | "interrupt_fallback";
5455
5506
  target_session_id?: string;
5456
5507
  target_workspace_id?: string;
5457
5508
  turn_id?: string;
@@ -5925,7 +5976,7 @@ export type SessionInputPayload = {
5925
5976
  session_id: string;
5926
5977
  skill_invocations?: Array<SessionSkillInvocationPayload>;
5927
5978
  status: "queued" | "dispatching" | "sent" | "failed" | "canceled";
5928
- steer_delivery?: "injected" | "pending_injection" | "interrupt_fallback";
5979
+ steer_delivery?: "injected" | "pending_injection" | "pending_boundary" | "after_turn" | "interrupt_fallback";
5929
5980
  target_turn_id?: string;
5930
5981
  text: string;
5931
5982
  };
@@ -6204,6 +6255,7 @@ export type SessionPullRequestErrorPayload = {
6204
6255
  export type SessionPullRequestLookupPayload = {
6205
6256
  cause: string;
6206
6257
  observed_at: string | null;
6258
+ retry_after?: string | null;
6207
6259
  stale: boolean;
6208
6260
  state: "ok" | "pending" | "error" | "incomplete";
6209
6261
  };
@@ -6798,6 +6850,7 @@ export type SettingsMCPServerItemPayload = {
6798
6850
  catalog_version?: string;
6799
6851
  command?: string;
6800
6852
  env_keys?: Array<string>;
6853
+ headers_configured?: boolean;
6801
6854
  name: string;
6802
6855
  override?: SettingsMCPExtensionOverridePayload | null;
6803
6856
  owner?: string;
@@ -8894,6 +8947,7 @@ export type ToolApprovalGrantListResponse = {
8894
8947
  total: number;
8895
8948
  };
8896
8949
  export type ToolApprovalGrantPayload = {
8950
+ access_scope?: string;
8897
8951
  agent_name?: string;
8898
8952
  created_at: string;
8899
8953
  decision: "allow" | "reject";
@@ -9851,6 +9905,72 @@ export type WorktreesResponse = {
9851
9905
  repo: WorktreeRepoPayload;
9852
9906
  worktrees: Array<WorktreePayload>;
9853
9907
  };
9908
+ export type AgentMCPServerInputWritable = {
9909
+ args?: Array<string>;
9910
+ auth?: SettingsMCPAuthConfigPayload | null;
9911
+ command?: string;
9912
+ env?: {
9913
+ [key: string]: string;
9914
+ };
9915
+ name: string;
9916
+ reference?: boolean;
9917
+ secret_env?: {
9918
+ [key: string]: string;
9919
+ };
9920
+ secret_env_values?: {
9921
+ [key: string]: string;
9922
+ };
9923
+ secret_header_values?: {
9924
+ [key: string]: string;
9925
+ };
9926
+ secret_headers?: {
9927
+ [key: string]: string;
9928
+ };
9929
+ transport?: string;
9930
+ url?: string;
9931
+ };
9932
+ export type CreateAgentPayloadWritable = {
9933
+ acp_options?: Array<AgentACPOptionSelection>;
9934
+ appearance?: {
9935
+ [key: string]: unknown;
9936
+ };
9937
+ category_path?: Array<string>;
9938
+ command?: string;
9939
+ deny_tools?: Array<string>;
9940
+ description?: string | null;
9941
+ display_name?: string | null;
9942
+ fallback_chain?: Array<AgentFallbackRoutePayload>;
9943
+ /**
9944
+ * Agent kind: on_demand (default) or always_on; fixed at creation.
9945
+ */
9946
+ kind?: "on_demand" | "always_on";
9947
+ label?: string;
9948
+ mcp_servers?: Array<AgentMCPServerInputWritable>;
9949
+ model?: string;
9950
+ name: string;
9951
+ permission_rules?: Array<AgentPermissionRulePayload>;
9952
+ permissions?: "deny-all" | "approve-reads" | "approve-edits" | "auto" | "approve-all";
9953
+ prompt: string;
9954
+ provider?: string;
9955
+ reasoning_effort?: string;
9956
+ resolved_appearance?: {
9957
+ [key: string]: unknown;
9958
+ };
9959
+ session_approval?: string;
9960
+ session_env?: {
9961
+ [key: string]: SessionEnvBindingPayload;
9962
+ };
9963
+ skills?: CreateAgentSkillsConfig | null;
9964
+ speed?: "normal" | "fast";
9965
+ tools?: Array<string>;
9966
+ toolsets?: Array<string>;
9967
+ workspace_access?: string;
9968
+ };
9969
+ export type CreateAgentRequestWritable = {
9970
+ agent: CreateAgentPayloadWritable;
9971
+ scope: "workspace" | "global";
9972
+ workspace?: string;
9973
+ };
9854
9974
  export type InstallExtensionRequestWritable = {
9855
9975
  allow_unverified?: boolean;
9856
9976
  asset?: string;
@@ -9878,6 +9998,11 @@ export type InstallExtensionRequestWritable = {
9878
9998
  */
9879
9999
  workspace_id?: string;
9880
10000
  };
10001
+ export type UpdateAgentRequestWritable = {
10002
+ agent: CreateAgentPayloadWritable;
10003
+ expected_digest: string;
10004
+ workspace?: string;
10005
+ };
9881
10006
  export type UpdateExtensionRequestWritable = {
9882
10007
  allow_unverified?: boolean;
9883
10008
  check_only?: boolean;
@@ -11867,7 +11992,7 @@ export type CreateAgentData = {
11867
11992
  /**
11868
11993
  * JSON request body
11869
11994
  */
11870
- body: CreateAgentRequest;
11995
+ body: CreateAgentRequestWritable;
11871
11996
  path?: never;
11872
11997
  query?: {
11873
11998
  /**
@@ -11915,6 +12040,62 @@ export type CreateAgentResponses = {
11915
12040
  201: AgentResponse;
11916
12041
  };
11917
12042
  export type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
12043
+ export type BatchAgentActivityData = {
12044
+ /**
12045
+ * JSON request body
12046
+ */
12047
+ body: AgentActivityBatchRequest;
12048
+ path?: never;
12049
+ query?: {
12050
+ /**
12051
+ * Act as this profile by name
12052
+ */
12053
+ profile?: string;
12054
+ };
12055
+ url: "/api/agents/activity";
12056
+ };
12057
+ export type BatchAgentActivityErrors = {
12058
+ /**
12059
+ * Invalid profile selection
12060
+ */
12061
+ 400: ProfileErrorPayload;
12062
+ /**
12063
+ * Request failed
12064
+ */
12065
+ 403: ErrorPayload;
12066
+ /**
12067
+ * Request failed
12068
+ */
12069
+ 404: ErrorPayload;
12070
+ /**
12071
+ * Request failed
12072
+ */
12073
+ 409: ErrorPayload;
12074
+ /**
12075
+ * Request failed
12076
+ */
12077
+ 422: ErrorPayload;
12078
+ /**
12079
+ * Request failed
12080
+ */
12081
+ 429: ErrorPayload;
12082
+ /**
12083
+ * Request failed
12084
+ */
12085
+ 500: ErrorPayload;
12086
+ /**
12087
+ * Request failed
12088
+ */
12089
+ 503: ErrorPayload;
12090
+ };
12091
+ export type BatchAgentActivityError = BatchAgentActivityErrors[keyof BatchAgentActivityErrors];
12092
+ export type BatchAgentActivityResponses = {
12093
+ /**
12094
+ * Scoped activities in request order
12095
+ */
12096
+ 200: AgentActivityBatchResponse;
12097
+ };
12098
+ export type BatchAgentActivityResponse = BatchAgentActivityResponses[keyof BatchAgentActivityResponses];
11918
12099
  export type ListAgentsAggregateData = {
11919
12100
  body?: never;
11920
12101
  path?: never;
@@ -12197,7 +12378,7 @@ export type UpdateAgentData = {
12197
12378
  /**
12198
12379
  * JSON request body
12199
12380
  */
12200
- body: UpdateAgentRequest;
12381
+ body: UpdateAgentRequestWritable;
12201
12382
  path: {
12202
12383
  /**
12203
12384
  * Agent name