@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Function redactSecrets

    • Recursively walk value, returning a structurally-identical clone with scalar values at secret-shaped keys replaced by "[redacted]". Pass an optional pattern to override the canonical pattern (typically by extending it — adopters MAY add internal vendor headers but MUST NOT narrow the contract floor).

      Non-mutating — the input is never touched.

      Parameters

      • value: unknown
      • pattern: RegExp = SECRET_KEY_PATTERN
      • depth: number = 0
      • seen: WeakSet<object> = ...

      Returns unknown