PIIType
Categories of personally identifiable information recognized by createPIIRedactionGuardrail.
type PIIType = "email" | "phone" | "ssn" | "creditCard" | "ipAddress";
Defined in: src/guardrails/redaction.ts:25
Categories of personally identifiable information recognized by createPIIRedactionGuardrail.
Remarks
The patterns are deliberately conservative — they favour missing an unusual format over redacting ordinary prose. Credit card candidates are additionally validated with the Luhn checksum, so figures like 1234 5678 9012 3456 that happen to look card-shaped are left alone unless they check out.