@app-vitals/agent-lib 1.107.4 → 1.108.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 +88 -0
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -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.4",
3
+ "version": "1.108.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",