# `Codex.AppServer.V1`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.0/lib/codex/app_server/v1.ex#L1)

Legacy v1 app-server endpoints for compatibility with older servers.

# `connection`

```elixir
@type connection() :: pid()
```

# `add_conversation_listener`

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

# `interrupt_conversation`

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

# `list_conversations`

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

# `new_conversation`

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

# `remove_conversation_listener`

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

# `resume_conversation`

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

# `send_user_message`

```elixir
@spec send_user_message(connection(), String.t(), String.t() | [map()]) ::
  {:ok, map()} | {:error, term()}
```

# `send_user_turn`

```elixir
@spec send_user_turn(connection(), String.t(), String.t() | [map()], keyword()) ::
  {:ok, map()} | {:error, term()}
```

---

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