Packages

Elixir SDK for Bifrost, the LLM gateway by Maxim

Current section

Files

Jump to
ex_bifrost lib ex_bifrost model team.ex
Raw

lib/ex_bifrost/model/team.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.23.0 (https://openapi-generator.tech)
# using the Elixir SDK Generator template (https://github.com/houllette/elixir-sdk-generator).
# Do not edit this file manually — edit the templates and regenerate instead.
defmodule ExBifrost.Model.Team do
@moduledoc """
Team configuration
"""
@derive JSON.Encoder
defstruct [
:id,
:name,
:customer_id,
:budget_id,
:customer,
:budget,
:virtual_keys,
:profile,
:config,
:claims,
:config_hash,
:created_at,
:updated_at
]
@type t :: %__MODULE__{
:id => String.t() | nil,
:name => String.t() | nil,
:customer_id => String.t() | nil,
:budget_id => String.t() | nil,
:customer => ExBifrost.Model.Customer.t() | nil,
:budget => ExBifrost.Model.Budget.t() | nil,
:virtual_keys => [ExBifrost.Model.VirtualKey.t()] | nil,
:profile => %{optional(String.t()) => any()} | nil,
:config => %{optional(String.t()) => any()} | nil,
:claims => %{optional(String.t()) => any()} | nil,
:config_hash => String.t() | nil,
:created_at => DateTime.t() | nil,
:updated_at => DateTime.t() | nil
}
alias ExBifrost.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:customer, :struct, ExBifrost.Model.Customer)
|> Deserializer.deserialize(:budget, :struct, ExBifrost.Model.Budget)
|> Deserializer.deserialize(:virtual_keys, :list, ExBifrost.Model.VirtualKey)
end
end