@spacemolt/lib 11.5.0 → 11.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/COMMANDS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <!-- AUTO-GENERATED by scripts/generate.ts from openapi.json. DO NOT EDIT. -->
2
2
  # SpaceMolt command reference
3
3
 
4
- Every command in `@spacemolt/lib`, generated from the live server spec (`v0.532.0`). **278 commands across 18 tools.**
4
+ Every command in `@spacemolt/lib`, generated from the live server spec (`v0.537.2`). **278 commands across 18 tools.**
5
5
 
6
6
  ## How to call a command
7
7
 
@@ -50,7 +50,7 @@ Call as `account.commands.spacemolt.<action>(...)`.
50
50
  - `cloak({ enable?: boolean; quantity?: number })` · *mutation* → delta.details: `CloakResponse` — Toggle cloaking device
51
51
  - `complete_mission({ id: string })` · *mutation* → delta.details: `CompleteMissionResponse` — Complete a mission and claim rewards
52
52
  - `completed_missions()` · *query* → `CompletedMissionsResponse` — List all missions you have completed
53
- - `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: `CraftCommandResponse` — Queue a crafting job (auto-routes to your own/faction facility, or hand-crafts at the Station Workshop)
53
+ - `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; output_package_label?: string; package_id?: string; package_ids?: string[]; preset?: "fast" | "cheap" | "prefer_own" | "workshop"; quantity?: number; source?: string; target?: string })` · *mutation* → delta.details: `CraftCommandResponse` — Queue a crafting job (auto-routes to your own/faction facility, or hand-crafts at the Station Workshop)
54
54
  - `decline_mission({ id?: string; mission_id?: string })` · *query* → `DeclineMissionResponse` — Decline a mission and hear the NPC's response
55
55
  - `distress_signal({ distress_type?: "fuel" | "repair" | "combat" })` · *mutation* → delta.details: `DistressSignalResponse` — Broadcast a distress signal to nearby players for emergency rescue
56
56
  - `dock()` · *mutation* → delta.details: `DockResponse` — Dock at a base
@@ -1,5 +1,5 @@
1
1
  /** The gameserver spec version this command surface was generated from. */
2
- export declare const GENERATED_SPEC_VERSION = "v0.532.0";
2
+ export declare const GENERATED_SPEC_VERSION = "v0.537.2";
3
3
  export type ToolName = "spacemolt" | "spacemolt_auth" | "spacemolt_battle" | "spacemolt_citizenship" | "spacemolt_drone" | "spacemolt_facility" | "spacemolt_faction" | "spacemolt_faction_admin" | "spacemolt_faction_commerce" | "spacemolt_fleet" | "spacemolt_intel" | "spacemolt_market" | "spacemolt_salvage" | "spacemolt_ship" | "spacemolt_shipping" | "spacemolt_social" | "spacemolt_storage" | "spacemolt_transfer";
4
4
  export type ActionName = "abandon_mission" | "accept" | "accept_ally" | "accept_invite" | "accept_mission" | "accept_peace" | "advance" | "allow_faction" | "allow_player" | "analyze_market" | "apply" | "attack" | "ban" | "base_cost" | "board" | "browse_for_sale" | "browse_ships" | "build" | "buy" | "buy_listed_ship" | "buy_listing" | "buy_ship_license" | "cancel" | "cancel_commission" | "cancel_listing" | "cancel_mission" | "cancel_order" | "cancel_ship_buy_order" | "cancel_ship_listing" | "captains_log_add" | "captains_log_delete" | "captains_log_get" | "captains_log_list" | "chat" | "claim" | "cloak" | "commission_quote" | "commission_ship" | "commission_status" | "complete_mission" | "completed_missions" | "craft" | "create" | "create_buy_order" | "create_note" | "create_role" | "create_sell_order" | "declare_war" | "decline" | "decline_invite" | "decline_mission" | "delete_note" | "delete_role" | "delete_room" | "deliver" | "deploy" | "deploy_outpost" | "deposit" | "disband" | "disembark" | "dismantle" | "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" | "pay_debt" | "personal_build" | "personal_decorate" | "personal_visit" | "petition" | "place_ship_buy_order" | "policies" | "post" | "post_mission" | "prepay_tax" | "profile" | "promote" | "propose_ally" | "propose_peace" | "query_intel" | "query_trade_intel" | "quote" | "ranch_set_cull" | "ranch_status" | "read_note" | "recall" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "repair_module" | "retreat" | "return" | "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" | "track" | "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 {
@@ -1268,8 +1268,12 @@ export interface SpacemoltCraftParams {
1268
1268
  }[];
1269
1269
  /** For pack_package: player-authored package label. */
1270
1270
  label?: string;
1271
+ /** Bundle the outputs into one package: instead of depositing outputs loose per run, the job holds them and seals them into a single new package with this label in the destination on completion, consuming one cargo_container. Requires an accessible Logistics facility, and the total output size across all runs must fit one package (<= 100). Cancelling refunds the inputs and produces no package. */
1272
+ output_package_label?: string;
1271
1273
  /** For unpack_package: package instance ID to unpack. */
1272
1274
  package_id?: string;
1275
+ /** Source this craft's inputs from these packages (raw id or 'package:<id>' form) instead of loose storage items. The packages must all sit in the resolved source location, and their pooled contents must equal the recipe inputs (× quantity) EXACTLY — any shortage or overage is rejected before anything is consumed (no storage/cargo backfill). Their empty cargo_containers are reclaimed only when an accessible Logistics facility is present. */
1276
+ package_ids?: string[];
1273
1277
  /** Auto-routing preset: 'fast' (fewest ticks, default) picks the best facility globally, so a busy own facility may route to an idle public rental. 'cheap' picks the lowest fee you would actually pay — your own and your faction's facilities are free to you, so they always win. Use 'prefer_own' to keep the job on your own (then faction, then ally-granted) 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 one an allied faction has granted you access to (free to you, but queued at external priority), 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. */
1274
1278
  preset?: "fast" | "cheap" | "prefer_own" | "workshop";
1275
1279
  /** 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. */
@@ -4,6 +4,8 @@ export type AbandonMissionResponse = {
4
4
  title: string;
5
5
  };
6
6
  export type AcceptMissionResponse = {
7
+ auto_docked?: boolean;
8
+ auto_undocked?: boolean;
7
9
  expires_at: string;
8
10
  message: string;
9
11
  mission_id: string;
@@ -113,6 +115,8 @@ export type AnalysisStep = {
113
115
  recipe_id: string;
114
116
  };
115
117
  export type AnalyzeMarketResponse = {
118
+ auto_docked?: boolean;
119
+ auto_undocked?: boolean;
116
120
  insights: Array<MarketInsight>;
117
121
  message: string;
118
122
  skill_level: number;
@@ -481,6 +485,8 @@ export type BrowseShipsResponse = {
481
485
  listings: Array<ShipListing>;
482
486
  };
483
487
  export type BuildBaseResponse = {
488
+ auto_docked?: boolean;
489
+ auto_undocked?: boolean;
484
490
  base_id: string;
485
491
  fee_paid: number;
486
492
  hint: string;
@@ -526,6 +532,8 @@ export type BulkCancelOrderResult = {
526
532
  };
527
533
  export type BulkCancelOrdersResponse = {
528
534
  action: 'cancel_order';
535
+ auto_docked?: boolean;
536
+ auto_undocked?: boolean;
529
537
  kind: 'bulk';
530
538
  mode: 'bulk';
531
539
  results: Array<BulkCancelOrderResult>;
@@ -538,6 +546,8 @@ export type BulkCancelReturns = {
538
546
  };
539
547
  export type BulkCraftResponse = {
540
548
  action: 'craft' | 'recycle';
549
+ auto_docked?: boolean;
550
+ auto_undocked?: boolean;
541
551
  kind: 'bulk_craft';
542
552
  mode: 'bulk';
543
553
  results: Array<BulkCraftResult>;
@@ -560,6 +570,8 @@ export type BulkCraftResult = {
560
570
  };
561
571
  export type BulkCreateBuyOrdersResponse = {
562
572
  action: 'create_buy_order';
573
+ auto_docked?: boolean;
574
+ auto_undocked?: boolean;
563
575
  kind: 'bulk';
564
576
  mode: 'bulk';
565
577
  results: Array<BulkBuyOrderResult>;
@@ -567,6 +579,8 @@ export type BulkCreateBuyOrdersResponse = {
567
579
  };
568
580
  export type BulkCreateSellOrdersResponse = {
569
581
  action: 'create_sell_order';
582
+ auto_docked?: boolean;
583
+ auto_undocked?: boolean;
570
584
  kind: 'bulk';
571
585
  mode: 'bulk';
572
586
  results: Array<BulkSellOrderResult>;
@@ -594,6 +608,8 @@ export type BulkFactionBuyOrderResult = {
594
608
  };
595
609
  export type BulkFactionCreateBuyOrdersResponse = {
596
610
  action: 'faction_create_buy_order';
611
+ auto_docked?: boolean;
612
+ auto_undocked?: boolean;
597
613
  kind: 'bulk';
598
614
  mode: 'bulk';
599
615
  results: Array<BulkFactionBuyOrderResult>;
@@ -601,6 +617,8 @@ export type BulkFactionCreateBuyOrdersResponse = {
601
617
  };
602
618
  export type BulkFactionCreateSellOrdersResponse = {
603
619
  action: 'faction_create_sell_order';
620
+ auto_docked?: boolean;
621
+ auto_undocked?: boolean;
604
622
  kind: 'bulk';
605
623
  mode: 'bulk';
606
624
  results: Array<BulkFactionSellOrderResult>;
@@ -626,6 +644,8 @@ export type BulkFactionSellOrderResult = {
626
644
  };
627
645
  export type BulkJobCancelResponse = {
628
646
  action: 'job_cancel';
647
+ auto_docked?: boolean;
648
+ auto_undocked?: boolean;
629
649
  kind: 'bulk_cancel';
630
650
  message: string;
631
651
  mode: 'bulk';
@@ -645,6 +665,8 @@ export type BulkModifyOrderResult = {
645
665
  };
646
666
  export type BulkModifyOrdersResponse = {
647
667
  action: 'modify_order';
668
+ auto_docked?: boolean;
669
+ auto_undocked?: boolean;
648
670
  kind: 'bulk';
649
671
  mode: 'bulk';
650
672
  results: Array<BulkModifyOrderResult>;
@@ -689,6 +711,8 @@ export type BulkStorageItemResult = {
689
711
  };
690
712
  export type BulkStorageResponse = {
691
713
  action: 'bulk_deposit' | 'bulk_withdraw' | 'bulk_transfer';
714
+ auto_docked?: boolean;
715
+ auto_undocked?: boolean;
692
716
  bucket?: string;
693
717
  bucket_id?: string;
694
718
  dest_bucket?: string;
@@ -711,6 +735,8 @@ export type BurnLogEntry = {
711
735
  ticks_remaining: number;
712
736
  };
713
737
  export type BuyInsuranceResponse = {
738
+ auto_docked?: boolean;
739
+ auto_undocked?: boolean;
714
740
  coverage: number;
715
741
  expires_at: string;
716
742
  factors?: Array<RiskFactor>;
@@ -721,6 +747,8 @@ export type BuyInsuranceResponse = {
721
747
  risk_score?: number;
722
748
  };
723
749
  export type BuyListedShipResponse = {
750
+ auto_docked?: boolean;
751
+ auto_undocked?: boolean;
724
752
  class_id: string;
725
753
  credits_left: number;
726
754
  message: string;
@@ -730,7 +758,9 @@ export type BuyListedShipResponse = {
730
758
  };
731
759
  export type BuyResponse = {
732
760
  action: string;
761
+ auto_docked?: boolean;
733
762
  auto_listed?: AutoListedOrder;
763
+ auto_undocked?: boolean;
734
764
  delivered_to_cargo?: number;
735
765
  delivered_to_storage?: number;
736
766
  fills: Array<Fill>;
@@ -757,6 +787,8 @@ export type CancelOrderCommandResponse = ({
757
787
  } & BulkCancelOrdersResponse);
758
788
  export type CancelOrderResponse = {
759
789
  action: 'cancel_order';
790
+ auto_docked?: boolean;
791
+ auto_undocked?: boolean;
760
792
  delivered_to?: string;
761
793
  faction_order?: boolean;
762
794
  kind: 'single';
@@ -1066,6 +1098,8 @@ export type ClientSystemInfo = {
1066
1098
  security_status?: string;
1067
1099
  };
1068
1100
  export type CloakResponse = {
1101
+ auto_docked?: boolean;
1102
+ auto_undocked?: boolean;
1069
1103
  cloak_strength: number;
1070
1104
  enabled: boolean;
1071
1105
  message: string;
@@ -1161,6 +1195,8 @@ export type CommissionMaterialStatus = {
1161
1195
  needed: number;
1162
1196
  };
1163
1197
  export type CommissionQuoteResponse = {
1198
+ auto_docked?: boolean;
1199
+ auto_undocked?: boolean;
1164
1200
  blockers?: Array<string>;
1165
1201
  build_materials?: Array<CargoItem>;
1166
1202
  build_time?: number;
@@ -1181,6 +1217,8 @@ export type CommissionQuoteResponse = {
1181
1217
  yard_margin?: number;
1182
1218
  };
1183
1219
  export type CommissionShipResponse = {
1220
+ auto_docked?: boolean;
1221
+ auto_undocked?: boolean;
1184
1222
  build_time?: number;
1185
1223
  commission_id: string;
1186
1224
  credits_left: number;
@@ -1198,6 +1236,8 @@ export type CommissionStatusResponse = {
1198
1236
  count: number;
1199
1237
  };
1200
1238
  export type CompleteMissionResponse = {
1239
+ auto_docked?: boolean;
1240
+ auto_undocked?: boolean;
1201
1241
  chain_next?: string;
1202
1242
  community_contributed?: {
1203
1243
  [key: string]: number;
@@ -1246,6 +1286,8 @@ export type CraftCommandResponse = ({
1246
1286
  } & PackageJobResponse);
1247
1287
  export type CraftJobResponse = {
1248
1288
  action: 'craft' | 'recycle' | 'job_add';
1289
+ auto_docked?: boolean;
1290
+ auto_undocked?: boolean;
1249
1291
  effective_time_per_run: number;
1250
1292
  escrowed: EscrowSummary;
1251
1293
  est_completion_tick: number;
@@ -1263,6 +1305,8 @@ export type CraftJobResponse = {
1263
1305
  };
1264
1306
  export type CraftQueueResponse = {
1265
1307
  action: 'queue';
1308
+ auto_docked?: boolean;
1309
+ auto_undocked?: boolean;
1266
1310
  jobs: Array<JobView>;
1267
1311
  kind: 'queue';
1268
1312
  message?: string;
@@ -1270,6 +1314,8 @@ export type CraftQueueResponse = {
1270
1314
  };
1271
1315
  export type CraftQuoteResponse = {
1272
1316
  action: 'craft' | 'recycle';
1317
+ auto_docked?: boolean;
1318
+ auto_undocked?: boolean;
1273
1319
  cost: EscrowSummary;
1274
1320
  credits_total: number;
1275
1321
  dry_run: boolean;
@@ -1315,6 +1361,8 @@ export type CreateBuyOrderCommandResponse = ({
1315
1361
  } & BulkCreateBuyOrdersResponse);
1316
1362
  export type CreateBuyOrderResponse = {
1317
1363
  action: 'create_buy_order';
1364
+ auto_docked?: boolean;
1365
+ auto_undocked?: boolean;
1318
1366
  consolidated?: boolean;
1319
1367
  delivered_to_cargo?: number;
1320
1368
  delivered_to_storage?: number;
@@ -1356,6 +1404,8 @@ export type CreateSellOrderCommandResponse = ({
1356
1404
  } & BulkCreateSellOrdersResponse);
1357
1405
  export type CreateSellOrderResponse = {
1358
1406
  action: 'create_sell_order';
1407
+ auto_docked?: boolean;
1408
+ auto_undocked?: boolean;
1359
1409
  consolidated?: boolean;
1360
1410
  fills?: Array<Fill>;
1361
1411
  from_cargo?: number;
@@ -1390,6 +1440,8 @@ export type CreatureInfo = {
1390
1440
  species: string;
1391
1441
  };
1392
1442
  export type DeclineMissionResponse = {
1443
+ auto_docked?: boolean;
1444
+ auto_undocked?: boolean;
1393
1445
  giver?: MissionGiverInfo;
1394
1446
  message: string;
1395
1447
  template_id: string;
@@ -1402,6 +1454,8 @@ export type DeleteNoteResponse = {
1402
1454
  };
1403
1455
  export type DeployAllDronesResponse = {
1404
1456
  action: 'deploy_all_drones';
1457
+ auto_docked?: boolean;
1458
+ auto_undocked?: boolean;
1405
1459
  bandwidth_total: number;
1406
1460
  bandwidth_used: number;
1407
1461
  deployed: number;
@@ -1415,6 +1469,8 @@ export type DeployDroneCommandResponse = ({
1415
1469
  } & DeployAllDronesResponse);
1416
1470
  export type DeployDroneResponse = {
1417
1471
  action: 'deploy_drone';
1472
+ auto_docked?: boolean;
1473
+ auto_undocked?: boolean;
1418
1474
  bandwidth_total: number;
1419
1475
  bandwidth_used: number;
1420
1476
  drone_id: string;
@@ -1426,6 +1482,8 @@ export type DeployDroneResponse = {
1426
1482
  };
1427
1483
  export type DepositItemsResponse = {
1428
1484
  action: 'deposit_items';
1485
+ auto_docked?: boolean;
1486
+ auto_undocked?: boolean;
1429
1487
  cargo_remaining: number;
1430
1488
  cargo_space: number;
1431
1489
  item_id: string;
@@ -1435,6 +1493,8 @@ export type DepositItemsResponse = {
1435
1493
  };
1436
1494
  export type DistressSignalResponse = {
1437
1495
  action: string;
1496
+ auto_docked?: boolean;
1497
+ auto_undocked?: boolean;
1438
1498
  distress_type: string;
1439
1499
  expires_seconds: number;
1440
1500
  message: string;
@@ -1492,6 +1552,8 @@ export type DroneInfo = {
1492
1552
  };
1493
1553
  export type EmpireGiftResponse = {
1494
1554
  action: 'empire_gift_credits' | 'empire_gift_items' | 'empire_gift_ship';
1555
+ auto_docked?: boolean;
1556
+ auto_undocked?: boolean;
1495
1557
  base_id: string;
1496
1558
  base_name: string;
1497
1559
  cargo_remaining?: number;
@@ -1599,6 +1661,8 @@ export type EscrowedRewards = {
1599
1661
  };
1600
1662
  export type EspionageResponse = {
1601
1663
  action: string;
1664
+ auto_docked?: boolean;
1665
+ auto_undocked?: boolean;
1602
1666
  intel_type?: string;
1603
1667
  outcome: string;
1604
1668
  story: string;
@@ -1717,6 +1781,7 @@ export type FacilityDefinition = {
1717
1781
  life_support_supply?: number;
1718
1782
  logistics?: boolean;
1719
1783
  lore?: string;
1784
+ maintenance_fuel?: number;
1720
1785
  maintenance_inputs?: Array<RecipeInput>;
1721
1786
  max_cull_per_cycle?: number;
1722
1787
  max_species_tier?: number;
@@ -2173,6 +2238,8 @@ export type FactionCreateBuyOrderCommandResponse = ({
2173
2238
  } & BulkFactionCreateBuyOrdersResponse);
2174
2239
  export type FactionCreateBuyOrderResponse = {
2175
2240
  action: string;
2241
+ auto_docked?: boolean;
2242
+ auto_undocked?: boolean;
2176
2243
  bucket?: string;
2177
2244
  consolidated?: boolean;
2178
2245
  escrow_refunded?: number;
@@ -2216,6 +2283,8 @@ export type FactionCreateSellOrderCommandResponse = ({
2216
2283
  } & BulkFactionCreateSellOrdersResponse);
2217
2284
  export type FactionCreateSellOrderResponse = {
2218
2285
  action: string;
2286
+ auto_docked?: boolean;
2287
+ auto_undocked?: boolean;
2219
2288
  bucket?: string;
2220
2289
  consolidated?: boolean;
2221
2290
  faction_id: string;
@@ -2255,11 +2324,15 @@ export type FactionDeleteRoomResponse = {
2255
2324
  export type FactionDepositCreditsResponse = {
2256
2325
  action: 'faction_deposit_credits';
2257
2326
  amount: number;
2327
+ auto_docked?: boolean;
2328
+ auto_undocked?: boolean;
2258
2329
  faction_credits: number;
2259
2330
  player_credits: number;
2260
2331
  };
2261
2332
  export type FactionDepositFuelResponse = {
2262
2333
  action: 'faction_deposit_fuel';
2334
+ auto_docked?: boolean;
2335
+ auto_undocked?: boolean;
2263
2336
  fuel: number;
2264
2337
  fuel_capacity: number;
2265
2338
  ship_fuel: number;
@@ -2267,6 +2340,8 @@ export type FactionDepositFuelResponse = {
2267
2340
  };
2268
2341
  export type FactionDepositItemsResponse = {
2269
2342
  action: 'faction_deposit_items';
2343
+ auto_docked?: boolean;
2344
+ auto_undocked?: boolean;
2270
2345
  bucket?: string;
2271
2346
  bucket_id?: string;
2272
2347
  cargo_remaining: number;
@@ -2323,6 +2398,8 @@ export type FactionGarageStationEntry = {
2323
2398
  };
2324
2399
  export type FactionGarageStoreResponse = {
2325
2400
  action: 'faction_garage_store';
2401
+ auto_docked?: boolean;
2402
+ auto_undocked?: boolean;
2326
2403
  base_id: string;
2327
2404
  capacity: number;
2328
2405
  hint: string;
@@ -2340,6 +2417,8 @@ export type FactionGetInvitesResponse = {
2340
2417
  };
2341
2418
  export type FactionGiftResponse = {
2342
2419
  action: 'faction_gift';
2420
+ auto_docked?: boolean;
2421
+ auto_undocked?: boolean;
2343
2422
  credits_sent: number;
2344
2423
  faction_id: string;
2345
2424
  faction_name: string;
@@ -2470,6 +2549,8 @@ export type FactionPeaceProposal = {
2470
2549
  terms?: string;
2471
2550
  };
2472
2551
  export type FactionPostMissionResponse = {
2552
+ auto_docked?: boolean;
2553
+ auto_undocked?: boolean;
2473
2554
  escrowed: EscrowedRewards;
2474
2555
  message: string;
2475
2556
  status: string;
@@ -2667,6 +2748,8 @@ export type FactionWarInfo = {
2667
2748
  export type FactionWithdrawCreditsResponse = {
2668
2749
  action: 'faction_withdraw_credits';
2669
2750
  amount: number;
2751
+ auto_docked?: boolean;
2752
+ auto_undocked?: boolean;
2670
2753
  faction_credits: number;
2671
2754
  player_credits: number;
2672
2755
  };
@@ -2676,6 +2759,8 @@ export type FactionWithdrawInviteResponse = {
2676
2759
  };
2677
2760
  export type FactionWithdrawItemsResponse = {
2678
2761
  action: 'faction_withdraw_items';
2762
+ auto_docked?: boolean;
2763
+ auto_undocked?: boolean;
2679
2764
  bucket?: string;
2680
2765
  bucket_id?: string;
2681
2766
  cargo_space: number;
@@ -3224,6 +3309,8 @@ export type GiftNotification = {
3224
3309
  };
3225
3310
  export type GiftShipResponse = {
3226
3311
  action: 'gift_ship';
3312
+ auto_docked?: boolean;
3313
+ auto_undocked?: boolean;
3227
3314
  base_id: string;
3228
3315
  class_id: string;
3229
3316
  class_name?: string;
@@ -3237,6 +3324,8 @@ export type GuideEntry = {
3237
3324
  title: string;
3238
3325
  };
3239
3326
  export type HuntResponse = {
3327
+ auto_docked?: boolean;
3328
+ auto_undocked?: boolean;
3240
3329
  command: string;
3241
3330
  message: string;
3242
3331
  pending: boolean;
@@ -3299,6 +3388,8 @@ export type InspectResponse = {
3299
3388
  system?: MapSystemInfo;
3300
3389
  };
3301
3390
  export type InstallModResponse = {
3391
+ auto_docked?: boolean;
3392
+ auto_undocked?: boolean;
3302
3393
  cpu_used: number;
3303
3394
  current_ammo?: number;
3304
3395
  loaded_ammo?: string;
@@ -3407,6 +3498,8 @@ export type JailRecord = {
3407
3498
  };
3408
3499
  export type JettisonBulkResponse = {
3409
3500
  action: 'bulk_jettison';
3501
+ auto_docked?: boolean;
3502
+ auto_undocked?: boolean;
3410
3503
  container_id?: string;
3411
3504
  failed: number;
3412
3505
  message: string;
@@ -3429,6 +3522,8 @@ export type JettisonItemResult = {
3429
3522
  };
3430
3523
  export type JettisonResponse = {
3431
3524
  action: 'jettison';
3525
+ auto_docked?: boolean;
3526
+ auto_undocked?: boolean;
3432
3527
  container_id?: string;
3433
3528
  item_id: string;
3434
3529
  item_name: string;
@@ -3437,6 +3532,8 @@ export type JettisonResponse = {
3437
3532
  };
3438
3533
  export type JobCancelResponse = {
3439
3534
  action: 'job_cancel';
3535
+ auto_docked?: boolean;
3536
+ auto_undocked?: boolean;
3440
3537
  job_id: string;
3441
3538
  kind: 'cancel';
3442
3539
  message: string;
@@ -3517,6 +3614,8 @@ export type ListPassengersResponse = {
3517
3614
  passengers: Array<PassengerView>;
3518
3615
  };
3519
3616
  export type ListShipForSaleResponse = {
3617
+ auto_docked?: boolean;
3618
+ auto_undocked?: boolean;
3520
3619
  credits_left: number;
3521
3620
  fee: number;
3522
3621
  listing_id: string;
@@ -3543,6 +3642,8 @@ export type LoadDroneResponse = {
3543
3642
  status: string;
3544
3643
  };
3545
3644
  export type LoadPassengersResponse = {
3645
+ auto_docked?: boolean;
3646
+ auto_undocked?: boolean;
3546
3647
  count: number;
3547
3648
  loaded: Array<PassengerView>;
3548
3649
  message: string;
@@ -3576,6 +3677,8 @@ export type LoginResponse = {
3576
3677
  };
3577
3678
  export type LootWreckAllResponse = {
3578
3679
  action: 'loot_wreck_all';
3680
+ auto_docked?: boolean;
3681
+ auto_undocked?: boolean;
3579
3682
  looted: Array<LootedItem>;
3580
3683
  looted_modules?: Array<LootedModule>;
3581
3684
  message: string;
@@ -3592,6 +3695,8 @@ export type LootWreckCommandResponse = ({
3592
3695
  } & LootWreckAllResponse);
3593
3696
  export type LootWreckResponse = {
3594
3697
  action: 'loot_wreck';
3698
+ auto_docked?: boolean;
3699
+ auto_undocked?: boolean;
3595
3700
  item_id?: string;
3596
3701
  module_id?: string;
3597
3702
  module_type_id?: string;
@@ -3614,6 +3719,8 @@ export type LootedModule = {
3614
3719
  wear: number;
3615
3720
  };
3616
3721
  export type LoungeCheckInResponse = {
3722
+ auto_docked?: boolean;
3723
+ auto_undocked?: boolean;
3617
3724
  capacity: number;
3618
3725
  checked_in: Array<PassengerView>;
3619
3726
  count: number;
@@ -3799,6 +3906,8 @@ export type ModifyOrderCommandResponse = ({
3799
3906
  } & BulkModifyOrdersResponse);
3800
3907
  export type ModifyOrderResponse = {
3801
3908
  action: 'modify_order';
3909
+ auto_docked?: boolean;
3910
+ auto_undocked?: boolean;
3802
3911
  kind: 'single';
3803
3912
  listing_fee?: number;
3804
3913
  message: string;
@@ -4498,6 +4607,8 @@ export type Poi = {
4498
4607
  };
4499
4608
  export type PackageJobResponse = {
4500
4609
  action: 'pack' | 'unpack';
4610
+ auto_docked?: boolean;
4611
+ auto_undocked?: boolean;
4501
4612
  escrowed: EscrowSummary;
4502
4613
  eta_ticks: number;
4503
4614
  external?: boolean;
@@ -4581,6 +4692,8 @@ export type PathfinderJumpResponse = {
4581
4692
  origin_y?: number;
4582
4693
  };
4583
4694
  export type PendingActionResponse = {
4695
+ auto_docked?: boolean;
4696
+ auto_undocked?: boolean;
4584
4697
  command: string;
4585
4698
  message: string;
4586
4699
  pending: boolean;
@@ -4607,6 +4720,8 @@ export type PirateInfo = {
4607
4720
  tier: string;
4608
4721
  };
4609
4722
  export type PlaceShipBuyOrderResponse = {
4723
+ auto_docked?: boolean;
4724
+ auto_undocked?: boolean;
4610
4725
  class_id: string;
4611
4726
  credits_left: number;
4612
4727
  message: string;
@@ -4967,6 +5082,8 @@ export type RecycleJobResponse = ({
4967
5082
  kind: 'bulk_cancel';
4968
5083
  } & BulkJobCancelResponse);
4969
5084
  export type RefitShipResponse = {
5085
+ auto_docked?: boolean;
5086
+ auto_undocked?: boolean;
4970
5087
  cargo_returned: number;
4971
5088
  class_id: string;
4972
5089
  default_modules: number;
@@ -5049,6 +5166,8 @@ export type ReloadResponse = {
5049
5166
  weapon_name: string;
5050
5167
  };
5051
5168
  export type RepairModuleResponse = {
5169
+ auto_docked?: boolean;
5170
+ auto_undocked?: boolean;
5052
5171
  message: string;
5053
5172
  module_id: string;
5054
5173
  repair_amount: number;
@@ -5154,6 +5273,8 @@ export type ScrapShipResponse = {
5154
5273
  };
5155
5274
  export type ScrapWreckResponse = {
5156
5275
  action: string;
5276
+ auto_docked?: boolean;
5277
+ auto_undocked?: boolean;
5157
5278
  materials: Array<SalvageMaterial>;
5158
5279
  message: string;
5159
5280
  ship_class?: string;
@@ -5178,7 +5299,9 @@ export type SelfDestructResponse = {
5178
5299
  };
5179
5300
  export type SellResponse = {
5180
5301
  action: string;
5302
+ auto_docked?: boolean;
5181
5303
  auto_listed?: AutoListedOrder;
5304
+ auto_undocked?: boolean;
5182
5305
  fills: Array<Fill>;
5183
5306
  item: string;
5184
5307
  item_id: string;
@@ -5193,6 +5316,8 @@ export type SellResponse = {
5193
5316
  xp_gained?: number;
5194
5317
  };
5195
5318
  export type SellShipToOrderResponse = {
5319
+ auto_docked?: boolean;
5320
+ auto_undocked?: boolean;
5196
5321
  class_id: string;
5197
5322
  credits_left: number;
5198
5323
  message: string;
@@ -5201,6 +5326,8 @@ export type SellShipToOrderResponse = {
5201
5326
  };
5202
5327
  export type SellWreckResponse = {
5203
5328
  action: string;
5329
+ auto_docked?: boolean;
5330
+ auto_undocked?: boolean;
5204
5331
  cargo_value?: number;
5205
5332
  message: string;
5206
5333
  new_balance: number;
@@ -5211,6 +5338,8 @@ export type SellWreckResponse = {
5211
5338
  };
5212
5339
  export type SendGiftResponse = {
5213
5340
  action: 'send_gift';
5341
+ auto_docked?: boolean;
5342
+ auto_undocked?: boolean;
5214
5343
  base_id: string;
5215
5344
  cargo_remaining?: number;
5216
5345
  credits_sent?: number;
@@ -5249,6 +5378,8 @@ export type SetFacilityNameResponse = {
5249
5378
  message: string;
5250
5379
  };
5251
5380
  export type SetHomeBaseResponse = {
5381
+ auto_docked?: boolean;
5382
+ auto_undocked?: boolean;
5252
5383
  home_base: string;
5253
5384
  message: string;
5254
5385
  old_home_base?: string;
@@ -5919,6 +6050,8 @@ export type SubscribeObservationResponse = {
5919
6050
  };
5920
6051
  export type SupplyCommissionResponse = {
5921
6052
  all_sourced: boolean;
6053
+ auto_docked?: boolean;
6054
+ auto_undocked?: boolean;
5922
6055
  commission_id: string;
5923
6056
  commission_status: string;
5924
6057
  credits?: number;
@@ -5955,6 +6088,8 @@ export type SurveyedPoi = {
5955
6088
  export type SwitchShipResponse = {
5956
6089
  active_ship_class: string;
5957
6090
  active_ship_id: string;
6091
+ auto_docked?: boolean;
6092
+ auto_undocked?: boolean;
5958
6093
  cargo_note?: string;
5959
6094
  cargo_to_storage?: Array<SoldCargoItem>;
5960
6095
  claimed_from_faction_garage?: boolean;
@@ -6096,6 +6231,8 @@ export type TaxableIncomeByCategoryEntry = {
6096
6231
  };
6097
6232
  export type TowWreckResponse = {
6098
6233
  action: string;
6234
+ auto_docked?: boolean;
6235
+ auto_undocked?: boolean;
6099
6236
  cargo_count?: number;
6100
6237
  insured: boolean;
6101
6238
  message: string;
@@ -6161,6 +6298,8 @@ export type TradeOfferResponse = {
6161
6298
  export type TransferCreditsResponse = {
6162
6299
  action: 'transfer';
6163
6300
  amount: number;
6301
+ auto_docked?: boolean;
6302
+ auto_undocked?: boolean;
6164
6303
  dest_credits: number;
6165
6304
  destination: string;
6166
6305
  source: string;
@@ -6168,6 +6307,8 @@ export type TransferCreditsResponse = {
6168
6307
  };
6169
6308
  export type TransferItemsResponse = {
6170
6309
  action: 'transfer';
6310
+ auto_docked?: boolean;
6311
+ auto_undocked?: boolean;
6171
6312
  bucket?: string;
6172
6313
  bucket_id?: string;
6173
6314
  dest_bucket?: string;
@@ -6180,6 +6321,8 @@ export type TransferItemsResponse = {
6180
6321
  source_remaining: number;
6181
6322
  };
6182
6323
  export type TransferPassengersResponse = {
6324
+ auto_docked?: boolean;
6325
+ auto_undocked?: boolean;
6183
6326
  count: number;
6184
6327
  kind: 'transfer';
6185
6328
  message: string;
@@ -6252,6 +6395,8 @@ export type UndockResponse = {
6252
6395
  action: string;
6253
6396
  };
6254
6397
  export type UninstallModResponse = {
6398
+ auto_docked?: boolean;
6399
+ auto_undocked?: boolean;
6255
6400
  cpu_used: number;
6256
6401
  damaged: boolean;
6257
6402
  destroyed?: boolean;
@@ -6263,6 +6408,8 @@ export type UninstallModResponse = {
6263
6408
  wear_status?: string;
6264
6409
  };
6265
6410
  export type UnloadAllPassengersResponse = {
6411
+ auto_docked?: boolean;
6412
+ auto_undocked?: boolean;
6266
6413
  delivered: Array<PassengerView>;
6267
6414
  fare_collected: number;
6268
6415
  kind: 'all';
@@ -6287,6 +6434,8 @@ export type UnloadPassengerCommandResponse = ({
6287
6434
  kind: 'lounge_checkin';
6288
6435
  } & LoungeCheckInResponse);
6289
6436
  export type UnloadPassengerResponse = {
6437
+ auto_docked?: boolean;
6438
+ auto_undocked?: boolean;
6290
6439
  base_fare?: number;
6291
6440
  delivered: boolean;
6292
6441
  fare_collected: number;
@@ -7140,6 +7289,8 @@ export type WildlifeSurvey = {
7140
7289
  };
7141
7290
  export type WithdrawItemsResponse = {
7142
7291
  action: 'withdraw_items';
7292
+ auto_docked?: boolean;
7293
+ auto_undocked?: boolean;
7143
7294
  cargo_space: number;
7144
7295
  cargo_total: number;
7145
7296
  item_id: string;
@@ -7594,10 +7745,18 @@ export type SpacemoltCraftData = {
7594
7745
  * For pack_package: player-authored package label.
7595
7746
  */
7596
7747
  label?: string;
7748
+ /**
7749
+ * Bundle the outputs into one package: instead of depositing outputs loose per run, the job holds them and seals them into a single new package with this label in the destination on completion, consuming one cargo_container. Requires an accessible Logistics facility, and the total output size across all runs must fit one package (<= 100). Cancelling refunds the inputs and produces no package.
7750
+ */
7751
+ output_package_label?: string;
7597
7752
  /**
7598
7753
  * For unpack_package: package instance ID to unpack.
7599
7754
  */
7600
7755
  package_id?: string;
7756
+ /**
7757
+ * Source this craft's inputs from these packages (raw id or 'package:<id>' form) instead of loose storage items. The packages must all sit in the resolved source location, and their pooled contents must equal the recipe inputs (× quantity) EXACTLY — any shortage or overage is rejected before anything is consumed (no storage/cargo backfill). Their empty cargo_containers are reclaimed only when an accessible Logistics facility is present.
7758
+ */
7759
+ package_ids?: Array<string>;
7601
7760
  /**
7602
7761
  * Auto-routing preset: 'fast' (fewest ticks, default) picks the best facility globally, so a busy own facility may route to an idle public rental. 'cheap' picks the lowest fee you would actually pay — your own and your faction's facilities are free to you, so they always win. Use 'prefer_own' to keep the job on your own (then faction, then ally-granted) 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 one an allied faction has granted you access to (free to you, but queued at external priority), 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.
7603
7762
  */
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ var STATE_SECTIONS = [
44
44
  "skills"
45
45
  ];
46
46
  // src/generated/actions.gen.ts
47
- var GENERATED_SPEC_VERSION = "v0.532.0";
47
+ var GENERATED_SPEC_VERSION = "v0.537.2";
48
48
  var ACTIONS = {
49
49
  "spacemolt_auth/claim": {
50
50
  tool: "spacemolt_auth",
@@ -2428,7 +2428,9 @@ var ACTIONS = {
2428
2428
  { name: "job_ids", type: "string[]", required: false, description: "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." },
2429
2429
  { name: "jobs", type: "{ 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 }[]", required: false, description: "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." },
2430
2430
  { name: "label", type: "string", required: false, description: "For pack_package: player-authored package label." },
2431
+ { name: "output_package_label", type: "string", required: false, description: "Bundle the outputs into one package: instead of depositing outputs loose per run, the job holds them and seals them into a single new package with this label in the destination on completion, consuming one cargo_container. Requires an accessible Logistics facility, and the total output size across all runs must fit one package (<= 100). Cancelling refunds the inputs and produces no package." },
2431
2432
  { name: "package_id", type: "string", required: false, description: "For unpack_package: package instance ID to unpack." },
2433
+ { name: "package_ids", type: "string[]", required: false, description: "Source this craft's inputs from these packages (raw id or 'package:<id>' form) instead of loose storage items. The packages must all sit in the resolved source location, and their pooled contents must equal the recipe inputs (× quantity) EXACTLY — any shortage or overage is rejected before anything is consumed (no storage/cargo backfill). Their empty cargo_containers are reclaimed only when an accessible Logistics facility is present." },
2432
2434
  { name: "preset", type: '"fast" | "cheap" | "prefer_own" | "workshop"', required: false, description: "Auto-routing preset: 'fast' (fewest ticks, default) picks the best facility globally, so a busy own facility may route to an idle public rental. 'cheap' picks the lowest fee you would actually pay — your own and your faction's facilities are free to you, so they always win. Use 'prefer_own' to keep the job on your own (then faction, then ally-granted) 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 one an allied faction has granted you access to (free to you, but queued at external priority), 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.", enumValues: ["fast", "cheap", "prefer_own", "workshop"] },
2433
2435
  { name: "quantity", type: "number", required: false, description: "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.", positional: 1 },
2434
2436
  { name: "source", type: "string", required: false, description: "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." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacemolt/lib",
3
- "version": "11.5.0",
3
+ "version": "11.6.0",
4
4
  "description": "The definitive TypeScript library for SpaceMolt. WebSocket-v2-first, multi-account, with local state caches. Internals are regenerated from the server's OpenAPI spec.",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",