Webhook checks: signatures, event names, filters and prompt templates.
Every function here is pure. A payload is untrusted data: it can fill a prompt template, but it never selects a target, a model or a tool.
Webhook checks: signatures, event names, filters and prompt templates. Every function here is pure. A payload is untrusted data: it can fill a prompt template, but it never selects a target, a model or a tool.
(delivery-id headers)The sender's delivery identity, used to drop a repeated delivery.
The sender's delivery identity, used to drop a repeated delivery.
(event-accepted? events event payload)True when events is empty, or names the event or event.action.
True when `events` is empty, or names the event or `event.action`.
(event-name headers payload)The event of a webhook request, from its headers or its payload.
The event of a webhook request, from its headers or its payload.
(filters-pass? filters payload)True when every filter passes for the payload.
True when every filter passes for the payload.
(render template payload raw max-bytes)Fill {dot.path} placeholders from the payload and {__raw__} with the raw
body. A missing path stays as written. Each value is clipped to max-bytes.
Fill `{dot.path}` placeholders from the payload and `{__raw__}` with the raw
body. A missing path stays as written. Each value is clipped to `max-bytes`.(standard-key secret)The HMAC key of a Standard Webhooks secret. A whsec_ secret uses its decoded
bytes; any other secret uses its UTF-8 bytes.
The HMAC key of a Standard Webhooks secret. A `whsec_` secret uses its decoded bytes; any other secret uses its UTF-8 bytes.
(standard-signature secret message-id timestamp body)The v1,<base64> signature of Standard Webhooks for one message.
The `v1,<base64>` signature of Standard Webhooks for one message.
(value-at payload path)The value at a dot path such as pull_request.base.ref or commits.0.id,
or ::missing.
The value at a dot path such as `pull_request.base.ref` or `commits.0.id`, or ::missing.
(verify kind secret {:keys [headers body now skew-seconds]})Answer nil when the request is signed with secret, else the reason
signature or timestamp. headers have lower-case names.
Answer nil when the request is signed with `secret`, else the reason `signature` or `timestamp`. `headers` have lower-case names.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |