# `Codex.Protocol.Plugin.ScheduledTaskSchedule`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/protocol/plugin/types.ex#L721)

Tagged schedule metadata for a plugin-provided scheduled task.

Known tags are validated against the current hourly, daily, weekdays, and
weekly shapes. Unknown string tags remain lossless for additive compatibility.
Weekday values remain wire strings such as `"MO"` and `"WE"`.

# `t`

```elixir
@type t() :: %Codex.Protocol.Plugin.ScheduledTaskSchedule{
  days: ([String.t()] | nil) | nil,
  extra: map(),
  interval_hours: (non_neg_integer() | nil) | nil,
  time: (String.t() | nil) | nil,
  type: String.t()
}
```

# `from_map`

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

# `parse`

```elixir
@spec parse(map() | keyword() | t()) ::
  {:ok, t()}
  | {:error,
     {:invalid_plugin_scheduled_task_schedule,
      CliSubprocessCore.Schema.error_detail()}}
```

# `parse!`

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

# `schema`

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

# `to_map`

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

---

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