@compozy/client 0.3.0-beta.38 → 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.
@@ -5596,6 +5596,7 @@ export type SessionRuntimePayload = {
5596
5596
  generation?: number;
5597
5597
  last_known?: RuntimeSelectionPayload | null;
5598
5598
  recovery?: SessionRuntimeRecoveryPayload | null;
5599
+ requested?: PromptRuntimeSelectionPayload | null;
5599
5600
  selected?: PromptRuntimeSelectionPayload | null;
5600
5601
  selection_revision: number;
5601
5602
  status: string;
@@ -5689,6 +5690,7 @@ export type SessionUsagePayload = {
5689
5690
  total_cost?: number | null;
5690
5691
  total_tokens?: number | null;
5691
5692
  turn_count: number;
5693
+ work_time?: SessionWorkTimePayload | null;
5692
5694
  };
5693
5695
  export type SessionUsageResponse = {
5694
5696
  usage: SessionUsagePayload;
@@ -5718,6 +5720,11 @@ export type SessionWaitResponse = {
5718
5720
  until?: Array<string>;
5719
5721
  waited_ms: number;
5720
5722
  };
5723
+ export type SessionWorkTimePayload = {
5724
+ active_duration_ms: number;
5725
+ last_completed_turn_id?: string;
5726
+ turn_count: number;
5727
+ };
5721
5728
  export type SessionWorkspaceFacetsPayload = {
5722
5729
  facets: SessionCatalogFacetsPayload;
5723
5730
  workspace_id: string;
@@ -5729,6 +5736,9 @@ export type SetExtensionEnablementRequest = {
5729
5736
  export type SetExtensionSecretsRequest = {
5730
5737
  bindings: Array<ExtensionSecretBindingInput>;
5731
5738
  };
5739
+ export type SetSessionParentRequest = {
5740
+ parent_session_id: string;
5741
+ };
5732
5742
  export type SetSessionRuntimeRequest = {
5733
5743
  expected_revision: number | null;
5734
5744
  runtime: PromptRuntimeSelectionPayload;
@@ -8239,7 +8249,7 @@ export type ToolCallEventPayload = {
8239
8249
  destructive: boolean;
8240
8250
  display_title?: string;
8241
8251
  duration_ms?: number;
8242
- error_code?: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_busy" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable";
8252
+ error_code?: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable";
8243
8253
  input_digest?: string;
8244
8254
  kind: "tool.call_started" | "tool.call_completed" | "tool.call_failed" | "tool.call_denied" | "tool.result_truncated";
8245
8255
  open_world: boolean;
@@ -8291,7 +8301,7 @@ export type ToolDescriptorPayload = {
8291
8301
  visibility: "internal" | "operator" | "session" | "model";
8292
8302
  };
8293
8303
  export type ToolErrorPayload = {
8294
- code: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_busy" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable";
8304
+ code: "approval_rejected" | "compaction_unsupported" | "generation_fenced" | "input_request_already_answered" | "input_request_limit_reached" | "input_request_not_found" | "input_request_requires_hidden_input" | "input_request_superseded" | "invalid_cwd" | "journal_unavailable" | "message_hop_limit" | "message_rate_limited" | "model_not_found" | "profile_archived" | "profile_selection_conflict" | "profile_session_conflict" | "profile_unavailable" | "reasoning_effort_unsupported" | "recording_already_started" | "recording_not_active" | "recording_unavailable" | "session_archive_stop_failed" | "session_busy" | "slow_consumer" | "subscriber_limit_reached" | "terminal_exited" | "terminal_expired" | "terminal_interactive_unavailable" | "terminal_limit_reached" | "terminal_not_found" | "terminal_not_interactive" | "terminal_requires_workspace" | "ticket_expired" | "ticket_invalid" | "timeout_out_of_range" | "tool_approval_required" | "tool_backend_failed" | "tool_canceled" | "tool_conflict" | "tool_denied" | "tool_invalid_input" | "tool_not_found" | "tool_result_persistence_failed" | "tool_result_too_large" | "tool_timed_out" | "tool_unavailable";
8295
8305
  details?: {
8296
8306
  [key: string]: unknown;
8297
8307
  };
@@ -26872,6 +26882,10 @@ export type ArchiveSessionData = {
26872
26882
  session_id: string;
26873
26883
  };
26874
26884
  query?: {
26885
+ /**
26886
+ * Stop a live session through the normal stop path before archiving it; a failed stop leaves it unarchived
26887
+ */
26888
+ stop?: boolean;
26875
26889
  /**
26876
26890
  * Act as this profile by name
26877
26891
  */
@@ -26880,12 +26894,16 @@ export type ArchiveSessionData = {
26880
26894
  url: "/api/workspaces/{workspace_id}/sessions/{session_id}/archive";
26881
26895
  };
26882
26896
  export type ArchiveSessionErrors = {
26897
+ /**
26898
+ * Invalid archive request
26899
+ */
26900
+ 400: ErrorPayload;
26883
26901
  /**
26884
26902
  * Session not found
26885
26903
  */
26886
26904
  404: ErrorPayload;
26887
26905
  /**
26888
- * Session must be stopped before archiving
26906
+ * Session must be stopped before archiving, or the requested stop failed
26889
26907
  */
26890
26908
  409: ErrorPayload;
26891
26909
  /**
@@ -28009,6 +28027,109 @@ export type MoveSessionResponses = {
28009
28027
  200: SessionFoldersResponse;
28010
28028
  };
28011
28029
  export type MoveSessionResponse = MoveSessionResponses[keyof MoveSessionResponses];
28030
+ export type ClearSessionParentData = {
28031
+ body?: never;
28032
+ path: {
28033
+ /**
28034
+ * Workspace id
28035
+ */
28036
+ workspace_id: string;
28037
+ /**
28038
+ * Session id
28039
+ */
28040
+ session_id: string;
28041
+ };
28042
+ query?: {
28043
+ /**
28044
+ * Act as this profile by name
28045
+ */
28046
+ profile?: string;
28047
+ };
28048
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/parent";
28049
+ };
28050
+ export type ClearSessionParentErrors = {
28051
+ /**
28052
+ * Invalid reparent request
28053
+ */
28054
+ 400: ErrorPayload;
28055
+ /**
28056
+ * Session not found
28057
+ */
28058
+ 404: ErrorPayload;
28059
+ /**
28060
+ * Reparent refused by a lineage rule; code names the rule
28061
+ */
28062
+ 409: ErrorPayload;
28063
+ /**
28064
+ * Internal server error
28065
+ */
28066
+ 500: ErrorPayload;
28067
+ /**
28068
+ * Session reparent unavailable
28069
+ */
28070
+ 503: ErrorPayload;
28071
+ };
28072
+ export type ClearSessionParentError = ClearSessionParentErrors[keyof ClearSessionParentErrors];
28073
+ export type ClearSessionParentResponses = {
28074
+ /**
28075
+ * OK
28076
+ */
28077
+ 200: SessionResponse;
28078
+ };
28079
+ export type ClearSessionParentResponse = ClearSessionParentResponses[keyof ClearSessionParentResponses];
28080
+ export type SetSessionParentData = {
28081
+ /**
28082
+ * JSON request body
28083
+ */
28084
+ body: SetSessionParentRequest;
28085
+ path: {
28086
+ /**
28087
+ * Workspace id
28088
+ */
28089
+ workspace_id: string;
28090
+ /**
28091
+ * Session id
28092
+ */
28093
+ session_id: string;
28094
+ };
28095
+ query?: {
28096
+ /**
28097
+ * Act as this profile by name
28098
+ */
28099
+ profile?: string;
28100
+ };
28101
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/parent";
28102
+ };
28103
+ export type SetSessionParentErrors = {
28104
+ /**
28105
+ * Invalid reparent request
28106
+ */
28107
+ 400: ErrorPayload;
28108
+ /**
28109
+ * Session not found
28110
+ */
28111
+ 404: ErrorPayload;
28112
+ /**
28113
+ * Reparent refused by a lineage rule; code names the rule
28114
+ */
28115
+ 409: ErrorPayload;
28116
+ /**
28117
+ * Internal server error
28118
+ */
28119
+ 500: ErrorPayload;
28120
+ /**
28121
+ * Session reparent unavailable
28122
+ */
28123
+ 503: ErrorPayload;
28124
+ };
28125
+ export type SetSessionParentError = SetSessionParentErrors[keyof SetSessionParentErrors];
28126
+ export type SetSessionParentResponses = {
28127
+ /**
28128
+ * OK
28129
+ */
28130
+ 200: SessionResponse;
28131
+ };
28132
+ export type SetSessionParentResponse = SetSessionParentResponses[keyof SetSessionParentResponses];
28012
28133
  export type UpdateSessionPresenceData = {
28013
28134
  /**
28014
28135
  * JSON request body