# `Jido.Chat.WebhookResponse`
[🔗](https://github.com/agentjido/jido_chat/blob/v1.0.0/lib/jido/chat/webhook_response.ex#L1)

Typed webhook response envelope.

# `t`

```elixir
@type t() :: %Jido.Chat.WebhookResponse{
  body: nil | nil | any(),
  headers: map(),
  metadata: map(),
  status: integer()
}
```

# `accepted`

```elixir
@spec accepted(map() | nil) :: t()
```

Returns a default accepted response.

# `error`

```elixir
@spec error(integer(), map() | String.t() | nil) :: t()
```

Returns an error response envelope.

# `from_map`

```elixir
@spec from_map(map()) :: t()
```

Builds webhook response from serialized data.

# `new`

```elixir
@spec new(map()) :: t()
```

Creates a typed webhook response envelope.

# `schema`

Returns the Zoi schema for WebhookResponse.

# `to_map`

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

Serializes webhook response into plain map with type marker.

---

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