@app-vitals/agent-lib 1.107.5 → 1.108.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.
Files changed (2) hide show
  1. package/admin-types.ts +94 -6
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -4222,7 +4222,7 @@ export interface paths {
4222
4222
  "application/json": components["schemas"]["Error"];
4223
4223
  };
4224
4224
  };
4225
- /** @description Forbidden (caller has no account, or names another account / the deployment scope) */
4225
+ /** @description Forbidden (caller is not an account owner, or names another account / the deployment scope) */
4226
4226
  403: {
4227
4227
  headers: {
4228
4228
  [name: string]: unknown;
@@ -4295,7 +4295,7 @@ export interface paths {
4295
4295
  "application/json": components["schemas"]["Error"];
4296
4296
  };
4297
4297
  };
4298
- /** @description Forbidden (caller has no account, or names another account / the deployment scope) */
4298
+ /** @description Forbidden (caller is not an account owner, or names another account / the deployment scope) */
4299
4299
  403: {
4300
4300
  headers: {
4301
4301
  [name: string]: unknown;
@@ -4371,7 +4371,7 @@ export interface paths {
4371
4371
  "application/json": components["schemas"]["Error"];
4372
4372
  };
4373
4373
  };
4374
- /** @description Forbidden (caller has no account, or names another account / the deployment scope) */
4374
+ /** @description Forbidden (caller is not an account owner, or names another account / the deployment scope) */
4375
4375
  403: {
4376
4376
  headers: {
4377
4377
  [name: string]: unknown;
@@ -4424,7 +4424,7 @@ export interface paths {
4424
4424
  "application/json": components["schemas"]["Error"];
4425
4425
  };
4426
4426
  };
4427
- /** @description Forbidden (caller has no account, or names another account / the deployment scope) */
4427
+ /** @description Forbidden (caller is not an account owner, or names another account / the deployment scope) */
4428
4428
  403: {
4429
4429
  headers: {
4430
4430
  [name: string]: unknown;
@@ -4503,7 +4503,7 @@ export interface paths {
4503
4503
  "application/json": components["schemas"]["Error"];
4504
4504
  };
4505
4505
  };
4506
- /** @description Forbidden (caller has no account, or names another account / the deployment scope) */
4506
+ /** @description Forbidden (caller is not an account owner, or names another account / the deployment scope) */
4507
4507
  403: {
4508
4508
  headers: {
4509
4509
  [name: string]: unknown;
@@ -4567,7 +4567,7 @@ export interface paths {
4567
4567
  "application/json": components["schemas"]["Error"];
4568
4568
  };
4569
4569
  };
4570
- /** @description Forbidden (caller has no account, or names another account / the deployment scope) */
4570
+ /** @description Forbidden (caller is not an account owner, or names another account / the deployment scope) */
4571
4571
  403: {
4572
4572
  headers: {
4573
4573
  [name: string]: unknown;
@@ -4739,6 +4739,76 @@ export interface paths {
4739
4739
  patch?: never;
4740
4740
  trace?: never;
4741
4741
  };
4742
+ "/account-lookup/by-repos": {
4743
+ parameters: {
4744
+ query?: never;
4745
+ header?: never;
4746
+ path?: never;
4747
+ cookie?: never;
4748
+ };
4749
+ get?: never;
4750
+ put?: never;
4751
+ /**
4752
+ * Resolve repos to the accounts of the agents that list them
4753
+ * @description Admin-only. For each repo, the distinct accounts of the agents that list it, matched case-insensitively. An agent with no account counts as the default account. Also reports whether the deployment has exactly one account and its id.
4754
+ */
4755
+ post: {
4756
+ parameters: {
4757
+ query?: never;
4758
+ header?: never;
4759
+ path?: never;
4760
+ cookie?: never;
4761
+ };
4762
+ requestBody?: {
4763
+ content: {
4764
+ "application/json": components["schemas"]["AccountRepoLookupBody"];
4765
+ };
4766
+ };
4767
+ responses: {
4768
+ /** @description Accounts per repo and the single-account report */
4769
+ 200: {
4770
+ headers: {
4771
+ [name: string]: unknown;
4772
+ };
4773
+ content: {
4774
+ "application/json": components["schemas"]["AccountRepoLookupResponse"];
4775
+ };
4776
+ };
4777
+ /** @description Bad request */
4778
+ 400: {
4779
+ headers: {
4780
+ [name: string]: unknown;
4781
+ };
4782
+ content: {
4783
+ "application/json": components["schemas"]["Error"];
4784
+ };
4785
+ };
4786
+ /** @description Unauthorized */
4787
+ 401: {
4788
+ headers: {
4789
+ [name: string]: unknown;
4790
+ };
4791
+ content: {
4792
+ "application/json": components["schemas"]["Error"];
4793
+ };
4794
+ };
4795
+ /** @description Forbidden (non-admin caller) */
4796
+ 403: {
4797
+ headers: {
4798
+ [name: string]: unknown;
4799
+ };
4800
+ content: {
4801
+ "application/json": components["schemas"]["Error"];
4802
+ };
4803
+ };
4804
+ };
4805
+ };
4806
+ delete?: never;
4807
+ options?: never;
4808
+ head?: never;
4809
+ patch?: never;
4810
+ trace?: never;
4811
+ };
4742
4812
  }
4743
4813
  export type webhooks = Record<string, never>;
4744
4814
  export interface components {
@@ -6446,6 +6516,24 @@ export interface components {
6446
6516
  PrincipalLookupBody: {
6447
6517
  ids: string[];
6448
6518
  };
6519
+ AccountRepoLookupResponse: {
6520
+ repos: {
6521
+ /** @example acme/widgets */
6522
+ repo: string;
6523
+ /**
6524
+ * @example [
6525
+ * "acct-a"
6526
+ * ]
6527
+ */
6528
+ accountIds: string[];
6529
+ }[];
6530
+ singleAccount: boolean;
6531
+ /** @description Set only when singleAccount is true */
6532
+ singleAccountId: string | null;
6533
+ };
6534
+ AccountRepoLookupBody: {
6535
+ repos: string[];
6536
+ };
6449
6537
  };
6450
6538
  responses: never;
6451
6539
  parameters: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.107.5",
3
+ "version": "1.108.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",