@spacemolt/lib 18.0.0 → 18.0.2
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
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.715.2`). **312 commands across 19 tools.**
|
|
5
5
|
|
|
6
6
|
## How to call a command
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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.715.2";
|
|
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
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";
|
|
5
5
|
export interface ActionParam {
|
|
@@ -589,7 +589,7 @@ export interface SpacemoltFactionJoinParams {
|
|
|
589
589
|
id: string;
|
|
590
590
|
}
|
|
591
591
|
export interface SpacemoltFactionJumpMobileBaseParams {
|
|
592
|
-
/** Adjacent destination system
|
|
592
|
+
/** Adjacent destination system (a frontier system must be charted by the commander or the faction) */
|
|
593
593
|
id: string;
|
|
594
594
|
}
|
|
595
595
|
export interface SpacemoltFactionKickParams {
|
|
@@ -3644,7 +3644,13 @@ export type FacilityDefSummary = {
|
|
|
3644
3644
|
labor_cost: number;
|
|
3645
3645
|
level: number;
|
|
3646
3646
|
/**
|
|
3647
|
-
*
|
|
3647
|
+
* Average units of each upkeep item this facility destroys per facility cycle (100 ticks), keyed by item ID (fuel for station-tank fuel). Whole units are drawn on rotating cycles. Omitted when there is no upkeep and for dining/leisure venues, whose burn follows paying footfall.
|
|
3648
|
+
*/
|
|
3649
|
+
maintenance_average_burn_per_cycle?: {
|
|
3650
|
+
[key: string]: number;
|
|
3651
|
+
};
|
|
3652
|
+
/**
|
|
3653
|
+
* Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume and is drawn in full each cycle.
|
|
3648
3654
|
*/
|
|
3649
3655
|
maintenance_per_cycle?: Array<ItemQuantity>;
|
|
3650
3656
|
name: string;
|
|
@@ -3836,15 +3842,21 @@ export type FacilityEntry = {
|
|
|
3836
3842
|
*/
|
|
3837
3843
|
level: number;
|
|
3838
3844
|
/**
|
|
3839
|
-
*
|
|
3845
|
+
* Average units of each upkeep item this facility destroys per facility cycle (100 ticks), keyed by item ID (fuel for station-tank fuel). Whole units are drawn on rotating cycles. Omitted when there is no upkeep and for dining/leisure venues, whose burn follows paying footfall.
|
|
3846
|
+
*/
|
|
3847
|
+
maintenance_average_burn_per_cycle?: {
|
|
3848
|
+
[key: string]: number;
|
|
3849
|
+
};
|
|
3850
|
+
/**
|
|
3851
|
+
* Value-weighted fraction of this cycle's upkeep draw that storage covered, from 0 to 1 (1 means fully supplied). Present exactly when maintenance_satisfied is present. Dining and leisure venues earn this fraction of their tourism income; other facilities need full supply for their benefit.
|
|
3840
3852
|
*/
|
|
3841
3853
|
maintenance_level?: number;
|
|
3842
3854
|
/**
|
|
3843
|
-
*
|
|
3855
|
+
* Listed upkeep of this facility. Present only for fleet depots, dining/leisure venues (tourism_upkeep) and markets that use trade_authenticator (such as trade_concourse); omitted otherwise. A dining/leisure venue must hold this stock to count as fully supplied: it scales with recent paying footfall, never drops below 15 percent of its declared menu (at least one of each item), and the venue burns its paying guests' share of it (nothing in a cycle no guest paid for). Any other facility needs on hand only what it draws each facility cycle (100 ticks): see maintenance_average_burn_per_cycle. A market's trade_authenticator quantity includes a charge that grows with this station's recent market trade volume and is drawn in full each cycle.
|
|
3844
3856
|
*/
|
|
3845
3857
|
maintenance_per_cycle?: Array<ItemQuantity>;
|
|
3846
3858
|
/**
|
|
3847
|
-
* Whether the facility's upkeep
|
|
3859
|
+
* Whether storage covered the facility's full upkeep draw in its last facility cycle (100 ticks). A facility that went short comes back once at least one of each upkeep item is in storage. Present only for facilities with upkeep: service, infrastructure, defense and ranch categories, not recyclers. Omitted for production, faction-category and personal facilities.
|
|
3848
3860
|
*/
|
|
3849
3861
|
maintenance_satisfied?: boolean;
|
|
3850
3862
|
/**
|
|
@@ -4281,7 +4293,13 @@ export type FacilityTypeDetailResponse = {
|
|
|
4281
4293
|
level: number;
|
|
4282
4294
|
lore?: string;
|
|
4283
4295
|
/**
|
|
4284
|
-
*
|
|
4296
|
+
* Average units of each upkeep item this facility destroys per facility cycle (100 ticks), keyed by item ID (fuel for station-tank fuel). Whole units are drawn on rotating cycles. Omitted when there is no upkeep and for dining/leisure venues, whose burn follows paying footfall.
|
|
4297
|
+
*/
|
|
4298
|
+
maintenance_average_burn_per_cycle?: {
|
|
4299
|
+
[key: string]: number;
|
|
4300
|
+
};
|
|
4301
|
+
/**
|
|
4302
|
+
* Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume and is drawn in full each cycle.
|
|
4285
4303
|
*/
|
|
4286
4304
|
maintenance_per_cycle?: Array<ItemQuantity>;
|
|
4287
4305
|
name: string;
|
|
@@ -5213,6 +5231,10 @@ export type FactionScanPoiResponse = {
|
|
|
5213
5231
|
pirates?: Array<FactionScanPirateContact>;
|
|
5214
5232
|
poi_id: string;
|
|
5215
5233
|
poi_name?: string;
|
|
5234
|
+
/**
|
|
5235
|
+
* Repeaters at the POI. Omitted when none are here.
|
|
5236
|
+
*/
|
|
5237
|
+
repeaters?: Array<RepeaterInfo>;
|
|
5216
5238
|
scan_power: number;
|
|
5217
5239
|
/**
|
|
5218
5240
|
* True when a cloaked ship or cloaked creature is within one sensor level (10 power) below detection: sensed but not resolved. Omitted when false.
|
|
@@ -11530,6 +11552,10 @@ export type ScanResponse = {
|
|
|
11530
11552
|
* Why a cargo scan failed. evaded: scan power was 0 against the target's stealth and scan evasion. target_left: the target left your POI, docked or boarded a carrier. target_lost: the target cloaked beyond your sensors. scanner_left: you left the POI, docked or boarded a carrier. Omitted when the scan succeeded and for other scans.
|
|
11531
11553
|
*/
|
|
11532
11554
|
reason?: 'evaded' | 'target_left' | 'target_lost' | 'scanner_left';
|
|
11555
|
+
/**
|
|
11556
|
+
* Repeaters at the POI. Omitted when none are here.
|
|
11557
|
+
*/
|
|
11558
|
+
repeaters?: Array<RepeaterInfo>;
|
|
11533
11559
|
revealed_info: Array<string>;
|
|
11534
11560
|
/**
|
|
11535
11561
|
* Scan power of a remote POI scan: your sensor rating at your own POI, or your sensor rating minus 10 at another POI in your system. Each ship there is contested at this power minus its stealth rating. For a cargo scan: your sensor rating minus the target's stealth rating and scan evasion skill (Piracy, Smuggling, Stealth). Omitted for other scans and when the power is 0.
|
|
@@ -13147,16 +13173,32 @@ export type StationHealth = {
|
|
|
13147
13173
|
total_service_infra: number;
|
|
13148
13174
|
};
|
|
13149
13175
|
export type StationLifeSupportInput = {
|
|
13176
|
+
/**
|
|
13177
|
+
* Average units of this item destroyed per facility cycle (100 ticks). Whole units are drawn on rotating cycles.
|
|
13178
|
+
*/
|
|
13179
|
+
average_burn_per_cycle: number;
|
|
13150
13180
|
item_id: string;
|
|
13151
13181
|
name?: string;
|
|
13182
|
+
/**
|
|
13183
|
+
* Listed upkeep of this item. A plant needs on hand only what it draws each cycle, about average_burn_per_cycle units.
|
|
13184
|
+
*/
|
|
13152
13185
|
quantity_per_cycle: number;
|
|
13153
13186
|
};
|
|
13154
13187
|
export type StationLifeSupportStatus = {
|
|
13155
13188
|
demand: number;
|
|
13189
|
+
/**
|
|
13190
|
+
* Upkeep of every online life-support plant, summed per item. Omitted when the plants have no upkeep.
|
|
13191
|
+
*/
|
|
13156
13192
|
maintenance?: Array<StationLifeSupportInput>;
|
|
13193
|
+
/**
|
|
13194
|
+
* Ticks between upkeep draws (one facility cycle).
|
|
13195
|
+
*/
|
|
13157
13196
|
maintenance_cycle_ticks: number;
|
|
13158
13197
|
plants: number;
|
|
13159
13198
|
remediation?: string;
|
|
13199
|
+
/**
|
|
13200
|
+
* Upkeep of plants that are offline because a draw failed. A plant comes back at the next cycle once at least one unit of each of its items is in storage. Omitted when no plant is short.
|
|
13201
|
+
*/
|
|
13160
13202
|
starved?: Array<StationLifeSupportInput>;
|
|
13161
13203
|
supply: number;
|
|
13162
13204
|
};
|
|
@@ -13170,8 +13212,15 @@ export type StationPassengersResponse = {
|
|
|
13170
13212
|
waiting: Array<WaitingPassengerView>;
|
|
13171
13213
|
};
|
|
13172
13214
|
export type StationPowerInput = {
|
|
13215
|
+
/**
|
|
13216
|
+
* Average units of this item destroyed per facility cycle (100 ticks). Whole units are drawn on rotating cycles.
|
|
13217
|
+
*/
|
|
13218
|
+
average_burn_per_cycle: number;
|
|
13173
13219
|
item_id: string;
|
|
13174
13220
|
name?: string;
|
|
13221
|
+
/**
|
|
13222
|
+
* Listed upkeep of this item. A plant needs on hand only what it draws each cycle, about average_burn_per_cycle units.
|
|
13223
|
+
*/
|
|
13175
13224
|
quantity_per_cycle: number;
|
|
13176
13225
|
};
|
|
13177
13226
|
export type StationPowerStatus = {
|
|
@@ -22155,7 +22204,7 @@ export type SpacemoltFactionJoinResponse = SpacemoltFactionJoinResponses[keyof S
|
|
|
22155
22204
|
export type SpacemoltFactionJumpMobileBaseData = {
|
|
22156
22205
|
body?: {
|
|
22157
22206
|
/**
|
|
22158
|
-
* Adjacent destination system
|
|
22207
|
+
* Adjacent destination system (a frontier system must be charted by the commander or the faction)
|
|
22159
22208
|
*/
|
|
22160
22209
|
id: string;
|
|
22161
22210
|
};
|
package/dist/index.js
CHANGED
|
@@ -78,7 +78,7 @@ var STATE_SECTIONS = [
|
|
|
78
78
|
"prize_recoveries"
|
|
79
79
|
];
|
|
80
80
|
// src/generated/actions.gen.ts
|
|
81
|
-
var GENERATED_SPEC_VERSION = "v0.
|
|
81
|
+
var GENERATED_SPEC_VERSION = "v0.715.2";
|
|
82
82
|
var ACTIONS = {
|
|
83
83
|
"spacemolt_arena/accept": {
|
|
84
84
|
tool: "spacemolt_arena",
|
|
@@ -1310,7 +1310,7 @@ var ACTIONS = {
|
|
|
1310
1310
|
summary: "Prepare an inter-system jump for your faction mobile base",
|
|
1311
1311
|
detailsType: "FactionMobileBaseResponse",
|
|
1312
1312
|
params: [
|
|
1313
|
-
{ name: "id", type: "string", required: true, description: "Adjacent destination system
|
|
1313
|
+
{ name: "id", type: "string", required: true, description: "Adjacent destination system (a frontier system must be charted by the commander or the faction)", positional: 0 }
|
|
1314
1314
|
]
|
|
1315
1315
|
},
|
|
1316
1316
|
"spacemolt_faction/kick": {
|
|
@@ -6076,5 +6076,5 @@ export {
|
|
|
6076
6076
|
retryAfterMsFromClose
|
|
6077
6077
|
};
|
|
6078
6078
|
|
|
6079
|
-
//# debugId=
|
|
6079
|
+
//# debugId=3A557C21CABD101864756E2164756E21
|
|
6080
6080
|
//# sourceMappingURL=index.js.map
|