Application response to a pending review request.
A response is intentionally small: it targets a single interrupt and either approves or denies the pending operation.
Summary
Functions
Builds an approval response for an interrupt, request, or review identifier.
Returns the supported review decisions.
Builds a denial response for an interrupt, request, or review identifier.
Normalizes an existing response, keyword list, or map.
Builds a review response from keyword or map attributes.
Builds a review response and raises if the attributes are invalid.
Returns the Zoi schema for a review response.
Types
Functions
@spec approve( Jidoka.Review.Interrupt.t() | Jidoka.Review.Request.t() | String.t(), keyword() ) :: t()
Builds an approval response for an interrupt, request, or review identifier.
@spec decisions() :: [decision()]
Returns the supported review decisions.
@spec deny( Jidoka.Review.Interrupt.t() | Jidoka.Review.Request.t() | String.t(), keyword() ) :: t()
Builds a denial response for an interrupt, request, or review identifier.
Normalizes an existing response, keyword list, or map.
Builds a review response from keyword or map attributes.
Builds a review response and raises if the attributes are invalid.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for a review response.