mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-18 22:37:21 +00:00
31 lines
No EOL
835 B
TypeScript
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
|