Lockspire.Admin.Consents
(lockspire v1.0.0)
Copy Markdown
Shared query and command boundary for operator and host-owned consent workflows.
Summary
Types
@type consent_view() :: %{ grant: Lockspire.Domain.ConsentGrant.t(), client: Lockspire.Domain.Client.t() | nil }
Functions
@spec get_consent(integer()) :: {:ok, consent_view() | nil} | {:error, term()}
@spec list_consents(keyword()) :: {:ok, [consent_view()]} | {:error, term()}
@spec list_consents_for_account(String.t()) :: {:ok, [consent_view()]} | {:error, term()}
@spec revoke_consent(integer(), map()) :: {:ok, consent_view()} | {:error, term()}