@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.
@@ -658,6 +658,7 @@ export type CatalogResponse = {
658
658
  item_id: string;
659
659
  quantity: number;
660
660
  }>;
661
+ package_operation?: string;
661
662
  } | {
662
663
  allows_contraband?: boolean;
663
664
  always_on: boolean;
@@ -690,6 +691,7 @@ export type CatalogResponse = {
690
691
  level: number;
691
692
  life_support_draw?: number;
692
693
  life_support_supply?: number;
694
+ logistics?: boolean;
693
695
  lore?: string;
694
696
  maintenance_inputs?: Array<{
695
697
  item_id: string;
@@ -746,6 +748,7 @@ export type CatalogResponse = {
746
748
  item_id: string;
747
749
  quantity: number;
748
750
  }>;
751
+ package_operation?: string;
749
752
  }>;
750
753
  produced_by_facilities?: Array<{
751
754
  definition_id: string;
@@ -770,6 +773,7 @@ export type CatalogResponse = {
770
773
  item_id: string;
771
774
  quantity: number;
772
775
  }>;
776
+ package_operation?: string;
773
777
  }>;
774
778
  total: number;
775
779
  total_pages: number;
@@ -1038,12 +1042,16 @@ export type CraftJobResponse = {
1038
1042
  } | {
1039
1043
  action: string;
1040
1044
  jobs: Array<{
1045
+ base_id?: string;
1046
+ base_name?: string;
1041
1047
  eta_ticks: number;
1042
1048
  external?: boolean;
1043
1049
  facility_id: string;
1044
1050
  job_id: string;
1051
+ label?: string;
1045
1052
  mode: string;
1046
1053
  orderer: string;
1054
+ package_id?: string;
1047
1055
  position: number;
1048
1056
  produces?: Array<{
1049
1057
  item_id: string;
@@ -1078,7 +1086,9 @@ export type CraftJobResponse = {
1078
1086
  external?: boolean;
1079
1087
  index: number;
1080
1088
  job_id?: string;
1089
+ label?: string;
1081
1090
  message?: string;
1091
+ package_id?: string;
1082
1092
  recipe?: string;
1083
1093
  runs?: number;
1084
1094
  success: boolean;
@@ -1106,6 +1116,7 @@ export type CraftJobResponse = {
1106
1116
  est_completion_tick: number;
1107
1117
  external?: boolean;
1108
1118
  facility_id: string;
1119
+ have_capacity?: boolean;
1109
1120
  have_credits: boolean;
1110
1121
  have_inputs: boolean;
1111
1122
  message: string;
@@ -1157,6 +1168,24 @@ export type CraftJobResponse = {
1157
1168
  succeeded: number;
1158
1169
  total: number;
1159
1170
  };
1171
+ } | {
1172
+ action: string;
1173
+ escrowed: {
1174
+ fee?: number;
1175
+ inputs?: Array<{
1176
+ item_id: string;
1177
+ name: string;
1178
+ quantity: number;
1179
+ }>;
1180
+ labor?: number;
1181
+ };
1182
+ eta_ticks: number;
1183
+ external?: boolean;
1184
+ job_id: string;
1185
+ label: string;
1186
+ message: string;
1187
+ package_id: string;
1188
+ venue: string;
1160
1189
  };
1161
1190
  export type CreateBuyOrderResponse = {
1162
1191
  action: string;
@@ -1647,6 +1676,7 @@ export type FacilityDefinition = {
1647
1676
  level: number;
1648
1677
  life_support_draw?: number;
1649
1678
  life_support_supply?: number;
1679
+ logistics?: boolean;
1650
1680
  lore?: string;
1651
1681
  maintenance_inputs?: Array<{
1652
1682
  item_id: string;
@@ -1682,6 +1712,21 @@ export type FacilityDefinition = {
1682
1712
  weapon_damage_type?: string;
1683
1713
  weapon_reach?: number;
1684
1714
  };
1715
+ export type FacilityDismantleResponse = {
1716
+ action: string;
1717
+ base_id: string;
1718
+ complete_tick: number;
1719
+ facility_id: string;
1720
+ facility_name: string;
1721
+ facility_type: string;
1722
+ hint: string;
1723
+ materials_to_package: Array<{
1724
+ item_id: string;
1725
+ quantity: number;
1726
+ }>;
1727
+ package_count: number;
1728
+ ticks_to_complete: number;
1729
+ };
1685
1730
  export type FacilityResponse = {
1686
1731
  action: string;
1687
1732
  base_id: string;
@@ -1751,13 +1796,16 @@ export type FacilityResponse = {
1751
1796
  backlog_ticks: number;
1752
1797
  items_per_hour?: number;
1753
1798
  output_per_run?: number;
1799
+ output_price_per_operation?: number;
1754
1800
  output_price_per_unit?: number;
1801
+ pack_operations_per_hour?: number;
1755
1802
  public?: boolean;
1756
1803
  queued_items: number;
1757
1804
  queued_runs: number;
1758
1805
  recipe?: string;
1759
1806
  rental_fee_per_run?: number;
1760
1807
  ticks_per_run?: number;
1808
+ unpack_operations_per_hour?: number;
1761
1809
  };
1762
1810
  recipe_id?: string;
1763
1811
  rent_paid_until_tick?: number;
@@ -1825,13 +1873,16 @@ export type FacilityResponse = {
1825
1873
  backlog_ticks: number;
1826
1874
  items_per_hour?: number;
1827
1875
  output_per_run?: number;
1876
+ output_price_per_operation?: number;
1828
1877
  output_price_per_unit?: number;
1878
+ pack_operations_per_hour?: number;
1829
1879
  public?: boolean;
1830
1880
  queued_items: number;
1831
1881
  queued_runs: number;
1832
1882
  recipe?: string;
1833
1883
  rental_fee_per_run?: number;
1834
1884
  ticks_per_run?: number;
1885
+ unpack_operations_per_hour?: number;
1835
1886
  };
1836
1887
  recipe_id?: string;
1837
1888
  rent_paid_until_tick?: number;
@@ -1895,13 +1946,16 @@ export type FacilityResponse = {
1895
1946
  backlog_ticks: number;
1896
1947
  items_per_hour?: number;
1897
1948
  output_per_run?: number;
1949
+ output_price_per_operation?: number;
1898
1950
  output_price_per_unit?: number;
1951
+ pack_operations_per_hour?: number;
1899
1952
  public?: boolean;
1900
1953
  queued_items: number;
1901
1954
  queued_runs: number;
1902
1955
  recipe?: string;
1903
1956
  rental_fee_per_run?: number;
1904
1957
  ticks_per_run?: number;
1958
+ unpack_operations_per_hour?: number;
1905
1959
  };
1906
1960
  recipe_id?: string;
1907
1961
  rent_paid_until_tick?: number;
@@ -1944,13 +1998,16 @@ export type FacilityResponse = {
1944
1998
  backlog_ticks: number;
1945
1999
  items_per_hour?: number;
1946
2000
  output_per_run?: number;
2001
+ output_price_per_operation?: number;
1947
2002
  output_price_per_unit?: number;
2003
+ pack_operations_per_hour?: number;
1948
2004
  public?: boolean;
1949
2005
  queued_items: number;
1950
2006
  queued_runs: number;
1951
2007
  recipe?: string;
1952
2008
  rental_fee_per_run?: number;
1953
2009
  ticks_per_run?: number;
2010
+ unpack_operations_per_hour?: number;
1954
2011
  };
1955
2012
  recipe_id?: string;
1956
2013
  rent_paid_until_tick?: number;
@@ -2172,18 +2229,6 @@ export type FacilityResponse = {
2172
2229
  personal_service?: string;
2173
2230
  recipe_id?: string;
2174
2231
  rent_per_cycle: number;
2175
- } | {
2176
- action: string;
2177
- base_id: string;
2178
- complete_tick: number;
2179
- crate_count: number;
2180
- crate_item_id: string;
2181
- crate_name: string;
2182
- facility_id: string;
2183
- facility_name: string;
2184
- facility_type: string;
2185
- hint: string;
2186
- ticks_to_complete: number;
2187
2232
  } | {
2188
2233
  action: string;
2189
2234
  base_id: string;
@@ -2192,10 +2237,11 @@ export type FacilityResponse = {
2192
2237
  facility_name: string;
2193
2238
  facility_type: string;
2194
2239
  hint: string;
2195
- materials_to_recover: Array<{
2240
+ materials_to_package: Array<{
2196
2241
  item_id: string;
2197
2242
  quantity: number;
2198
2243
  }>;
2244
+ package_count: number;
2199
2245
  ticks_to_complete: number;
2200
2246
  } | {
2201
2247
  action: string;
@@ -2467,16 +2513,38 @@ export type FacilityResponse = {
2467
2513
  runs: number;
2468
2514
  venue: string;
2469
2515
  venue_type: string;
2516
+ } | {
2517
+ action: string;
2518
+ escrowed: {
2519
+ fee?: number;
2520
+ inputs?: Array<{
2521
+ item_id: string;
2522
+ name: string;
2523
+ quantity: number;
2524
+ }>;
2525
+ labor?: number;
2526
+ };
2527
+ eta_ticks: number;
2528
+ external?: boolean;
2529
+ job_id: string;
2530
+ label: string;
2531
+ message: string;
2532
+ package_id: string;
2533
+ venue: string;
2470
2534
  } | {
2471
2535
  action: string;
2472
2536
  facility_id: string;
2473
2537
  jobs: Array<{
2538
+ base_id?: string;
2539
+ base_name?: string;
2474
2540
  eta_ticks: number;
2475
2541
  external?: boolean;
2476
2542
  facility_id: string;
2477
2543
  job_id: string;
2544
+ label?: string;
2478
2545
  mode: string;
2479
2546
  orderer: string;
2547
+ package_id?: string;
2480
2548
  position: number;
2481
2549
  produces?: Array<{
2482
2550
  item_id: string;
@@ -4323,12 +4391,14 @@ export type GetTradesResponse = {
4323
4391
  offer_credits?: number;
4324
4392
  offer_items: Array<{
4325
4393
  item_id: string;
4394
+ name?: string;
4326
4395
  quantity: number;
4327
4396
  }>;
4328
4397
  offerer_name?: string;
4329
4398
  request_credits?: number;
4330
4399
  request_items: Array<{
4331
4400
  item_id: string;
4401
+ name?: string;
4332
4402
  quantity: number;
4333
4403
  }>;
4334
4404
  target_name?: string;
@@ -4339,12 +4409,14 @@ export type GetTradesResponse = {
4339
4409
  offer_credits?: number;
4340
4410
  offer_items: Array<{
4341
4411
  item_id: string;
4412
+ name?: string;
4342
4413
  quantity: number;
4343
4414
  }>;
4344
4415
  offerer_name?: string;
4345
4416
  request_credits?: number;
4346
4417
  request_items: Array<{
4347
4418
  item_id: string;
4419
+ name?: string;
4348
4420
  quantity: number;
4349
4421
  }>;
4350
4422
  target_name?: string;
@@ -4748,6 +4820,7 @@ export type InspectResponse = {
4748
4820
  item_id: string;
4749
4821
  quantity: number;
4750
4822
  }>;
4823
+ package_operation?: string;
4751
4824
  } | {
4752
4825
  allows_contraband?: boolean;
4753
4826
  always_on: boolean;
@@ -4780,6 +4853,7 @@ export type InspectResponse = {
4780
4853
  level: number;
4781
4854
  life_support_draw?: number;
4782
4855
  life_support_supply?: number;
4856
+ logistics?: boolean;
4783
4857
  lore?: string;
4784
4858
  maintenance_inputs?: Array<{
4785
4859
  item_id: string;
@@ -4836,6 +4910,7 @@ export type InspectResponse = {
4836
4910
  item_id: string;
4837
4911
  quantity: number;
4838
4912
  }>;
4913
+ package_operation?: string;
4839
4914
  }>;
4840
4915
  produced_by_facilities?: Array<{
4841
4916
  definition_id: string;
@@ -4860,6 +4935,7 @@ export type InspectResponse = {
4860
4935
  item_id: string;
4861
4936
  quantity: number;
4862
4937
  }>;
4938
+ package_operation?: string;
4863
4939
  }>;
4864
4940
  total: number;
4865
4941
  total_pages: number;
@@ -4925,6 +5001,34 @@ export type InspectResponse = {
4925
5001
  };
4926
5002
  id: string;
4927
5003
  kind: string;
5004
+ package?: {
5005
+ contents: Array<{
5006
+ item_id: string;
5007
+ name: string;
5008
+ quantity: number;
5009
+ size: number;
5010
+ }>;
5011
+ created_at: string;
5012
+ creator: {
5013
+ faction?: {
5014
+ id: string;
5015
+ name?: string;
5016
+ tag?: string;
5017
+ type: string;
5018
+ };
5019
+ player_id: string;
5020
+ username?: string;
5021
+ };
5022
+ label: string;
5023
+ owner: {
5024
+ id: string;
5025
+ name?: string;
5026
+ tag?: string;
5027
+ type: string;
5028
+ };
5029
+ package_id: string;
5030
+ size: number;
5031
+ };
4928
5032
  poi?: {
4929
5033
  detail?: {
4930
5034
  active_battle?: {
@@ -7020,6 +7124,7 @@ export type Recipe = {
7020
7124
  item_id: string;
7021
7125
  quantity: number;
7022
7126
  }>;
7127
+ package_operation?: string;
7023
7128
  };
7024
7129
  export type RecycleJobResponse = {
7025
7130
  action: string;
@@ -7066,7 +7171,9 @@ export type RecycleJobResponse = {
7066
7171
  external?: boolean;
7067
7172
  index: number;
7068
7173
  job_id?: string;
7174
+ label?: string;
7069
7175
  message?: string;
7176
+ package_id?: string;
7070
7177
  recipe?: string;
7071
7178
  runs?: number;
7072
7179
  success: boolean;
@@ -7094,6 +7201,7 @@ export type RecycleJobResponse = {
7094
7201
  est_completion_tick: number;
7095
7202
  external?: boolean;
7096
7203
  facility_id: string;
7204
+ have_capacity?: boolean;
7097
7205
  have_credits: boolean;
7098
7206
  have_inputs: boolean;
7099
7207
  message: string;
@@ -8076,6 +8184,7 @@ export type StorageResponse = {
8076
8184
  size: number;
8077
8185
  }>;
8078
8186
  name: string;
8187
+ package_cap: number;
8079
8188
  }>;
8080
8189
  credits: number;
8081
8190
  faction_fuel_capacity?: number;
@@ -9947,6 +10056,13 @@ export type SpacemoltCraftData = {
9947
10056
  * Recipe ID to craft (use catalog with type=recipes to see available recipes). Inputs are escrowed from station storage at enqueue.
9948
10057
  */
9949
10058
  id?: string;
10059
+ /**
10060
+ * For pack_package: selected items to pack; total unpacked size may not exceed 100.
10061
+ */
10062
+ items?: Array<{
10063
+ item_id: string;
10064
+ quantity: number;
10065
+ }>;
9950
10066
  /**
9951
10067
  * 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.
9952
10068
  */
@@ -9956,11 +10072,31 @@ export type SpacemoltCraftData = {
9956
10072
  */
9957
10073
  job_ids?: Array<string>;
9958
10074
  /**
9959
- * 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.
10075
+ * 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.
9960
10076
  */
9961
10077
  jobs?: Array<{
9962
- [key: string]: unknown;
10078
+ deliver_to?: string;
10079
+ facility_id?: string;
10080
+ items?: Array<{
10081
+ item_id: string;
10082
+ quantity: number;
10083
+ }>;
10084
+ label?: string;
10085
+ package_id?: string;
10086
+ preset?: string;
10087
+ quantity?: number;
10088
+ recipe_id: string;
10089
+ source?: string;
10090
+ target?: string;
9963
10091
  }>;
10092
+ /**
10093
+ * For pack_package: player-authored package label.
10094
+ */
10095
+ label?: string;
10096
+ /**
10097
+ * For unpack_package: package instance ID to unpack.
10098
+ */
10099
+ package_id?: string;
9964
10100
  /**
9965
10101
  * 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.
9966
10102
  */
@@ -9973,6 +10109,10 @@ export type SpacemoltCraftData = {
9973
10109
  * 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.
9974
10110
  */
9975
10111
  source?: string;
10112
+ /**
10113
+ * For package recipes: output destination (storage, cargo, faction, or faction:<bucket>); defaults to source. deliver_to is accepted as an alias.
10114
+ */
10115
+ target?: string;
9976
10116
  };
9977
10117
  path?: never;
9978
10118
  query?: never;
@@ -10998,7 +11138,7 @@ export type SpacemoltHuntResponse = SpacemoltHuntResponses[keyof SpacemoltHuntRe
10998
11138
  export type SpacemoltInspectData = {
10999
11139
  body?: {
11000
11140
  /**
11001
- * Item, module, ship class, system, POI, or base ID to inspect
11141
+ * Visible package, item, module, ship class, system, POI, or base ID to inspect
11002
11142
  */
11003
11143
  id: string;
11004
11144
  };
@@ -13516,46 +13656,10 @@ export type SpacemoltFacilityDeployOutpostResponses = {
13516
13656
  };
13517
13657
  };
13518
13658
  export type SpacemoltFacilityDeployOutpostResponse = SpacemoltFacilityDeployOutpostResponses[keyof SpacemoltFacilityDeployOutpostResponses];
13519
- export type SpacemoltFacilityDisassembleData = {
13520
- body?: {
13521
- /**
13522
- * 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.
13523
- */
13524
- facility_id: string;
13525
- };
13526
- path?: never;
13527
- query?: never;
13528
- url: '/api/v2/spacemolt_facility/disassemble';
13529
- };
13530
- export type SpacemoltFacilityDisassembleErrors = {
13531
- /**
13532
- * Bad request — invalid params, unknown command, or game error
13533
- */
13534
- 400: unknown;
13535
- /**
13536
- * Not authenticated — missing or invalid session
13537
- */
13538
- 401: unknown;
13539
- /**
13540
- * Rate limited — mutations allow 1 per tick (10 seconds)
13541
- */
13542
- 429: unknown;
13543
- };
13544
- export type SpacemoltFacilityDisassembleResponses = {
13545
- /**
13546
- * Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FacilityResponse)
13547
- */
13548
- 200: V2Response & {
13549
- structuredContent?: V2GameState & {
13550
- details?: FacilityResponse;
13551
- };
13552
- };
13553
- };
13554
- export type SpacemoltFacilityDisassembleResponse = SpacemoltFacilityDisassembleResponses[keyof SpacemoltFacilityDisassembleResponses];
13555
13659
  export type SpacemoltFacilityDismantleData = {
13556
13660
  body?: {
13557
13661
  /**
13558
- * 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.
13662
+ * 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.
13559
13663
  */
13560
13664
  facility_id: string;
13561
13665
  };
@@ -13579,11 +13683,11 @@ export type SpacemoltFacilityDismantleErrors = {
13579
13683
  };
13580
13684
  export type SpacemoltFacilityDismantleResponses = {
13581
13685
  /**
13582
- * Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FacilityResponse)
13686
+ * Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FacilityDismantleResponse)
13583
13687
  */
13584
13688
  200: V2Response & {
13585
13689
  structuredContent?: V2GameState & {
13586
- details?: FacilityResponse;
13690
+ details?: FacilityDismantleResponse;
13587
13691
  };
13588
13692
  };
13589
13693
  };
@@ -13595,7 +13699,7 @@ export type SpacemoltFacilityFacilitySetDescriptionData = {
13595
13699
  */
13596
13700
  description?: string;
13597
13701
  /**
13598
- * 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.
13702
+ * 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.
13599
13703
  */
13600
13704
  facility_id: string;
13601
13705
  };
@@ -13666,46 +13770,10 @@ export type SpacemoltFacilityFactionBuildResponses = {
13666
13770
  };
13667
13771
  };
13668
13772
  export type SpacemoltFacilityFactionBuildResponse = SpacemoltFacilityFactionBuildResponses[keyof SpacemoltFacilityFactionBuildResponses];
13669
- export type SpacemoltFacilityFactionDisassembleData = {
13670
- body?: {
13671
- /**
13672
- * 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.
13673
- */
13674
- facility_id: string;
13675
- };
13676
- path?: never;
13677
- query?: never;
13678
- url: '/api/v2/spacemolt_facility/faction_disassemble';
13679
- };
13680
- export type SpacemoltFacilityFactionDisassembleErrors = {
13681
- /**
13682
- * Bad request — invalid params, unknown command, or game error
13683
- */
13684
- 400: unknown;
13685
- /**
13686
- * Not authenticated — missing or invalid session
13687
- */
13688
- 401: unknown;
13689
- /**
13690
- * Rate limited — mutations allow 1 per tick (10 seconds)
13691
- */
13692
- 429: unknown;
13693
- };
13694
- export type SpacemoltFacilityFactionDisassembleResponses = {
13695
- /**
13696
- * Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FacilityResponse)
13697
- */
13698
- 200: V2Response & {
13699
- structuredContent?: V2GameState & {
13700
- details?: FacilityResponse;
13701
- };
13702
- };
13703
- };
13704
- export type SpacemoltFacilityFactionDisassembleResponse = SpacemoltFacilityFactionDisassembleResponses[keyof SpacemoltFacilityFactionDisassembleResponses];
13705
13773
  export type SpacemoltFacilityFactionDismantleData = {
13706
13774
  body?: {
13707
13775
  /**
13708
- * 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.
13776
+ * 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.
13709
13777
  */
13710
13778
  facility_id: string;
13711
13779
  };
@@ -13729,11 +13797,11 @@ export type SpacemoltFacilityFactionDismantleErrors = {
13729
13797
  };
13730
13798
  export type SpacemoltFacilityFactionDismantleResponses = {
13731
13799
  /**
13732
- * Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FacilityResponse)
13800
+ * Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FacilityDismantleResponse)
13733
13801
  */
13734
13802
  200: V2Response & {
13735
13803
  structuredContent?: V2GameState & {
13736
- details?: FacilityResponse;
13804
+ details?: FacilityDismantleResponse;
13737
13805
  };
13738
13806
  };
13739
13807
  };
@@ -13807,7 +13875,7 @@ export type SpacemoltFacilityFactionUpgradeData = {
13807
13875
  */
13808
13876
  bucket?: string;
13809
13877
  /**
13810
- * 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.
13878
+ * 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.
13811
13879
  */
13812
13880
  facility_id: string;
13813
13881
  /**
@@ -13931,9 +13999,24 @@ export type SpacemoltFacilityJobAddData = {
13931
13999
  */
13932
14000
  direction?: 'forward' | 'reverse';
13933
14001
  /**
13934
- * 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.
14002
+ * 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.
13935
14003
  */
13936
14004
  facility_id: string;
14005
+ /**
14006
+ * For job_add pack_package: selected manifest items.
14007
+ */
14008
+ items?: Array<{
14009
+ item_id: string;
14010
+ quantity: number;
14011
+ }>;
14012
+ /**
14013
+ * For job_add pack_package: player label.
14014
+ */
14015
+ label?: string;
14016
+ /**
14017
+ * For job_add unpack_package: package ID.
14018
+ */
14019
+ package_id?: string;
13937
14020
  /**
13938
14021
  * For 'job_add': number of runs to queue.
13939
14022
  */
@@ -13946,6 +14029,10 @@ export type SpacemoltFacilityJobAddData = {
13946
14029
  * Input source for 'job_add': where inputs/credits are pulled from. Same values as deliver_to; defaults to deliver_to.
13947
14030
  */
13948
14031
  source?: string;
14032
+ /**
14033
+ * Package job_add output destination; defaults to source.
14034
+ */
14035
+ target?: string;
13949
14036
  };
13950
14037
  path?: never;
13951
14038
  query?: never;
@@ -14019,7 +14106,7 @@ export type SpacemoltFacilityJobCancelResponse = SpacemoltFacilityJobCancelRespo
14019
14106
  export type SpacemoltFacilityJobListData = {
14020
14107
  body?: {
14021
14108
  /**
14022
- * 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.
14109
+ * 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.
14023
14110
  */
14024
14111
  facility_id: string;
14025
14112
  };
@@ -14053,7 +14140,7 @@ export type SpacemoltFacilityJobListResponse = SpacemoltFacilityJobListResponses
14053
14140
  export type SpacemoltFacilityJobReorderData = {
14054
14141
  body?: {
14055
14142
  /**
14056
- * 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.
14143
+ * 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.
14057
14144
  */
14058
14145
  facility_id: string;
14059
14146
  /**
@@ -14128,7 +14215,7 @@ export type SpacemoltFacilityListResponse = SpacemoltFacilityListResponses[keyof
14128
14215
  export type SpacemoltFacilityListForSaleData = {
14129
14216
  body?: {
14130
14217
  /**
14131
- * 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.
14218
+ * 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.
14132
14219
  */
14133
14220
  facility_id: string;
14134
14221
  /**
@@ -14136,7 +14223,7 @@ export type SpacemoltFacilityListForSaleData = {
14136
14223
  */
14137
14224
  faction?: boolean;
14138
14225
  /**
14139
- * 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.
14226
+ * 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.
14140
14227
  */
14141
14228
  price: number;
14142
14229
  };
@@ -14385,7 +14472,7 @@ export type SpacemoltFacilityRemovePlayerResponse = SpacemoltFacilityRemovePlaye
14385
14472
  export type SpacemoltFacilityRepairData = {
14386
14473
  body?: {
14387
14474
  /**
14388
- * 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.
14475
+ * 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.
14389
14476
  */
14390
14477
  facility_id: string;
14391
14478
  };
@@ -14425,7 +14512,7 @@ export type SpacemoltFacilitySetAccessData = {
14425
14512
  */
14426
14513
  access: 'private' | 'public';
14427
14514
  /**
14428
- * 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.
14515
+ * 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.
14429
14516
  */
14430
14517
  facility_id: string;
14431
14518
  };
@@ -14609,7 +14696,7 @@ export type SpacemoltFacilitySetNameData = {
14609
14696
  */
14610
14697
  custom_name?: string;
14611
14698
  /**
14612
- * 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.
14699
+ * 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.
14613
14700
  */
14614
14701
  facility_id: string;
14615
14702
  };
@@ -14645,11 +14732,11 @@ export type SpacemoltFacilitySetNameResponse = SpacemoltFacilitySetNameResponses
14645
14732
  export type SpacemoltFacilitySetOutputPriceData = {
14646
14733
  body?: {
14647
14734
  /**
14648
- * 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.
14735
+ * 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.
14649
14736
  */
14650
14737
  facility_id: string;
14651
14738
  /**
14652
- * 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.
14739
+ * 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.
14653
14740
  */
14654
14741
  price?: number;
14655
14742
  };
@@ -14902,7 +14989,7 @@ export type SpacemoltFacilityTransferData = {
14902
14989
  */
14903
14990
  direction: 'to_faction' | 'to_player';
14904
14991
  /**
14905
- * 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.
14992
+ * 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.
14906
14993
  */
14907
14994
  facility_id: string;
14908
14995
  /**
@@ -15036,7 +15123,7 @@ export type SpacemoltFacilityUpgradeData = {
15036
15123
  */
15037
15124
  bucket?: string;
15038
15125
  /**
15039
- * 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.
15126
+ * 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.
15040
15127
  */
15041
15128
  facility_id: string;
15042
15129
  /**