/** * Row mapping for the `governance_events` table (migration 004). * * Mirror of the existing `recordToRow`/`rowToRecord` pattern in * `postgres-sink.ts`/`replay.ts`, but for governance events instead of * intent audits. The Postgres column for `actor` is JSONB; pg drivers * return parsed JSON automatically, so we accept the parsed object * directly. */ import { type Actor, type GovernanceEvent } from "@adjudicate/admin-sdk"; /** Shape of one row in the `governance_events` table. */ export interface GovernanceEventRow { readonly id: string; readonly at: string; readonly kind: string; readonly actor: Actor; readonly previous_status: string; readonly new_status: string; readonly reason: string; } /** * Convert a `GovernanceEvent` (SDK domain type) to its `governance_events` * row shape. Used by adopters wiring `PostgresGovernanceWriter`. */ export declare function governanceEventToRow(e: GovernanceEvent): GovernanceEventRow; /** * Reconstruct a `GovernanceEvent` from a stored row. Inverse of * `governanceEventToRow`. Defensive on TIMESTAMPTZ — accepts string or * Date and normalizes. */ export declare function rowToGovernanceEvent(row: GovernanceEventRow): GovernanceEvent; //# sourceMappingURL=governance-events.d.ts.map