@app-vitals/agent-lib 1.110.0 → 1.112.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 +1 -126
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -3041,92 +3041,6 @@ export interface paths {
3041
3041
  patch?: never;
3042
3042
  trace?: never;
3043
3043
  };
3044
- "/agents/{id}/github-access": {
3045
- parameters: {
3046
- query?: never;
3047
- header?: never;
3048
- path?: never;
3049
- cookie?: never;
3050
- };
3051
- /**
3052
- * Preview the repos the agent's bound GitHub user can reach
3053
- * @description Platform-admin only (session members, ops keys and agent keys get 403): the response lists repo names the bound user can reach. Read-only; nothing is stored. 404 for an unknown agent; 422 when no githubUsername is bound. Returns `status: unconfigured` (not an error, no GitHub call) when the lookup App is not configured (the installer App is optional), and `status: user_not_found` when the user does not exist on GitHub; otherwise `access` is the resolver output (per-org status, repos with level and canPush, unresolved count, complete flag).
3054
- */
3055
- get: {
3056
- parameters: {
3057
- query?: never;
3058
- header?: never;
3059
- path: {
3060
- id: string;
3061
- };
3062
- cookie?: never;
3063
- };
3064
- requestBody?: never;
3065
- responses: {
3066
- /** @description Access preview */
3067
- 200: {
3068
- headers: {
3069
- [name: string]: unknown;
3070
- };
3071
- content: {
3072
- "application/json": components["schemas"]["GithubAccessPreview"];
3073
- };
3074
- };
3075
- /** @description Unauthorized */
3076
- 401: {
3077
- headers: {
3078
- [name: string]: unknown;
3079
- };
3080
- content: {
3081
- "application/json": components["schemas"]["Error"];
3082
- };
3083
- };
3084
- /** @description Platform admin required */
3085
- 403: {
3086
- headers: {
3087
- [name: string]: unknown;
3088
- };
3089
- content: {
3090
- "application/json": components["schemas"]["Error"];
3091
- };
3092
- };
3093
- /** @description Agent not found */
3094
- 404: {
3095
- headers: {
3096
- [name: string]: unknown;
3097
- };
3098
- content: {
3099
- "application/json": components["schemas"]["Error"];
3100
- };
3101
- };
3102
- /** @description Agent has no githubUsername */
3103
- 422: {
3104
- headers: {
3105
- [name: string]: unknown;
3106
- };
3107
- content: {
3108
- "application/json": components["schemas"]["Error"];
3109
- };
3110
- };
3111
- /** @description GitHub unavailable or refused */
3112
- 502: {
3113
- headers: {
3114
- [name: string]: unknown;
3115
- };
3116
- content: {
3117
- "application/json": components["schemas"]["Error"];
3118
- };
3119
- };
3120
- };
3121
- };
3122
- put?: never;
3123
- post?: never;
3124
- delete?: never;
3125
- options?: never;
3126
- head?: never;
3127
- patch?: never;
3128
- trace?: never;
3129
- };
3130
3044
  "/agents/{id}/github-installation/repos": {
3131
3045
  parameters: {
3132
3046
  query?: never;
@@ -6021,35 +5935,6 @@ export interface components {
6021
5935
  */
6022
5936
  names: string[];
6023
5937
  };
6024
- GithubAccessPreview: {
6025
- /**
6026
- * @description `unconfigured` when the lookup App or its key is not set (no GitHub call was made). The installer App is optional.
6027
- * @enum {string}
6028
- */
6029
- status: "ok" | "user_not_found" | "unconfigured";
6030
- /** @description Resolver output; absent when unconfigured. */
6031
- access?: {
6032
- username: string;
6033
- /** @enum {string} */
6034
- outcome: "ok" | "user_not_found";
6035
- userVerified: boolean;
6036
- orgs: {
6037
- org: string;
6038
- /** @enum {string} */
6039
- status: "ok" | "lookup_app_not_installed" | "rate_limited" | "partial" | "error";
6040
- repos: {
6041
- fullName: string;
6042
- /** @enum {string} */
6043
- level: "admin" | "maintain" | "write" | "triage" | "read" | "none";
6044
- canPush: boolean;
6045
- }[];
6046
- unresolved: number;
6047
- }[];
6048
- unresolved: number;
6049
- complete: boolean;
6050
- checkedAt: string;
6051
- };
6052
- };
6053
5938
  GithubInstallationReposList: {
6054
5939
  appId: number;
6055
5940
  /**
@@ -6130,12 +6015,7 @@ export interface components {
6130
6015
  appRemoves?: string[];
6131
6016
  /** @description Configured agent repos the bound user can no longer push to. The agent's repos are never added to. */
6132
6017
  agentRemoves?: string[];
6133
- /** @description Orgs whose agent App installation is on All repositories. Sync switches each to Selected repositories (first 50 repos in the switch, the rest added in batches) before any add or remove; `repos` is the resulting list: the installed repos minus the org's confirmed removals. An org the bound user can push to nothing in is skipped (see `skippedOrgs`) and stays on All repositories. */
6134
- selectionSwitches?: {
6135
- org: string;
6136
- repos: string[];
6137
- }[];
6138
- /** @description Orgs whose access listing is missing, partial or failed, whose cached access data is incomplete or stale, or whose lookup App is not installed or installed on selected repositories only; nothing there is added or removed. `reason` says why (for stale data, when it was checked). */
6018
+ /** @description Orgs whose access listing is missing, partial or failed, whose cached access data is incomplete or stale, or whose lookup App is not installed or installed on selected repositories only, or whose agent App installation is on All repositories (uninstall and reinstall with selected repositories); nothing there is added or removed. `reason` says why (for stale data, when it was checked). */
6139
6019
  skippedOrgs?: {
6140
6020
  org: string;
6141
6021
  reason: string;
@@ -6179,11 +6059,6 @@ export interface components {
6179
6059
  appAdds?: string[];
6180
6060
  appRemoves?: string[];
6181
6061
  agentRemoves?: string[];
6182
- /** @description Orgs whose agent App installation is on All repositories. Sync switches each to Selected repositories (first 50 repos in the switch, the rest added in batches) before any add or remove; `repos` is the resulting list: the installed repos minus the org's confirmed removals. An org the bound user can push to nothing in is skipped (see `skippedOrgs`) and stays on All repositories. */
6183
- selectionSwitches?: {
6184
- org: string;
6185
- repos: string[];
6186
- }[];
6187
6062
  /** @description Confirmed repos left alone: access changed since the preview, the org was skipped, or the repo is not where the change expected it. */
6188
6063
  notApplied?: {
6189
6064
  repo: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.110.0",
3
+ "version": "1.112.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",