Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/tools / / SanitizationOutcome

Interface: SanitizationOutcome

Defined in: packages/tools/src/inbound/sanitize.ts:34

Outcome of applyInboundSanitization.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
blockedreadonlybooleanSet when failClosed: true and at least one pattern fired. The executor surfaces this as ToolError({ kind: 'inbound_sanitization_blocked' }).packages/tools/src/inbound/sanitize.ts:55
bodyreadonlystringFinal body that flows downstream.packages/tools/src/inbound/sanitize.ts:36
bytesStrippedreadonlynumberBytes removed by the strip pass.packages/tools/src/inbound/sanitize.ts:46
modifiedreadonlybooleanWhether the body was modified relative to the input.packages/tools/src/inbound/sanitize.ts:38
patternsHitreadonlyreadonly string[]Pattern names that fired during the scan.packages/tools/src/inbound/sanitize.ts:40
scanDurationUsreadonlynumberTime spent on the scan in microseconds.packages/tools/src/inbound/sanitize.ts:48
scanTimedOutreadonlybooleanWhether the scan timed out (best-effort fallthrough).packages/tools/src/inbound/sanitize.ts:50
strippedreadonlybooleanWhether matches were stripped.packages/tools/src/inbound/sanitize.ts:44
wrappedreadonlybooleanWhether the body is wrapped in the untrusted-content envelope.packages/tools/src/inbound/sanitize.ts:42