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

Plugin source metadata returned by the app-server plugin APIs.

# `source_type`

```elixir
@type source_type() :: :local | String.t()
```

# `t`

```elixir
@type t() :: %Codex.Protocol.Plugin.Source{
  extra: map(),
  path: (String.t() | nil) | nil,
  type: source_type()
}
```

# `from_map`

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

# `parse`

```elixir
@spec parse(map() | keyword() | t()) ::
  {:ok, t()}
  | {:error, {:invalid_plugin_source, 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*
