Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/server / commentary / CommentaryAuditSink

Interface: CommentaryAuditSink ​

Defined in: packages/server/src/commentary/audit-bridge.ts:59

Stable

A commentary sink that also exposes a drain() so callers (and tests) can await any in-flight audit writes.

Extends ​

Properties ​

PropertyModifierTypeDescriptionDefined in
drainreadonly() => Promise<void>Resolve once every queued audit write has settled.packages/server/src/commentary/audit-bridge.ts:61

Methods ​

onDecision() ​

ts
onDecision(decision): void;

Defined in: packages/server/src/commentary/types.ts:106

Called once per applied decision. Implementations should be non-throwing; the sanitizer wraps the call in try/catch so a misbehaving sink never blocks the wire.

Parameters ​

ParameterType
decisionDeliveryCommentaryDecision

Returns ​

void

Inherited from ​

DeliveryCommentarySink.onDecision