@app-vitals/agent-lib 1.2.6 → 1.3.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 +4 -2
- 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`, `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). `specialty` and `trialExpiryWarnedAt`
|
|
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). `specialty` (platform admin only — 403 otherwise; 422 when the type is unknown; a no-op when unchanged; otherwise persists the new type, reconciles the agent's system crons against it — system crons the new type does not declare are deleted, user crons survive — and reconciles the workload of in-cluster agents so the pod runs the image mapped to the new specialty). `trialExpiryWarnedAt` is 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: {
|
|
@@ -343,7 +343,7 @@ export interface paths {
|
|
|
343
343
|
"application/json": components["schemas"]["Error"];
|
|
344
344
|
};
|
|
345
345
|
};
|
|
346
|
-
/** @description podServiceAccountName supplied for an agent with a per-agent federated identity */
|
|
346
|
+
/** @description podServiceAccountName supplied for an agent with a per-agent federated identity, or `specialty` naming an unknown type */
|
|
347
347
|
422: {
|
|
348
348
|
headers: {
|
|
349
349
|
[name: string]: unknown;
|
|
@@ -3214,6 +3214,8 @@ export interface components {
|
|
|
3214
3214
|
slackId?: string | null;
|
|
3215
3215
|
/** @example false */
|
|
3216
3216
|
selfHosted?: boolean;
|
|
3217
|
+
/** @example specialist */
|
|
3218
|
+
specialty?: string;
|
|
3217
3219
|
/**
|
|
3218
3220
|
* @example [
|
|
3219
3221
|
* "my-org/my-repo"
|