endpoints/accounts
Types
pub type GetAccountResponse {
GetAccountResponse(account: account.Account)
}
Constructors
-
GetAccountResponse(account: account.Account)
pub type RegisterNewAgentResponse {
RegisterNewAgentResponse(
token: auth.AgentToken,
agent: agent.Agent,
faction: faction.Faction,
contract: contract.Contract,
ships: List(ship.Ship),
)
}
Constructors
-
RegisterNewAgentResponse( token: auth.AgentToken, agent: agent.Agent, faction: faction.Faction, contract: contract.Contract, ships: List(ship.Ship), )
Values
pub fn get_account(
token: auth.AgentToken,
) -> Result(GetAccountResponse, api.ApiError)
pub fn register_new_agent(
token: auth.AccountToken,
agent_symbol: agent_symbol.AgentSymbol,
faction_symbol: faction_symbol.FactionSymbol,
) -> Result(RegisterNewAgentResponse, api.ApiError)