@spacemolt/lib 17.0.0 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMMANDS.md +8 -4
- package/README.md +2 -1
- package/dist/account.d.ts +1 -1
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +27 -5
- package/dist/generated/notifications.gen.d.ts +5 -3
- package/dist/generated/openapi/types.gen.d.ts +573 -7
- package/dist/index.js +58 -6
- package/dist/index.js.map +7 -7
- package/dist/state/observation.d.ts +6 -4
- package/package.json +1 -1
|
@@ -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 once the owners were warned that this end holds fewer than 3 cycles of upkeep, or while building that it stalled; 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 (0-4); 4 means built
|
|
986
|
+
*/
|
|
987
|
+
phase?: number;
|
|
988
|
+
/**
|
|
989
|
+
* While building: facility cycles of the current phase done. Once built: upkeep cycles paid so far
|
|
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>;
|
|
@@ -2170,6 +2219,10 @@ export type CatalogRecipe = {
|
|
|
2170
2219
|
* 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
2220
|
*/
|
|
2172
2221
|
produced_by_facility_ids: Array<string>;
|
|
2222
|
+
/**
|
|
2223
|
+
* 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.
|
|
2224
|
+
*/
|
|
2225
|
+
requires_unlock?: boolean;
|
|
2173
2226
|
};
|
|
2174
2227
|
export type CatalogResponse = {
|
|
2175
2228
|
analysis?: RecipeAnalysis;
|
|
@@ -2392,6 +2445,10 @@ export type ClientPoiInfo = {
|
|
|
2392
2445
|
* True when a base (a station, an outpost, or a mobile base) is at this POI.
|
|
2393
2446
|
*/
|
|
2394
2447
|
has_base: boolean;
|
|
2448
|
+
/**
|
|
2449
|
+
* 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.
|
|
2450
|
+
*/
|
|
2451
|
+
hazard?: PoiHazard;
|
|
2395
2452
|
/**
|
|
2396
2453
|
* POI ID. Pass it to travel or find_route.
|
|
2397
2454
|
*/
|
|
@@ -2417,6 +2474,10 @@ export type ClientSystemInfo = {
|
|
|
2417
2474
|
connections: Array<ClientConnectionInfo>;
|
|
2418
2475
|
description?: string;
|
|
2419
2476
|
empire?: string;
|
|
2477
|
+
/**
|
|
2478
|
+
* Frontier depth tier: 1 for near frontier or 2 for deep frontier. Omitted for known space. Revealed only after entry or receipt of charted faction intel.
|
|
2479
|
+
*/
|
|
2480
|
+
frontier_tier?: number;
|
|
2420
2481
|
id: string;
|
|
2421
2482
|
is_stronghold: boolean;
|
|
2422
2483
|
name: string;
|
|
@@ -2679,6 +2740,10 @@ export type CompleteMissionResponse = {
|
|
|
2679
2740
|
};
|
|
2680
2741
|
message: string;
|
|
2681
2742
|
mission_id: string;
|
|
2743
|
+
/**
|
|
2744
|
+
* Recipe IDs this completion taught you. You can craft them from now on. Omitted when the mission teaches none or you already knew them.
|
|
2745
|
+
*/
|
|
2746
|
+
recipes_unlocked?: Array<string>;
|
|
2682
2747
|
reputation_changes?: {
|
|
2683
2748
|
[key: string]: number;
|
|
2684
2749
|
};
|
|
@@ -4710,6 +4775,9 @@ export type FactionInfoResponse = {
|
|
|
4710
4775
|
};
|
|
4711
4776
|
export type FactionIntelStatusResponse = {
|
|
4712
4777
|
contributors?: number;
|
|
4778
|
+
/**
|
|
4779
|
+
* Percentage (0-100) of known-space systems the faction pool has intel on. Frontier systems are left out.
|
|
4780
|
+
*/
|
|
4713
4781
|
coverage_pct: number;
|
|
4714
4782
|
intel_level: number;
|
|
4715
4783
|
most_recent_tick?: number;
|
|
@@ -4717,6 +4785,9 @@ export type FactionIntelStatusResponse = {
|
|
|
4717
4785
|
systems_known: number;
|
|
4718
4786
|
top_contributions?: number;
|
|
4719
4787
|
top_contributor?: string;
|
|
4788
|
+
/**
|
|
4789
|
+
* Number of known-space systems. Frontier systems are not counted.
|
|
4790
|
+
*/
|
|
4720
4791
|
total_systems?: number;
|
|
4721
4792
|
};
|
|
4722
4793
|
export type FactionInvite = {
|
|
@@ -5901,6 +5972,78 @@ export type GaragedShipEntry = {
|
|
|
5901
5972
|
depositor_name?: string;
|
|
5902
5973
|
ship_id: string;
|
|
5903
5974
|
};
|
|
5975
|
+
export type GateStatus = {
|
|
5976
|
+
/**
|
|
5977
|
+
* True when this end has finished all construction phases. The gate opens only when both ends are built and both can pay upkeep.
|
|
5978
|
+
*/
|
|
5979
|
+
built: boolean;
|
|
5980
|
+
/**
|
|
5981
|
+
* Upkeep cycles until this end takes its next entangler from faction storage: 1 means the next cycle that pays upkeep. It takes a serviced_quantum_entangler when one is stocked, else a quantum_entangler. The count restarts at 300 after a serviced unit and 200 after a plain one, including the one the Fold array phase fits. Cycles the gate is closed do not count. Present only once built.
|
|
5982
|
+
*/
|
|
5983
|
+
entangler_due_in_cycles?: number;
|
|
5984
|
+
/**
|
|
5985
|
+
* True when only members of the owning faction may cross. Kept the same at both ends.
|
|
5986
|
+
*/
|
|
5987
|
+
faction_only: boolean;
|
|
5988
|
+
/**
|
|
5989
|
+
* System the other end of this gate stands in.
|
|
5990
|
+
*/
|
|
5991
|
+
far_system_id: string;
|
|
5992
|
+
/**
|
|
5993
|
+
* Display name of far_system_id.
|
|
5994
|
+
*/
|
|
5995
|
+
far_system_name: string;
|
|
5996
|
+
/**
|
|
5997
|
+
* True when the gate is open and jump can cross it. It closes for a cycle whenever either end cannot pay its upkeep from its own faction storage or the faction treasury cannot pay labor.
|
|
5998
|
+
*/
|
|
5999
|
+
online: boolean;
|
|
6000
|
+
/**
|
|
6001
|
+
* Base id of the other end. Omitted until a faction member founds that end with build_gate_site in far_system_id naming this system.
|
|
6002
|
+
*/
|
|
6003
|
+
partner_base_id?: string;
|
|
6004
|
+
/**
|
|
6005
|
+
* True when the other end has finished all construction phases. False when it is still building or not founded yet.
|
|
6006
|
+
*/
|
|
6007
|
+
partner_built: boolean;
|
|
6008
|
+
/**
|
|
6009
|
+
* Construction phase this end is in (1 to phases_total). Omitted once built.
|
|
6010
|
+
*/
|
|
6011
|
+
phase?: number;
|
|
6012
|
+
/**
|
|
6013
|
+
* Facility cycles the current phase takes in total. Omitted once built.
|
|
6014
|
+
*/
|
|
6015
|
+
phase_cycles?: number;
|
|
6016
|
+
/**
|
|
6017
|
+
* Facility cycles of the current phase completed so far. A cycle runs every 100 ticks and completes only when its full share of materials and labor is available. Omitted once built or when 0.
|
|
6018
|
+
*/
|
|
6019
|
+
phase_cycles_done?: number;
|
|
6020
|
+
/**
|
|
6021
|
+
* Credits the current phase takes from the faction treasury each facility cycle as labor, paid to the nearest station's citizens. A cycle the treasury cannot pay stalls. Omitted once built.
|
|
6022
|
+
*/
|
|
6023
|
+
phase_labor_per_cycle?: number;
|
|
6024
|
+
/**
|
|
6025
|
+
* Item id to the quantity of it the current phase still needs beyond what is already in this end's faction storage. Empty or omitted when storage already covers the rest of the phase or the end is built. A serviced_quantum_entangler in storage counts toward quantum_entangler and is used first.
|
|
6026
|
+
*/
|
|
6027
|
+
phase_materials_left?: {
|
|
6028
|
+
[key: string]: number;
|
|
6029
|
+
};
|
|
6030
|
+
/**
|
|
6031
|
+
* Name of the current construction phase. Omitted once built.
|
|
6032
|
+
*/
|
|
6033
|
+
phase_name?: string;
|
|
6034
|
+
/**
|
|
6035
|
+
* Number of construction phases each end goes through.
|
|
6036
|
+
*/
|
|
6037
|
+
phases_total: number;
|
|
6038
|
+
/**
|
|
6039
|
+
* Credits charged per ship to pilots outside the owning faction for each crossing. 0 means free. Paid into the owning faction treasury. Kept the same at both ends.
|
|
6040
|
+
*/
|
|
6041
|
+
toll: number;
|
|
6042
|
+
/**
|
|
6043
|
+
* How many more facility cycles of upkeep items this end's faction storage holds (counted up to 1000). Present only once built; omitted when 0. Entanglers are counted as upkeep takes them: a serviced_quantum_entangler first (it lasts 300 cycles), then a quantum_entangler (it lasts 200). Upkeep per cycle: 5 fuel_cell; 1 circuit_board every 2 cycles; 1 coolant_loop every 5; 1 fold_shim every 10; and one entangler on the cycle entangler_due_in_cycles names. A cycle missing any of it closes the gate and takes nothing. Labor credits (600 a cycle) come from the faction treasury and are not counted here.
|
|
6044
|
+
*/
|
|
6045
|
+
upkeep_cycles_covered?: number;
|
|
6046
|
+
};
|
|
5904
6047
|
export type GeneratorResponse = {
|
|
5905
6048
|
/**
|
|
5906
6049
|
* 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 +6291,7 @@ export type GetNearbyResponse = {
|
|
|
6148
6291
|
arena_npcs: Array<ArenaNpcInfo>;
|
|
6149
6292
|
count: number;
|
|
6150
6293
|
/**
|
|
6151
|
-
* Total wildlife
|
|
6294
|
+
* 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
6295
|
*/
|
|
6153
6296
|
creature_count: number;
|
|
6154
6297
|
/**
|
|
@@ -6164,6 +6307,14 @@ export type GetNearbyResponse = {
|
|
|
6164
6307
|
poi_id: string;
|
|
6165
6308
|
prize_count: number;
|
|
6166
6309
|
prizes: Array<PrizeInfo>;
|
|
6310
|
+
/**
|
|
6311
|
+
* Number of entries in repeaters.
|
|
6312
|
+
*/
|
|
6313
|
+
repeater_count: number;
|
|
6314
|
+
/**
|
|
6315
|
+
* Frontier Repeaters at this POI. Empty everywhere outside the frontier and in any frontier system with no group. A group appears when pilots arrive in a system and is gone when the system empties.
|
|
6316
|
+
*/
|
|
6317
|
+
repeaters: Array<RepeaterInfo>;
|
|
6167
6318
|
unknown_signature?: boolean;
|
|
6168
6319
|
};
|
|
6169
6320
|
export type GetNotesResponse = {
|
|
@@ -6195,6 +6346,10 @@ export type GetPoiResponse = {
|
|
|
6195
6346
|
fuel_price?: number;
|
|
6196
6347
|
fuel_price_all_in?: number;
|
|
6197
6348
|
fuel_tax_per_unit?: number;
|
|
6349
|
+
/**
|
|
6350
|
+
* 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.
|
|
6351
|
+
*/
|
|
6352
|
+
interaction?: PoiInteractionInfo;
|
|
6198
6353
|
kind: 'normal';
|
|
6199
6354
|
poi: Poi;
|
|
6200
6355
|
resources?: Array<ResourceInfo>;
|
|
@@ -6211,8 +6366,14 @@ export type GetPoiTransitResponse = {
|
|
|
6211
6366
|
in_transit: boolean;
|
|
6212
6367
|
kind: 'transit';
|
|
6213
6368
|
message: string;
|
|
6369
|
+
/**
|
|
6370
|
+
* Ticks until arrival; -1 for a blind Pathfinder drift whose arrival time is unknown
|
|
6371
|
+
*/
|
|
6214
6372
|
ticks_remaining: number;
|
|
6215
6373
|
to_poi?: string;
|
|
6374
|
+
/**
|
|
6375
|
+
* Destination system ID; omitted for intra-system travel or a blind Pathfinder drift or an uncharted frontier wormhole destination
|
|
6376
|
+
*/
|
|
6216
6377
|
to_system?: string;
|
|
6217
6378
|
transit_type: string;
|
|
6218
6379
|
};
|
|
@@ -6253,7 +6414,13 @@ export type GetSystemTransitResponse = {
|
|
|
6253
6414
|
in_transit: boolean;
|
|
6254
6415
|
kind: 'transit';
|
|
6255
6416
|
message: string;
|
|
6417
|
+
/**
|
|
6418
|
+
* Ticks until arrival; -1 for a blind Pathfinder drift whose arrival time is unknown
|
|
6419
|
+
*/
|
|
6256
6420
|
ticks_remaining: number;
|
|
6421
|
+
/**
|
|
6422
|
+
* Destination system ID; empty for a blind Pathfinder drift or an uncharted frontier wormhole destination
|
|
6423
|
+
*/
|
|
6257
6424
|
to_system: string;
|
|
6258
6425
|
transit_type: string;
|
|
6259
6426
|
};
|
|
@@ -6637,6 +6804,38 @@ export type IntelResource = {
|
|
|
6637
6804
|
resource_id: string;
|
|
6638
6805
|
richness: number;
|
|
6639
6806
|
};
|
|
6807
|
+
export type InteractPoiResponse = {
|
|
6808
|
+
/**
|
|
6809
|
+
* One-time completion receipt with earned XP and recovered navigation text. Omitted when this interaction does not complete a mission. Read the retained text with view_completed_mission after completion.
|
|
6810
|
+
*/
|
|
6811
|
+
completion?: CompleteMissionResponse;
|
|
6812
|
+
/**
|
|
6813
|
+
* True when this pilot retains this archive's data. The copy survives abandonment and ship loss. Omitted for interactions that do not copy an archive.
|
|
6814
|
+
*/
|
|
6815
|
+
data_copied?: boolean;
|
|
6816
|
+
/**
|
|
6817
|
+
* Items this interaction moved into your cargo, keyed by item ID with quantities: a mission's data-recovery objective at this site handed them over. Omitted when nothing was recovered. Each objective hands its items over once.
|
|
6818
|
+
*/
|
|
6819
|
+
items_recovered?: {
|
|
6820
|
+
[key: string]: number;
|
|
6821
|
+
};
|
|
6822
|
+
/**
|
|
6823
|
+
* Result of this archive interaction. It contains recovered account text only when the corresponding interaction succeeds.
|
|
6824
|
+
*/
|
|
6825
|
+
message: string;
|
|
6826
|
+
/**
|
|
6827
|
+
* Local mission offer when this pilot can accept one. Acceptance remains a separate accept_mission action.
|
|
6828
|
+
*/
|
|
6829
|
+
mission?: MissionInfo;
|
|
6830
|
+
/**
|
|
6831
|
+
* People this interaction seated in your ship's passenger berths: a mission's data-recovery objective at this site carries them. Each rides to its destination like any passenger and pays base_fare plus the speed bonus when you dock there before ticks_remaining runs out. base_fare is 0 when the destination cannot fund the fare. Omitted when nobody boarded. Each objective seats its passengers once. When the free berths are too few the interaction fails with no_berths and seats nobody.
|
|
6832
|
+
*/
|
|
6833
|
+
passengers_boarded?: Array<PassengerView>;
|
|
6834
|
+
/**
|
|
6835
|
+
* ID of the charted POI where this pilot is currently present. Remote and uncharted interactions are rejected.
|
|
6836
|
+
*/
|
|
6837
|
+
poi_id: string;
|
|
6838
|
+
};
|
|
6640
6839
|
export type Item = {
|
|
6641
6840
|
base_value: number;
|
|
6642
6841
|
category: string;
|
|
@@ -6940,6 +7139,10 @@ export type JumpResponse = {
|
|
|
6940
7139
|
* 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
7140
|
*/
|
|
6942
7141
|
poi?: string;
|
|
7142
|
+
/**
|
|
7143
|
+
* 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.
|
|
7144
|
+
*/
|
|
7145
|
+
poi_hazard?: PoiHazard;
|
|
6943
7146
|
/**
|
|
6944
7147
|
* Display name of the system you arrived in.
|
|
6945
7148
|
*/
|
|
@@ -7200,6 +7403,10 @@ export type MapSystem = {
|
|
|
7200
7403
|
connections?: Array<string>;
|
|
7201
7404
|
description?: string;
|
|
7202
7405
|
empire?: string;
|
|
7406
|
+
/**
|
|
7407
|
+
* Frontier depth tier: 1 for near frontier or 2 for deep frontier. Omitted for known space. Uncharted frontier systems are excluded from maps and search.
|
|
7408
|
+
*/
|
|
7409
|
+
frontier_tier?: number;
|
|
7203
7410
|
is_stronghold?: boolean;
|
|
7204
7411
|
name: string;
|
|
7205
7412
|
poi_count?: number;
|
|
@@ -7215,6 +7422,10 @@ export type MapSystemInfo = {
|
|
|
7215
7422
|
connections: Array<string>;
|
|
7216
7423
|
description?: string;
|
|
7217
7424
|
empire?: string;
|
|
7425
|
+
/**
|
|
7426
|
+
* Frontier depth tier: 1 for near frontier or 2 for deep frontier. Omitted for known space. Uncharted frontier systems are excluded from maps and search.
|
|
7427
|
+
*/
|
|
7428
|
+
frontier_tier?: number;
|
|
7218
7429
|
is_stronghold?: boolean;
|
|
7219
7430
|
name: string;
|
|
7220
7431
|
poi_count: number;
|
|
@@ -7446,6 +7657,10 @@ export type MissionRewardsInfo = {
|
|
|
7446
7657
|
skill_xp?: {
|
|
7447
7658
|
[key: string]: number;
|
|
7448
7659
|
};
|
|
7660
|
+
/**
|
|
7661
|
+
* 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.
|
|
7662
|
+
*/
|
|
7663
|
+
unlock_recipes?: Array<string>;
|
|
7449
7664
|
};
|
|
7450
7665
|
export type MissionUnlock = {
|
|
7451
7666
|
/**
|
|
@@ -7966,7 +8181,7 @@ export type NotificationChannelInfo = {
|
|
|
7966
8181
|
/**
|
|
7967
8182
|
* 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
8183
|
*/
|
|
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;
|
|
8184
|
+
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
8185
|
export type NotificationSettingsResponse = {
|
|
7971
8186
|
action: string;
|
|
7972
8187
|
channels: Array<NotificationChannelInfo>;
|
|
@@ -8662,6 +8877,36 @@ export type NotificationGiftReceived = {
|
|
|
8662
8877
|
*/
|
|
8663
8878
|
timestamp: string;
|
|
8664
8879
|
};
|
|
8880
|
+
export type NotificationHazardWarning = {
|
|
8881
|
+
/**
|
|
8882
|
+
* 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.
|
|
8883
|
+
*/
|
|
8884
|
+
dose_pct: number;
|
|
8885
|
+
/**
|
|
8886
|
+
* The hazard at the POI: its type and severity.
|
|
8887
|
+
*/
|
|
8888
|
+
hazard: PoiHazard;
|
|
8889
|
+
/**
|
|
8890
|
+
* Hull points left after the dose that triggered this warning.
|
|
8891
|
+
*/
|
|
8892
|
+
hull: number;
|
|
8893
|
+
/**
|
|
8894
|
+
* Maximum hull points of the ship.
|
|
8895
|
+
*/
|
|
8896
|
+
max_hull: number;
|
|
8897
|
+
/**
|
|
8898
|
+
* Plain-language warning. The ship is lost if its hull reaches 0 here.
|
|
8899
|
+
*/
|
|
8900
|
+
message: string;
|
|
8901
|
+
/**
|
|
8902
|
+
* POI whose hazard is damaging the ship.
|
|
8903
|
+
*/
|
|
8904
|
+
poi_id: string;
|
|
8905
|
+
/**
|
|
8906
|
+
* Display name of that POI.
|
|
8907
|
+
*/
|
|
8908
|
+
poi_name: string;
|
|
8909
|
+
};
|
|
8665
8910
|
/**
|
|
8666
8911
|
* 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
8912
|
*/
|
|
@@ -8756,6 +9001,14 @@ export type NotificationObservationUpdate = {
|
|
|
8756
9001
|
poi_id: string;
|
|
8757
9002
|
prizes_changed?: Array<PrizeInfo>;
|
|
8758
9003
|
prizes_departed?: Array<string>;
|
|
9004
|
+
/**
|
|
9005
|
+
* Frontier Repeaters that arrived at the watched POI or whose visible state (hull, shield, in_battle) changed this tick. Omitted when none changed.
|
|
9006
|
+
*/
|
|
9007
|
+
repeaters_changed?: Array<RepeaterInfo>;
|
|
9008
|
+
/**
|
|
9009
|
+
* IDs of Repeaters gone from the watched POI: destroyed, moved away or despawned. Omitted when none departed.
|
|
9010
|
+
*/
|
|
9011
|
+
repeaters_departed?: Array<string>;
|
|
8759
9012
|
/**
|
|
8760
9013
|
* 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
9014
|
*/
|
|
@@ -8841,6 +9094,16 @@ export type NotificationOk = {
|
|
|
8841
9094
|
[key: string]: number;
|
|
8842
9095
|
};
|
|
8843
9096
|
};
|
|
9097
|
+
export type NotificationPathfinderStorm = {
|
|
9098
|
+
/**
|
|
9099
|
+
* True when the storm turned the ship off its plotted bearing. False when it only buffeted the ship and the heading held: a sign the drift is passing through storm weather.
|
|
9100
|
+
*/
|
|
9101
|
+
deflected: boolean;
|
|
9102
|
+
/**
|
|
9103
|
+
* Plain-language notice. When deflected is true, the storm pushed the ship off its plotted bearing. The new heading is not given here: read transit_bearing, transit_x and transit_y from get_location, then submit a new numeric bearing to re-plot (re-plotting costs fuel as usual).
|
|
9104
|
+
*/
|
|
9105
|
+
message: string;
|
|
9106
|
+
};
|
|
8844
9107
|
export type NotificationPersonnelUpdate = {
|
|
8845
9108
|
/**
|
|
8846
9109
|
* What an ally did to your active ship. treatment healed injured crew or marines. transfer moved personnel between ships.
|
|
@@ -9018,7 +9281,10 @@ export type NotificationPirateRadio = {
|
|
|
9018
9281
|
* 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
9282
|
*/
|
|
9020
9283
|
export type NotificationPlayerDied = {
|
|
9021
|
-
|
|
9284
|
+
/**
|
|
9285
|
+
* 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).
|
|
9286
|
+
*/
|
|
9287
|
+
cause?: 'combat' | 'police' | 'pirate' | 'wildlife' | 'self_destruct' | 'hazard';
|
|
9022
9288
|
clone_cost: number;
|
|
9023
9289
|
combat_log?: CombatLogSummary;
|
|
9024
9290
|
insurance_payout: number;
|
|
@@ -9467,6 +9733,19 @@ export type Poi = {
|
|
|
9467
9733
|
*/
|
|
9468
9734
|
class?: string;
|
|
9469
9735
|
description?: string;
|
|
9736
|
+
/**
|
|
9737
|
+
* 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.
|
|
9738
|
+
*/
|
|
9739
|
+
hazard?: {
|
|
9740
|
+
/**
|
|
9741
|
+
* 1 low, 2 moderate, 3 high, 4 lethal. One dose takes 1%, 3%, 8% or 25% of maximum hull before shields and resistance.
|
|
9742
|
+
*/
|
|
9743
|
+
severity: number;
|
|
9744
|
+
/**
|
|
9745
|
+
* 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.
|
|
9746
|
+
*/
|
|
9747
|
+
type: 'radiation' | 'tidal_shear' | 'charged_seam' | 'debris' | 'scar_dust' | 'ion_storm';
|
|
9748
|
+
};
|
|
9470
9749
|
hidden?: boolean;
|
|
9471
9750
|
id: string;
|
|
9472
9751
|
name: string;
|
|
@@ -9487,6 +9766,30 @@ export type Poi = {
|
|
|
9487
9766
|
*/
|
|
9488
9767
|
type: string;
|
|
9489
9768
|
};
|
|
9769
|
+
export type PoiHazard = {
|
|
9770
|
+
/**
|
|
9771
|
+
* 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 reduces it). Scan penalty is the type's rate times this severity.
|
|
9772
|
+
*/
|
|
9773
|
+
severity: number;
|
|
9774
|
+
/**
|
|
9775
|
+
* 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.
|
|
9776
|
+
*/
|
|
9777
|
+
type: 'radiation' | 'tidal_shear' | 'charged_seam' | 'debris' | 'scar_dust' | 'ion_storm';
|
|
9778
|
+
};
|
|
9779
|
+
export type PoiInteractionInfo = {
|
|
9780
|
+
/**
|
|
9781
|
+
* Command to use at this POI. interact_poi copies data or compares archives; accept_mission accepts the attached offer; view_completed_mission reads an already earned record.
|
|
9782
|
+
*/
|
|
9783
|
+
command: string;
|
|
9784
|
+
/**
|
|
9785
|
+
* The local archive's current prompt for this pilot. Reading this prompt does not copy data or grant rewards.
|
|
9786
|
+
*/
|
|
9787
|
+
message: string;
|
|
9788
|
+
/**
|
|
9789
|
+
* Private mission offer available at this POI. Omitted when there is no eligible local offer. Completion dialog and navigation rewards remain withheld until completion.
|
|
9790
|
+
*/
|
|
9791
|
+
mission?: MissionInfo;
|
|
9792
|
+
};
|
|
9490
9793
|
export type PackageJobResponse = {
|
|
9491
9794
|
action: 'pack' | 'unpack';
|
|
9492
9795
|
/**
|
|
@@ -10200,6 +10503,10 @@ export type PlayerStats = {
|
|
|
10200
10503
|
* Injured personnel treated aboard another player's ship
|
|
10201
10504
|
*/
|
|
10202
10505
|
allied_personnel_treated?: number;
|
|
10506
|
+
/**
|
|
10507
|
+
* Distinct archives you copied with interact_poi. Copying the same archive again does not count. Omitted until the first.
|
|
10508
|
+
*/
|
|
10509
|
+
archives_copied?: number;
|
|
10203
10510
|
/**
|
|
10204
10511
|
* Opponents and drones the player knocked out in arena matches
|
|
10205
10512
|
*/
|
|
@@ -10231,6 +10538,10 @@ export type PlayerStats = {
|
|
|
10231
10538
|
captains_log_entries?: number;
|
|
10232
10539
|
chat_messages_sent?: number;
|
|
10233
10540
|
cloak_activations?: number;
|
|
10541
|
+
/**
|
|
10542
|
+
* Cloaked creatures you killed. Omitted until the first.
|
|
10543
|
+
*/
|
|
10544
|
+
cloaked_creatures_killed?: number;
|
|
10234
10545
|
consumables_used?: number;
|
|
10235
10546
|
contraband_sold?: number;
|
|
10236
10547
|
credits_earned?: number;
|
|
@@ -10264,6 +10575,10 @@ export type PlayerStats = {
|
|
|
10264
10575
|
customs_evaded?: number;
|
|
10265
10576
|
damage_dealt?: number;
|
|
10266
10577
|
damage_taken?: number;
|
|
10578
|
+
/**
|
|
10579
|
+
* Ships lost to an environmental hazard (radiation, tidal shear and the like) at a POI.
|
|
10580
|
+
*/
|
|
10581
|
+
deaths_by_hazard?: number;
|
|
10267
10582
|
deaths_by_pirate?: number;
|
|
10268
10583
|
deaths_by_player?: number;
|
|
10269
10584
|
deaths_by_self_destruct?: number;
|
|
@@ -10279,6 +10594,18 @@ export type PlayerStats = {
|
|
|
10279
10594
|
facilities_built?: number;
|
|
10280
10595
|
facility_items_produced?: number;
|
|
10281
10596
|
forum_posts_created?: number;
|
|
10597
|
+
/**
|
|
10598
|
+
* Frontier systems you have visited. Omitted until your first frontier visit. There is no frontier total.
|
|
10599
|
+
*/
|
|
10600
|
+
frontier_systems_explored?: number;
|
|
10601
|
+
/**
|
|
10602
|
+
* 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.
|
|
10603
|
+
*/
|
|
10604
|
+
gate_crossings?: number;
|
|
10605
|
+
/**
|
|
10606
|
+
* Jump gate ends you founded with build_gate_site. Omitted until the first.
|
|
10607
|
+
*/
|
|
10608
|
+
gate_sites_founded?: number;
|
|
10282
10609
|
gifts_received?: number;
|
|
10283
10610
|
gifts_sent?: number;
|
|
10284
10611
|
insurance_claims_made?: number;
|
|
@@ -10328,6 +10655,10 @@ export type PlayerStats = {
|
|
|
10328
10655
|
missions_accepted?: number;
|
|
10329
10656
|
missions_completed?: number;
|
|
10330
10657
|
modules_installed?: number;
|
|
10658
|
+
/**
|
|
10659
|
+
* Repeater Monoliths you landed the killing blow on; each also counts in repeaters_destroyed. Omitted until the first.
|
|
10660
|
+
*/
|
|
10661
|
+
monoliths_destroyed?: number;
|
|
10331
10662
|
npcs_destroyed?: number;
|
|
10332
10663
|
ore_mined?: number;
|
|
10333
10664
|
passengers_delivered?: number;
|
|
@@ -10346,6 +10677,10 @@ export type PlayerStats = {
|
|
|
10346
10677
|
prizes_delivered?: number;
|
|
10347
10678
|
refuels_given?: number;
|
|
10348
10679
|
repairs_given?: number;
|
|
10680
|
+
/**
|
|
10681
|
+
* Repeaters you landed the killing blow on. Omitted until the first.
|
|
10682
|
+
*/
|
|
10683
|
+
repeaters_destroyed?: number;
|
|
10349
10684
|
scans_performed?: number;
|
|
10350
10685
|
self_destructs?: number;
|
|
10351
10686
|
/**
|
|
@@ -10360,6 +10695,9 @@ export type PlayerStats = {
|
|
|
10360
10695
|
*/
|
|
10361
10696
|
ships_lost_to_capture?: number;
|
|
10362
10697
|
ships_purchased?: number;
|
|
10698
|
+
/**
|
|
10699
|
+
* Known-space systems you have visited. Frontier systems are not counted.
|
|
10700
|
+
*/
|
|
10363
10701
|
systems_explored?: number;
|
|
10364
10702
|
/**
|
|
10365
10703
|
* Credits prepaid toward the next tax assessment (covers the bill before the wallet; surplus refunded)
|
|
@@ -10693,6 +11031,10 @@ export type Recipe = {
|
|
|
10693
11031
|
* 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
11032
|
*/
|
|
10695
11033
|
package_operation?: string;
|
|
11034
|
+
/**
|
|
11035
|
+
* 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.
|
|
11036
|
+
*/
|
|
11037
|
+
requires_unlock?: boolean;
|
|
10696
11038
|
};
|
|
10697
11039
|
export type RecipeAnalysis = {
|
|
10698
11040
|
alternates?: {
|
|
@@ -10896,6 +11238,40 @@ export type RepairResponse = {
|
|
|
10896
11238
|
target_player_id?: string;
|
|
10897
11239
|
target_player_name?: string;
|
|
10898
11240
|
};
|
|
11241
|
+
export type RepeaterInfo = {
|
|
11242
|
+
/**
|
|
11243
|
+
* Current hull points.
|
|
11244
|
+
*/
|
|
11245
|
+
hull: number;
|
|
11246
|
+
/**
|
|
11247
|
+
* True while the unit is fighting. Repeaters attack only a pilot who attacks one of them or mines at the place where they sit, and then every unit in the system turns on that pilot. Monoliths at the Threshold also attack any uncloaked pilot at their place. Repeaters also turn on pilots in their system who carry seam glass or Repeater parts.
|
|
11248
|
+
*/
|
|
11249
|
+
in_battle: boolean;
|
|
11250
|
+
/**
|
|
11251
|
+
* Maximum hull points.
|
|
11252
|
+
*/
|
|
11253
|
+
max_hull: number;
|
|
11254
|
+
/**
|
|
11255
|
+
* Maximum shield points.
|
|
11256
|
+
*/
|
|
11257
|
+
max_shield: number;
|
|
11258
|
+
/**
|
|
11259
|
+
* Display name, Repeater followed by the class: Sliver, Pane, Spire or Monolith.
|
|
11260
|
+
*/
|
|
11261
|
+
name: string;
|
|
11262
|
+
/**
|
|
11263
|
+
* Combat ID of the unit: the target for the attack command and the player_id it carries in battle payloads. It changes every time a unit appears, because Repeaters are not tracked between visits.
|
|
11264
|
+
*/
|
|
11265
|
+
repeater_id: string;
|
|
11266
|
+
/**
|
|
11267
|
+
* Current shield points.
|
|
11268
|
+
*/
|
|
11269
|
+
shield: number;
|
|
11270
|
+
/**
|
|
11271
|
+
* Ship class ID of the unit: sliver, pane, spire or monolith. Look the class up in the ship catalog for its traits.
|
|
11272
|
+
*/
|
|
11273
|
+
ship_class: string;
|
|
11274
|
+
};
|
|
10899
11275
|
export type ResourceInfo = {
|
|
10900
11276
|
/**
|
|
10901
11277
|
* 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.
|
|
@@ -12576,6 +12952,10 @@ export type StationConfigResponse = {
|
|
|
12576
12952
|
* Owner-set description, up to 500 characters. Omitted when none is set.
|
|
12577
12953
|
*/
|
|
12578
12954
|
description?: string;
|
|
12955
|
+
/**
|
|
12956
|
+
* Present only when this outpost is one end of a jump gate. Omitted for every other station and outpost.
|
|
12957
|
+
*/
|
|
12958
|
+
gate?: GateStatus;
|
|
12579
12959
|
/**
|
|
12580
12960
|
* Market listing fee at this station in basis points (100 = 1%, max 1000). Omitted (0) when the station uses the default rate.
|
|
12581
12961
|
*/
|
|
@@ -12884,6 +13264,10 @@ export type SubscribeObservationResponse = {
|
|
|
12884
13264
|
pirates?: Array<PirateInfo>;
|
|
12885
13265
|
poi_id: string;
|
|
12886
13266
|
prizes?: Array<PrizeInfo>;
|
|
13267
|
+
/**
|
|
13268
|
+
* Frontier Repeaters at the watched POI, the same set get_nearby returns there. Omitted when none are here. Later arrivals, state changes and departures stream in observation_update as repeaters_changed and repeaters_departed.
|
|
13269
|
+
*/
|
|
13270
|
+
repeaters?: Array<RepeaterInfo>;
|
|
12887
13271
|
/**
|
|
12888
13272
|
* 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
13273
|
*/
|
|
@@ -12941,6 +13325,10 @@ export type SurveyedPoi = {
|
|
|
12941
13325
|
* Charted description of the POI. Omitted when it has none.
|
|
12942
13326
|
*/
|
|
12943
13327
|
description?: string;
|
|
13328
|
+
/**
|
|
13329
|
+
* Environmental hazard at the POI (type and severity). Omitted when there is none. Mining hazards dose the ship on each mining action here.
|
|
13330
|
+
*/
|
|
13331
|
+
hazard?: PoiHazard;
|
|
12944
13332
|
/**
|
|
12945
13333
|
* POI ID. Pass it to travel.
|
|
12946
13334
|
*/
|
|
@@ -12994,6 +13382,10 @@ export type SystemInfo = {
|
|
|
12994
13382
|
connections: Array<SystemConnection>;
|
|
12995
13383
|
description?: string;
|
|
12996
13384
|
empire?: string;
|
|
13385
|
+
/**
|
|
13386
|
+
* Frontier depth tier: 1 for near frontier or 2 for deep frontier. Omitted for known space. Available after entry or charted faction intel.
|
|
13387
|
+
*/
|
|
13388
|
+
frontier_tier?: number;
|
|
12997
13389
|
id: string;
|
|
12998
13390
|
is_stronghold?: boolean;
|
|
12999
13391
|
name: string;
|
|
@@ -13016,6 +13408,19 @@ export type SystemPoi = {
|
|
|
13016
13408
|
*/
|
|
13017
13409
|
class?: string;
|
|
13018
13410
|
has_base?: boolean;
|
|
13411
|
+
/**
|
|
13412
|
+
* 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.
|
|
13413
|
+
*/
|
|
13414
|
+
hazard?: {
|
|
13415
|
+
/**
|
|
13416
|
+
* 1 low, 2 moderate, 3 high, 4 lethal. One dose takes 1%, 3%, 8% or 25% of maximum hull before shields and resistance.
|
|
13417
|
+
*/
|
|
13418
|
+
severity: number;
|
|
13419
|
+
/**
|
|
13420
|
+
* 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.
|
|
13421
|
+
*/
|
|
13422
|
+
type: 'radiation' | 'tidal_shear' | 'charged_seam' | 'debris' | 'scar_dust' | 'ion_storm';
|
|
13423
|
+
};
|
|
13019
13424
|
id: string;
|
|
13020
13425
|
name: string;
|
|
13021
13426
|
/**
|
|
@@ -13635,6 +14040,10 @@ export type TravelResponse = {
|
|
|
13635
14040
|
* Name of the POI you arrived at.
|
|
13636
14041
|
*/
|
|
13637
14042
|
poi: string;
|
|
14043
|
+
/**
|
|
14044
|
+
* 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.
|
|
14045
|
+
*/
|
|
14046
|
+
poi_hazard?: PoiHazard;
|
|
13638
14047
|
/**
|
|
13639
14048
|
* ID of the POI you arrived at.
|
|
13640
14049
|
*/
|
|
@@ -13955,6 +14364,10 @@ export type V2Location = {
|
|
|
13955
14364
|
*/
|
|
13956
14365
|
docked_at: string | null;
|
|
13957
14366
|
empire: string;
|
|
14367
|
+
/**
|
|
14368
|
+
* Current system's frontier depth tier: 1 for near frontier or 2 for deep frontier. Omitted in known space and during transit.
|
|
14369
|
+
*/
|
|
14370
|
+
frontier_tier?: number;
|
|
13958
14371
|
/**
|
|
13959
14372
|
* True when actively jumping or traveling
|
|
13960
14373
|
*/
|
|
@@ -13995,10 +14408,18 @@ export type V2Location = {
|
|
|
13995
14408
|
* Intact captured ships physically present at the current POI
|
|
13996
14409
|
*/
|
|
13997
14410
|
nearby_prizes: Array<PrizeInfo>;
|
|
14411
|
+
/**
|
|
14412
|
+
* Frontier Repeaters at the current POI, the same set get_nearby returns. Empty when none are here.
|
|
14413
|
+
*/
|
|
14414
|
+
nearby_repeaters: Array<RepeaterInfo>;
|
|
13998
14415
|
/**
|
|
13999
14416
|
* Number of offline nearby players collapsed into a count when the POI is crowded (omitted when zero)
|
|
14000
14417
|
*/
|
|
14001
14418
|
offline_collapsed?: number;
|
|
14419
|
+
/**
|
|
14420
|
+
* 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.
|
|
14421
|
+
*/
|
|
14422
|
+
poi_hazard?: PoiHazard;
|
|
14002
14423
|
poi_id: string;
|
|
14003
14424
|
poi_name: string;
|
|
14004
14425
|
poi_type: string;
|
|
@@ -16222,6 +16643,39 @@ export type SpacemoltInstallModResponses = {
|
|
|
16222
16643
|
};
|
|
16223
16644
|
};
|
|
16224
16645
|
export type SpacemoltInstallModResponse = SpacemoltInstallModResponses[keyof SpacemoltInstallModResponses];
|
|
16646
|
+
export type SpacemoltInteractPoiData = {
|
|
16647
|
+
body?: {
|
|
16648
|
+
[key: string]: unknown;
|
|
16649
|
+
};
|
|
16650
|
+
path?: never;
|
|
16651
|
+
query?: never;
|
|
16652
|
+
url: '/api/v2/spacemolt/interact_poi';
|
|
16653
|
+
};
|
|
16654
|
+
export type SpacemoltInteractPoiErrors = {
|
|
16655
|
+
/**
|
|
16656
|
+
* Bad request — invalid params, unknown command, or game error
|
|
16657
|
+
*/
|
|
16658
|
+
400: unknown;
|
|
16659
|
+
/**
|
|
16660
|
+
* Not authenticated — missing or invalid session
|
|
16661
|
+
*/
|
|
16662
|
+
401: unknown;
|
|
16663
|
+
/**
|
|
16664
|
+
* Rate limited — mutations allow 1 per tick (10 seconds)
|
|
16665
|
+
*/
|
|
16666
|
+
429: unknown;
|
|
16667
|
+
};
|
|
16668
|
+
export type SpacemoltInteractPoiResponses = {
|
|
16669
|
+
/**
|
|
16670
|
+
* Result. structuredContent: V2GameState post-mutation delta (changed player/ship/cargo/location/missions/skills sections); the command result is under `details` (InteractPOIResponse)
|
|
16671
|
+
*/
|
|
16672
|
+
200: V2Response & {
|
|
16673
|
+
structuredContent?: V2GameState & {
|
|
16674
|
+
details?: InteractPoiResponse;
|
|
16675
|
+
};
|
|
16676
|
+
};
|
|
16677
|
+
};
|
|
16678
|
+
export type SpacemoltInteractPoiResponse = SpacemoltInteractPoiResponses[keyof SpacemoltInteractPoiResponses];
|
|
16225
16679
|
export type SpacemoltJettisonData = {
|
|
16226
16680
|
body?: {
|
|
16227
16681
|
/**
|
|
@@ -19388,6 +19842,46 @@ export type SpacemoltFacilityFactionUpgradeResponses = {
|
|
|
19388
19842
|
};
|
|
19389
19843
|
};
|
|
19390
19844
|
export type SpacemoltFacilityFactionUpgradeResponse = SpacemoltFacilityFactionUpgradeResponses[keyof SpacemoltFacilityFactionUpgradeResponses];
|
|
19845
|
+
export type SpacemoltFacilityFoundGateSiteData = {
|
|
19846
|
+
body?: {
|
|
19847
|
+
/**
|
|
19848
|
+
* System the other end of the gate will stand in (id or name)
|
|
19849
|
+
*/
|
|
19850
|
+
far_system: string;
|
|
19851
|
+
/**
|
|
19852
|
+
* Name for this end of the gate
|
|
19853
|
+
*/
|
|
19854
|
+
name: string;
|
|
19855
|
+
};
|
|
19856
|
+
path?: never;
|
|
19857
|
+
query?: never;
|
|
19858
|
+
url: '/api/v2/spacemolt_facility/found_gate_site';
|
|
19859
|
+
};
|
|
19860
|
+
export type SpacemoltFacilityFoundGateSiteErrors = {
|
|
19861
|
+
/**
|
|
19862
|
+
* Bad request — invalid params, unknown command, or game error
|
|
19863
|
+
*/
|
|
19864
|
+
400: unknown;
|
|
19865
|
+
/**
|
|
19866
|
+
* Not authenticated — missing or invalid session
|
|
19867
|
+
*/
|
|
19868
|
+
401: unknown;
|
|
19869
|
+
/**
|
|
19870
|
+
* Rate limited — mutations allow 1 per tick (10 seconds)
|
|
19871
|
+
*/
|
|
19872
|
+
429: unknown;
|
|
19873
|
+
};
|
|
19874
|
+
export type SpacemoltFacilityFoundGateSiteResponses = {
|
|
19875
|
+
/**
|
|
19876
|
+
* Result. structuredContent: V2GameState post-mutation delta (changed player/location sections); the command result is under `details` (BuildBaseResponse)
|
|
19877
|
+
*/
|
|
19878
|
+
200: V2Response & {
|
|
19879
|
+
structuredContent?: V2GameState & {
|
|
19880
|
+
details?: BuildBaseResponse;
|
|
19881
|
+
};
|
|
19882
|
+
};
|
|
19883
|
+
};
|
|
19884
|
+
export type SpacemoltFacilityFoundGateSiteResponse = SpacemoltFacilityFoundGateSiteResponses[keyof SpacemoltFacilityFoundGateSiteResponses];
|
|
19391
19885
|
export type SpacemoltFacilityFoundStationData = {
|
|
19392
19886
|
body?: {
|
|
19393
19887
|
/**
|
|
@@ -20280,6 +20774,42 @@ export type SpacemoltFacilitySetDescriptionResponses = {
|
|
|
20280
20774
|
};
|
|
20281
20775
|
};
|
|
20282
20776
|
export type SpacemoltFacilitySetDescriptionResponse = SpacemoltFacilitySetDescriptionResponses[keyof SpacemoltFacilitySetDescriptionResponses];
|
|
20777
|
+
export type SpacemoltFacilitySetGateAccessData = {
|
|
20778
|
+
body?: {
|
|
20779
|
+
/**
|
|
20780
|
+
* Access level for set_service_access; public or faction for set_gate_access
|
|
20781
|
+
*/
|
|
20782
|
+
access: 'public' | 'allies' | 'faction';
|
|
20783
|
+
};
|
|
20784
|
+
path?: never;
|
|
20785
|
+
query?: never;
|
|
20786
|
+
url: '/api/v2/spacemolt_facility/set_gate_access';
|
|
20787
|
+
};
|
|
20788
|
+
export type SpacemoltFacilitySetGateAccessErrors = {
|
|
20789
|
+
/**
|
|
20790
|
+
* Bad request — invalid params, unknown command, or game error
|
|
20791
|
+
*/
|
|
20792
|
+
400: unknown;
|
|
20793
|
+
/**
|
|
20794
|
+
* Not authenticated — missing or invalid session
|
|
20795
|
+
*/
|
|
20796
|
+
401: unknown;
|
|
20797
|
+
/**
|
|
20798
|
+
* Rate limited — mutations allow 1 per tick (10 seconds)
|
|
20799
|
+
*/
|
|
20800
|
+
429: unknown;
|
|
20801
|
+
};
|
|
20802
|
+
export type SpacemoltFacilitySetGateAccessResponses = {
|
|
20803
|
+
/**
|
|
20804
|
+
* Result. structuredContent: V2GameState post-mutation delta (changed location sections); the command result is under `details` (StationConfigResponse)
|
|
20805
|
+
*/
|
|
20806
|
+
200: V2Response & {
|
|
20807
|
+
structuredContent?: V2GameState & {
|
|
20808
|
+
details?: StationConfigResponse;
|
|
20809
|
+
};
|
|
20810
|
+
};
|
|
20811
|
+
};
|
|
20812
|
+
export type SpacemoltFacilitySetGateAccessResponse = SpacemoltFacilitySetGateAccessResponses[keyof SpacemoltFacilitySetGateAccessResponses];
|
|
20283
20813
|
export type SpacemoltFacilitySetMarketFeeData = {
|
|
20284
20814
|
body?: {
|
|
20285
20815
|
/**
|
|
@@ -20435,7 +20965,7 @@ export type SpacemoltFacilitySetPublicResponse = SpacemoltFacilitySetPublicRespo
|
|
|
20435
20965
|
export type SpacemoltFacilitySetRefuelPriceData = {
|
|
20436
20966
|
body?: {
|
|
20437
20967
|
/**
|
|
20438
|
-
* Price for set_refuel_price (per unit)
|
|
20968
|
+
* 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
20969
|
*/
|
|
20440
20970
|
price?: number;
|
|
20441
20971
|
};
|
|
@@ -20471,7 +21001,7 @@ export type SpacemoltFacilitySetRefuelPriceResponse = SpacemoltFacilitySetRefuel
|
|
|
20471
21001
|
export type SpacemoltFacilitySetRepairPriceData = {
|
|
20472
21002
|
body?: {
|
|
20473
21003
|
/**
|
|
20474
|
-
* Price for set_refuel_price (per unit)
|
|
21004
|
+
* 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
21005
|
*/
|
|
20476
21006
|
price?: number;
|
|
20477
21007
|
};
|
|
@@ -20507,7 +21037,7 @@ export type SpacemoltFacilitySetRepairPriceResponse = SpacemoltFacilitySetRepair
|
|
|
20507
21037
|
export type SpacemoltFacilitySetServiceAccessData = {
|
|
20508
21038
|
body?: {
|
|
20509
21039
|
/**
|
|
20510
|
-
* Access level for set_service_access
|
|
21040
|
+
* Access level for set_service_access; public or faction for set_gate_access
|
|
20511
21041
|
*/
|
|
20512
21042
|
access: 'public' | 'allies' | 'faction';
|
|
20513
21043
|
/**
|
|
@@ -20544,6 +21074,42 @@ export type SpacemoltFacilitySetServiceAccessResponses = {
|
|
|
20544
21074
|
};
|
|
20545
21075
|
};
|
|
20546
21076
|
export type SpacemoltFacilitySetServiceAccessResponse = SpacemoltFacilitySetServiceAccessResponses[keyof SpacemoltFacilitySetServiceAccessResponses];
|
|
21077
|
+
export type SpacemoltFacilitySetTollData = {
|
|
21078
|
+
body?: {
|
|
21079
|
+
/**
|
|
21080
|
+
* Price for set_refuel_price (per unit), set_repair_price (per hull point) or set_toll (credits per ship for pilots outside your faction)
|
|
21081
|
+
*/
|
|
21082
|
+
price: number;
|
|
21083
|
+
};
|
|
21084
|
+
path?: never;
|
|
21085
|
+
query?: never;
|
|
21086
|
+
url: '/api/v2/spacemolt_facility/set_toll';
|
|
21087
|
+
};
|
|
21088
|
+
export type SpacemoltFacilitySetTollErrors = {
|
|
21089
|
+
/**
|
|
21090
|
+
* Bad request — invalid params, unknown command, or game error
|
|
21091
|
+
*/
|
|
21092
|
+
400: unknown;
|
|
21093
|
+
/**
|
|
21094
|
+
* Not authenticated — missing or invalid session
|
|
21095
|
+
*/
|
|
21096
|
+
401: unknown;
|
|
21097
|
+
/**
|
|
21098
|
+
* Rate limited — mutations allow 1 per tick (10 seconds)
|
|
21099
|
+
*/
|
|
21100
|
+
429: unknown;
|
|
21101
|
+
};
|
|
21102
|
+
export type SpacemoltFacilitySetTollResponses = {
|
|
21103
|
+
/**
|
|
21104
|
+
* Result. structuredContent: V2GameState post-mutation delta (changed location sections); the command result is under `details` (StationConfigResponse)
|
|
21105
|
+
*/
|
|
21106
|
+
200: V2Response & {
|
|
21107
|
+
structuredContent?: V2GameState & {
|
|
21108
|
+
details?: StationConfigResponse;
|
|
21109
|
+
};
|
|
21110
|
+
};
|
|
21111
|
+
};
|
|
21112
|
+
export type SpacemoltFacilitySetTollResponse = SpacemoltFacilitySetTollResponses[keyof SpacemoltFacilitySetTollResponses];
|
|
20547
21113
|
export type SpacemoltFacilityStationInfoData = {
|
|
20548
21114
|
body?: {
|
|
20549
21115
|
[key: string]: unknown;
|