/** * `@sylphx/management/adminEnvServices` — operator repoint of env-service * desired-image pointers (OPS-4). * * Mirrors `POST /admin/env-services/repoint` in * `apps/api/src/server/platform/routes/admin/env-services.ts`. Replaces * the raw `UPDATE environment_services …` historically run from psql * per `docs/how-to/customer-image-gc-outreach.md`. */ import type { Client } from './client.js'; export interface RepointEnvServiceInput { /** TypeID (`env_*`) of the target environment. */ readonly envId: string; /** Service name within the project (`project_services.name`). */ readonly service: string; /** Image digest to repoint to. Format: `sha256:<64hex>`. */ readonly digest: string; /** Audit narrative. Min 3 chars. */ readonly reason: string; } export interface RepointEnvServiceResult { /** TypeID (`esvc_*`) of the env_service that was re-pointed. */ readonly envServiceId: string; /** Image digest the env_service was previously pointing to (null on first repoint). */ readonly previousDigest: string | null; /** Echo of the request `digest`. */ readonly newDigest: string; /** TypeID (`dpl_*`) of the deployments row that carries the new pointer. */ readonly deploymentId: string; /** `true` iff an existing deployments row was reused instead of inserted. */ readonly reused: boolean; } /** * Repoint an env_service to a specific image digest. The artifact MUST * already exist for `(serviceId, digest)`; the endpoint never mints * artifacts. Returns 404 on any of: env not found, service name not in * project, env_service not attached, artifact missing. Returns 409 if * the env_service is in a terminal lifecycle state. */ export declare const repoint: (client: Client, input: RepointEnvServiceInput) => Promise; //# sourceMappingURL=adminEnvServices.d.ts.map