unwrap

fun unwrap(payload: ByteArray, headers: Map<String, String>, nowSeconds: Long): WebhookEvent

Verifies the unmodified body, then parses its UTF-8 JSON event while retaining unknown fields. Signature errors are distinct from invalid UTF-8, JSON or event-shape errors.