AeThex-OS/packages/aethex-core/lib/SafeInput.d.ts

31 lines
No EOL
835 B
TypeScript

/**
* AeThex SafeInput - PII Detection & Scrubbing
* Automatically detects and removes personally identifiable information
*/
export interface ValidationResult {
valid: boolean;
blocked: string[];
clean: string;
message?: string;
}
export type PIIType = 'phone' | 'email' | 'ssn' | 'credit_card' | 'address' | 'name_with_sensitive';
export declare class SafeInput {
private static readonly patterns;
/**
* Detect PII types in input
*/
static detectPII(input: string): PIIType[];
/**
* Scrub PII from input
*/
static scrub(input: string): string;
/**
* Validate input for PII
*/
static validate(input: string): ValidationResult;
/**
* Check if input is safe
*/
static isSafe(input: string): boolean;
}
//# sourceMappingURL=SafeInput.d.ts.map