@compozy/client 0.5.1 → 0.5.2

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;
@@ -2836,9 +2849,11 @@ export type HeartbeatSourceScriptPayload = {
2836
2849
  last_modified?: string | null;
2837
2850
  line_count?: number;
2838
2851
  name: string;
2852
+ path?: string;
2839
2853
  sha256: string;
2840
2854
  };
2841
2855
  export type HeartbeatSourceStatus = {
2856
+ awaiting_approval?: boolean;
2842
2857
  error?: Error | null;
2843
2858
  failure_streak: number;
2844
2859
  id: string;
@@ -2848,6 +2863,8 @@ export type HeartbeatSourceStatus = {
2848
2863
  last_success_at?: string;
2849
2864
  next_poll_at?: string;
2850
2865
  script?: string;
2866
+ script_path?: string;
2867
+ script_sha256?: string;
2851
2868
  status: string;
2852
2869
  };
2853
2870
  export type HeartbeatStatusResponse = {
@@ -5002,10 +5019,18 @@ export type RestartActionStatus = {
5002
5019
  old_socket_path: string;
5003
5020
  old_started_at: string;
5004
5021
  operation_id: string;
5022
+ progress?: RestartProgress | null;
5005
5023
  started_at: string;
5006
5024
  status: "pending" | "stopping" | "waiting_release" | "starting" | "ready" | "failed";
5007
5025
  updated_at: string;
5008
5026
  };
5027
+ export type RestartProgress = {
5028
+ completed: number;
5029
+ phase: "migrating";
5030
+ stage: string;
5031
+ total: number;
5032
+ updated_at: string;
5033
+ };
5009
5034
  export type ResumeSessionFromLaterRequest = {
5010
5035
  with_children?: boolean;
5011
5036
  };
@@ -6204,6 +6229,7 @@ export type SessionPullRequestErrorPayload = {
6204
6229
  export type SessionPullRequestLookupPayload = {
6205
6230
  cause: string;
6206
6231
  observed_at: string | null;
6232
+ retry_after?: string | null;
6207
6233
  stale: boolean;
6208
6234
  state: "ok" | "pending" | "error" | "incomplete";
6209
6235
  };
@@ -8894,6 +8920,7 @@ export type ToolApprovalGrantListResponse = {
8894
8920
  total: number;
8895
8921
  };
8896
8922
  export type ToolApprovalGrantPayload = {
8923
+ access_scope?: string;
8897
8924
  agent_name?: string;
8898
8925
  created_at: string;
8899
8926
  decision: "allow" | "reject";
@@ -11915,6 +11942,62 @@ export type CreateAgentResponses = {
11915
11942
  201: AgentResponse;
11916
11943
  };
11917
11944
  export type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
11945
+ export type BatchAgentActivityData = {
11946
+ /**
11947
+ * JSON request body
11948
+ */
11949
+ body: AgentActivityBatchRequest;
11950
+ path?: never;
11951
+ query?: {
11952
+ /**
11953
+ * Act as this profile by name
11954
+ */
11955
+ profile?: string;
11956
+ };
11957
+ url: "/api/agents/activity";
11958
+ };
11959
+ export type BatchAgentActivityErrors = {
11960
+ /**
11961
+ * Invalid profile selection
11962
+ */
11963
+ 400: ProfileErrorPayload;
11964
+ /**
11965
+ * Request failed
11966
+ */
11967
+ 403: ErrorPayload;
11968
+ /**
11969
+ * Request failed
11970
+ */
11971
+ 404: ErrorPayload;
11972
+ /**
11973
+ * Request failed
11974
+ */
11975
+ 409: ErrorPayload;
11976
+ /**
11977
+ * Request failed
11978
+ */
11979
+ 422: ErrorPayload;
11980
+ /**
11981
+ * Request failed
11982
+ */
11983
+ 429: ErrorPayload;
11984
+ /**
11985
+ * Request failed
11986
+ */
11987
+ 500: ErrorPayload;
11988
+ /**
11989
+ * Request failed
11990
+ */
11991
+ 503: ErrorPayload;
11992
+ };
11993
+ export type BatchAgentActivityError = BatchAgentActivityErrors[keyof BatchAgentActivityErrors];
11994
+ export type BatchAgentActivityResponses = {
11995
+ /**
11996
+ * Scoped activities in request order
11997
+ */
11998
+ 200: AgentActivityBatchResponse;
11999
+ };
12000
+ export type BatchAgentActivityResponse = BatchAgentActivityResponses[keyof BatchAgentActivityResponses];
11918
12001
  export type ListAgentsAggregateData = {
11919
12002
  body?: never;
11920
12003
  path?: never;