Optionalfields?: string[]Dot-notation path expressions for fields to mask (supports .* and [*] wildcards).
OptionalmaskingRules?: Record<string, MaskingRule>Per-field custom masking rules keyed by dot-notation path; override the top-level rule.
Options for
DataMasking.erase.All three layers are optional and compose:
MaskingRule(regexPattern+maskFormat,dynamicMask, orcustomMask) sets the default masking strategy;fieldsselects the dot-notation paths to mask — when omitted, a top-level rule is applied to every leaf value in the payload;maskingRulesprovides per-field rules that take precedence over the top-level rule for the paths they name.Calling
DataMasking.erasewith no options at all replaces the entire payload with the default mask value.