@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.
@@ -5309,7 +5309,7 @@ export interface paths {
5309
5309
  };
5310
5310
  get?: never;
5311
5311
  put?: never;
5312
- /** Archive a stopped session */
5312
+ /** Archive a stopped session, or stop and archive a live session with stop=true */
5313
5313
  post: operations["archiveSession"];
5314
5314
  delete?: never;
5315
5315
  options?: never;
@@ -5692,6 +5692,24 @@ export interface paths {
5692
5692
  patch?: never;
5693
5693
  trace?: never;
5694
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
+ };
5695
5713
  "/api/workspaces/{workspace_id}/sessions/{session_id}/presence": {
5696
5714
  parameters: {
5697
5715
  query?: never;
@@ -13819,6 +13837,7 @@ export interface components {
13819
13837
  generation?: number;
13820
13838
  last_known?: components["schemas"]["RuntimeSelectionPayload"] | null;
13821
13839
  recovery?: components["schemas"]["SessionRuntimeRecoveryPayload"] | null;
13840
+ requested?: components["schemas"]["PromptRuntimeSelectionPayload"] | null;
13822
13841
  selected?: components["schemas"]["PromptRuntimeSelectionPayload"] | null;
13823
13842
  /** Format: int64 */
13824
13843
  selection_revision: number;
@@ -13955,6 +13974,7 @@ export interface components {
13955
13974
  total_tokens?: number | null;
13956
13975
  /** Format: int64 */
13957
13976
  turn_count: number;
13977
+ work_time?: components["schemas"]["SessionWorkTimePayload"] | null;
13958
13978
  };
13959
13979
  SessionUsageResponse: {
13960
13980
  usage: components["schemas"]["SessionUsagePayload"];
@@ -13989,6 +14009,13 @@ export interface components {
13989
14009
  /** Format: int64 */
13990
14010
  waited_ms: number;
13991
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
+ };
13992
14019
  SessionWorkspaceFacetsPayload: {
13993
14020
  facets: components["schemas"]["SessionCatalogFacetsPayload"];
13994
14021
  workspace_id: string;
@@ -14000,6 +14027,9 @@ export interface components {
14000
14027
  SetExtensionSecretsRequest: {
14001
14028
  bindings: components["schemas"]["ExtensionSecretBindingInput"][];
14002
14029
  };
14030
+ SetSessionParentRequest: {
14031
+ parent_session_id: string;
14032
+ };
14003
14033
  SetSessionRuntimeRequest: {
14004
14034
  /** Format: int64 */
14005
14035
  expected_revision: number | null;
@@ -17634,6 +17664,7 @@ export interface components {
17634
17664
  | "recording_already_started"
17635
17665
  | "recording_not_active"
17636
17666
  | "recording_unavailable"
17667
+ | "session_archive_stop_failed"
17637
17668
  | "session_busy"
17638
17669
  | "slow_consumer"
17639
17670
  | "subscriber_limit_reached"
@@ -17826,6 +17857,7 @@ export interface components {
17826
17857
  | "recording_already_started"
17827
17858
  | "recording_not_active"
17828
17859
  | "recording_unavailable"
17860
+ | "session_archive_stop_failed"
17829
17861
  | "session_busy"
17830
17862
  | "slow_consumer"
17831
17863
  | "subscriber_limit_reached"
@@ -45916,6 +45948,8 @@ export interface operations {
45916
45948
  archiveSession: {
45917
45949
  parameters: {
45918
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;
45919
45953
  /** @description Act as this profile by name */
45920
45954
  profile?: string;
45921
45955
  };
@@ -45939,6 +45973,15 @@ export interface operations {
45939
45973
  "application/json": components["schemas"]["SessionResponse"];
45940
45974
  };
45941
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
+ };
45942
45985
  /** @description Session not found */
45943
45986
  404: {
45944
45987
  headers: {
@@ -45948,7 +45991,7 @@ export interface operations {
45948
45991
  "application/json": components["schemas"]["ErrorPayload"];
45949
45992
  };
45950
45993
  };
45951
- /** @description Session must be stopped before archiving */
45994
+ /** @description Session must be stopped before archiving, or the requested stop failed */
45952
45995
  409: {
45953
45996
  headers: {
45954
45997
  [name: string]: unknown;
@@ -47534,6 +47577,157 @@ export interface operations {
47534
47577
  };
47535
47578
  };
47536
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
+ };
47537
47731
  updateSessionPresence: {
47538
47732
  parameters: {
47539
47733
  query?: never;