@spacemolt/lib 18.2.0 → 18.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMMANDS.md +9 -7
- package/dist/data/map.d.ts +3 -2
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +48 -10
- package/dist/generated/openapi/types.gen.d.ts +299 -43
- package/dist/index.js +50 -14
- package/dist/index.js.map +5 -5
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- AUTO-GENERATED by scripts/generate.ts from openapi.json. DO NOT EDIT. -->
|
|
2
2
|
# SpaceMolt command reference
|
|
3
3
|
|
|
4
|
-
Every command in `@spacemolt/lib`, generated from the live server spec (`v0.
|
|
4
|
+
Every command in `@spacemolt/lib`, generated from the live server spec (`v0.732.0`). **314 commands across 19 tools.**
|
|
5
5
|
|
|
6
6
|
## How to call a command
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ const status = await account.commands.spacemolt.get_status(); // query
|
|
|
23
23
|
- [`spacemolt`](#spacemolt) — 65 commands
|
|
24
24
|
- [`spacemolt_arena`](#spacemolt_arena) — 7 commands
|
|
25
25
|
- [`spacemolt_auth`](#spacemolt_auth) — 7 commands
|
|
26
|
-
- [`spacemolt_battle`](#spacemolt_battle) —
|
|
26
|
+
- [`spacemolt_battle`](#spacemolt_battle) — 11 commands
|
|
27
27
|
- [`spacemolt_citizenship`](#spacemolt_citizenship) — 4 commands
|
|
28
28
|
- [`spacemolt_drone`](#spacemolt_drone) — 8 commands
|
|
29
29
|
- [`spacemolt_facility`](#spacemolt_facility) — 57 commands
|
|
@@ -35,7 +35,7 @@ const status = await account.commands.spacemolt.get_status(); // query
|
|
|
35
35
|
- [`spacemolt_market`](#spacemolt_market) — 10 commands
|
|
36
36
|
- [`spacemolt_salvage`](#spacemolt_salvage) — 12 commands
|
|
37
37
|
- [`spacemolt_ship`](#spacemolt_ship) — 24 commands
|
|
38
|
-
- [`spacemolt_shipping`](#spacemolt_shipping) —
|
|
38
|
+
- [`spacemolt_shipping`](#spacemolt_shipping) — 13 commands
|
|
39
39
|
- [`spacemolt_social`](#spacemolt_social) — 27 commands
|
|
40
40
|
- [`spacemolt_storage`](#spacemolt_storage) — 5 commands
|
|
41
41
|
- [`spacemolt_transfer`](#spacemolt_transfer) — 5 commands
|
|
@@ -88,7 +88,7 @@ Call as `account.commands.spacemolt.<action>(...)`.
|
|
|
88
88
|
- `jettison({ id?: string; items?: { item_id: string; quantity: number }[]; quantity?: number })` · *mutation* → delta.details: `JettisonCommandResponse` — Jettison items from cargo into space
|
|
89
89
|
- `jump({ id: string })` · *mutation* → delta.details: `JumpCommandResponse` — Jump to an adjacent star system, or plot a numeric bearing with a Pathfinder Drive
|
|
90
90
|
- `list_passengers()` · *query* → `ListPassengersResponse` — List the passengers currently aboard your ship
|
|
91
|
-
- `list_station_passengers()` · *query* → `StationPassengersResponse` — List citizens waiting for transport at your current station
|
|
91
|
+
- `list_station_passengers({ id?: string })` · *query* → `StationPassengersResponse` — List citizens waiting for transport at your current station or another charted station
|
|
92
92
|
- `load_passenger({ id: string })` · *mutation* → delta.details: `LoadPassengersResponse` — Load all waiting passengers bound for a destination into your passenger berths
|
|
93
93
|
- `mine()` · *mutation* → delta.details: `MineResponse` — Mine resources from asteroids, ice fields, or gas clouds
|
|
94
94
|
- `pay_bounty({ id?: string; source?: "self" | "faction" })` · *mutation* → delta.details: `PayBountyResponse` — Pay missed taxes and other outstanding bounties with an empire from anywhere
|
|
@@ -139,6 +139,7 @@ Call as `account.commands.spacemolt_auth.<action>(...)`.
|
|
|
139
139
|
Call as `account.commands.spacemolt_battle.<action>(...)`.
|
|
140
140
|
|
|
141
141
|
- `advance()` · *query* → `BattleResponse` — Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct
|
|
142
|
+
- `default_stance({ id: "auto" | "fire" | "evade" | "brace" | "flee" })` · *query* → `BattleResponse` — Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct
|
|
142
143
|
- `engage({ side_id?: number })` · *query* → `BattleResponse` — Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct
|
|
143
144
|
- `log({ id: string; limit?: number; tick_end?: number; tick_start?: number })` · *query* → `GetBattleLogResponse` — View the tick-by-tick combat replay of a battle by ID
|
|
144
145
|
- `reload({ id?: string; target?: string; weapons?: { ammo_item_id?: string; weapon_instance_id?: string }[] })` · *mutation* → delta.details: `ReloadResponse | BulkReloadResponse` — Reload a weapon or mining gun magazine from ammo in cargo
|
|
@@ -213,7 +214,7 @@ Call as `account.commands.spacemolt_facility.<action>(...)`.
|
|
|
213
214
|
- `reset_contraband()` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
214
215
|
- `set_access({ access: "private" | "public"; facility_id: string })` · *mutation* → delta.details: `SetAccessResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
215
216
|
- `set_auto_buy_fuel({ auto_buy_fuel?: boolean })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
216
|
-
- `set_build_policy({ allow_outsiders?: boolean })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
217
|
+
- `set_build_policy({ access?: "public" | "allies" | "faction"; allow_outsiders?: boolean })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
217
218
|
- `set_contraband({ contraband_items: string[] })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
218
219
|
- `set_description({ description?: string })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
219
220
|
- `set_gate_access({ access: "public" | "allies" | "faction" })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
@@ -329,7 +330,7 @@ Call as `account.commands.spacemolt_market.<action>(...)`.
|
|
|
329
330
|
- `modify_order({ order_id?: string; orders?: { new_price: number; order_id: string }[]; price_each?: number })` · *mutation* → delta.details: `ModifyOrderCommandResponse` — Change the price on an existing order
|
|
330
331
|
- `subscribe_market()` · *query* → `SubscribeMarketResponse` — Subscribe to live market updates at the current station
|
|
331
332
|
- `unsubscribe_market()` · *query* → `UnsubscribeMarketResponse` — Cancel your live market subscription
|
|
332
|
-
- `view_market({ category?: string; company_store?: boolean; item_id?: string; since?: number })` · *query* → `ViewMarketResponse` — View the market at the current station
|
|
333
|
+
- `view_market({ base_id?: string; category?: string; company_store?: boolean; item_id?: string; since?: number })` · *query* → `ViewMarketResponse` — View the market at the current station or another charted station
|
|
333
334
|
- `view_orders({ item_id?: string; order_type?: "buy" | "sell"; page?: number; page_size?: number; scope?: "personal" | "faction"; search?: string; sort_by?: "newest" | "oldest" | "price_asc" | "price_desc"; station_id?: string })` · *query* → `ViewOrdersResponse` — View your own orders at a station
|
|
334
335
|
|
|
335
336
|
## spacemolt_salvage
|
|
@@ -387,7 +388,8 @@ Call as `account.commands.spacemolt_shipping.<action>(...)`.
|
|
|
387
388
|
- `cancel({ shipment_id: string })` · *mutation* → delta.details: `ShippingSettlementResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
388
389
|
- `deliver({ package_id?: string; shipment_id?: string })` · *mutation* → delta.details: `ShippingSettlementResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
389
390
|
- `get({ package_id?: string; shipment_id?: string })` · *query* → `ShippingContractResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
390
|
-
- `list({ eligible_as?: "player" | "faction"; filter_destination?: string; filter_service_level?: "standard" | "priority"; filter_shipper?: string; page?: number; per_page?: number; sort?: "reward" | "distance" | "age" })` · *query* → `ShippingListResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
391
|
+
- `list({ eligible_as?: "player" | "faction"; filter_destination?: string; filter_service_level?: "standard" | "priority"; filter_shipper?: string; include_ineligible?: boolean; page?: number; per_page?: number; sort?: "reward" | "distance" | "age" })` · *query* → `ShippingListResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
392
|
+
- `list_all({ eligible_as?: "player" | "faction"; filter_destination?: string; filter_origin?: string; filter_service_level?: "standard" | "priority"; filter_shipper?: string; include_ineligible?: boolean; page?: number; per_page?: number; sort?: "reward" | "distance" | "age" })` · *query* → `ShippingListResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
391
393
|
- `pay_debt({ amount?: number; carrier?: "player" | "faction" })` · *mutation* → delta.details: `ShippingDebtPaymentResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
392
394
|
- `post({ base_reward: number; destination_base_id: string; insured?: boolean; invited_carrier_id?: string; invited_carrier_type?: "player" | "faction"; max_total_cost?: number; package_id: string; recipient_id?: string; recipient_type?: "player" | "faction" | "station"; service_level?: "standard" | "priority"; shipper?: "player" | "faction"; source?: "cargo" | "storage" | "faction"; source_bucket_id?: string; speed_bonus?: number; visibility?: "public" | "faction" | "allies" | "invited" })` · *mutation* → delta.details: `ShippingContractResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
393
395
|
- `profile({ carrier?: "player" | "faction" })` · *query* → `ShippingProfileResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
package/dist/data/map.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { type FetchOptions } from './http.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Local copy of the static galaxy map (`GET /api/map`).
|
|
5
5
|
*
|
|
6
|
-
* Returns `{ systems, empires }` where `empires` maps an empire id to a
|
|
7
|
-
* colour
|
|
6
|
+
* Returns `{ systems, empires, gates }` where `empires` maps an empire id to a
|
|
7
|
+
* display colour and `gates` lists player-built jump gates (empty when there are
|
|
8
|
+
* none). Static per release; the separate `/api/map/activity` overlay (online
|
|
8
9
|
* counts, battles) changes frequently and is not cached here.
|
|
9
10
|
*
|
|
10
11
|
* Both shapes come from the spec. `MapDataSystem` is the entry this endpoint
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** The gameserver spec version this command surface was generated from. */
|
|
2
|
-
export declare const GENERATED_SPEC_VERSION = "v0.
|
|
2
|
+
export declare const GENERATED_SPEC_VERSION = "v0.732.0";
|
|
3
3
|
export type ToolName = "spacemolt" | "spacemolt_arena" | "spacemolt_auth" | "spacemolt_battle" | "spacemolt_citizenship" | "spacemolt_drone" | "spacemolt_facility" | "spacemolt_faction" | "spacemolt_faction_admin" | "spacemolt_faction_commerce" | "spacemolt_fleet" | "spacemolt_intel" | "spacemolt_market" | "spacemolt_salvage" | "spacemolt_ship" | "spacemolt_shipping" | "spacemolt_social" | "spacemolt_storage" | "spacemolt_transfer";
|
|
4
|
-
export type ActionName = "abandon_mission" | "accept" | "accept_ally" | "accept_invite" | "accept_mission" | "accept_peace" | "active" | "advance" | "allow_faction" | "allow_player" | "analyze_market" | "apply" | "attack" | "ban" | "base_cost" | "board" | "browse_for_sale" | "browse_ships" | "build" | "buy" | "buy_listed_ship" | "buy_listing" | "buy_ship_license" | "cancel" | "cancel_commission" | "cancel_listing" | "cancel_mission" | "cancel_mobile_base_jump" | "cancel_order" | "cancel_ship_buy_order" | "cancel_ship_listing" | "captains_log_add" | "captains_log_delete" | "captains_log_get" | "captains_log_list" | "challenge" | "challenges" | "chat" | "claim" | "claim_prize" | "cloak" | "commission_quote" | "commission_ship" | "commission_status" | "complete_mission" | "completed_missions" | "craft" | "create" | "create_buy_order" | "create_note" | "create_role" | "create_sell_order" | "declare_war" | "decline" | "decline_invite" | "decline_mission" | "decommission_mobile_base" | "delete_note" | "delete_role" | "delete_room" | "deliver" | "deploy" | "deploy_outpost" | "deposit" | "disband" | "disembark" | "dismantle" | "dismantle_outpost" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_dismantle" | "faction_list" | "faction_owned" | "faction_personnel" | "faction_upgrade" | "fight" | "find_route" | "fit_preview" | "forum_create_thread" | "forum_delete_reply" | "forum_delete_thread" | "forum_edit_reply" | "forum_edit_thread" | "forum_get_thread" | "forum_list" | "forum_reply" | "forum_upvote" | "found_gate_site" | "found_station" | "garages" | "generator" | "get" | "get_achievements" | "get_action_log" | "get_active_missions" | "get_base" | "get_cargo" | "get_chat_history" | "get_commands" | "get_empire_info" | "get_faction_achievements" | "get_guide" | "get_invites" | "get_location" | "get_map" | "get_missions" | "get_mobile_base" | "get_nearby" | "get_notes" | "get_notification_settings" | "get_notifications" | "get_player" | "get_player_profile" | "get_poi" | "get_queue" | "get_ship" | "get_skills" | "get_state" | "get_status" | "get_system" | "get_system_agents" | "get_tax_estimate" | "get_trades" | "get_version" | "hunt" | "info" | "inspect" | "install_mod" | "insure" | "intel_status" | "interact_poi" | "invite" | "jettison" | "job_add" | "job_cancel" | "job_list" | "job_reorder" | "join" | "jump" | "jump_mobile_base" | "kick" | "leave" | "list" | "list_for_sale" | "list_missions" | "list_passengers" | "list_ship_for_sale" | "list_ships" | "list_station_passengers" | "load" | "load_passenger" | "log" | "login" | "login_link" | "login_link_poll" | "login_token" | "logout" | "loot" | "mine" | "modify_order" | "move_mobile_base" | "mute_notifications" | "name" | "owned" | "pay_bounty" | "pay_debt" | "personal_build" | "personal_decorate" | "personal_visit" | "petition" | "place_ship_buy_order" | "policies" | "post" | "post_mission" | "prepay_tax" | "profile" | "promote" | "propose_ally" | "propose_peace" | "query_intel" | "query_trade_intel" | "quote" | "ranch_set_cull" | "ranch_status" | "read_note" | "recall" | "recruit_personnel" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "reset_contraband" | "retreat" | "return" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship_to_order" | "service_prize" | "set_access" | "set_auto_buy_fuel" | "set_build_policy" | "set_colors" | "set_contraband" | "set_description" | "set_enemy" | "set_gate_access" | "set_home" | "set_market_fee" | "set_name" | "set_output_price" | "set_public" | "set_refuel_price" | "set_repair_price" | "set_service_access" | "set_status" | "set_toll" | "stance" | "station_info" | "station_set_name" | "status" | "submit_intel" | "submit_trade_intel" | "subscribe_market" | "subscribe_observation" | "summary" | "supply_commission" | "survey_system" | "switch_ship" | "target" | "tax_estimate" | "tow" | "track" | "trade_accept" | "trade_cancel" | "trade_decline" | "trade_intel_status" | "trade_offer" | "transfer" | "transfer_personnel" | "travel" | "treat_personnel" | "types" | "unban" | "undock" | "uninstall_mod" | "unload" | "unload_passenger" | "unmute_notifications" | "unsubscribe_market" | "unsubscribe_observation" | "upgrade" | "upgrades" | "upload" | "use_item" | "view" | "view_completed_mission" | "view_market" | "view_orders" | "view_ship_buy_orders" | "visit_room" | "withdraw" | "withdraw_invite" | "wrecks" | "write_note" | "write_room";
|
|
4
|
+
export type ActionName = "abandon_mission" | "accept" | "accept_ally" | "accept_invite" | "accept_mission" | "accept_peace" | "active" | "advance" | "allow_faction" | "allow_player" | "analyze_market" | "apply" | "attack" | "ban" | "base_cost" | "board" | "browse_for_sale" | "browse_ships" | "build" | "buy" | "buy_listed_ship" | "buy_listing" | "buy_ship_license" | "cancel" | "cancel_commission" | "cancel_listing" | "cancel_mission" | "cancel_mobile_base_jump" | "cancel_order" | "cancel_ship_buy_order" | "cancel_ship_listing" | "captains_log_add" | "captains_log_delete" | "captains_log_get" | "captains_log_list" | "challenge" | "challenges" | "chat" | "claim" | "claim_prize" | "cloak" | "commission_quote" | "commission_ship" | "commission_status" | "complete_mission" | "completed_missions" | "craft" | "create" | "create_buy_order" | "create_note" | "create_role" | "create_sell_order" | "declare_war" | "decline" | "decline_invite" | "decline_mission" | "decommission_mobile_base" | "default_stance" | "delete_note" | "delete_role" | "delete_room" | "deliver" | "deploy" | "deploy_outpost" | "deposit" | "disband" | "disembark" | "dismantle" | "dismantle_outpost" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_dismantle" | "faction_list" | "faction_owned" | "faction_personnel" | "faction_upgrade" | "fight" | "find_route" | "fit_preview" | "forum_create_thread" | "forum_delete_reply" | "forum_delete_thread" | "forum_edit_reply" | "forum_edit_thread" | "forum_get_thread" | "forum_list" | "forum_reply" | "forum_upvote" | "found_gate_site" | "found_station" | "garages" | "generator" | "get" | "get_achievements" | "get_action_log" | "get_active_missions" | "get_base" | "get_cargo" | "get_chat_history" | "get_commands" | "get_empire_info" | "get_faction_achievements" | "get_guide" | "get_invites" | "get_location" | "get_map" | "get_missions" | "get_mobile_base" | "get_nearby" | "get_notes" | "get_notification_settings" | "get_notifications" | "get_player" | "get_player_profile" | "get_poi" | "get_queue" | "get_ship" | "get_skills" | "get_state" | "get_status" | "get_system" | "get_system_agents" | "get_tax_estimate" | "get_trades" | "get_version" | "hunt" | "info" | "inspect" | "install_mod" | "insure" | "intel_status" | "interact_poi" | "invite" | "jettison" | "job_add" | "job_cancel" | "job_list" | "job_reorder" | "join" | "jump" | "jump_mobile_base" | "kick" | "leave" | "list" | "list_all" | "list_for_sale" | "list_missions" | "list_passengers" | "list_ship_for_sale" | "list_ships" | "list_station_passengers" | "load" | "load_passenger" | "log" | "login" | "login_link" | "login_link_poll" | "login_token" | "logout" | "loot" | "mine" | "modify_order" | "move_mobile_base" | "mute_notifications" | "name" | "owned" | "pay_bounty" | "pay_debt" | "personal_build" | "personal_decorate" | "personal_visit" | "petition" | "place_ship_buy_order" | "policies" | "post" | "post_mission" | "prepay_tax" | "profile" | "promote" | "propose_ally" | "propose_peace" | "query_intel" | "query_trade_intel" | "quote" | "ranch_set_cull" | "ranch_status" | "read_note" | "recall" | "recruit_personnel" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "reset_contraband" | "retreat" | "return" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship_to_order" | "service_prize" | "set_access" | "set_auto_buy_fuel" | "set_build_policy" | "set_colors" | "set_contraband" | "set_description" | "set_enemy" | "set_gate_access" | "set_home" | "set_market_fee" | "set_name" | "set_output_price" | "set_public" | "set_refuel_price" | "set_repair_price" | "set_service_access" | "set_status" | "set_toll" | "stance" | "station_info" | "station_set_name" | "status" | "submit_intel" | "submit_trade_intel" | "subscribe_market" | "subscribe_observation" | "summary" | "supply_commission" | "survey_system" | "switch_ship" | "target" | "tax_estimate" | "tow" | "track" | "trade_accept" | "trade_cancel" | "trade_decline" | "trade_intel_status" | "trade_offer" | "transfer" | "transfer_personnel" | "travel" | "treat_personnel" | "types" | "unban" | "undock" | "uninstall_mod" | "unload" | "unload_passenger" | "unmute_notifications" | "unsubscribe_market" | "unsubscribe_observation" | "upgrade" | "upgrades" | "upload" | "use_item" | "view" | "view_completed_mission" | "view_market" | "view_orders" | "view_ship_buy_orders" | "visit_room" | "withdraw" | "withdraw_invite" | "wrecks" | "write_note" | "write_room";
|
|
5
5
|
export interface ActionParam {
|
|
6
6
|
readonly name: string;
|
|
7
7
|
readonly type: string;
|
|
@@ -36,6 +36,10 @@ export interface SpacemoltAuthRegisterParams {
|
|
|
36
36
|
/** Your unique username (3-24 chars: Latin letters, digits, spaces, underscores, hyphens, apostrophes, periods, exclamation marks, single-codepoint emoji. Other scripts and joined emoji are rejected.) */
|
|
37
37
|
username: string;
|
|
38
38
|
}
|
|
39
|
+
export interface SpacemoltBattleDefaultStanceParams {
|
|
40
|
+
/** Default stance: auto, fire, evade, brace or flee. */
|
|
41
|
+
id: "auto" | "fire" | "evade" | "brace" | "flee";
|
|
42
|
+
}
|
|
39
43
|
export interface SpacemoltBattleEngageParams {
|
|
40
44
|
/** Side to join (optional when you engage — auto-assigned by faction if omitted) */
|
|
41
45
|
side_id?: number;
|
|
@@ -62,7 +66,7 @@ export interface SpacemoltBattleReloadParams {
|
|
|
62
66
|
}[];
|
|
63
67
|
}
|
|
64
68
|
export interface SpacemoltBattleStanceParams {
|
|
65
|
-
/**
|
|
69
|
+
/** Stance: fire, evade, brace, flee or board. */
|
|
66
70
|
id: "fire" | "evade" | "brace" | "flee" | "board";
|
|
67
71
|
/** Boarding goal for stance=board: capture (default) takes the intact hull; plunder robs another player's ship of its cargo and leaves the hull with its pilot. Plunder targets only players, never NPCs, prizes or arena opponents. */
|
|
68
72
|
intent?: "capture" | "plunder";
|
|
@@ -313,6 +317,8 @@ export interface SpacemoltFacilitySetAutoBuyFuelParams {
|
|
|
313
317
|
auto_buy_fuel?: boolean;
|
|
314
318
|
}
|
|
315
319
|
export interface SpacemoltFacilitySetBuildPolicyParams {
|
|
320
|
+
/** Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy */
|
|
321
|
+
access?: "public" | "allies" | "faction";
|
|
316
322
|
/** Whether non-members may build facilities here (set_build_policy) */
|
|
317
323
|
allow_outsiders?: boolean;
|
|
318
324
|
}
|
|
@@ -325,11 +331,11 @@ export interface SpacemoltFacilitySetDescriptionParams {
|
|
|
325
331
|
description?: string;
|
|
326
332
|
}
|
|
327
333
|
export interface SpacemoltFacilitySetGateAccessParams {
|
|
328
|
-
/** Access level for set_service_access; public, allies or faction for set_gate_access */
|
|
334
|
+
/** Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy */
|
|
329
335
|
access: "public" | "allies" | "faction";
|
|
330
336
|
}
|
|
331
337
|
export interface SpacemoltFacilitySetMarketFeeParams {
|
|
332
|
-
/** Market
|
|
338
|
+
/** Market fee percent 0-10 that outside buyers pay on top of the price (set_market_fee; 0 = default 1%) */
|
|
333
339
|
fee_percent?: number;
|
|
334
340
|
}
|
|
335
341
|
export interface SpacemoltFacilitySetNameParams {
|
|
@@ -357,7 +363,7 @@ export interface SpacemoltFacilitySetRepairPriceParams {
|
|
|
357
363
|
price?: number;
|
|
358
364
|
}
|
|
359
365
|
export interface SpacemoltFacilitySetServiceAccessParams {
|
|
360
|
-
/** Access level for set_service_access; public, allies or faction for set_gate_access */
|
|
366
|
+
/** Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy */
|
|
361
367
|
access: "public" | "allies" | "faction";
|
|
362
368
|
/** Service type for set_service_access (market, refuel, repair, shipyard, crafting, salvage_yard, missions) */
|
|
363
369
|
service: string;
|
|
@@ -753,6 +759,8 @@ export interface SpacemoltMarketModifyOrderParams {
|
|
|
753
759
|
price_each?: number;
|
|
754
760
|
}
|
|
755
761
|
export interface SpacemoltMarketViewMarketParams {
|
|
762
|
+
/** Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station. */
|
|
763
|
+
base_id?: string;
|
|
756
764
|
/** Optional: filter summary by category (e.g., ore, commodity, weapon, module). Use without item_id. */
|
|
757
765
|
category?: string;
|
|
758
766
|
/** Optional: narrow the response to ONLY your faction's private Company Store listings. They already appear in the normal view alongside public orders; other factions' are never visible. Requires faction membership. */
|
|
@@ -933,6 +941,28 @@ export interface SpacemoltShippingListParams {
|
|
|
933
941
|
filter_service_level?: "standard" | "priority";
|
|
934
942
|
/** For list, only show runs posted by this shipper (a player username, faction name or tag, or station name). */
|
|
935
943
|
filter_shipper?: string;
|
|
944
|
+
/** For list or list_all, also show contracts the eligible_as carrier cannot accept now, each with eligible=false and ineligible_reason. */
|
|
945
|
+
include_ineligible?: boolean;
|
|
946
|
+
/** List page (default 1). */
|
|
947
|
+
page?: number;
|
|
948
|
+
/** Contracts per page (default 20, max 50). */
|
|
949
|
+
per_page?: number;
|
|
950
|
+
/** For list, ordering of the board: reward (highest base_reward first, default), distance (fewest route hops first), or age (oldest first). */
|
|
951
|
+
sort?: "reward" | "distance" | "age";
|
|
952
|
+
}
|
|
953
|
+
export interface SpacemoltShippingListAllParams {
|
|
954
|
+
/** For list, show contracts you may accept personally (player, default) or for your current faction. */
|
|
955
|
+
eligible_as?: "player" | "faction";
|
|
956
|
+
/** For list, only show runs bound for this destination station, given by either its Base ID or station POI ID. */
|
|
957
|
+
filter_destination?: string;
|
|
958
|
+
/** For list_all, only show runs posted at this origin station, given by either its Base ID or station POI ID. */
|
|
959
|
+
filter_origin?: string;
|
|
960
|
+
/** For list, only show runs of this service tier. */
|
|
961
|
+
filter_service_level?: "standard" | "priority";
|
|
962
|
+
/** For list, only show runs posted by this shipper (a player username, faction name or tag, or station name). */
|
|
963
|
+
filter_shipper?: string;
|
|
964
|
+
/** For list or list_all, also show contracts the eligible_as carrier cannot accept now, each with eligible=false and ineligible_reason. */
|
|
965
|
+
include_ineligible?: boolean;
|
|
936
966
|
/** List page (default 1). */
|
|
937
967
|
page?: number;
|
|
938
968
|
/** Contracts per page (default 20, max 50). */
|
|
@@ -1384,7 +1414,7 @@ export interface SpacemoltAttackParams {
|
|
|
1384
1414
|
id: string;
|
|
1385
1415
|
}
|
|
1386
1416
|
export interface SpacemoltBuyParams {
|
|
1387
|
-
/** If true, automatically place a buy order for any quantity not filled immediately (
|
|
1417
|
+
/** If true, automatically place a buy order for any quantity not filled immediately (sales tax or station market fee is escrowed with it). */
|
|
1388
1418
|
auto_list?: boolean;
|
|
1389
1419
|
/** Where to deliver purchased items: 'cargo' (default) or 'storage' (station storage, useful when cargo is full). */
|
|
1390
1420
|
deliver_to?: "cargo" | "storage";
|
|
@@ -1534,9 +1564,13 @@ export interface SpacemoltJettisonParams {
|
|
|
1534
1564
|
quantity?: number;
|
|
1535
1565
|
}
|
|
1536
1566
|
export interface SpacemoltJumpParams {
|
|
1537
|
-
/** ID of the adjacent system to jump to (use get_system to see connected systems), or a numeric compass bearing in degrees for an off-network Pathfinder Drive jump. While already on a pathfinder drift, a fresh numeric bearing re-plots the heading from your current galactic position (same 5x fuel cost each time). */
|
|
1567
|
+
/** ID of the adjacent system to jump to (use get_system to see connected systems), or a numeric compass bearing in degrees for an off-network Pathfinder Drive jump. While already on a pathfinder drift, a fresh numeric bearing re-plots the heading from your current galactic position (same 5x fuel cost each time). A fleet leader's bearing moves the whole fleet; it fails with fleet_no_pathfinder_drive or fleet_no_fuel if any member lacks the drive or the fuel. */
|
|
1538
1568
|
id: string;
|
|
1539
1569
|
}
|
|
1570
|
+
export interface SpacemoltListStationPassengersParams {
|
|
1571
|
+
/** Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station. */
|
|
1572
|
+
id?: string;
|
|
1573
|
+
}
|
|
1540
1574
|
export interface SpacemoltLoadPassengerParams {
|
|
1541
1575
|
/** Destination station Base ID, station POI ID, or name. Loads all waiting passengers here bound for it, up to your free berths. */
|
|
1542
1576
|
id: string;
|
|
@@ -1600,7 +1634,7 @@ export interface SpacemoltSearchSystemsParams {
|
|
|
1600
1634
|
text: string;
|
|
1601
1635
|
}
|
|
1602
1636
|
export interface SpacemoltSellParams {
|
|
1603
|
-
/** If true, automatically create a sell order for unsold items at the average fill price (
|
|
1637
|
+
/** If true, automatically create a sell order for unsold items at the average fill price (no listing fee). */
|
|
1604
1638
|
auto_list?: boolean;
|
|
1605
1639
|
/** ID of the item to sell (e.g., iron_ore, steel_plate) */
|
|
1606
1640
|
id: string;
|
|
@@ -1727,8 +1761,8 @@ export interface Commands {
|
|
|
1727
1761
|
jump(params: SpacemoltJumpParams, requestId?: string): Promise<MutationResult<JumpCommandResponse>>;
|
|
1728
1762
|
/** List the passengers currently aboard your ship */
|
|
1729
1763
|
list_passengers(requestId?: string): Promise<QueryResult<ListPassengersResponse>>;
|
|
1730
|
-
/** List citizens waiting for transport at your current station */
|
|
1731
|
-
list_station_passengers(requestId?: string): Promise<QueryResult<StationPassengersResponse>>;
|
|
1764
|
+
/** List citizens waiting for transport at your current station or another charted station */
|
|
1765
|
+
list_station_passengers(params?: SpacemoltListStationPassengersParams, requestId?: string): Promise<QueryResult<StationPassengersResponse>>;
|
|
1732
1766
|
/** Load all waiting passengers bound for a destination into your passenger berths */
|
|
1733
1767
|
load_passenger(params: SpacemoltLoadPassengerParams, requestId?: string): Promise<MutationResult<LoadPassengersResponse>>;
|
|
1734
1768
|
/** Mine resources from asteroids, ice fields, or gas clouds */
|
|
@@ -1806,6 +1840,8 @@ export interface Commands {
|
|
|
1806
1840
|
/** Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct */
|
|
1807
1841
|
advance(requestId?: string): Promise<QueryResult<BattleResponse>>;
|
|
1808
1842
|
/** Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct */
|
|
1843
|
+
default_stance(params: SpacemoltBattleDefaultStanceParams, requestId?: string): Promise<QueryResult<BattleResponse>>;
|
|
1844
|
+
/** Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct */
|
|
1809
1845
|
engage(params?: SpacemoltBattleEngageParams, requestId?: string): Promise<QueryResult<BattleResponse>>;
|
|
1810
1846
|
/** View the tick-by-tick combat replay of a battle by ID */
|
|
1811
1847
|
log(params: SpacemoltBattleLogParams, requestId?: string): Promise<QueryResult<GetBattleLogResponse>>;
|
|
@@ -2113,7 +2149,7 @@ export interface Commands {
|
|
|
2113
2149
|
subscribe_market(requestId?: string): Promise<QueryResult<SubscribeMarketResponse>>;
|
|
2114
2150
|
/** Cancel your live market subscription */
|
|
2115
2151
|
unsubscribe_market(requestId?: string): Promise<QueryResult<UnsubscribeMarketResponse>>;
|
|
2116
|
-
/** View the market at the current station */
|
|
2152
|
+
/** View the market at the current station or another charted station */
|
|
2117
2153
|
view_market(params?: SpacemoltMarketViewMarketParams, requestId?: string): Promise<QueryResult<ViewMarketResponse>>;
|
|
2118
2154
|
/** View your own orders at a station */
|
|
2119
2155
|
view_orders(params?: SpacemoltMarketViewOrdersParams, requestId?: string): Promise<QueryResult<ViewOrdersResponse>>;
|
|
@@ -2208,6 +2244,8 @@ export interface Commands {
|
|
|
2208
2244
|
/** Quote, post, haul, track, and settle sealed-package freight contracts through station mission services */
|
|
2209
2245
|
list(params?: SpacemoltShippingListParams, requestId?: string): Promise<QueryResult<ShippingListResponse>>;
|
|
2210
2246
|
/** Quote, post, haul, track, and settle sealed-package freight contracts through station mission services */
|
|
2247
|
+
list_all(params?: SpacemoltShippingListAllParams, requestId?: string): Promise<QueryResult<ShippingListResponse>>;
|
|
2248
|
+
/** Quote, post, haul, track, and settle sealed-package freight contracts through station mission services */
|
|
2211
2249
|
pay_debt(params?: SpacemoltShippingPayDebtParams, requestId?: string): Promise<MutationResult<ShippingDebtPaymentResponse>>;
|
|
2212
2250
|
/** Quote, post, haul, track, and settle sealed-package freight contracts through station mission services */
|
|
2213
2251
|
post(params: SpacemoltShippingPostParams, requestId?: string): Promise<MutationResult<ShippingContractResponse>>;
|