@app-vitals/agent-lib 1.132.0 → 1.134.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.
- package/admin-types.ts +23 -3
- package/package.json +1 -1
package/admin-types.ts
CHANGED
|
@@ -4079,7 +4079,7 @@ export interface paths {
|
|
|
4079
4079
|
put?: never;
|
|
4080
4080
|
/**
|
|
4081
4081
|
* Install an agent's App on an organization
|
|
4082
|
-
* @description Admin-only. Uses the
|
|
4082
|
+
* @description Admin-only. The App is chosen with `appId` (required, 422, when the agent has more than one App; 404 when the agent has no such App). Uses the App's stored client id when set; otherwise resolves the stored GH_APP_SLUG and looks the App up through the public GET /apps/{slug} to get its client id. Installs it on the org with the installer App. 422 for an agent with neither a stored client id nor a slug, and for a private App (not visible to the public lookup) with no stored client id; 409 when the installer App is not configured.
|
|
4083
4083
|
*/
|
|
4084
4084
|
post: {
|
|
4085
4085
|
parameters: {
|
|
@@ -4202,7 +4202,7 @@ export interface paths {
|
|
|
4202
4202
|
};
|
|
4203
4203
|
/**
|
|
4204
4204
|
* Uninstall an agent's App from an organization
|
|
4205
|
-
* @description Admin-only. Finds the
|
|
4205
|
+
* @description Admin-only. Finds the named App's installation on the org (`appId` is required when the agent has several Apps; the agent's other Apps' installations are untouched; matched by client id, slug or app id) and deletes it with the installer App, removes that org's repos from the agent's repos, blocks the agent's open tasks and PRs on them (both skipped when another App of the agent is still installed on the org) through the open-work port (a port failure is a warning) and writes one audit row (uninstall:org). `preview=true` lists the repos and open work that would be affected and changes nothing. 404 when the App is not installed on the org; 422 when more than 10 repos would be removed without `confirmRemovals=true`; 502 (with a failed audit row) when GitHub refuses.
|
|
4206
4206
|
*/
|
|
4207
4207
|
delete: {
|
|
4208
4208
|
parameters: {
|
|
@@ -4210,6 +4210,8 @@ export interface paths {
|
|
|
4210
4210
|
/** @description Account whose App pair to read/write. Omit for the deployment-wide pair. */
|
|
4211
4211
|
accountId?: string;
|
|
4212
4212
|
agentId: string;
|
|
4213
|
+
/** @description Which of the agent's GitHub Apps to uninstall: the App's numeric id (or its AgentGitHubApp row id). Required when the agent has more than one App; defaults to the only App otherwise. */
|
|
4214
|
+
appId?: string;
|
|
4213
4215
|
/** @description true: list the repos and open work an uninstall would affect and change nothing. */
|
|
4214
4216
|
preview?: "true" | "false";
|
|
4215
4217
|
/** @description Required when more than 10 agent repos would be removed. */
|
|
@@ -6194,8 +6196,21 @@ export interface components {
|
|
|
6194
6196
|
owner: string;
|
|
6195
6197
|
/** @example 12345678 */
|
|
6196
6198
|
installationId: number;
|
|
6197
|
-
/**
|
|
6199
|
+
/**
|
|
6200
|
+
* @description Installation state, e.g. "ok", "broken", or "shadowed" (a higher-priority app owns the same owner).
|
|
6201
|
+
* @example active
|
|
6202
|
+
*/
|
|
6198
6203
|
state: string;
|
|
6204
|
+
/**
|
|
6205
|
+
* @description GitHub App id this installation belongs to. Omitted by older agents, which are treated as the single legacy app.
|
|
6206
|
+
* @example 123456
|
|
6207
|
+
*/
|
|
6208
|
+
appId?: string;
|
|
6209
|
+
/**
|
|
6210
|
+
* @description GitHub App slug, when the agent knows it.
|
|
6211
|
+
* @example my-agent-app
|
|
6212
|
+
*/
|
|
6213
|
+
slug?: string;
|
|
6199
6214
|
/**
|
|
6200
6215
|
* @description Sanitized last error message (max 500 chars). Must not contain credentials.
|
|
6201
6216
|
* @example installation suspended
|
|
@@ -6609,6 +6624,11 @@ export interface components {
|
|
|
6609
6624
|
GithubEnterpriseInstallBody: {
|
|
6610
6625
|
/** @example agent-id */
|
|
6611
6626
|
agentId: string;
|
|
6627
|
+
/**
|
|
6628
|
+
* @description Which of the agent's GitHub Apps to install: the App's numeric id (or its AgentGitHubApp row id). Required when the agent has more than one App; defaults to the only App otherwise.
|
|
6629
|
+
* @example 12345
|
|
6630
|
+
*/
|
|
6631
|
+
appId?: string;
|
|
6612
6632
|
/**
|
|
6613
6633
|
* @default all
|
|
6614
6634
|
* @enum {string}
|