PiiDetector
type PiiDetector = "credit-card" | "email" | "phone" | "iban";Deterministic PII detection + redaction over message text.
Detectors are conservative by default: credit-card (separator-tolerant,
Luhn-validated so order/tracking numbers don’t false-positive) and email.
phone and iban are opt-in because their shapes collide with order ids,
reference codes, and similar commerce artifacts.