@spacemolt/lib 16.6.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -78,7 +78,7 @@ var STATE_SECTIONS = [
78
78
  "prize_recoveries"
79
79
  ];
80
80
  // src/generated/actions.gen.ts
81
- var GENERATED_SPEC_VERSION = "v0.683.0";
81
+ var GENERATED_SPEC_VERSION = "v0.686.0";
82
82
  var ACTIONS = {
83
83
  "spacemolt_arena/accept": {
84
84
  tool: "spacemolt_arena",
@@ -250,7 +250,7 @@ var ACTIONS = {
250
250
  params: [
251
251
  { name: "id", type: "string", required: false, description: "Instance ID of the fitted weapon or mining gun to reload (use get_ship to see module instance IDs)", positional: 0 },
252
252
  { name: "target", type: "string", required: false, description: "Item ID of ammo to load from cargo (must match the module's ammo type). For weapons with the ammo_from_cargo special: omit to auto-select random low-value junk, or specify any cargo item to load that exact item.", positional: 1 },
253
- { name: "weapons", type: "string[]", required: false, description: "Bulk reload: array of {weapon_instance_id, ammo_item_id?} entries loaded in a single action for one tick, however many weapons. Omit weapon_instance_id/ammo_item_id when using this. Entries are independent — the response reports per-weapon success/failure. Maximum 50 entries." }
253
+ { name: "weapons", type: "{ ammo_item_id?: string; weapon_instance_id?: string }[]", required: false, description: "Bulk reload: array of {weapon_instance_id, ammo_item_id?} entries loaded in a single action for one tick, however many weapons. Omit weapon_instance_id/ammo_item_id when using this. Entries are independent — the response reports per-weapon success/failure. Maximum 50 entries." }
254
254
  ]
255
255
  },
256
256
  "spacemolt_battle/retreat": {
@@ -464,7 +464,7 @@ var ACTIONS = {
464
464
  tool: "spacemolt_facility",
465
465
  action: "base_cost",
466
466
  kind: "query",
467
- summary: "Preview the cost and requirements to found a faction station",
467
+ summary: "Preview the cost and requirements to found a faction station, plus the outpost founding fee",
468
468
  responseType: "BaseCostResponse",
469
469
  params: []
470
470
  },
@@ -2439,7 +2439,7 @@ var ACTIONS = {
2439
2439
  responseType: "GetActionLogResponse",
2440
2440
  params: [
2441
2441
  { name: "category", type: '"combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other"', required: false, description: "Filter by category (combat, trading, ship, crafting, faction, mission, skill, salvage, storage, achievement, mining, navigation, exploration, reputation, drone, session, other)", enumValues: ["combat", "trading", "ship", "crafting", "faction", "mission", "skill", "salvage", "storage", "achievement", "mining", "navigation", "exploration", "reputation", "drone", "session", "other"] },
2442
- { name: "event_type", type: "string", required: false, description: "Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history), or an array of event_types to match any of them" },
2442
+ { name: "event_type", type: "string | string[]", required: false, description: "Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history), or an array of event_types to match any of them" },
2443
2443
  { name: "faction_id", type: "string", required: false, description: "View a faction's action log instead of your own (must be a member)" },
2444
2444
  { name: "page", type: "number", required: false, description: "Page number (default 1). Ignored when since_id is set." },
2445
2445
  { name: "page_size", type: "number", required: false, description: "Entries per page, or max entries to return when since_id is set (default 50, max 100)" },
@@ -4509,6 +4509,8 @@ class Account {
4509
4509
  this.emitter.on("market_update", (payload) => this.marketCache.applyUpdate(payload));
4510
4510
  this.emitter.on("observation_update", (payload) => {
4511
4511
  this.observationCache.applyUpdate(payload);
4512
+ if (payload.active_scan === false)
4513
+ this.observationActiveScanState = false;
4512
4514
  this.bridgeObservationToLocation();
4513
4515
  });
4514
4516
  }
@@ -4860,6 +4862,7 @@ class Account {
4860
4862
  in_transit: true,
4861
4863
  transit_arrival_tick: payload.arrival_tick,
4862
4864
  transit_dest_system_id: payload.destination,
4865
+ transit_dest_system_name: typeof payload.destination_name === "string" ? payload.destination_name : undefined,
4863
4866
  transit_type: "jump"
4864
4867
  });
4865
4868
  break;
@@ -4890,6 +4893,7 @@ class Account {
4890
4893
  in_transit: true,
4891
4894
  transit_arrival_tick: payload.arrival_tick,
4892
4895
  transit_dest_poi_id: payload.destination,
4896
+ transit_dest_poi_name: typeof payload.destination_name === "string" ? payload.destination_name : undefined,
4893
4897
  transit_type: "travel"
4894
4898
  });
4895
4899
  break;
@@ -5873,7 +5877,6 @@ var TYPED_NOTIFICATION_TYPES = [
5873
5877
  "arena_challenge",
5874
5878
  "arena_objective",
5875
5879
  "base_destroyed",
5876
- "base_raid_update",
5877
5880
  "battle_alert",
5878
5881
  "battle_damage",
5879
5882
  "battle_ended",
@@ -5897,10 +5900,14 @@ var TYPED_NOTIFICATION_TYPES = [
5897
5900
  "faction_alliance_broken",
5898
5901
  "faction_alliance_formed",
5899
5902
  "faction_alliance_proposal",
5903
+ "faction_invite",
5904
+ "faction_kick",
5900
5905
  "faction_mobile_base_update",
5901
5906
  "faction_peace_accepted",
5902
5907
  "faction_peace_proposal",
5908
+ "faction_promote",
5903
5909
  "faction_war_declared",
5910
+ "faction_withdraw_invite",
5904
5911
  "fleet",
5905
5912
  "gift_received",
5906
5913
  "hold_update",
@@ -6014,5 +6021,5 @@ export {
6014
6021
  retryAfterMsFromClose
6015
6022
  };
6016
6023
 
6017
- //# debugId=578019B88904A09264756E2164756E21
6024
+ //# debugId=1B11865620C76F7F64756E2164756E21
6018
6025
  //# sourceMappingURL=index.js.map