Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / redaction/imperative-patterns / ImperativePattern

Interface: ImperativePattern

Defined in: packages/observability/src/redaction/imperative-patterns.ts:49

One entry in the imperative-pattern catalogue. The shape mirrors BUILT_IN_PATTERNS so consumers can share scan / replace machinery, but the fields are typed as imperative-only so the two catalogues do not accidentally merge.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
descriptionreadonlystring-packages/observability/src/redaction/imperative-patterns.ts:51
maskreadonlystringReplacement string applied by the 'detect-and-strip*' policies.packages/observability/src/redaction/imperative-patterns.ts:64
namereadonly| ImperativePatternName | string & { }-packages/observability/src/redaction/imperative-patterns.ts:50
prefilterreadonlyreadonly string[]Cheap substring prefilter applied before the regex; if the body does not contain any of the prefilter substrings the regex is skipped entirely. The prefilter is case-insensitive.packages/observability/src/redaction/imperative-patterns.ts:57
regexreadonlyRegExpFull regex applied when the prefilter matches. Always carries the g and i flags; the catalogue construction validates this.packages/observability/src/redaction/imperative-patterns.ts:62