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

Plugin auth policy values returned by the app-server plugin APIs.

# `t`

```elixir
@type t() :: :on_install | :on_use | String.t()
```

# `normalize`

```elixir
@spec normalize(term()) :: {:ok, t()} | {:error, String.t()}
```

# `normalize_zoi`

```elixir
@spec normalize_zoi(
  term(),
  keyword()
) :: {:ok, t()} | {:error, String.t()}
```

# `parse`

```elixir
@spec parse(term()) ::
  {:ok, t()}
  | {:error,
     {:invalid_plugin_auth_policy, CliSubprocessCore.Schema.error_detail()}}
```

# `parse!`

```elixir
@spec parse!(term()) :: t()
```

# `schema`

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

# `to_wire`

```elixir
@spec to_wire(t()) :: String.t()
```

---

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