@compozy/client 0.5.0 → 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.
@@ -36,7 +36,7 @@ class agents extends HeyApiClient {
36
36
  });
37
37
  }
38
38
  /**
39
- * Create a stays-on agent instance
39
+ * Create an always-on agent instance
40
40
  */
41
41
  createAgentInstance(options) {
42
42
  return (options.client ?? this.client).post({
@@ -263,6 +263,20 @@ class agents extends HeyApiClient {
263
263
  },
264
264
  });
265
265
  }
266
+ /**
267
+ * Read activity for up to 100 agent and workspace selections in request order
268
+ */
269
+ batchAgentActivity(options) {
270
+ return (options.client ?? this.client).post({
271
+ responseStyle: "data",
272
+ url: "/api/agents/activity",
273
+ ...options,
274
+ headers: {
275
+ "Content-Type": "application/json",
276
+ ...options.headers,
277
+ },
278
+ });
279
+ }
266
280
  /**
267
281
  * List a filtered agent fleet with exact session metrics
268
282
  */
@@ -417,6 +431,40 @@ class agents extends HeyApiClient {
417
431
  },
418
432
  });
419
433
  }
434
+ /**
435
+ * Revoke a source script approval (operator only)
436
+ */
437
+ revokeAgentHeartbeatScript(options) {
438
+ return (options.client ?? this.client).delete({
439
+ responseStyle: "data",
440
+ url: "/api/agents/{name}/heartbeat/scripts/{script}/approve",
441
+ ...options,
442
+ });
443
+ }
444
+ /**
445
+ * Approve exact source script bytes (operator only)
446
+ */
447
+ approveAgentHeartbeatScript(options) {
448
+ return (options.client ?? this.client).post({
449
+ responseStyle: "data",
450
+ url: "/api/agents/{name}/heartbeat/scripts/{script}/approve",
451
+ ...options,
452
+ headers: {
453
+ "Content-Type": "application/json",
454
+ ...options.headers,
455
+ },
456
+ });
457
+ }
458
+ /**
459
+ * List check-in source kinds, scripts and effective limits
460
+ */
461
+ getAgentHeartbeatSources(options) {
462
+ return (options.client ?? this.client).get({
463
+ responseStyle: "data",
464
+ url: "/api/agents/{name}/heartbeat/sources",
465
+ ...options,
466
+ });
467
+ }
420
468
  /**
421
469
  * Read Heartbeat policy status, wake state, and optional session health
422
470
  */
@@ -1284,6 +1332,18 @@ class cmdPalette extends HeyApiClient {
1284
1332
  }
1285
1333
  exports.cmdPalette = cmdPalette;
1286
1334
  class diagnostics extends HeyApiClient {
1335
+ /**
1336
+ * Capture a runtime profile over the local socket
1337
+ *
1338
+ * @stability experimental
1339
+ */
1340
+ captureDaemonProfile(options) {
1341
+ return (options.client ?? this.client).get({
1342
+ responseStyle: "data",
1343
+ url: "/api/daemon/profile/{kind}",
1344
+ ...options,
1345
+ });
1346
+ }
1287
1347
  /**
1288
1348
  * Run runtime diagnostics
1289
1349
  */
@@ -3857,6 +3917,16 @@ class sessions extends HeyApiClient {
3857
3917
  },
3858
3918
  });
3859
3919
  }
3920
+ /**
3921
+ * Mark a session's Needs you as seen until its next occurrence; a session waiting on an answer, a sign-in, or a stop is refused
3922
+ */
3923
+ markSessionSeen(options) {
3924
+ return (options.client ?? this.client).post({
3925
+ responseStyle: "data",
3926
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/mark-seen",
3927
+ ...options,
3928
+ });
3929
+ }
3860
3930
  /**
3861
3931
  * List a session's monitors
3862
3932
  */
@@ -3891,6 +3961,20 @@ class sessions extends HeyApiClient {
3891
3961
  },
3892
3962
  });
3893
3963
  }
3964
+ /**
3965
+ * Copy a stopped user session into another profile and archive the original
3966
+ */
3967
+ moveSessionToProfile(options) {
3968
+ return (options.client ?? this.client).post({
3969
+ responseStyle: "data",
3970
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/move-to-profile",
3971
+ ...options,
3972
+ headers: {
3973
+ "Content-Type": "application/json",
3974
+ ...options.headers,
3975
+ },
3976
+ });
3977
+ }
3894
3978
  /**
3895
3979
  * Make an adopted child session top-level, or take over a stopped spawned worker
3896
3980
  */