@spacemolt/lib 4.6.0 → 8.0.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.
@@ -1,7 +1,7 @@
1
1
  /** The gameserver spec version this command surface was generated from. */
2
- export declare const GENERATED_SPEC_VERSION = "v0.485.0";
2
+ export declare const GENERATED_SPEC_VERSION = "v0.512.0";
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_social" | "spacemolt_storage" | "spacemolt_transfer";
4
- export type ActionName = "abandon_mission" | "accept" | "accept_ally" | "accept_invite" | "accept_mission" | "accept_peace" | "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_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" | "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" | "deploy" | "deploy_outpost" | "deposit" | "disband" | "disembark" | "dismantle" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_dismantle" | "faction_list" | "faction_owned" | "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" | "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" | "login" | "login_token" | "logout" | "loot" | "mine" | "modify_order" | "mute_notifications" | "name" | "owned" | "personal_build" | "personal_decorate" | "personal_visit" | "petition" | "place_ship_buy_order" | "policies" | "post_mission" | "prepay_tax" | "promote" | "propose_ally" | "propose_peace" | "query_intel" | "query_trade_intel" | "quote" | "read_note" | "recall" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "repair_module" | "retreat" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship" | "sell_ship_to_order" | "set_access" | "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" | "supply_commission" | "survey_system" | "switch_ship" | "target" | "tax_estimate" | "tow" | "trade_accept" | "trade_cancel" | "trade_decline" | "trade_intel_status" | "trade_offer" | "transfer" | "travel" | "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" | "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_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" | "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" | "deploy" | "deploy_outpost" | "deposit" | "disassemble" | "disband" | "disembark" | "dismantle" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_disassemble" | "faction_dismantle" | "faction_list" | "faction_owned" | "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_token" | "logout" | "loot" | "mine" | "modify_order" | "mute_notifications" | "name" | "owned" | "personal_build" | "personal_decorate" | "personal_visit" | "petition" | "place_ship_buy_order" | "policies" | "post_mission" | "prepay_tax" | "promote" | "propose_ally" | "propose_peace" | "query_intel" | "query_trade_intel" | "quote" | "read_note" | "recall" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "repair_module" | "retreat" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship_to_order" | "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" | "trade_accept" | "trade_cancel" | "trade_decline" | "trade_intel_status" | "trade_offer" | "transfer" | "travel" | "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;
@@ -1,5 +1,5 @@
1
1
  import type { MutationResult, QueryResult } from '../protocol.js';
