@app-vitals/agent-lib 1.123.0 → 1.124.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.
Files changed (2) hide show
  1. package/admin-types.ts +8 -4
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -565,11 +565,13 @@ export interface paths {
565
565
  };
566
566
  /**
567
567
  * List all agents
568
- * @description Admin-only. Returns every agent's `id`, `name`, `selfHosted`, and `specialty` — used for metrics name resolution.
568
+ * @description Admin-only. Returns every agent's `id`, `name`, `selfHosted`, and `specialty` — used for metrics name resolution. Optional `accountId` restricts the list to that account's agents; a non-admin caller naming an account other than its own gets 403.
569
569
  */
570
570
  get: {
571
571
  parameters: {
572
- query?: never;
572
+ query?: {
573
+ accountId?: string;
574
+ };
573
575
  header?: never;
574
576
  path?: never;
575
577
  cookie?: never;
@@ -2416,13 +2418,14 @@ export interface paths {
2416
2418
  };
2417
2419
  /**
2418
2420
  * Get aggregated cron-run token stats
2419
- * @description Admin-only. Returns token usage and cost aggregated across all agents' cron runs, broken down by agent, cron, model, day, and pipeline phase. Optional `from`/`to` ISO datetime query params bound the range.
2421
+ * @description Admin-only. Returns token usage and cost aggregated across all agents' cron runs, broken down by agent, cron, model, day, and pipeline phase. Optional `from`/`to` ISO datetime query params bound the range; optional `accountId` restricts the stats to that account's agents.
2420
2422
  */
2421
2423
  get: {
2422
2424
  parameters: {
2423
2425
  query?: {
2424
2426
  from?: string;
2425
2427
  to?: string;
2428
+ accountId?: string;
2426
2429
  };
2427
2430
  header?: never;
2428
2431
  path?: never;
@@ -2660,13 +2663,14 @@ export interface paths {
2660
2663
  };
2661
2664
  /**
2662
2665
  * Get aggregated chat token daily stats
2663
- * @description Admin-only. Returns Slack chat token usage aggregated across all agents, broken down by agent, model, and day. Optional `from`/`to` YYYY-MM-DD query params bound the range.
2666
+ * @description Admin-only. Returns Slack chat token usage aggregated across all agents, broken down by agent, model, and day. Optional `from`/`to` YYYY-MM-DD query params bound the range; optional `accountId` restricts the stats to that account's agents.
2664
2667
  */
2665
2668
  get: {
2666
2669
  parameters: {
2667
2670
  query?: {
2668
2671
  from?: string;
2669
2672
  to?: string;
2673
+ accountId?: string;
2670
2674
  };
2671
2675
  header?: never;
2672
2676
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.123.0",
3
+ "version": "1.124.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",