@app-vitals/agent-lib 1.88.0 → 1.89.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 +158 -1
- package/package.json +1 -1
package/admin-types.ts
CHANGED
|
@@ -4171,7 +4171,139 @@ export interface paths {
|
|
|
4171
4171
|
};
|
|
4172
4172
|
};
|
|
4173
4173
|
};
|
|
4174
|
-
|
|
4174
|
+
/**
|
|
4175
|
+
* Uninstall an agent's App from an organization
|
|
4176
|
+
* @description Admin-only. Finds the agent App's installation on the org (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 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.
|
|
4177
|
+
*/
|
|
4178
|
+
delete: {
|
|
4179
|
+
parameters: {
|
|
4180
|
+
query: {
|
|
4181
|
+
/** @description Account whose App pair to read/write. Omit for the deployment-wide pair. */
|
|
4182
|
+
accountId?: string;
|
|
4183
|
+
agentId: string;
|
|
4184
|
+
/** @description true: list the repos and open work an uninstall would affect and change nothing. */
|
|
4185
|
+
preview?: "true" | "false";
|
|
4186
|
+
/** @description Required when more than 10 agent repos would be removed. */
|
|
4187
|
+
confirmRemovals?: "true" | "false";
|
|
4188
|
+
};
|
|
4189
|
+
header?: never;
|
|
4190
|
+
path: {
|
|
4191
|
+
org: string;
|
|
4192
|
+
};
|
|
4193
|
+
cookie?: never;
|
|
4194
|
+
};
|
|
4195
|
+
requestBody?: never;
|
|
4196
|
+
responses: {
|
|
4197
|
+
/** @description Uninstalled, or the preview */
|
|
4198
|
+
200: {
|
|
4199
|
+
headers: {
|
|
4200
|
+
[name: string]: unknown;
|
|
4201
|
+
};
|
|
4202
|
+
content: {
|
|
4203
|
+
"application/json": components["schemas"]["GithubEnterpriseUninstallResult"];
|
|
4204
|
+
};
|
|
4205
|
+
};
|
|
4206
|
+
/** @description Bad request */
|
|
4207
|
+
400: {
|
|
4208
|
+
headers: {
|
|
4209
|
+
[name: string]: unknown;
|
|
4210
|
+
};
|
|
4211
|
+
content: {
|
|
4212
|
+
"application/json": components["schemas"]["Error"];
|
|
4213
|
+
};
|
|
4214
|
+
};
|
|
4215
|
+
/** @description Unauthorized */
|
|
4216
|
+
401: {
|
|
4217
|
+
headers: {
|
|
4218
|
+
[name: string]: unknown;
|
|
4219
|
+
};
|
|
4220
|
+
content: {
|
|
4221
|
+
"application/json": components["schemas"]["Error"];
|
|
4222
|
+
};
|
|
4223
|
+
};
|
|
4224
|
+
/** @description Forbidden (non-admin caller) */
|
|
4225
|
+
403: {
|
|
4226
|
+
headers: {
|
|
4227
|
+
[name: string]: unknown;
|
|
4228
|
+
};
|
|
4229
|
+
content: {
|
|
4230
|
+
"application/json": components["schemas"]["Error"];
|
|
4231
|
+
};
|
|
4232
|
+
};
|
|
4233
|
+
/** @description Not found (or not found at GitHub) */
|
|
4234
|
+
404: {
|
|
4235
|
+
headers: {
|
|
4236
|
+
[name: string]: unknown;
|
|
4237
|
+
};
|
|
4238
|
+
content: {
|
|
4239
|
+
"application/json": components["schemas"]["Error"];
|
|
4240
|
+
};
|
|
4241
|
+
};
|
|
4242
|
+
/** @description Installer App not configured */
|
|
4243
|
+
409: {
|
|
4244
|
+
headers: {
|
|
4245
|
+
[name: string]: unknown;
|
|
4246
|
+
};
|
|
4247
|
+
content: {
|
|
4248
|
+
"application/json": components["schemas"]["Error"];
|
|
4249
|
+
};
|
|
4250
|
+
};
|
|
4251
|
+
/** @description Refused or rejected by GitHub */
|
|
4252
|
+
422: {
|
|
4253
|
+
headers: {
|
|
4254
|
+
[name: string]: unknown;
|
|
4255
|
+
};
|
|
4256
|
+
content: {
|
|
4257
|
+
"application/json": components["schemas"]["Error"];
|
|
4258
|
+
};
|
|
4259
|
+
};
|
|
4260
|
+
/** @description GitHub refused the configured App credentials or permission */
|
|
4261
|
+
424: {
|
|
4262
|
+
headers: {
|
|
4263
|
+
[name: string]: unknown;
|
|
4264
|
+
};
|
|
4265
|
+
content: {
|
|
4266
|
+
"application/json": components["schemas"]["Error"];
|
|
4267
|
+
};
|
|
4268
|
+
};
|
|
4269
|
+
/** @description GitHub rate limit */
|
|
4270
|
+
429: {
|
|
4271
|
+
headers: {
|
|
4272
|
+
[name: string]: unknown;
|
|
4273
|
+
};
|
|
4274
|
+
content: {
|
|
4275
|
+
"application/json": components["schemas"]["Error"];
|
|
4276
|
+
};
|
|
4277
|
+
};
|
|
4278
|
+
/** @description GitHub unavailable or returned an unexpected response */
|
|
4279
|
+
502: {
|
|
4280
|
+
headers: {
|
|
4281
|
+
[name: string]: unknown;
|
|
4282
|
+
};
|
|
4283
|
+
content: {
|
|
4284
|
+
"application/json": components["schemas"]["Error"];
|
|
4285
|
+
};
|
|
4286
|
+
};
|
|
4287
|
+
/** @description Uninstall is not available */
|
|
4288
|
+
503: {
|
|
4289
|
+
headers: {
|
|
4290
|
+
[name: string]: unknown;
|
|
4291
|
+
};
|
|
4292
|
+
content: {
|
|
4293
|
+
"application/json": components["schemas"]["Error"];
|
|
4294
|
+
};
|
|
4295
|
+
};
|
|
4296
|
+
/** @description GitHub unreachable */
|
|
4297
|
+
504: {
|
|
4298
|
+
headers: {
|
|
4299
|
+
[name: string]: unknown;
|
|
4300
|
+
};
|
|
4301
|
+
content: {
|
|
4302
|
+
"application/json": components["schemas"]["Error"];
|
|
4303
|
+
};
|
|
4304
|
+
};
|
|
4305
|
+
};
|
|
4306
|
+
};
|
|
4175
4307
|
options?: never;
|
|
4176
4308
|
head?: never;
|
|
4177
4309
|
patch?: never;
|
|
@@ -6101,6 +6233,11 @@ export interface components {
|
|
|
6101
6233
|
appRemoves?: string[];
|
|
6102
6234
|
/** @description Configured agent repos the bound user can no longer push to. The agent's repos are never added to. */
|
|
6103
6235
|
agentRemoves?: string[];
|
|
6236
|
+
/** @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. */
|
|
6237
|
+
selectionSwitches?: {
|
|
6238
|
+
org: string;
|
|
6239
|
+
repos: string[];
|
|
6240
|
+
}[];
|
|
6104
6241
|
/** @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). */
|
|
6105
6242
|
skippedOrgs?: {
|
|
6106
6243
|
org: string;
|
|
@@ -6145,6 +6282,11 @@ export interface components {
|
|
|
6145
6282
|
appAdds?: string[];
|
|
6146
6283
|
appRemoves?: string[];
|
|
6147
6284
|
agentRemoves?: string[];
|
|
6285
|
+
/** @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. */
|
|
6286
|
+
selectionSwitches?: {
|
|
6287
|
+
org: string;
|
|
6288
|
+
repos: string[];
|
|
6289
|
+
}[];
|
|
6148
6290
|
/** @description Confirmed repos left alone: access changed since the preview, the org was skipped, or the repo is not where the change expected it. */
|
|
6149
6291
|
notApplied?: {
|
|
6150
6292
|
repo: string;
|
|
@@ -6385,6 +6527,21 @@ export interface components {
|
|
|
6385
6527
|
repositorySelection: "all" | "selected" | "none";
|
|
6386
6528
|
repositories?: string[];
|
|
6387
6529
|
};
|
|
6530
|
+
GithubEnterpriseUninstallResult: {
|
|
6531
|
+
/** @enum {string} */
|
|
6532
|
+
status: "preview" | "uninstalled";
|
|
6533
|
+
org: string;
|
|
6534
|
+
installationId: number;
|
|
6535
|
+
/** @description The agent's repos in the org, removed from the agent. */
|
|
6536
|
+
repos: string[];
|
|
6537
|
+
openWork: {
|
|
6538
|
+
id: string;
|
|
6539
|
+
repo: string;
|
|
6540
|
+
title?: string;
|
|
6541
|
+
}[];
|
|
6542
|
+
warnings: string[];
|
|
6543
|
+
auditId?: string;
|
|
6544
|
+
};
|
|
6388
6545
|
AgentTemplatesList: {
|
|
6389
6546
|
templates: components["schemas"]["AgentTemplate"][];
|
|
6390
6547
|
};
|