# `Lockspire.Admin.Consents`

Shared query and command boundary for operator and host-owned consent workflows.

# `consent_view`

```elixir
@type consent_view() :: %{
  grant: Lockspire.Domain.ConsentGrant.t(),
  client: Lockspire.Domain.Client.t() | nil
}
```

# `get_consent`

```elixir
@spec get_consent(integer()) :: {:ok, consent_view() | nil} | {:error, term()}
```

# `list_consents`

```elixir
@spec list_consents(keyword()) :: {:ok, [consent_view()]} | {:error, term()}
```

# `list_consents_for_account`

```elixir
@spec list_consents_for_account(String.t()) ::
  {:ok, [consent_view()]} | {:error, term()}
```

# `revoke_consent`

```elixir
@spec revoke_consent(integer(), map()) :: {:ok, consent_view()} | {:error, term()}
```

---

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