Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / / RedactionValidator

Interface: RedactionValidator

Defined in: packages/core/dist/contracts/redaction-validator.d.ts:17

Wraps every observability exporter (OTLP, console, JSONL replay log, …) and refuses to forward attributes that exceed the configured sensitivity floor or that contain matched secret / PII patterns.

Concrete patterns and the default policy live in @graphorin/observability; the interface lives here so every package (server, agent, workflow, …) can require a RedactionValidator in its config without taking an observability dependency.

Stable

Extended by

Properties

PropertyModifierTypeDescriptionDefined in
idreadonlystringIdentifier of the policy in use ('default-deny-internal', …).packages/core/dist/contracts/redaction-validator.d.ts:19
minTierreadonlySensitivityLowest tier that may pass through the validator.packages/core/dist/contracts/redaction-validator.d.ts:21

Methods

validate()

ts
validate(input): 
  | RedactionOutput
  | null;

Defined in: packages/core/dist/contracts/redaction-validator.d.ts:26

Validate (and optionally rewrite) an attribute payload. Returns the sanitized value or null if the entire record must be dropped.

Parameters

ParameterType
inputRedactionInput

Returns

| RedactionOutput | null