AshHooks.Info (AshHooks v3.3.0)

Copy Markdown View Source

Reads compiled webhook declarations and delivery configuration.

Summary

Functions

The inbound declaration for provider, if any.

The outbound declaration for event, if any.

The configured exact-bytes payload attribute name on an AshHooks.OutboundDelivery resource (default :payload).

All webhook entities (inbound + outbound) declared on resource.

Returns whether the compiled ingest or dispatch action accepts a caller-supplied :id.

Functions

inbound(resource, provider)

@spec inbound(Ash.Resource.t(), atom()) :: AshHooks.Inbound.t() | nil

The inbound declaration for provider, if any.

outbound(resource, event)

@spec outbound(Ash.Resource.t(), atom()) :: AshHooks.Outbound.t() | nil

The outbound declaration for event, if any.

payload_attribute(resource)

@spec payload_attribute(module()) :: atom()

The configured exact-bytes payload attribute name on an AshHooks.OutboundDelivery resource (default :payload).

webhooks(resource)

All webhook entities (inbound + outbound) declared on resource.

writable_id?(resource)

@spec writable_id?(module()) :: boolean()

Returns whether the compiled ingest or dispatch action accepts a caller-supplied :id.