/** * `@sylphx/management/adminReconcile` — operator reset of `reconcile_status`. * * Mirrors `POST /admin/reconcile/reset` in * `apps/api/src/server/platform/routes/admin/reconcile.ts`. Replaces the * raw `UPDATE … SET reconcile_status = 'pending'` historically run from * psql per `docs/how-to/reconciler-cleanup-semantic.md`. */ import type { Client } from './client.js'; export type ReconcileKind = 'service' | 'environment'; export type ReconcileTarget = 'pending' | 'synced'; export interface ResetReconcileInput { /** `service` → `environment_services` row; `environment` → `project_environments` row. */ readonly kind: ReconcileKind; /** TypeID — `esvc_*` for `service`, `env_*` for `environment`. */ readonly id: string; /** * Target `reconcile_status`. * * - `pending` — re-arm the reconciler (also bumps `generation`). * - `synced` — mark complete after out-of-band verification. */ readonly to: ReconcileTarget; /** Audit narrative. Min 3 chars. */ readonly reason: string; } export interface ResetReconcileResult { readonly kind: ReconcileKind; /** TypeID. */ readonly id: string; /** `reconcile_status` value the row carried just before the UPDATE landed. */ readonly previousStatus: string; /** Final `reconcile_status` (matches `to`). */ readonly newStatus: ReconcileTarget; /** `true` iff the endpoint additionally incremented `generation`. */ readonly generationBumped: boolean; } /** * Reset reconcile_status on a service or environment row. Refuses * `terminating`/`terminated` source states (use force-delete via OPS-3 * instead) and refuses illegal transitions per the route file's * transition table. */ export declare const reset: (client: Client, input: ResetReconcileInput) => Promise; //# sourceMappingURL=adminReconcile.d.ts.map