Client
Options
string
required
Authenticates detection, telemetry, and capture. Throws
FrostWolfError when missing or blank.string
default:"https://api.frostwolf.app"
Base URL of the FrostWolf API.
boolean
default:"true"
Ship scan metrics to the console. Detection is unaffected either way.
number
default:"5000"
How often the telemetry queue is flushed.
number
default:"50"
Flush as soon as this many events are queued.
number
default:"1000"
Drop the oldest events past this depth, so a stalled network cannot leak memory.
number
default:"5000"
Abort a detection call or a background flush after this long.
boolean
default:"false"
Return matched substrings and include them in telemetry. Off because evidence is your text.
"block" | "allow"
default:"block"
What to do when the detection call fails.
block fails closed.boolean | CaptureOptions
default:"false"
Capture request and response bodies for decorated calls. Off because bodies are your text.
FetchLike
Override the transport. Defaults to the global
fetch.(error: Error) => void
Called when a detection call or background flush fails. Never throws.
GuardOptions
Defaults applied to every guard call.
GuardOptions
CloakConfig
Client methods
captureEnabled is read back from the server, so a caller that asked for capture and did not get it can tell.
fw.guard
fw.guard.cloak
Errors
Defaults
These values are identical in the Python SDK.

