# `Jidoka.Review.Response`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/review/response.ex#L1)

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.

# `decision`

```elixir
@type decision() :: :approved | :denied
```

# `t`

```elixir
@type t() :: %Jidoka.Review.Response{
  decision: :approved | :denied,
  interrupt_id: binary(),
  metadata: map(),
  reason: nil | nil | any(),
  responded_at_ms: nil | nil | integer()
}
```

# `approve`

```elixir
@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.

# `decisions`

```elixir
@spec decisions() :: [decision()]
```

Returns the supported review decisions.

# `deny`

```elixir
@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.

# `from_input`

```elixir
@spec from_input(t() | keyword() | map()) :: {:ok, t()} | {:error, term()}
```

Normalizes an existing response, keyword list, or map.

# `new`

```elixir
@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}
```

Builds a review response from keyword or map attributes.

# `new!`

```elixir
@spec new!(keyword() | map()) :: t()
```

Builds a review response and raises if the attributes are invalid.

# `schema`

```elixir
@spec schema() :: Zoi.schema()
```

Returns the Zoi schema for a review response.

---

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