# `OpenCode.Generated.Control`
[🔗](https://github.com/UtkarshUsername/opencode-sdk-elixir/blob/v0.1.84/lib/opencode/generated/control.ex#L1)

Provides API endpoints related to control

# `app_log`

```elixir
@spec app_log(body :: map(), opts :: keyword()) ::
  {:ok, boolean()}
  | {:error,
     OpenCode.Generated.EffectHttpApiErrorBadRequest.t()
     | OpenCode.Generated.InvalidRequestError.t()}
```

Write log

Write a log entry to the server logs with specified level and metadata.

## Options

  * `directory`
  * `workspace`

## Request Body

**Content Types**: `application/json`

# `auth_remove`

```elixir
@spec auth_remove(providerID :: String.t(), opts :: keyword()) ::
  {:ok, boolean()}
  | {:error,
     OpenCode.Generated.EffectHttpApiErrorBadRequest.t()
     | OpenCode.Generated.InvalidRequestError.t()}
```

Remove auth credentials

Remove authentication credentials

# `auth_set`

```elixir
@spec auth_set(
  providerID :: String.t(),
  body ::
    OpenCode.Generated.ApiAuth.t()
    | OpenCode.Generated.OAuth.t()
    | OpenCode.Generated.WellKnownAuth.t(),
  opts :: keyword()
) ::
  {:ok, boolean()}
  | {:error,
     OpenCode.Generated.EffectHttpApiErrorBadRequest.t()
     | OpenCode.Generated.InvalidRequestError.t()}
```

Set auth credentials

Set authentication credentials

## Request Body

**Content Types**: `application/json`

---

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