spacetraders_api
Types
pub type AgentRegistered {
AgentRegistered(
token: spacetraders_sdk.AgentToken,
agent: agent.Agent,
faction: faction.Faction,
contract: contract.Contract,
ships: List(ship.Ship),
)
}
Constructors
-
AgentRegistered( token: spacetraders_sdk.AgentToken, agent: agent.Agent, faction: faction.Faction, contract: contract.Contract, ships: List(ship.Ship), )
pub type Announcement {
Announcement(title: String, body: String)
}
Constructors
-
Announcement(title: String, body: String)
pub type CargoPurchased {
CargoPurchased(
cargo: ship_cargo.ShipCargo,
transaction: market_transaction.MarketTransaction,
agent: agent.Agent,
)
}
Constructors
-
CargoPurchased( cargo: ship_cargo.ShipCargo, transaction: market_transaction.MarketTransaction, agent: agent.Agent, )
pub type CargoSold {
CargoSold(
cargo: ship_cargo.ShipCargo,
transaction: market_transaction.MarketTransaction,
agent: agent.Agent,
)
}
Constructors
-
CargoSold( cargo: ship_cargo.ShipCargo, transaction: market_transaction.MarketTransaction, agent: agent.Agent, )
pub type CargoTransferred {
CargoTransferred(
cargo: ship_cargo.ShipCargo,
target_cargo: ship_cargo.ShipCargo,
)
}
Constructors
-
CargoTransferred( cargo: ship_cargo.ShipCargo, target_cargo: ship_cargo.ShipCargo, )
pub type ChartCreated {
ChartCreated(
chart: chart.Chart,
waypoint: waypoint.Waypoint,
transaction: chart_transaction.ChartTransaction,
agent: agent.Agent,
)
}
Constructors
-
ChartCreated( chart: chart.Chart, waypoint: waypoint.Waypoint, transaction: chart_transaction.ChartTransaction, agent: agent.Agent, )
pub type ChartLeaderboardEntry {
ChartLeaderboardEntry(
agent_symbol: agent_symbol.AgentSymbol,
chart_count: Int,
)
}
Constructors
-
ChartLeaderboardEntry( agent_symbol: agent_symbol.AgentSymbol, chart_count: Int, )
pub type ConstructionSiteSupplied {
ConstructionSiteSupplied(
construction: construction.Construction,
cargo: ship_cargo.ShipCargo,
)
}
Constructors
-
ConstructionSiteSupplied( construction: construction.Construction, cargo: ship_cargo.ShipCargo, )
pub type ContractAccepted {
ContractAccepted(
contract: contract.Contract,
agent: agent.Agent,
)
}
Constructors
-
ContractAccepted(contract: contract.Contract, agent: agent.Agent)
pub type ContractCargoDelivered {
ContractCargoDelivered(
contract: contract.Contract,
cargo: ship_cargo.ShipCargo,
)
}
Constructors
-
ContractCargoDelivered( contract: contract.Contract, cargo: ship_cargo.ShipCargo, )
pub type ContractFulfilled {
ContractFulfilled(
contract: contract.Contract,
agent: agent.Agent,
)
}
Constructors
-
ContractFulfilled( contract: contract.Contract, agent: agent.Agent, )
pub type CreditLeaderboardEntry {
CreditLeaderboardEntry(
agent_symbol: agent_symbol.AgentSymbol,
credits: Int,
)
}
Constructors
-
CreditLeaderboardEntry( agent_symbol: agent_symbol.AgentSymbol, credits: Int, )
pub type ErrorCode {
ErrorCode(code: Int, name: String)
}
Constructors
-
ErrorCode(code: Int, name: String)
pub type ExportToImportMap =
dict.Dict(
trade_symbol.TradeSymbol,
List(trade_symbol.TradeSymbol),
)
pub type FactionReputation {
FactionReputation(
symbol: faction_symbol.FactionSymbol,
reputation: Int,
)
}
Constructors
-
FactionReputation( symbol: faction_symbol.FactionSymbol, reputation: Int, )
pub type Health {
Health(last_market_update: option.Option(birl.Time))
}
Constructors
-
Health(last_market_update: option.Option(birl.Time))
pub type Leaderboards {
Leaderboards(
most_credits: List(CreditLeaderboardEntry),
most_submitted_charts: List(ChartLeaderboardEntry),
)
}
Constructors
-
Leaderboards( most_credits: List(CreditLeaderboardEntry), most_submitted_charts: List(ChartLeaderboardEntry), )
pub type ResourcesExtracted {
ResourcesExtracted(
extraction: extraction.Extraction,
cooldown: cooldown.Cooldown,
cargo: ship_cargo.ShipCargo,
modifiers: List(waypoint_modifier.WaypointModifier),
events: List(ship_condition_event.ShipConditionEvent),
)
}
Constructors
-
ResourcesExtracted( extraction: extraction.Extraction, cooldown: cooldown.Cooldown, cargo: ship_cargo.ShipCargo, modifiers: List(waypoint_modifier.WaypointModifier), events: List(ship_condition_event.ShipConditionEvent), )
pub type ResourcesSiphoned {
ResourcesSiphoned(
siphon: siphon.Siphon,
cooldown: cooldown.Cooldown,
cargo: ship_cargo.ShipCargo,
events: List(ship_condition_event.ShipConditionEvent),
)
}
Constructors
-
ResourcesSiphoned( siphon: siphon.Siphon, cooldown: cooldown.Cooldown, cargo: ship_cargo.ShipCargo, events: List(ship_condition_event.ShipConditionEvent), )
pub type Scan(data) {
Scan(cooldown: cooldown.Cooldown, data: List(data))
}
Constructors
-
Scan(cooldown: cooldown.Cooldown, data: List(data))
pub type ServerStatus {
ServerStatus(
status: String,
version: String,
reset_date: birl.Time,
description: String,
stats: Stats,
health: Health,
leaderboards: Leaderboards,
server_resets: ServerResets,
announcements: List(Announcement),
links: List(Link),
)
}
Constructors
-
ServerStatus( status: String, version: String, reset_date: birl.Time, description: String, stats: Stats, health: Health, leaderboards: Leaderboards, server_resets: ServerResets, announcements: List(Announcement), links: List(Link), )
pub type ShipJumped {
ShipJumped(
nav: ship_nav.ShipNav,
cooldown: cooldown.Cooldown,
transaction: market_transaction.MarketTransaction,
agent: agent.Agent,
)
}
Constructors
-
ShipJumped( nav: ship_nav.ShipNav, cooldown: cooldown.Cooldown, transaction: market_transaction.MarketTransaction, agent: agent.Agent, )
pub type ShipModuleInstalled {
ShipModuleInstalled(
agent: agent.Agent,
modules: List(ship_module.ShipModule),
cargo: ship_cargo.ShipCargo,
transaction: ship_modification_transaction.ShipModificationTransaction,
)
}
Constructors
-
ShipModuleInstalled( agent: agent.Agent, modules: List(ship_module.ShipModule), cargo: ship_cargo.ShipCargo, transaction: ship_modification_transaction.ShipModificationTransaction, )
pub type ShipModuleRemoved {
ShipModuleRemoved(
agent: agent.Agent,
modules: List(ship_module.ShipModule),
cargo: ship_cargo.ShipCargo,
transaction: ship_modification_transaction.ShipModificationTransaction,
)
}
Constructors
-
ShipModuleRemoved( agent: agent.Agent, modules: List(ship_module.ShipModule), cargo: ship_cargo.ShipCargo, transaction: ship_modification_transaction.ShipModificationTransaction, )
pub type ShipMountInstalled {
ShipMountInstalled(
agent: agent.Agent,
mounts: List(ship_mount.ShipMount),
cargo: ship_cargo.ShipCargo,
transaction: ship_modification_transaction.ShipModificationTransaction,
)
}
Constructors
-
ShipMountInstalled( agent: agent.Agent, mounts: List(ship_mount.ShipMount), cargo: ship_cargo.ShipCargo, transaction: ship_modification_transaction.ShipModificationTransaction, )
pub type ShipMountRemoved {
ShipMountRemoved(
agent: agent.Agent,
mounts: List(ship_mount.ShipMount),
cargo: ship_cargo.ShipCargo,
transaction: ship_modification_transaction.ShipModificationTransaction,
)
}
Constructors
-
ShipMountRemoved( agent: agent.Agent, mounts: List(ship_mount.ShipMount), cargo: ship_cargo.ShipCargo, transaction: ship_modification_transaction.ShipModificationTransaction, )
pub type ShipNavPatched {
ShipNavPatched(
nav: ship_nav.ShipNav,
fuel: ship_fuel.ShipFuel,
events: List(ship_condition_event.ShipConditionEvent),
)
}
Constructors
-
ShipNavPatched( nav: ship_nav.ShipNav, fuel: ship_fuel.ShipFuel, events: List(ship_condition_event.ShipConditionEvent), )
pub type ShipNavigated {
ShipNavigated(
nav: ship_nav.ShipNav,
fuel: ship_fuel.ShipFuel,
events: List(ship_condition_event.ShipConditionEvent),
)
}
Constructors
-
ShipNavigated( nav: ship_nav.ShipNav, fuel: ship_fuel.ShipFuel, events: List(ship_condition_event.ShipConditionEvent), )
pub type ShipPurchased {
ShipPurchased(
ship: ship.Ship,
agent: agent.Agent,
transaction: shipyard_transaction.ShipyardTransaction,
)
}
Constructors
-
ShipPurchased( ship: ship.Ship, agent: agent.Agent, transaction: shipyard_transaction.ShipyardTransaction, )
pub type ShipRefined {
ShipRefined(
cargo: ship_cargo.ShipCargo,
cooldown: cooldown.Cooldown,
produced: List(refinement_yield.RefinementYield),
consumed: List(refinement_yield.RefinementYield),
)
}
Constructors
-
ShipRefined( cargo: ship_cargo.ShipCargo, cooldown: cooldown.Cooldown, produced: List(refinement_yield.RefinementYield), consumed: List(refinement_yield.RefinementYield), )
pub type ShipRefueled {
ShipRefueled(
agent: agent.Agent,
fuel: ship_fuel.ShipFuel,
cargo: ship_cargo.ShipCargo,
transaction: market_transaction.MarketTransaction,
)
}
Constructors
-
ShipRefueled( agent: agent.Agent, fuel: ship_fuel.ShipFuel, cargo: ship_cargo.ShipCargo, transaction: market_transaction.MarketTransaction, )
pub type ShipRepaired {
ShipRepaired(
agent: agent.Agent,
ship: ship.Ship,
transaction: repair_transaction.RepairTransaction,
)
}
Constructors
-
ShipRepaired( agent: agent.Agent, ship: ship.Ship, transaction: repair_transaction.RepairTransaction, )
pub type ShipScrapped {
ShipScrapped(
agent: agent.Agent,
transaction: scrap_transaction.ScrapTransaction,
)
}
Constructors
-
ShipScrapped( agent: agent.Agent, transaction: scrap_transaction.ScrapTransaction, )
pub type ShipWarped {
ShipWarped(
nav: ship_nav.ShipNav,
fuel: ship_fuel.ShipFuel,
events: List(ship_condition_event.ShipConditionEvent),
)
}
Constructors
-
ShipWarped( nav: ship_nav.ShipNav, fuel: ship_fuel.ShipFuel, events: List(ship_condition_event.ShipConditionEvent), )
pub type Stats {
Stats(
accounts: option.Option(Int),
agents: Int,
ships: Int,
systems: Int,
waypoints: Int,
)
}
Constructors
-
Stats( accounts: option.Option(Int), agents: Int, ships: Int, systems: Int, waypoints: Int, )
pub type SurveyCreated {
SurveyCreated(
cooldown: cooldown.Cooldown,
surveys: List(survey.Survey),
)
}
Constructors
-
SurveyCreated( cooldown: cooldown.Cooldown, surveys: List(survey.Survey), )
Values
pub fn accept_contract(
token: spacetraders_sdk.AgentToken,
contract_id: contract_id.ContractId,
) -> Result(ContractAccepted, spacetraders_sdk.ApiError)
pub fn create_chart(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ChartCreated, spacetraders_sdk.ApiError)
pub fn create_survey(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(SurveyCreated, spacetraders_sdk.ApiError)
pub fn deliver_contract_cargo(
token: spacetraders_sdk.AgentToken,
contract_id: contract_id.ContractId,
ship_symbol: ship_symbol.ShipSymbol,
trade_symbol: trade_symbol.TradeSymbol,
units: Int,
) -> Result(ContractCargoDelivered, spacetraders_sdk.ApiError)
pub fn dock_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ship_nav.ShipNav, spacetraders_sdk.ApiError)
pub fn extract_resources(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ResourcesExtracted, spacetraders_sdk.ApiError)
pub fn extract_resources_with_survey(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
survey: survey.Survey,
) -> Result(ResourcesExtracted, spacetraders_sdk.ApiError)
pub fn fulfill_contract(
token: spacetraders_sdk.AgentToken,
contract_id: contract_id.ContractId,
) -> Result(ContractFulfilled, spacetraders_sdk.ApiError)
pub fn get_account(
token: spacetraders_sdk.AgentToken,
) -> Result(account.Account, spacetraders_sdk.ApiError)
pub fn get_agent(
token: spacetraders_sdk.AgentToken,
) -> Result(agent.Agent, spacetraders_sdk.ApiError)
pub fn get_agent_events(
token: spacetraders_sdk.AgentToken,
) -> Result(
List(agent_event.AgentEvent),
spacetraders_sdk.ApiError,
)
pub fn get_construction_site(
system_symbol: system_symbol.SystemSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(construction.Construction, spacetraders_sdk.ApiError)
pub fn get_contract(
token: spacetraders_sdk.AgentToken,
contract_id: contract_id.ContractId,
) -> Result(contract.Contract, spacetraders_sdk.ApiError)
pub fn get_faction(
symbol: faction_symbol.FactionSymbol,
) -> Result(faction.Faction, spacetraders_sdk.ApiError)
pub fn get_jump_gate(
system_symbol: system_symbol.SystemSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(jump_gate.JumpGate, spacetraders_sdk.ApiError)
pub fn get_market(
system_symbol: system_symbol.SystemSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(market.Market, spacetraders_sdk.ApiError)
pub fn get_my_factions(
token: spacetraders_sdk.AgentToken,
page: option.Option(Int),
limit: option.Option(Int),
) -> Result(
spacetraders_sdk.PagedData(List(FactionReputation)),
spacetraders_sdk.ApiError,
)
pub fn get_public_agent(
agent_symbol: agent_symbol.AgentSymbol,
) -> Result(public_agent.PublicAgent, spacetraders_sdk.ApiError)
pub fn get_repair_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(
repair_transaction.RepairTransaction,
spacetraders_sdk.ApiError,
)
pub fn get_scrap_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(
scrap_transaction.ScrapTransaction,
spacetraders_sdk.ApiError,
)
pub fn get_server_status(
,
) -> Result(ServerStatus, spacetraders_sdk.ApiError)
pub fn get_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ship.Ship, spacetraders_sdk.ApiError)
pub fn get_ship_cargo(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ship_cargo.ShipCargo, spacetraders_sdk.ApiError)
pub fn get_ship_cooldown(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(
option.Option(cooldown.Cooldown),
spacetraders_sdk.ApiError,
)
pub fn get_ship_modules(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(
List(ship_module.ShipModule),
spacetraders_sdk.ApiError,
)
pub fn get_ship_mounts(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(List(ship_mount.ShipMount), spacetraders_sdk.ApiError)
pub fn get_ship_nav(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ship_nav.ShipNav, spacetraders_sdk.ApiError)
pub fn get_shipyard(
system_symbol: system_symbol.SystemSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(shipyard.Shipyard, spacetraders_sdk.ApiError)
pub fn get_supply_chain(
,
) -> Result(
dict.Dict(
trade_symbol.TradeSymbol,
List(trade_symbol.TradeSymbol),
),
spacetraders_sdk.ApiError,
)
pub fn get_system(
system_symbol: system_symbol.SystemSymbol,
) -> Result(system.System, spacetraders_sdk.ApiError)
pub fn get_waypoint(
system_symbol: system_symbol.SystemSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(waypoint.Waypoint, spacetraders_sdk.ApiError)
pub fn install_ship_module(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
module_symbol: module_symbol.ModuleSymbol,
) -> Result(ShipModuleInstalled, spacetraders_sdk.ApiError)
pub fn install_ship_mount(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
mount_symbol: mount_symbol.MountSymbol,
) -> Result(ShipMountInstalled, spacetraders_sdk.ApiError)
pub fn jettison_cargo(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
trade_symbol: trade_symbol.TradeSymbol,
units: Int,
) -> Result(ship_cargo.ShipCargo, spacetraders_sdk.ApiError)
pub fn jump_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(ShipJumped, spacetraders_sdk.ApiError)
pub fn list_contracts(
token: spacetraders_sdk.AgentToken,
page: option.Option(Int),
limit: option.Option(Int),
) -> Result(
spacetraders_sdk.PagedData(List(contract.Contract)),
spacetraders_sdk.ApiError,
)
pub fn list_error_codes(
,
) -> Result(List(ErrorCode), spacetraders_sdk.ApiError)
pub fn list_factions(
page: option.Option(Int),
limit: option.Option(Int),
) -> Result(
spacetraders_sdk.PagedData(List(faction.Faction)),
spacetraders_sdk.ApiError,
)
pub fn list_public_agents(
page: option.Option(Int),
limit: option.Option(Int),
) -> Result(
spacetraders_sdk.PagedData(List(public_agent.PublicAgent)),
spacetraders_sdk.ApiError,
)
pub fn list_ships(
token: spacetraders_sdk.AgentToken,
page: option.Option(Int),
limit: option.Option(Int),
) -> Result(
spacetraders_sdk.PagedData(List(ship.Ship)),
spacetraders_sdk.ApiError,
)
pub fn list_system_waypoints(
system_symbol: system_symbol.SystemSymbol,
page: option.Option(Int),
limit: option.Option(Int),
type_: option.Option(waypoint_type.WaypointType),
traits: List(waypoint_trait_symbol.WaypointTraitSymbol),
) -> Result(
spacetraders_sdk.PagedData(List(waypoint.Waypoint)),
spacetraders_sdk.ApiError,
)
pub fn list_systems(
page: option.Option(Int),
limit: option.Option(Int),
) -> Result(
spacetraders_sdk.PagedData(List(system.System)),
spacetraders_sdk.ApiError,
)
pub fn navigate_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(ShipNavigated, spacetraders_sdk.ApiError)
pub fn negotiate_contract(
token: spacetraders_sdk.AgentToken,
ship_symbol: String,
) -> Result(contract.Contract, spacetraders_sdk.ApiError)
pub fn orbit_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ship_nav.ShipNav, spacetraders_sdk.ApiError)
pub fn patch_ship_nav(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
flight_mode: ship_nav_flight_mode.ShipNavFlightMode,
) -> Result(ShipNavPatched, spacetraders_sdk.ApiError)
pub fn purchase_cargo(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
trade_symbol: trade_symbol.TradeSymbol,
) -> Result(CargoPurchased, spacetraders_sdk.ApiError)
pub fn purchase_ship(
token: spacetraders_sdk.AgentToken,
ship_type: ship_type.ShipType,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(ShipPurchased, spacetraders_sdk.ApiError)
pub fn refine_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
produce: refinement_produce.RefinementProduce,
) -> Result(ShipRefined, spacetraders_sdk.ApiError)
pub fn refuel_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
units: option.Option(Int),
from_cargo: option.Option(Bool),
) -> Result(ShipRefueled, spacetraders_sdk.ApiError)
pub fn register_new_agent(
token: spacetraders_sdk.AccountToken,
agent_symbol: agent_symbol.AgentSymbol,
faction_symbol: faction_symbol.FactionSymbol,
) -> Result(AgentRegistered, spacetraders_sdk.ApiError)
pub fn remove_ship_module(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
module_symbol: module_symbol.ModuleSymbol,
) -> Result(ShipModuleRemoved, spacetraders_sdk.ApiError)
pub fn remove_ship_mount(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
mount_symbol: mount_symbol.MountSymbol,
) -> Result(ShipMountRemoved, spacetraders_sdk.ApiError)
pub fn repair_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ShipRepaired, spacetraders_sdk.ApiError)
pub fn scan_ships(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(
Scan(scanned_ship.ScannedShip),
spacetraders_sdk.ApiError,
)
pub fn scan_systems(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(
Scan(scanned_system.ScannedSystem),
spacetraders_sdk.ApiError,
)
pub fn scan_waypoints(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(
Scan(scanned_waypoint.ScannedWaypoint),
spacetraders_sdk.ApiError,
)
pub fn scrap_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ShipScrapped, spacetraders_sdk.ApiError)
pub fn sell_cargo(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
trade_symbol: trade_symbol.TradeSymbol,
units: Int,
) -> Result(CargoSold, spacetraders_sdk.ApiError)
pub fn siphon_resources(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
) -> Result(ResourcesSiphoned, spacetraders_sdk.ApiError)
pub fn supply_construction_site(
system_symbol: system_symbol.SystemSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
ship_symbol: ship_symbol.ShipSymbol,
trade_symbol: trade_symbol.TradeSymbol,
units: Int,
) -> Result(ConstructionSiteSupplied, spacetraders_sdk.ApiError)
pub fn transfer_cargo(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
trade_symbol: trade_symbol.TradeSymbol,
units: Int,
target_ship_symbol: ship_symbol.ShipSymbol,
) -> Result(CargoTransferred, spacetraders_sdk.ApiError)
pub fn warp_ship(
token: spacetraders_sdk.AgentToken,
ship_symbol: ship_symbol.ShipSymbol,
waypoint_symbol: waypoint_symbol.WaypointSymbol,
) -> Result(ShipWarped, spacetraders_sdk.ApiError)