Miosa.Settings (Miosa v1.0.0)

Copy Markdown View Source

Tenant settings — workspace config, branding, and BYOK provider keys.

Example

client = Miosa.client(System.fetch_env!("MIOSA_API_KEY"))

{:ok, settings} = Miosa.Settings.get(client)
{:ok, _updated} = Miosa.Settings.update(client, %{default_region: "us-east"})

Summary

Functions

List models available to this tenant.

Get tenant-scoped compute pricing.

Delete a BYOK provider key by provider name.

Get the current tenant settings.

Get tenant branding (logo, colors, custom wordmark).

Get tenant-scoped GPU pricing.

List tenant-level BYOK provider keys (Anthropic, OpenAI, etc.).

List regions enabled for this tenant.

Update tenant settings.

Update tenant branding.

Create or update a BYOK provider key.

Functions

available_models(client)

@spec available_models(Miosa.Client.t()) :: Miosa.Client.result(map())

List models available to this tenant.

compute_pricing(client)

@spec compute_pricing(Miosa.Client.t()) :: Miosa.Client.result(map())

Get tenant-scoped compute pricing.

delete_provider_key(client, provider)

@spec delete_provider_key(Miosa.Client.t(), String.t()) :: Miosa.Client.result(map())

Delete a BYOK provider key by provider name.

get(client)

Get the current tenant settings.

get_branding(client)

@spec get_branding(Miosa.Client.t()) :: Miosa.Client.result(map())

Get tenant branding (logo, colors, custom wordmark).

gpu_pricing(client)

@spec gpu_pricing(Miosa.Client.t()) :: Miosa.Client.result(map())

Get tenant-scoped GPU pricing.

list_provider_keys(client)

@spec list_provider_keys(Miosa.Client.t()) :: Miosa.Client.result(map())

List tenant-level BYOK provider keys (Anthropic, OpenAI, etc.).

regions(client)

@spec regions(Miosa.Client.t()) :: Miosa.Client.result(map())

List regions enabled for this tenant.

update(client, attrs)

@spec update(Miosa.Client.t(), map()) :: Miosa.Client.result(map())

Update tenant settings.

Pass any settable fields as a map.

update_branding(client, attrs)

@spec update_branding(Miosa.Client.t(), map()) :: Miosa.Client.result(map())

Update tenant branding.

upsert_provider_key(client, provider, attrs)

@spec upsert_provider_key(Miosa.Client.t(), String.t(), map()) ::
  Miosa.Client.result(map())

Create or update a BYOK provider key.

Required: provider (e.g. "anthropic") and attrs map containing at minimum %{key: "sk-..."}.