@compozy/client 0.4.8 → 0.5.0

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Compozy = exports.worktrees = exports.vault = exports.toolsets = exports.tools = exports.workspaces = exports.support = exports.skills = exports.tasks = exports.roles = exports.resources = exports.profiles = exports.sessions = exports.openai = exports.onboarding = exports.observe = exports.notifications = exports.providers = exports.settings = exports.marketplace = exports.loops = exports.logs = exports.hooks = exports.gateway = exports.filesystem = exports.extensions = exports.diagnostics = exports.cmdPalette = exports.automation = exports.appTokens = exports.agents = exports.agent = void 0;
4
+ exports.Compozy = exports.worktrees = exports.vault = exports.toolsets = exports.tools = exports.workspaces = exports.support = exports.skills = exports.tasks = exports.roles = exports.resources = exports.profiles = exports.sessions = exports.openai = exports.onboarding = exports.observe = exports.notifications = exports.providers = exports.settings = exports.marketplace = exports.loops = exports.logs = exports.hooks = exports.gateway = exports.filesystem = exports.extensions = exports.diagnostics = exports.cmdPalette = exports.automation = exports.appTokens = exports.agent = exports.agents = void 0;
5
5
  const client_gen_js_1 = require("./client.gen.js");
6
6
  const index_js_1 = require("./client/index.js");
7
7
  class HeyApiClient {
@@ -24,44 +24,72 @@ class HeyApiRegistry {
24
24
  this.instances.set(key ?? this.defaultKey, value);
25
25
  }
26
26
  }
