@shipload/sdk 2.0.0-rc19 → 2.0.0-rc20

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
@@ -236,10 +236,7 @@ declare namespace Types {
236
236
  commit: Checksum256;
237
237
  }
238
238
  class entity_defaults extends Struct {
239
- warehouse_capacity: UInt32;
240
239
  warehouse_z: UInt16;
241
- container_hullmass: UInt32;
242
- container_capacity: UInt32;
243
240
  container_z: UInt16;
244
241
  }
245
242
  class item_def extends Struct {
@@ -359,6 +356,7 @@ declare namespace Types {
359
356
  cargomass: UInt32;
360
357
  cargo: cargo_item[];
361
358
  loaders?: loader_stats;
359
+ modules: module_entry[];
362
360
  energy?: UInt16;
363
361
  hullmass?: UInt32;
364
362
  engines?: movement_stats;
@@ -831,10 +829,7 @@ declare namespace ActionParams {
831
829
  items: Type.item_def[];
832
830
  }
833
831
  interface entity_defaults {
834
- warehouse_capacity: UInt32Type;
835
832
  warehouse_z: UInt16Type;
836
- container_hullmass: UInt32Type;
837
- container_capacity: UInt32Type;
838
833
  container_z: UInt16Type;
839
834
  }
840
835
  interface item_def {
@@ -1327,10 +1322,7 @@ declare const INSUFFICIENT_ITEM_SUPPLY = "Insufficient supply of item at locatio
1327
1322
  declare const PRECISION = 10000;
1328
1323
  declare const CRAFT_ENERGY_DIVISOR = 150000;
1329
1324
  declare const WAREHOUSE_Z = 500;
1330
- declare const INITIAL_WAREHOUSE_CAPACITY = 10000000;
1331
1325
  declare const CONTAINER_Z = 300;
1332
- declare const INITIAL_CONTAINER_HULLMASS = 50000;
1333
- declare const INITIAL_CONTAINER_CAPACITY = 2000000;
1334
1326
  declare const TRAVEL_MAX_DURATION = 86400;
1335
1327
  declare const MIN_ORBITAL_ALTITUDE = 800;
1336
1328
  declare const MAX_ORBITAL_ALTITUDE = 3000;
@@ -1546,38 +1538,110 @@ declare class ActionsManager extends BaseManager {
1546
1538
  joinGame(account: NameType, companyName: string): Action[];
1547
1539
  }
1548
1540
 
1549
- declare class GameContext {
1550
- readonly client: APIClient;
1551
- readonly server: Contract$2;
1552
- readonly platform: Contract$2;
1553
- private _entities?;
1554
- private _players?;
1555
- private _locations?;
1556
- private _epochs?;
1557
- private _actions?;
1558
- private _gameCache?;
1559
- private _stateCache?;
1560
- constructor(client: APIClient, server: Contract$2, platform: Contract$2);
1561
- get entities(): EntitiesManager;
1562
- get players(): PlayersManager;
1563
- get locations(): LocationsManager;
1564
- get epochs(): EpochsManager;
1565
- get actions(): ActionsManager;
1566
- getGame(reload?: boolean): Promise<Types$1.game_row>;
1567
- getState(reload?: boolean): Promise<GameState>;
1568
- get cachedGame(): Types$1.game_row | undefined;
1569
- get cachedState(): GameState | undefined;
1570
- }
1571
-
1572
- declare abstract class BaseManager {
1573
- protected readonly context: GameContext;
1574
- constructor(context: GameContext);
1575
- protected get client(): _wharfkit_antelope.APIClient;
1576
- protected get server(): _wharfkit_contract.Contract;
1577
- protected get platform(): _wharfkit_contract.Contract;
1578
- protected getGame(): Promise<Types$1.game_row>;
1579
- protected getState(): Promise<GameState>;
1580
- }
1541
+ type EntityInfo = Types.entity_info;
1542
+ interface BoundingBox {
1543
+ min_x: number;
1544
+ min_y: number;
1545
+ max_x: number;
1546
+ max_y: number;
1547
+ }
1548
+ interface WireCoordinates {
1549
+ x: number;
1550
+ y: number;
1551
+ z?: number;
1552
+ }
1553
+ type SubscribeMessage = {
1554
+ type: 'subscribe';
1555
+ sub_id: string;
1556
+ bounds?: BoundingBox;
1557
+ owner?: string;
1558
+ prioritize_owner?: string;
1559
+ };
1560
+ type UpdateBoundsMessage = {
1561
+ type: 'update_bounds';
1562
+ sub_id: string;
1563
+ bounds: BoundingBox;
1564
+ };
1565
+ type UnsubscribeMessage = {
1566
+ type: 'unsubscribe';
1567
+ sub_id: string;
1568
+ };
1569
+ type SubscribeEntityMessage = {
1570
+ type: 'subscribe_entity';
1571
+ sub_id: string;
1572
+ entity_type: 'ship' | 'warehouse' | 'container';
1573
+ entity_id: string;
1574
+ };
1575
+ type UnsubscribeEntityMessage = {
1576
+ type: 'unsubscribe_entity';
1577
+ sub_id: string;
1578
+ };
1579
+ type SubscribeEventsMessage = {
1580
+ type: 'subscribe_events';
1581
+ sub_id: string;
1582
+ event_filter?: Record<string, unknown>;
1583
+ };
1584
+ type UnsubscribeEventsMessage = {
1585
+ type: 'unsubscribe_events';
1586
+ sub_id: string;
1587
+ };
1588
+ type PingMessage = {
1589
+ type: 'ping';
1590
+ };
1591
+ type ClientMessage = SubscribeMessage | UpdateBoundsMessage | UnsubscribeMessage | SubscribeEntityMessage | UnsubscribeEntityMessage | SubscribeEventsMessage | UnsubscribeEventsMessage | PingMessage;
1592
+ type AckMessage = {
1593
+ type: 'subscribed' | 'unsubscribed' | 'bounds_updated';
1594
+ sub_id: string;
1595
+ };
1596
+ type WireEntity = Record<string, unknown> & {
1597
+ type: number;
1598
+ type_name: 'ship' | 'warehouse' | 'container';
1599
+ id: string | number;
1600
+ owner: string;
1601
+ coordinates: WireCoordinates;
1602
+ };
1603
+ type SnapshotMessage = {
1604
+ type: 'snapshot';
1605
+ sub_id: string;
1606
+ seq: number;
1607
+ entities: WireEntity[];
1608
+ truncated?: boolean;
1609
+ };
1610
+ type UpdateMessage = {
1611
+ type: 'update';
1612
+ sub_ids: string[];
1613
+ entity_id: number;
1614
+ entity: WireEntity;
1615
+ seq: number;
1616
+ };
1617
+ type BoundsDeltaMessage = {
1618
+ type: 'bounds_delta';
1619
+ sub_id: string;
1620
+ entered: WireEntity[];
1621
+ exited: number[];
1622
+ seq: number;
1623
+ truncated?: boolean;
1624
+ };
1625
+ type EventMessage = {
1626
+ type: 'event';
1627
+ sub_id: string;
1628
+ catchup: boolean;
1629
+ events: Array<Record<string, unknown>>;
1630
+ seq?: number;
1631
+ };
1632
+ type EventCatchupCompleteMessage = {
1633
+ type: 'event_catchup_complete';
1634
+ sub_id: string;
1635
+ };
1636
+ type PongMessage = {
1637
+ type: 'pong';
1638
+ };
1639
+ type ErrorMessage = {
1640
+ type: 'error';
1641
+ error: string;
1642
+ sub_id?: string;
1643
+ };
1644
+ type ServerMessage = AckMessage | SnapshotMessage | UpdateMessage | BoundsDeltaMessage | EventMessage | EventCatchupCompleteMessage | PongMessage | ErrorMessage;
1581
1645
 
1582
1646
  interface MovementCapability {
1583
1647
  engines: Types.movement_stats;
@@ -1892,10 +1956,7 @@ interface ShipStateInput {
1892
1956
  declare class Ship extends Types.entity_info {
1893
1957
  private _sched?;
1894
1958
  private _inv?;
1895
- private _modules;
1896
1959
  get name(): string;
1897
- get modules(): Types.module_entry[];
1898
- setModules(modules: Types.module_entry[]): void;
1899
1960
  get inv(): InventoryAccessor;
1900
1961
  get inventory(): EntityInventory[];
1901
1962
  get sched(): ScheduleAccessor;
@@ -1949,10 +2010,7 @@ interface WarehouseStateInput {
1949
2010
  declare class Warehouse extends Types.entity_info {
1950
2011
  private _sched?;
1951
2012
  private _inv?;
1952
- private _modules;
1953
2013
  get name(): string;
1954
- get modules(): Types.module_entry[];
1955
- setModules(modules: Types.module_entry[]): void;
1956
2014
  get inv(): InventoryAccessor;
1957
2015
  get inventory(): EntityInventory[];
1958
2016
  get sched(): ScheduleAccessor;
@@ -2019,6 +2077,89 @@ declare function computeContainerT2Capabilities(stats: Record<string, number>):
2019
2077
  capacity: number;
2020
2078
  };
2021
2079
 
2080
+ type SubscriptionEntityType = 'ship' | 'warehouse' | 'container';
2081
+ type EntityInstance = Ship | Warehouse | Container;
2082
+ interface SubscriptionsOptions {
2083
+ url: string;
2084
+ }
2085
+ interface BoundsSubscriptionHandle {
2086
+ readonly subId: string;
2087
+ unsubscribe(): void;
2088
+ updateBounds(bounds: BoundingBox): void;
2089
+ current: Map<number, EntityInstance>;
2090
+ }
2091
+ interface EntitySubscriptionHandle {
2092
+ readonly subId: string;
2093
+ readonly entityType: SubscriptionEntityType;
2094
+ readonly entityId: string;
2095
+ unsubscribe(): void;
2096
+ current: EntityInstance | null;
2097
+ }
2098
+ declare class SubscriptionsManager {
2099
+ private readonly conn;
2100
+ private readonly entitySubs;
2101
+ private readonly boundsSubs;
2102
+ private subCounter;
2103
+ constructor(opts: SubscriptionsOptions);
2104
+ close(): void;
2105
+ private generateSubID;
2106
+ private sendMessage;
2107
+ subscribeEntity(type: SubscriptionEntityType, id: string, onUpdate: (e: EntityInstance) => void): EntitySubscriptionHandle;
2108
+ private unsubscribeEntity;
2109
+ subscribeBounds(bounds: BoundingBox, handlers: {
2110
+ onSnapshot?: (entities: EntityInstance[]) => void;
2111
+ onUpdate?: (entity: EntityInstance) => void;
2112
+ onBoundsDelta?: (entered: EntityInstance[], exited: number[]) => void;
2113
+ owner?: string;
2114
+ prioritizeOwner?: string;
2115
+ }): BoundsSubscriptionHandle;
2116
+ private unsubscribeBounds;
2117
+ private updateBounds;
2118
+ private onMessage;
2119
+ private parseEntity;
2120
+ private handleSnapshot;
2121
+ private handleUpdate;
2122
+ private handleBoundsDelta;
2123
+ private handleError;
2124
+ }
2125
+
2126
+ declare class GameContext {
2127
+ readonly client: APIClient;
2128
+ readonly server: Contract$2;
2129
+ readonly platform: Contract$2;
2130
+ private _entities?;
2131
+ private _players?;
2132
+ private _locations?;
2133
+ private _epochs?;
2134
+ private _actions?;
2135
+ private _subscriptions?;
2136
+ private _subscriptionsUrl?;
2137
+ private _gameCache?;
2138
+ private _stateCache?;
2139
+ constructor(client: APIClient, server: Contract$2, platform: Contract$2);
2140
+ get entities(): EntitiesManager;
2141
+ get players(): PlayersManager;
2142
+ get locations(): LocationsManager;
2143
+ get epochs(): EpochsManager;
2144
+ get actions(): ActionsManager;
2145
+ setSubscriptionsUrl(url: string): void;
2146
+ get subscriptions(): SubscriptionsManager;
2147
+ getGame(reload?: boolean): Promise<Types$1.game_row>;
2148
+ getState(reload?: boolean): Promise<GameState>;
2149
+ get cachedGame(): Types$1.game_row | undefined;
2150
+ get cachedState(): GameState | undefined;
2151
+ }
2152
+
2153
+ declare abstract class BaseManager {
2154
+ protected readonly context: GameContext;
2155
+ constructor(context: GameContext);
2156
+ protected get client(): _wharfkit_antelope.APIClient;
2157
+ protected get server(): _wharfkit_contract.Contract;
2158
+ protected get platform(): _wharfkit_contract.Contract;
2159
+ protected getGame(): Promise<Types$1.game_row>;
2160
+ protected getState(): Promise<GameState>;
2161
+ }
2162
+
2022
2163
  type EntityType = 'ship' | 'warehouse' | 'container' | 'location';
2023
2164
  declare class EntitiesManager extends BaseManager {
2024
2165
  getEntity(type: EntityType, id: UInt64Type): Promise<Ship | Warehouse | Container>;
@@ -2041,6 +2182,7 @@ interface ShiploadOptions {
2041
2182
  platformContractName?: string;
2042
2183
  serverContractName?: string;
2043
2184
  client?: APIClient;
2185
+ subscriptionsUrl?: string;
2044
2186
  }
2045
2187
  interface ShiploadConstructorOptions extends ShiploadOptions {
2046
2188
  platformContract?: Contract$2;
@@ -2058,6 +2200,7 @@ declare class Shipload {
2058
2200
  get locations(): LocationsManager;
2059
2201
  get epochs(): EpochsManager;
2060
2202
  get actions(): ActionsManager;
2203
+ get subscriptions(): SubscriptionsManager;
2061
2204
  getGame(reload?: boolean): Promise<Types$1.game_row>;
2062
2205
  getState(reload?: boolean): Promise<GameState>;
2063
2206
  }
@@ -2825,6 +2968,42 @@ interface DescribeOptions {
2825
2968
  }
2826
2969
  declare function describeItem(resolved: ResolvedItem, opts?: DescribeOptions): string;
2827
2970
 
2971
+ type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
2972
+ interface WebSocketConnectionOptions {
2973
+ url: string;
2974
+ onMessage: (message: ServerMessage) => void;
2975
+ onStateChange?: (state: ConnectionState) => void;
2976
+ }
2977
+ declare class WebSocketConnection {
2978
+ private ws;
2979
+ private url;
2980
+ private onMessage;
2981
+ private onStateChange?;
2982
+ private reconnectAttempts;
2983
+ private reconnectTimeout;
2984
+ private _state;
2985
+ private shouldReconnect;
2986
+ private sendQueue;
2987
+ private static readonly MIN_RECONNECT_DELAY;
2988
+ private static readonly MAX_RECONNECT_DELAY;
2989
+ private static readonly RECONNECT_MULTIPLIER;
2990
+ constructor(options: WebSocketConnectionOptions);
2991
+ get state(): ConnectionState;
2992
+ private setState;
2993
+ connect(): void;
2994
+ private scheduleReconnect;
2995
+ disconnect(): void;
2996
+ close(): void;
2997
+ send(message: ClientMessage): void;
2998
+ get isConnected(): boolean;
2999
+ }
3000
+
3001
+ declare function mapEntity(ei: Types.entity_info): Ship | Warehouse | Container;
3002
+ declare function parseWireEntity(raw: WireEntity): Types.entity_info;
3003
+
3004
+ declare function setSubscriptionsDebug(on: boolean): void;
3005
+ declare function isSubscriptionsDebugEnabled(): boolean;
3006
+
2828
3007
  type movement_stats = Types.movement_stats;
2829
3008
  type energy_stats = Types.energy_stats;
2830
3009
  type loader_stats = Types.loader_stats;
@@ -2838,4 +3017,4 @@ type location_epoch = Types.location_epoch;
2838
3017
  type location_derived = Types.location_derived;
2839
3018
  type location_row = Types.location_row;
2840
3019
 
2841
- export { ActionsManager, AnyEntity, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, 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, ComponentDefinition, ComponentStat, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftableItem, 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, EntityInventory, EntityRecipe, EntityRefInput, EntityState, EntityType, EntityTypeName, EpochInfo, EpochsManager, EstimateTravelTimeOptions, EstimatedTravelTime, 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, INITIAL_CONTAINER_CAPACITY, INITIAL_CONTAINER_HULLMASS, INITIAL_WAREHOUSE_CAPACITY, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_CARGO_ARM, ITEM_CARGO_LINING, ITEM_CARGO_LINING_T2, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_FOCUSING_ARRAY, 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_POWER_CELL, ITEM_REACTION_CHAMBER, 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, 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, ModuleRecipe, ModuleSlot, 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, PlanetSubtypeInfo, platform as PlatformContract, Player, PlayerStateInput, PlayersManager, Projectable, 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, RecipeInput, 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, Ship, ShipCapabilities, ShipEntity, ShipLike, ShipStateInput, Shipload, StackInput, StatDefinition, StatMapping, StorageCapability, StratumInfo, TIER_ADJECTIVES, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskType, TextSpan, TierRange, TransferEntity, 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, 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, categoryItemMass, componentIcon, components, 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, entityRecipes, estimateDealTravelTime, estimateTravelTime, findNearbyPlanets, formatMass, formatMassDelta, formatModuleLine, gatherer_stats, getAllCraftableItems, getCapabilityAttributes, getCategoryInfo, getComponentById, getComponentsForCategory, getComponentsForStat, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEligibleResources, getEntityRecipe, getEntityRecipeByItemId, getEntitySlotLayout, getEpochInfo, getFlightOrigin, getItem, getItems, getLocationCandidates, getLocationType, getLocationTypeName, getModuleCapabilityType, getModuleRecipe, getModuleRecipeByItemId, getPlanetSubtype, getPlanetSubtypes, getPositionAt, 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, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, lerp, loader_stats, location_derived, location_epoch, location_row, location_static, makeContainer, makeShip, makeWarehouse, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleRecipes, movement_stats, needsRecharge, projectEntity, projectEntityAt, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveStats, rollTier, rollWithinTier, rotation, schedule, stackKey, stackToCargoItem, stacksEqual, statMappings, task, tierColors, tierLabels, tierNumber, toLocation, validateSchedule, warehouse_row };
3020
+ 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, ComponentDefinition, ComponentStat, ConnectionState, Container, ContainerEntity, ContainerStateInput, Coordinates, CoordinatesType, CraftableItem, 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, EntityRecipe, EntityRefInput, 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_CARGO_ARM, ITEM_CARGO_LINING, ITEM_CARGO_LINING_T2, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_FOCUSING_ARRAY, 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_POWER_CELL, ITEM_REACTION_CHAMBER, 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, 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, ModuleRecipe, ModuleSlot, 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, 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, RecipeInput, 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, 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, categoryItemMass, componentIcon, components, 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, entityRecipes, estimateDealTravelTime, estimateTravelTime, findNearbyPlanets, formatMass, formatMassDelta, formatModuleLine, gatherer_stats, getAllCraftableItems, getCapabilityAttributes, getCategoryInfo, getComponentById, getComponentsForCategory, getComponentsForStat, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEligibleResources, getEntityRecipe, getEntityRecipeByItemId, getEntitySlotLayout, getEpochInfo, getFlightOrigin, getItem, getItems, getLocationCandidates, getLocationType, getLocationTypeName, getModuleCapabilityType, getModuleRecipe, getModuleRecipeByItemId, getPlanetSubtype, getPlanetSubtypes, getPositionAt, 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, moduleRecipes, movement_stats, needsRecharge, parseWireEntity, projectEntity, projectEntityAt, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, statMappings, task, tierColors, tierLabels, tierNumber, toLocation, validateSchedule, warehouse_row };