@shipload/sdk 2.0.0-rc22 → 2.0.0-rc23

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/lib/shipload.d.ts CHANGED
@@ -466,6 +466,10 @@ declare namespace Types {
466
466
  }
467
467
  class getrescats extends Struct {
468
468
  }
469
+ class getreserves extends Struct {
470
+ x: Int64;
471
+ y: Int64;
472
+ }
469
473
  class getresources extends Struct {
470
474
  }
471
475
  class getslots extends Struct {
@@ -649,6 +653,8 @@ declare namespace Types {
649
653
  }
650
654
  class reserve_row extends Struct {
651
655
  id: UInt64;
656
+ coord_id: UInt64;
657
+ stratum: UInt16;
652
658
  remaining: UInt32;
653
659
  }
654
660
  class resolve extends Struct {
@@ -755,6 +761,10 @@ declare namespace Types {
755
761
  stratum: stratum_info;
756
762
  stats: resource_stats;
757
763
  }
764
+ class stratum_remaining extends Struct {
765
+ stratum: UInt16;
766
+ remaining: UInt32;
767
+ }
758
768
  class task_results extends Struct {
759
769
  entities: entity_task_info[];
760
770
  }
@@ -778,6 +788,7 @@ declare namespace Types {
778
788
  id: UInt64;
779
789
  entity_summary_type: entity_summary;
780
790
  game_config_type: game_config;
791
+ stratum_remaining_type: stratum_remaining;
781
792
  }
782
793
  class warehouse_row extends Struct {
783
794
  id: UInt64;
@@ -1035,6 +1046,10 @@ declare namespace ActionParams {
1035
1046
  }
1036
1047
  interface getrescats {
1037
1048
  }
1049
+ interface getreserves {
1050
+ x: Int64Type;
1051
+ y: Int64Type;
1052
+ }
1038
1053
  interface getresources {
1039
1054
  }
1040
1055
  interface getslots {
@@ -1180,6 +1195,7 @@ interface ActionNameParams {
1180
1195
  getrecipe: ActionParams.getrecipe;
1181
1196
  getrecipes: ActionParams.getrecipes;
1182
1197
  getrescats: ActionParams.getrescats;
1198
+ getreserves: ActionParams.getreserves;
1183
1199
  getresources: ActionParams.getresources;
1184
1200
  getslots: ActionParams.getslots;
1185
1201
  getstratum: ActionParams.getstratum;
@@ -1230,6 +1246,7 @@ interface ActionReturnValues {
1230
1246
  getrecipe: Types.recipes_result;
1231
1247
  getrecipes: Types.recipes_result;
1232
1248
  getrescats: Types.enum_result;
1249
+ getreserves: Types.stratum_remaining[];
1233
1250
  getresources: Types.resources_result;
1234
1251
  getslots: Types.entity_layouts_result;
1235
1252
  getstratum: Types.stratum_data;
@@ -1664,9 +1681,157 @@ declare class PlayersManager extends BaseManager {
1664
1681
  getPlayer(account: NameType): Promise<Player | undefined>;
1665
1682
  }
1666
1683
 
1684
+ interface StratumInfo {
1685
+ itemId: number;
1686
+ seed: bigint;
1687
+ richness: number;
1688
+ reserve: number;
1689
+ }
1690
+ interface ResourceStats {
1691
+ stat1: number;
1692
+ stat2: number;
1693
+ stat3: number;
1694
+ }
1695
+ declare function deriveStratum(epochSeed: Checksum256Type, coords: CoordinatesType, stratum: number, locationType: number, subtype: number, _maxDepth: number): StratumInfo;
1696
+ /**
1697
+ * Derives the three stat values for a raw resource from a deposit's
1698
+ * entropy seed (hash-based, weibull-transformed).
1699
+ *
1700
+ * **Use only on deposit seeds** — the bigint returned by `deriveStratum`
1701
+ * or carried on a `MassDeposit`. Do NOT call this on a cargo item's
1702
+ * `stats` field; cargo stats are bit-packed and must be read via
1703
+ * `decodeStat` (or `decodeStackStats` for category-mapped output).
1704
+ *
1705
+ * Passing a cargo `stats` value here produces meaningless output
1706
+ * (hash of the packed bits, unrelated to the actual stats).
1707
+ */
1708
+ declare function deriveResourceStats(seed: bigint): ResourceStats;
1709
+
1710
+ interface DerivedStratum {
1711
+ index: number;
1712
+ itemId: number;
1713
+ seed: bigint;
1714
+ richness: number;
1715
+ reserve: number;
1716
+ stats: ResourceStats;
1717
+ }
1718
+ declare function deriveStrata(coords: CoordinatesType, gameSeed: Checksum256Type, epochSeed: Checksum256Type): DerivedStratum[];
1719
+
1720
+ declare function deriveLocationSize(loc: Types.location_static): number;
1721
+
1722
+ declare const DEPTH_THRESHOLD_T1 = 0;
1723
+ declare const DEPTH_THRESHOLD_T2 = 2000;
1724
+ declare const DEPTH_THRESHOLD_T3 = 10000;
1725
+ declare const DEPTH_THRESHOLD_T4 = 30000;
1726
+ declare const DEPTH_THRESHOLD_T5 = 55000;
1727
+ declare const LOCATION_MIN_DEPTH = 500;
1728
+ declare const LOCATION_MAX_DEPTH = 65535;
1729
+ declare const PLANET_SUBTYPE_GAS_GIANT = 0;
1730
+ declare const PLANET_SUBTYPE_ROCKY = 1;
1731
+ declare const PLANET_SUBTYPE_TERRESTRIAL = 2;
1732
+ declare const PLANET_SUBTYPE_ICY = 3;
1733
+ declare const PLANET_SUBTYPE_OCEAN = 4;
1734
+ declare const PLANET_SUBTYPE_INDUSTRIAL = 5;
1735
+ declare function getDepthThreshold(tier: number): number;
1736
+ declare function getResourceTier(itemId: number): number;
1737
+ declare function getResourceWeight(itemId: number, stratum: number): number;
1738
+ declare function getLocationCandidates(locationType: number, subtype: number): number[];
1739
+ declare function getEligibleResources(locationType: number, subtype: number, stratum: number): number[];
1740
+
1741
+ type ReserveTier = 'small' | 'medium' | 'large' | 'massive' | 'motherlode';
1742
+ interface TierRange {
1743
+ min: number;
1744
+ max: number;
1745
+ }
1746
+ declare const RESERVE_TIERS: Record<ReserveTier, TierRange>;
1747
+ declare const TIER_ROLL_MAX = 65536;
1748
+ declare function rollTier(tierRoll: number, stratum: number): ReserveTier;
1749
+ declare function rollWithinTier(withinRoll: number, range: TierRange): number;
1750
+
1751
+ interface StatDefinition {
1752
+ key: string;
1753
+ label: string;
1754
+ abbreviation: string;
1755
+ purpose: string;
1756
+ inverted?: boolean;
1757
+ }
1758
+ declare function getStatDefinitions(category: ResourceCategory): StatDefinition[];
1759
+ declare function getStatName(category: ResourceCategory, index: 0 | 1 | 2): StatDefinition;
1760
+ interface NamedStats {
1761
+ definitions: StatDefinition[];
1762
+ values: [number, number, number];
1763
+ }
1764
+ declare function resolveStats(category: ResourceCategory, stats: {
1765
+ stat1: number;
1766
+ stat2: number;
1767
+ stat3: number;
1768
+ }): NamedStats;
1769
+
1770
+ interface StackInput {
1771
+ quantity: number;
1772
+ stats: Record<string, number>;
1773
+ }
1774
+ interface CategoryStacks {
1775
+ category: ResourceCategory;
1776
+ stacks: StackInput[];
1777
+ }
1778
+ declare function encodeStats(values: number[]): bigint;
1779
+ declare function decodeStat(stats: bigint, index: number): number;
1780
+ declare function decodeStats(stats: bigint, count: number): number[];
1781
+ declare function decodeCraftedItemStats(itemId: number, stats: bigint): Record<string, number>;
1782
+ declare function blendStacks(stacks: StackInput[], statKey: string): number;
1783
+ declare function blendComponentStacks(stacks: {
1784
+ quantity: number;
1785
+ stats: Record<string, number>;
1786
+ }[]): Record<string, number>;
1787
+ declare function computeComponentStats(componentId: number, categoryStacks: CategoryStacks[]): {
1788
+ key: string;
1789
+ value: number;
1790
+ }[];
1791
+ declare function computeEntityStats(entityItemIdOrLegacyId: number | string, componentStacks: Record<number, {
1792
+ quantity: number;
1793
+ stats: Record<string, number>;
1794
+ }[]>): {
1795
+ key: string;
1796
+ value: number;
1797
+ }[];
1798
+ declare function computeInputMass(itemId: number): number;
1799
+ declare function blendCrossGroup(sources: {
1800
+ value: number;
1801
+ weight: number;
1802
+ }[]): number;
1803
+ declare function blendCargoStacks(itemId: number, stacks: {
1804
+ quantity: number;
1805
+ stats: UInt64;
1806
+ }[]): UInt64;
1807
+ interface RecipeSlotInput {
1808
+ itemId: number;
1809
+ category: ResourceCategory | undefined;
1810
+ stacks: {
1811
+ quantity: number;
1812
+ stats: bigint;
1813
+ }[];
1814
+ }
1815
+ declare function computeCraftedOutputStats(outputItemId: number, slotInputs: RecipeSlotInput[]): UInt64;
1816
+ /**
1817
+ * Mirrors the contract's gather-time transform. Takes a deposit's entropy
1818
+ * seed (bigint from deriveStratum), derives stats via weibull hashing, and
1819
+ * returns a UInt64 whose bit-packed form matches what the contract writes
1820
+ * to cargo_item.stats on gather.
1821
+ *
1822
+ * Use this whenever off-chain code simulates a gather (testmap, player
1823
+ * scanners that project cargo outcomes) and needs a value that matches
1824
+ * what on-chain cargo would carry.
1825
+ */
1826
+ declare function encodeGatheredCargoStats(depositSeed: bigint): UInt64;
1827
+
1828
+ interface LocationStratum extends DerivedStratum {
1829
+ reserveMax: number;
1830
+ }
1667
1831
  declare class LocationsManager extends BaseManager {
1668
1832
  hasSystem(location: CoordinatesType): Promise<boolean>;
1669
1833
  findNearbyPlanets(origin: CoordinatesType, maxDistance?: UInt16Type): Promise<Distance[]>;
1834
+ getStrata(coords: CoordinatesType): Promise<LocationStratum[]>;
1670
1835
  getLocationEntity(id: UInt64Type): Promise<Types.location_row | undefined>;
1671
1836
  getLocationEntityAt(coords: CoordinatesType): Promise<Types.location_row | undefined>;
1672
1837
  getAllLocationEntities(): Promise<Types.location_row[]>;
@@ -2395,140 +2560,6 @@ declare function deriveLocationStatic(gameSeed: Checksum256Type, coordinates: Co
2395
2560
  declare function deriveLocationEpoch(epochSeed: Checksum256Type, coordinates: CoordinatesType): Types.location_epoch;
2396
2561
  declare function deriveLocation(gameSeed: Checksum256Type, epochSeed: Checksum256Type, coordinates: CoordinatesType): Types.location_derived;
2397
2562
 
2398
- interface StratumInfo {
2399
- itemId: number;
2400
- seed: bigint;
2401
- richness: number;
2402
- reserve: number;
2403
- }
2404
- interface ResourceStats {
2405
- stat1: number;
2406
- stat2: number;
2407
- stat3: number;
2408
- }
2409
- declare function deriveStratum(epochSeed: Checksum256Type, coords: CoordinatesType, stratum: number, locationType: number, subtype: number, _maxDepth: number): StratumInfo;
2410
- /**
2411
- * Derives the three stat values for a raw resource from a deposit's
2412
- * entropy seed (hash-based, weibull-transformed).
2413
- *
2414
- * **Use only on deposit seeds** — the bigint returned by `deriveStratum`
2415
- * or carried on a `MassDeposit`. Do NOT call this on a cargo item's
2416
- * `stats` field; cargo stats are bit-packed and must be read via
2417
- * `decodeStat` (or `decodeStackStats` for category-mapped output).
2418
- *
2419
- * Passing a cargo `stats` value here produces meaningless output
2420
- * (hash of the packed bits, unrelated to the actual stats).
2421
- */
2422
- declare function deriveResourceStats(seed: bigint): ResourceStats;
2423
-
2424
- declare function deriveLocationSize(loc: Types.location_static): number;
2425
-
2426
- declare const DEPTH_THRESHOLD_T1 = 0;
2427
- declare const DEPTH_THRESHOLD_T2 = 2000;
2428
- declare const DEPTH_THRESHOLD_T3 = 10000;
2429
- declare const DEPTH_THRESHOLD_T4 = 30000;
2430
- declare const DEPTH_THRESHOLD_T5 = 55000;
2431
- declare const LOCATION_MIN_DEPTH = 500;
2432
- declare const LOCATION_MAX_DEPTH = 65535;
2433
- declare const PLANET_SUBTYPE_GAS_GIANT = 0;
2434
- declare const PLANET_SUBTYPE_ROCKY = 1;
2435
- declare const PLANET_SUBTYPE_TERRESTRIAL = 2;
2436
- declare const PLANET_SUBTYPE_ICY = 3;
2437
- declare const PLANET_SUBTYPE_OCEAN = 4;
2438
- declare const PLANET_SUBTYPE_INDUSTRIAL = 5;
2439
- declare function getDepthThreshold(tier: number): number;
2440
- declare function getResourceTier(itemId: number): number;
2441
- declare function getResourceWeight(itemId: number, stratum: number): number;
2442
- declare function getLocationCandidates(locationType: number, subtype: number): number[];
2443
- declare function getEligibleResources(locationType: number, subtype: number, stratum: number): number[];
2444
-
2445
- type ReserveTier = 'small' | 'medium' | 'large' | 'massive' | 'motherlode';
2446
- interface TierRange {
2447
- min: number;
2448
- max: number;
2449
- }
2450
- declare const RESERVE_TIERS: Record<ReserveTier, TierRange>;
2451
- declare const TIER_ROLL_MAX = 65536;
2452
- declare function rollTier(tierRoll: number, stratum: number): ReserveTier;
2453
- declare function rollWithinTier(withinRoll: number, range: TierRange): number;
2454
-
2455
- interface StatDefinition {
2456
- key: string;
2457
- label: string;
2458
- abbreviation: string;
2459
- purpose: string;
2460
- inverted?: boolean;
2461
- }
2462
- declare function getStatDefinitions(category: ResourceCategory): StatDefinition[];
2463
- declare function getStatName(category: ResourceCategory, index: 0 | 1 | 2): StatDefinition;
2464
- interface NamedStats {
2465
- definitions: StatDefinition[];
2466
- values: [number, number, number];
2467
- }
2468
- declare function resolveStats(category: ResourceCategory, stats: {
2469
- stat1: number;
2470
- stat2: number;
2471
- stat3: number;
2472
- }): NamedStats;
2473
-
2474
- interface StackInput {
2475
- quantity: number;
2476
- stats: Record<string, number>;
2477
- }
2478
- interface CategoryStacks {
2479
- category: ResourceCategory;
2480
- stacks: StackInput[];
2481
- }
2482
- declare function encodeStats(values: number[]): bigint;
2483
- declare function decodeStat(stats: bigint, index: number): number;
2484
- declare function decodeStats(stats: bigint, count: number): number[];
2485
- declare function decodeCraftedItemStats(itemId: number, stats: bigint): Record<string, number>;
2486
- declare function blendStacks(stacks: StackInput[], statKey: string): number;
2487
- declare function blendComponentStacks(stacks: {
2488
- quantity: number;
2489
- stats: Record<string, number>;
2490
- }[]): Record<string, number>;
2491
- declare function computeComponentStats(componentId: number, categoryStacks: CategoryStacks[]): {
2492
- key: string;
2493
- value: number;
2494
- }[];
2495
- declare function computeEntityStats(entityItemIdOrLegacyId: number | string, componentStacks: Record<number, {
2496
- quantity: number;
2497
- stats: Record<string, number>;
2498
- }[]>): {
2499
- key: string;
2500
- value: number;
2501
- }[];
2502
- declare function computeInputMass(itemId: number): number;
2503
- declare function blendCrossGroup(sources: {
2504
- value: number;
2505
- weight: number;
2506
- }[]): number;
2507
- declare function blendCargoStacks(itemId: number, stacks: {
2508
- quantity: number;
2509
- stats: UInt64;
2510
- }[]): UInt64;
2511
- interface RecipeSlotInput {
2512
- itemId: number;
2513
- category: ResourceCategory | undefined;
2514
- stacks: {
2515
- quantity: number;
2516
- stats: bigint;
2517
- }[];
2518
- }
2519
- declare function computeCraftedOutputStats(outputItemId: number, slotInputs: RecipeSlotInput[]): UInt64;
2520
- /**
2521
- * Mirrors the contract's gather-time transform. Takes a deposit's entropy
2522
- * seed (bigint from deriveStratum), derives stats via weibull hashing, and
2523
- * returns a UInt64 whose bit-packed form matches what the contract writes
2524
- * to cargo_item.stats on gather.
2525
- *
2526
- * Use this whenever off-chain code simulates a gather (testmap, player
2527
- * scanners that project cargo outcomes) and needs a value that matches
2528
- * what on-chain cargo would carry.
2529
- */
2530
- declare function encodeGatheredCargoStats(depositSeed: bigint): UInt64;
2531
-
2532
2563
  declare function hash(seed: Checksum256Type, string: string): Checksum256;
2533
2564
  declare function hash512(seed: Checksum256Type, string: string): Checksum512;
2534
2565
 
@@ -3093,4 +3124,4 @@ type location_epoch = Types.location_epoch;
3093
3124
  type location_derived = Types.location_derived;
3094
3125
  type location_row = Types.location_row;
3095
3126
 
3096
- export { AckMessage, ActionsManager, AnyEntity, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, CANCEL_CONTAINS_GROUPED_TASK, CANCEL_PAIRED_HAS_PENDING, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, CONTAINER_CAPACITY_EXCEEDED, CONTAINER_NOT_FOUND, CONTAINER_Z, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CapabilityAttribute, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryIconShape, CategoryInfo, CategoryStacks, ClientMessage, ConnectionState, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftedItemCategory, CrafterCapability, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DescribeOptions, Distance, ENTITY_CAPACITY_EXCEEDED, ENTITY_NO_CRAFTER, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EnergyCapability, EntitiesManager, Entity, EntityCapabilities, EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntitySubscriptionHandle, EntityType, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, GathererCapability, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CARGO_ARM, ITEM_CARGO_LINING, ITEM_CARGO_LINING_T2, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_FOCUSING_ARRAY, ITEM_GAS_T1, ITEM_GAS_T10, ITEM_GAS_T2, ITEM_GAS_T3, ITEM_GAS_T4, ITEM_GAS_T5, ITEM_GAS_T6, ITEM_GAS_T7, ITEM_GAS_T8, ITEM_GAS_T9, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_HULL_PLATES, ITEM_HULL_PLATES_T2, ITEM_LOADER_T1, ITEM_MATTER_CONDUIT, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_NOT_DEPLOYABLE, ITEM_NOT_PACKED_ENTITY, ITEM_ORE_T1, ITEM_ORE_T10, ITEM_ORE_T2, ITEM_ORE_T3, ITEM_ORE_T4, ITEM_ORE_T5, ITEM_ORE_T6, ITEM_ORE_T7, ITEM_ORE_T8, ITEM_ORE_T9, ITEM_POWER_CELL, ITEM_REACTION_CHAMBER, ITEM_REGOLITH_T1, ITEM_REGOLITH_T10, ITEM_REGOLITH_T2, ITEM_REGOLITH_T3, ITEM_REGOLITH_T4, ITEM_REGOLITH_T5, ITEM_REGOLITH_T6, ITEM_REGOLITH_T7, ITEM_REGOLITH_T8, ITEM_REGOLITH_T9, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_SURVEY_PROBE, ITEM_THRUSTER_CORE, ITEM_TOOL_BIT, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, InventoryAccessor, Item, ItemType, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LoadTimeBreakdown, LoaderCapability, Location, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MIN_ORBITAL_ALTITUDE, MODULE_ANY, MODULE_CARGO_NOT_FOUND, MODULE_CRAFTER, MODULE_ENGINE, MODULE_ENTITY_BUSY, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_NOT_MODULE, MODULE_SLOT_EMPTY, MODULE_SLOT_INVALID, MODULE_SLOT_OCCUPIED, MODULE_STORAGE, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, PLANET_SUBTYPE_GAS_GIANT, PLANET_SUBTYPE_ICY, PLANET_SUBTYPE_INDUSTRIAL, PLANET_SUBTYPE_OCEAN, PLANET_SUBTYPE_ROCKY, PLANET_SUBTYPE_TERRESTRIAL, PLAYER_ALREADY_JOINED, PLAYER_NOT_FOUND, PLAYER_NOT_JOINED, PRECISION, PackedModule, PackedModuleInput, PingMessage, PlanetSubtypeInfo, platform as PlatformContract, Player, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectableSnapshot, ProjectedEntity, ProjectionOptions, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, Recipe, RecipeInput, RecipeInputCategory, RecipeInputItemId, RecipeSlotInput, RenderDescriptionOptions, ReserveTier, ResolvedAttributeGroup, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedModuleSlot, ResourceCategory, ResourceStats, ResourceTier, SHIP_ALREADY_THERE, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_CAPACITY_EXCEEDED, SHIP_CARGO_NOT_LOADED, SHIP_CARGO_NOT_OWNED, SHIP_INVALID_CARGO, SHIP_INVALID_DESTINATION, SHIP_INVALID_TRAVEL_DURATION, SHIP_NOT_ARRIVED, SHIP_NOT_ENOUGH_ENERGY, SHIP_NOT_ENOUGH_ENERGY_CAPACITY, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, STARTER_ALREADY_CLAIMED, ScheduleAccessor, ScheduleCapability, ScheduleData, Scheduleable, server as ServerContract, ServerMessage, Ship, ShipCapabilities, ShipEntity, ShipLike, ShipStateInput, Shipload, SnapshotMessage, StackInput, StatDefinition, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, TIER_ADJECTIVES, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskType, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UpdateBoundsMessage, UpdateMessage, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_CAPACITY_EXCEEDED, WAREHOUSE_NOT_FOUND, WAREHOUSE_Z, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, Warehouse, WarehouseEntity, WarehouseStateInput, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, availableCapacity$1 as availableCapacity, availableCapacityFromMass, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildEntityDescription, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcLoadDuration, calcStacksMass, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_loader_acceleration, calc_loader_flighttime, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canMove, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItemToStack, cargoUtils, cargo_item, categoryColors, categoryIconShapes, categoryIcons, componentIcon, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererSpeed, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeHaulPenalty, computeHaulerCapabilities, computeHaulerDrain, computeInputMass, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeShipCapabilities, computeShipHullCapabilities, computeStorageCapabilities, computeWarehouseCapabilities, computeWarehouseHullCapabilities, container_row, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeCraftedItemStats, decodeStat, decodeStats, Shipload as default, deriveLocation, deriveLocationEpoch, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStratum, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, encodeGatheredCargoStats, encodeStats, energyPercent, energy_stats, entityDisplayName, estimateDealTravelTime, estimateTravelTime, findItemByCategoryAndTier, findNearbyPlanets, formatMass, formatMassDelta, formatModuleLine, formatTier, gatherer_stats, getCapabilityAttributes, getCategoryInfo, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEligibleResources, getEntityLayout, getEpochInfo, getFlightOrigin, getItem, getItems, getLocationCandidates, getLocationType, getLocationTypeName, getModuleCapabilityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getRecipe, getResourceTier, getResourceWeight, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, isCraftedItem, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isModuleItem, isRelatedItem, isSubscriptionsDebugEnabled, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, lerp, loader_stats, location_derived, location_epoch, location_row, location_static, makeContainer, makeShip, makeWarehouse, mapEntity, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, parseWireEntity, projectEntity, projectEntityAt, projectFromCurrentState, projectFromCurrentStateAt, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, statMappings, task, tierColors, tierLabels, tierNumber, toLocation, validateSchedule, warehouse_row };
3127
+ export { AckMessage, ActionsManager, AnyEntity, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, CANCEL_CONTAINS_GROUPED_TASK, CANCEL_PAIRED_HAS_PENDING, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, CONTAINER_CAPACITY_EXCEEDED, CONTAINER_NOT_FOUND, CONTAINER_Z, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CapabilityAttribute, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryIconShape, CategoryInfo, CategoryStacks, ClientMessage, ConnectionState, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftedItemCategory, CrafterCapability, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DerivedStratum, DescribeOptions, Distance, ENTITY_CAPACITY_EXCEEDED, ENTITY_NO_CRAFTER, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EnergyCapability, EntitiesManager, Entity, EntityCapabilities, EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntitySubscriptionHandle, EntityType, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, GathererCapability, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CARGO_ARM, ITEM_CARGO_LINING, ITEM_CARGO_LINING_T2, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_FOCUSING_ARRAY, ITEM_GAS_T1, ITEM_GAS_T10, ITEM_GAS_T2, ITEM_GAS_T3, ITEM_GAS_T4, ITEM_GAS_T5, ITEM_GAS_T6, ITEM_GAS_T7, ITEM_GAS_T8, ITEM_GAS_T9, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_HULL_PLATES, ITEM_HULL_PLATES_T2, ITEM_LOADER_T1, ITEM_MATTER_CONDUIT, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_NOT_DEPLOYABLE, ITEM_NOT_PACKED_ENTITY, ITEM_ORE_T1, ITEM_ORE_T10, ITEM_ORE_T2, ITEM_ORE_T3, ITEM_ORE_T4, ITEM_ORE_T5, ITEM_ORE_T6, ITEM_ORE_T7, ITEM_ORE_T8, ITEM_ORE_T9, ITEM_POWER_CELL, ITEM_REACTION_CHAMBER, ITEM_REGOLITH_T1, ITEM_REGOLITH_T10, ITEM_REGOLITH_T2, ITEM_REGOLITH_T3, ITEM_REGOLITH_T4, ITEM_REGOLITH_T5, ITEM_REGOLITH_T6, ITEM_REGOLITH_T7, ITEM_REGOLITH_T8, ITEM_REGOLITH_T9, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_SURVEY_PROBE, ITEM_THRUSTER_CORE, ITEM_TOOL_BIT, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, InventoryAccessor, Item, ItemType, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LoadTimeBreakdown, LoaderCapability, Location, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MIN_ORBITAL_ALTITUDE, MODULE_ANY, MODULE_CARGO_NOT_FOUND, MODULE_CRAFTER, MODULE_ENGINE, MODULE_ENTITY_BUSY, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_NOT_MODULE, MODULE_SLOT_EMPTY, MODULE_SLOT_INVALID, MODULE_SLOT_OCCUPIED, MODULE_STORAGE, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, PLANET_SUBTYPE_GAS_GIANT, PLANET_SUBTYPE_ICY, PLANET_SUBTYPE_INDUSTRIAL, PLANET_SUBTYPE_OCEAN, PLANET_SUBTYPE_ROCKY, PLANET_SUBTYPE_TERRESTRIAL, PLAYER_ALREADY_JOINED, PLAYER_NOT_FOUND, PLAYER_NOT_JOINED, PRECISION, PackedModule, PackedModuleInput, PingMessage, PlanetSubtypeInfo, platform as PlatformContract, Player, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectableSnapshot, ProjectedEntity, ProjectionOptions, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, Recipe, RecipeInput, RecipeInputCategory, RecipeInputItemId, RecipeSlotInput, RenderDescriptionOptions, ReserveTier, ResolvedAttributeGroup, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedModuleSlot, ResourceCategory, ResourceStats, ResourceTier, SHIP_ALREADY_THERE, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_CAPACITY_EXCEEDED, SHIP_CARGO_NOT_LOADED, SHIP_CARGO_NOT_OWNED, SHIP_INVALID_CARGO, SHIP_INVALID_DESTINATION, SHIP_INVALID_TRAVEL_DURATION, SHIP_NOT_ARRIVED, SHIP_NOT_ENOUGH_ENERGY, SHIP_NOT_ENOUGH_ENERGY_CAPACITY, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, STARTER_ALREADY_CLAIMED, ScheduleAccessor, ScheduleCapability, ScheduleData, Scheduleable, server as ServerContract, ServerMessage, Ship, ShipCapabilities, ShipEntity, ShipLike, ShipStateInput, Shipload, SnapshotMessage, StackInput, StatDefinition, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, TIER_ADJECTIVES, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskType, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UpdateBoundsMessage, UpdateMessage, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_CAPACITY_EXCEEDED, WAREHOUSE_NOT_FOUND, WAREHOUSE_Z, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, Warehouse, WarehouseEntity, WarehouseStateInput, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, availableCapacity$1 as availableCapacity, availableCapacityFromMass, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildEntityDescription, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcLoadDuration, calcStacksMass, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_loader_acceleration, calc_loader_flighttime, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canMove, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItemToStack, cargoUtils, cargo_item, categoryColors, categoryIconShapes, categoryIcons, componentIcon, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererSpeed, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeHaulPenalty, computeHaulerCapabilities, computeHaulerDrain, computeInputMass, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeShipCapabilities, computeShipHullCapabilities, computeStorageCapabilities, computeWarehouseCapabilities, computeWarehouseHullCapabilities, container_row, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeCraftedItemStats, decodeStat, decodeStats, Shipload as default, deriveLocation, deriveLocationEpoch, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStrata, deriveStratum, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, encodeGatheredCargoStats, encodeStats, energyPercent, energy_stats, entityDisplayName, estimateDealTravelTime, estimateTravelTime, findItemByCategoryAndTier, findNearbyPlanets, formatMass, formatMassDelta, formatModuleLine, formatTier, gatherer_stats, getCapabilityAttributes, getCategoryInfo, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEligibleResources, getEntityLayout, getEpochInfo, getFlightOrigin, getItem, getItems, getLocationCandidates, getLocationType, getLocationTypeName, getModuleCapabilityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getRecipe, getResourceTier, getResourceWeight, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, isCraftedItem, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isModuleItem, isRelatedItem, isSubscriptionsDebugEnabled, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, lerp, loader_stats, location_derived, location_epoch, location_row, location_static, makeContainer, makeShip, makeWarehouse, mapEntity, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, parseWireEntity, projectEntity, projectEntityAt, projectFromCurrentState, projectFromCurrentStateAt, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, statMappings, task, tierColors, tierLabels, tierNumber, toLocation, validateSchedule, warehouse_row };