@spacemolt/lib 17.0.0 → 17.2.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.
@@ -17,6 +17,10 @@ export type AcceptMissionResponse = {
17
17
  fixer?: FixerAccountInfo;
18
18
  message: string;
19
19
  mission_id: string;
20
+ /**
21
+ * True for missions with no deadline. Then expires_at is empty. Omitted means the mission uses its expires_at deadline.
22
+ */
23
+ no_expiry?: boolean;
20
24
  replacement_cost?: number;
21
25
  template_id?: string;
22
26
  title: string;
@@ -109,6 +113,10 @@ export type ActiveMissionInfo = {
109
113
  issuing_system_id?: string;
110
114
  issuing_system_name?: string;
111
115
  mission_id: string;
116
+ /**
117
+ * True for missions with no deadline. Then expires_in_ticks is zero. Omitted means expires_in_ticks is the remaining deadline.
118
+ */
119
+ no_expiry?: boolean;
112
120
  objectives?: Array<ObjectiveProgressInfo>;
113
121
  percent_complete: number;
114
122
  /**
@@ -853,7 +861,7 @@ export type AttackNpcResponse = {
853
861
  */
854
862
  target_name: string;
855
863
  /**
856
- * Target combatant type: pirate/empire_npc/creature/station/prize
864
+ * Target combatant type: pirate/empire_npc/creature/station/prize/repeater
857
865
  */
858
866
  target_type: string;
859
867
  /**
@@ -949,6 +957,43 @@ export type Base = {
949
957
  * Current fuel reserves in the station's fuel tank
950
958
  */
951
959
  fuel?: number;
960
+ /**
961
+ * Present only when this outpost is one end of a player-built jump gate; omitted otherwise. The owning faction's station info action describes it in full.
962
+ */
963
+ gate?: {
964
+ /**
965
+ * True when only the owning faction may cross; omitted when public
966
+ */
967
+ faction_only?: boolean;
968
+ /**
969
+ * System the other end of the gate stands in
970
+ */
971
+ far_system_id?: string;
972
+ /**
973
+ * True while the owners have been warned this end is short of supplies; omitted otherwise
974
+ */
975
+ low_supply_warned?: boolean;
976
+ /**
977
+ * True while the gate is open for jump; omitted when closed
978
+ */
979
+ online?: boolean;
980
+ /**
981
+ * Base id of the other end; omitted until that end is founded
982
+ */
983
+ partner_base_id?: string;
984
+ /**
985
+ * Construction phases this end has completed
986
+ */
987
+ phase?: number;
988
+ /**
989
+ * Facility cycles counted for the current phase or upkeep
990
+ */
991
+ phase_cycles?: number;
992
+ /**
993
+ * Credits per ship charged to pilots outside the owning faction; omitted when free
994
+ */
995
+ toll?: number;
996
+ };
952
997
  id: string;
953
998
  /**
954
999
  * Owner-set market listing fee in basis points (player station); 0 = default
@@ -1141,6 +1186,10 @@ export type BattleLogEntry = {
1141
1186
  joins?: Array<JoinLogEntry>;
1142
1187
  kills?: Array<KillLogEntry>;
1143
1188
  personnel_casualties?: Array<PersonnelCasualtyLogEntry>;
1189
+ /**
1190
+ * True for a battle in a frontier system. It stays off the public battle list; its own pilots still read its log. Omitted for every other battle.
1191
+ */
1192
+ private?: boolean;
1144
1193
  recovered_summary?: RecoveredBattleSummary;
1145
1194
  regen?: Array<RegenLogEntry>;
1146
1195
  snapshots: Array<ParticipantSnapshot>;
@@ -1421,11 +1470,36 @@ export type BoardingStateLogEntry = {
1421
1470
  target_id?: string;
1422
1471
  };
1423
1472
  export type BrowseShipsResponse = {
1473
+ /**
1474
+ * Base ID of the station browsed. Empty with all_stations.
1475
+ */
1424
1476
  base_id: string;
1477
+ /**
1478
+ * Name of the station browsed. Empty with all_stations.
1479
+ */
1425
1480
  base_name: string;
1426
1481
  buy_orders?: Array<ShipBuyOrderInfo>;
1482
+ /**
1483
+ * Number of listings in this response.
1484
+ */
1427
1485
  count: number;
1428
1486
  listings: Array<ShipListing>;
1487
+ /**
1488
+ * With all_stations: the 1-based page returned. Omitted otherwise.
1489
+ */
1490
+ page?: number;
1491
+ /**
1492
+ * With all_stations: listings per page (default 50, max 100). Omitted otherwise.
1493
+ */
1494
+ page_size?: number;
1495
+ /**
1496
+ * With all_stations: listings matching the filters across every page. Omitted when nothing matches or without all_stations.
1497
+ */
1498
+ total?: number;
1499
+ /**
1500
+ * With all_stations: number of pages (at least 1). Omitted otherwise.
1501
+ */
1502
+ total_pages?: number;
1429
1503
  };
1430
1504
  export type BuildBaseResponse = {
1431
1505
  /**
@@ -2170,6 +2244,10 @@ export type CatalogRecipe = {
2170
2244
  * 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.
2171
2245
  */
2172
2246
  produced_by_facility_ids: Array<string>;
2247
+ /**
2248
+ * True when a pilot must first earn this recipe from a quest: crafting it fails with recipe_locked until a completed mission's unlock_recipes reward grants it. Absent on every recipe anyone can craft.
2249
+ */
2250
+ requires_unlock?: boolean;
2173
2251
  };
2174
2252
  export type CatalogResponse = {
2175
2253
  analysis?: RecipeAnalysis;
@@ -2392,6 +2470,10 @@ export type ClientPoiInfo = {
2392
2470
  * True when a base (a station, an outpost, or a mobile base) is at this POI.
2393
2471
  */
2394
2472
  has_base: boolean;
2473
+ /**
2474
+ * Environmental hazard at this POI (type and severity). Omitted when there is none. Shields absorb a dose first and resistance to its damage type reduces it; an emptied hull is a lost ship.
2475
+ */
2476
+ hazard?: PoiHazard;
2395
2477
  /**
2396
2478
  * POI ID. Pass it to travel or find_route.
2397
2479
  */
@@ -2401,7 +2483,7 @@ export type ClientPoiInfo = {
2401
2483
  */
2402
2484
  name: string;
2403
2485
  /**
2404
- * Position in AU from the system center.
2486
+ * Position in AU from the system center. It changes with time.
2405
2487
  */
2406
2488
  position: Position;
2407
2489
  /**
@@ -2417,6 +2499,10 @@ export type ClientSystemInfo = {
2417
2499
  connections: Array<ClientConnectionInfo>;
2418
2500
  description?: string;
2419
2501
  empire?: string;
2502
+ /**
2503
+ * Frontier tier of the system. Omitted for known space.
2504
+ */
2505
+ frontier_tier?: number;
2420
2506
  id: string;
2421
2507
  is_stronghold: boolean;
2422
2508
  name: string;
@@ -2679,6 +2765,14 @@ export type CompleteMissionResponse = {
2679
2765
  };
2680
2766
  message: string;
2681
2767
  mission_id: string;
2768
+ /**
2769
+ * Documents this completion added to your notes. Read one with read_note. Omitted when the mission gave none.
2770
+ */
2771
+ notes_received?: Array<MissionNoteReceived>;
2772
+ /**
2773
+ * Recipe IDs this completion taught you. You can craft them from now on. Omitted when the mission teaches none or you already knew them.
2774
+ */
2775
+ recipes_unlocked?: Array<string>;
2682
2776
  reputation_changes?: {
2683
2777
  [key: string]: number;
2684
2778
  };
@@ -3099,19 +3193,19 @@ export type DistressSignalResponse = {
3099
3193
  */
3100
3194
  auto_undocked?: boolean;
3101
3195
  /**
3102
- * The kind of emergency broadcast: "fuel" (stranded without fuel), "repair" (hull critically damaged) or "combat" (under attack). Echoes the requested distress_type, or "fuel" when the request omitted it.
3196
+ * The kind of emergency broadcast: "fuel" (stranded without fuel), "repair" (hull critically damaged), "combat" (under attack) or "tow" (a Salvage Authority tug docks you at the nearest public station). Echoes the requested distress_type, or "fuel" when the request omitted it.
3103
3197
  */
3104
3198
  distress_type: string;
3105
3199
  /**
3106
- * Seconds until the posted rescue mission expires, measured from when the call was sent. 10800 (3 hours) for a player call. An unclaimed mission is removed at expiry, and is also removed early if you travel away under your own power.
3200
+ * Seconds until the posted rescue mission expires, measured from when the call was sent. 10800 (3 hours) for a player call. An unclaimed mission is removed at expiry, and is also removed early if you travel away under your own power. 0 for a tow.
3107
3201
  */
3108
3202
  expires_seconds: number;
3109
3203
  /**
3110
- * The broadcast text sent to the emergency chat channel, for example "MAYDAY: Phoenix is stranded at Sol Asteroid Belt in Sol with 0/120 fuel! Any pilots nearby, please help!". Wording depends on distress_type.
3204
+ * The broadcast text sent to the emergency chat channel, for example "MAYDAY: Phoenix is stranded at Sol Asteroid Belt in Sol with 0/120 fuel! Any pilots nearby, please help!". Wording depends on distress_type. For a tow it is the Salvage Authority's reply and is not broadcast.
3111
3205
  */
3112
3206
  message: string;
3113
3207
  /**
3114
- * ID of the claimable rescue mission this call posted, for example "a3f9c21e8b04". Nobody is assigned it: any pilot who heard the broadcast can take it by calling accept_mission with this ID, docked or not, and the first claim wins. Empty when responders_reached is 0, because no mission is posted when nobody is in range to hear it.
3208
+ * ID of the claimable rescue mission this call posted, for example "a3f9c21e8b04". Nobody is assigned it: any pilot who heard the broadcast can take it by calling accept_mission with this ID, docked or not, and the first claim wins. Empty when responders_reached is 0, because no mission is posted when nobody is in range to hear it. Always empty for a tow.
3115
3209
  */
3116
3210
  mission_id: string;
3117
3211
  /**
@@ -3123,7 +3217,7 @@ export type DistressSignalResponse = {
3123
3217
  */
3124
3218
  poi_name: string;
3125
3219
  /**
3126
- * Number of online pilots within 5 jumps who received the broadcast. This is how many heard you, not how many are coming: the mission is an offer and nobody is assigned to it. 0 means nobody was in range, and then mission_id is empty because no mission was posted.
3220
+ * Number of online pilots within 5 jumps who received the broadcast. This is how many heard you, not how many are coming: the mission is an offer and nobody is assigned to it. 0 means nobody was in range, and then mission_id is empty because no mission was posted. Always 0 for a tow.
3127
3221
  */
3128
3222
  responders_reached: number;
3129
3223
  /**
@@ -3134,6 +3228,10 @@ export type DistressSignalResponse = {
3134
3228
  * Display name of the system in "system", for example "Sol". Falls back to the system ID when the system is unknown to the server.
3135
3229
  */
3136
3230
  system_name: string;
3231
+ /**
3232
+ * Seconds until the Salvage Authority tug arrives and docks you. Set only for a tow. The tug turns back if on arrival you are docked, away from this POI, traveling, in a battle or held.
3233
+ */
3234
+ tow_arrives_seconds?: number;
3137
3235
  };
3138
3236
  export type DockResponse = {
3139
3237
  action: string;
@@ -4710,6 +4808,9 @@ export type FactionInfoResponse = {
4710
4808
  };
4711
4809
  export type FactionIntelStatusResponse = {
4712
4810
  contributors?: number;
4811
+ /**
4812
+ * Percentage (0-100) of known-space systems the faction pool has intel on. Frontier systems are left out.
4813
+ */
4713
4814
  coverage_pct: number;
4714
4815
  intel_level: number;
4715
4816
  most_recent_tick?: number;
@@ -4717,6 +4818,9 @@ export type FactionIntelStatusResponse = {
4717
4818
  systems_known: number;
4718
4819
  top_contributions?: number;
4719
4820
  top_contributor?: string;
4821
+ /**
4822
+ * Number of known-space systems. Frontier systems are not counted.
4823
+ */
4720
4824
  total_systems?: number;
4721
4825
  };
4722
4826
  export type FactionInvite = {
@@ -5419,11 +5523,11 @@ export type FitPreviewResponse = {
5419
5523
  };
5420
5524
  export type FitPreviewStats = {
5421
5525
  /**
5422
- * Armor: class base plus module armor bonuses
5526
+ * Armor with the planned modules fitted
5423
5527
  */
5424
5528
  armor: number;
5425
5529
  /**
5426
- * Total cargo space: class base plus module cargo bonuses (negative for modules that shrink the hold), then your empire cargo bonus. The same value get_ship reports as cargo_capacity once the fit is in place
5530
+ * Total cargo space with the planned modules fitted (some modules shrink the hold), after your empire cargo bonus. The same value get_ship reports as cargo_capacity once the fit is in place
5427
5531
  */
5428
5532
  cargo_capacity: number;
5429
5533
  /**
@@ -5431,7 +5535,7 @@ export type FitPreviewStats = {
5431
5535
  */
5432
5536
  cargo_used: number;
5433
5537
  /**
5434
- * Total CPU: class base plus module CPU bonuses
5538
+ * Total CPU with the planned modules fitted
5435
5539
  */
5436
5540
  cpu_capacity: number;
5437
5541
  /**
@@ -5451,31 +5555,43 @@ export type FitPreviewStats = {
5451
5555
  */
5452
5556
  defense_slots_used: number;
5453
5557
  /**
5454
- * Crew capacity: class base plus module crew bonuses
5558
+ * Crew capacity with the planned modules fitted
5455
5559
  */
5456
5560
  effective_crew_capacity: number;
5457
5561
  /**
5458
- * Marine capacity: class base plus module marine bonuses
5562
+ * Marine capacity with the planned modules fitted
5459
5563
  */
5460
5564
  effective_marine_capacity: number;
5565
+ /**
5566
+ * Net fuel efficiency of the planned modules in percent. Positive cuts fuel use (at most 80), negative raises it (afterburners)
5567
+ */
5568
+ fuel_efficiency: number;
5569
+ /**
5570
+ * Fuel one jump costs with the planned fit: its speed and fuel efficiency, your hull and your skills. The same value find_route reports as fuel_per_jump once the fit is in place
5571
+ */
5572
+ fuel_per_jump: number;
5573
+ /**
5574
+ * Jumps a full fuel tank covers with the planned fit: max_fuel divided by fuel_per_jump, rounded down. In-system travel uses fuel too
5575
+ */
5576
+ jump_range: number;
5461
5577
  /**
5462
5578
  * Fit plus injured marines aboard now. Invalid (personnel_capacity_exceeded) above effective_marine_capacity
5463
5579
  */
5464
5580
  marines: number;
5465
5581
  /**
5466
- * Fuel tank size: class base plus module fuel bonuses
5582
+ * Fuel tank size with the planned modules fitted
5467
5583
  */
5468
5584
  max_fuel: number;
5469
5585
  /**
5470
- * Maximum hull: class base hull plus module hull bonuses minus hull penalties (at least 1)
5586
+ * Maximum hull with the planned modules fitted (at least 1)
5471
5587
  */
5472
5588
  max_hull: number;
5473
5589
  /**
5474
- * Maximum shield: class base plus module shield bonuses
5590
+ * Maximum shield with the planned modules fitted
5475
5591
  */
5476
5592
  max_shield: number;
5477
5593
  /**
5478
- * Total power: class base plus module power bonuses
5594
+ * Total power with the planned modules fitted
5479
5595
  */
5480
5596
  power_capacity: number;
5481
5597
  /**
@@ -5483,11 +5599,11 @@ export type FitPreviewStats = {
5483
5599
  */
5484
5600
  power_used: number;
5485
5601
  /**
5486
- * Shield recharged per tick: class base plus module recharge bonuses
5602
+ * Shield recharged per tick with the planned modules fitted
5487
5603
  */
5488
5604
  shield_recharge: number;
5489
5605
  /**
5490
- * Base speed: class base plus module speed bonuses minus speed penalties (at least 1). Crew efficiency is not applied; see get_ship operational_speed
5606
+ * Base speed with the planned modules fitted (at least 1). Crew efficiency is not applied; see get_ship operational_speed
5491
5607
  */
5492
5608
  speed: number;
5493
5609
  /**
@@ -5901,6 +6017,78 @@ export type GaragedShipEntry = {
5901
6017
  depositor_name?: string;
5902
6018
  ship_id: string;
5903
6019
  };
6020
+ export type GateStatus = {
6021
+ /**
6022
+ * True when this end is built.
6023
+ */
6024
+ built: boolean;
6025
+ /**
6026
+ * Upkeep cycles until this end uses its next entangler. Omitted until built.
6027
+ */
6028
+ entangler_due_in_cycles?: number;
6029
+ /**
6030
+ * True when only the owning faction may cross.
6031
+ */
6032
+ faction_only: boolean;
6033
+ /**
6034
+ * System the other end of this gate stands in.
6035
+ */
6036
+ far_system_id: string;
6037
+ /**
6038
+ * Display name of far_system_id.
6039
+ */
6040
+ far_system_name: string;
6041
+ /**
6042
+ * True when the gate is open.
6043
+ */
6044
+ online: boolean;
6045
+ /**
6046
+ * Base id of the other end. Omitted until that end is founded.
6047
+ */
6048
+ partner_base_id?: string;
6049
+ /**
6050
+ * True when the other end is built.
6051
+ */
6052
+ partner_built: boolean;
6053
+ /**
6054
+ * Current construction phase. Omitted once built.
6055
+ */
6056
+ phase?: number;
6057
+ /**
6058
+ * Facility cycles the current phase takes. Omitted once built.
6059
+ */
6060
+ phase_cycles?: number;
6061
+ /**
6062
+ * Facility cycles of the current phase done. Omitted once built or when 0.
6063
+ */
6064
+ phase_cycles_done?: number;
6065
+ /**
6066
+ * Labor credits the current phase takes from the faction treasury per facility cycle. Omitted once built.
6067
+ */
6068
+ phase_labor_per_cycle?: number;
6069
+ /**
6070
+ * Item ID to the quantity the current phase still needs. Omitted once built.
6071
+ */
6072
+ phase_materials_left?: {
6073
+ [key: string]: number;
6074
+ };
6075
+ /**
6076
+ * Name of the current construction phase. Omitted once built.
6077
+ */
6078
+ phase_name?: string;
6079
+ /**
6080
+ * Number of construction phases.
6081
+ */
6082
+ phases_total: number;
6083
+ /**
6084
+ * Credits per ship charged to pilots outside the owning faction. 0 means free.
6085
+ */
6086
+ toll: number;
6087
+ /**
6088
+ * Facility cycles of upkeep this end has in faction storage. Omitted when 0 or not built.
6089
+ */
6090
+ upkeep_cycles_covered?: number;
6091
+ };
5904
6092
  export type GeneratorResponse = {
5905
6093
  /**
5906
6094
  * True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
@@ -6148,7 +6336,7 @@ export type GetNearbyResponse = {
6148
6336
  arena_npcs: Array<ArenaNpcInfo>;
6149
6337
  count: number;
6150
6338
  /**
6151
- * Total wildlife creatures at this POI. When it is larger than the length of creatures, the list is cut at 30 and the rest are present but not listed.
6339
+ * Total wildlife at this POI that your sensors resolve. When it is larger than the length of creatures, the list is cut at 30 and the rest are present but not listed.
6152
6340
  */
6153
6341
  creature_count: number;
6154
6342
  /**
@@ -6164,6 +6352,14 @@ export type GetNearbyResponse = {
6164
6352
  poi_id: string;
6165
6353
  prize_count: number;
6166
6354
  prizes: Array<PrizeInfo>;
6355
+ /**
6356
+ * Number of entries in repeaters.
6357
+ */
6358
+ repeater_count: number;
6359
+ /**
6360
+ * Repeaters at this POI. Empty when none are here.
6361
+ */
6362
+ repeaters: Array<RepeaterInfo>;
6167
6363
  unknown_signature?: boolean;
6168
6364
  };
6169
6365
  export type GetNotesResponse = {
@@ -6195,6 +6391,10 @@ export type GetPoiResponse = {
6195
6391
  fuel_price?: number;
6196
6392
  fuel_price_all_in?: number;
6197
6393
  fuel_tax_per_unit?: number;
6394
+ /**
6395
+ * Private interaction prompt available only at the pilot's current charted archive. Omitted at other POIs. This read does not copy data or complete a mission.
6396
+ */
6397
+ interaction?: PoiInteractionInfo;
6198
6398
  kind: 'normal';
6199
6399
  poi: Poi;
6200
6400
  resources?: Array<ResourceInfo>;
@@ -6211,8 +6411,14 @@ export type GetPoiTransitResponse = {
6211
6411
  in_transit: boolean;
6212
6412
  kind: 'transit';
6213
6413
  message: string;
6414
+ /**
6415
+ * Ticks until arrival; -1 when the arrival time is unknown
6416
+ */
6214
6417
  ticks_remaining: number;
6215
6418
  to_poi?: string;
6419
+ /**
6420
+ * Destination system ID; omitted for intra-system travel or when the destination is unknown to you
6421
+ */
6216
6422
  to_system?: string;
6217
6423
  transit_type: string;
6218
6424
  };
@@ -6253,7 +6459,13 @@ export type GetSystemTransitResponse = {
6253
6459
  in_transit: boolean;
6254
6460
  kind: 'transit';
6255
6461
  message: string;
6462
+ /**
6463
+ * Ticks until arrival; -1 when the arrival time is unknown
6464
+ */
6256
6465
  ticks_remaining: number;
6466
+ /**
6467
+ * Destination system ID; empty when the destination is unknown to you
6468
+ */
6257
6469
  to_system: string;
6258
6470
  transit_type: string;
6259
6471
  };
@@ -6613,7 +6825,7 @@ export type IntelPoi = {
6613
6825
  */
6614
6826
  name: string;
6615
6827
  /**
6616
- * POI position in the system in AU. Zero on an old or hand-submitted entry that never recorded it.
6828
+ * POI position in the system in AU when the entry was recorded. Zero on an old or hand-submitted entry that never recorded it.
6617
6829
  */
6618
6830
  position: Position;
6619
6831
  /**
@@ -6637,6 +6849,38 @@ export type IntelResource = {
6637
6849
  resource_id: string;
6638
6850
  richness: number;
6639
6851
  };
6852
+ export type InteractPoiResponse = {
6853
+ /**
6854
+ * Completion receipt when this interaction completes a mission. Omitted otherwise.
6855
+ */
6856
+ completion?: CompleteMissionResponse;
6857
+ /**
6858
+ * True when this pilot keeps this POI's data. Omitted otherwise.
6859
+ */
6860
+ data_copied?: boolean;
6861
+ /**
6862
+ * Item ID to the quantity this interaction moved into your cargo. Omitted when none.
6863
+ */
6864
+ items_recovered?: {
6865
+ [key: string]: number;
6866
+ };
6867
+ /**
6868
+ * Result of this interaction.
6869
+ */
6870
+ message: string;
6871
+ /**
6872
+ * Mission offer when this pilot can accept one. Omitted otherwise.
6873
+ */
6874
+ mission?: MissionInfo;
6875
+ /**
6876
+ * Passengers this interaction seated in your berths. Omitted when none. Fails with no_berths when the free berths are too few.
6877
+ */
6878
+ passengers_boarded?: Array<PassengerView>;
6879
+ /**
6880
+ * POI where the interaction happened.
6881
+ */
6882
+ poi_id: string;
6883
+ };
6640
6884
  export type Item = {
6641
6885
  base_value: number;
6642
6886
  category: string;
@@ -6940,6 +7184,10 @@ export type JumpResponse = {
6940
7184
  * ID of the POI you arrived at in the new system (the exit POI for a wormhole jump). Omitted when the system has no POIs.
6941
7185
  */
6942
7186
  poi?: string;
7187
+ /**
7188
+ * Environmental hazard at the arrival POI (type and severity). Omitted when there is none. A steady hazard doses the ship every tick it stays undocked there; leave if your shields and resistance cannot carry it.
7189
+ */
7190
+ poi_hazard?: PoiHazard;
6943
7191
  /**
6944
7192
  * Display name of the system you arrived in.
6945
7193
  */
@@ -7200,6 +7448,10 @@ export type MapSystem = {
7200
7448
  connections?: Array<string>;
7201
7449
  description?: string;
7202
7450
  empire?: string;
7451
+ /**
7452
+ * Frontier tier of the system. Omitted for known space.
7453
+ */
7454
+ frontier_tier?: number;
7203
7455
  is_stronghold?: boolean;
7204
7456
  name: string;
7205
7457
  poi_count?: number;
@@ -7215,6 +7467,10 @@ export type MapSystemInfo = {
7215
7467
  connections: Array<string>;
7216
7468
  description?: string;
7217
7469
  empire?: string;
7470
+ /**
7471
+ * Frontier tier of the system. Omitted for known space.
7472
+ */
7473
+ frontier_tier?: number;
7218
7474
  is_stronghold?: boolean;
7219
7475
  name: string;
7220
7476
  poi_count: number;
@@ -7390,6 +7646,16 @@ export type MissionInfo = {
7390
7646
  type: string;
7391
7647
  warnings?: Array<string>;
7392
7648
  };
7649
+ export type MissionNoteReceived = {
7650
+ /**
7651
+ * ID of the new note. Pass it to read_note.
7652
+ */
7653
+ note_id: string;
7654
+ /**
7655
+ * Title of the new note.
7656
+ */
7657
+ title: string;
7658
+ };
7393
7659
  export type MissionPointer = {
7394
7660
  /**
7395
7661
  * ID of the one station that offers this mission. Omitted when the mission is not tied to one station.
@@ -7434,6 +7700,10 @@ export type MissionRewardsInfo = {
7434
7700
  items?: {
7435
7701
  [key: string]: number;
7436
7702
  };
7703
+ /**
7704
+ * Piloting XP paid on completion for flying the route, in your current ship and before the piloting level cap. Not included in skill_xp. Changes if you switch ships. Omitted when zero.
7705
+ */
7706
+ piloting_xp?: number;
7437
7707
  /**
7438
7708
  * Stronghold crew the pirate_rep reward is paid to (e.g. pirate_kael). Empty means the standing is granted with every pirate crew.
7439
7709
  */
@@ -7446,6 +7716,10 @@ export type MissionRewardsInfo = {
7446
7716
  skill_xp?: {
7447
7717
  [key: string]: number;
7448
7718
  };
7719
+ /**
7720
+ * Recipe IDs this mission teaches on completion. They are requires_unlock recipes: crafting them fails with recipe_locked until a mission grants them. Omitted when the mission teaches none.
7721
+ */
7722
+ unlock_recipes?: Array<string>;
7449
7723
  };
7450
7724
  export type MissionUnlock = {
7451
7725
  /**
@@ -7814,6 +8088,20 @@ export type Module = {
7814
8088
  * Station power this module adds to the station it is docked at while connected with the generator command. Each connected generator burns 1 ship fuel per tick. Hull bonuses, Engineering and crew staffing scale the delivered output.
7815
8089
  */
7816
8090
  generator_output?: number;
8091
+ /**
8092
+ * Percent less hazard damage on each mining action. Only the strongest fitted module counts.
8093
+ */
8094
+ hazard_mining_reduction?: number;
8095
+ /**
8096
+ * Hazard type to percent less damage from that hazard. Adds to resistance against the hazard's damage type; the total caps at 90%.
8097
+ */
8098
+ hazard_resistance?: {
8099
+ [key: string]: number;
8100
+ };
8101
+ /**
8102
+ * Percent of a hazard's scan and survey penalty this module cancels. Only the strongest fitted module counts.
8103
+ */
8104
+ hazard_scan_filter?: number;
7817
8105
  hidden?: boolean;
7818
8106
  hull_bonus?: number;
7819
8107
  hull_penalty?: number;
@@ -7955,7 +8243,6 @@ export type NoteInfo = {
7955
8243
  created_by: string;
7956
8244
  note_id: string;
7957
8245
  title: string;
7958
- value: number;
7959
8246
  };
7960
8247
  export type NotificationChannelInfo = {
7961
8248
  channel: string;
@@ -7966,7 +8253,7 @@ export type NotificationChannelInfo = {
7966
8253
  /**
7967
8254
  * Frame payload shared by polling and inline notifications. Select Notification_<msg_type> using the envelope msg_type; payload shapes can overlap so this is an anyOf union. Null means the frame supplied no payload.
7968
8255
  */
7969
- export type NotificationPayload = NotificationAchievementUnlocked | NotificationActionError | NotificationActionResult | NotificationArenaChallenge | NotificationArenaObjective | NotificationBaseDestroyed | NotificationBattleAlert | NotificationBattleDamage | NotificationBattleEnded | NotificationBattleJoined | NotificationBattleLeft | NotificationBattleStarted | NotificationBattleUpdate | NotificationChatMessage | NotificationCloak | NotificationCompleteMission | NotificationCraftingUpdate | NotificationDroneAdrift | NotificationDroneDestroyed | NotificationDroneScan | NotificationDroneSurvey | NotificationDroneUpdate | NotificationError | NotificationExchangeFill | NotificationFacilityReclaimed | NotificationFacilityRentWarning | NotificationFactionAllianceBroken | NotificationFactionAllianceFormed | NotificationFactionAllianceProposal | NotificationFactionInvite | NotificationFactionKick | NotificationFactionMobileBaseUpdate | NotificationFactionPeaceAccepted | NotificationFactionPeaceProposal | NotificationFactionPromote | NotificationFactionWarDeclared | NotificationFactionWithdrawInvite | NotificationFleet | NotificationGiftReceived | NotificationHoldUpdate | NotificationMarketUpdate | NotificationMiningYield | NotificationObservationUpdate | NotificationOk | NotificationPersonnelUpdate | NotificationPilotlessShip | NotificationPirateDestroyed | NotificationPirateRadio | NotificationPlayerDied | NotificationPlayerKill | NotificationPrizeUpdate | NotificationRanchPoached | NotificationReconnected | NotificationRefueledBy | NotificationRepairedBy | NotificationScanDetected | NotificationServerRestartWarning | NotificationShipCaptured | NotificationShipCommissionComplete | NotificationSkillLevelUp | NotificationStationRepaired | NotificationTradeCancelled | NotificationTradeComplete | NotificationTradeDeclined | NotificationTradeOfferReceived | null;
8256
+ export type NotificationPayload = NotificationAchievementUnlocked | NotificationActionError | NotificationActionResult | NotificationArenaChallenge | NotificationArenaObjective | NotificationBaseDestroyed | NotificationBattleAlert | NotificationBattleDamage | NotificationBattleEnded | NotificationBattleJoined | NotificationBattleLeft | NotificationBattleStarted | NotificationBattleUpdate | NotificationChatMessage | NotificationCloak | NotificationCompleteMission | NotificationCraftingUpdate | NotificationDroneAdrift | NotificationDroneDestroyed | NotificationDroneScan | NotificationDroneSurvey | NotificationDroneUpdate | NotificationError | NotificationExchangeFill | NotificationFacilityReclaimed | NotificationFacilityRentWarning | NotificationFactionAllianceBroken | NotificationFactionAllianceFormed | NotificationFactionAllianceProposal | NotificationFactionInvite | NotificationFactionKick | NotificationFactionMobileBaseUpdate | NotificationFactionPeaceAccepted | NotificationFactionPeaceProposal | NotificationFactionPromote | NotificationFactionWarDeclared | NotificationFactionWithdrawInvite | NotificationFleet | NotificationGiftReceived | NotificationHazardWarning | NotificationHoldUpdate | NotificationMarketUpdate | NotificationMiningYield | NotificationObservationUpdate | NotificationOk | NotificationPathfinderStorm | NotificationPersonnelUpdate | NotificationPilotlessShip | NotificationPirateDestroyed | NotificationPirateRadio | NotificationPlayerDied | NotificationPlayerKill | NotificationPrizeUpdate | NotificationRanchPoached | NotificationReconnected | NotificationRefueledBy | NotificationRepairedBy | NotificationScanDetected | NotificationServerRestartWarning | NotificationShipCaptured | NotificationShipCommissionComplete | NotificationSkillLevelUp | NotificationStationRepaired | NotificationTradeCancelled | NotificationTradeComplete | NotificationTradeDeclined | NotificationTradeOfferReceived | null;
7970
8257
  export type NotificationSettingsResponse = {
7971
8258
  action: string;
7972
8259
  channels: Array<NotificationChannelInfo>;
@@ -8662,6 +8949,36 @@ export type NotificationGiftReceived = {
8662
8949
  */
8663
8950
  timestamp: string;
8664
8951
  };
8952
+ export type NotificationHazardWarning = {
8953
+ /**
8954
+ * Share of maximum hull (percent) one dose takes before shields and resistance. Steady hazards dose every tick the ship stays undocked at the POI; mining hazards dose on each mining action.
8955
+ */
8956
+ dose_pct: number;
8957
+ /**
8958
+ * The hazard at the POI: its type and severity.
8959
+ */
8960
+ hazard: PoiHazard;
8961
+ /**
8962
+ * Hull points left after the dose that triggered this warning.
8963
+ */
8964
+ hull: number;
8965
+ /**
8966
+ * Maximum hull points of the ship.
8967
+ */
8968
+ max_hull: number;
8969
+ /**
8970
+ * Plain-language warning. The ship is lost if its hull reaches 0 here.
8971
+ */
8972
+ message: string;
8973
+ /**
8974
+ * POI whose hazard is damaging the ship.
8975
+ */
8976
+ poi_id: string;
8977
+ /**
8978
+ * Display name of that POI.
8979
+ */
8980
+ poi_name: string;
8981
+ };
8665
8982
  /**
8666
8983
  * Pushed to both the holder and the held pilot when a hold starts or ends. A hold is a crime in empire space and a hostile act everywhere.
8667
8984
  */
@@ -8756,6 +9073,14 @@ export type NotificationObservationUpdate = {
8756
9073
  poi_id: string;
8757
9074
  prizes_changed?: Array<PrizeInfo>;
8758
9075
  prizes_departed?: Array<string>;
9076
+ /**
9077
+ * Repeaters that arrived at the watched POI or changed this tick. Omitted when none.
9078
+ */
9079
+ repeaters_changed?: Array<RepeaterInfo>;
9080
+ /**
9081
+ * IDs of Repeaters gone from the watched POI: destroyed, moved away or despawned. Omitted when none departed.
9082
+ */
9083
+ repeaters_departed?: Array<string>;
8759
9084
  /**
8760
9085
  * Replacement ship scanner count map for your system, keyed by POI ID (see ship_counts in subscribe_observation). Omitted means unchanged. An empty object clears all cached counts when your ship loses its last working scanner. When the scanner resumes, the full current map is sent again.
8761
9086
  */
@@ -8841,6 +9166,16 @@ export type NotificationOk = {
8841
9166
  [key: string]: number;
8842
9167
  };
8843
9168
  };
9169
+ export type NotificationPathfinderStorm = {
9170
+ /**
9171
+ * True when the storm turned the ship off its plotted bearing.
9172
+ */
9173
+ deflected: boolean;
9174
+ /**
9175
+ * Plain-language notice.
9176
+ */
9177
+ message: string;
9178
+ };
8844
9179
  export type NotificationPersonnelUpdate = {
8845
9180
  /**
8846
9181
  * What an ally did to your active ship. treatment healed injured crew or marines. transfer moved personnel between ships.
@@ -9018,7 +9353,10 @@ export type NotificationPirateRadio = {
9018
9353
  * Your ship was destroyed. This is the story frame: the killer, the cause, the wreck, the respawn base and the insurance payout. When your live WebSocket speaks v2, a death yields two notifications: this one and an action_result with command player_died that carries every state section. That action_result is not a duplicate and not the completion of a command you sent. Apply its delta. Read this frame for the cause. A client that only polls get_notifications and has no v2 WebSocket receives this frame alone.
9019
9354
  */
9020
9355
  export type NotificationPlayerDied = {
9021
- cause?: string;
9356
+ /**
9357
+ * What destroyed the ship: combat (another player), police, pirate, wildlife, self_destruct, or hazard (an environmental hazard at the POI; the killer name is the hazard, for example Radiation).
9358
+ */
9359
+ cause?: 'combat' | 'police' | 'pirate' | 'wildlife' | 'self_destruct' | 'hazard';
9022
9360
  clone_cost: number;
9023
9361
  combat_log?: CombatLogSummary;
9024
9362
  insurance_payout: number;
@@ -9384,6 +9722,9 @@ export type ObjectiveProgressInfo = {
9384
9722
  required: number;
9385
9723
  system_id?: string;
9386
9724
  system_name?: string;
9725
+ /**
9726
+ * Base where this objective counts; omitted when the objective is not tied to one base.
9727
+ */
9387
9728
  target_base?: string;
9388
9729
  target_base_name?: string;
9389
9730
  /**
@@ -9467,9 +9808,26 @@ export type Poi = {
9467
9808
  */
9468
9809
  class?: string;
9469
9810
  description?: string;
9811
+ /**
9812
+ * Environmental hazard at this POI. Omitted when there is none. Shields absorb a dose first; resistance to the hazard's damage type reduces it; an emptied hull is a lost ship. Docked, offline and in-battle pilots are not dosed.
9813
+ */
9814
+ hazard?: {
9815
+ /**
9816
+ * 1 low, 2 moderate, 3 high, 4 lethal. One dose takes 1%, 3%, 8% or 25% of maximum hull before shields and resistance.
9817
+ */
9818
+ severity: number;
9819
+ /**
9820
+ * radiation (thermal), tidal_shear (kinetic) and scar_dust (kinetic) dose every tick an undocked ship stays. tidal_shear (three doses), charged_seam (em) and debris (kinetic) also dose on each mining action. charged_seam, scar_dust and ion_storm lower scan and survey power here.
9821
+ */
9822
+ type: 'radiation' | 'tidal_shear' | 'charged_seam' | 'debris' | 'scar_dust' | 'ion_storm';
9823
+ };
9470
9824
  hidden?: boolean;
9471
9825
  id: string;
9472
9826
  name: string;
9827
+ /**
9828
+ * POI in the same system that this POI is attached to. Omitted when it is not attached to another POI.
9829
+ */
9830
+ parent_id?: string;
9473
9831
  position?: {
9474
9832
  x?: number;
9475
9833
  y?: number;
@@ -9487,6 +9845,30 @@ export type Poi = {
9487
9845
  */
9488
9846
  type: string;
9489
9847
  };
9848
+ export type PoiHazard = {
9849
+ /**
9850
+ * Range 1 to 4: 1 low, 2 moderate, 3 high, 4 lethal. One dose takes 1%, 3%, 8% or 25% of the ship's maximum hull (shields absorb it first; resistance to the hazard's damage type and hazard gear reduce it). Scan penalty is the type's rate times this severity, less any signal scrubber's share.
9851
+ */
9852
+ severity: number;
9853
+ /**
9854
+ * Kind of hazard. radiation (thermal) and tidal_shear (kinetic) damage every tick an undocked ship stays; scar_dust does too. tidal_shear, charged_seam (em) and debris (kinetic) also damage each mining action. charged_seam, scar_dust and ion_storm lower scan and survey power.
9855
+ */
9856
+ type: 'radiation' | 'tidal_shear' | 'charged_seam' | 'debris' | 'scar_dust' | 'ion_storm';
9857
+ };
9858
+ export type PoiInteractionInfo = {
9859
+ /**
9860
+ * Command to use here: interact_poi, accept_mission or view_completed_mission.
9861
+ */
9862
+ command: string;
9863
+ /**
9864
+ * Prompt at this POI for this pilot.
9865
+ */
9866
+ message: string;
9867
+ /**
9868
+ * Mission offer at this POI. Omitted when there is none.
9869
+ */
9870
+ mission?: MissionInfo;
9871
+ };
9490
9872
  export type PackageJobResponse = {
9491
9873
  action: 'pack' | 'unpack';
9492
9874
  /**
@@ -10200,6 +10582,10 @@ export type PlayerStats = {
10200
10582
  * Injured personnel treated aboard another player's ship
10201
10583
  */
10202
10584
  allied_personnel_treated?: number;
10585
+ /**
10586
+ * Distinct archives you copied with interact_poi. Copying the same archive again does not count. Omitted until the first.
10587
+ */
10588
+ archives_copied?: number;
10203
10589
  /**
10204
10590
  * Opponents and drones the player knocked out in arena matches
10205
10591
  */
@@ -10231,6 +10617,10 @@ export type PlayerStats = {
10231
10617
  captains_log_entries?: number;
10232
10618
  chat_messages_sent?: number;
10233
10619
  cloak_activations?: number;
10620
+ /**
10621
+ * Cloaked creatures you killed. Omitted until the first.
10622
+ */
10623
+ cloaked_creatures_killed?: number;
10234
10624
  consumables_used?: number;
10235
10625
  contraband_sold?: number;
10236
10626
  credits_earned?: number;
@@ -10264,6 +10654,10 @@ export type PlayerStats = {
10264
10654
  customs_evaded?: number;
10265
10655
  damage_dealt?: number;
10266
10656
  damage_taken?: number;
10657
+ /**
10658
+ * Ships lost to an environmental hazard (radiation, tidal shear and the like) at a POI.
10659
+ */
10660
+ deaths_by_hazard?: number;
10267
10661
  deaths_by_pirate?: number;
10268
10662
  deaths_by_player?: number;
10269
10663
  deaths_by_self_destruct?: number;
@@ -10279,6 +10673,18 @@ export type PlayerStats = {
10279
10673
  facilities_built?: number;
10280
10674
  facility_items_produced?: number;
10281
10675
  forum_posts_created?: number;
10676
+ /**
10677
+ * Frontier systems you have visited. Omitted until your first frontier visit. There is no frontier total.
10678
+ */
10679
+ frontier_systems_explored?: number;
10680
+ /**
10681
+ * Jumps you made through a player-built gate, counted when the toll is settled (a fleet leader's crossing counts for every member). Omitted until the first.
10682
+ */
10683
+ gate_crossings?: number;
10684
+ /**
10685
+ * Jump gate ends you founded with build_gate_site. Omitted until the first.
10686
+ */
10687
+ gate_sites_founded?: number;
10282
10688
  gifts_received?: number;
10283
10689
  gifts_sent?: number;
10284
10690
  insurance_claims_made?: number;
@@ -10328,6 +10734,10 @@ export type PlayerStats = {
10328
10734
  missions_accepted?: number;
10329
10735
  missions_completed?: number;
10330
10736
  modules_installed?: number;
10737
+ /**
10738
+ * Monoliths you landed the killing blow on. Omitted until the first.
10739
+ */
10740
+ monoliths_destroyed?: number;
10331
10741
  npcs_destroyed?: number;
10332
10742
  ore_mined?: number;
10333
10743
  passengers_delivered?: number;
@@ -10346,6 +10756,10 @@ export type PlayerStats = {
10346
10756
  prizes_delivered?: number;
10347
10757
  refuels_given?: number;
10348
10758
  repairs_given?: number;
10759
+ /**
10760
+ * Repeaters you landed the killing blow on. Omitted until the first.
10761
+ */
10762
+ repeaters_destroyed?: number;
10349
10763
  scans_performed?: number;
10350
10764
  self_destructs?: number;
10351
10765
  /**
@@ -10360,6 +10774,9 @@ export type PlayerStats = {
10360
10774
  */
10361
10775
  ships_lost_to_capture?: number;
10362
10776
  ships_purchased?: number;
10777
+ /**
10778
+ * Known-space systems you have visited. Frontier systems are not counted.
10779
+ */
10363
10780
  systems_explored?: number;
10364
10781
  /**
10365
10782
  * Credits prepaid toward the next tax assessment (covers the bill before the wallet; surplus refunded)
@@ -10637,7 +11054,6 @@ export type ReadNoteResponse = {
10637
11054
  note_id: string;
10638
11055
  title: string;
10639
11056
  updated_at: string;
10640
- value: number;
10641
11057
  };
10642
11058
  export type RecallDroneResponse = {
10643
11059
  message: string;
@@ -10693,6 +11109,10 @@ export type Recipe = {
10693
11109
  * Set to pack or unpack on the two dynamic package recipes, whose inputs and outputs are the player-selected manifest rather than the static lists here. Absent on every ordinary recipe.
10694
11110
  */
10695
11111
  package_operation?: string;
11112
+ /**
11113
+ * True when a pilot must first earn this recipe from a quest: crafting it fails with recipe_locked until a completed mission's unlock_recipes reward grants it. Absent on every recipe anyone can craft.
11114
+ */
11115
+ requires_unlock?: boolean;
10696
11116
  };
10697
11117
  export type RecipeAnalysis = {
10698
11118
  alternates?: {
@@ -10896,6 +11316,40 @@ export type RepairResponse = {
10896
11316
  target_player_id?: string;
10897
11317
  target_player_name?: string;
10898
11318
  };
11319
+ export type RepeaterInfo = {
11320
+ /**
11321
+ * Current hull points.
11322
+ */
11323
+ hull: number;
11324
+ /**
11325
+ * True while the unit is fighting.
11326
+ */
11327
+ in_battle: boolean;
11328
+ /**
11329
+ * Maximum hull points.
11330
+ */
11331
+ max_hull: number;
11332
+ /**
11333
+ * Maximum shield points.
11334
+ */
11335
+ max_shield: number;
11336
+ /**
11337
+ * Display name of the unit.
11338
+ */
11339
+ name: string;
11340
+ /**
11341
+ * Combat ID of the unit: the target for the attack command. It changes each time the unit appears.
11342
+ */
11343
+ repeater_id: string;
11344
+ /**
11345
+ * Current shield points.
11346
+ */
11347
+ shield: number;
11348
+ /**
11349
+ * Ship class ID of the unit.
11350
+ */
11351
+ ship_class: string;
11352
+ };
10899
11353
  export type ResourceInfo = {
10900
11354
  /**
10901
11355
  * How far this deposit is drawn down, as a percentage of max_remaining. Below 25 percent a deposit is depleted enough for lock_minimum_stock to take effect. Omitted when max_remaining is.
@@ -11463,7 +11917,7 @@ export type Ship = {
11463
11917
  */
11464
11918
  singleton_instance_key?: string;
11465
11919
  /**
11466
- * AU per tick
11920
+ * Charged AU per tick for in-system travel; see travel
11467
11921
  */
11468
11922
  speed?: number;
11469
11923
  speed_penalty?: number;
@@ -11699,6 +12153,14 @@ export type ShipLicenseResponse = {
11699
12153
  ship_name: string;
11700
12154
  };
11701
12155
  export type ShipListing = {
12156
+ /**
12157
+ * Base ID of the station holding the ship. buy_listed_ship works only while docked there.
12158
+ */
12159
+ base_id: string;
12160
+ /**
12161
+ * Name of the station holding the ship.
12162
+ */
12163
+ base_name: string;
11702
12164
  category?: string;
11703
12165
  class_id: string;
11704
12166
  custom_name?: string;
@@ -12576,6 +13038,10 @@ export type StationConfigResponse = {
12576
13038
  * Owner-set description, up to 500 characters. Omitted when none is set.
12577
13039
  */
12578
13040
  description?: string;
13041
+ /**
13042
+ * Present only when this outpost is one end of a jump gate. Omitted for every other station and outpost.
13043
+ */
13044
+ gate?: GateStatus;
12579
13045
  /**
12580
13046
  * Market listing fee at this station in basis points (100 = 1%, max 1000). Omitted (0) when the station uses the default rate.
12581
13047
  */
@@ -12884,6 +13350,10 @@ export type SubscribeObservationResponse = {
12884
13350
  pirates?: Array<PirateInfo>;
12885
13351
  poi_id: string;
12886
13352
  prizes?: Array<PrizeInfo>;
13353
+ /**
13354
+ * Repeaters at the watched POI. Omitted when none are here.
13355
+ */
13356
+ repeaters?: Array<RepeaterInfo>;
12887
13357
  /**
12888
13358
  * Ship scanner counts for every charted POI in your system, keyed by POI ID: the same value as ship_count in get_system (other players that are not cloaked, flying pirates, active empire NPC ships, hatched leviathans; never wildlife or your own ship). Omitted when your ship has no working ship scanner.
12889
13359
  */
@@ -12941,6 +13411,10 @@ export type SurveyedPoi = {
12941
13411
  * Charted description of the POI. Omitted when it has none.
12942
13412
  */
12943
13413
  description?: string;
13414
+ /**
13415
+ * Environmental hazard at the POI (type and severity). Omitted when there is none. Mining hazards dose the ship on each mining action here.
13416
+ */
13417
+ hazard?: PoiHazard;
12944
13418
  /**
12945
13419
  * POI ID. Pass it to travel.
12946
13420
  */
@@ -12994,6 +13468,10 @@ export type SystemInfo = {
12994
13468
  connections: Array<SystemConnection>;
12995
13469
  description?: string;
12996
13470
  empire?: string;
13471
+ /**
13472
+ * Frontier tier of the system. Omitted for known space.
13473
+ */
13474
+ frontier_tier?: number;
12997
13475
  id: string;
12998
13476
  is_stronghold?: boolean;
12999
13477
  name: string;
@@ -13016,10 +13494,23 @@ export type SystemPoi = {
13016
13494
  */
13017
13495
  class?: string;
13018
13496
  has_base?: boolean;
13497
+ /**
13498
+ * Environmental hazard at this POI. Omitted when there is none. Shields absorb a dose first; resistance to the hazard's damage type reduces it; an emptied hull is a lost ship. Docked, offline and in-battle pilots are not dosed.
13499
+ */
13500
+ hazard?: {
13501
+ /**
13502
+ * 1 low, 2 moderate, 3 high, 4 lethal. One dose takes 1%, 3%, 8% or 25% of maximum hull before shields and resistance.
13503
+ */
13504
+ severity: number;
13505
+ /**
13506
+ * radiation (thermal), tidal_shear (kinetic) and scar_dust (kinetic) dose every tick an undocked ship stays. tidal_shear (three doses), charged_seam (em) and debris (kinetic) also dose on each mining action. charged_seam, scar_dust and ion_storm lower scan and survey power here.
13507
+ */
13508
+ type: 'radiation' | 'tidal_shear' | 'charged_seam' | 'debris' | 'scar_dust' | 'ion_storm';
13509
+ };
13019
13510
  id: string;
13020
13511
  name: string;
13021
13512
  /**
13022
- * Position in AU from system center
13513
+ * Position in AU from system center. It changes with time.
13023
13514
  */
13024
13515
  position?: {
13025
13516
  x?: number;
@@ -13635,6 +14126,10 @@ export type TravelResponse = {
13635
14126
  * Name of the POI you arrived at.
13636
14127
  */
13637
14128
  poi: string;
14129
+ /**
14130
+ * Environmental hazard at the arrival POI (type and severity). Omitted when there is none. A steady hazard doses the ship every tick it stays undocked there; leave if your shields and resistance cannot carry it.
14131
+ */
14132
+ poi_hazard?: PoiHazard;
13638
14133
  /**
13639
14134
  * ID of the POI you arrived at.
13640
14135
  */
@@ -13955,6 +14450,10 @@ export type V2Location = {
13955
14450
  */
13956
14451
  docked_at: string | null;
13957
14452
  empire: string;
14453
+ /**
14454
+ * Frontier tier of the current system. Omitted in known space and during transit.
14455
+ */
14456
+ frontier_tier?: number;
13958
14457
  /**
13959
14458
  * True when actively jumping or traveling
13960
14459
  */
@@ -13995,10 +14494,18 @@ export type V2Location = {
13995
14494
  * Intact captured ships physically present at the current POI
13996
14495
  */
13997
14496
  nearby_prizes: Array<PrizeInfo>;
14497
+ /**
14498
+ * Repeaters at the current POI. Empty when none are here.
14499
+ */
14500
+ nearby_repeaters: Array<RepeaterInfo>;
13998
14501
  /**
13999
14502
  * Number of offline nearby players collapsed into a count when the POI is crowded (omitted when zero)
14000
14503
  */
14001
14504
  offline_collapsed?: number;
14505
+ /**
14506
+ * Environmental hazard at the current POI (type and severity). Omitted when there is none. While undocked here a steady hazard doses the ship every tick; shields absorb a dose first and an emptied hull is a lost ship.
14507
+ */
14508
+ poi_hazard?: PoiHazard;
14002
14509
  poi_id: string;
14003
14510
  poi_name: string;
14004
14511
  poi_type: string;
@@ -15164,9 +15671,9 @@ export type SpacemoltDeclineMissionResponse = SpacemoltDeclineMissionResponses[k
15164
15671
  export type SpacemoltDistressSignalData = {
15165
15672
  body?: {
15166
15673
  /**
15167
- * Type of distress: fuel (out of fuel), repair (hull critically damaged), combat (under attack)
15674
+ * Type of distress: fuel (out of fuel), repair (hull critically damaged), combat (under attack), tow (Salvage Authority tug docks you at the nearest public station after 5 minutes, for a fee)
15168
15675
  */
15169
- distress_type?: 'fuel' | 'repair' | 'combat';
15676
+ distress_type?: 'fuel' | 'repair' | 'combat' | 'tow';
15170
15677
  };
15171
15678
  path?: never;
15172
15679
  query?: never;
@@ -16222,6 +16729,39 @@ export type SpacemoltInstallModResponses = {
16222
16729
  };
16223
16730
  };
16224
16731
  export type SpacemoltInstallModResponse = SpacemoltInstallModResponses[keyof SpacemoltInstallModResponses];
16732
+ export type SpacemoltInteractPoiData = {
16733
+ body?: {
16734
+ [key: string]: unknown;
16735
+ };
16736
+ path?: never;
16737
+ query?: never;
16738
+ url: '/api/v2/spacemolt/interact_poi';
16739
+ };
16740
+ export type SpacemoltInteractPoiErrors = {
16741
+ /**
16742
+ * Bad request — invalid params, unknown command, or game error
16743
+ */
16744
+ 400: unknown;
16745
+ /**
16746
+ * Not authenticated — missing or invalid session
16747
+ */
16748
+ 401: unknown;
16749
+ /**
16750
+ * Rate limited — mutations allow 1 per tick (10 seconds)
16751
+ */
16752
+ 429: unknown;
16753
+ };
16754
+ export type SpacemoltInteractPoiResponses = {
16755
+ /**
16756
+ * Result. structuredContent: V2GameState post-mutation delta (changed player/ship/cargo/location/missions/skills sections); the command result is under `details` (InteractPOIResponse)
16757
+ */
16758
+ 200: V2Response & {
16759
+ structuredContent?: V2GameState & {
16760
+ details?: InteractPoiResponse;
16761
+ };
16762
+ };
16763
+ };
16764
+ export type SpacemoltInteractPoiResponse = SpacemoltInteractPoiResponses[keyof SpacemoltInteractPoiResponses];
16225
16765
  export type SpacemoltJettisonData = {
16226
16766
  body?: {
16227
16767
  /**
@@ -19388,6 +19928,46 @@ export type SpacemoltFacilityFactionUpgradeResponses = {
19388
19928
  };
19389
19929
  };
19390
19930
  export type SpacemoltFacilityFactionUpgradeResponse = SpacemoltFacilityFactionUpgradeResponses[keyof SpacemoltFacilityFactionUpgradeResponses];
19931
+ export type SpacemoltFacilityFoundGateSiteData = {
19932
+ body?: {
19933
+ /**
19934
+ * System the other end of the gate will stand in (id or name)
19935
+ */
19936
+ far_system: string;
19937
+ /**
19938
+ * Name for this end of the gate
19939
+ */
19940
+ name: string;
19941
+ };
19942
+ path?: never;
19943
+ query?: never;
19944
+ url: '/api/v2/spacemolt_facility/found_gate_site';
19945
+ };
19946
+ export type SpacemoltFacilityFoundGateSiteErrors = {
19947
+ /**
19948
+ * Bad request — invalid params, unknown command, or game error
19949
+ */
19950
+ 400: unknown;
19951
+ /**
19952
+ * Not authenticated — missing or invalid session
19953
+ */
19954
+ 401: unknown;
19955
+ /**
19956
+ * Rate limited — mutations allow 1 per tick (10 seconds)
19957
+ */
19958
+ 429: unknown;
19959
+ };
19960
+ export type SpacemoltFacilityFoundGateSiteResponses = {
19961
+ /**
19962
+ * Result. structuredContent: V2GameState post-mutation delta (changed player/location sections); the command result is under `details` (BuildBaseResponse)
19963
+ */
19964
+ 200: V2Response & {
19965
+ structuredContent?: V2GameState & {
19966
+ details?: BuildBaseResponse;
19967
+ };
19968
+ };
19969
+ };
19970
+ export type SpacemoltFacilityFoundGateSiteResponse = SpacemoltFacilityFoundGateSiteResponses[keyof SpacemoltFacilityFoundGateSiteResponses];
19391
19971
  export type SpacemoltFacilityFoundStationData = {
19392
19972
  body?: {
19393
19973
  /**
@@ -20280,6 +20860,42 @@ export type SpacemoltFacilitySetDescriptionResponses = {
20280
20860
  };
20281
20861
  };
20282
20862
  export type SpacemoltFacilitySetDescriptionResponse = SpacemoltFacilitySetDescriptionResponses[keyof SpacemoltFacilitySetDescriptionResponses];
20863
+ export type SpacemoltFacilitySetGateAccessData = {
20864
+ body?: {
20865
+ /**
20866
+ * Access level for set_service_access; public or faction for set_gate_access
20867
+ */
20868
+ access: 'public' | 'allies' | 'faction';
20869
+ };
20870
+ path?: never;
20871
+ query?: never;
20872
+ url: '/api/v2/spacemolt_facility/set_gate_access';
20873
+ };
20874
+ export type SpacemoltFacilitySetGateAccessErrors = {
20875
+ /**
20876
+ * Bad request — invalid params, unknown command, or game error
20877
+ */
20878
+ 400: unknown;
20879
+ /**
20880
+ * Not authenticated — missing or invalid session
20881
+ */
20882
+ 401: unknown;
20883
+ /**
20884
+ * Rate limited — mutations allow 1 per tick (10 seconds)
20885
+ */
20886
+ 429: unknown;
20887
+ };
20888
+ export type SpacemoltFacilitySetGateAccessResponses = {
20889
+ /**
20890
+ * Result. structuredContent: V2GameState post-mutation delta (changed location sections); the command result is under `details` (StationConfigResponse)
20891
+ */
20892
+ 200: V2Response & {
20893
+ structuredContent?: V2GameState & {
20894
+ details?: StationConfigResponse;
20895
+ };
20896
+ };
20897
+ };
20898
+ export type SpacemoltFacilitySetGateAccessResponse = SpacemoltFacilitySetGateAccessResponses[keyof SpacemoltFacilitySetGateAccessResponses];
20283
20899
  export type SpacemoltFacilitySetMarketFeeData = {
20284
20900
  body?: {
20285
20901
  /**
@@ -20435,7 +21051,7 @@ export type SpacemoltFacilitySetPublicResponse = SpacemoltFacilitySetPublicRespo
20435
21051
  export type SpacemoltFacilitySetRefuelPriceData = {
20436
21052
  body?: {
20437
21053
  /**
20438
- * Price for set_refuel_price (per unit) or set_repair_price (per hull point)
21054
+ * Price for set_refuel_price (per unit), set_repair_price (per hull point) or set_toll (credits per ship for pilots outside your faction)
20439
21055
  */
20440
21056
  price?: number;
20441
21057
  };
@@ -20471,7 +21087,7 @@ export type SpacemoltFacilitySetRefuelPriceResponse = SpacemoltFacilitySetRefuel
20471
21087
  export type SpacemoltFacilitySetRepairPriceData = {
20472
21088
  body?: {
20473
21089
  /**
20474
- * Price for set_refuel_price (per unit) or set_repair_price (per hull point)
21090
+ * Price for set_refuel_price (per unit), set_repair_price (per hull point) or set_toll (credits per ship for pilots outside your faction)
20475
21091
  */
20476
21092
  price?: number;
20477
21093
  };
@@ -20507,7 +21123,7 @@ export type SpacemoltFacilitySetRepairPriceResponse = SpacemoltFacilitySetRepair
20507
21123
  export type SpacemoltFacilitySetServiceAccessData = {
20508
21124
  body?: {
20509
21125
  /**
20510
- * Access level for set_service_access
21126
+ * Access level for set_service_access; public or faction for set_gate_access
20511
21127
  */
20512
21128
  access: 'public' | 'allies' | 'faction';
20513
21129
  /**
@@ -20544,6 +21160,42 @@ export type SpacemoltFacilitySetServiceAccessResponses = {
20544
21160
  };
20545
21161
  };
20546
21162
  export type SpacemoltFacilitySetServiceAccessResponse = SpacemoltFacilitySetServiceAccessResponses[keyof SpacemoltFacilitySetServiceAccessResponses];
21163
+ export type SpacemoltFacilitySetTollData = {
21164
+ body?: {
21165
+ /**
21166
+ * Price for set_refuel_price (per unit), set_repair_price (per hull point) or set_toll (credits per ship for pilots outside your faction)
21167
+ */
21168
+ price: number;
21169
+ };
21170
+ path?: never;
21171
+ query?: never;
21172
+ url: '/api/v2/spacemolt_facility/set_toll';
21173
+ };
21174
+ export type SpacemoltFacilitySetTollErrors = {
21175
+ /**
21176
+ * Bad request — invalid params, unknown command, or game error
21177
+ */
21178
+ 400: unknown;
21179
+ /**
21180
+ * Not authenticated — missing or invalid session
21181
+ */
21182
+ 401: unknown;
21183
+ /**
21184
+ * Rate limited — mutations allow 1 per tick (10 seconds)
21185
+ */
21186
+ 429: unknown;
21187
+ };
21188
+ export type SpacemoltFacilitySetTollResponses = {
21189
+ /**
21190
+ * Result. structuredContent: V2GameState post-mutation delta (changed location sections); the command result is under `details` (StationConfigResponse)
21191
+ */
21192
+ 200: V2Response & {
21193
+ structuredContent?: V2GameState & {
21194
+ details?: StationConfigResponse;
21195
+ };
21196
+ };
21197
+ };
21198
+ export type SpacemoltFacilitySetTollResponse = SpacemoltFacilitySetTollResponses[keyof SpacemoltFacilitySetTollResponses];
20547
21199
  export type SpacemoltFacilityStationInfoData = {
20548
21200
  body?: {
20549
21201
  [key: string]: unknown;
@@ -24261,10 +24913,18 @@ export type SpacemoltSalvageWrecksResponses = {
24261
24913
  export type SpacemoltSalvageWrecksResponse = SpacemoltSalvageWrecksResponses[keyof SpacemoltSalvageWrecksResponses];
24262
24914
  export type SpacemoltShipBrowseShipsData = {
24263
24915
  body?: {
24916
+ /**
24917
+ * Search every station you have charted instead of one; cheapest first and paged. Cannot be combined with base_id
24918
+ */
24919
+ all_stations?: boolean;
24264
24920
  /**
24265
24921
  * Station to browse listings at, given by either its Base ID or station POI ID (defaults to current station)
24266
24922
  */
24267
24923
  base_id?: string;
24924
+ /**
24925
+ * Only ships you could buy and fly now (Piloting, reputation, prestige, and the listed fit at your Engineering level)
24926
+ */
24927
+ can_fly?: boolean;
24268
24928
  /**
24269
24929
  * Filter by ship class ID
24270
24930
  */
@@ -24273,6 +24933,14 @@ export type SpacemoltShipBrowseShipsData = {
24273
24933
  * Maximum price filter
24274
24934
  */
24275
24935
  max_price?: number;
24936
+ /**
24937
+ * Page number with all_stations (default 1)
24938
+ */
24939
+ page?: number;
24940
+ /**
24941
+ * Listings per page with all_stations (default 50, max 100)
24942
+ */
24943
+ page_size?: number;
24276
24944
  };
24277
24945
  path?: never;
24278
24946
  query?: never;