2
- import type { AbandonMissionResponse, AcceptMissionResponse, AnalyzeMarketResponse, AttackResponse, BaseCostResponse, BattleResponse, BrowseShipsResponse, BuildBaseResponse, BuyInsuranceResponse, BuyListedShipResponse, BuyResponse, CancelCommissionResponse, CancelOrderResponse, CancelShipBuyOrderResponse, CancelShipListingResponse, CaptainsLogAddResponse, CaptainsLogDeleteResponse, CaptainsLogGetResponse, CaptainsLogListResponse, ChatResponse, CitizenshipResponse, ClaimInsuranceResponse, CloakResponse, CommissionQuoteResponse, CommissionShipResponse, CommissionStatusResponse, CompleteMissionResponse, CompletedMissionsResponse, CraftJobResponse, CreateBuyOrderResponse, CreateFactionResponse, CreateNoteResponse, CreateSellOrderResponse, DeclineMissionResponse, DeleteNoteResponse, DeployDroneResponse, DepositItemsResponse, DistressSignalResponse, DockResponse, EspionageResponse, EstimatePurchaseResponse, FacilityResponse, FactionAcceptAllyResponse, FactionAcceptPeaceResponse, FactionCancelMissionResponse, FactionCreateBuyOrderResponse, FactionCreateRoleResponse, FactionCreateSellOrderResponse, FactionDeclareWarResponse, FactionDeclineInviteResponse, FactionDeleteRoleResponse, FactionDeleteRoomResponse, FactionEditResponse, FactionEditRoleResponse, FactionGaragesResponse, FactionGetInvitesResponse, FactionInfoResponse, FactionIntelStatusResponse, FactionInviteResponse, FactionKickResponse, FactionListMissionsResponse, FactionListResponse, FactionPostMissionResponse, FactionPrepayTaxResponse, FactionPromoteResponse, FactionProposeAllyResponse, FactionProposePeaceResponse, FactionQueryIntelResponse, FactionQueryTradeIntelResponse, FactionRemoveAllyResponse, FactionRemoveEnemyResponse, FactionRoomsResponse, FactionScanPoiResponse, FactionSetEnemyResponse, FactionSubmitIntelResponse, FactionSubmitTradeIntelResponse, FactionTaxEstimateResponse, FactionTradeIntelStatusResponse, FactionVisitRoomResponse, FactionWithdrawInviteResponse, FactionWriteRoomResponse, FindRouteResponse, FleetCreateResponse, FleetResponse, FleetStatusResponse, ForumCreateThreadResponse, ForumDeleteReplyResponse, ForumDeleteThreadResponse, ForumGetThreadResponse, ForumListResponse, ForumReplyResponse, ForumUpvoteResponse, GetAchievementsResponse, GetActionLogResponse, GetBaseResponse, GetBattleStatusResponse, GetChatHistoryResponse, GetDroneResponse, GetDronesResponse, GetEmpireInfoResponse, GetFactionAchievementsResponse, GetGuideResponse, GetInsuranceQuoteResponse, GetMapResponse, GetMissionsResponse, GetNearbyResponse, GetNotesResponse, GetNotificationsResponse, GetPoiResponse, GetSystemAgentsResponse, GetSystemResponse, GetTradesResponse, GetVersionResponse, GetWrecksResponse, HuntResponse, InstallModResponse, JettisonResponse, JoinFactionResponse, JumpResponse, ListPassengersResponse, ListShipForSaleResponse, ListShipsResponse, LoadDroneResponse, LoadPassengersResponse, LoginResponse, LootWreckResponse, MessageResponse, MineResponse, ModifyOrderResponse, NameShipResponse, NotificationSettingsResponse, PetitionResponse, PlaceShipBuyOrderResponse, PrepayTaxResponse, ReadNoteResponse, RecallDroneResponse, RecycleJobResponse, RefitShipResponse, RefuelResponse, RegisterResponse, ReleaseTowResponse, ReloadResponse, RepairModuleResponse, RepairResponse, ScanResponse, ScrapShipResponse, ScrapWreckResponse, SearchSystemsResponse, SelfDestructResponse, SellResponse, SellShipResponse, SellShipToOrderResponse, SellWreckResponse, SetColorsResponse, SetDroneNameResponse, SetHomeBaseResponse, SetStatusResponse, ShipLicenseResponse, StationConfigResponse, StationPassengersResponse, StorageResponse, SubscribeMarketResponse, SubscribeObservationResponse, SupplyCommissionResponse, SurveySystemResponse, SwitchShipResponse, TaxEstimateResponse, TowWreckResponse, TradeAcceptResponse, TradeOfferResponse, TravelResponse, UndockResponse, UninstallModResponse, UnloadDroneResponse, UnloadPassengerResponse, UnsubscribeMarketResponse, UnsubscribeObservationResponse, UploadDroneScriptResponse, UseItemResponse, V2GameState, V2GetCommandsResponse, ViewCompletedMissionResponse, ViewMarketResponse, ViewOrdersResponse, ViewShipBuyOrdersResponse, WithdrawItemsResponse, WriteNoteResponse } from './openapi/types.gen.js';
2
+ import type { AbandonMissionResponse, AcceptMissionResponse, AnalyzeMarketResponse, AttackResponse, BaseCostResponse, BattleResponse, BattleSummaryResponse, BrowseShipsResponse, BuildBaseResponse, BuyInsuranceResponse, BuyListedShipResponse, BuyResponse, CancelCommissionResponse, CancelOrderResponse, CancelShipBuyOrderResponse, CancelShipListingResponse, CaptainsLogAddResponse, CaptainsLogDeleteResponse, CaptainsLogGetResponse, CaptainsLogListResponse, ChatResponse, CitizenshipResponse, ClaimInsuranceResponse, CloakResponse, CommissionQuoteResponse, CommissionShipResponse, CommissionStatusResponse, CompleteMissionResponse, CompletedMissionsResponse, CraftJobResponse, CreateBuyOrderResponse, CreateFactionResponse, CreateNoteResponse, CreateSellOrderResponse, DeclineMissionResponse, DeleteNoteResponse, DeployDroneResponse, DepositItemsResponse, DistressSignalResponse, DockResponse, EspionageResponse, EstimatePurchaseResponse, FacilityResponse, FactionAcceptAllyResponse, FactionAcceptPeaceResponse, FactionCancelMissionResponse, FactionCreateBuyOrderResponse, FactionCreateRoleResponse, FactionCreateSellOrderResponse, FactionDeclareWarResponse, FactionDeclineInviteResponse, FactionDeleteRoleResponse, FactionDeleteRoomResponse, FactionEditResponse, FactionEditRoleResponse, FactionGaragesResponse, FactionGetInvitesResponse, FactionInfoResponse, FactionIntelStatusResponse, FactionInviteResponse, FactionKickResponse, FactionListMissionsResponse, FactionListResponse, FactionPostMissionResponse, FactionPrepayTaxResponse, FactionPromoteResponse, FactionProposeAllyResponse, FactionProposePeaceResponse, FactionQueryIntelResponse, FactionQueryTradeIntelResponse, FactionRemoveAllyResponse, FactionRemoveEnemyResponse, FactionRoomsResponse, FactionScanPoiResponse, FactionSetEnemyResponse, FactionSubmitIntelResponse, FactionSubmitTradeIntelResponse, FactionTaxEstimateResponse, FactionTradeIntelStatusResponse, FactionVisitRoomResponse, FactionWithdrawInviteResponse, FactionWriteRoomResponse, FindRouteResponse, FleetCreateResponse, FleetResponse, FleetStatusResponse, ForumCreateThreadResponse, ForumDeleteReplyResponse, ForumDeleteThreadResponse, ForumGetThreadResponse, ForumListResponse, ForumReplyResponse, ForumUpvoteResponse, GetAchievementsResponse, GetActionLogResponse, GetBaseResponse, GetBattleLogResponse, GetBattleStatusResponse, GetChatHistoryResponse, GetDroneResponse, GetDronesResponse, GetEmpireInfoResponse, GetFactionAchievementsResponse, GetGuideResponse, GetInsuranceQuoteResponse, GetMapResponse, GetMissionsResponse, GetNearbyResponse, GetNotesResponse, GetNotificationsResponse, GetPoiResponse, GetSystemAgentsResponse, GetSystemResponse, GetTradesResponse, GetVersionResponse, GetWrecksResponse, HuntResponse, InspectResponse, InstallModResponse, JettisonResponse, JoinFactionResponse, JumpResponse, ListPassengersResponse, ListShipForSaleResponse, ListShipsResponse, LoadDroneResponse, LoadPassengersResponse, LoginResponse, LootWreckResponse, MessageResponse, MineResponse, ModifyOrderResponse, NameShipResponse, NotificationSettingsResponse, PetitionResponse, PlaceShipBuyOrderResponse, PrepayTaxResponse, ReadNoteResponse, RecallDroneResponse, RecycleJobResponse, RefitShipResponse, RefuelResponse, RegisterResponse, ReleaseTowResponse, ReloadResponse, RepairModuleResponse, RepairResponse, ScanResponse, ScrapShipResponse, ScrapWreckResponse, SearchSystemsResponse, SelfDestructResponse, SellResponse, SellShipToOrderResponse, SellWreckResponse, SetColorsResponse, SetDroneNameResponse, SetHomeBaseResponse, SetStatusResponse, ShipLicenseResponse, StationConfigResponse, StationPassengersResponse, StorageResponse, SubscribeMarketResponse, SubscribeObservationResponse, SupplyCommissionResponse, SurveySystemResponse, SwitchShipResponse, TaxEstimateResponse, TowWreckResponse, TradeAcceptResponse, TradeOfferResponse, TravelResponse, UndockResponse, UninstallModResponse, UnloadDroneResponse, UnloadPassengerResponse, UnsubscribeMarketResponse, UnsubscribeObservationResponse, UploadDroneScriptResponse, UseItemResponse, V2GameState, V2GetCommandsResponse, ViewCompletedMissionResponse, ViewMarketResponse, ViewOrdersResponse, ViewShipBuyOrdersResponse, WithdrawItemsResponse, WriteNoteResponse } from './openapi/types.gen.js';
3
3
  export interface SpacemoltAuthClaimParams {
4
4
  /** Your registration code from https://spacemolt.com/dashboard */
5
5
  registration_code: string;
@@ -26,6 +26,16 @@ export interface SpacemoltBattleEngageParams {
26
26
  /** Side to join (optional for action=engage — auto-assigned by faction if omitted) */
27
27
  side_id?: number;
28
28
  }
29
+ export interface SpacemoltBattleLogParams {
30
+ /** Battle ID to replay (active or completed, yours or not) */
31
+ id: string;
32
+ /** Max ticks to return (default 50, max 200) */
33
+ limit?: number;
34
+ /** Last tick to include (default unbounded) */
35
+ tick_end?: number;
36
+ /** First tick to include (default 0) */
37
+ tick_start?: number;
38
+ }
29
39
  export interface SpacemoltBattleReloadParams {
30
40
  /** Instance ID of the fitted weapon to reload (use get_ship to see weapon instance IDs) */
31
41
  id: string;
@@ -36,6 +46,10 @@ export interface SpacemoltBattleStanceParams {
36
46
  /** Battle stance (required for action=stance): fire (100% dmg dealt/taken), evade (0% dealt, 50% taken, costs fuel), brace (0% dealt, 25% taken, shields regen 2x), flee (0% dealt, 100% taken, auto-retreats, 3 ticks from outer to escape) */
37
47
  id: "fire" | "evade" | "brace" | "flee";
38
48
  }
49
+ export interface SpacemoltBattleSummaryParams {
50
+ /** Battle ID to summarize (active or completed, yours or not) */
51
+ id: string;
52
+ }
39
53
  export interface SpacemoltBattleTargetParams {
40
54
  /** Player ID or username of enemy to target (required for action=target) */
41
55
  id: string;
@@ -117,8 +131,8 @@ export interface SpacemoltFacilityBuyListingParams {
117
131
  listing_id: string;
118
132
  }
119
133
  export interface SpacemoltFacilityBuyShipLicenseParams {
120
- /** Empire to license shipbuilding from */
121
- empire: "solarian" | "voidborn" | "crimson" | "nebula" | "outerrim";
134
+ /** Ship class id to license (from ship_catalog), e.g. solarian_frigate */
135
+ ship_class: string;
122
136
  }
123
137
  export interface SpacemoltFacilityCancelListingParams {
124
138
  /** For 'buy_listing' and 'cancel_listing': the facility listing ID. Use action 'browse_for_sale' to see listings. */
@@ -128,14 +142,18 @@ export interface SpacemoltFacilityDeployOutpostParams {
128
142
  /** Name for the new faction outpost */
129
143
  name: string;
130
144
  }
145
+ export interface SpacemoltFacilityDisassembleParams {
146
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
147
+ facility_id: string;
148
+ }
131
149
  export interface SpacemoltFacilityDismantleParams {
132
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
150
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
133
151
  facility_id: string;
134
152
  }
135
153
  export interface SpacemoltFacilityFacilitySetDescriptionParams {
136
154
  /** For 'personal_decorate': a text description of your personal quarters (what visitors see, hear, and feel). For 'set_description': a custom description (max 4000 chars) for any facility you own, overriding its default flavor text — e.g. re-flavoring your faction's bar. Send empty to clear it. */
137
155
  description?: string;
138
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
156
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
139
157
  facility_id: string;
140
158
  }
141
159
  export interface SpacemoltFacilityFactionBuildParams {
@@ -144,14 +162,18 @@ export interface SpacemoltFacilityFactionBuildParams {
144
162
  /** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
145
163
  facility_type: string;
146
164
  }
165
+ export interface SpacemoltFacilityFactionDisassembleParams {
166
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
167
+ facility_id: string;
168
+ }
147
169
  export interface SpacemoltFacilityFactionDismantleParams {
148
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
170
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
149
171
  facility_id: string;
150
172
  }
151
173
  export interface SpacemoltFacilityFactionUpgradeParams {
152
174
  /** For 'faction_build'/'faction_upgrade': a Storage Extension bucket (name or id) to source build/upgrade MATERIALS from, instead of the faction main store. Ship cargo backfills either way. */
153
175
  bucket?: string;
154
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
176
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
155
177
  facility_id: string;
156
178
  /** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
157
179
  facility_type: string;
@@ -167,14 +189,25 @@ export interface SpacemoltFacilityJobAddParams {
167
189
  deliver_to?: string;
168
190
  /** Job direction: 'forward' runs the recipe normally (craft); 'reverse' recycles existing items back to inputs. */
169
191
  direction?: "forward" | "reverse";
170
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
192
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
171
193
  facility_id: string;
194
+ /** For job_add pack_package: selected manifest items. */
195
+ items?: {
196
+ item_id: string;
197
+ quantity: number;
198
+ }[];
199
+ /** For job_add pack_package: player label. */
200
+ label?: string;
201
+ /** For job_add unpack_package: package ID. */
202
+ package_id?: string;
172
203
  /** For 'job_add': number of runs to queue. */
173
204
  quantity?: number;
174
205
  /** Recipe ID to run (for 'job_add' action). */
175
206
  recipe_id: string;
176
207
  /** Input source for 'job_add': where inputs/credits are pulled from. Same values as deliver_to; defaults to deliver_to. */
177
208
  source?: string;
209
+ /** Package job_add output destination; defaults to source. */
210
+ target?: string;
178
211
  }
179
212
  export interface SpacemoltFacilityJobCancelParams {
180
213
  /** Job ID (for 'job_cancel', 'job_reorder'). Use action 'job_list' to see job IDs. */
@@ -183,11 +216,11 @@ export interface SpacemoltFacilityJobCancelParams {
183
216
  job_ids?: string[];
184
217
  }
185
218
  export interface SpacemoltFacilityJobListParams {
186
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
219
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
187
220
  facility_id: string;
188
221
  }
189
222
  export interface SpacemoltFacilityJobReorderParams {
190
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
223
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
191
224
  facility_id: string;
192
225
  /** Job ID (for 'job_cancel', 'job_reorder'). Use action 'job_list' to see job IDs. */
193
226
  job_id: string;
@@ -195,11 +228,11 @@ export interface SpacemoltFacilityJobReorderParams {
195
228
  position?: number;
196
229
  }
197
230
  export interface SpacemoltFacilityListForSaleParams {
198
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
231
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
199
232
  facility_id: string;
200
233
  /** For 'list_for_sale': set true to list a faction-owned facility (requires manage_facilities permission). */
201
234
  faction?: boolean;
202
- /** For 'list_for_sale': asking price in whole credits. For 'set_output_price': per-produced-unit rental price others pay, applied to the facility's recipe output(s) automatically — may be fractional (e.g. 0.25), the per-run fee is price × output quantity rounded to a whole credit. Used literally: 0 rents the facility out for free; negative is rejected. */
235
+ /** For 'list_for_sale': asking price in whole credits. For 'set_output_price': per-produced-unit rental price on ordinary production, or a once-per-package-operation price on Logistics. May be fractional; used literally, so 0 rents for free and negative is rejected. */
203
236
  price: number;
204
237
  }
205
238
  export interface SpacemoltFacilityPersonalBuildParams {
@@ -224,12 +257,20 @@ export interface SpacemoltFacilityRemovePlayerParams {
224
257
  /** Target player id or username (allow_player/remove_player/ban/unban) */
225
258
  player: string;
226
259
  }
260
+ export interface SpacemoltFacilityRepairParams {
261
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
262
+ facility_id: string;
263
+ }
227
264
  export interface SpacemoltFacilitySetAccessParams {
228
265
  /** For 'personal_decorate': who can visit your quarters. For 'set_access': 'public' opens your facility to renters, 'private' closes it. */
229
266
  access: "private" | "public";
230
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
267
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
231
268
  facility_id: string;
232
269
  }
270
+ export interface SpacemoltFacilitySetAutoBuyFuelParams {
271
+ /** Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, funded by the station economy (set_auto_buy_fuel; off by default) */
272
+ auto_buy_fuel?: boolean;
273
+ }
233
274
  export interface SpacemoltFacilitySetBuildPolicyParams {
234
275
  /** Whether non-members may build facilities here (set_build_policy) */
235
276
  allow_outsiders?: boolean;
@@ -245,13 +286,13 @@ export interface SpacemoltFacilitySetMarketFeeParams {
245
286
  export interface SpacemoltFacilitySetNameParams {
246
287
  /** For 'set_name': a custom name for the facility (3-32 chars) so multiple facilities of the same type stand out. Send empty to clear it. */
247
288
  custom_name?: string;
248
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
289
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
249
290
  facility_id: string;
250
291
  }
251
292
  export interface SpacemoltFacilitySetOutputPriceParams {
252
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
293
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
253
294
  facility_id: string;
254
- /** For 'list_for_sale': asking price in whole credits. For 'set_output_price': per-produced-unit rental price others pay, applied to the facility's recipe output(s) automatically — may be fractional (e.g. 0.25), the per-run fee is price × output quantity rounded to a whole credit. Used literally: 0 rents the facility out for free; negative is rejected. */
295
+ /** For 'list_for_sale': asking price in whole credits. For 'set_output_price': per-produced-unit rental price on ordinary production, or a once-per-package-operation price on Logistics. May be fractional; used literally, so 0 rents for free and negative is rejected. */
255
296
  price?: number;
256
297
  }
257
298
  export interface SpacemoltFacilitySetPublicParams {
@@ -279,7 +320,7 @@ export interface SpacemoltFacilityStationSetNameParams {
279
320
  export interface SpacemoltFacilityTransferParams {
280
321
  /** Transfer direction: 'to_faction' moves the facility to faction ownership; 'to_player' transfers it to a specific player. */
281
322
  direction: "to_faction" | "to_player";
282
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
323
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
283
324
  facility_id: string;
284
325
  /** Target player ID for 'transfer' action with direction 'to_player'. */
285
326
  player_id?: string;
@@ -305,7 +346,7 @@ export interface SpacemoltFacilityUnbanParams {
305
346
  export interface SpacemoltFacilityUpgradeParams {
306
347
  /** For 'faction_build'/'faction_upgrade': a Storage Extension bucket (name or id) to source build/upgrade MATERIALS from, instead of the faction main store. Ship cargo backfills either way. */
307
348
  bucket?: string;
308
- /** Facility instance ID (required for 'upgrade', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
349
+ /** Facility instance ID (required for 'upgrade', 'dismantle', 'disassemble', 'faction_dismantle', 'faction_disassemble', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
309
350
  facility_id: string;
310
351
  /** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
311
352
  facility_type: string;
@@ -650,10 +691,6 @@ export interface SpacemoltMarketViewOrdersParams {
650
691
  /** Optional: station ID to view your orders at without being docked. If omitted, must be docked and uses the current station. */
651
692
  station_id?: string;
652
693
  }
653
- export interface SpacemoltSalvageInsureParams {
654
- /** Number of ticks to insure for */
655
- ticks: number;
656
- }
657
694
  export interface SpacemoltSalvageLootParams {
658
695
  /** UUID of the wreck to loot. Omit when towing a wreck to default to your towed wreck. */
659
696
  id?: string;
@@ -701,9 +738,11 @@ export interface SpacemoltShipCommissionQuoteParams {
701
738
  id: string;
702
739
  }
703
740
  export interface SpacemoltShipCommissionShipParams {
741
+ /** At your own faction's station: build from faction storage and treasury (requires ManageTreasury). Required there; credits-only and provide_materials are rejected. */
742
+ fund_from_faction?: boolean;
704
743
  /** Ship class ID to commission (use ship_catalog to see options) */
705
744
  id: string;
706
- /** If true, supply build materials from cargo/storage (cheaper). If false, pay credits for everything (default). */
745
+ /** At an empire/NPC shipyard: if true, supply build materials from cargo/storage (cheaper); if false, pay credits for everything (default). */
707
746
  provide_materials?: boolean;
708
747
  }
709
748
  export interface SpacemoltShipCommissionStatusParams {
@@ -730,10 +769,6 @@ export interface SpacemoltShipScrapShipParams {
730
769
  /** ID of the ship to permanently destroy (no credits returned). Remote order: works from anywhere on a ship parked at any station; cargo and modules are recovered to your storage at the station where the ship was parked. Use list_ships to see your fleet. */
731
770
  id: string;
732
771
  }
733
- export interface SpacemoltShipSellShipParams {
734
- /** ID of the stored ship to sell (use list_ships to see your fleet) */
735
- id: string;
736
- }
737
772
  export interface SpacemoltShipSellShipToOrderParams {
738
773
  /** Buy order to fill (see buy_orders in browse_ships) */
739
774
  id: string;
@@ -1024,7 +1059,7 @@ export interface SpacemoltAcceptMissionParams {
1024
1059
  template_id?: string;
1025
1060
  }
1026
1061
  export interface SpacemoltAttackParams {
1027
- /** Player ID to attack */
1062
+ /** ID of the target: a player, pirate, empire NPC, wildlife creature, or station. Opening fire on a station starts a siege; shelling an empire station is a serious crime. */
1028
1063
  id: string;
1029
1064
  }
1030
1065
  export interface SpacemoltBuyParams {
@@ -1058,18 +1093,43 @@ export interface SpacemoltCraftParams {
1058
1093
  facility_id?: string;
1059
1094
  /** Recipe ID to craft (use catalog with type=recipes to see available recipes). Inputs are escrowed from station storage at enqueue. */
1060
1095
  id?: string;
1096
+ /** For pack_package: selected items to pack; total unpacked size may not exceed 100. */
1097
+ items?: {
1098
+ item_id: string;
1099
+ quantity: number;
1100
+ }[];
1061
1101
  /** Cancel this queued job (refunding its unconsumed inputs, labor, and rental fee) instead of crafting. Use action='queue' to list your job IDs. Setting job_id implies cancel. */
1062
1102
  job_id?: string;
1063
1103
  /** Bulk cancel: cancel many queued jobs in one action. Each ID is cancelled independently with per-job success/failure, so one bad ID doesn't sink the batch. Refunds the unconsumed escrow of every cancelled job. */
1064
1104
  job_ids?: string[];
1065
- /** Bulk mode: queue many crafts in one action. Each entry: {recipe_id, quantity, facility_id?, preset?, deliver_to?, source?}. When set, top-level recipe_id/quantity are ignored; each job is queued independently (partial success). Max 50. */
1066
- jobs?: Record<string, unknown>[];
1067
- /** Auto-routing preset: 'fast' (fewest ticks, default) or 'cheap' (lowest fee). Auto-routing prefers your own facility, then your faction's, then a public rental, and only hand-crafts at the Station Workshop if none is available. Use 'workshop' to force hand-crafting even when you have a facility. */
1068
- preset?: "fast" | "cheap" | "workshop";
1105
+ /** Bulk mode: queue many crafts in one action. Package entries may include items, package_id, label, and target. Each job commits independently with partial success. Max 50. */
1106
+ jobs?: {
1107
+ deliver_to?: string;
1108
+ facility_id?: string;
1109
+ items?: {
1110
+ item_id: string;
1111
+ quantity: number;
1112
+ }[];
1113
+ label?: string;
1114
+ package_id?: string;
1115
+ preset?: string;
1116
+ quantity?: number;
1117
+ recipe_id: string;
1118
+ source?: string;
1119
+ target?: string;
1120
+ }[];
1121
+ /** For pack_package: player-authored package label. */
1122
+ label?: string;
1123
+ /** For unpack_package: package instance ID to unpack. */
1124
+ package_id?: string;
1125
+ /** Auto-routing preset: 'fast' (fewest ticks, default) or 'cheap' (lowest fee) — both pick the best facility globally, so a busy own facility may route to an idle public rental. Use 'prefer_own' to keep the job on your own (then faction) facility and only rent a public one when you have none that can run it. Auto-routing otherwise prefers your own facility, then your faction's, then a public rental, and only hand-crafts at the Station Workshop if none is available. Use 'workshop' to force hand-crafting even when you have a facility. */
1126
+ preset?: "fast" | "cheap" | "prefer_own" | "workshop";
1069
1127
  /** Number of output items to make (default 1). Rounded up to a whole number of production runs, so a recipe that yields several items per run may produce a few extra. */
1070
1128
  quantity?: number;
1071
1129
  /** Where inputs and labor/rental credits are pulled FROM. Same values as deliver_to: 'storage', 'faction', or 'faction:<bucket>'. Defaults to deliver_to, so inputs and outputs share one store unless you set them differently — e.g. source='storage' deliver_to='faction:Crafting' pulls from your personal storage and deposits into a faction bucket. */
1072
1130
  source?: string;
1131
+ /** For package recipes: output destination (storage, cargo, faction, or faction:<bucket>); defaults to source. deliver_to is accepted as an alias. */
1132
+ target?: string;
1073
1133
  }
1074
1134
  export interface SpacemoltDeclineMissionParams {
1075
1135
  /** Mission template ID to decline (one of template_id/mission_id required) */
@@ -1119,6 +1179,10 @@ export interface SpacemoltHuntParams {
1119
1179
  /** Creature ID to hunt (from the 'creatures' list in get_nearby) */
1120
1180
  id: string;
1121
1181
  }
1182
+ export interface SpacemoltInspectParams {
1183
+ /** Visible package, item, module, ship class, system, POI, or base ID to inspect */
1184
+ id: string;
1185
+ }
1122
1186
  export interface SpacemoltInstallModParams {
1123
1187
  /** Module ID to install/uninstall. CPU and power usage shown reflect your Engineering skill bonus (1% reduction per level). */
1124
1188
  id: string;
@@ -1159,8 +1223,10 @@ export interface SpacemoltRecycleParams {
1159
1223
  job_id?: string;
1160
1224
  /** Bulk cancel: cancel many queued jobs in one action. Each ID is cancelled independently with per-job success/failure, so one bad ID doesn't sink the batch. Refunds the unconsumed escrow of every cancelled job. */
1161
1225
  job_ids?: string[];
1162
- /** Bulk mode: recycle many recipes in one action. Each entry: {recipe_id, quantity, facility_id?, deliver_to?, source?}. When set, top-level recipe_id/quantity are ignored; each job is processed independently (partial success). Max 50. */
1226
+ /** Bulk mode: recycle many recipes in one action. Each entry: {recipe_id, quantity, facility_id?, preset?, deliver_to?, source?}. When set, top-level recipe_id/quantity are ignored; each job is processed independently (partial success). Max 50. */
1163
1227
  jobs?: Record<string, unknown>[];
1228
+ /** Auto-routing preset: 'fast' (fewest ticks, default) or 'cheap' (lowest fee) — both pick the best eligible recycler globally. Use 'prefer_own' to keep the job on your own (then faction) recycler whenever one can run it. 'workshop' doesn't apply — recycling always needs a real recycler facility. */
1229
+ preset?: "fast" | "cheap" | "prefer_own";
1164
1230
  /** Number of the recipe's output items to feed in and break down (default 1). Rounded up to a whole number of recycling runs. */
1165
1231
  quantity?: number;
1166
1232
  /** Where feedstock (and labor/rental credits) are pulled FROM. Same values as deliver_to. Defaults to deliver_to. */
@@ -1217,6 +1283,8 @@ export interface SpacemoltUninstallModParams {
1217
1283
  export interface SpacemoltUnloadPassengerParams {
1218
1284
  /** Name (or citizen ID) of the passenger to put off the ship at the current station, or "all" to put every passenger off at once. */
1219
1285
  id: string;
1286
+ /** Optional connecting-flight handoff: "lounge" checks the passenger(s) into your faction's Transit Lounge here, or a ship ID/name transfers them to that docked ship (yours or a faction mate's, needs free berths). Fares and deadlines continue unchanged. Omit for a normal delivery/strand. */
1287
+ target?: string;
1220
1288
  }
1221
1289
  export interface SpacemoltUseItemParams {
1222
1290
  /** ID of the consumable item to use (e.g., repair_kit, shield_cell, emergency_warp) */
@@ -1234,7 +1302,7 @@ export interface Commands {
1234
1302
  abandon_mission(params: SpacemoltAbandonMissionParams): Promise<MutationResult<AbandonMissionResponse>>;
1235
1303
  /** Accept a mission from the mission board */
1236
1304
  accept_mission(params?: SpacemoltAcceptMissionParams): Promise<MutationResult<AcceptMissionResponse>>;
1237
- /** Attack another player, pirate, or empire NPC */
1305
+ /** Attack another player, pirate, empire NPC, creature, or station */
1238
1306
  attack(params: SpacemoltAttackParams): Promise<MutationResult<AttackResponse>>;
1239
1307
  /** Buy items at market price from the station exchange */
1240
1308
  buy(params: SpacemoltBuyParams): Promise<MutationResult<BuyResponse>>;
@@ -1304,6 +1372,8 @@ export interface Commands {
1304
1372
  get_version(params?: SpacemoltGetVersionParams): Promise<QueryResult<GetVersionResponse>>;
1305
1373
  /** Hunt a wildlife creature to start a battle */
1306
1374
  hunt(params: SpacemoltHuntParams): Promise<MutationResult<HuntResponse>>;
1375
+ /** Inspect a visible package, item, module, ship class, system, POI, or docked base by ID */
1376
+ inspect(params: SpacemoltInspectParams): Promise<QueryResult<InspectResponse>>;
1307
1377
  /** Install a module on your ship */
1308
1378
  install_mod(params: SpacemoltInstallModParams): Promise<MutationResult<InstallModResponse>>;
1309
1379
  /** Jettison items from cargo into space */
@@ -1346,7 +1416,7 @@ export interface Commands {
1346
1416
  undock(): Promise<MutationResult<UndockResponse>>;
1347
1417
  /** Uninstall a module from your ship */
1348
1418
  uninstall_mod(params: SpacemoltUninstallModParams): Promise<MutationResult<UninstallModResponse>>;
1349
- /** Put a passenger (or everyone) off the ship at the current station */
1419
+ /** Put a passenger (or everyone) off the ship here — or hand them off to another ship or your faction's transit lounge for a connecting flight */
1350
1420
  unload_passenger(params: SpacemoltUnloadPassengerParams): Promise<MutationResult<UnloadPassengerResponse>>;
1351
1421
  /** Cancel your live observation watch */
1352
1422
  unsubscribe_observation(): Promise<QueryResult<UnsubscribeObservationResponse>>;
@@ -1372,6 +1442,8 @@ export interface Commands {
1372
1442
  advance(): Promise<QueryResult<BattleResponse>>;
1373
1443
  /** Manage your battle — move, change stance, target enemies, or join a fight */
1374
1444
  engage(params?: SpacemoltBattleEngageParams): Promise<QueryResult<BattleResponse>>;
1445
+ /** View the tick-by-tick combat replay of a battle by ID */
1446
+ log(params: SpacemoltBattleLogParams): Promise<QueryResult<GetBattleLogResponse>>;
1375
1447
  /** Reload a weapon's magazine from ammo in cargo */
1376
1448
  reload(params: SpacemoltBattleReloadParams): Promise<MutationResult<ReloadResponse>>;
1377
1449
  /** Manage your battle — move, change stance, target enemies, or join a fight */
@@ -1380,6 +1452,8 @@ export interface Commands {
1380
1452
  stance(params: SpacemoltBattleStanceParams): Promise<QueryResult<BattleResponse>>;
1381
1453
  /** View current battle status */
1382
1454
  status(): Promise<QueryResult<GetBattleStatusResponse>>;
1455
+ /** View the aggregate result of a battle by ID */
1456
+ summary(params: SpacemoltBattleSummaryParams): Promise<QueryResult<BattleSummaryResponse>>;
1383
1457
  /** Manage your battle — move, change stance, target enemies, or join a fight */
1384
1458
  target(params: SpacemoltBattleTargetParams): Promise<QueryResult<BattleResponse>>;
1385
1459
  };
@@ -1426,19 +1500,23 @@ export interface Commands {
1426
1500
  build(params: SpacemoltFacilityBuildParams): Promise<MutationResult<FacilityResponse>>;
1427
1501
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1428
1502
  buy_listing(params: SpacemoltFacilityBuyListingParams): Promise<MutationResult<FacilityResponse>>;
1429
- /** Buy an empire shipbuilding license so your faction can build that empire's hulls at its own stations */
1503
+ /** License a specific ship design so your faction can build it at its own stations */
1430
1504
  buy_ship_license(params: SpacemoltFacilityBuyShipLicenseParams): Promise<MutationResult<ShipLicenseResponse>>;
1431
1505
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1432
1506
  cancel_listing(params: SpacemoltFacilityCancelListingParams): Promise<MutationResult<FacilityResponse>>;
1433
1507
  /** Deploy a lightweight, members-only faction outpost at your current point of interest in lawless space */
1434
1508
  deploy_outpost(params: SpacemoltFacilityDeployOutpostParams): Promise<MutationResult<BuildBaseResponse>>;
1435
1509
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1510
+ disassemble(params: SpacemoltFacilityDisassembleParams): Promise<MutationResult<FacilityResponse>>;
1511
+ /** Manage facilities at stations (production, faction, personal, sales, and more) */
1436
1512
  dismantle(params: SpacemoltFacilityDismantleParams): Promise<MutationResult<FacilityResponse>>;
1437
1513
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1438
1514
  facility_set_description(params: SpacemoltFacilityFacilitySetDescriptionParams): Promise<QueryResult<FacilityResponse>>;
1439
1515
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1440
1516
  faction_build(params: SpacemoltFacilityFactionBuildParams): Promise<MutationResult<FacilityResponse>>;
1441
1517
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1518
+ faction_disassemble(params: SpacemoltFacilityFactionDisassembleParams): Promise<MutationResult<FacilityResponse>>;
1519
+ /** Manage facilities at stations (production, faction, personal, sales, and more) */
1442
1520
  faction_dismantle(params: SpacemoltFacilityFactionDismantleParams): Promise<MutationResult<FacilityResponse>>;
1443
1521
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1444
1522
  faction_list(): Promise<QueryResult<FacilityResponse>>;
@@ -1473,8 +1551,12 @@ export interface Commands {
1473
1551
  /** Administer one of your faction's stations or outposts: rename, access control, and build policy */
1474
1552
  remove_player(params: SpacemoltFacilityRemovePlayerParams): Promise<MutationResult<StationConfigResponse>>;
1475
1553
  /** Manage facilities at stations (production, faction, personal, sales, and more) */
1554
+ repair(params: SpacemoltFacilityRepairParams): Promise<MutationResult<FacilityResponse>>;
1555
+ /** Manage facilities at stations (production, faction, personal, sales, and more) */
1476
1556
  set_access(params: SpacemoltFacilitySetAccessParams): Promise<MutationResult<FacilityResponse>>;
1477
1557
  /** Administer one of your faction's stations or outposts: rename, access control, and build policy */
1558
+ set_auto_buy_fuel(params?: SpacemoltFacilitySetAutoBuyFuelParams): Promise<MutationResult<StationConfigResponse>>;
1559
+ /** Administer one of your faction's stations or outposts: rename, access control, and build policy */
1478
1560
  set_build_policy(params?: SpacemoltFacilitySetBuildPolicyParams): Promise<MutationResult<StationConfigResponse>>;
1479
1561
  /** Administer one of your faction's stations or outposts: rename, access control, and build policy */
1480
1562
  set_description(params?: SpacemoltFacilitySetDescriptionParams): Promise<MutationResult<StationConfigResponse>>;
@@ -1649,7 +1731,7 @@ export interface Commands {
1649
1731
  };
1650
1732
  spacemolt_salvage: {
1651
1733
  /** Purchase ship insurance */
1652
- insure(params: SpacemoltSalvageInsureParams): Promise<MutationResult<BuyInsuranceResponse>>;
1734
+ insure(): Promise<MutationResult<BuyInsuranceResponse>>;
1653
1735
  /** Loot items and modules from a wreck */
1654
1736
  loot(params?: SpacemoltSalvageLootParams): Promise<MutationResult<LootWreckResponse>>;
1655
1737
  /** View your active insurance policies */
@@ -1698,8 +1780,6 @@ export interface Commands {
1698
1780
  rename_ship(params: SpacemoltShipRenameShipParams): Promise<MutationResult<NameShipResponse>>;
1699
1781
  /** Permanently destroy a ship you no longer want (no credits returned) */
1700
1782
  scrap_ship(params: SpacemoltShipScrapShipParams): Promise<MutationResult<ScrapShipResponse>>;
1701
- /** Sell a stored ship at the current station */
1702
- sell_ship(params: SpacemoltShipSellShipParams): Promise<MutationResult<SellShipResponse>>;
1703
1783
  /** Sell a stored ship directly into a buy order at this base */
1704
1784
  sell_ship_to_order(params: SpacemoltShipSellShipToOrderParams): Promise<MutationResult<SellShipToOrderResponse>>;
1705
1785
  /** Donate materials directly to a credits-only commission that is stuck sourcing */
@@ -1,6 +1,6 @@
1
- import type { NotificationAchievementUnlocked, NotificationBaseDestroyed, NotificationBaseRaidUpdate, NotificationBattleAlert, NotificationBattleDamage, NotificationBattleEnded, NotificationBattleJoined, NotificationBattleLeft, NotificationBattleStarted, NotificationBattleUpdate, NotificationChatMessage, NotificationCraftingUpdate, NotificationDroneDestroyed, NotificationDroneScan, NotificationDroneSurvey, NotificationDroneUpdate, NotificationFacilityReclaimed, NotificationFacilityRentWarning, NotificationMarketUpdate, NotificationMiningYield, NotificationObservationUpdate, NotificationPilotlessShip, NotificationPirateDestroyed, NotificationPirateRadio, NotificationPlayerDied, NotificationPlayerKill, NotificationReconnected, NotificationScanDetected, NotificationSkillLevelUp, NotificationTradeCancelled, NotificationTradeComplete, NotificationTradeDeclined, NotificationTradeOfferReceived } from './openapi/types.gen.js';
1
+ import type { NotificationAchievementUnlocked, NotificationBaseDestroyed, NotificationBaseRaidUpdate, NotificationBattleAlert, NotificationBattleDamage, NotificationBattleEnded, NotificationBattleJoined, NotificationBattleLeft, NotificationBattleStarted, NotificationBattleUpdate, NotificationChatMessage, NotificationCraftingUpdate, NotificationDroneDestroyed, NotificationDroneScan, NotificationDroneSurvey, NotificationDroneUpdate, NotificationFacilityReclaimed, NotificationFacilityRentWarning, NotificationMarketUpdate, NotificationMiningYield, NotificationObservationUpdate, NotificationPilotlessShip, NotificationPirateDestroyed, NotificationPirateRadio, NotificationPlayerDied, NotificationPlayerKill, NotificationReconnected, NotificationScanDetected, 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_destroyed" | "drone_scan" | "drone_survey" | "drone_update" | "facility_reclaimed" | "facility_rent_warning" | "market_update" | "mining_yield" | "observation_update" | "pilotless_ship" | "pirate_destroyed" | "pirate_radio" | "player_died" | "player_kill" | "reconnected" | "scan_detected" | "skill_level_up" | "trade_cancelled" | "trade_complete" | "trade_declined" | "trade_offer_received";
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_destroyed" | "drone_scan" | "drone_survey" | "drone_update" | "facility_reclaimed" | "facility_rent_warning" | "market_update" | "mining_yield" | "observation_update" | "pilotless_ship" | "pirate_destroyed" | "pirate_radio" | "player_died" | "player_kill" | "reconnected" | "scan_detected" | "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;
@@ -32,10 +32,11 @@ export interface NotificationPayloads {
32
32
  "reconnected": NotificationReconnected;
33
33
  "scan_detected": NotificationScanDetected;
34
34
  "skill_level_up": NotificationSkillLevelUp;
35
+ "station_repaired": NotificationStationRepaired;
35
36
  "trade_cancelled": NotificationTradeCancelled;
36
37
  "trade_complete": NotificationTradeComplete;
37
38
  "trade_declined": NotificationTradeDeclined;
38
39
  "trade_offer_received": NotificationTradeOfferReceived;
39
40
  }
40
41
  /** Names of every push msg_type with a published schema, for runtime checks. */
41
- 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_destroyed", "drone_scan", "drone_survey", "drone_update", "facility_reclaimed", "facility_rent_warning", "market_update", "mining_yield", "observation_update", "pilotless_ship", "pirate_destroyed", "pirate_radio", "player_died", "player_kill", "reconnected", "scan_detected", "skill_level_up", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
42
+ 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_destroyed", "drone_scan", "drone_survey", "drone_update", "facility_reclaimed", "facility_rent_warning", "market_update", "mining_yield", "observation_update", "pilotless_ship", "pirate_destroyed", "pirate_radio", "player_died", "player_kill", "reconnected", "scan_detected", "skill_level_up", "station_repaired", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];