Skip to content

Graphorin API reference v0.8.0


Graphorin API reference / @graphorin/tools / / InboundSanitizationWithClassifierOptions

Interface: InboundSanitizationWithClassifierOptions

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

Options for applyInboundSanitizationWithClassifier.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
bodyreadonlystring-packages/tools/src/inbound/sanitize.ts:212
budgetMs?readonlynumber-packages/tools/src/inbound/sanitize.ts:219
classifier?readonlyInjectionClassifierB4 (D-12): optional pluggable injection classifier consulted AFTER the regex pass, on the already-sanitized body. A flagged verdict appends classifier:<id> to patternsHit (audit signal); the body is never modified by the classifier (it names no spans to strip). Errors are swallowed by the resilience contract - the regex outcome stands alone.packages/tools/src/inbound/sanitize.ts:228
contentOrigin?readonlystring-packages/tools/src/inbound/sanitize.ts:216
failClosed?readonlyboolean-packages/tools/src/inbound/sanitize.ts:217
patterns?readonlyreadonly ImperativePattern[]-packages/tools/src/inbound/sanitize.ts:218
policyreadonlyInboundSanitizationPolicy-packages/tools/src/inbound/sanitize.ts:213
toolNamereadonlystring-packages/tools/src/inbound/sanitize.ts:215
trustClassreadonlyToolTrustClass-packages/tools/src/inbound/sanitize.ts:214