Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/tools / / InboundSanitizationWithClassifierOptions

Interface: InboundSanitizationWithClassifierOptions

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

Stable

Options for applyInboundSanitizationWithClassifier.

Properties

PropertyModifierTypeDescriptionDefined in
bodyreadonlystring-packages/tools/src/inbound/sanitize.ts:225
budgetMs?readonlynumber-packages/tools/src/inbound/sanitize.ts:232
classifier?readonlyInjectionClassifierOptional 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:241
contentOrigin?readonlystring-packages/tools/src/inbound/sanitize.ts:229
failClosed?readonlyboolean-packages/tools/src/inbound/sanitize.ts:230
patterns?readonlyreadonly ImperativePattern[]-packages/tools/src/inbound/sanitize.ts:231
policyreadonlyInboundSanitizationPolicy-packages/tools/src/inbound/sanitize.ts:226
toolNamereadonlystring-packages/tools/src/inbound/sanitize.ts:228
trustClassreadonlyToolTrustClass-packages/tools/src/inbound/sanitize.ts:227