@spacemolt/lib 18.2.0 → 18.4.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.
@@ -908,6 +908,10 @@ export type AutoPilotLogEntry = {
908
908
  * A station or outpost where players can dock, trade, and access services.
909
909
  */
910
910
  export type Base = {
911
+ /**
912
+ * Whether allied factions' pilots may build facilities rent-free at this player station
913
+ */
914
+ allow_ally_facilities?: boolean;
911
915
  /**
912
916
  * Whether non-owning-faction pilots may build facilities at this player station
913
917
  */
@@ -1000,7 +1004,7 @@ export type Base = {
1000
1004
  };
1001
1005
  id: string;
1002
1006
  /**
1003
- * Owner-set market listing fee in basis points (player station); 0 = default
1007
+ * Owner-set market fee outside buyers pay on top of the price, in basis points (player station); 0 = default (1%)
1004
1008
  */
1005
1009
  market_fee_bps?: number;
1006
1010
  /**
@@ -1141,7 +1145,7 @@ export type BattleCombatState = {
1141
1145
  webbed: boolean;
1142
1146
  };
1143
1147
  export type BattleCommandResponse = ({
1144
- action: 'advance' | 'engage' | 'retreat' | 'self_destruct' | 'stance' | 'target';
1148
+ action: 'advance' | 'default_stance' | 'engage' | 'retreat' | 'self_destruct' | 'stance' | 'target';
1145
1149
  } & BattleResponse) | ({
1146
1150
  action: 'help';
1147
1151
  } & CommandHelpResponse);
@@ -1285,7 +1289,7 @@ export type BattleResponse = {
1285
1289
  /**
1286
1290
  * The battle action the request asked for. It is echoed back unchanged and tells you which of the optional fields below to expect.
1287
1291
  */
1288
- action: 'advance' | 'retreat' | 'stance' | 'target' | 'engage' | 'self_destruct';
1292
+ action: 'advance' | 'retreat' | 'stance' | 'target' | 'engage' | 'self_destruct' | 'default_stance';
1289
1293
  /**
1290
1294
  * Battle the command applied to. Omitted when the command did not resolve against a specific battle.
1291
1295
  */
@@ -1306,9 +1310,9 @@ export type BattleResponse = {
1306
1310
  */
1307
1311
  self_destruct_countdown?: number;
1308
1312
  /**
1309
- * Combat stance requested by action=stance. Ordinary stance changes apply on the next battle tick. A queued board request becomes exclusive and suppresses your weapons only if it wins any same-tick hull conflict; deterministic boarding initiative selects one physical link and the battle log records rejected contenders. Switching away from an active board stance begins a multi-tick withdrawal that costs marines — the requested replacement stance applies once disengagement finishes.
1313
+ * Combat stance requested by action=stance, or the default stance set by action=default_stance (auto included). Ordinary stance changes apply on the next battle tick. A queued board request becomes exclusive and suppresses your weapons only if it wins any same-tick hull conflict; deterministic boarding initiative selects one physical link and the battle log records rejected contenders. Switching away from an active board stance begins a multi-tick withdrawal that costs marines — the requested replacement stance applies once disengagement finishes.
1310
1314
  */
1311
- stance?: 'fire' | 'evade' | 'brace' | 'flee' | 'board';
1315
+ stance?: 'fire' | 'evade' | 'brace' | 'flee' | 'board' | 'auto';
1312
1316
  /**
1313
1317
  * Combatant this command aimed at — the ship being boarded on a board stance, or your new focus-fire target on action=target. Present on those actions only.
1314
1318
  */
@@ -2193,7 +2197,7 @@ export type CatalogDump = {
2193
2197
  };
2194
2198
  export type CatalogRecipe = {
2195
2199
  /**
2196
- * Grouping label used by the catalog type=recipes category filter. Two values are load-bearing rather than cosmetic: 'Facility Only' and 'Ship Passive' each make the recipe impossible to hand-craft. Prefer hand_craftable, which folds both of those strings together, over comparing this field yourself.
2200
+ * Grouping label for the kind of work the recipe is, used by the catalog type=recipes category filter. One value is load-bearing rather than cosmetic: 'Ship Passive' marks a recipe that runs itself aboard a ship built for it and can never be queued. A recipe can be hand-crafted at the Station Workshop when facility_only is false and the category is not 'Ship Passive'.
2197
2201
  */
2198
2202
  category: string;
2199
2203
  /**
@@ -2205,17 +2209,13 @@ export type CatalogRecipe = {
2205
2209
  */
2206
2210
  description: string;
2207
2211
  /**
2208
- * True when the recipe runs only inside a production facility and can never be hand-crafted at the Station Workshop. It is one of the two inputs to hand_craftable; category is the other. Do not test it alone — a 'Facility Only' or 'Ship Passive' category recipe is equally un-hand-craftable with this field absent.
2212
+ * True when the recipe runs only inside a production facility and can never be hand-crafted at the Station Workshop. A 'Ship Passive' category recipe cannot be hand-crafted either, with this field absent.
2209
2213
  */
2210
2214
  facility_only?: boolean;
2211
2215
  /**
2212
2216
  * Units of fuel added straight to the processing ship's tank (not to cargo) per run, when this recipe runs as a Ship Passive recipe aboard a fuel-synthesis module. Absent or zero on every recipe that delivers cargo instead.
2213
2217
  */
2214
2218
  fuel_output?: number;
2215
- /**
2216
- * Whether a docked pilot can run this recipe by hand at their Station Workshop, with no facility of any kind. Derived exactly as: facility_only is false AND category is not 'Facility Only' AND category is not 'Ship Passive'. Always present. False means the recipe needs a venue — a 'Ship Passive' recipe runs itself aboard a ship built for it and can never be queued at all, while any other false value must be queued at one of produced_by_facility_ids. True is a venue answer only: inputs, credits and workshop queue space are still checked when you actually craft.
2217
- */
2218
- hand_craftable: boolean;
2219
2219
  /**
2220
2220
  * True when the recipe is withheld from the catalog and cannot be crafted. Catalog surfaces omit hidden recipes entirely, so this is absent (false) on every recipe you can actually see.
2221
2221
  */
@@ -2245,7 +2245,7 @@ export type CatalogRecipe = {
2245
2245
  */
2246
2246
  package_operation?: string;
2247
2247
  /**
2248
- * Ids of the facility definitions that can run this recipe forward, each matching an entry in this dump's facilities list. Sorted by facility level then name. Always present, never omitted: an empty list means no facility definition runs it, which for a hand_craftable recipe is normal (the Station Workshop is then the only venue) and for a recipe with hand_craftable false means it has no player-reachable venue at all. Owning or renting one of these facilities is what craft auto-routes to.
2248
+ * Ids of the facility definitions that can run this recipe forward, each matching an entry in the catalog's facilities list. Sorted by facility level then name. Always present, never omitted. An empty list means no facility definition runs it: the Station Workshop is then the only venue, unless the recipe is facility_only (no player-reachable venue) or in the 'Ship Passive' category (it runs itself aboard a ship built for it). Owning or renting one of these facilities is what craft auto-routes to.
2249
2249
  */
2250
2250
  produced_by_facility_ids: Array<string>;
2251
2251
  /**
@@ -2257,9 +2257,9 @@ export type CatalogResponse = {
2257
2257
  analysis?: RecipeAnalysis;
2258
2258
  estimated_material_cost?: number;
2259
2259
  /**
2260
- * Catalog entries. Shape depends on the requested type: ships → ShipClass or MobileBaseShipClass, skills → Skill, recipes → Recipe, items → Item or Module, facilities → FacilityDefinition.
2260
+ * Catalog entries. Shape depends on the requested type: ships → ShipClass or MobileBaseShipClass, skills → Skill, recipes → CatalogRecipe, items → Item or Module, facilities → FacilityDefinition.
2261
2261
  */
2262
- items: Array<Item | Module | ShipClass | Skill | Recipe | FacilityDefinition | MobileBaseShipClass>;
2262
+ items: Array<Item | Module | ShipClass | Skill | CatalogRecipe | FacilityDefinition | MobileBaseShipClass>;
2263
2263
  message: string;
2264
2264
  page: number;
2265
2265
  page_size: number;
@@ -3656,13 +3656,13 @@ export type FacilityDefSummary = {
3656
3656
  [key: string]: number;
3657
3657
  };
3658
3658
  /**
3659
- * Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume and is drawn in full each cycle.
3659
+ * Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume.
3660
3660
  */
3661
3661
  maintenance_per_cycle?: Array<ItemQuantity>;
3662
3662
  name: string;
3663
3663
  recipe_id?: string;
3664
3664
  /**
3665
- * Rent quote in credits per facility cycle (100 ticks) for the requesting player at this station. 0 at their own faction's player station or outpost, where members pay no rent; an outsider there is quoted the tenant rent paid to the owning faction.
3665
+ * Rent quote in credits per facility cycle (100 ticks) for the requesting player at this station. 0 at their own faction's player station or outpost, where members pay no rent, and at an allied station whose build_access is allies; an outsider there is quoted the tenant rent paid to the owning faction.
3666
3666
  */
3667
3667
  rent_per_cycle: number;
3668
3668
  type_id: string;
@@ -3768,7 +3768,7 @@ export type FacilityEntry = {
3768
3768
  */
3769
3769
  bonus_type?: string;
3770
3770
  /**
3771
- * Size of bonus_type: workshop_speed is a percent added to Station Workshop crafting speed, drone_bandwidth is extra drone bandwidth units and market_fee_discount is a percent taken off market listing fees. Only one facility per bonus type counts per station. Omitted when bonus_type is omitted.
3771
+ * Size of bonus_type: workshop_speed is a percent added to Station Workshop crafting speed, drone_bandwidth is extra drone bandwidth units and market_fee_discount is a percent taken off ship and facility listing fees. Only one facility per bonus type counts per station. Omitted when bonus_type is omitted.
3772
3772
  */
3773
3773
  bonus_value?: number;
3774
3774
  /**
@@ -3858,7 +3858,7 @@ export type FacilityEntry = {
3858
3858
  */
3859
3859
  maintenance_level?: number;
3860
3860
  /**
3861
- * Listed upkeep of this facility. Present only for fleet depots, dining/leisure venues (tourism_upkeep) and markets that use trade_authenticator (such as trade_concourse); omitted otherwise. A dining/leisure venue must hold this stock to count as fully supplied: it scales with recent paying footfall, never drops below 15 percent of its declared menu (at least one of each item), and the venue burns its paying guests' share of it (nothing in a cycle no guest paid for). Any other facility needs on hand only what it draws each facility cycle (100 ticks): see maintenance_average_burn_per_cycle. A market's trade_authenticator quantity includes a charge that grows with this station's recent market trade volume and is drawn in full each cycle.
3861
+ * Listed upkeep of this facility. Present only for fleet depots, dining/leisure venues (tourism_upkeep) and markets that use trade_authenticator (such as trade_concourse); omitted otherwise. A dining/leisure venue must hold this stock to count as fully supplied: it scales with recent paying footfall, never drops below 15 percent of its declared menu (at least one of each item), and the venue burns its paying guests' share of it (nothing in a cycle no guest paid for). Any other facility needs on hand only what it draws each facility cycle (100 ticks): see maintenance_average_burn_per_cycle. A market's trade_authenticator quantity includes a charge that grows with this station's recent market trade volume.
3862
3862
  */
3863
3863
  maintenance_per_cycle?: Array<ItemQuantity>;
3864
3864
  /**
@@ -4096,6 +4096,10 @@ export type FacilityListResponse = {
4096
4096
  * Facilities the station itself owns at this base: its services, infrastructure, defenses and generic production on-ramps. They bill you no rent; rent fields are omitted on them. Empty when the station owns none.
4097
4097
  */
4098
4098
  station_facilities: Array<FacilityEntry>;
4099
+ /**
4100
+ * Every facility at your faction's player station or outpost owned by a player or faction outside your faction, with its owner and the rent it pays your faction. Present only to members of the owning faction with the ManageBases permission; omitted for everyone else and when there are none.
4101
+ */
4102
+ tenant_facilities?: Array<TenantFacilityEntry>;
4099
4103
  };
4100
4104
  export type FacilityListingEntry = {
4101
4105
  build_cost?: number;
@@ -4305,7 +4309,7 @@ export type FacilityTypeDetailResponse = {
4305
4309
  [key: string]: number;
4306
4310
  };
4307
4311
  /**
4308
- * Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume and is drawn in full each cycle.
4312
+ * Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume.
4309
4313
  */
4310
4314
  maintenance_per_cycle?: Array<ItemQuantity>;
4311
4315
  name: string;
@@ -4313,7 +4317,7 @@ export type FacilityTypeDetailResponse = {
4313
4317
  recipe?: FacilityRecipeInfo;
4314
4318
  recipe_id?: string;
4315
4319
  /**
4316
- * Rent quote in credits per facility cycle (100 ticks) for the requesting player at their docked station. 0 at their own faction's player station or outpost, where members pay no rent; an outsider there is quoted the tenant rent paid to the owning faction.
4320
+ * Rent quote in credits per facility cycle (100 ticks) for the requesting player at their docked station. 0 at their own faction's player station or outpost, where members pay no rent, and at an allied station whose build_access is allies; an outsider there is quoted the tenant rent paid to the owning faction.
4317
4321
  */
4318
4322
  rent_per_cycle: number;
4319
4323
  requires_service_name?: string;
@@ -5479,6 +5483,9 @@ export type FieldWorkshopView = {
5479
5483
  state: 'idle' | 'running' | 'paused';
5480
5484
  };
5481
5485
  export type Fill = {
5486
+ /**
5487
+ * Who took the other side of the fill: the trader's username, the station's name for a station-run order, or Station Market for a legacy market order.
5488
+ */
5482
5489
  counterparty?: string;
5483
5490
  price_each: number;
5484
5491
  quantity: number;
@@ -6768,9 +6775,9 @@ export type InspectResponse = {
6768
6775
  analysis?: RecipeAnalysis;
6769
6776
  estimated_material_cost?: number;
6770
6777
  /**
6771
- * Catalog entries. Shape depends on the requested type: ships → ShipClass or MobileBaseShipClass, skills → Skill, recipes → Recipe, items → Item or Module, facilities → FacilityDefinition.
6778
+ * Catalog entries. Shape depends on the requested type: ships → ShipClass or MobileBaseShipClass, skills → Skill, recipes → CatalogRecipe, items → Item or Module, facilities → FacilityDefinition.
6772
6779
  */
6773
- items: Array<Item | Module | ShipClass | Skill | Recipe | FacilityDefinition | MobileBaseShipClass>;
6780
+ items: Array<Item | Module | ShipClass | Skill | CatalogRecipe | FacilityDefinition | MobileBaseShipClass>;
6774
6781
  message: string;
6775
6782
  page: number;
6776
6783
  page_size: number;
@@ -7473,6 +7480,10 @@ export type MapData = {
7473
7480
  empires: {
7474
7481
  [key: string]: string;
7475
7482
  };
7483
+ /**
7484
+ * Player-built jump gates whose two ends are both on this map. Empty when there are none.
7485
+ */
7486
+ gates: Array<MapGate>;
7476
7487
  /**
7477
7488
  * Every system in the galaxy, with static position and connection data.
7478
7489
  */
@@ -7483,6 +7494,10 @@ export type MapDataSystem = {
7483
7494
  connections: Array<string>;
7484
7495
  empire?: string;
7485
7496
  empire_color?: string;
7497
+ /**
7498
+ * Frontier tier of the system. Omitted for known space.
7499
+ */
7500
+ frontier_tier?: number;
7486
7501
  has_battle?: boolean;
7487
7502
  id: string;
7488
7503
  is_home?: boolean;
@@ -7492,6 +7507,30 @@ export type MapDataSystem = {
7492
7507
  x: number;
7493
7508
  y: number;
7494
7509
  };
7510
+ export type MapGate = {
7511
+ /**
7512
+ * System at one end of the gate.
7513
+ */
7514
+ from_system: string;
7515
+ /**
7516
+ * True when the gate is open for jumps. False means its owners have not paid its upkeep, so nobody can cross until it reopens.
7517
+ */
7518
+ online: boolean;
7519
+ /**
7520
+ * System at the other end of the gate.
7521
+ */
7522
+ to_system: string;
7523
+ };
7524
+ export type MapGateLink = {
7525
+ /**
7526
+ * True when the gate is open for jumps. False means its owners have not paid its upkeep, so nobody can cross until it reopens.
7527
+ */
7528
+ online: boolean;
7529
+ /**
7530
+ * System at the far end of the gate.
7531
+ */
7532
+ system_id: string;
7533
+ };
7495
7534
  /**
7496
7535
  * A system entry from the player's discovered map.
7497
7536
  */
@@ -7506,6 +7545,10 @@ export type MapSystem = {
7506
7545
  * Frontier tier of the system. Omitted for known space.
7507
7546
  */
7508
7547
  frontier_tier?: number;
7548
+ /**
7549
+ * Player-built jump gates from this system. An online gate is also listed in connections. Omitted when there are none.
7550
+ */
7551
+ gate_connections?: Array<MapGateLink>;
7509
7552
  is_stronghold?: boolean;
7510
7553
  name: string;
7511
7554
  poi_count?: number;
@@ -7525,6 +7568,10 @@ export type MapSystemInfo = {
7525
7568
  * Frontier tier of the system. Omitted for known space.
7526
7569
  */
7527
7570
  frontier_tier?: number;
7571
+ /**
7572
+ * Player-built jump gates from this system. An online gate is also listed in connections. Omitted when there are none.
7573
+ */
7574
+ gate_connections?: Array<MapGateLink>;
7528
7575
  is_stronghold?: boolean;
7529
7576
  name: string;
7530
7577
  poi_count: number;
@@ -8739,6 +8786,10 @@ export type NotificationExchangeFill = {
8739
8786
  * Station whose exchange the fill happened on.
8740
8787
  */
8741
8788
  base_id: string;
8789
+ /**
8790
+ * Who took the other side of the fill: the trader's username, the station's name for a station-run order, or Station Market for a legacy market order.
8791
+ */
8792
+ counterparty?: string;
8742
8793
  /**
8743
8794
  * Item traded.
8744
8795
  */
@@ -9127,7 +9178,7 @@ export type NotificationObservationUpdate = {
9127
9178
  unknown_signature: boolean;
9128
9179
  };
9129
9180
  /**
9130
- * Fleet movement ok notifications identify their event in action. Other ok payloads may omit action. Fleet followers receive fleet_dock (base name and base_id), fleet_undock, fleet_travel (destination POI ID, destination_name and arrival_tick), or fleet_jump (destination system ID, destination_name and arrival_tick) without request_id. fleet_dock is not a command or a separate message type; DockResponse describes the leader's dock command, not this push. Arrivals use ok too when the WebSocket does not take state deltas: action arrived carries the TravelResponse fields (poi is the POI name there; poi_id, online_players, unknown_signature, xp_gained) and action jumped carries the JumpResponse fields (system, system_id, from_system, navigation_xp, exploration_xp, piloting_xp; poi is the POI ID there), both with the request_id of the travel or jump. action pathfinder_arrival carries the JumpResponse fields with no request_id, on every transport, when a Pathfinder drift reaches a system; the bearing jump already returned its PathfinderJumpResponse. Other actions and command-specific fields may occur. Inspect action and tolerate unknown actions. Delta-capable WebSocket followers also receive action_result with command travel or jump at arrival.
9181
+ * Fleet movement ok notifications identify their event in action. Other ok payloads may omit action. Fleet followers receive fleet_dock (base name and base_id), fleet_undock, fleet_travel (destination POI ID, destination_name and arrival_tick), or fleet_jump (destination system ID, destination_name and arrival_tick; a Pathfinder fleet_jump carries bearing instead of arrival_tick), and fleet_pathfinder_redirect (bearing) when the leader re-plots a Pathfinder drift, without request_id. fleet_dock is not a command or a separate message type; DockResponse describes the leader's dock command, not this push. Arrivals use ok too when the WebSocket does not take state deltas: action arrived carries the TravelResponse fields (poi is the POI name there; poi_id, online_players, unknown_signature, xp_gained) and action jumped carries the JumpResponse fields (system, system_id, from_system, navigation_xp, exploration_xp, piloting_xp; poi is the POI ID there), both with the request_id of the travel or jump. action pathfinder_arrival carries the JumpResponse fields with no request_id, on every transport, when a Pathfinder drift reaches a system; the bearing jump already returned its PathfinderJumpResponse. Other actions and command-specific fields may occur. Inspect action and tolerate unknown actions. Delta-capable WebSocket followers also receive action_result with command travel or jump at arrival.
9131
9182
  */
9132
9183
  export type NotificationOk = {
9133
9184
  /**
@@ -9135,7 +9186,7 @@ export type NotificationOk = {
9135
9186
  */
9136
9187
  action?: string;
9137
9188
  /**
9138
- * Scheduled arrival game tick for fleet_travel or fleet_jump; omitted for fleet_dock and fleet_undock.
9189
+ * Scheduled arrival game tick for fleet_travel or fleet_jump; omitted for fleet_dock, fleet_undock and a Pathfinder fleet_jump.
9139
9190
  */
9140
9191
  arrival_tick?: number;
9141
9192
  /**
@@ -9150,6 +9201,10 @@ export type NotificationOk = {
9150
9201
  * Station Base ID, always present for fleet_dock; distinct from its POI ID. Omitted for fleet_undock, fleet_travel and fleet_jump.
9151
9202
  */
9152
9203
  base_id?: string;
9204
+ /**
9205
+ * Compass bearing in degrees the fleet drifts on; only present on a Pathfinder fleet_jump and on fleet_pathfinder_redirect.
9206
+ */
9207
+ bearing?: number;
9153
9208
  /**
9154
9209
  * Destination POI ID for fleet_travel or system ID for fleet_jump; omitted for fleet_dock and fleet_undock.
9155
9210
  */
@@ -11101,7 +11156,7 @@ export type RecallDroneResponse = {
11101
11156
  };
11102
11157
  export type Recipe = {
11103
11158
  /**
11104
- * Grouping label used by the catalog type=recipes category filter. Two values are load-bearing rather than cosmetic: 'Facility Only' and 'Ship Passive' each make the recipe impossible to hand-craft. Prefer hand_craftable, which folds both of those strings together, over comparing this field yourself.
11159
+ * Grouping label for the kind of work the recipe is, used by the catalog type=recipes category filter. One value is load-bearing rather than cosmetic: 'Ship Passive' marks a recipe that runs itself aboard a ship built for it and can never be queued. A recipe can be hand-crafted at the Station Workshop when facility_only is false and the category is not 'Ship Passive'.
11105
11160
  */
11106
11161
  category: string;
11107
11162
  /**
@@ -11113,7 +11168,7 @@ export type Recipe = {
11113
11168
  */
11114
11169
  description: string;
11115
11170
  /**
11116
- * True when the recipe runs only inside a production facility and can never be hand-crafted at the Station Workshop. It is one of the two inputs to hand_craftable; category is the other. Do not test it alone — a 'Facility Only' or 'Ship Passive' category recipe is equally un-hand-craftable with this field absent.
11171
+ * True when the recipe runs only inside a production facility and can never be hand-crafted at the Station Workshop. A 'Ship Passive' category recipe cannot be hand-crafted either, with this field absent.
11117
11172
  */
11118
11173
  facility_only?: boolean;
11119
11174
  /**
@@ -11451,6 +11506,10 @@ export type RouteStep = {
11451
11506
  * POI ID of the wormhole entrance, in the previous step's system, that leads to this step. Present only when via_wormhole is true.
11452
11507
  */
11453
11508
  entrance_poi?: string;
11509
+ /**
11510
+ * Credits the gate charges you for this hop. Omitted when the hop is free.
11511
+ */
11512
+ gate_toll?: number;
11454
11513
  /**
11455
11514
  * Jumps from your current system to this step: 0 for the first step, then 1, 2 and so on. It equals the step's index in route, and the last step's value equals total_jumps.
11456
11515
  */
@@ -11463,6 +11522,10 @@ export type RouteStep = {
11463
11522
  * System ID of this step. The first step is your current system and the last is target_system.
11464
11523
  */
11465
11524
  system_id: string;
11525
+ /**
11526
+ * True when the hop into this step crosses a player-built jump gate. Take it with a normal jump to system_id. Omitted for lanes and wormholes.
11527
+ */
11528
+ via_gate?: boolean;
11466
11529
  /**
11467
11530
  * True when the hop into this step uses a known wormhole shortcut from the previous step's system instead of a normal connection. Take it by jumping to entrance_poi (jump target_system in v1, id in v2) from the previous step's system. Omitted means a normal jump to system_id.
11468
11531
  */
@@ -11886,6 +11949,10 @@ export type Ship = {
11886
11949
  */
11887
11950
  custom_name?: string;
11888
11951
  damage_penalty?: number;
11952
+ /**
11953
+ * Stance this ship opens at when a fight it did not choose pulls it in (set with battle action=default_stance); omitted means auto: fire with a weapon or remote repairer, else flee
11954
+ */
11955
+ default_stance?: 'fire' | 'evade' | 'brace' | 'flee';
11889
11956
  defense_slots?: number;
11890
11957
  disruption_ticks_remaining?: number;
11891
11958
  docked_at_base?: string;
@@ -12229,6 +12296,10 @@ export type ShipmentActor = {
12229
12296
  * Actor type. player and faction can ship, receive and carry freight. station can ship and receive freight but never carry it.
12230
12297
  */
12231
12298
  kind: 'player' | 'faction' | 'station';
12299
+ /**
12300
+ * Display name for the actor: the player's username, the faction's name or the station's name. Omitted when the actor no longer exists.
12301
+ */
12302
+ name?: string;
12232
12303
  };
12233
12304
  export type ShipmentContract = {
12234
12305
  /**
@@ -12600,15 +12671,15 @@ export type ShippingDebtPaymentResponse = {
12600
12671
  };
12601
12672
  export type ShippingListResponse = {
12602
12673
  /**
12603
- * Always list.
12674
+ * The action called: list (your docked station's board) or list_all (every station).
12604
12675
  */
12605
- action: 'list';
12676
+ action: 'list' | 'list_all';
12606
12677
  /**
12607
12678
  * Human-readable form of empty_reason_code. For no_eligible_shipments it names the first blocker found. Absent when total is above 0.
12608
12679
  */
12609
12680
  empty_reason?: string;
12610
12681
  /**
12611
- * Why total is 0: no_shipments (nothing you can see is posted here), no_matching_shipments (your filters excluded everything) or no_eligible_shipments (you cannot accept any of it now, for example unpaid freight debt or low carrier tier). Absent when total is above 0, including a page past the end.
12682
+ * Why total is 0: no_shipments (nothing you can see is posted here, or anywhere for list_all), no_matching_shipments (your filters excluded everything) or no_eligible_shipments (you cannot accept any of it now, for example unpaid freight debt or low carrier tier). Absent when total is above 0, including a page past the end.
12612
12683
  */
12613
12684
  empty_reason_code?: string;
12614
12685
  /**
@@ -12620,23 +12691,31 @@ export type ShippingListResponse = {
12620
12691
  */
12621
12692
  per_page: number;
12622
12693
  /**
12623
- * One page of the freight board at your docked station: posted contracts the selected carrier can see, that pass the filters and that it can accept. Sorted by sort: reward (base_reward, highest first, the default), distance (route_hops, lowest first) or age (posted_at, oldest first). Empty, never null, when nothing matches or the page is past the end.
12694
+ * One page of the freight board: posted contracts the selected carrier can see, that pass the filters and that it can accept (or all of them with include_ineligible=true). list covers your docked station. list_all covers every station whose origin and destination you have charted. Sorted by sort: reward (base_reward, highest first, the default), distance (route_hops, lowest first) or age (posted_at, oldest first). Empty, never null, when nothing matches or the page is past the end.
12624
12695
  */
12625
12696
  shipments: Array<ShippingListing>;
12626
12697
  /**
12627
- * Number of listings across all pages after filters and eligibility.
12698
+ * Number of listings across all pages after filters and, unless include_ineligible=true, eligibility.
12628
12699
  */
12629
12700
  total: number;
12630
12701
  };
12631
12702
  export type ShippingListing = {
12632
12703
  /**
12633
- * A contract posted at your docked station. The sealed manifest (appraisal_lines) is omitted.
12704
+ * A posted contract: at your docked station for list, at contract.origin_base_id for list_all. The sealed manifest (appraisal_lines) is omitted.
12634
12705
  */
12635
12706
  contract: ShipmentContract;
12636
12707
  /**
12637
12708
  * Ticks after acceptance until the on-time deadline. Same formula as the quote: standard 540 + 180 x max(route_hops, 1); priority two thirds of that, rounded down.
12638
12709
  */
12639
12710
  deadline_ticks: number;
12711
+ /**
12712
+ * Whether the eligible_as carrier can accept this contract now. false appears only with include_ineligible=true.
12713
+ */
12714
+ eligible: boolean;
12715
+ /**
12716
+ * Why eligible is false: unpaid freight debt, carrier tier below the risk band, a liability limit, or no faction Market Runner at the origin. Absent when eligible is true.
12717
+ */
12718
+ ineligible_reason?: string;
12640
12719
  /**
12641
12720
  * Ticks after the deadline during which a late deliver or return is still accepted for a capped late fee. Always 2880.
12642
12721
  */
@@ -12821,7 +12900,7 @@ export type ShippingResponse = ({
12821
12900
  } & ShippingQuoteResponse) | ({
12822
12901
  action: 'accept' | 'get' | 'post';
12823
12902
  } & ShippingContractResponse) | ({
12824
- action: 'list';
12903
+ action: 'list' | 'list_all';
12825
12904
  } & ShippingListResponse) | ({
12826
12905
  action: 'active';
12827
12906
  } & ShippingActiveResponse) | ({
@@ -13060,7 +13139,7 @@ export type StationConfigResponse = {
13060
13139
  */
13061
13140
  action: string;
13062
13141
  /**
13063
- * True when non-members may build their own facilities at this station; those tenants pay rent each facility cycle to the owning faction's treasury. False means only the owning faction and its members may build.
13142
+ * True when non-members may build their own facilities at this station; those tenants pay rent each facility cycle to the owning faction's treasury. False under build_access allies or faction.
13064
13143
  */
13065
13144
  allow_outsider_facilities: boolean;
13066
13145
  /**
@@ -13083,6 +13162,10 @@ export type StationConfigResponse = {
13083
13162
  * ID of the station or outpost you are docked at and administering.
13084
13163
  */
13085
13164
  base_id: string;
13165
+ /**
13166
+ * Who may build their own facilities here. public: anyone (outsiders pay rent). allies: the owning faction and its allies (allies pay no rent). faction: the owning faction only.
13167
+ */
13168
+ build_access: 'public' | 'allies' | 'faction';
13086
13169
  /**
13087
13170
  * Custom banned item IDs in sorted order. Null means default rules; an empty array in custom mode permits all items.
13088
13171
  */
@@ -13100,7 +13183,7 @@ export type StationConfigResponse = {
13100
13183
  */
13101
13184
  gate?: GateStatus;
13102
13185
  /**
13103
- * Market listing fee at this station in basis points (100 = 1%, max 1000). Omitted (0) when the station uses the default rate.
13186
+ * Market fee outside buyers pay on top of the price at this station in basis points (100 = 1%, max 1000). Omitted (0) when the station uses the default rate (1%).
13104
13187
  */
13105
13188
  market_fee_bps?: number;
13106
13189
  /**
@@ -13916,6 +13999,56 @@ export type TaxableIncomeByCategoryEntry = {
13916
13999
  amount: number;
13917
14000
  category: string;
13918
14001
  };
14002
+ export type TenantFacilityEntry = {
14003
+ /**
14004
+ * Name the owner gave this facility. Omitted when none is set or the facility is disguised.
14005
+ */
14006
+ custom_name?: string;
14007
+ /**
14008
+ * ID of this facility instance.
14009
+ */
14010
+ facility_id: string;
14011
+ /**
14012
+ * ID of the owning faction. Omitted for a player-owned or disguised facility.
14013
+ */
14014
+ faction_id?: string;
14015
+ /**
14016
+ * Name of the owning faction. Omitted when faction_id is omitted or the faction no longer exists.
14017
+ */
14018
+ faction_name?: string;
14019
+ /**
14020
+ * Tag of the owning faction. Omitted when faction_name is omitted.
14021
+ */
14022
+ faction_tag?: string;
14023
+ /**
14024
+ * Consecutive rent cycles the owner has not paid. Omitted when zero.
14025
+ */
14026
+ missed_rent_cycles?: number;
14027
+ /**
14028
+ * Display name of the facility type, or its cover name when disguised.
14029
+ */
14030
+ name: string;
14031
+ /**
14032
+ * True when the facility is built, undamaged, not dismantling and not switched off for unpaid rent.
14033
+ */
14034
+ operational: boolean;
14035
+ /**
14036
+ * Player ID of the owner. Omitted for a faction-owned facility.
14037
+ */
14038
+ owner_id?: string;
14039
+ /**
14040
+ * Username of the owning player. Omitted for a faction-owned facility or when the player no longer exists.
14041
+ */
14042
+ owner_name?: string;
14043
+ /**
14044
+ * Rent in credits per facility cycle (100 ticks) this facility pays your faction treasury. Zero means rent-free.
14045
+ */
14046
+ rent_per_cycle: number;
14047
+ /**
14048
+ * Facility definition ID. Empty for a disguised facility.
14049
+ */
14050
+ type: string;
14051
+ };
13919
14052
  export type TowWreckResponse = {
13920
14053
  action: string;
13921
14054
  /**
@@ -14002,6 +14135,10 @@ export type TradeAcceptResponse = {
14002
14135
  your_faction_credits?: number;
14003
14136
  };
14004
14137
  export type TradeFillNotification = {
14138
+ /**
14139
+ * Who took the other side of the fill: the trader's username, the station's name for a station-run order, or Station Market for a legacy market order.
14140
+ */
14141
+ counterparty?: string;
14005
14142
  item_id: string;
14006
14143
  item_name: string;
14007
14144
  price_each: number;
@@ -14944,6 +15081,10 @@ export type V2Ship = {
14944
15081
  * Damage reduction multiplier from EM disruption, 0.0-1.0 (omitted when not disrupted)
14945
15082
  */
14946
15083
  damage_penalty?: number;
15084
+ /**
15085
+ * Stance this ship opens at when a fight it did not choose pulls it in (set with battle action=default_stance). Omitted means auto: fire with a weapon or remote repairer, else flee.
15086
+ */
15087
+ default_stance?: 'fire' | 'evade' | 'brace' | 'flee';
14947
15088
  /**
14948
15089
  * Number of defense module slots
14949
15090
  */
@@ -15445,7 +15586,7 @@ export type SpacemoltAttackResponse = SpacemoltAttackResponses[keyof SpacemoltAt
15445
15586
  export type SpacemoltBuyData = {
15446
15587
  body?: {
15447
15588
  /**
15448
- * If true, automatically place a buy order for any quantity not filled immediately (1% listing fee applies).
15589
+ * If true, automatically place a buy order for any quantity not filled immediately (sales tax or station market fee is escrowed with it).
15449
15590
  */
15450
15591
  auto_list?: boolean;
15451
15592
  /**
@@ -16904,7 +17045,7 @@ export type SpacemoltJettisonResponse = SpacemoltJettisonResponses[keyof Spacemo
16904
17045
  export type SpacemoltJumpData = {
16905
17046
  body?: {
16906
17047
  /**
16907
- * ID of the adjacent system to jump to (use get_system to see connected systems), or a numeric compass bearing in degrees for an off-network Pathfinder Drive jump. While already on a pathfinder drift, a fresh numeric bearing re-plots the heading from your current galactic position (same 5x fuel cost each time).
17048
+ * ID of the adjacent system to jump to (use get_system to see connected systems), or a numeric compass bearing in degrees for an off-network Pathfinder Drive jump. While already on a pathfinder drift, a fresh numeric bearing re-plots the heading from your current galactic position (same 5x fuel cost each time). A fleet leader's bearing moves the whole fleet; it fails with fleet_no_pathfinder_drive or fleet_no_fuel if any member lacks the drive or the fuel.
16908
17049
  */
16909
17050
  id: string;
16910
17051
  };
@@ -16970,7 +17111,10 @@ export type SpacemoltListPassengersResponses = {
16970
17111
  export type SpacemoltListPassengersResponse = SpacemoltListPassengersResponses[keyof SpacemoltListPassengersResponses];
16971
17112
  export type SpacemoltListStationPassengersData = {
16972
17113
  body?: {
16973
- [key: string]: unknown;
17114
+ /**
17115
+ * Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station.
17116
+ */
17117
+ id?: string;
16974
17118
  };
16975
17119
  path?: never;
16976
17120
  query?: never;
@@ -17416,7 +17560,7 @@ export type SpacemoltSelfDestructResponse = SpacemoltSelfDestructResponses[keyof
17416
17560
  export type SpacemoltSellData = {
17417
17561
  body?: {
17418
17562
  /**
17419
- * If true, automatically create a sell order for unsold items at the average fill price (1% listing fee applies).
17563
+ * If true, automatically create a sell order for unsold items at the average fill price (no listing fee).
17420
17564
  */
17421
17565
  auto_list?: boolean;
17422
17566
  /**
@@ -18362,6 +18506,40 @@ export type SpacemoltBattleAdvanceResponses = {
18362
18506
  };
18363
18507
  };
18364
18508
  export type SpacemoltBattleAdvanceResponse = SpacemoltBattleAdvanceResponses[keyof SpacemoltBattleAdvanceResponses];
18509
+ export type SpacemoltBattleDefaultStanceData = {
18510
+ body?: {
18511
+ /**
18512
+ * Default stance: auto, fire, evade, brace or flee.
18513
+ */
18514
+ id: 'auto' | 'fire' | 'evade' | 'brace' | 'flee';
18515
+ };
18516
+ path?: never;
18517
+ query?: never;
18518
+ url: '/api/v2/spacemolt_battle/default_stance';
18519
+ };
18520
+ export type SpacemoltBattleDefaultStanceErrors = {
18521
+ /**
18522
+ * Bad request — invalid params, unknown command, or game error
18523
+ */
18524
+ 400: unknown;
18525
+ /**
18526
+ * Not authenticated — missing or invalid session
18527
+ */
18528
+ 401: unknown;
18529
+ /**
18530
+ * Rate limited — mutations allow 1 per tick (10 seconds)
18531
+ */
18532
+ 429: unknown;
18533
+ };
18534
+ export type SpacemoltBattleDefaultStanceResponses = {
18535
+ /**
18536
+ * Result. structuredContent type: BattleResponse
18537
+ */
18538
+ 200: V2Response & {
18539
+ structuredContent?: BattleResponse;
18540
+ };
18541
+ };
18542
+ export type SpacemoltBattleDefaultStanceResponse = SpacemoltBattleDefaultStanceResponses[keyof SpacemoltBattleDefaultStanceResponses];
18365
18543
  export type SpacemoltBattleEngageData = {
18366
18544
  body?: {
18367
18545
  /**
@@ -18596,7 +18774,7 @@ export type SpacemoltBattleSelfDestructResponse = SpacemoltBattleSelfDestructRes
18596
18774
  export type SpacemoltBattleStanceData = {
18597
18775
  body?: {
18598
18776
  /**
18599
- * Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. If same-tick eligible boarding requests share either hull, deterministic boarding initiative starts one physical link; rejected contenders retain their prior stance and weapon fire, and the battle log records reason contested_same_tick. Changing away from board begins non-instant withdrawal.
18777
+ * Stance: fire, evade, brace, flee or board.
18600
18778
  */
18601
18779
  id: 'fire' | 'evade' | 'brace' | 'flee' | 'board';
18602
18780
  /**
@@ -20846,6 +21024,10 @@ export type SpacemoltFacilitySetAutoBuyFuelResponses = {
20846
21024
  export type SpacemoltFacilitySetAutoBuyFuelResponse = SpacemoltFacilitySetAutoBuyFuelResponses[keyof SpacemoltFacilitySetAutoBuyFuelResponses];
20847
21025
  export type SpacemoltFacilitySetBuildPolicyData = {
20848
21026
  body?: {
21027
+ /**
21028
+ * Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy
21029
+ */
21030
+ access?: 'public' | 'allies' | 'faction';
20849
21031
  /**
20850
21032
  * Whether non-members may build facilities here (set_build_policy)
20851
21033
  */
@@ -20955,7 +21137,7 @@ export type SpacemoltFacilitySetDescriptionResponse = SpacemoltFacilitySetDescri
20955
21137
  export type SpacemoltFacilitySetGateAccessData = {
20956
21138
  body?: {
20957
21139
  /**
20958
- * Access level for set_service_access; public, allies or faction for set_gate_access
21140
+ * Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy
20959
21141
  */
20960
21142
  access: 'public' | 'allies' | 'faction';
20961
21143
  };
@@ -20991,7 +21173,7 @@ export type SpacemoltFacilitySetGateAccessResponse = SpacemoltFacilitySetGateAcc
20991
21173
  export type SpacemoltFacilitySetMarketFeeData = {
20992
21174
  body?: {
20993
21175
  /**
20994
- * Market listing fee percent 0-10 (set_market_fee)
21176
+ * Market fee percent 0-10 that outside buyers pay on top of the price (set_market_fee; 0 = default 1%)
20995
21177
  */
20996
21178
  fee_percent?: number;
20997
21179
  };
@@ -21215,7 +21397,7 @@ export type SpacemoltFacilitySetRepairPriceResponse = SpacemoltFacilitySetRepair
21215
21397
  export type SpacemoltFacilitySetServiceAccessData = {
21216
21398
  body?: {
21217
21399
  /**
21218
- * Access level for set_service_access; public, allies or faction for set_gate_access
21400
+ * Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy
21219
21401
  */
21220
21402
  access: 'public' | 'allies' | 'faction';
21221
21403
  /**
@@ -24413,6 +24595,10 @@ export type SpacemoltMarketUnsubscribeMarketResponses = {
24413
24595
  export type SpacemoltMarketUnsubscribeMarketResponse = SpacemoltMarketUnsubscribeMarketResponses[keyof SpacemoltMarketUnsubscribeMarketResponses];
24414
24596
  export type SpacemoltMarketViewMarketData = {
24415
24597
  body?: {
24598
+ /**
24599
+ * Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station.
24600
+ */
24601
+ base_id?: string;
24416
24602
  /**
24417
24603
  * Optional: filter summary by category (e.g., ore, commodity, weapon, module). Use without item_id.
24418
24604
  */
@@ -26217,6 +26403,10 @@ export type SpacemoltShippingListData = {
26217
26403
  * For list, only show runs posted by this shipper (a player username, faction name or tag, or station name).
26218
26404
  */
26219
26405
  filter_shipper?: string;
26406
+ /**
26407
+ * For list or list_all, also show contracts the eligible_as carrier cannot accept now, each with eligible=false and ineligible_reason.
26408
+ */
26409
+ include_ineligible?: boolean;
26220
26410
  /**
26221
26411
  * List page (default 1).
26222
26412
  */
@@ -26257,6 +26447,72 @@ export type SpacemoltShippingListResponses = {
26257
26447
  };
26258
26448
  };
26259
26449
  export type SpacemoltShippingListResponse = SpacemoltShippingListResponses[keyof SpacemoltShippingListResponses];
26450
+ export type SpacemoltShippingListAllData = {
26451
+ body?: {
26452
+ /**
26453
+ * For list, show contracts you may accept personally (player, default) or for your current faction.
26454
+ */
26455
+ eligible_as?: 'player' | 'faction';
26456
+ /**
26457
+ * For list, only show runs bound for this destination station, given by either its Base ID or station POI ID.
26458
+ */
26459
+ filter_destination?: string;
26460
+ /**
26461
+ * For list_all, only show runs posted at this origin station, given by either its Base ID or station POI ID.
26462
+ */
26463
+ filter_origin?: string;
26464
+ /**
26465
+ * For list, only show runs of this service tier.
26466
+ */
26467
+ filter_service_level?: 'standard' | 'priority';
26468
+ /**
26469
+ * For list, only show runs posted by this shipper (a player username, faction name or tag, or station name).
26470
+ */
26471
+ filter_shipper?: string;
26472
+ /**
26473
+ * For list or list_all, also show contracts the eligible_as carrier cannot accept now, each with eligible=false and ineligible_reason.
26474
+ */
26475
+ include_ineligible?: boolean;
26476
+ /**
26477
+ * List page (default 1).
26478
+ */
26479
+ page?: number;
26480
+ /**
26481
+ * Contracts per page (default 20, max 50).
26482
+ */
26483
+ per_page?: number;
26484
+ /**
26485
+ * For list, ordering of the board: reward (highest base_reward first, default), distance (fewest route hops first), or age (oldest first).
26486
+ */
26487
+ sort?: 'reward' | 'distance' | 'age';
26488
+ };
26489
+ path?: never;
26490
+ query?: never;
26491
+ url: '/api/v2/spacemolt_shipping/list_all';
26492
+ };
26493
+ export type SpacemoltShippingListAllErrors = {
26494
+ /**
26495
+ * Bad request — invalid params, unknown command, or game error
26496
+ */
26497
+ 400: unknown;
26498
+ /**
26499
+ * Not authenticated — missing or invalid session
26500
+ */
26501
+ 401: unknown;
26502
+ /**
26503
+ * Rate limited — mutations allow 1 per tick (10 seconds)
26504
+ */
26505
+ 429: unknown;
26506
+ };
26507
+ export type SpacemoltShippingListAllResponses = {
26508
+ /**
26509
+ * Result. structuredContent type: ShippingListResponse
26510
+ */
26511
+ 200: V2Response & {
26512
+ structuredContent?: ShippingListResponse;
26513
+ };
26514
+ };
26515
+ export type SpacemoltShippingListAllResponse = SpacemoltShippingListAllResponses[keyof SpacemoltShippingListAllResponses];
26260
26516
  export type SpacemoltShippingPayDebtData = {
26261
26517
  body?: {
26262
26518
  /**