@compozy/client 0.7.5 → 0.7.7

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.
@@ -248,6 +248,20 @@ export type AgentInstanceCreateRequest = {
248
248
  agent: string;
249
249
  workspace: string;
250
250
  };
251
+ export type AgentInstanceDailyBudgetInput = {
252
+ tokens?: number | null;
253
+ usd?: number | null;
254
+ };
255
+ export type AgentInstanceDailyBudgetLimits = {
256
+ tokens?: number | null;
257
+ usd?: number | null;
258
+ };
259
+ export type AgentInstanceDailyBudgetUsage = {
260
+ day: string;
261
+ has_unpriced_usage: boolean;
262
+ known_usd: string;
263
+ tokens: number;
264
+ };
251
265
  export type AgentInstanceListResponse = {
252
266
  active_count: number;
253
267
  instances: Array<AgentInstancePayload>;
@@ -274,6 +288,8 @@ export type AgentInstancePayload = {
274
288
  checks_enabled: boolean;
275
289
  created: boolean;
276
290
  created_at: string;
291
+ daily_budget?: AgentInstanceDailyBudgetLimits | null;
292
+ daily_budget_usage?: AgentInstanceDailyBudgetUsage | null;
277
293
  failure_streak: number;
278
294
  fatigue_limit: number;
279
295
  held_wakes: number;
@@ -381,8 +397,15 @@ export type AgentInstanceResponse = {
381
397
  export type AgentInstanceSeenResponse = {
382
398
  last_seen_at: string;
383
399
  };
384
- export type AgentInstanceUpdateRequest = {
385
- checks_enabled: boolean | null;
400
+ export type AgentInstanceUpdateRequest = ({
401
+ checks_enabled: boolean;
402
+ daily_budget?: null;
403
+ } | {
404
+ checks_enabled?: null;
405
+ daily_budget: AgentInstanceDailyBudgetInput;
406
+ }) & {
407
+ checks_enabled?: boolean | null;
408
+ daily_budget?: AgentInstanceDailyBudgetInput | null;
386
409
  };
387
410
  export type AgentLimitsPayload = {
388
411
  can_spawn_children: boolean;
@@ -2193,9 +2216,25 @@ export type ExtensionProvenanceResponse = {
2193
2216
  export type ExtensionRemoveResponse = {
2194
2217
  extension: ManagedExtensionRemovePayload;
2195
2218
  };
2219
+ export type ExtensionRemovedBuiltinPayload = {
2220
+ name: string;
2221
+ removed_at: string;
2222
+ removed_by: string;
2223
+ };
2224
+ export type ExtensionRemovedBuiltinsResponse = {
2225
+ removed: Array<ExtensionRemovedBuiltinPayload>;
2226
+ };
2196
2227
  export type ExtensionResponse = {
2197
2228
  extension: ExtensionPayload;
2198
2229
  };
2230
+ export type ExtensionRestorePayload = {
2231
+ enabled: boolean;
2232
+ name: string;
2233
+ path: string;
2234
+ source: string;
2235
+ status: string;
2236
+ version: string;
2237
+ };
2199
2238
  export type ExtensionSecretBindingInput = {
2200
2239
  env_name: string;
2201
2240
  header_name?: string;
@@ -2531,11 +2570,13 @@ export type GatewayIssuedCredentialPayload = {
2531
2570
  export type GatewayPairingArtifactPayload = {
2532
2571
  artifact: string;
2533
2572
  expires_at: string;
2573
+ manual_code: string;
2534
2574
  };
2535
2575
  export type GatewayPairingRedeemRequest = {
2536
2576
  actor_kind: string;
2537
- artifact: string;
2577
+ artifact?: string;
2538
2578
  credential?: string;
2579
+ manual_code?: string;
2539
2580
  name: string;
2540
2581
  };
2541
2582
  export type GatewayProviderEnableRequest = {
@@ -2557,6 +2598,11 @@ export type GatewayRefusalPayload = {
2557
2598
  cause: string;
2558
2599
  fix: string;
2559
2600
  };
2601
+ export type GatewayRemovedDevicePayload = {
2602
+ canceled: number;
2603
+ device: GatewayDevicePayload;
2604
+ revoked: boolean;
2605
+ };
2560
2606
  export type GatewayRevokePayload = {
2561
2607
  canceled: number;
2562
2608
  changed: boolean;
@@ -4241,8 +4287,10 @@ export type ManagedExtensionRemovePayload = {
4241
4287
  data_path?: string;
4242
4288
  name: string;
4243
4289
  path: string;
4290
+ permanent: boolean;
4244
4291
  quarantine_path?: string;
4245
4292
  status: string;
4293
+ tombstoned_at: string;
4246
4294
  warnings?: Array<DiagnosticItem>;
4247
4295
  };
4248
4296
  export type ManagedExtensionUpdatePayload = {
@@ -4659,6 +4707,11 @@ export type OpenAIModelPayload = {
4659
4707
  export type OpenAppEffect = {
4660
4708
  app: string;
4661
4709
  };
4710
+ export type OpenSessionSideRequest = {
4711
+ idempotency_key: string;
4712
+ message: string;
4713
+ name?: string;
4714
+ };
4662
4715
  export type OpenURLEffect = {
4663
4716
  url: string;
4664
4717
  };
@@ -5345,6 +5398,7 @@ export type ReorderSessionFoldersRequest = {
5345
5398
  };
5346
5399
  export type ReorderSessionsRequest = {
5347
5400
  folder_id?: string;
5401
+ pinned?: boolean;
5348
5402
  session_ids: Array<string>;
5349
5403
  };
5350
5404
  export type ReorderWorkspaceFoldersRequest = {
@@ -5946,6 +6000,7 @@ export type SendPromptResultPayload = {
5946
6000
  queue_position: number;
5947
6001
  replayed: boolean;
5948
6002
  reply_watch?: ReplyWatchRefPayload | null;
6003
+ side?: SessionSideCommandResult | null;
5949
6004
  status: string;
5950
6005
  steer_delivery?: "injected" | "pending_injection" | "pending_boundary" | "after_turn" | "interrupt_fallback";
5951
6006
  target_session_id?: string;
@@ -6255,9 +6310,12 @@ export type SessionConversationRewindResponse = {
6255
6310
  };
6256
6311
  export type SessionDerivationPayload = {
6257
6312
  first_prompt: string;
6258
- kind: "" | "provenance" | "spawn" | "continue" | "fork" | "recovery";
6313
+ inherited_message_count?: number | null;
6314
+ kind: "" | "provenance" | "spawn" | "continue" | "fork" | "recovery" | "side";
6259
6315
  native_fork_error?: string;
6260
6316
  native_state?: string;
6317
+ replay_message_count?: number | null;
6318
+ replay_omitted_count?: number | null;
6261
6319
  seed: string;
6262
6320
  source_session_id: string;
6263
6321
  };
@@ -6286,6 +6344,7 @@ export type SessionDerivePreviewResponse = {
6286
6344
  cut?: SessionDeriveCutPayload | null;
6287
6345
  message_count: number;
6288
6346
  native_fork_possible: boolean;
6347
+ native_fork_refusal_reason?: string;
6289
6348
  omitted_count: number;
6290
6349
  replay_bytes: number;
6291
6350
  source_message_count: number;
@@ -6574,7 +6633,7 @@ export type SessionLaterPayload = {
6574
6633
  };
6575
6634
  export type SessionLineagePayload = {
6576
6635
  auto_stop_on_parent: boolean;
6577
- kind?: "" | "provenance" | "spawn" | "continue" | "fork" | "recovery";
6636
+ kind?: "" | "provenance" | "spawn" | "continue" | "fork" | "recovery" | "side";
6578
6637
  notify_creator: boolean;
6579
6638
  origin_agent_name?: string;
6580
6639
  origin_message_id?: string;
@@ -6697,6 +6756,7 @@ export type SessionPayload = {
6697
6756
  parent_title?: string;
6698
6757
  pending_interactions: Array<PendingInteractionPayload>;
6699
6758
  permission_mode_degraded: boolean;
6759
+ pinned_at?: string | null;
6700
6760
  process_summary?: SessionProcessSummaryPayload | null;
6701
6761
  profile_archived?: boolean;
6702
6762
  profile_color?: string;
@@ -6927,6 +6987,25 @@ export type SessionRuntimeRecoveryPayload = {
6927
6987
  reason?: "runtime_exit" | "provider_auth";
6928
6988
  started_at: string;
6929
6989
  };
6990
+ export type SessionSideCommandResult = {
6991
+ seed: string;
6992
+ session_id: string;
6993
+ source_turn_in_progress: boolean;
6994
+ };
6995
+ export type SessionSideItemPayload = {
6996
+ archived_at: string | null;
6997
+ created_at: string;
6998
+ id: string;
6999
+ name: string;
7000
+ pending_clarify_count: number;
7001
+ pending_permission_count: number;
7002
+ prompting: boolean;
7003
+ state: string;
7004
+ updated_at: string;
7005
+ };
7006
+ export type SessionSidesResponse = {
7007
+ sides: Array<SessionSideItemPayload>;
7008
+ };
6930
7009
  export type SessionSkillInvocationPayload = {
6931
7010
  command_id: string;
6932
7011
  end: number;
@@ -7458,6 +7537,9 @@ export type SettingsMCPSecretValuesPayload = {
7458
7537
  [key: string]: string;
7459
7538
  };
7460
7539
  };
7540
+ export type SettingsMCPServerEnabledRequest = {
7541
+ enabled: boolean;
7542
+ };
7461
7543
  export type SettingsMCPServerItemPayload = {
7462
7544
  approval: SettingsMCPApprovalStatePayload;
7463
7545
  args?: Array<string>;
@@ -7468,6 +7550,7 @@ export type SettingsMCPServerItemPayload = {
7468
7550
  catalog_version?: string;
7469
7551
  command?: string;
7470
7552
  definition_source?: string;
7553
+ disabled?: boolean;
7471
7554
  env_keys?: Array<string>;
7472
7555
  headers_configured?: boolean;
7473
7556
  name: string;
@@ -16925,6 +17008,34 @@ export type PreviewExtensionInstallResponses = {
16925
17008
  200: ExtensionInstallPreviewPayload;
16926
17009
  };
16927
17010
  export type PreviewExtensionInstallResponse = PreviewExtensionInstallResponses[keyof PreviewExtensionInstallResponses];
17011
+ export type ListRemovedBuiltinExtensionsData = {
17012
+ body?: never;
17013
+ path?: never;
17014
+ query?: never;
17015
+ url: "/api/extensions/removed-builtins";
17016
+ };
17017
+ export type ListRemovedBuiltinExtensionsErrors = {
17018
+ /**
17019
+ * Internal server error
17020
+ */
17021
+ 500: ErrorPayload;
17022
+ /**
17023
+ * Listing is not available on this extension service
17024
+ */
17025
+ 501: ErrorPayload;
17026
+ /**
17027
+ * Extension service is not configured
17028
+ */
17029
+ 503: ErrorPayload;
17030
+ };
17031
+ export type ListRemovedBuiltinExtensionsError = ListRemovedBuiltinExtensionsErrors[keyof ListRemovedBuiltinExtensionsErrors];
17032
+ export type ListRemovedBuiltinExtensionsResponses = {
17033
+ /**
17034
+ * OK
17035
+ */
17036
+ 200: ExtensionRemovedBuiltinsResponse;
17037
+ };
17038
+ export type ListRemovedBuiltinExtensionsResponse = ListRemovedBuiltinExtensionsResponses[keyof ListRemovedBuiltinExtensionsResponses];
16928
17039
  export type UpdateExtensionsData = {
16929
17040
  /**
16930
17041
  * JSON request body
@@ -16990,6 +17101,10 @@ export type RemoveExtensionData = {
16990
17101
  * Operator workspace reference; omit for the global instance
16991
17102
  */
16992
17103
  workspace?: string;
17104
+ /**
17105
+ * Remove a bundled built-in permanently. It is not re-enrolled at boot or update until restored. Global only.
17106
+ */
17107
+ permanent?: boolean;
16993
17108
  /**
16994
17109
  * Act as this profile by name
16995
17110
  */
@@ -16998,6 +17113,10 @@ export type RemoveExtensionData = {
16998
17113
  url: "/api/extensions/{name}";
16999
17114
  };
17000
17115
  export type RemoveExtensionErrors = {
17116
+ /**
17117
+ * Invalid request, including permanent with a workspace or profile
17118
+ */
17119
+ 400: ErrorPayload;
17001
17120
  /**
17002
17121
  * Forbidden
17003
17122
  */
@@ -17010,10 +17129,18 @@ export type RemoveExtensionErrors = {
17010
17129
  * Extension is in use
17011
17130
  */
17012
17131
  409: ErrorPayload;
17132
+ /**
17133
+ * Extension is not a built-in
17134
+ */
17135
+ 422: ExtensionOperationErrorPayload;
17013
17136
  /**
17014
17137
  * Internal server error
17015
17138
  */
17016
17139
  500: ErrorPayload;
17140
+ /**
17141
+ * Permanent removal is not available on this extension service
17142
+ */
17143
+ 501: ErrorPayload;
17017
17144
  /**
17018
17145
  * Extension service is not configured
17019
17146
  */
@@ -17442,6 +17569,51 @@ export type ReloadDevExtensionResponses = {
17442
17569
  200: ExtensionResponse;
17443
17570
  };
17444
17571
  export type ReloadDevExtensionResponse = ReloadDevExtensionResponses[keyof ReloadDevExtensionResponses];
17572
+ export type RestoreExtensionData = {
17573
+ body?: never;
17574
+ path: {
17575
+ /**
17576
+ * Extension name
17577
+ */
17578
+ name: string;
17579
+ };
17580
+ query?: never;
17581
+ url: "/api/extensions/{name}/restore";
17582
+ };
17583
+ export type RestoreExtensionErrors = {
17584
+ /**
17585
+ * Forbidden
17586
+ */
17587
+ 403: ErrorPayload;
17588
+ /**
17589
+ * Extension not found
17590
+ */
17591
+ 404: ErrorPayload;
17592
+ /**
17593
+ * Not permanently removed, or a non-bundled extension of the same name is installed
17594
+ */
17595
+ 409: ExtensionOperationErrorPayload;
17596
+ /**
17597
+ * Enrollment failed; the removed state is restored and the tombstone is kept
17598
+ */
17599
+ 500: ExtensionOperationErrorPayload;
17600
+ /**
17601
+ * Restore is not available on this extension service
17602
+ */
17603
+ 501: ErrorPayload;
17604
+ /**
17605
+ * Extension service is not configured
17606
+ */
17607
+ 503: ErrorPayload;
17608
+ };
17609
+ export type RestoreExtensionError = RestoreExtensionErrors[keyof RestoreExtensionErrors];
17610
+ export type RestoreExtensionResponses = {
17611
+ /**
17612
+ * Restored at the bundled version, enabled
17613
+ */
17614
+ 200: ExtensionRestorePayload;
17615
+ };
17616
+ export type RestoreExtensionResponse = RestoreExtensionResponses[keyof RestoreExtensionResponses];
17445
17617
  export type ListExtensionSecretsData = {
17446
17618
  body?: never;
17447
17619
  path: {
@@ -17725,6 +17897,35 @@ export type RenameGatewayDeviceResponses = {
17725
17897
  200: GatewayDevicePayload;
17726
17898
  };
17727
17899
  export type RenameGatewayDeviceResponse = RenameGatewayDeviceResponses[keyof RenameGatewayDeviceResponses];
17900
+ export type RemoveGatewayDeviceData = {
17901
+ body?: never;
17902
+ path: {
17903
+ /**
17904
+ * Gateway device id
17905
+ */
17906
+ id: string;
17907
+ };
17908
+ query?: never;
17909
+ url: "/api/gateway/devices/{id}/record";
17910
+ };
17911
+ export type RemoveGatewayDeviceErrors = {
17912
+ /**
17913
+ * Gateway device not found
17914
+ */
17915
+ 404: ErrorPayload;
17916
+ /**
17917
+ * Internal server error
17918
+ */
17919
+ 500: ErrorPayload;
17920
+ };
17921
+ export type RemoveGatewayDeviceError = RemoveGatewayDeviceErrors[keyof RemoveGatewayDeviceErrors];
17922
+ export type RemoveGatewayDeviceResponses = {
17923
+ /**
17924
+ * Removed
17925
+ */
17926
+ 200: GatewayRemovedDevicePayload;
17927
+ };
17928
+ export type RemoveGatewayDeviceResponse = RemoveGatewayDeviceResponses[keyof RemoveGatewayDeviceResponses];
17728
17929
  export type BindGatewayIngressData = {
17729
17930
  /**
17730
17931
  * JSON request body
@@ -18541,6 +18742,10 @@ export type GetMarketplaceCatalogEntryErrors = {
18541
18742
  * Package bytes differ from the listed digest
18542
18743
  */
18543
18744
  409: ExtensionOperationErrorPayload;
18745
+ /**
18746
+ * Invalid plugin manifest
18747
+ */
18748
+ 422: ExtensionValidationErrorPayload | ExtensionOperationErrorPayload;
18544
18749
  /**
18545
18750
  * Internal server error
18546
18751
  */
@@ -21757,9 +21962,13 @@ export type ListSessionsData = {
21757
21962
  */
21758
21963
  later?: "exclude" | "only" | "include";
21759
21964
  /**
21760
- * Stable session ordering
21965
+ * Visibility of pinned sessions and the subtrees their pins carry; included by default
21761
21966
  */
21762
- sort?: "recent" | "created" | "name" | "last_activity" | "attention" | "navigator" | "manual";
21967
+ pinned?: "exclude" | "only" | "include";
21968
+ /**
21969
+ * Stable session ordering; pinned (the operator's Pinned order, pages by pin with each pin's subtree) requires pinned=only
21970
+ */
21971
+ sort?: "recent" | "created" | "name" | "last_activity" | "attention" | "navigator" | "manual" | "pinned";
21763
21972
  /**
21764
21973
  * Opaque next_cursor from the previous page
21765
21974
  */
@@ -21957,6 +22166,10 @@ export type ListSessionFacetsData = {
21957
22166
  * Visibility of sessions parked in Later; excluded by default
21958
22167
  */
21959
22168
  later?: "exclude" | "only" | "include";
22169
+ /**
22170
+ * Visibility of pinned sessions and the subtrees their pins carry; included by default
22171
+ */
22172
+ pinned?: "exclude" | "only" | "include";
21960
22173
  /**
21961
22174
  * Read one profile's rows by name
21962
22175
  */
@@ -22470,6 +22683,60 @@ export type GetGlobalSessionTranscriptResponses = {
22470
22683
  200: SessionTranscriptResponse;
22471
22684
  };
22472
22685
  export type GetGlobalSessionTranscriptResponse = GetGlobalSessionTranscriptResponses[keyof GetGlobalSessionTranscriptResponses];
22686
+ export type GetGlobalSessionInheritedTranscriptData = {
22687
+ body?: never;
22688
+ path: {
22689
+ /**
22690
+ * Derived child session id
22691
+ */
22692
+ session_id: string;
22693
+ };
22694
+ query?: {
22695
+ /**
22696
+ * Maximum page size; defaults to the newest 200 entries and is capped at 1000
22697
+ */
22698
+ limit?: number;
22699
+ /**
22700
+ * Return inherited entries whose stable start sequence is before this cursor
22701
+ */
22702
+ before_sequence?: number;
22703
+ /**
22704
+ * Read one profile's rows by name
22705
+ */
22706
+ profile?: string;
22707
+ /**
22708
+ * Read the owner-labeled all-profiles aggregate
22709
+ */
22710
+ all_profiles?: boolean;
22711
+ };
22712
+ url: "/api/sessions/{session_id}/transcript/inherited";
22713
+ };
22714
+ export type GetGlobalSessionInheritedTranscriptErrors = {
22715
+ /**
22716
+ * Invalid filter
22717
+ */
22718
+ 400: ErrorPayload;
22719
+ /**
22720
+ * Session not found or source transcript unavailable (inherited_transcript_unavailable)
22721
+ */
22722
+ 404: ErrorPayload;
22723
+ /**
22724
+ * Internal server error
22725
+ */
22726
+ 500: ErrorPayload;
22727
+ /**
22728
+ * Transcript projection is incompatible
22729
+ */
22730
+ 503: ErrorPayload;
22731
+ };
22732
+ export type GetGlobalSessionInheritedTranscriptError = GetGlobalSessionInheritedTranscriptErrors[keyof GetGlobalSessionInheritedTranscriptErrors];
22733
+ export type GetGlobalSessionInheritedTranscriptResponses = {
22734
+ /**
22735
+ * OK
22736
+ */
22737
+ 200: SessionTranscriptResponse;
22738
+ };
22739
+ export type GetGlobalSessionInheritedTranscriptResponse = GetGlobalSessionInheritedTranscriptResponses[keyof GetGlobalSessionInheritedTranscriptResponses];
22473
22740
  export type GetGlobalSessionTranscriptOutlineData = {
22474
22741
  body?: never;
22475
22742
  path: {
@@ -23822,6 +24089,75 @@ export type CheckSettingsMCPServerResponses = {
23822
24089
  200: SettingsMCPServerItemPayload;
23823
24090
  };
23824
24091
  export type CheckSettingsMCPServerResponse = CheckSettingsMCPServerResponses[keyof CheckSettingsMCPServerResponses];
24092
+ export type SetSettingsMCPServerEnabledData = {
24093
+ /**
24094
+ * JSON request body
24095
+ */
24096
+ body: SettingsMCPServerEnabledRequest;
24097
+ path: {
24098
+ /**
24099
+ * Configured MCP server name
24100
+ */
24101
+ name: string;
24102
+ };
24103
+ query: {
24104
+ /**
24105
+ * Exact MCP settings scope
24106
+ */
24107
+ scope: "user" | "profile" | "workspace";
24108
+ /**
24109
+ * Required when scope is workspace
24110
+ */
24111
+ workspace_id?: string;
24112
+ /**
24113
+ * Required when scope is profile
24114
+ */
24115
+ profile?: string;
24116
+ /**
24117
+ * Definition owner: manual or extension:<name>; omitted owner selects manual
24118
+ */
24119
+ owner?: string;
24120
+ /**
24121
+ * Declaring file from the Settings MCP row. Selects one same-name definition in the requested scope.
24122
+ */
24123
+ definition_source?: string;
24124
+ };
24125
+ url: "/api/settings/mcp-servers/{name}/enabled";
24126
+ };
24127
+ export type SetSettingsMCPServerEnabledErrors = {
24128
+ /**
24129
+ * Invalid MCP server owner, scope, or payload
24130
+ */
24131
+ 400: ErrorPayload;
24132
+ /**
24133
+ * Forbidden
24134
+ */
24135
+ 403: ErrorPayload;
24136
+ /**
24137
+ * MCP server or workspace not found
24138
+ */
24139
+ 404: ErrorPayload;
24140
+ /**
24141
+ * MCP server definition is ambiguous or cannot be edited
24142
+ */
24143
+ 409: ErrorPayload;
24144
+ /**
24145
+ * Internal server error
24146
+ */
24147
+ 500: ErrorPayload;
24148
+ /**
24149
+ * MCP server state could not be applied
24150
+ */
24151
+ 503: ErrorPayload;
24152
+ };
24153
+ export type SetSettingsMCPServerEnabledError = SetSettingsMCPServerEnabledErrors[keyof SetSettingsMCPServerEnabledErrors];
24154
+ export type SetSettingsMCPServerEnabledResponses = {
24155
+ /**
24156
+ * Updated server
24157
+ */
24158
+ 200: SettingsMCPServerResponse;
24159
+ };
24160
+ export type SetSettingsMCPServerEnabledResponse = SetSettingsMCPServerEnabledResponses[keyof SetSettingsMCPServerEnabledResponses];
23825
24161
  export type GetSettingsObservabilityData = {
23826
24162
  body?: never;
23827
24163
  path?: never;
@@ -32323,9 +32659,13 @@ export type ListWorkspaceSessionsData = {
32323
32659
  */
32324
32660
  later?: "exclude" | "only" | "include";
32325
32661
  /**
32326
- * Stable session ordering
32662
+ * Visibility of pinned sessions and the subtrees their pins carry; included by default
32663
+ */
32664
+ pinned?: "exclude" | "only" | "include";
32665
+ /**
32666
+ * Stable session ordering; pinned (the operator's Pinned order, pages by pin with each pin's subtree) requires pinned=only
32327
32667
  */
32328
- sort?: "recent" | "created" | "name" | "last_activity" | "attention" | "navigator" | "manual";
32668
+ sort?: "recent" | "created" | "name" | "last_activity" | "attention" | "navigator" | "manual" | "pinned";
32329
32669
  /**
32330
32670
  * Opaque next_cursor from the previous page
32331
32671
  */
@@ -33432,11 +33772,11 @@ export type ContinueSessionErrors = {
33432
33772
  */
33433
33773
  404: SessionDeriveErrorPayload;
33434
33774
  /**
33435
- * Session cannot be continued
33775
+ * Session cannot be continued or the source is busy
33436
33776
  */
33437
33777
  409: SessionDeriveErrorPayload;
33438
33778
  /**
33439
- * Runtime or authentication failure; when the new session was already created the error carries child_session_id and a retry with the same idempotency_key returns it
33779
+ * Runtime, authentication or previously admitted first-message failure; when the new session was already created the error carries child_session_id
33440
33780
  */
33441
33781
  422: SessionDeriveErrorPayload;
33442
33782
  /**
@@ -33498,7 +33838,7 @@ export type PreviewSessionDeriveErrors = {
33498
33838
  */
33499
33839
  404: ErrorPayload;
33500
33840
  /**
33501
- * Session is archived
33841
+ * Session is archived or the source is busy
33502
33842
  */
33503
33843
  409: ErrorPayload;
33504
33844
  /**
@@ -34067,11 +34407,11 @@ export type ForkSessionErrors = {
34067
34407
  */
34068
34408
  404: SessionDeriveErrorPayload;
34069
34409
  /**
34070
- * Session cannot be forked
34410
+ * Session cannot be forked or the source is busy
34071
34411
  */
34072
34412
  409: SessionDeriveErrorPayload;
34073
34413
  /**
34074
- * Runtime or authentication failure; when the new session was already created the error carries child_session_id and a retry with the same idempotency_key returns it
34414
+ * Runtime, authentication or previously admitted first-message failure; when the new session was already created the error carries child_session_id
34075
34415
  */
34076
34416
  422: SessionDeriveErrorPayload;
34077
34417
  /**
@@ -35295,6 +35635,106 @@ export type ListSessionPendingInteractionsResponses = {
35295
35635
  200: SessionInteractionsResponse;
35296
35636
  };
35297
35637
  export type ListSessionPendingInteractionsResponse = ListSessionPendingInteractionsResponses[keyof ListSessionPendingInteractionsResponses];
35638
+ export type UnpinSessionData = {
35639
+ body?: never;
35640
+ path: {
35641
+ /**
35642
+ * Workspace id
35643
+ */
35644
+ workspace_id: string;
35645
+ /**
35646
+ * Session id
35647
+ */
35648
+ session_id: string;
35649
+ };
35650
+ query?: {
35651
+ /**
35652
+ * Act as this profile by name
35653
+ */
35654
+ profile?: string;
35655
+ };
35656
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/pin";
35657
+ };
35658
+ export type UnpinSessionErrors = {
35659
+ /**
35660
+ * Conflicting profile selectors (profile_selection_conflict)
35661
+ */
35662
+ 400: ErrorPayload;
35663
+ /**
35664
+ * Session not found
35665
+ */
35666
+ 404: ErrorPayload;
35667
+ /**
35668
+ * Subagent sessions follow their parent and an always-on agent's main session lives in its avatar, so neither can be pinned
35669
+ */
35670
+ 409: ErrorPayload;
35671
+ /**
35672
+ * Internal server error
35673
+ */
35674
+ 500: ErrorPayload;
35675
+ /**
35676
+ * Service unavailable - dependent service missing
35677
+ */
35678
+ 503: ErrorPayload;
35679
+ };
35680
+ export type UnpinSessionError = UnpinSessionErrors[keyof UnpinSessionErrors];
35681
+ export type UnpinSessionResponses = {
35682
+ /**
35683
+ * OK
35684
+ */
35685
+ 200: SessionResponse;
35686
+ };
35687
+ export type UnpinSessionResponse = UnpinSessionResponses[keyof UnpinSessionResponses];
35688
+ export type PinSessionData = {
35689
+ body?: never;
35690
+ path: {
35691
+ /**
35692
+ * Workspace id
35693
+ */
35694
+ workspace_id: string;
35695
+ /**
35696
+ * Session id
35697
+ */
35698
+ session_id: string;
35699
+ };
35700
+ query?: {
35701
+ /**
35702
+ * Act as this profile by name
35703
+ */
35704
+ profile?: string;
35705
+ };
35706
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/pin";
35707
+ };
35708
+ export type PinSessionErrors = {
35709
+ /**
35710
+ * Conflicting profile selectors (profile_selection_conflict)
35711
+ */
35712
+ 400: ErrorPayload;
35713
+ /**
35714
+ * Session not found
35715
+ */
35716
+ 404: ErrorPayload;
35717
+ /**
35718
+ * Subagent sessions follow their parent and an always-on agent's main session lives in its avatar, so neither can be pinned
35719
+ */
35720
+ 409: ErrorPayload;
35721
+ /**
35722
+ * Internal server error
35723
+ */
35724
+ 500: ErrorPayload;
35725
+ /**
35726
+ * Service unavailable - dependent service missing
35727
+ */
35728
+ 503: ErrorPayload;
35729
+ };
35730
+ export type PinSessionError = PinSessionErrors[keyof PinSessionErrors];
35731
+ export type PinSessionResponses = {
35732
+ /**
35733
+ * OK
35734
+ */
35735
+ 200: SessionResponse;
35736
+ };
35737
+ export type PinSessionResponse = PinSessionResponses[keyof PinSessionResponses];
35298
35738
  export type UpdateSessionPresenceData = {
35299
35739
  /**
35300
35740
  * JSON request body
@@ -36034,6 +36474,117 @@ export type SetSessionRuntimeResponses = {
36034
36474
  200: SessionResponse;
36035
36475
  };
36036
36476
  export type SetSessionRuntimeResponse = SetSessionRuntimeResponses[keyof SetSessionRuntimeResponses];
36477
+ export type ListSessionSidesData = {
36478
+ body?: never;
36479
+ path: {
36480
+ /**
36481
+ * Workspace id
36482
+ */
36483
+ workspace_id: string;
36484
+ /**
36485
+ * Source session id
36486
+ */
36487
+ session_id: string;
36488
+ };
36489
+ query?: {
36490
+ /**
36491
+ * Include closed side chats
36492
+ */
36493
+ archived?: string;
36494
+ /**
36495
+ * Act as this profile by name
36496
+ */
36497
+ profile?: string;
36498
+ };
36499
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/sides";
36500
+ };
36501
+ export type ListSessionSidesErrors = {
36502
+ /**
36503
+ * Invalid archive filter
36504
+ */
36505
+ 400: ErrorPayload;
36506
+ /**
36507
+ * Session not found
36508
+ */
36509
+ 404: ErrorPayload;
36510
+ /**
36511
+ * Side chats cannot list nested side chats
36512
+ */
36513
+ 409: ErrorPayload;
36514
+ /**
36515
+ * Internal server error
36516
+ */
36517
+ 500: ErrorPayload;
36518
+ };
36519
+ export type ListSessionSidesError = ListSessionSidesErrors[keyof ListSessionSidesErrors];
36520
+ export type ListSessionSidesResponses = {
36521
+ /**
36522
+ * Complete side chat list
36523
+ */
36524
+ 200: SessionSidesResponse;
36525
+ };
36526
+ export type ListSessionSidesResponse = ListSessionSidesResponses[keyof ListSessionSidesResponses];
36527
+ export type OpenSessionSideData = {
36528
+ /**
36529
+ * JSON request body
36530
+ */
36531
+ body: OpenSessionSideRequest;
36532
+ path: {
36533
+ /**
36534
+ * Workspace id
36535
+ */
36536
+ workspace_id: string;
36537
+ /**
36538
+ * Source session id
36539
+ */
36540
+ session_id: string;
36541
+ };
36542
+ query?: {
36543
+ /**
36544
+ * Act as this profile by name
36545
+ */
36546
+ profile?: string;
36547
+ };
36548
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/sides";
36549
+ };
36550
+ export type OpenSessionSideErrors = {
36551
+ /**
36552
+ * Invalid side chat question or identity
36553
+ */
36554
+ 400: SessionDeriveErrorPayload;
36555
+ /**
36556
+ * Session not found
36557
+ */
36558
+ 404: SessionDeriveErrorPayload;
36559
+ /**
36560
+ * Side chat refused
36561
+ */
36562
+ 409: SessionDeriveErrorPayload;
36563
+ /**
36564
+ * Runtime, authentication or previously admitted first-message failure; when the new session was already created the error carries child_session_id
36565
+ */
36566
+ 422: SessionDeriveErrorPayload;
36567
+ /**
36568
+ * Internal server error
36569
+ */
36570
+ 500: SessionDeriveErrorPayload;
36571
+ /**
36572
+ * New-work admission is unavailable while the daemon is draining
36573
+ */
36574
+ 503: SessionDeriveErrorPayload;
36575
+ };
36576
+ export type OpenSessionSideError = OpenSessionSideErrors[keyof OpenSessionSideErrors];
36577
+ export type OpenSessionSideResponses = {
36578
+ /**
36579
+ * Recorded side chat replayed
36580
+ */
36581
+ 200: SessionDeriveResponse;
36582
+ /**
36583
+ * Created
36584
+ */
36585
+ 201: SessionDeriveResponse;
36586
+ };
36587
+ export type OpenSessionSideResponse = OpenSessionSideResponses[keyof OpenSessionSideResponses];
36037
36588
  export type RefreshSessionSoulData = {
36038
36589
  /**
36039
36590
  * JSON request body
@@ -36466,6 +37017,64 @@ export type GetSessionTranscriptResponses = {
36466
37017
  200: SessionTranscriptResponse;
36467
37018
  };
36468
37019
  export type GetSessionTranscriptResponse = GetSessionTranscriptResponses[keyof GetSessionTranscriptResponses];
37020
+ export type GetSessionInheritedTranscriptData = {
37021
+ body?: never;
37022
+ path: {
37023
+ /**
37024
+ * Workspace id
37025
+ */
37026
+ workspace_id: string;
37027
+ /**
37028
+ * Derived child session id
37029
+ */
37030
+ session_id: string;
37031
+ };
37032
+ query?: {
37033
+ /**
37034
+ * Maximum page size; defaults to the newest 200 entries and is capped at 1000
37035
+ */
37036
+ limit?: number;
37037
+ /**
37038
+ * Return inherited entries whose stable start sequence is before this cursor
37039
+ */
37040
+ before_sequence?: number;
37041
+ /**
37042
+ * Read one profile's rows by name
37043
+ */
37044
+ profile?: string;
37045
+ /**
37046
+ * Read the owner-labeled all-profiles aggregate
37047
+ */
37048
+ all_profiles?: boolean;
37049
+ };
37050
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/transcript/inherited";
37051
+ };
37052
+ export type GetSessionInheritedTranscriptErrors = {
37053
+ /**
37054
+ * Invalid filter
37055
+ */
37056
+ 400: ErrorPayload;
37057
+ /**
37058
+ * Session not found or source transcript unavailable (inherited_transcript_unavailable)
37059
+ */
37060
+ 404: ErrorPayload;
37061
+ /**
37062
+ * Internal server error
37063
+ */
37064
+ 500: ErrorPayload;
37065
+ /**
37066
+ * Transcript projection is incompatible
37067
+ */
37068
+ 503: ErrorPayload;
37069
+ };
37070
+ export type GetSessionInheritedTranscriptError = GetSessionInheritedTranscriptErrors[keyof GetSessionInheritedTranscriptErrors];
37071
+ export type GetSessionInheritedTranscriptResponses = {
37072
+ /**
37073
+ * OK
37074
+ */
37075
+ 200: SessionTranscriptResponse;
37076
+ };
37077
+ export type GetSessionInheritedTranscriptResponse = GetSessionInheritedTranscriptResponses[keyof GetSessionInheritedTranscriptResponses];
36469
37078
  export type GetSessionTranscriptOutlineData = {
36470
37079
  body?: never;
36471
37080
  path: {