autopv-cli
Version:
AutoPrivacy DSAR evidence-pack generator - Automated GDPR compliance for SaaS companies
42 lines (41 loc) • 1.25 kB
TypeScript
/**
* Encrypted Archive Utility
* Creates password-protected zip archives for evidence files
*/
export interface ArchiveResult {
archivePath: string;
filesArchived: string[];
archiveSize: number;
compressionRatio: number;
success: boolean;
error?: string;
}
export declare class ArchiveCreator {
private outputDir;
private password;
constructor(outputDir: string, password: string);
/**
* Create encrypted zip archive from evidence files
*/
createEncryptedArchive(files: string[], archiveName?: string): Promise<ArchiveResult>;
/**
* Create zip archive using yazl
*/
private createZipArchive;
/**
* Test archive existence and basic validity (for verification)
*/
testArchive(archivePath: string): Promise<boolean>;
/**
* Clean up original files after successful archiving
*/
cleanupOriginalFiles(files: string[]): void;
/**
* Generate archive summary report
*/
generateArchiveReport(result: ArchiveResult): string;
}
/**
* Convenience function to create encrypted archive
*/
export declare function createEncryptedArchive(files: string[], password: string, outputDir?: string, archiveName?: string): Promise<ArchiveResult>;