# `Jidoka.Effect.OperationRequest`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/effect/operation_request.ex#L1)

Typed request payload for an operation effect.

Operation effects are still interpreted by runtime capabilities, but this
struct defines the durable data shape those capabilities receive.

# `t`

```elixir
@type t() :: %Jidoka.Effect.OperationRequest{
  arguments: map(),
  loop_index: integer(),
  metadata: map(),
  name: binary(),
  request_id: nil | nil | binary()
}
```

# `from_input`

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

Normalizes an existing request, keyword list, or map.

# `new`

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

Builds an operation request from keyword or map attributes.

# `new!`

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

Builds an operation request and raises if the attributes are invalid.

# `schema`

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

Returns the Zoi schema for an operation request.

# `to_payload`

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

Projects an operation request into an effect payload.

---

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