endpoints/accounts

Types

pub type AgentRegistered {
  AgentRegistered(
    token: auth.AgentToken,
    agent: agent.Agent,
    faction: faction.Faction,
    contract: contract.Contract,
    ships: List(ship.Ship),
  )
}

Constructors

Values

pub fn get_account(
  token: auth.AgentToken,
) -> Result(account.Account, api.ApiError)
pub fn register_new_agent(
  token: auth.AccountToken,
  agent_symbol: agent_symbol.AgentSymbol,
  faction_symbol: faction_symbol.FactionSymbol,
) -> Result(AgentRegistered, api.ApiError)
Search Document