27
- class agent extends HeyApiClient {
27
+ class agents extends HeyApiClient {
28
28
  /**
29
- * Return the bounded calling-agent situation context
29
+ * List agent instances
30
30
  */
31
- getAgentContext(options) {
32
- return (options.client ?? this.client).get({
31
+ listAgentInstances(options) {
32
+ return (options?.client ?? this.client).get({
33
33
  responseStyle: "data",
34
- url: "/api/agent/context",
34
+ url: "/api/agent-instances",
35
35
  ...options,
36
36
  });
37
37
  }
38
38
  /**
39
- * Read resolved coordinator config for the calling agent workspace
39
+ * Create a stays-on agent instance
40
40
  */
41
- getAgentCoordinatorConfig(options) {
42
- return (options.client ?? this.client).get({
41
+ createAgentInstance(options) {
42
+ return (options.client ?? this.client).post({
43
43
  responseStyle: "data",
44
- url: "/api/agent/coordinator/config",
44
+ url: "/api/agent-instances",
45
+ ...options,
46
+ headers: {
47
+ "Content-Type": "application/json",
48
+ ...options.headers,
49
+ },
50
+ });
51
+ }
52
+ /**
53
+ * Adopt a root session as an instance
54
+ */
55
+ adoptAgentInstance(options) {
56
+ return (options.client ?? this.client).post({
57
+ responseStyle: "data",
58
+ url: "/api/agent-instances/adopt",
45
59
  ...options,
60
+ headers: {
61
+ "Content-Type": "application/json",
62
+ ...options.headers,
63
+ },
46
64
  });
47
65
  }
48
66
  /**
49
- * Resolve the calling agent session
67
+ * Archive an agent instance
50
68
  */
51
- getAgentMe(options) {
69
+ archiveAgentInstance(options) {
70
+ return (options.client ?? this.client).delete({
71
+ responseStyle: "data",
72
+ url: "/api/agent-instances/{id}",
73
+ ...options,
74
+ });
75
+ }
76
+ /**
77
+ * Get an agent instance
78
+ */
79
+ getAgentInstance(options) {
52
80
  return (options.client ?? this.client).get({
53
81
  responseStyle: "data",
54
- url: "/api/agent/me",
82
+ url: "/api/agent-instances/{id}",
55
83
  ...options,
56
84
  });
57
85
  }
58
86
  /**
59
- * Notify live operator clients from the calling agent
87
+ * Update instance checks
60
88
  */
61
- notifyOperator(options) {
62
- return (options.client ?? this.client).post({
89
+ updateAgentInstance(options) {
90
+ return (options.client ?? this.client).patch({
63
91
  responseStyle: "data",
64
- url: "/api/agent/notify",
92
+ url: "/api/agent-instances/{id}",
65
93
  ...options,
66
94
  headers: {
67
95
  "Content-Type": "application/json",
@@ -70,36 +98,32 @@ class agent extends HeyApiClient {
70
98
  });
71
99
  }
72
100
  /**
73
- * Inspect the resolved Soul read model for the calling agent
101
+ * Read the operator's instance away digest
74
102
  */
75
- getAgentSoul(options) {
103
+ getAgentInstanceAway(options) {
76
104
  return (options.client ?? this.client).get({
77
105
  responseStyle: "data",
78
- url: "/api/agent/soul",
106
+ url: "/api/agent-instances/{id}/away",
79
107
  ...options,
80
108
  });
81
109
  }
82
110
  /**
83
- * Validate a proposed Soul body or the calling agent's current Soul
111
+ * Mark the instance seen by the local operator
84
112
  */
85
- validateAgentSoul(options) {
113
+ markAgentInstanceSeen(options) {
86
114
  return (options.client ?? this.client).post({
87
115
  responseStyle: "data",
88
- url: "/api/agent/soul/validate",
116
+ url: "/api/agent-instances/{id}/away",
89
117
  ...options,
90
- headers: {
91
- "Content-Type": "application/json",
92
- ...options.headers,
93
- },
94
118
  });
95
119
  }
96
120
  /**
97
- * Spawn a narrowed child session for the calling agent
121
+ * Check an agent instance
98
122
  */
99
- spawnAgentSession(options) {
123
+ checkAgentInstance(options) {
100
124
  return (options.client ?? this.client).post({
101
125
  responseStyle: "data",
102
- url: "/api/agent/spawn",
126
+ url: "/api/agent-instances/{id}/check",
103
127
  ...options,
104
128
  headers: {
105
129
  "Content-Type": "application/json",
@@ -108,68 +132,92 @@ class agent extends HeyApiClient {
108
132
  });
109
133
  }
110
134
  /**
111
- * Atomically claim the next matching task run for the calling agent
135
+ * List instance wake events
112
136
  */
113
- claimNextAgentTask(options) {
114
- return (options.client ?? this.client).post({
137
+ listAgentInstanceCheckIns(options) {
138
+ return (options.client ?? this.client).get({
115
139
  responseStyle: "data",
116
- url: "/api/agent/tasks/claim-next",
140
+ url: "/api/agent-instances/{id}/check-ins",
117
141
  ...options,
118
- headers: {
119
- "Content-Type": "application/json",
120
- ...options.headers,
121
- },
122
142
  });
123
143
  }
124
144
  /**
125
- * Complete a claimed task run for the calling agent
145
+ * Ensure the main session exists
126
146
  */
127
- completeAgentTaskRun(options) {
147
+ ensureAgentInstanceMain(options) {
128
148
  return (options.client ?? this.client).post({
129
149
  responseStyle: "data",
130
- url: "/api/agent/tasks/{run_id}/complete",
150
+ url: "/api/agent-instances/{id}/ensure-main",
131
151
  ...options,
132
- headers: {
133
- "Content-Type": "application/json",
134
- ...options.headers,
135
- },
136
152
  });
137
153
  }
138
154
  /**
139
- * Fail a claimed task run for the calling agent
155
+ * Read an instance check occurrence
140
156
  */
141
- failAgentTaskRun(options) {
157
+ getAgentInstanceOccurrence(options) {
158
+ return (options.client ?? this.client).get({
159
+ responseStyle: "data",
160
+ url: "/api/agent-instances/{id}/occurrences/{occurrence}",
161
+ ...options,
162
+ });
163
+ }
164
+ /**
165
+ * Pause an agent instance
166
+ */
167
+ pauseAgentInstance(options) {
142
168
  return (options.client ?? this.client).post({
143
169
  responseStyle: "data",
144
- url: "/api/agent/tasks/{run_id}/fail",
170
+ url: "/api/agent-instances/{id}/pause",
145
171
  ...options,
146
- headers: {
147
- "Content-Type": "application/json",
148
- ...options.headers,
149
- },
150
172
  });
151
173
  }
152
174
  /**
153
- * Extend a claimed task-run lease for the calling agent
175
+ * List durable instance reports
154
176
  */
155
- heartbeatAgentTaskRun(options) {
177
+ listAgentInstanceReports(options) {
178
+ return (options.client ?? this.client).get({
179
+ responseStyle: "data",
180
+ url: "/api/agent-instances/{id}/reports",
181
+ ...options,
182
+ });
183
+ }
184
+ /**
185
+ * Resume an agent instance
186
+ */
187
+ resumeAgentInstance(options) {
156
188
  return (options.client ?? this.client).post({
157
189
  responseStyle: "data",
158
- url: "/api/agent/tasks/{run_id}/heartbeat",
190
+ url: "/api/agent-instances/{id}/resume",
159
191
  ...options,
160
- headers: {
161
- "Content-Type": "application/json",
162
- ...options.headers,
163
- },
164
192
  });
165
193
  }
166
194
  /**
167
- * Release a claimed task run for the calling agent
195
+ * List agent skill reviews (experimental)
168
196
  */
169
- releaseAgentTaskRun(options) {
197
+ listAgentSkillReviews(options) {
198
+ return (options?.client ?? this.client).get({
199
+ responseStyle: "data",
200
+ url: "/api/agent-skill-reviews",
201
+ ...options,
202
+ });
203
+ }
204
+ /**
205
+ * Read exact proposed skill contents (experimental)
206
+ */
207
+ getAgentSkillReview(options) {
208
+ return (options.client ?? this.client).get({
209
+ responseStyle: "data",
210
+ url: "/api/agent-skill-reviews/{id}",
211
+ ...options,
212
+ });
213
+ }
214
+ /**
215
+ * Decide a skill review as the operator (experimental)
216
+ */
217
+ approveAgentSkillReview(options) {
170
218
  return (options.client ?? this.client).post({
171
219
  responseStyle: "data",
172
- url: "/api/agent/tasks/{run_id}/release",
220
+ url: "/api/agent-skill-reviews/{id}/approve",
173
221
  ...options,
174
222
  headers: {
175
223
  "Content-Type": "application/json",
@@ -178,12 +226,12 @@ class agent extends HeyApiClient {
178
226
  });
179
227
  }
180
228
  /**
181
- * Start a claimed task run under the calling agent's lease
229
+ * Decide a skill review as the operator (experimental)
182
230
  */
183
- startAgentTaskRun(options) {
231
+ rejectAgentSkillReview(options) {
184
232
  return (options.client ?? this.client).post({
185
233
  responseStyle: "data",
186
- url: "/api/agent/tasks/{run_id}/start",
234
+ url: "/api/agent-skill-reviews/{id}/reject",
187
235
  ...options,
188
236
  headers: {
189
237
  "Content-Type": "application/json",
@@ -191,9 +239,6 @@ class agent extends HeyApiClient {
191
239
  },
192
240
  });
193
241
  }
194
- }
195
- exports.agent = agent;
196
- class agents extends HeyApiClient {
197
242
  /**
198
243
  * List all readable agent definitions, optionally resolved for a workspace
199
244
  */
@@ -238,6 +283,20 @@ class agents extends HeyApiClient {
238
283
  ...options,
239
284
  });
240
285
  }
286
+ /**
287
+ * Draft agent instructions without saving a definition
288
+ */
289
+ draftAgentInstructions(options) {
290
+ return (options.client ?? this.client).post({
291
+ responseStyle: "data",
292
+ url: "/api/agents/draft-instructions",
293
+ ...options,
294
+ headers: {
295
+ "Content-Type": "application/json",
296
+ ...options.headers,
297
+ },
298
+ });
299
+ }
241
300
  /**
242
301
  * Durably delete one effective authored agent definition
243
302
  */
@@ -272,6 +331,16 @@ class agents extends HeyApiClient {
272
331
  },
273
332
  });
274
333
  }
334
+ /**
335
+ * Read agent activity across authorized workspaces
336
+ */
337
+ getAgentActivity(options) {
338
+ return (options.client ?? this.client).get({
339
+ responseStyle: "data",
340
+ url: "/api/agents/{name}/activity",
341
+ ...options,
342
+ });
343
+ }
275
344
  /**
276
345
  * Duplicate one effective authored agent definition server-side
277
346
  */
@@ -386,6 +455,142 @@ class agents extends HeyApiClient {
386
455
  },
387
456
  });
388
457
  }
458
+ /**
459
+ * Inspect agent memory (experimental)
460
+ *
461
+ * @stability experimental
462
+ */
463
+ getAgentMemory(options) {
464
+ return (options.client ?? this.client).get({
465
+ responseStyle: "data",
466
+ url: "/api/agents/{name}/memory",
467
+ ...options,
468
+ });
469
+ }
470
+ /**
471
+ * Replace memory with a digest check (experimental)
472
+ *
473
+ * @stability experimental
474
+ */
475
+ putAgentMemory(options) {
476
+ return (options.client ?? this.client).put({
477
+ responseStyle: "data",
478
+ url: "/api/agents/{name}/memory",
479
+ ...options,
480
+ headers: {
481
+ "Content-Type": "application/json",
482
+ ...options.headers,
483
+ },
484
+ });
485
+ }
486
+ /**
487
+ * Remove matching memory entries (experimental)
488
+ *
489
+ * @stability experimental
490
+ */
491
+ removeAgentMemory(options) {
492
+ return (options.client ?? this.client).delete({
493
+ responseStyle: "data",
494
+ url: "/api/agents/{name}/memory/entries",
495
+ ...options,
496
+ headers: {
497
+ "Content-Type": "application/json",
498
+ ...options.headers,
499
+ },
500
+ });
501
+ }
502
+ /**
503
+ * Replace matching memory text (experimental)
504
+ *
505
+ * @stability experimental
506
+ */
507
+ replaceAgentMemory(options) {
508
+ return (options.client ?? this.client).patch({
509
+ responseStyle: "data",
510
+ url: "/api/agents/{name}/memory/entries",
511
+ ...options,
512
+ headers: {
513
+ "Content-Type": "application/json",
514
+ ...options.headers,
515
+ },
516
+ });
517
+ }
518
+ /**
519
+ * Add a dated memory entry (experimental)
520
+ *
521
+ * @stability experimental
522
+ */
523
+ addAgentMemory(options) {
524
+ return (options.client ?? this.client).post({
525
+ responseStyle: "data",
526
+ url: "/api/agents/{name}/memory/entries",
527
+ ...options,
528
+ headers: {
529
+ "Content-Type": "application/json",
530
+ ...options.headers,
531
+ },
532
+ });
533
+ }
534
+ /**
535
+ * List the last fifty memory revisions (experimental)
536
+ *
537
+ * @stability experimental
538
+ */
539
+ listAgentMemoryHistory(options) {
540
+ return (options.client ?? this.client).get({
541
+ responseStyle: "data",
542
+ url: "/api/agents/{name}/memory/history",
543
+ ...options,
544
+ });
545
+ }
546
+ /**
547
+ * Restore a memory revision (experimental)
548
+ *
549
+ * @stability experimental
550
+ */
551
+ rollbackAgentMemory(options) {
552
+ return (options.client ?? this.client).post({
553
+ responseStyle: "data",
554
+ url: "/api/agents/{name}/memory/rollback",
555
+ ...options,
556
+ headers: {
557
+ "Content-Type": "application/json",
558
+ ...options.headers,
559
+ },
560
+ });
561
+ }
562
+ /**
563
+ * Search agent notes and accessible sessions (experimental)
564
+ *
565
+ * @stability experimental
566
+ */
567
+ searchAgentMemory(options) {
568
+ return (options.client ?? this.client).post({
569
+ responseStyle: "data",
570
+ url: "/api/agents/{name}/memory/search",
571
+ ...options,
572
+ headers: {
573
+ "Content-Type": "application/json",
574
+ ...options.headers,
575
+ },
576
+ });
577
+ }
578
+ /**
579
+ * Validate proposed memory content (experimental)
580
+ *
581
+ * @stability experimental
582
+ */
583
+ validateAgentMemory(options) {
584
+ return (options.client ?? this.client).post({
585
+ responseStyle: "data",
586
+ url: "/api/agents/{name}/memory/validate",
587
+ ...options,
588
+ headers: {
589
+ "Content-Type": "application/json",
590
+ ...options.headers,
591
+ },
592
+ });
593
+ }
389
594
  /**
390
595
  * Delete SOUL.md through managed authoring
391
596
  */
@@ -464,6 +669,175 @@ class agents extends HeyApiClient {
464
669
  }
465
670
  }
466
671
  exports.agents = agents;
672
+ class agent extends HeyApiClient {
673
+ /**
674
+ * Return the bounded calling-agent situation context
675
+ */
676
+ getAgentContext(options) {
677
+ return (options.client ?? this.client).get({
678
+ responseStyle: "data",
679
+ url: "/api/agent/context",
680
+ ...options,
681
+ });
682
+ }
683
+ /**
684
+ * Read resolved coordinator config for the calling agent workspace
685
+ */
686
+ getAgentCoordinatorConfig(options) {
687
+ return (options.client ?? this.client).get({
688
+ responseStyle: "data",
689
+ url: "/api/agent/coordinator/config",
690
+ ...options,
691
+ });
692
+ }
693
+ /**
694
+ * Resolve the calling agent session
695
+ */
696
+ getAgentMe(options) {
697
+ return (options.client ?? this.client).get({
698
+ responseStyle: "data",
699
+ url: "/api/agent/me",
700
+ ...options,
701
+ });
702
+ }
703
+ /**
704
+ * Notify live operator clients from the calling agent
705
+ */
706
+ notifyOperator(options) {
707
+ return (options.client ?? this.client).post({
708
+ responseStyle: "data",
709
+ url: "/api/agent/notify",
710
+ ...options,
711
+ headers: {
712
+ "Content-Type": "application/json",
713
+ ...options.headers,
714
+ },
715
+ });
716
+ }
717
+ /**
718
+ * Inspect the resolved Soul read model for the calling agent
719
+ */
720
+ getAgentSoul(options) {
721
+ return (options.client ?? this.client).get({
722
+ responseStyle: "data",
723
+ url: "/api/agent/soul",
724
+ ...options,
725
+ });
726
+ }
727
+ /**
728
+ * Validate a proposed Soul body or the calling agent's current Soul
729
+ */
730
+ validateAgentSoul(options) {
731
+ return (options.client ?? this.client).post({
732
+ responseStyle: "data",
733
+ url: "/api/agent/soul/validate",
734
+ ...options,
735
+ headers: {
736
+ "Content-Type": "application/json",
737
+ ...options.headers,
738
+ },
739
+ });
740
+ }
741
+ /**
742
+ * Spawn a narrowed child session for the calling agent
743
+ */
744
+ spawnAgentSession(options) {
745
+ return (options.client ?? this.client).post({
746
+ responseStyle: "data",
747
+ url: "/api/agent/spawn",
748
+ ...options,
749
+ headers: {
750
+ "Content-Type": "application/json",
751
+ ...options.headers,
752
+ },
753
+ });
754
+ }
755
+ /**
756
+ * Atomically claim the next matching task run for the calling agent
757
+ */
758
+ claimNextAgentTask(options) {
759
+ return (options.client ?? this.client).post({
760
+ responseStyle: "data",
761
+ url: "/api/agent/tasks/claim-next",
762
+ ...options,
763
+ headers: {
764
+ "Content-Type": "application/json",
765
+ ...options.headers,
766
+ },
767
+ });
768
+ }
769
+ /**
770
+ * Complete a claimed task run for the calling agent
771
+ */
772
+ completeAgentTaskRun(options) {
773
+ return (options.client ?? this.client).post({
774
+ responseStyle: "data",
775
+ url: "/api/agent/tasks/{run_id}/complete",
776
+ ...options,
777
+ headers: {
778
+ "Content-Type": "application/json",
779
+ ...options.headers,
780
+ },
781
+ });
782
+ }
783
+ /**
784
+ * Fail a claimed task run for the calling agent
785
+ */
786
+ failAgentTaskRun(options) {
787
+ return (options.client ?? this.client).post({
788
+ responseStyle: "data",
789
+ url: "/api/agent/tasks/{run_id}/fail",
790
+ ...options,
791
+ headers: {
792
+ "Content-Type": "application/json",
793
+ ...options.headers,
794
+ },
795
+ });
796
+ }
797
+ /**
798
+ * Extend a claimed task-run lease for the calling agent
799
+ */
800
+ heartbeatAgentTaskRun(options) {
801
+ return (options.client ?? this.client).post({
802
+ responseStyle: "data",
803
+ url: "/api/agent/tasks/{run_id}/heartbeat",
804
+ ...options,
805
+ headers: {
806
+ "Content-Type": "application/json",
807
+ ...options.headers,
808
+ },
809
+ });
810
+ }
811
+ /**
812
+ * Release a claimed task run for the calling agent
813
+ */
814
+ releaseAgentTaskRun(options) {
815
+ return (options.client ?? this.client).post({
816
+ responseStyle: "data",
817
+ url: "/api/agent/tasks/{run_id}/release",
818
+ ...options,
819
+ headers: {
820
+ "Content-Type": "application/json",
821
+ ...options.headers,
822
+ },
823
+ });
824
+ }
825
+ /**
826
+ * Start a claimed task run under the calling agent's lease
827
+ */
828
+ startAgentTaskRun(options) {
829
+ return (options.client ?? this.client).post({
830
+ responseStyle: "data",
831
+ url: "/api/agent/tasks/{run_id}/start",
832
+ ...options,
833
+ headers: {
834
+ "Content-Type": "application/json",
835
+ ...options.headers,
836
+ },
837
+ });
838
+ }
839
+ }
840
+ exports.agent = agent;
467
841
  class appTokens extends HeyApiClient {
468
842
  /**
469
843
  * List app tokens without their bearer secrets
@@ -2819,6 +3193,26 @@ class observe extends HeyApiClient {
2819
3193
  ...options,
2820
3194
  });
2821
3195
  }
3196
+ /**
3197
+ * List the newest permission decisions with their initiators
3198
+ */
3199
+ listPermissionEntries(options) {
3200
+ return (options?.client ?? this.client).get({
3201
+ responseStyle: "data",
3202
+ url: "/api/permissions",
3203
+ ...options,
3204
+ });
3205
+ }
3206
+ /**
3207
+ * Read daily permission totals by agent and decision
3208
+ */
3209
+ getPermissionRollup(options) {
3210
+ return (options?.client ?? this.client).get({
3211
+ responseStyle: "data",
3212
+ url: "/api/permissions/rollup",
3213
+ ...options,
3214
+ });
3215
+ }
2822
3216
  }
2823
3217
  exports.observe = observe;
2824
3218
  class onboarding extends HeyApiClient {
@@ -3303,6 +3697,16 @@ class sessions extends HeyApiClient {
3303
3697
  ...options,
3304
3698
  });
3305
3699
  }
3700
+ /**
3701
+ * List a session's child sessions, recursively
3702
+ */
3703
+ listSessionDescendants(options) {
3704
+ return (options.client ?? this.client).get({
3705
+ responseStyle: "data",
3706
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/descendants",
3707
+ ...options,
3708
+ });
3709
+ }
3306
3710
  /**
3307
3711
  * List persisted session events
3308
3712
  */
@@ -3391,6 +3795,68 @@ class sessions extends HeyApiClient {
3391
3795
  },
3392
3796
  });
3393
3797
  }
3798
+ /**
3799
+ * Search this project for link candidates
3800
+ */
3801
+ searchSessionWorkCandidates(options) {
3802
+ return (options.client ?? this.client).get({
3803
+ responseStyle: "data",
3804
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/link-candidates",
3805
+ ...options,
3806
+ });
3807
+ }
3808
+ /**
3809
+ * Unlink session work
3810
+ */
3811
+ removeSessionWorkLink(options) {
3812
+ return (options.client ?? this.client).delete({
3813
+ responseStyle: "data",
3814
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/links",
3815
+ ...options,
3816
+ headers: {
3817
+ "Content-Type": "application/json",
3818
+ ...options.headers,
3819
+ },
3820
+ });
3821
+ }
3822
+ /**
3823
+ * List session linked work
3824
+ */
3825
+ listSessionLinkedWork(options) {
3826
+ return (options.client ?? this.client).get({
3827
+ responseStyle: "data",
3828
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/links",
3829
+ ...options,
3830
+ });
3831
+ }
3832
+ /**
3833
+ * Link work to a session
3834
+ */
3835
+ addSessionWorkLink(options) {
3836
+ return (options.client ?? this.client).post({
3837
+ responseStyle: "data",
3838
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/links",
3839
+ ...options,
3840
+ headers: {
3841
+ "Content-Type": "application/json",
3842
+ ...options.headers,
3843
+ },
3844
+ });
3845
+ }
3846
+ /**
3847
+ * Ask the forge again about one linked item
3848
+ */
3849
+ refreshSessionWorkLink(options) {
3850
+ return (options.client ?? this.client).post({
3851
+ responseStyle: "data",
3852
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/links/refresh",
3853
+ ...options,
3854
+ headers: {
3855
+ "Content-Type": "application/json",
3856
+ ...options.headers,
3857
+ },
3858
+ });
3859
+ }
3394
3860
  /**
3395
3861
  * List a session's monitors
3396
3862
  */
@@ -3449,6 +3915,16 @@ class sessions extends HeyApiClient {
3449
3915
  },
3450
3916
  });
3451
3917
  }
3918
+ /**
3919
+ * List pending session interactions
3920
+ */
3921
+ listSessionPendingInteractions(options) {
3922
+ return (options.client ?? this.client).get({
3923
+ responseStyle: "data",
3924
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/pending-interactions",
3925
+ ...options,
3926
+ });
3927
+ }
3452
3928
  /**
3453
3929
  * Update operator session presence
3454
3930
  */
@@ -5856,14 +6332,14 @@ class Compozy extends HeyApiClient {
5856
6332
  super(args);
5857
6333
  Compozy.__registry.set(this, args?.key);
5858
6334
  }
5859
- _agent;
5860
- get agent() {
5861
- return (this._agent ??= new agent({ client: this.client }));
5862
- }
5863
6335
  _agents;
5864
6336
  get agents() {
5865
6337
  return (this._agents ??= new agents({ client: this.client }));
5866
6338
  }
6339
+ _agent;
6340
+ get agent() {
6341
+ return (this._agent ??= new agent({ client: this.client }));
6342
+ }
5867
6343
  _appTokens;
5868
6344
  get appTokens() {
5869
6345
  return (this._appTokens ??= new appTokens({ client: this.client }));