Which trap category this detector addresses
Unique identifier for this detector
Human-readable name
Return sanitized content with threats neutralized. content is the
original scanned text, never text another detector has already edited, so
the threats' offsets are valid in it. Each detector's change is merged
with the others' and applied once.
OptionalsanitizeScan content and return any threats found
Optionaloptions: DetectorOptionsOptionalscanAsync scan method (used by ML detectors where inference is async)
Optionaloptions: DetectorOptions
The interface every detector (pattern-based, ML, or custom) implements.