@spacemolt/lib 4.6.0 → 7.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 +19 -13
- package/README.md +61 -6
- package/dist/account.d.ts +44 -15
- package/dist/auth/clerk.d.ts +45 -18
- package/dist/auth/credentials.d.ts +1 -0
- package/dist/auth/file-store.d.ts +1 -1
- package/dist/client.d.ts +22 -2
- package/dist/data/catalog.d.ts +37 -4
- package/dist/events/emitter.d.ts +1 -2
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +79 -35
- package/dist/generated/notifications.gen.d.ts +4 -3
- package/dist/generated/openapi/types.gen.d.ts +1736 -344
- package/dist/index.d.ts +4 -4
- package/dist/index.js +447 -157
- package/dist/node.js +66 -4
- package/dist/protocol.d.ts +7 -0
- package/dist/transport/correlator.d.ts +2 -1
- package/dist/transport/socket.d.ts +10 -8
- package/dist/validation.d.ts +4 -0
- package/package.json +15 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** The gameserver spec version this command surface was generated from. */
|
|
2
|
-
export declare const GENERATED_SPEC_VERSION = "v0.
|
|
2
|
+
export declare const GENERATED_SPEC_VERSION = "v0.508.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" | "
|
|
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,
|
|
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
|
-
/**
|
|
121
|
-
|
|
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,7 +189,7 @@ 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;
|
|
172
194
|
/** For 'job_add': number of runs to queue. */
|
|
173
195
|
quantity?: number;
|
|
@@ -183,11 +205,11 @@ export interface SpacemoltFacilityJobCancelParams {
|
|
|
183
205
|
job_ids?: string[];
|
|
184
206
|
}
|
|
185
207
|
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. */
|
|
208
|
+
/** 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
209
|
facility_id: string;
|
|
188
210
|
}
|
|
189
211
|
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. */
|
|
212
|
+
/** 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
213
|
facility_id: string;
|
|
192
214
|
/** Job ID (for 'job_cancel', 'job_reorder'). Use action 'job_list' to see job IDs. */
|
|
193
215
|
job_id: string;
|
|
@@ -195,7 +217,7 @@ export interface SpacemoltFacilityJobReorderParams {
|
|
|
195
217
|
position?: number;
|
|
196
218
|
}
|
|
197
219
|
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. */
|
|
220
|
+
/** 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
221
|
facility_id: string;
|
|
200
222
|
/** For 'list_for_sale': set true to list a faction-owned facility (requires manage_facilities permission). */
|
|
201
223
|
faction?: boolean;
|
|
@@ -224,12 +246,20 @@ export interface SpacemoltFacilityRemovePlayerParams {
|
|
|
224
246
|
/** Target player id or username (allow_player/remove_player/ban/unban) */
|
|
225
247
|
player: string;
|
|
226
248
|
}
|
|
249
|
+
export interface SpacemoltFacilityRepairParams {
|
|
250
|
+
/** 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. */
|
|
251
|
+
facility_id: string;
|
|
252
|
+
}
|
|
227
253
|
export interface SpacemoltFacilitySetAccessParams {
|
|
228
254
|
/** For 'personal_decorate': who can visit your quarters. For 'set_access': 'public' opens your facility to renters, 'private' closes it. */
|
|
229
255
|
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. */
|
|
256
|
+
/** 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
257
|
facility_id: string;
|
|
232
258
|
}
|
|
259
|
+
export interface SpacemoltFacilitySetAutoBuyFuelParams {
|
|
260
|
+
/** 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) */
|
|
261
|
+
auto_buy_fuel?: boolean;
|
|
262
|
+
}
|
|
233
263
|
export interface SpacemoltFacilitySetBuildPolicyParams {
|
|
234
264
|
/** Whether non-members may build facilities here (set_build_policy) */
|
|
235
265
|
allow_outsiders?: boolean;
|
|
@@ -245,11 +275,11 @@ export interface SpacemoltFacilitySetMarketFeeParams {
|
|
|
245
275
|
export interface SpacemoltFacilitySetNameParams {
|
|
246
276
|
/** 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
277
|
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. */
|
|
278
|
+
/** 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
279
|
facility_id: string;
|
|
250
280
|
}
|
|
251
281
|
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. */
|
|
282
|
+
/** 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
283
|
facility_id: string;
|
|
254
284
|
/** 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. */
|
|
255
285
|
price?: number;
|
|
@@ -279,7 +309,7 @@ export interface SpacemoltFacilityStationSetNameParams {
|
|
|
279
309
|
export interface SpacemoltFacilityTransferParams {
|
|
280
310
|
/** Transfer direction: 'to_faction' moves the facility to faction ownership; 'to_player' transfers it to a specific player. */
|
|
281
311
|
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. */
|
|
312
|
+
/** 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
313
|
facility_id: string;
|
|
284
314
|
/** Target player ID for 'transfer' action with direction 'to_player'. */
|
|
285
315
|
player_id?: string;
|
|
@@ -305,7 +335,7 @@ export interface SpacemoltFacilityUnbanParams {
|
|
|
305
335
|
export interface SpacemoltFacilityUpgradeParams {
|
|
306
336
|
/** 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
337
|
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. */
|
|
338
|
+
/** 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
339
|
facility_id: string;
|
|
310
340
|
/** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
|
|
311
341
|
facility_type: string;
|
|
@@ -650,10 +680,6 @@ export interface SpacemoltMarketViewOrdersParams {
|
|
|
650
680
|
/** Optional: station ID to view your orders at without being docked. If omitted, must be docked and uses the current station. */
|
|
651
681
|
station_id?: string;
|
|
652
682
|
}
|
|
653
|
-
export interface SpacemoltSalvageInsureParams {
|
|
654
|
-
/** Number of ticks to insure for */
|
|
655
|
-
ticks: number;
|
|
656
|
-
}
|
|
657
683
|
export interface SpacemoltSalvageLootParams {
|
|
658
684
|
/** UUID of the wreck to loot. Omit when towing a wreck to default to your towed wreck. */
|
|
659
685
|
id?: string;
|
|
@@ -701,9 +727,11 @@ export interface SpacemoltShipCommissionQuoteParams {
|
|
|
701
727
|
id: string;
|
|
702
728
|
}
|
|
703
729
|
export interface SpacemoltShipCommissionShipParams {
|
|
730
|
+
/** At your own faction's station: build from faction storage and treasury (requires ManageTreasury). Required there; credits-only and provide_materials are rejected. */
|
|
731
|
+
fund_from_faction?: boolean;
|
|
704
732
|
/** Ship class ID to commission (use ship_catalog to see options) */
|
|
705
733
|
id: string;
|
|
706
|
-
/**
|
|
734
|
+
/** At an empire/NPC shipyard: if true, supply build materials from cargo/storage (cheaper); if false, pay credits for everything (default). */
|
|
707
735
|
provide_materials?: boolean;
|
|
708
736
|
}
|
|
709
737
|
export interface SpacemoltShipCommissionStatusParams {
|
|
@@ -730,10 +758,6 @@ export interface SpacemoltShipScrapShipParams {
|
|
|
730
758
|
/** 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
759
|
id: string;
|
|
732
760
|
}
|
|
733
|
-
export interface SpacemoltShipSellShipParams {
|
|
734
|
-
/** ID of the stored ship to sell (use list_ships to see your fleet) */
|
|
735
|
-
id: string;
|
|
736
|
-
}
|
|
737
761
|
export interface SpacemoltShipSellShipToOrderParams {
|
|
738
762
|
/** Buy order to fill (see buy_orders in browse_ships) */
|
|
739
763
|
id: string;
|
|
@@ -1024,7 +1048,7 @@ export interface SpacemoltAcceptMissionParams {
|
|
|
1024
1048
|
template_id?: string;
|
|
1025
1049
|
}
|
|
1026
1050
|
export interface SpacemoltAttackParams {
|
|
1027
|
-
/**
|
|
1051
|
+
/** 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
1052
|
id: string;
|
|
1029
1053
|
}
|
|
1030
1054
|
export interface SpacemoltBuyParams {
|
|
@@ -1064,8 +1088,8 @@ export interface SpacemoltCraftParams {
|
|
|
1064
1088
|
job_ids?: string[];
|
|
1065
1089
|
/** 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
1090
|
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";
|
|
1091
|
+
/** 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. */
|
|
1092
|
+
preset?: "fast" | "cheap" | "prefer_own" | "workshop";
|
|
1069
1093
|
/** 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
1094
|
quantity?: number;
|
|
1071
1095
|
/** 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. */
|
|
@@ -1119,6 +1143,10 @@ export interface SpacemoltHuntParams {
|
|
|
1119
1143
|
/** Creature ID to hunt (from the 'creatures' list in get_nearby) */
|
|
1120
1144
|
id: string;
|
|
1121
1145
|
}
|
|
1146
|
+
export interface SpacemoltInspectParams {
|
|
1147
|
+
/** Item, module, ship class, system, POI, or base ID to inspect */
|
|
1148
|
+
id: string;
|
|
1149
|
+
}
|
|
1122
1150
|
export interface SpacemoltInstallModParams {
|
|
1123
1151
|
/** Module ID to install/uninstall. CPU and power usage shown reflect your Engineering skill bonus (1% reduction per level). */
|
|
1124
1152
|
id: string;
|
|
@@ -1159,8 +1187,10 @@ export interface SpacemoltRecycleParams {
|
|
|
1159
1187
|
job_id?: string;
|
|
1160
1188
|
/** 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
1189
|
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. */
|
|
1190
|
+
/** 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
1191
|
jobs?: Record<string, unknown>[];
|
|
1192
|
+
/** 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. */
|
|
1193
|
+
preset?: "fast" | "cheap" | "prefer_own";
|
|
1164
1194
|
/** 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
1195
|
quantity?: number;
|
|
1166
1196
|
/** Where feedstock (and labor/rental credits) are pulled FROM. Same values as deliver_to. Defaults to deliver_to. */
|
|
@@ -1217,6 +1247,8 @@ export interface SpacemoltUninstallModParams {
|
|
|
1217
1247
|
export interface SpacemoltUnloadPassengerParams {
|
|
1218
1248
|
/** 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
1249
|
id: string;
|
|
1250
|
+
/** 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. */
|
|
1251
|
+
target?: string;
|
|
1220
1252
|
}
|
|
1221
1253
|
export interface SpacemoltUseItemParams {
|
|
1222
1254
|
/** ID of the consumable item to use (e.g., repair_kit, shield_cell, emergency_warp) */
|
|
@@ -1234,7 +1266,7 @@ export interface Commands {
|
|
|
1234
1266
|
abandon_mission(params: SpacemoltAbandonMissionParams): Promise<MutationResult<AbandonMissionResponse>>;
|
|
1235
1267
|
/** Accept a mission from the mission board */
|
|
1236
1268
|
accept_mission(params?: SpacemoltAcceptMissionParams): Promise<MutationResult<AcceptMissionResponse>>;
|
|
1237
|
-
/** Attack another player, pirate,
|
|
1269
|
+
/** Attack another player, pirate, empire NPC, creature, or station */
|
|
1238
1270
|
attack(params: SpacemoltAttackParams): Promise<MutationResult<AttackResponse>>;
|
|
1239
1271
|
/** Buy items at market price from the station exchange */
|
|
1240
1272
|
buy(params: SpacemoltBuyParams): Promise<MutationResult<BuyResponse>>;
|
|
@@ -1304,6 +1336,8 @@ export interface Commands {
|
|
|
1304
1336
|
get_version(params?: SpacemoltGetVersionParams): Promise<QueryResult<GetVersionResponse>>;
|
|
1305
1337
|
/** Hunt a wildlife creature to start a battle */
|
|
1306
1338
|
hunt(params: SpacemoltHuntParams): Promise<MutationResult<HuntResponse>>;
|
|
1339
|
+
/** Inspect an item, module, ship class, system, visible POI, or docked base by ID */
|
|
1340
|
+
inspect(params: SpacemoltInspectParams): Promise<QueryResult<InspectResponse>>;
|
|
1307
1341
|
/** Install a module on your ship */
|
|
1308
1342
|
install_mod(params: SpacemoltInstallModParams): Promise<MutationResult<InstallModResponse>>;
|
|
1309
1343
|
/** Jettison items from cargo into space */
|
|
@@ -1346,7 +1380,7 @@ export interface Commands {
|
|
|
1346
1380
|
undock(): Promise<MutationResult<UndockResponse>>;
|
|
1347
1381
|
/** Uninstall a module from your ship */
|
|
1348
1382
|
uninstall_mod(params: SpacemoltUninstallModParams): Promise<MutationResult<UninstallModResponse>>;
|
|
1349
|
-
/** Put a passenger (or everyone) off the ship
|
|
1383
|
+
/** 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
1384
|
unload_passenger(params: SpacemoltUnloadPassengerParams): Promise<MutationResult<UnloadPassengerResponse>>;
|
|
1351
1385
|
/** Cancel your live observation watch */
|
|
1352
1386
|
unsubscribe_observation(): Promise<QueryResult<UnsubscribeObservationResponse>>;
|
|
@@ -1372,6 +1406,8 @@ export interface Commands {
|
|
|
1372
1406
|
advance(): Promise<QueryResult<BattleResponse>>;
|
|
1373
1407
|
/** Manage your battle — move, change stance, target enemies, or join a fight */
|
|
1374
1408
|
engage(params?: SpacemoltBattleEngageParams): Promise<QueryResult<BattleResponse>>;
|
|
1409
|
+
/** View the tick-by-tick combat replay of a battle by ID */
|
|
1410
|
+
log(params: SpacemoltBattleLogParams): Promise<QueryResult<GetBattleLogResponse>>;
|
|
1375
1411
|
/** Reload a weapon's magazine from ammo in cargo */
|
|
1376
1412
|
reload(params: SpacemoltBattleReloadParams): Promise<MutationResult<ReloadResponse>>;
|
|
1377
1413
|
/** Manage your battle — move, change stance, target enemies, or join a fight */
|
|
@@ -1380,6 +1416,8 @@ export interface Commands {
|
|
|
1380
1416
|
stance(params: SpacemoltBattleStanceParams): Promise<QueryResult<BattleResponse>>;
|
|
1381
1417
|
/** View current battle status */
|
|
1382
1418
|
status(): Promise<QueryResult<GetBattleStatusResponse>>;
|
|
1419
|
+
/** View the aggregate result of a battle by ID */
|
|
1420
|
+
summary(params: SpacemoltBattleSummaryParams): Promise<QueryResult<BattleSummaryResponse>>;
|
|
1383
1421
|
/** Manage your battle — move, change stance, target enemies, or join a fight */
|
|
1384
1422
|
target(params: SpacemoltBattleTargetParams): Promise<QueryResult<BattleResponse>>;
|
|
1385
1423
|
};
|
|
@@ -1426,19 +1464,23 @@ export interface Commands {
|
|
|
1426
1464
|
build(params: SpacemoltFacilityBuildParams): Promise<MutationResult<FacilityResponse>>;
|
|
1427
1465
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1428
1466
|
buy_listing(params: SpacemoltFacilityBuyListingParams): Promise<MutationResult<FacilityResponse>>;
|
|
1429
|
-
/**
|
|
1467
|
+
/** License a specific ship design so your faction can build it at its own stations */
|
|
1430
1468
|
buy_ship_license(params: SpacemoltFacilityBuyShipLicenseParams): Promise<MutationResult<ShipLicenseResponse>>;
|
|
1431
1469
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1432
1470
|
cancel_listing(params: SpacemoltFacilityCancelListingParams): Promise<MutationResult<FacilityResponse>>;
|
|
1433
1471
|
/** Deploy a lightweight, members-only faction outpost at your current point of interest in lawless space */
|
|
1434
1472
|
deploy_outpost(params: SpacemoltFacilityDeployOutpostParams): Promise<MutationResult<BuildBaseResponse>>;
|
|
1435
1473
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1474
|
+
disassemble(params: SpacemoltFacilityDisassembleParams): Promise<MutationResult<FacilityResponse>>;
|
|
1475
|
+
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1436
1476
|
dismantle(params: SpacemoltFacilityDismantleParams): Promise<MutationResult<FacilityResponse>>;
|
|
1437
1477
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1438
1478
|
facility_set_description(params: SpacemoltFacilityFacilitySetDescriptionParams): Promise<QueryResult<FacilityResponse>>;
|
|
1439
1479
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1440
1480
|
faction_build(params: SpacemoltFacilityFactionBuildParams): Promise<MutationResult<FacilityResponse>>;
|
|
1441
1481
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1482
|
+
faction_disassemble(params: SpacemoltFacilityFactionDisassembleParams): Promise<MutationResult<FacilityResponse>>;
|
|
1483
|
+
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1442
1484
|
faction_dismantle(params: SpacemoltFacilityFactionDismantleParams): Promise<MutationResult<FacilityResponse>>;
|
|
1443
1485
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1444
1486
|
faction_list(): Promise<QueryResult<FacilityResponse>>;
|
|
@@ -1473,8 +1515,12 @@ export interface Commands {
|
|
|
1473
1515
|
/** Administer one of your faction's stations or outposts: rename, access control, and build policy */
|
|
1474
1516
|
remove_player(params: SpacemoltFacilityRemovePlayerParams): Promise<MutationResult<StationConfigResponse>>;
|
|
1475
1517
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1518
|
+
repair(params: SpacemoltFacilityRepairParams): Promise<MutationResult<FacilityResponse>>;
|
|
1519
|
+
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1476
1520
|
set_access(params: SpacemoltFacilitySetAccessParams): Promise<MutationResult<FacilityResponse>>;
|
|
1477
1521
|
/** Administer one of your faction's stations or outposts: rename, access control, and build policy */
|
|
1522
|
+
set_auto_buy_fuel(params?: SpacemoltFacilitySetAutoBuyFuelParams): Promise<MutationResult<StationConfigResponse>>;
|
|
1523
|
+
/** Administer one of your faction's stations or outposts: rename, access control, and build policy */
|
|
1478
1524
|
set_build_policy(params?: SpacemoltFacilitySetBuildPolicyParams): Promise<MutationResult<StationConfigResponse>>;
|
|
1479
1525
|
/** Administer one of your faction's stations or outposts: rename, access control, and build policy */
|
|
1480
1526
|
set_description(params?: SpacemoltFacilitySetDescriptionParams): Promise<MutationResult<StationConfigResponse>>;
|
|
@@ -1649,7 +1695,7 @@ export interface Commands {
|
|
|
1649
1695
|
};
|
|
1650
1696
|
spacemolt_salvage: {
|
|
1651
1697
|
/** Purchase ship insurance */
|
|
1652
|
-
insure(
|
|
1698
|
+
insure(): Promise<MutationResult<BuyInsuranceResponse>>;
|
|
1653
1699
|
/** Loot items and modules from a wreck */
|
|
1654
1700
|
loot(params?: SpacemoltSalvageLootParams): Promise<MutationResult<LootWreckResponse>>;
|
|
1655
1701
|
/** View your active insurance policies */
|
|
@@ -1698,8 +1744,6 @@ export interface Commands {
|
|
|
1698
1744
|
rename_ship(params: SpacemoltShipRenameShipParams): Promise<MutationResult<NameShipResponse>>;
|
|
1699
1745
|
/** Permanently destroy a ship you no longer want (no credits returned) */
|
|
1700
1746
|
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
1747
|
/** Sell a stored ship directly into a buy order at this base */
|
|
1704
1748
|
sell_ship_to_order(params: SpacemoltShipSellShipToOrderParams): Promise<MutationResult<SellShipToOrderResponse>>;
|
|
1705
1749
|
/** 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"];
|