Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.automation.webhook

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.
raw docstring

delivery-idclj

(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.
sourceraw docstring

event-accepted?clj

(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`.
sourceraw docstring

event-nameclj

(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.
sourceraw docstring

filters-pass?clj

(filters-pass? filters payload)

True when every filter passes for the payload.

True when every filter passes for the payload.
sourceraw docstring

renderclj

(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`.
sourceraw docstring

standard-keyclj

(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.
sourceraw docstring

standard-signatureclj

(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.
sourceraw docstring

value-atclj

(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.
sourceraw docstring

verifyclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close