@spacemolt/lib 7.1.0 → 9.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.
- package/COMMANDS.md +7 -9
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +59 -35
- package/dist/generated/openapi/types.gen.d.ts +195 -108
- package/dist/index.js +32 -46
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- AUTO-GENERATED by scripts/generate.ts from openapi.json. DO NOT EDIT. -->
|
|
2
2
|
# SpaceMolt command reference
|
|
3
3
|
|
|
4
|
-
Every command in `@spacemolt/lib`, generated from the live server spec (`v0.
|
|
4
|
+
Every command in `@spacemolt/lib`, generated from the live server spec (`v0.516.0`). **265 commands across 17 tools.**
|
|
5
5
|
|
|
6
6
|
## How to call a command
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ const status = await account.commands.spacemolt.get_status(); // query
|
|
|
25
25
|
- [`spacemolt_battle`](#spacemolt_battle) — 9 commands
|
|
26
26
|
- [`spacemolt_citizenship`](#spacemolt_citizenship) — 4 commands
|
|
27
27
|
- [`spacemolt_drone`](#spacemolt_drone) — 8 commands
|
|
28
|
-
- [`spacemolt_facility`](#spacemolt_facility) —
|
|
28
|
+
- [`spacemolt_facility`](#spacemolt_facility) — 49 commands
|
|
29
29
|
- [`spacemolt_faction`](#spacemolt_faction) — 28 commands
|
|
30
30
|
- [`spacemolt_faction_admin`](#spacemolt_faction_admin) — 6 commands
|
|
31
31
|
- [`spacemolt_faction_commerce`](#spacemolt_faction_commerce) — 2 commands
|
|
@@ -49,7 +49,7 @@ Call as `account.commands.spacemolt.<action>(...)`.
|
|
|
49
49
|
- `cloak({ enable?: boolean; quantity?: number })` · *mutation* → delta.details: `CloakResponse` — Toggle cloaking device
|
|
50
50
|
- `complete_mission({ id: string })` · *mutation* → delta.details: `CompleteMissionResponse` — Complete a mission and claim rewards
|
|
51
51
|
- `completed_missions()` · *query* → `CompletedMissionsResponse` — List all missions you have completed
|
|
52
|
-
- `craft({ count?: number; deliver_to?: string; dry_run?: boolean; facility_id?: string; id?: string; job_id?: string; job_ids?: string[]; jobs?:
|
|
52
|
+
- `craft({ count?: number; deliver_to?: string; dry_run?: boolean; facility_id?: string; id?: string; items?: { item_id: string; quantity: number }[]; job_id?: string; job_ids?: string[]; jobs?: { deliver_to?: string; facility_id?: string; items?: { item_id: string; quantity: number }[]; label?: string; package_id?: string; preset?: string; quantity?: number; recipe_id: string; source?: string; target?: string }[]; label?: string; package_id?: string; preset?: "fast" | "cheap" | "prefer_own" | "workshop"; quantity?: number; source?: string; target?: string })` · *mutation* → delta.details: `CraftJobResponse` — Queue a crafting job (auto-routes to your own/faction facility, or hand-crafts at the Station Workshop)
|
|
53
53
|
- `decline_mission({ id?: string; mission_id?: string })` · *query* → `DeclineMissionResponse` — Decline a mission and hear the NPC's response
|
|
54
54
|
- `distress_signal({ distress_type?: "fuel" | "repair" | "combat" })` · *mutation* → delta.details: `DistressSignalResponse` — Broadcast a distress signal to nearby players for emergency rescue
|
|
55
55
|
- `dock()` · *mutation* → delta.details: `DockResponse` — Dock at a base
|
|
@@ -79,7 +79,7 @@ Call as `account.commands.spacemolt.<action>(...)`.
|
|
|
79
79
|
- `get_tax_estimate()` · *query* → `TaxEstimateResponse` — Preview what taxes you'd owe right now
|
|
80
80
|
- `get_version({ count?: number; id?: string; page?: number; text?: string })` · *query* → `GetVersionResponse` — Get game version and release notes, with optional changelog pagination
|
|
81
81
|
- `hunt({ id: string })` · *mutation* → delta.details: `HuntResponse` — Hunt a wildlife creature to start a battle
|
|
82
|
-
- `inspect({ id: string })` · *query* → `InspectResponse` — Inspect
|
|
82
|
+
- `inspect({ id: string })` · *query* → `InspectResponse` — Inspect a visible package, item, module, ship class, system, POI, or docked base by ID
|
|
83
83
|
- `install_mod({ id: string })` · *mutation* → delta.details: `InstallModResponse` — Install a module on your ship
|
|
84
84
|
- `jettison({ id?: string; items?: { item_id: string; quantity: number }[]; quantity?: number })` · *mutation* → delta.details: `JettisonResponse` — Jettison items from cargo into space
|
|
85
85
|
- `jump({ id: string })` · *mutation* → delta.details: `JumpResponse` — Jump to an adjacent star system, or plot a numeric bearing with a Pathfinder Drive
|
|
@@ -166,17 +166,15 @@ Call as `account.commands.spacemolt_facility.<action>(...)`.
|
|
|
166
166
|
- `buy_ship_license({ ship_class: string })` · *mutation* → delta.details: `ShipLicenseResponse` — License a specific ship design so your faction can build it at its own stations
|
|
167
167
|
- `cancel_listing({ listing_id: string })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
168
168
|
- `deploy_outpost({ name: string })` · *mutation* → delta.details: `BuildBaseResponse` — Deploy a lightweight, members-only faction outpost at your current point of interest in lawless space
|
|
169
|
-
- `
|
|
170
|
-
- `dismantle({ facility_id: string })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
169
|
+
- `dismantle({ facility_id: string })` · *mutation* → delta.details: `FacilityDismantleResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
171
170
|
- `facility_set_description({ description?: string; facility_id: string })` · *query* → `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
172
171
|
- `faction_build({ bucket?: string; facility_type: string })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
173
|
-
- `
|
|
174
|
-
- `faction_dismantle({ facility_id: string })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
172
|
+
- `faction_dismantle({ facility_id: string })` · *mutation* → delta.details: `FacilityDismantleResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
175
173
|
- `faction_list()` · *query* → `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
176
174
|
- `faction_owned()` · *query* → `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
177
175
|
- `faction_upgrade({ bucket?: string; facility_id: string; facility_type: string })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
178
176
|
- `found_station({ name: string; public_access?: boolean })` · *mutation* → delta.details: `BuildBaseResponse` — Found a faction-owned station at your current point of interest in lawless space
|
|
179
|
-
- `job_add({ deliver_to?: string; direction?: "forward" | "reverse"; facility_id: string; quantity?: number; recipe_id: string; source?: string })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
177
|
+
- `job_add({ deliver_to?: string; direction?: "forward" | "reverse"; facility_id: string; items?: { item_id: string; quantity: number }[]; label?: string; package_id?: string; quantity?: number; recipe_id: string; source?: string; target?: string })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
180
178
|
- `job_cancel({ job_id?: string; job_ids?: string[] })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
181
179
|
- `job_list({ facility_id: string })` · *query* → `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
182
180
|
- `job_reorder({ facility_id: string; job_id: string; position?: number })` · *mutation* → delta.details: `FacilityResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
@@ -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.516.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" | "
|
|
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" | "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, 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';
|
|
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, FacilityDismantleResponse, 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;
|
|
@@ -142,18 +142,14 @@ export interface SpacemoltFacilityDeployOutpostParams {
|
|
|
142
142
|
/** Name for the new faction outpost */
|
|
143
143
|
name: string;
|
|
144
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
|
-
}
|
|
149
145
|
export interface SpacemoltFacilityDismantleParams {
|
|
150
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
146
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
151
147
|
facility_id: string;
|
|
152
148
|
}
|
|
153
149
|
export interface SpacemoltFacilityFacilitySetDescriptionParams {
|
|
154
150
|
/** 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. */
|
|
155
151
|
description?: string;
|
|
156
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
152
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
157
153
|
facility_id: string;
|
|
158
154
|
}
|
|
159
155
|
export interface SpacemoltFacilityFactionBuildParams {
|
|
@@ -162,18 +158,14 @@ export interface SpacemoltFacilityFactionBuildParams {
|
|
|
162
158
|
/** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
|
|
163
159
|
facility_type: string;
|
|
164
160
|
}
|
|
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
|
-
}
|
|
169
161
|
export interface SpacemoltFacilityFactionDismantleParams {
|
|
170
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
162
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
171
163
|
facility_id: string;
|
|
172
164
|
}
|
|
173
165
|
export interface SpacemoltFacilityFactionUpgradeParams {
|
|
174
166
|
/** 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. */
|
|
175
167
|
bucket?: string;
|
|
176
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
168
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
177
169
|
facility_id: string;
|
|
178
170
|
/** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
|
|
179
171
|
facility_type: string;
|
|
@@ -189,14 +181,25 @@ export interface SpacemoltFacilityJobAddParams {
|
|
|
189
181
|
deliver_to?: string;
|
|
190
182
|
/** Job direction: 'forward' runs the recipe normally (craft); 'reverse' recycles existing items back to inputs. */
|
|
191
183
|
direction?: "forward" | "reverse";
|
|
192
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
184
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
193
185
|
facility_id: string;
|
|
186
|
+
/** For job_add pack_package: selected manifest items. */
|
|
187
|
+
items?: {
|
|
188
|
+
item_id: string;
|
|
189
|
+
quantity: number;
|
|
190
|
+
}[];
|
|
191
|
+
/** For job_add pack_package: player label. */
|
|
192
|
+
label?: string;
|
|
193
|
+
/** For job_add unpack_package: package ID. */
|
|
194
|
+
package_id?: string;
|
|
194
195
|
/** For 'job_add': number of runs to queue. */
|
|
195
196
|
quantity?: number;
|
|
196
197
|
/** Recipe ID to run (for 'job_add' action). */
|
|
197
198
|
recipe_id: string;
|
|
198
199
|
/** Input source for 'job_add': where inputs/credits are pulled from. Same values as deliver_to; defaults to deliver_to. */
|
|
199
200
|
source?: string;
|
|
201
|
+
/** Package job_add output destination; defaults to source. */
|
|
202
|
+
target?: string;
|
|
200
203
|
}
|
|
201
204
|
export interface SpacemoltFacilityJobCancelParams {
|
|
202
205
|
/** Job ID (for 'job_cancel', 'job_reorder'). Use action 'job_list' to see job IDs. */
|
|
@@ -205,11 +208,11 @@ export interface SpacemoltFacilityJobCancelParams {
|
|
|
205
208
|
job_ids?: string[];
|
|
206
209
|
}
|
|
207
210
|
export interface SpacemoltFacilityJobListParams {
|
|
208
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
211
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
209
212
|
facility_id: string;
|
|
210
213
|
}
|
|
211
214
|
export interface SpacemoltFacilityJobReorderParams {
|
|
212
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
215
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
213
216
|
facility_id: string;
|
|
214
217
|
/** Job ID (for 'job_cancel', 'job_reorder'). Use action 'job_list' to see job IDs. */
|
|
215
218
|
job_id: string;
|
|
@@ -217,11 +220,11 @@ export interface SpacemoltFacilityJobReorderParams {
|
|
|
217
220
|
position?: number;
|
|
218
221
|
}
|
|
219
222
|
export interface SpacemoltFacilityListForSaleParams {
|
|
220
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
223
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
221
224
|
facility_id: string;
|
|
222
225
|
/** For 'list_for_sale': set true to list a faction-owned facility (requires manage_facilities permission). */
|
|
223
226
|
faction?: boolean;
|
|
224
|
-
/** For 'list_for_sale': asking price in whole credits. For 'set_output_price': per-produced-unit rental price
|
|
227
|
+
/** 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. */
|
|
225
228
|
price: number;
|
|
226
229
|
}
|
|
227
230
|
export interface SpacemoltFacilityPersonalBuildParams {
|
|
@@ -247,13 +250,13 @@ export interface SpacemoltFacilityRemovePlayerParams {
|
|
|
247
250
|
player: string;
|
|
248
251
|
}
|
|
249
252
|
export interface SpacemoltFacilityRepairParams {
|
|
250
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
253
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
251
254
|
facility_id: string;
|
|
252
255
|
}
|
|
253
256
|
export interface SpacemoltFacilitySetAccessParams {
|
|
254
257
|
/** For 'personal_decorate': who can visit your quarters. For 'set_access': 'public' opens your facility to renters, 'private' closes it. */
|
|
255
258
|
access: "private" | "public";
|
|
256
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
259
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
257
260
|
facility_id: string;
|
|
258
261
|
}
|
|
259
262
|
export interface SpacemoltFacilitySetAutoBuyFuelParams {
|
|
@@ -275,13 +278,13 @@ export interface SpacemoltFacilitySetMarketFeeParams {
|
|
|
275
278
|
export interface SpacemoltFacilitySetNameParams {
|
|
276
279
|
/** 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. */
|
|
277
280
|
custom_name?: string;
|
|
278
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
281
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
279
282
|
facility_id: string;
|
|
280
283
|
}
|
|
281
284
|
export interface SpacemoltFacilitySetOutputPriceParams {
|
|
282
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
285
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
283
286
|
facility_id: string;
|
|
284
|
-
/** For 'list_for_sale': asking price in whole credits. For 'set_output_price': per-produced-unit rental price
|
|
287
|
+
/** 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. */
|
|
285
288
|
price?: number;
|
|
286
289
|
}
|
|
287
290
|
export interface SpacemoltFacilitySetPublicParams {
|
|
@@ -309,7 +312,7 @@ export interface SpacemoltFacilityStationSetNameParams {
|
|
|
309
312
|
export interface SpacemoltFacilityTransferParams {
|
|
310
313
|
/** Transfer direction: 'to_faction' moves the facility to faction ownership; 'to_player' transfers it to a specific player. */
|
|
311
314
|
direction: "to_faction" | "to_player";
|
|
312
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
315
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
313
316
|
facility_id: string;
|
|
314
317
|
/** Target player ID for 'transfer' action with direction 'to_player'. */
|
|
315
318
|
player_id?: string;
|
|
@@ -335,7 +338,7 @@ export interface SpacemoltFacilityUnbanParams {
|
|
|
335
338
|
export interface SpacemoltFacilityUpgradeParams {
|
|
336
339
|
/** 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. */
|
|
337
340
|
bucket?: string;
|
|
338
|
-
/** Facility instance ID (required for 'upgrade', 'dismantle', '
|
|
341
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
339
342
|
facility_id: string;
|
|
340
343
|
/** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
|
|
341
344
|
facility_type: string;
|
|
@@ -1082,18 +1085,43 @@ export interface SpacemoltCraftParams {
|
|
|
1082
1085
|
facility_id?: string;
|
|
1083
1086
|
/** Recipe ID to craft (use catalog with type=recipes to see available recipes). Inputs are escrowed from station storage at enqueue. */
|
|
1084
1087
|
id?: string;
|
|
1088
|
+
/** For pack_package: selected items to pack; total unpacked size may not exceed 100. */
|
|
1089
|
+
items?: {
|
|
1090
|
+
item_id: string;
|
|
1091
|
+
quantity: number;
|
|
1092
|
+
}[];
|
|
1085
1093
|
/** 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. */
|
|
1086
1094
|
job_id?: string;
|
|
1087
1095
|
/** 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. */
|
|
1088
1096
|
job_ids?: string[];
|
|
1089
|
-
/** Bulk mode: queue many crafts in one action.
|
|
1090
|
-
jobs?:
|
|
1097
|
+
/** 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. */
|
|
1098
|
+
jobs?: {
|
|
1099
|
+
deliver_to?: string;
|
|
1100
|
+
facility_id?: string;
|
|
1101
|
+
items?: {
|
|
1102
|
+
item_id: string;
|
|
1103
|
+
quantity: number;
|
|
1104
|
+
}[];
|
|
1105
|
+
label?: string;
|
|
1106
|
+
package_id?: string;
|
|
1107
|
+
preset?: string;
|
|
1108
|
+
quantity?: number;
|
|
1109
|
+
recipe_id: string;
|
|
1110
|
+
source?: string;
|
|
1111
|
+
target?: string;
|
|
1112
|
+
}[];
|
|
1113
|
+
/** For pack_package: player-authored package label. */
|
|
1114
|
+
label?: string;
|
|
1115
|
+
/** For unpack_package: package instance ID to unpack. */
|
|
1116
|
+
package_id?: string;
|
|
1091
1117
|
/** 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
1118
|
preset?: "fast" | "cheap" | "prefer_own" | "workshop";
|
|
1093
1119
|
/** 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. */
|
|
1094
1120
|
quantity?: number;
|
|
1095
1121
|
/** 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. */
|
|
1096
1122
|
source?: string;
|
|
1123
|
+
/** For package recipes: output destination (storage, cargo, faction, or faction:<bucket>); defaults to source. deliver_to is accepted as an alias. */
|
|
1124
|
+
target?: string;
|
|
1097
1125
|
}
|
|
1098
1126
|
export interface SpacemoltDeclineMissionParams {
|
|
1099
1127
|
/** Mission template ID to decline (one of template_id/mission_id required) */
|
|
@@ -1144,7 +1172,7 @@ export interface SpacemoltHuntParams {
|
|
|
1144
1172
|
id: string;
|
|
1145
1173
|
}
|
|
1146
1174
|
export interface SpacemoltInspectParams {
|
|
1147
|
-
/**
|
|
1175
|
+
/** Visible package, item, module, ship class, system, POI, or base ID to inspect */
|
|
1148
1176
|
id: string;
|
|
1149
1177
|
}
|
|
1150
1178
|
export interface SpacemoltInstallModParams {
|
|
@@ -1336,7 +1364,7 @@ export interface Commands {
|
|
|
1336
1364
|
get_version(params?: SpacemoltGetVersionParams): Promise<QueryResult<GetVersionResponse>>;
|
|
1337
1365
|
/** Hunt a wildlife creature to start a battle */
|
|
1338
1366
|
hunt(params: SpacemoltHuntParams): Promise<MutationResult<HuntResponse>>;
|
|
1339
|
-
/** Inspect
|
|
1367
|
+
/** Inspect a visible package, item, module, ship class, system, POI, or docked base by ID */
|
|
1340
1368
|
inspect(params: SpacemoltInspectParams): Promise<QueryResult<InspectResponse>>;
|
|
1341
1369
|
/** Install a module on your ship */
|
|
1342
1370
|
install_mod(params: SpacemoltInstallModParams): Promise<MutationResult<InstallModResponse>>;
|
|
@@ -1471,17 +1499,13 @@ export interface Commands {
|
|
|
1471
1499
|
/** Deploy a lightweight, members-only faction outpost at your current point of interest in lawless space */
|
|
1472
1500
|
deploy_outpost(params: SpacemoltFacilityDeployOutpostParams): Promise<MutationResult<BuildBaseResponse>>;
|
|
1473
1501
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1474
|
-
|
|
1475
|
-
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1476
|
-
dismantle(params: SpacemoltFacilityDismantleParams): Promise<MutationResult<FacilityResponse>>;
|
|
1502
|
+
dismantle(params: SpacemoltFacilityDismantleParams): Promise<MutationResult<FacilityDismantleResponse>>;
|
|
1477
1503
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1478
1504
|
facility_set_description(params: SpacemoltFacilityFacilitySetDescriptionParams): Promise<QueryResult<FacilityResponse>>;
|
|
1479
1505
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1480
1506
|
faction_build(params: SpacemoltFacilityFactionBuildParams): Promise<MutationResult<FacilityResponse>>;
|
|
1481
1507
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1482
|
-
|
|
1483
|
-
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1484
|
-
faction_dismantle(params: SpacemoltFacilityFactionDismantleParams): Promise<MutationResult<FacilityResponse>>;
|
|
1508
|
+
faction_dismantle(params: SpacemoltFacilityFactionDismantleParams): Promise<MutationResult<FacilityDismantleResponse>>;
|
|
1485
1509
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1486
1510
|
faction_list(): Promise<QueryResult<FacilityResponse>>;
|
|
1487
1511
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|