MingaAgent.ModelSelection.Credential.OAuth (Minga v0.1.0)

Copy Markdown View Source

Pinned OpenAI Codex OAuth account identity.

Summary

Functions

Pins a Codex account, with an optional request-local credential path.

Restores a secret-free source binding without reconstructing its local path.

Types

t()

@type t() :: %MingaAgent.ModelSelection.Credential.OAuth{
  account_id: String.t(),
  oauth_path: String.t() | nil,
  provider: :openai_codex,
  provider_key: String.t(),
  source_id: String.t() | nil
}

Functions

new(account_id, oauth_path \\ nil)

@spec new(String.t(), String.t() | nil) :: t()

Pins a Codex account, with an optional request-local credential path.

restore(account_id, source_id)

@spec restore(String.t(), String.t()) :: t()

Restores a secret-free source binding without reconstructing its local path.