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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
description | readonly | string | - | packages/observability/src/redaction/imperative-patterns.ts:51 |
mask | readonly | string | Replacement string applied by the 'detect-and-strip*' policies. | packages/observability/src/redaction/imperative-patterns.ts:64 |
name | readonly | | ImperativePatternName | string & { } | - | packages/observability/src/redaction/imperative-patterns.ts:50 |
prefilter | readonly | readonly 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 |
regex | readonly | RegExp | Full 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 |