Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/channels / / SanitizationOutcome
Interface: SanitizationOutcome
Defined in: packages/tools/dist/inbound/sanitize.d.ts
Outcome of applyInboundSanitization.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
blocked | readonly | boolean | Set when failClosed: true and at least one pattern fired. The executor surfaces this as ToolError({ kind: 'inbound_sanitization_blocked' }). | packages/tools/dist/inbound/sanitize.d.ts |
body | readonly | string | Final body that flows downstream. | packages/tools/dist/inbound/sanitize.d.ts |
bytesStripped | readonly | number | Bytes removed by the strip pass. | packages/tools/dist/inbound/sanitize.d.ts |
modified | readonly | boolean | Whether the body was modified relative to the input. | packages/tools/dist/inbound/sanitize.d.ts |
patternsHit | readonly | readonly string[] | Pattern names that fired during the scan. | packages/tools/dist/inbound/sanitize.d.ts |
scanDurationUs | readonly | number | Time spent on the scan in microseconds. | packages/tools/dist/inbound/sanitize.d.ts |
scanTimedOut | readonly | boolean | Whether the scan timed out (best-effort fallthrough). | packages/tools/dist/inbound/sanitize.d.ts |
stripped | readonly | boolean | Whether matches were stripped. | packages/tools/dist/inbound/sanitize.d.ts |
wrapped | readonly | boolean | Whether the body is wrapped in the untrusted-content envelope. | packages/tools/dist/inbound/sanitize.d.ts |