# `Jidoka.Session.Replay`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/session/replay.ex#L1)

Inspection-friendly replay projection for stored session data.

Replay is data-only. It reconstructs what is already known from sessions,
snapshots, journals, and events; it never calls runtime capabilities.

# `t`

```elixir
@type t() :: %Jidoka.Session.Replay{
  agent_id: binary(),
  journal: map(),
  lineage: nil | nil | map(),
  metadata: map(),
  pending_reviews: [map()],
  result: nil | nil | map(),
  session_id: nil | nil | binary(),
  session_revision: nil | nil | integer(),
  snapshots: [map()],
  status:
    (((((:new | :running) | :hibernated) | :waiting) | :finished) | :cancelled)
    | :error,
  timeline: [map()]
}
```

# `from_session`

```elixir
@spec from_session(Jidoka.Session.Data.t()) :: {:ok, t()} | {:error, term()}
```

Builds replay data from a durable session.

# `from_snapshot`

```elixir
@spec from_snapshot(Jidoka.Snapshot.t()) :: {:ok, t()} | {:error, term()}
```

Builds replay data from a hibernation snapshot.

# `new`

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

Builds replay data from keyword or map attributes.

# `new!`

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

Builds replay data and raises if the attributes are invalid.

# `schema`

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

Returns the Zoi schema for replay data.

---

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