# `AshHooks.Info`
[🔗](https://github.com/baselabs/ash_hooks/blob/v3.0.0/lib/ash_hooks/info.ex#L1)

Accessors for a resource's `webhooks` declarations, read via
`Spark.Dsl.Extension` (the ash_age pattern — no generated getter in this
spark version).

# `inbound`

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

The inbound declaration for `provider`, if any.

# `outbound`

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

The outbound declaration for `event`, if any.

# `payload_attribute`

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

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

# `webhooks`

```elixir
@spec webhooks(Ash.Resource.t()) :: [AshHooks.Inbound.t() | AshHooks.Outbound.t()]
```

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

# `writable_id?`

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

Whether the compiled `:dispatch`/`:ingest` action accepts a
caller-supplied `:id` (the runtimes classify created/duplicate by id
comparison in that shape; otherwise by an identity pre-read — H2).
Reads the accept-list transformer's PERSISTED decision, so the runtime
and the compiled action can never disagree (composite and non-`:id`
primary keys make a re-derived predicate diverge from the accept list).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
