@compozy/client 0.5.0 → 0.5.1

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({
@@ -417,6 +417,40 @@ class agents extends HeyApiClient {
417
417
  },
418
418
  });
419
419
  }
420
+ /**
421
+ * Revoke a source script approval (operator only)
422
+ */
423
+ revokeAgentHeartbeatScript(options) {
424
+ return (options.client ?? this.client).delete({
425
+ responseStyle: "data",
426
+ url: "/api/agents/{name}/heartbeat/scripts/{script}/approve",
427
+ ...options,
428
+ });
429
+ }
430
+ /**
431
+ * Approve exact source script bytes (operator only)
432
+ */
433
+ approveAgentHeartbeatScript(options) {
434
+ return (options.client ?? this.client).post({
435
+ responseStyle: "data",
436
+ url: "/api/agents/{name}/heartbeat/scripts/{script}/approve",
437
+ ...options,
438
+ headers: {
439
+ "Content-Type": "application/json",
440
+ ...options.headers,
441
+ },
442
+ });
443
+ }
444
+ /**
445
+ * List check-in source kinds, scripts and effective limits
446
+ */
447
+ getAgentHeartbeatSources(options) {
448
+ return (options.client ?? this.client).get({
449
+ responseStyle: "data",
450
+ url: "/api/agents/{name}/heartbeat/sources",
451
+ ...options,
452
+ });
453
+ }
420
454
  /**
421
455
  * Read Heartbeat policy status, wake state, and optional session health
422
456
  */
@@ -1284,6 +1318,18 @@ class cmdPalette extends HeyApiClient {
1284
1318
  }
1285
1319
  exports.cmdPalette = cmdPalette;
1286
1320
  class diagnostics extends HeyApiClient {
1321
+ /**
1322
+ * Capture a runtime profile over the local socket
1323
+ *
1324
+ * @stability experimental
1325
+ */
1326
+ captureDaemonProfile(options) {
1327
+ return (options.client ?? this.client).get({
1328
+ responseStyle: "data",
1329
+ url: "/api/daemon/profile/{kind}",
1330
+ ...options,
1331
+ });
1332
+ }
1287
1333
  /**
1288
1334
  * Run runtime diagnostics
1289
1335
  */
@@ -3857,6 +3903,16 @@ class sessions extends HeyApiClient {
3857
3903
  },
3858
3904
  });
3859
3905
  }
3906
+ /**
3907
+ * 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
3908
+ */
3909
+ markSessionSeen(options) {
3910
+ return (options.client ?? this.client).post({
3911
+ responseStyle: "data",
3912
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/mark-seen",
3913
+ ...options,
3914
+ });
3915
+ }
3860
3916
  /**
3861
3917
  * List a session's monitors
3862
3918
  */
@@ -3891,6 +3947,20 @@ class sessions extends HeyApiClient {
3891
3947
  },
3892
3948
  });
3893
3949
  }
3950
+ /**
3951
+ * Copy a stopped user session into another profile and archive the original
3952
+ */
3953
+ moveSessionToProfile(options) {
3954
+ return (options.client ?? this.client).post({
3955
+ responseStyle: "data",
3956
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/move-to-profile",
3957
+ ...options,
3958
+ headers: {
3959
+ "Content-Type": "application/json",
3960
+ ...options.headers,
3961
+ },
3962
+ });
3963
+ }
3894
3964
  /**
3895
3965
  * Make an adopted child session top-level, or take over a stopped spawned worker
3896
3966
  */