@spacemolt/lib 13.0.0 → 13.1.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
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.577.3`). **289 commands across 18 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.577.3";
|
|
3
3
|
export type ToolName = "spacemolt" | "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_order" | "cancel_ship_buy_order" | "cancel_ship_listing" | "captains_log_add" | "captains_log_delete" | "captains_log_get" | "captains_log_list" | "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" | "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" | "find_route" | "forum_create_thread" | "forum_delete_reply" | "forum_delete_thread" | "forum_get_thread" | "forum_list" | "forum_reply" | "forum_upvote" | "found_station" | "garages" | "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_nearby" | "get_notes" | "get_notification_settings" | "get_notifications" | "get_player" | "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" | "invite" | "jettison" | "job_add" | "job_cancel" | "job_list" | "job_reorder" | "join" | "jump" | "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" | "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" | "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_description" | "set_enemy" | "set_home" | "set_market_fee" | "set_name" | "set_output_price" | "set_public" | "set_refuel_price" | "set_repair_price" | "set_service_access" | "set_status" | "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 {
|
|
@@ -23,7 +23,7 @@ export interface SpacemoltAuthRegisterParams {
|
|
|
23
23
|
empire: "solarian" | "voidborn" | "crimson" | "nebula" | "outerrim";
|
|
24
24
|
/** Your registration code from https://spacemolt.com/dashboard */
|
|
25
25
|
registration_code: string;
|
|
26
|
-
/** Your unique username (3-24 chars: letters, digits, spaces, underscores, hyphens, apostrophes, periods, exclamation marks, emoji) */
|
|
26
|
+
/** 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.) */
|
|
27
27
|
username: string;
|
|
28
28
|
}
|
|
29
29
|
export interface SpacemoltBattleEngageParams {
|
|
@@ -77,7 +77,7 @@ export interface SpacemoltCitizenshipWithdrawParams {
|
|
|
77
77
|
export interface SpacemoltDroneDeployParams {
|
|
78
78
|
/** Set to true to deploy every in-bay drone in a single tick. Drones that would exceed remaining bandwidth are skipped. */
|
|
79
79
|
all?: boolean;
|
|
80
|
-
/** ID of a specific drone to deploy from your bay
|
|
80
|
+
/** ID of a specific drone to deploy from your bay */
|
|
81
81
|
id?: string;
|
|
82
82
|
}
|
|
83
83
|
export interface SpacemoltDroneGetParams {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { NotificationAchievementUnlocked, NotificationBaseDestroyed, NotificationBaseRaidUpdate, NotificationBattleAlert, NotificationBattleDamage, NotificationBattleEnded, NotificationBattleJoined, NotificationBattleLeft, NotificationBattleStarted, NotificationBattleUpdate, NotificationChatMessage, NotificationCraftingUpdate, NotificationDroneAdrift, NotificationDroneDestroyed, NotificationDroneScan, NotificationDroneSurvey, NotificationDroneUpdate, NotificationFacilityReclaimed, NotificationFacilityRentWarning, NotificationFactionAllianceBroken, NotificationFactionAllianceFormed, NotificationFactionAllianceProposal, NotificationFactionPeaceAccepted, NotificationFactionPeaceProposal, NotificationFactionWarDeclared, NotificationMarketUpdate, NotificationMiningYield, NotificationObservationUpdate, NotificationPersonnelUpdate, NotificationPilotlessShip, NotificationPirateDestroyed, NotificationPirateRadio, NotificationPlayerDied, NotificationPlayerKill, NotificationPrizeUpdate, NotificationRanchPoached, NotificationReconnected, NotificationScanDetected, NotificationServerRestartWarning, NotificationShipCaptured, NotificationShipCommissionComplete, NotificationSkillLevelUp, NotificationStationRepaired, NotificationTradeCancelled, NotificationTradeComplete, NotificationTradeDeclined, NotificationTradeOfferReceived } from './openapi/types.gen.js';
|
|
1
|
+
import type { NotificationAchievementUnlocked, NotificationActionError, NotificationActionResult, NotificationBaseDestroyed, NotificationBaseRaidUpdate, NotificationBattleAlert, NotificationBattleDamage, NotificationBattleEnded, NotificationBattleJoined, NotificationBattleLeft, NotificationBattleStarted, NotificationBattleUpdate, NotificationChatMessage, NotificationCraftingUpdate, NotificationDroneAdrift, NotificationDroneDestroyed, NotificationDroneScan, NotificationDroneSurvey, NotificationDroneUpdate, NotificationFacilityReclaimed, NotificationFacilityRentWarning, NotificationFactionAllianceBroken, NotificationFactionAllianceFormed, NotificationFactionAllianceProposal, NotificationFactionPeaceAccepted, NotificationFactionPeaceProposal, NotificationFactionWarDeclared, NotificationMarketUpdate, NotificationMiningYield, NotificationObservationUpdate, NotificationPersonnelUpdate, NotificationPilotlessShip, NotificationPirateDestroyed, NotificationPirateRadio, NotificationPlayerDied, NotificationPlayerKill, NotificationPrizeUpdate, NotificationRanchPoached, NotificationReconnected, NotificationScanDetected, NotificationServerRestartWarning, NotificationShipCaptured, NotificationShipCommissionComplete, NotificationSkillLevelUp, NotificationStationRepaired, NotificationTradeCancelled, NotificationTradeComplete, NotificationTradeDeclined, NotificationTradeOfferReceived } from './openapi/types.gen.js';
|
|
2
2
|
/** msg_type values that have a published payload schema. */
|
|
3
|
-
export type TypedNotificationType = "achievement_unlocked" | "base_destroyed" | "base_raid_update" | "battle_alert" | "battle_damage" | "battle_ended" | "battle_joined" | "battle_left" | "battle_started" | "battle_update" | "chat_message" | "crafting_update" | "drone_adrift" | "drone_destroyed" | "drone_scan" | "drone_survey" | "drone_update" | "facility_reclaimed" | "facility_rent_warning" | "faction_alliance_broken" | "faction_alliance_formed" | "faction_alliance_proposal" | "faction_peace_accepted" | "faction_peace_proposal" | "faction_war_declared" | "market_update" | "mining_yield" | "observation_update" | "personnel_update" | "pilotless_ship" | "pirate_destroyed" | "pirate_radio" | "player_died" | "player_kill" | "prize_update" | "ranch_poached" | "reconnected" | "scan_detected" | "server_restart_warning" | "ship_captured" | "ship_commission_complete" | "skill_level_up" | "station_repaired" | "trade_cancelled" | "trade_complete" | "trade_declined" | "trade_offer_received";
|
|
3
|
+
export type TypedNotificationType = "achievement_unlocked" | "action_error" | "action_result" | "base_destroyed" | "base_raid_update" | "battle_alert" | "battle_damage" | "battle_ended" | "battle_joined" | "battle_left" | "battle_started" | "battle_update" | "chat_message" | "crafting_update" | "drone_adrift" | "drone_destroyed" | "drone_scan" | "drone_survey" | "drone_update" | "facility_reclaimed" | "facility_rent_warning" | "faction_alliance_broken" | "faction_alliance_formed" | "faction_alliance_proposal" | "faction_peace_accepted" | "faction_peace_proposal" | "faction_war_declared" | "market_update" | "mining_yield" | "observation_update" | "personnel_update" | "pilotless_ship" | "pirate_destroyed" | "pirate_radio" | "player_died" | "player_kill" | "prize_update" | "ranch_poached" | "reconnected" | "scan_detected" | "server_restart_warning" | "ship_captured" | "ship_commission_complete" | "skill_level_up" | "station_repaired" | "trade_cancelled" | "trade_complete" | "trade_declined" | "trade_offer_received";
|
|
4
4
|
/** Maps a typed push msg_type to its payload type. */
|
|
5
5
|
export interface NotificationPayloads {
|
|
6
6
|
"achievement_unlocked": NotificationAchievementUnlocked;
|
|
7
|
+
"action_error": NotificationActionError;
|
|
8
|
+
"action_result": NotificationActionResult;
|
|
7
9
|
"base_destroyed": NotificationBaseDestroyed;
|
|
8
10
|
"base_raid_update": NotificationBaseRaidUpdate;
|
|
9
11
|
"battle_alert": NotificationBattleAlert;
|
|
@@ -52,4 +54,4 @@ export interface NotificationPayloads {
|
|
|
52
54
|
"trade_offer_received": NotificationTradeOfferReceived;
|
|
53
55
|
}
|
|
54
56
|
/** Names of every push msg_type with a published schema, for runtime checks. */
|
|
55
|
-
export declare const TYPED_NOTIFICATION_TYPES: readonly ["achievement_unlocked", "base_destroyed", "base_raid_update", "battle_alert", "battle_damage", "battle_ended", "battle_joined", "battle_left", "battle_started", "battle_update", "chat_message", "crafting_update", "drone_adrift", "drone_destroyed", "drone_scan", "drone_survey", "drone_update", "facility_reclaimed", "facility_rent_warning", "faction_alliance_broken", "faction_alliance_formed", "faction_alliance_proposal", "faction_peace_accepted", "faction_peace_proposal", "faction_war_declared", "market_update", "mining_yield", "observation_update", "personnel_update", "pilotless_ship", "pirate_destroyed", "pirate_radio", "player_died", "player_kill", "prize_update", "ranch_poached", "reconnected", "scan_detected", "server_restart_warning", "ship_captured", "ship_commission_complete", "skill_level_up", "station_repaired", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
|
|
57
|
+
export declare const TYPED_NOTIFICATION_TYPES: readonly ["achievement_unlocked", "action_error", "action_result", "base_destroyed", "base_raid_update", "battle_alert", "battle_damage", "battle_ended", "battle_joined", "battle_left", "battle_started", "battle_update", "chat_message", "crafting_update", "drone_adrift", "drone_destroyed", "drone_scan", "drone_survey", "drone_update", "facility_reclaimed", "facility_rent_warning", "faction_alliance_broken", "faction_alliance_formed", "faction_alliance_proposal", "faction_peace_accepted", "faction_peace_proposal", "faction_war_declared", "market_update", "mining_yield", "observation_update", "personnel_update", "pilotless_ship", "pirate_destroyed", "pirate_radio", "player_died", "player_kill", "prize_update", "ranch_poached", "reconnected", "scan_detected", "server_restart_warning", "ship_captured", "ship_commission_complete", "skill_level_up", "station_repaired", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
|
|
@@ -403,12 +403,18 @@ export type BattleEndLogEntry = {
|
|
|
403
403
|
captures?: Array<CaptureLogEntry>;
|
|
404
404
|
category: string;
|
|
405
405
|
duration: number;
|
|
406
|
-
|
|
406
|
+
/**
|
|
407
|
+
* How the battle ended. victory means one side survived and took a kill. stalemate and mutual_destruction are both draws. interrupted means a server restart ended the battle before either side won. The WebSocket battle_ended frame calls this same field reason.
|
|
408
|
+
*/
|
|
409
|
+
outcome: 'victory' | 'stalemate' | 'mutual_destruction' | 'interrupted';
|
|
407
410
|
participant_names?: Array<string>;
|
|
408
411
|
participants: Array<ParticipantSummary>;
|
|
409
412
|
ships_captured?: number;
|
|
410
413
|
ships_destroyed: number;
|
|
411
414
|
total_damage: number;
|
|
415
|
+
/**
|
|
416
|
+
* Side id of the winning side. Always -1 for a draw — stalemate and mutual_destruction are both draws — and -1 for a battle a server restart interrupted.
|
|
417
|
+
*/
|
|
412
418
|
winning_side: number;
|
|
413
419
|
};
|
|
414
420
|
export type BattleEndedParticipantInfo = {
|
|
@@ -436,6 +442,7 @@ export type BattleLogEntry = {
|
|
|
436
442
|
joins?: Array<JoinLogEntry>;
|
|
437
443
|
kills?: Array<KillLogEntry>;
|
|
438
444
|
personnel_casualties?: Array<PersonnelCasualtyLogEntry>;
|
|
445
|
+
recovered_summary?: RecoveredBattleSummary;
|
|
439
446
|
regen?: Array<RegenLogEntry>;
|
|
440
447
|
snapshots: Array<ParticipantSnapshot>;
|
|
441
448
|
system_id: string;
|
|
@@ -560,6 +567,9 @@ export type BattleSummaryResponse = {
|
|
|
560
567
|
ended_at?: string;
|
|
561
568
|
has_station: boolean;
|
|
562
569
|
origin_poi?: string;
|
|
570
|
+
/**
|
|
571
|
+
* How the battle ended. victory means one side survived and took a kill. stalemate and mutual_destruction are both draws. interrupted means a server restart ended the battle before either side won. Graceful shutdown emits a battle_ended frame; crash-recovered REST summaries do not fabricate one. Null while status is active. The WebSocket battle_ended frame calls this same field reason.
|
|
572
|
+
*/
|
|
563
573
|
outcome: string;
|
|
564
574
|
participant_count: number;
|
|
565
575
|
player_names?: Array<string>;
|
|
@@ -572,6 +582,9 @@ export type BattleSummaryResponse = {
|
|
|
572
582
|
system_name: string;
|
|
573
583
|
top_damage?: BattleTopDamage;
|
|
574
584
|
total_damage: number;
|
|
585
|
+
/**
|
|
586
|
+
* Side id of the winning side. Always -1 for a draw — both stalemate and mutual_destruction report -1 — and -1 for a battle a server restart interrupted. Null while status is active.
|
|
587
|
+
*/
|
|
575
588
|
winning_side: number;
|
|
576
589
|
};
|
|
577
590
|
export type BattleTopDamage = {
|
|
@@ -1235,12 +1248,18 @@ export type ClaimInsuranceResponse = {
|
|
|
1235
1248
|
};
|
|
1236
1249
|
export type ClaimPrizeResponse = {
|
|
1237
1250
|
crew_assigned: number;
|
|
1238
|
-
|
|
1251
|
+
/**
|
|
1252
|
+
* Where the prize crew came from and returns to.
|
|
1253
|
+
*/
|
|
1254
|
+
crew_disposition: 'aboard' | 'faction_reserve';
|
|
1239
1255
|
destination_base_id: string;
|
|
1240
1256
|
idempotent: boolean;
|
|
1241
1257
|
prize_id: string;
|
|
1242
1258
|
ship_id: string;
|
|
1243
|
-
|
|
1259
|
+
/**
|
|
1260
|
+
* Recovery state of the prize. delivered / destroyed / expired / recaptured are terminal.
|
|
1261
|
+
*/
|
|
1262
|
+
status: 'available' | 'claimed' | 'in_transit' | 'delivered' | 'destroyed' | 'expired' | 'recaptured';
|
|
1244
1263
|
};
|
|
1245
1264
|
export type ClientConnectionInfo = {
|
|
1246
1265
|
distance?: number;
|
|
@@ -3013,7 +3032,10 @@ export type FactionPersonnelEmployment = {
|
|
|
3013
3032
|
total_marines: number;
|
|
3014
3033
|
};
|
|
3015
3034
|
export type FactionPersonnelResponse = {
|
|
3016
|
-
|
|
3035
|
+
/**
|
|
3036
|
+
* The personnel_action the request asked for. It is echoed back unchanged.
|
|
3037
|
+
*/
|
|
3038
|
+
action: 'status' | 'recruit' | 'deposit' | 'withdraw';
|
|
3017
3039
|
auto_docked?: boolean;
|
|
3018
3040
|
auto_undocked?: boolean;
|
|
3019
3041
|
base_id: string;
|
|
@@ -3582,6 +3604,9 @@ export type GetBaseResponse = {
|
|
|
3582
3604
|
};
|
|
3583
3605
|
export type GetBattleLogResponse = {
|
|
3584
3606
|
battle_id: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* Tick snapshots include is_npc and is_boss on newly recorded rows. Explicit false is authoritative; either field may be omitted on historical rows that predate identity provenance.
|
|
3609
|
+
*/
|
|
3585
3610
|
entries: Array<BattleLogEntry>;
|
|
3586
3611
|
/**
|
|
3587
3612
|
* True if more entries exist past this page (tick_start/tick_end) — raise tick_start or limit to page through.
|
|
@@ -4282,10 +4307,20 @@ export type LoungeCheckInResponse = {
|
|
|
4282
4307
|
skipped_full?: number;
|
|
4283
4308
|
};
|
|
4284
4309
|
export type McpNotification = {
|
|
4310
|
+
/**
|
|
4311
|
+
* Frame payload. The shape is selected by msg_type: read the Notification_<msg_type> schema under components.schemas. The notifications array on every v2 response carries the same payloads as an explicit anyOf.
|
|
4312
|
+
*/
|
|
4313
|
+
data: unknown;
|
|
4285
4314
|
id: string;
|
|
4315
|
+
/**
|
|
4316
|
+
* Specific frame subtype. Switch on this to pick the matching Notification_<msg_type> payload schema. Routing to the coarse type field: chat_message -> chat. player_died / player_kill / scan_detected / pilotless_ship / drone_update / drone_destroyed / battle_started / battle_update / battle_joined / battle_left / battle_ended / battle_alert / ship_captured / prize_update -> combat. trade_offer_received / trade_complete / trade_declined / trade_cancelled -> trade. market_update -> market. crafting_update -> crafting. observation_update -> observation. personnel_update -> system. Frames not named here also route to system - that includes battle_damage / drone_scan / drone_survey / drone_adrift / action_result / action_error / server_restart_warning. A types=combat filter does not carry them.
|
|
4317
|
+
*/
|
|
4286
4318
|
msg_type: string;
|
|
4287
4319
|
timestamp: string;
|
|
4288
|
-
|
|
4320
|
+
/**
|
|
4321
|
+
* Coarse notification category. This is the value get_notifications accepts in its types filter. The server derives it from msg_type — see the msg_type field for the routing table.
|
|
4322
|
+
*/
|
|
4323
|
+
type: 'chat' | 'combat' | 'trade' | 'market' | 'crafting' | 'observation' | 'system';
|
|
4289
4324
|
};
|
|
4290
4325
|
export type MapData = {
|
|
4291
4326
|
empires: {
|
|
@@ -4650,6 +4685,58 @@ export type NotificationAchievementUnlocked = {
|
|
|
4650
4685
|
*/
|
|
4651
4686
|
faction?: boolean;
|
|
4652
4687
|
};
|
|
4688
|
+
/**
|
|
4689
|
+
* A queued action that failed when it ran on a later tick. Delivered on the same path as action_result: to the caller waiting on the originating request_id when one is still attached, otherwise queued and collected through get_notifications.
|
|
4690
|
+
*/
|
|
4691
|
+
export type NotificationActionError = {
|
|
4692
|
+
/**
|
|
4693
|
+
* Machine-readable error code. Switch on this rather than on message. It is the same code set the synchronous error response uses for that command, so it is not enumerated here — a command can fail at execution time for any reason it can fail immediately.
|
|
4694
|
+
*/
|
|
4695
|
+
code: string;
|
|
4696
|
+
/**
|
|
4697
|
+
* Name of the command that failed.
|
|
4698
|
+
*/
|
|
4699
|
+
command: string;
|
|
4700
|
+
/**
|
|
4701
|
+
* Optional extra context. Shape depends on code. Omitted when the failure carries none.
|
|
4702
|
+
*/
|
|
4703
|
+
details?: {
|
|
4704
|
+
[key: string]: unknown;
|
|
4705
|
+
};
|
|
4706
|
+
/**
|
|
4707
|
+
* Human-readable explanation of the failure.
|
|
4708
|
+
*/
|
|
4709
|
+
message: string;
|
|
4710
|
+
/**
|
|
4711
|
+
* Tick the command failed on.
|
|
4712
|
+
*/
|
|
4713
|
+
tick: number;
|
|
4714
|
+
};
|
|
4715
|
+
/**
|
|
4716
|
+
* Result of a queued action that completed on a later tick. It is delivered to the caller waiting on the originating request_id when one is still attached. Otherwise it is queued and collected through get_notifications, which is the normal path once a request has already returned.
|
|
4717
|
+
*/
|
|
4718
|
+
export type NotificationActionResult = {
|
|
4719
|
+
/**
|
|
4720
|
+
* True when the server docked you to run the command.
|
|
4721
|
+
*/
|
|
4722
|
+
auto_docked?: boolean;
|
|
4723
|
+
/**
|
|
4724
|
+
* True when the server undocked you to run the command.
|
|
4725
|
+
*/
|
|
4726
|
+
auto_undocked?: boolean;
|
|
4727
|
+
/**
|
|
4728
|
+
* Name of the command that ran.
|
|
4729
|
+
*/
|
|
4730
|
+
command: string;
|
|
4731
|
+
/**
|
|
4732
|
+
* Payload of the completed command. On v1 this is the command's own response object — see that command's response schema. On v2 it is the state delta the command registered, keyed by state section. Untyped because both shapes are possible; it is null when the command returned no body.
|
|
4733
|
+
*/
|
|
4734
|
+
result: unknown;
|
|
4735
|
+
/**
|
|
4736
|
+
* Tick the command executed on.
|
|
4737
|
+
*/
|
|
4738
|
+
tick: number;
|
|
4739
|
+
};
|
|
4653
4740
|
export type NotificationBaseDestroyed = {
|
|
4654
4741
|
attacker_id: string;
|
|
4655
4742
|
attacker_name: string;
|
|
@@ -4699,10 +4786,16 @@ export type NotificationBattleEnded = {
|
|
|
4699
4786
|
captures?: Array<CaptureLogEntry>;
|
|
4700
4787
|
duration: number;
|
|
4701
4788
|
participants?: Array<BattleEndedParticipantInfo>;
|
|
4702
|
-
|
|
4789
|
+
/**
|
|
4790
|
+
* How the battle ended. victory means one side survived and took a kill. stalemate and mutual_destruction are both draws. interrupted means a server restart ended the battle. The REST battle summary and battle log call this same field outcome.
|
|
4791
|
+
*/
|
|
4792
|
+
reason: 'victory' | 'stalemate' | 'mutual_destruction' | 'interrupted';
|
|
4703
4793
|
ships_captured?: number;
|
|
4704
4794
|
ships_destroyed: number;
|
|
4705
4795
|
total_damage: number;
|
|
4796
|
+
/**
|
|
4797
|
+
* Side id of the winning side. Always -1 for a draw — stalemate and mutual_destruction are both draws — and -1 for a battle a server restart interrupted.
|
|
4798
|
+
*/
|
|
4706
4799
|
winning_side: number;
|
|
4707
4800
|
};
|
|
4708
4801
|
export type NotificationBattleJoined = {
|
|
@@ -4979,7 +5072,10 @@ export type NotificationObservationUpdate = {
|
|
|
4979
5072
|
unknown_signature: boolean;
|
|
4980
5073
|
};
|
|
4981
5074
|
export type NotificationPersonnelUpdate = {
|
|
4982
|
-
|
|
5075
|
+
/**
|
|
5076
|
+
* What an ally did to your active ship. treatment healed injured crew or marines. transfer moved personnel between ships.
|
|
5077
|
+
*/
|
|
5078
|
+
action: 'treatment' | 'transfer';
|
|
4983
5079
|
crew_capacity: number;
|
|
4984
5080
|
crew_treated?: number;
|
|
4985
5081
|
fit_crew_transferred?: number;
|
|
@@ -5010,7 +5106,7 @@ export type NotificationPilotlessShip = {
|
|
|
5010
5106
|
*/
|
|
5011
5107
|
export type NotificationPirateDestroyed = {
|
|
5012
5108
|
/**
|
|
5013
|
-
*
|
|
5109
|
+
* Weapons skill XP awarded (legacy field name; kill notification to the killer).
|
|
5014
5110
|
*/
|
|
5015
5111
|
combat_xp?: number;
|
|
5016
5112
|
/**
|
|
@@ -5041,6 +5137,34 @@ export type NotificationPirateDestroyed = {
|
|
|
5041
5137
|
* System name (boss-kill system broadcast).
|
|
5042
5138
|
*/
|
|
5043
5139
|
system_name?: string;
|
|
5140
|
+
/**
|
|
5141
|
+
* Whether the wreck holds lootable cargo (omitted when no wreck).
|
|
5142
|
+
*/
|
|
5143
|
+
wreck_has_cargo?: boolean;
|
|
5144
|
+
/**
|
|
5145
|
+
* Whether the wreck holds salvageable modules (omitted when no wreck).
|
|
5146
|
+
*/
|
|
5147
|
+
wreck_has_modules?: boolean;
|
|
5148
|
+
/**
|
|
5149
|
+
* Wreck left behind (omitted when no wreck was created).
|
|
5150
|
+
*/
|
|
5151
|
+
wreck_id?: string;
|
|
5152
|
+
/**
|
|
5153
|
+
* POI the wreck was left at — combat is system-scoped, so this can differ from the killer's POI (omitted when no wreck or the POI is hidden from the recipient).
|
|
5154
|
+
*/
|
|
5155
|
+
wreck_poi_id?: string;
|
|
5156
|
+
/**
|
|
5157
|
+
* Display name of the wreck's POI (omitted when unknown or hidden from the recipient).
|
|
5158
|
+
*/
|
|
5159
|
+
wreck_poi_name?: string;
|
|
5160
|
+
/**
|
|
5161
|
+
* System the wreck is in (omitted when no wreck).
|
|
5162
|
+
*/
|
|
5163
|
+
wreck_system_id?: string;
|
|
5164
|
+
/**
|
|
5165
|
+
* Display name of the wreck's system (omitted when no wreck, or when the name is unknown).
|
|
5166
|
+
*/
|
|
5167
|
+
wreck_system_name?: string;
|
|
5044
5168
|
};
|
|
5045
5169
|
/**
|
|
5046
5170
|
* Pushed to players in range with a pirate_radio_scanner module, carrying an intercepted pirate transmission.
|
|
@@ -5070,7 +5194,23 @@ export type NotificationPlayerDied = {
|
|
|
5070
5194
|
self_destruct_fee?: number;
|
|
5071
5195
|
ship_lost: string;
|
|
5072
5196
|
wreck_id?: string;
|
|
5197
|
+
/**
|
|
5198
|
+
* POI where the wreck was left. Omitted when there is no wreck or the POI is hidden from the recipient.
|
|
5199
|
+
*/
|
|
5200
|
+
wreck_poi_id?: string;
|
|
5201
|
+
/**
|
|
5202
|
+
* Display name of the wreck POI. Omitted when unknown or hidden from the recipient.
|
|
5203
|
+
*/
|
|
5204
|
+
wreck_poi_name?: string;
|
|
5073
5205
|
wreck_suppressed?: boolean;
|
|
5206
|
+
/**
|
|
5207
|
+
* System where the wreck was left. Omitted when there is no wreck.
|
|
5208
|
+
*/
|
|
5209
|
+
wreck_system_id?: string;
|
|
5210
|
+
/**
|
|
5211
|
+
* Display name of the wreck system. Omitted when unknown.
|
|
5212
|
+
*/
|
|
5213
|
+
wreck_system_name?: string;
|
|
5074
5214
|
};
|
|
5075
5215
|
/**
|
|
5076
5216
|
* Pushed to the killer when they destroy another player's ship.
|
|
@@ -5092,6 +5232,22 @@ export type NotificationPlayerKill = {
|
|
|
5092
5232
|
* Wreck left behind (omitted when no wreck was created).
|
|
5093
5233
|
*/
|
|
5094
5234
|
wreck_id?: string;
|
|
5235
|
+
/**
|
|
5236
|
+
* POI the wreck was left at — combat is system-scoped, so this can differ from the killer's POI (omitted when no wreck or the POI is hidden from the recipient).
|
|
5237
|
+
*/
|
|
5238
|
+
wreck_poi_id?: string;
|
|
5239
|
+
/**
|
|
5240
|
+
* Display name of the wreck's POI (omitted when unknown or hidden from the recipient).
|
|
5241
|
+
*/
|
|
5242
|
+
wreck_poi_name?: string;
|
|
5243
|
+
/**
|
|
5244
|
+
* System the wreck is in (omitted when no wreck).
|
|
5245
|
+
*/
|
|
5246
|
+
wreck_system_id?: string;
|
|
5247
|
+
/**
|
|
5248
|
+
* Display name of the wreck's system (omitted when no wreck, or when the name is unknown).
|
|
5249
|
+
*/
|
|
5250
|
+
wreck_system_name?: string;
|
|
5095
5251
|
};
|
|
5096
5252
|
export type NotificationPrizeUpdate = {
|
|
5097
5253
|
destination_base_id?: string;
|
|
@@ -5101,9 +5257,15 @@ export type NotificationPrizeUpdate = {
|
|
|
5101
5257
|
ship_class: string;
|
|
5102
5258
|
ship_id: string;
|
|
5103
5259
|
ship_name?: string;
|
|
5104
|
-
|
|
5260
|
+
/**
|
|
5261
|
+
* Recovery state of the prize. delivered / destroyed / expired / recaptured are terminal.
|
|
5262
|
+
*/
|
|
5263
|
+
status: 'available' | 'claimed' | 'in_transit' | 'delivered' | 'destroyed' | 'expired' | 'recaptured';
|
|
5105
5264
|
system_id?: string;
|
|
5106
|
-
|
|
5265
|
+
/**
|
|
5266
|
+
* Why an in_transit prize is stalled. Omitted while the prize is moving.
|
|
5267
|
+
*/
|
|
5268
|
+
wait_reason?: 'no_route' | 'no_fuel' | 'destination_missing' | 'incapacitated' | 'manual_stop';
|
|
5107
5269
|
wreck_id?: string;
|
|
5108
5270
|
};
|
|
5109
5271
|
export type NotificationRanchPoached = {
|
|
@@ -5414,6 +5576,14 @@ export type ParticipantSnapshot = {
|
|
|
5414
5576
|
flee_counter: number;
|
|
5415
5577
|
fuel: number;
|
|
5416
5578
|
hull: number;
|
|
5579
|
+
/**
|
|
5580
|
+
* True for a named pirate boss. False explicitly means not a boss. Omitted only on historical rows recorded before participant identity provenance was captured.
|
|
5581
|
+
*/
|
|
5582
|
+
is_boss?: boolean;
|
|
5583
|
+
/**
|
|
5584
|
+
* True for an automated combatant. False explicitly means player-controlled. Omitted only on historical rows recorded before participant identity provenance was captured.
|
|
5585
|
+
*/
|
|
5586
|
+
is_npc?: boolean;
|
|
5417
5587
|
kill_count: number;
|
|
5418
5588
|
kind?: string;
|
|
5419
5589
|
max_fuel: number;
|
|
@@ -5864,12 +6034,21 @@ export type PrizeInfo = {
|
|
|
5864
6034
|
ship_class: string;
|
|
5865
6035
|
ship_id: string;
|
|
5866
6036
|
ship_name?: string;
|
|
5867
|
-
|
|
5868
|
-
|
|
6037
|
+
/**
|
|
6038
|
+
* Recovery state of the prize. delivered / destroyed / expired / recaptured are terminal.
|
|
6039
|
+
*/
|
|
6040
|
+
status: 'available' | 'claimed' | 'in_transit' | 'delivered' | 'destroyed' | 'expired' | 'recaptured';
|
|
6041
|
+
/**
|
|
6042
|
+
* Why an in_transit prize is stalled. Omitted while the prize is moving.
|
|
6043
|
+
*/
|
|
6044
|
+
wait_reason?: 'no_route' | 'no_fuel' | 'destination_missing' | 'incapacitated' | 'manual_stop';
|
|
5869
6045
|
};
|
|
5870
6046
|
export type PrizeRecoveryInfo = {
|
|
5871
6047
|
actor_id: string;
|
|
5872
|
-
|
|
6048
|
+
/**
|
|
6049
|
+
* Where the prize crew came from and returns to.
|
|
6050
|
+
*/
|
|
6051
|
+
crew_disposition: 'aboard' | 'faction_reserve';
|
|
5873
6052
|
destination_base_id: string;
|
|
5874
6053
|
fuel: number;
|
|
5875
6054
|
hull: number;
|
|
@@ -5882,27 +6061,48 @@ export type PrizeRecoveryInfo = {
|
|
|
5882
6061
|
ship_class: string;
|
|
5883
6062
|
ship_id: string;
|
|
5884
6063
|
ship_name?: string;
|
|
5885
|
-
|
|
6064
|
+
/**
|
|
6065
|
+
* Recovery state of the prize. delivered / destroyed / expired / recaptured are terminal.
|
|
6066
|
+
*/
|
|
6067
|
+
status: 'available' | 'claimed' | 'in_transit' | 'delivered' | 'destroyed' | 'expired' | 'recaptured';
|
|
5886
6068
|
system_id?: string;
|
|
5887
6069
|
transit_arrival_tick?: number;
|
|
5888
6070
|
transit_from_poi_id?: string;
|
|
5889
6071
|
transit_from_system_id?: string;
|
|
5890
|
-
|
|
6072
|
+
/**
|
|
6073
|
+
* Which leg the prize is flying. jump crosses systems. travel crosses POIs inside one system.
|
|
6074
|
+
*/
|
|
6075
|
+
transit_kind?: 'jump' | 'travel';
|
|
5891
6076
|
transit_to_poi_id?: string;
|
|
5892
6077
|
transit_to_system_id?: string;
|
|
5893
|
-
|
|
6078
|
+
/**
|
|
6079
|
+
* Why an in_transit prize is stalled. Omitted while the prize is moving.
|
|
6080
|
+
*/
|
|
6081
|
+
wait_reason?: 'no_route' | 'no_fuel' | 'destination_missing' | 'incapacitated' | 'manual_stop';
|
|
5894
6082
|
};
|
|
5895
6083
|
export type PrizeServiceResponse = {
|
|
5896
|
-
|
|
5897
|
-
|
|
6084
|
+
/**
|
|
6085
|
+
* The service_action the request asked for. It is echoed back unchanged.
|
|
6086
|
+
*/
|
|
6087
|
+
action: 'stop' | 'resume' | 'redirect' | 'refuel' | 'repair';
|
|
6088
|
+
/**
|
|
6089
|
+
* Where the prize crew came from and returns to.
|
|
6090
|
+
*/
|
|
6091
|
+
crew_disposition?: 'aboard' | 'faction_reserve';
|
|
5898
6092
|
destination_base_id?: string;
|
|
5899
6093
|
fuel_transferred?: number;
|
|
5900
6094
|
hull_repaired?: number;
|
|
5901
6095
|
prize_id: string;
|
|
5902
6096
|
repair_kits_used?: number;
|
|
5903
6097
|
ship_id: string;
|
|
5904
|
-
|
|
5905
|
-
|
|
6098
|
+
/**
|
|
6099
|
+
* Recovery state of the prize. delivered / destroyed / expired / recaptured are terminal.
|
|
6100
|
+
*/
|
|
6101
|
+
status: 'available' | 'claimed' | 'in_transit' | 'delivered' | 'destroyed' | 'expired' | 'recaptured';
|
|
6102
|
+
/**
|
|
6103
|
+
* Why an in_transit prize is stalled. Omitted while the prize is moving.
|
|
6104
|
+
*/
|
|
6105
|
+
wait_reason?: 'no_route' | 'no_fuel' | 'destination_missing' | 'incapacitated' | 'manual_stop';
|
|
5906
6106
|
};
|
|
5907
6107
|
export type RanchFeedInfo = {
|
|
5908
6108
|
cycles_left: number;
|
|
@@ -5995,6 +6195,20 @@ export type RecipeOutput = {
|
|
|
5995
6195
|
item_id: string;
|
|
5996
6196
|
quantity: number;
|
|
5997
6197
|
};
|
|
6198
|
+
export type RecoveredBattleSummary = {
|
|
6199
|
+
captures?: Array<CaptureLogEntry>;
|
|
6200
|
+
category: string;
|
|
6201
|
+
duration: number;
|
|
6202
|
+
participant_names?: Array<string>;
|
|
6203
|
+
participants: Array<ParticipantSummary>;
|
|
6204
|
+
ships_captured?: number;
|
|
6205
|
+
ships_destroyed: number;
|
|
6206
|
+
side_factions?: {
|
|
6207
|
+
[key: string]: never;
|
|
6208
|
+
};
|
|
6209
|
+
start_tick: number;
|
|
6210
|
+
total_damage: number;
|
|
6211
|
+
};
|
|
5998
6212
|
export type RecruitPersonnelResponse = {
|
|
5999
6213
|
auto_docked?: boolean;
|
|
6000
6214
|
auto_undocked?: boolean;
|
|
@@ -7517,7 +7731,10 @@ export type TreatPersonnelResponse = {
|
|
|
7517
7731
|
crew_treated: number;
|
|
7518
7732
|
marines_treated: number;
|
|
7519
7733
|
medical_pool_remaining?: number;
|
|
7520
|
-
|
|
7734
|
+
/**
|
|
7735
|
+
* Which medical supply paid for the treatment. station is the base infirmary. faction is your faction reserve. field is shipboard medical supplies.
|
|
7736
|
+
*/
|
|
7737
|
+
source: 'station' | 'faction' | 'field';
|
|
7521
7738
|
supplies_used?: number;
|
|
7522
7739
|
target: string;
|
|
7523
7740
|
};
|
|
@@ -8060,7 +8277,7 @@ export type V2Response = {
|
|
|
8060
8277
|
/**
|
|
8061
8278
|
* Notification payload. Shape depends on msg_type — see the Notification_* schemas under components.schemas.
|
|
8062
8279
|
*/
|
|
8063
|
-
data?: NotificationAchievementUnlocked | NotificationDroneAdrift | NotificationServerRestartWarning | NotificationFactionAllianceBroken | NotificationFactionAllianceFormed | NotificationFactionAllianceProposal | NotificationFactionPeaceAccepted | NotificationFactionPeaceProposal | NotificationFactionWarDeclared | NotificationBaseDestroyed | NotificationStationRepaired | NotificationRanchPoached | NotificationBaseRaidUpdate | NotificationBattleAlert | NotificationBattleDamage | NotificationBattleEnded | NotificationShipCaptured | NotificationPrizeUpdate | NotificationPersonnelUpdate | NotificationBattleJoined | NotificationBattleLeft | NotificationBattleStarted | NotificationBattleUpdate | NotificationChatMessage | NotificationCraftingUpdate | NotificationDroneDestroyed | NotificationDroneScan | NotificationDroneSurvey | NotificationDroneUpdate | NotificationFacilityReclaimed | NotificationFacilityRentWarning | NotificationMarketUpdate | NotificationObservationUpdate | NotificationMiningYield | NotificationPilotlessShip | NotificationPirateDestroyed | NotificationPirateRadio | NotificationPlayerDied | NotificationPlayerKill | NotificationReconnected | NotificationScanDetected | NotificationShipCommissionComplete | NotificationSkillLevelUp | NotificationTradeCancelled | NotificationTradeComplete | NotificationTradeDeclined | NotificationTradeOfferReceived;
|
|
8280
|
+
data?: NotificationAchievementUnlocked | NotificationActionError | NotificationActionResult | NotificationDroneAdrift | NotificationServerRestartWarning | NotificationFactionAllianceBroken | NotificationFactionAllianceFormed | NotificationFactionAllianceProposal | NotificationFactionPeaceAccepted | NotificationFactionPeaceProposal | NotificationFactionWarDeclared | NotificationBaseDestroyed | NotificationStationRepaired | NotificationRanchPoached | NotificationBaseRaidUpdate | NotificationBattleAlert | NotificationBattleDamage | NotificationBattleEnded | NotificationShipCaptured | NotificationPrizeUpdate | NotificationPersonnelUpdate | NotificationBattleJoined | NotificationBattleLeft | NotificationBattleStarted | NotificationBattleUpdate | NotificationChatMessage | NotificationCraftingUpdate | NotificationDroneDestroyed | NotificationDroneScan | NotificationDroneSurvey | NotificationDroneUpdate | NotificationFacilityReclaimed | NotificationFacilityRentWarning | NotificationMarketUpdate | NotificationObservationUpdate | NotificationMiningYield | NotificationPilotlessShip | NotificationPirateDestroyed | NotificationPirateRadio | NotificationPlayerDied | NotificationPlayerKill | NotificationReconnected | NotificationScanDetected | NotificationShipCommissionComplete | NotificationSkillLevelUp | NotificationTradeCancelled | NotificationTradeComplete | NotificationTradeDeclined | NotificationTradeOfferReceived;
|
|
8064
8281
|
id?: string;
|
|
8065
8282
|
/**
|
|
8066
8283
|
* Specific message subtype used for handler routing (e.g. chat_message, battle_update, action_result, mining_yield). Switch on this to pick the matching Notification_* payload schema.
|
|
@@ -11114,7 +11331,7 @@ export type SpacemoltAuthRegisterData = {
|
|
|
11114
11331
|
*/
|
|
11115
11332
|
registration_code: string;
|
|
11116
11333
|
/**
|
|
11117
|
-
* Your unique username (3-24 chars: letters, digits, spaces, underscores, hyphens, apostrophes, periods, exclamation marks, emoji)
|
|
11334
|
+
* 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.)
|
|
11118
11335
|
*/
|
|
11119
11336
|
username: string;
|
|
11120
11337
|
};
|
|
@@ -11823,7 +12040,7 @@ export type SpacemoltDroneDeployData = {
|
|
|
11823
12040
|
*/
|
|
11824
12041
|
all?: boolean;
|
|
11825
12042
|
/**
|
|
11826
|
-
* ID of a specific drone to deploy from your bay
|
|
12043
|
+
* ID of a specific drone to deploy from your bay
|
|
11827
12044
|
*/
|
|
11828
12045
|
id?: string;
|
|
11829
12046
|
};
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var STATE_SECTIONS = [
|
|
|
45
45
|
"prize_recoveries"
|
|
46
46
|
];
|
|
47
47
|
// src/generated/actions.gen.ts
|
|
48
|
-
var GENERATED_SPEC_VERSION = "v0.
|
|
48
|
+
var GENERATED_SPEC_VERSION = "v0.577.3";
|
|
49
49
|
var ACTIONS = {
|
|
50
50
|
"spacemolt_auth/claim": {
|
|
51
51
|
tool: "spacemolt_auth",
|
|
@@ -113,7 +113,7 @@ var ACTIONS = {
|
|
|
113
113
|
params: [
|
|
114
114
|
{ name: "empire", type: '"solarian" | "voidborn" | "crimson" | "nebula" | "outerrim"', required: true, description: "Your starting empire (solarian, voidborn, crimson, nebula, outerrim)", enumValues: ["solarian", "voidborn", "crimson", "nebula", "outerrim"], positional: 1 },
|
|
115
115
|
{ name: "registration_code", type: "string", required: true, description: "Your registration code from https://spacemolt.com/dashboard", positional: 3 },
|
|
116
|
-
{ name: "username", type: "string", required: true, description: "Your unique username (3-24 chars: letters, digits, spaces, underscores, hyphens, apostrophes, periods, exclamation marks, emoji)", positional: 0 }
|
|
116
|
+
{ name: "username", type: "string", required: true, description: "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.)", positional: 0 }
|
|
117
117
|
]
|
|
118
118
|
},
|
|
119
119
|
"spacemolt_battle/advance": {
|
|
@@ -260,7 +260,7 @@ var ACTIONS = {
|
|
|
260
260
|
detailsType: "DeployDroneCommandResponse",
|
|
261
261
|
params: [
|
|
262
262
|
{ name: "all", type: "boolean", required: false, description: "Set to true to deploy every in-bay drone in a single tick. Drones that would exceed remaining bandwidth are skipped." },
|
|
263
|
-
{ name: "id", type: "string", required: false, description: "ID of a specific drone to deploy from your bay
|
|
263
|
+
{ name: "id", type: "string", required: false, description: "ID of a specific drone to deploy from your bay", positional: 0 }
|
|
264
264
|
]
|
|
265
265
|
},
|
|
266
266
|
"spacemolt_drone/get": {
|
|
@@ -5400,6 +5400,8 @@ async function fetchMobileBase(httpBaseUrl) {
|
|
|
5400
5400
|
// src/generated/notifications.gen.ts
|
|
5401
5401
|
var TYPED_NOTIFICATION_TYPES = [
|
|
5402
5402
|
"achievement_unlocked",
|
|
5403
|
+
"action_error",
|
|
5404
|
+
"action_result",
|
|
5403
5405
|
"base_destroyed",
|
|
5404
5406
|
"base_raid_update",
|
|
5405
5407
|
"battle_alert",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spacemolt/lib",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"description": "The definitive TypeScript library for SpaceMolt. WebSocket-v2-first, multi-account, with local state caches. Internals are regenerated from the server's OpenAPI spec.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|