Crosswake.Shell.Denial (crosswake v0.1.0)

View Source

Stable denial envelope shared by shell activation and bounded bridge replies.

Summary

Types

reason()

@type reason() ::
  :compatibility_mismatch
  | :undeclared_capability
  | :unavailable_capability
  | :commerce_corridor
  | :origin_denied
  | :inactive_route
  | :external_entry_denied
  | :pack_incompatible

t()

@type t() :: %Crosswake.Shell.Denial{
  code: String.t(),
  details: map(),
  hint: String.t() | nil,
  message: String.t(),
  reason: reason(),
  recovery: map(),
  route_id: String.t() | nil
}

Functions

new(attrs)

@spec new(keyword()) :: t()

reasons()

@spec reasons() :: [reason()]

to_map(denial)

@spec to_map(t()) :: map()