@app-vitals/agent-lib 0.4.0 → 0.6.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 +47 -1
- package/package.json +1 -1
package/admin-types.ts
CHANGED
|
@@ -281,7 +281,7 @@ export interface paths {
|
|
|
281
281
|
head?: never;
|
|
282
282
|
/**
|
|
283
283
|
* Update an agent
|
|
284
|
-
* @description Admin-only. Updates `selfHosted`, `repos`, `reviewAuthorAllowlist`, `patchAuthorAllowlist`, `restrictSlackToMembers`, `slackId`, `trialExpiresAt`,
|
|
284
|
+
* @description Admin-only. Updates `selfHosted`, `repos`, `reviewAuthorAllowlist`, `patchAuthorAllowlist`, `restrictSlackToMembers`, `slackId`, `trialExpiresAt`, `accountId` (platform admin only — 403 for session members; `null` clears it; reconciles the workload of in-cluster agents; does not move historical task-store rows), and/or `podServiceAccountName` (platform admin only — 403 otherwise; `null` clears it; 409 unless SHIPWRIGHT_K8S_AGENT_POD_SERVICE_ACCOUNT_ENABLED is on; 422 for agents with a per-agent federated identity; reconciles the workload so the pod is recreated under the new ServiceAccount). `typeName` and `trialExpiryWarnedAt` are not updatable via this route. `repos` here REPLACES the whole list; for incremental changes use `POST /agents/{id}/repos` (add) and `DELETE /agents/{id}/repos/{owner}/{name}` (remove). Returns the updated agent, including a `warning` field when `restrictSlackToMembers` is set true on an agent with zero members.
|
|
285
285
|
*/
|
|
286
286
|
patch: {
|
|
287
287
|
parameters: {
|
|
@@ -334,6 +334,24 @@ export interface paths {
|
|
|
334
334
|
"application/json": components["schemas"]["Error"];
|
|
335
335
|
};
|
|
336
336
|
};
|
|
337
|
+
/** @description podServiceAccountName supplied while the pod ServiceAccount flag is off */
|
|
338
|
+
409: {
|
|
339
|
+
headers: {
|
|
340
|
+
[name: string]: unknown;
|
|
341
|
+
};
|
|
342
|
+
content: {
|
|
343
|
+
"application/json": components["schemas"]["Error"];
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
/** @description podServiceAccountName supplied for an agent with a per-agent federated identity */
|
|
347
|
+
422: {
|
|
348
|
+
headers: {
|
|
349
|
+
[name: string]: unknown;
|
|
350
|
+
};
|
|
351
|
+
content: {
|
|
352
|
+
"application/json": components["schemas"]["Error"];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
337
355
|
};
|
|
338
356
|
};
|
|
339
357
|
trace?: never;
|
|
@@ -3158,6 +3176,7 @@ export interface components {
|
|
|
3158
3176
|
patchAuthorAllowlist: string[];
|
|
3159
3177
|
restrictSlackToMembers: boolean;
|
|
3160
3178
|
typeName: string;
|
|
3179
|
+
podServiceAccountName: string | null;
|
|
3161
3180
|
accountId: string | null;
|
|
3162
3181
|
/** Format: date-time */
|
|
3163
3182
|
createdAt: string;
|
|
@@ -3217,6 +3236,8 @@ export interface components {
|
|
|
3217
3236
|
restrictSlackToMembers?: boolean;
|
|
3218
3237
|
/** @example acct_123 */
|
|
3219
3238
|
accountId?: string | null;
|
|
3239
|
+
/** @example agent-pod-sa */
|
|
3240
|
+
podServiceAccountName?: string | null;
|
|
3220
3241
|
/**
|
|
3221
3242
|
* Format: date-time
|
|
3222
3243
|
* @example 2026-12-01T00:00:00.000Z
|
|
@@ -4143,6 +4164,8 @@ export interface components {
|
|
|
4143
4164
|
*/
|
|
4144
4165
|
reportedAt: string;
|
|
4145
4166
|
installations: components["schemas"]["GitHubInstallation"][];
|
|
4167
|
+
/** @description Latest per-repo access probe result; null until a runtime with the repo-access check enabled reports one. */
|
|
4168
|
+
repoAccess: components["schemas"]["RepoAccessEntry"][] | null;
|
|
4146
4169
|
/**
|
|
4147
4170
|
* Format: date-time
|
|
4148
4171
|
* @example 2026-01-01T00:00:00.000Z
|
|
@@ -4162,6 +4185,27 @@ export interface components {
|
|
|
4162
4185
|
*/
|
|
4163
4186
|
lastError?: string | null;
|
|
4164
4187
|
};
|
|
4188
|
+
RepoAccessEntry: {
|
|
4189
|
+
/** @example agent */
|
|
4190
|
+
repo: string;
|
|
4191
|
+
/** @example app-vitals */
|
|
4192
|
+
owner: string;
|
|
4193
|
+
/** @example true */
|
|
4194
|
+
read: boolean;
|
|
4195
|
+
/** @example false */
|
|
4196
|
+
write: boolean;
|
|
4197
|
+
/**
|
|
4198
|
+
* Format: date-time
|
|
4199
|
+
* @example 2026-01-01T00:00:00.000Z
|
|
4200
|
+
*/
|
|
4201
|
+
checkedAt: string;
|
|
4202
|
+
/**
|
|
4203
|
+
* @description Why the probe could not read the repo; absent when the probe succeeded.
|
|
4204
|
+
* @example not_found
|
|
4205
|
+
* @enum {string}
|
|
4206
|
+
*/
|
|
4207
|
+
error?: "not_found" | "forbidden" | "rate_limited" | "network";
|
|
4208
|
+
};
|
|
4165
4209
|
PutGitHubInstallationsBody: {
|
|
4166
4210
|
/**
|
|
4167
4211
|
* Format: date-time
|
|
@@ -4169,6 +4213,8 @@ export interface components {
|
|
|
4169
4213
|
*/
|
|
4170
4214
|
reportedAt: string;
|
|
4171
4215
|
installations: components["schemas"]["GitHubInstallation"][];
|
|
4216
|
+
/** @description Per-repo access probe result (COS-44.1). Omit to leave the stored result unchanged; send [] to clear it. */
|
|
4217
|
+
repos?: components["schemas"]["RepoAccessEntry"][];
|
|
4172
4218
|
};
|
|
4173
4219
|
AgentConfigResponse: {
|
|
4174
4220
|
/**
|