execution/google-identity-attestation-recovery
@sarj-ai/workspace-sync/execution/google-identity-attestation-recovery ยท Source
import type { D1Database } from "@cloudflare/workers-types";import type { GoogleWorkspaceIdentityUserGateway } from "../org-sync/google-identity-schema.ts";/** Reads one immutable historical target only. Recovery has no provider mutation port. */interface IdentityAttemptRecoverySnapshot { attemptId: null | string; resolved: boolean; sourceHash: string; target: "after" | "before" | null;}interface SettleIdentityAttemptInput { attemptId: string; changeHash: string; sourceHash: string; target: "after" | "before";}export interface IGoogleIdentityAttestationRecovery { read(): Promise<IdentityAttemptRecoverySnapshot>; settle(input: SettleIdentityAttemptInput): Promise<void>;}export declare class GoogleIdentityAttestationRecovery implements IGoogleIdentityAttestationRecovery { #private; constructor(database: D1Database, google: Pick<GoogleWorkspaceIdentityUserGateway, "readUserById">, now?: () => number); read(): Promise<IdentityAttemptRecoverySnapshot>; settle(input: SettleIdentityAttemptInput): Promise<void>;}export {};