@app-vitals/agent-lib 0.5.0 → 0.6.1
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 +22 -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
|