@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.
@@ -33,7 +33,7 @@ export class agents extends HeyApiClient {
33
33
  });
34
34
  }
35
35
  /**
36
- * Create a stays-on agent instance
36
+ * Create an always-on agent instance
37
37
  */
38
38
  createAgentInstance(options) {
39
39
  return (options.client ?? this.client).post({
@@ -414,6 +414,40 @@ export class agents extends HeyApiClient {
414
414
  },
415
415
  });
416
416
  }
417
+ /**
418
+ * Revoke a source script approval (operator only)
419
+ */
420
+ revokeAgentHeartbeatScript(options) {
421
+ return (options.client ?? this.client).delete({
422
+ responseStyle: "data",
423
+ url: "/api/agents/{name}/heartbeat/scripts/{script}/approve",
424
+ ...options,
425
+ });
426
+ }
427
+ /**
428
+ * Approve exact source script bytes (operator only)
429
+ */
430
+ approveAgentHeartbeatScript(options) {
431
+ return (options.client ?? this.client).post({
432
+ responseStyle: "data",
433
+ url: "/api/agents/{name}/heartbeat/scripts/{script}/approve",
434
+ ...options,
435
+ headers: {
436
+ "Content-Type": "application/json",
437
+ ...options.headers,
438
+ },
439
+ });
440
+ }
441
+ /**
442
+ * List check-in source kinds, scripts and effective limits
443
+ */
444
+ getAgentHeartbeatSources(options) {
445
+ return (options.client ?? this.client).get({
446
+ responseStyle: "data",
447
+ url: "/api/agents/{name}/heartbeat/sources",
448
+ ...options,
449
+ });
450
+ }
417
451
  /**
418
452
  * Read Heartbeat policy status, wake state, and optional session health
419
453
  */
@@ -1276,6 +1310,18 @@ export class cmdPalette extends HeyApiClient {
1276
1310
  }
1277
1311
  }
1278
1312
  export class diagnostics extends HeyApiClient {
1313
+ /**
1314
+ * Capture a runtime profile over the local socket
1315
+ *
1316
+ * @stability experimental
1317
+ */
1318
+ captureDaemonProfile(options) {
1319
+ return (options.client ?? this.client).get({
1320
+ responseStyle: "data",
1321
+ url: "/api/daemon/profile/{kind}",
1322
+ ...options,
1323
+ });
1324
+ }
1279
1325
  /**
1280
1326
  * Run runtime diagnostics
1281
1327
  */
@@ -3835,6 +3881,16 @@ export class sessions extends HeyApiClient {
3835
3881
  },
3836
3882
  });
3837
3883
  }
3884
+ /**
3885
+ * 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
3886
+ */
3887
+ markSessionSeen(options) {
3888
+ return (options.client ?? this.client).post({
3889
+ responseStyle: "data",
3890
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/mark-seen",
3891
+ ...options,
3892
+ });
3893
+ }
3838
3894
  /**
3839
3895
  * List a session's monitors
3840
3896
  */
@@ -3869,6 +3925,20 @@ export class sessions extends HeyApiClient {
3869
3925
  },
3870
3926
  });
3871
3927
  }
3928
+ /**
3929
+ * Copy a stopped user session into another profile and archive the original
3930
+ */
3931
+ moveSessionToProfile(options) {
3932
+ return (options.client ?? this.client).post({
3933
+ responseStyle: "data",
3934
+ url: "/api/workspaces/{workspace_id}/sessions/{session_id}/move-to-profile",
3935
+ ...options,
3936
+ headers: {
3937
+ "Content-Type": "application/json",
3938
+ ...options.headers,
3939
+ },
3940
+ });
3941
+ }
3872
3942
  /**
3873
3943
  * Make an adopted child session top-level, or take over a stopped spawned worker
3874
3944
  */