20 lines
720 B
TypeScript
20 lines
720 B
TypeScript
/**
|
|
* Persists SHA-256 baselines for uploaded file directories (FIM).
|
|
*/
|
|
export type FileIntegritySnapshotRow = {
|
|
root_key: string;
|
|
relative_path: string;
|
|
content_sha256: string;
|
|
size_bytes: string;
|
|
updated_at: Date;
|
|
};
|
|
export declare function listSnapshots(rootKey: string): Promise<FileIntegritySnapshotRow[]>;
|
|
export declare function upsertSnapshot(input: {
|
|
rootKey: string;
|
|
relativePath: string;
|
|
contentSha256: string;
|
|
sizeBytes: number;
|
|
}): Promise<void>;
|
|
export declare function deleteSnapshot(rootKey: string, relativePath: string): Promise<void>;
|
|
export declare function deleteAllForRoot(rootKey: string): Promise<void>;
|
|
//# sourceMappingURL=fileIntegrityRepository.d.ts.map
|