spacetraders_sdk
Values
pub const accept_contract: fn(
auth.AgentToken,
contract_id.ContractId,
) -> Result(contracts.AcceptContractResponse, api.ApiError)
pub const create_chart: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.CreateChartResponse, api.ApiError)
pub const create_survey: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.CreateSurveyResponse, api.ApiError)
pub const deliver_contract_cargo: fn(
auth.AgentToken,
contract_id.ContractId,
ship_symbol.ShipSymbol,
trade_symbol.TradeSymbol,
Int,
) -> Result(contracts.DeliverContractCargoResponse, api.ApiError)
pub const dock_ship: fn(auth.AgentToken, ship_symbol.ShipSymbol) -> Result(
fleet.DockShipResponse,
api.ApiError,
)
pub const extract_resources: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.ExtractResourcesResponse, api.ApiError)
pub const extract_resources_with_survey: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
survey.Survey,
) -> Result(
fleet.ExtractResourcesWithSurveyResponse,
api.ApiError,
)
pub const fulfill_contract: fn(
auth.AgentToken,
contract_id.ContractId,
) -> Result(contracts.FulfillContractResponse, api.ApiError)
pub const get_account: fn(auth.AgentToken) -> Result(
accounts.GetAccountResponse,
api.ApiError,
)
pub const get_agent: fn(auth.AgentToken) -> Result(
agents.GetAgentResponse,
api.ApiError,
)
pub const get_agent_events: fn(auth.AgentToken) -> Result(
agents.GetAgentEventsResponse,
api.ApiError,
)
pub const get_construction_site: fn(
auth.AgentToken,
system_symbol.SystemSymbol,
waypoint_symbol.WaypointSymbol,
) -> Result(systems.GetConstructionSiteResponse, api.ApiError)
pub const get_contract: fn(
auth.AgentToken,
contract_id.ContractId,
) -> Result(contracts.GetContractResponse, api.ApiError)
pub const get_faction: fn(
auth.AgentToken,
faction_symbol.FactionSymbol,
) -> Result(factions.GetFactionResponse, api.ApiError)
pub const get_jump_gate: fn(
auth.AgentToken,
system_symbol.SystemSymbol,
waypoint_symbol.WaypointSymbol,
) -> Result(systems.GetJumpGateResponse, api.ApiError)
pub const get_market: fn(
auth.AgentToken,
system_symbol.SystemSymbol,
waypoint_symbol.WaypointSymbol,
) -> Result(systems.GetMarketResponse, api.ApiError)
pub const get_my_factions: fn(
auth.AgentToken,
option.Option(Int),
option.Option(Int),
) -> Result(
api.PagedData(factions.GetMyFactionsResponse),
api.ApiError,
)
pub const get_public_agent: fn(
auth.AgentToken,
agent_symbol.AgentSymbol,
) -> Result(agents.GetPublicAgentResponse, api.ApiError)
pub const get_repair_ship: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.RepairShipResponse, api.ApiError)
pub const get_scrap_ship: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.GetScrapShipResponse, api.ApiError)
pub const get_server_status: fn() -> Result(
global.GetServerStatusResponse,
api.ApiError,
)
pub const get_ship: fn(auth.AgentToken, ship_symbol.ShipSymbol) -> Result(
fleet.GetShipResponse,
api.ApiError,
)
pub const get_ship_cargo: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.GetShipCargoResponse, api.ApiError)
pub const get_ship_cooldown: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.GetShipCooldownResponse, api.ApiError)
pub const get_ship_modules: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.GetShipModulesResponse, api.ApiError)
pub const get_ship_mounts: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.GetShipMountsResponse, api.ApiError)
pub const get_ship_nav: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.GetShipNavResponse, api.ApiError)
pub const get_shipyard: fn(auth.AgentToken, String, String) -> Result(
systems.GetShipyardResponse,
api.ApiError,
)
pub const get_supply_chain: fn(auth.AgentToken) -> Result(
data.GetSupplyChainResponse,
api.ApiError,
)
pub const get_system: fn(
auth.AgentToken,
system_symbol.SystemSymbol,
) -> Result(systems.GetSystemResponse, api.ApiError)
pub const get_waypoint: fn(
auth.AgentToken,
system_symbol.SystemSymbol,
waypoint_symbol.WaypointSymbol,
) -> Result(systems.GetWaypointResponse, api.ApiError)
pub const install_ship_module: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
module_symbol.ModuleSymbol,
) -> Result(fleet.InstallShipModuleResponse, api.ApiError)
pub const install_ship_mount: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
mount_symbol.MountSymbol,
) -> Result(fleet.InstallShipMountResponse, api.ApiError)
pub const jettison_cargo: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
trade_symbol.TradeSymbol,
Int,
) -> Result(fleet.JettisonCargoResponse, api.ApiError)
pub const jump_ship: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
waypoint_symbol.WaypointSymbol,
) -> Result(fleet.JumpShipResponse, api.ApiError)
pub const list_contracts: fn(
auth.AgentToken,
option.Option(Int),
option.Option(Int),
) -> Result(
api.PagedData(contracts.ListContractsResponse),
api.ApiError,
)
pub const list_error_codes: fn() -> Result(
global.ListErrorCodesResponse,
api.ApiError,
)
pub const list_factions: fn(
auth.AgentToken,
option.Option(Int),
option.Option(Int),
) -> Result(
api.PagedData(factions.ListFactionsResponse),
api.ApiError,
)
pub const list_public_agents: fn(
auth.AgentToken,
option.Option(Int),
option.Option(Int),
) -> Result(
api.PagedData(agents.ListPublicAgentsResponse),
api.ApiError,
)
pub const list_ships: fn(
auth.AgentToken,
option.Option(Int),
option.Option(Int),
) -> Result(api.PagedData(fleet.ListShipsResponse), api.ApiError)
pub const list_system_waypoints: fn(
auth.AgentToken,
system_symbol.SystemSymbol,
option.Option(Int),
option.Option(Int),
option.Option(waypoint_type.WaypointType),
List(waypoint_trait_symbol.WaypointTraitSymbol),
) -> Result(
api.PagedData(systems.ListSystemWaypointsResponse),
api.ApiError,
)
pub const list_systems: fn(
auth.AgentToken,
option.Option(Int),
option.Option(Int),
) -> Result(
api.PagedData(systems.ListSystemsResponse),
api.ApiError,
)
pub const navigate_ship: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
waypoint_symbol.WaypointSymbol,
) -> Result(fleet.NavigateShipResponse, api.ApiError)
pub const negotiate_contract: fn(auth.AgentToken, String) -> Result(
fleet.NegotiateContractResponse,
api.ApiError,
)
pub const orbit_ship: fn(auth.AgentToken, ship_symbol.ShipSymbol) -> Result(
fleet.OrbitShipResponse,
api.ApiError,
)
pub const patch_ship_nav: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
ship_nav_flight_mode.ShipNavFlightMode,
) -> Result(fleet.PatchShipNavResponse, api.ApiError)
pub const purchase_cargo: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
trade_symbol.TradeSymbol,
) -> Result(fleet.PurchaseCargoResponse, api.ApiError)
pub const purchase_ship: fn(
auth.AgentToken,
ship_type.ShipType,
waypoint_symbol.WaypointSymbol,
) -> Result(fleet.PurchaseShipResponse, api.ApiError)
pub const refine_ship: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
refinement_produce.RefinementProduce,
) -> Result(fleet.RefineShipResponse, api.ApiError)
pub const refuel_ship: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
option.Option(Int),
option.Option(Bool),
) -> Result(fleet.RefuelShipResponse, api.ApiError)
pub const register_new_agent: fn(
auth.AccountToken,
agent_symbol.AgentSymbol,
faction_symbol.FactionSymbol,
) -> Result(accounts.RegisterNewAgentResponse, api.ApiError)
pub const remove_ship_module: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
module_symbol.ModuleSymbol,
) -> Result(fleet.RemoveShipModuleResponse, api.ApiError)
pub const remove_ship_mount: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
mount_symbol.MountSymbol,
) -> Result(fleet.RemoveShipMountResponse, api.ApiError)
pub const repair_ship: fn(auth.AgentToken, ship_symbol.ShipSymbol) -> Result(
fleet.RepairShipResponse,
api.ApiError,
)
pub const scan_ships: fn(auth.AgentToken, ship_symbol.ShipSymbol) -> Result(
fleet.ScanShipsResponse,
api.ApiError,
)
pub const scan_systems: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.ScanSystemsResponse, api.ApiError)
pub const scan_waypoints: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.ScanWaypointsResponse, api.ApiError)
pub const scrap_ship: fn(auth.AgentToken, ship_symbol.ShipSymbol) -> Result(
fleet.ScrapShipResponse,
api.ApiError,
)
pub const sell_cargo: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
trade_symbol.TradeSymbol,
Int,
) -> Result(fleet.SellCargoResponse, api.ApiError)
pub const siphon_resources: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
) -> Result(fleet.SiphonResourcesResponse, api.ApiError)
pub const supply_construction_site: fn(
auth.AgentToken,
system_symbol.SystemSymbol,
waypoint_symbol.WaypointSymbol,
ship_symbol.ShipSymbol,
trade_symbol.TradeSymbol,
Int,
) -> Result(systems.SupplyConstructionSiteResponse, api.ApiError)
pub const transfer_cargo: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
trade_symbol.TradeSymbol,
Int,
ship_symbol.ShipSymbol,
) -> Result(fleet.TransferCargoResponse, api.ApiError)
pub const warp_ship: fn(
auth.AgentToken,
ship_symbol.ShipSymbol,
waypoint_symbol.WaypointSymbol,
) -> Result(fleet.WarpShipResponse, api.ApiError)