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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
id | readonly | string | Identifier of the policy in use ('default-deny-internal', …). | packages/core/dist/contracts/redaction-validator.d.ts:19 |
minTier | readonly | Sensitivity | Lowest tier that may pass through the validator. | packages/core/dist/contracts/redaction-validator.d.ts:21 |
Methods
validate()
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
| Parameter | Type |
|---|---|
input | RedactionInput |
Returns
| RedactionOutput | null