Skip to content

PiiMapping

Per-session PII redaction mapping for restore mechanism. Maintained by guard.piiRedact() — tools get original values.

original: string

Original PII value (e.g., “[email protected]”).


placeholder: string

Placeholder used in redacted text (e.g., “[EMAIL_1]“).


type: PiiType | string & object

PII type — built-in (“email”, “phone”, etc.) or custom pattern name.