@shipload/sdk 1.0.0-next.70 → 1.0.0-next.72

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.
Files changed (42) hide show
  1. package/lib/shipload.d.ts +266 -101
  2. package/lib/shipload.js +898 -404
  3. package/lib/shipload.js.map +1 -1
  4. package/lib/shipload.m.js +880 -398
  5. package/lib/shipload.m.js.map +1 -1
  6. package/lib/testing.d.ts +51 -13
  7. package/lib/testing.js +209 -64
  8. package/lib/testing.js.map +1 -1
  9. package/lib/testing.m.js +209 -64
  10. package/lib/testing.m.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/contracts/server.ts +140 -34
  13. package/src/data/capability-formulas.ts +4 -4
  14. package/src/data/entities.json +84 -68
  15. package/src/data/item-ids.ts +5 -4
  16. package/src/data/items.json +30 -24
  17. package/src/data/kind-registry.json +75 -39
  18. package/src/data/kind-registry.ts +13 -0
  19. package/src/data/metadata.ts +35 -0
  20. package/src/data/recipes.json +194 -155
  21. package/src/derivation/build-methods.test.ts +4 -4
  22. package/src/derivation/capabilities.test.ts +14 -10
  23. package/src/derivation/capabilities.ts +8 -10
  24. package/src/derivation/capability-mappings.ts +4 -4
  25. package/src/derivation/capacity-fn-registry.test.ts +9 -0
  26. package/src/derivation/capacity-fn-registry.ts +18 -0
  27. package/src/derivation/recipe-usage.test.ts +7 -11
  28. package/src/index-module.ts +28 -8
  29. package/src/influence/influence.test.ts +1 -1
  30. package/src/managers/actions.ts +19 -4
  31. package/src/managers/context.ts +9 -0
  32. package/src/managers/fund.ts +49 -0
  33. package/src/managers/index.ts +3 -0
  34. package/src/managers/jobs.test.ts +25 -9
  35. package/src/managers/jobs.ts +8 -4
  36. package/src/nft/description.ts +5 -10
  37. package/src/receipts.ts +9 -9
  38. package/src/resolution/resolve-item.test.ts +15 -10
  39. package/src/scheduling/jobs.test.ts +417 -18
  40. package/src/scheduling/jobs.ts +222 -16
  41. package/src/scheduling/lanes.ts +53 -1
  42. package/src/shipload.ts +5 -0
package/lib/shipload.d.ts CHANGED
@@ -679,11 +679,6 @@ declare namespace Types$1 {
679
679
  id: UInt64;
680
680
  inputs: cargo_item[];
681
681
  }
682
- class booking_receipt extends Struct {
683
- job_id: UInt64;
684
- lands_at: TimePoint;
685
- runtime: UInt32;
686
- }
687
682
  class builder_lane extends Struct {
688
683
  slot_index: UInt8;
689
684
  speed: UInt16;
@@ -697,7 +692,6 @@ declare namespace Types$1 {
697
692
  class buildjob extends Struct {
698
693
  target_id: UInt64;
699
694
  dock_id: UInt64;
700
- slot: UInt8;
701
695
  target_item_id: UInt16;
702
696
  inputs: cargo_item[];
703
697
  }
@@ -718,6 +712,7 @@ declare namespace Types$1 {
718
712
  target_item_id: UInt16;
719
713
  cargo: cargo_item[];
720
714
  deposited: boolean;
715
+ arrives_at: TimePoint;
721
716
  }
722
717
  class buildjobs_result extends Struct {
723
718
  jobs: buildjob_row[];
@@ -751,6 +746,9 @@ declare namespace Types$1 {
751
746
  lane_key: UInt8;
752
747
  from_id: UInt64;
753
748
  }
749
+ class cancelcraft extends Struct {
750
+ job_id: UInt64;
751
+ }
754
752
  class cargo_row extends Struct {
755
753
  id: UInt64;
756
754
  entity_id: UInt64;
@@ -955,7 +953,6 @@ declare namespace Types$1 {
955
953
  class craftjob extends Struct {
956
954
  ship_id: UInt64;
957
955
  workshop_id: UInt64;
958
- slot: UInt8;
959
956
  recipe_id: UInt16;
960
957
  quantity: UInt32;
961
958
  inputs: cargo_item[];
@@ -974,6 +971,7 @@ declare namespace Types$1 {
974
971
  energy_paid: UInt32;
975
972
  cargo: cargo_item[];
976
973
  deposited: boolean;
974
+ arrives_at: TimePoint;
977
975
  }
978
976
  class craftjobs_result extends Struct {
979
977
  jobs: craftjob_row[];
@@ -985,22 +983,50 @@ declare namespace Types$1 {
985
983
  amount_atomic: UInt64;
986
984
  node?: UInt32;
987
985
  }
986
+ class dbgjobs extends Struct {
987
+ crafts: craftjob_row[];
988
+ builds: buildjob_row[];
989
+ }
988
990
  class dbgmandate extends Struct {
989
991
  x: Int64;
990
992
  y: Int64;
991
993
  node_id: UInt32;
992
994
  }
993
- class dbgoldjobs extends Struct {
994
- crafts: craftjob_row[];
995
- builds: buildjob_row[];
996
- }
997
995
  class dbgpagerows extends Struct {
998
996
  rows: UInt32;
999
997
  }
998
+ class reserved_window extends Struct {
999
+ id: UInt64;
1000
+ arrival: TimePoint;
1001
+ starts_at: TimePoint;
1002
+ completes_at: TimePoint;
1003
+ }
1004
+ class socket_candidate extends Struct {
1005
+ windows: reserved_window[];
1006
+ duration: UInt32;
1007
+ active: UInt16;
1008
+ }
1009
+ class dbgpick extends Struct {
1010
+ sockets: socket_candidate[];
1011
+ id: UInt64;
1012
+ arrival: TimePoint;
1013
+ cap: UInt16;
1014
+ }
1015
+ class dbgplace extends Struct {
1016
+ windows: reserved_window[];
1017
+ id: UInt64;
1018
+ arrival: TimePoint;
1019
+ duration: UInt32;
1020
+ }
1000
1021
  class dbgpurge extends Struct {
1001
1022
  table_name: Name;
1002
1023
  scope?: Name;
1003
1024
  }
1025
+ class dbgrepack extends Struct {
1026
+ windows: reserved_window[];
1027
+ cancelled_id: UInt64;
1028
+ now: TimePoint;
1029
+ }
1004
1030
  class dbgseats extends Struct {
1005
1031
  x: Int64;
1006
1032
  y: Int64;
@@ -1604,6 +1630,7 @@ declare namespace Types$1 {
1604
1630
  item_id: UInt16;
1605
1631
  kind: Name;
1606
1632
  display_label: string;
1633
+ base_capacity_fn: string;
1607
1634
  }
1608
1635
  class kind_meta_result extends Struct {
1609
1636
  kinds: kind_meta_row[];
@@ -1644,8 +1671,6 @@ declare namespace Types$1 {
1644
1671
  node_id: UInt32;
1645
1672
  repeats: UInt16;
1646
1673
  }
1647
- class migratejobs extends Struct {
1648
- }
1649
1674
  class mint_threshold_view extends Struct {
1650
1675
  category: UInt8;
1651
1676
  tier: UInt8;
@@ -1826,6 +1851,9 @@ declare namespace Types$1 {
1826
1851
  id: UInt64;
1827
1852
  name: string;
1828
1853
  }
1854
+ class repack_result extends Struct {
1855
+ windows: reserved_window[];
1856
+ }
1829
1857
  class resolve extends Struct {
1830
1858
  id: UInt64;
1831
1859
  count?: UInt64;
@@ -1954,6 +1982,11 @@ declare namespace Types$1 {
1954
1982
  to_id: UInt64;
1955
1983
  items: cargo_item[];
1956
1984
  }
1985
+ class socket_pick extends Struct {
1986
+ found: boolean;
1987
+ socket: UInt8;
1988
+ window: reserved_window;
1989
+ }
1957
1990
  class standing_row extends Struct {
1958
1991
  account: Name;
1959
1992
  lifetime: UInt64;
@@ -2081,6 +2114,11 @@ declare namespace Types$1 {
2081
2114
  x: Int64;
2082
2115
  y: Int64;
2083
2116
  }
2117
+ class window_receipt extends Struct {
2118
+ job_id: UInt64;
2119
+ starts_at: TimePoint;
2120
+ completes_at: TimePoint;
2121
+ }
2084
2122
  class wipe extends Struct {
2085
2123
  }
2086
2124
  class worlds_row extends Struct {
@@ -2258,6 +2296,7 @@ declare namespace ActionParams$1 {
2258
2296
  energy_paid: UInt32Type;
2259
2297
  cargo: Type.cargo_item[];
2260
2298
  deposited: boolean;
2299
+ arrives_at: TimePointType;
2261
2300
  }
2262
2301
  interface coordinates {
2263
2302
  x: Int64Type;
@@ -2276,6 +2315,18 @@ declare namespace ActionParams$1 {
2276
2315
  target_item_id: UInt16Type;
2277
2316
  cargo: Type.cargo_item[];
2278
2317
  deposited: boolean;
2318
+ arrives_at: TimePointType;
2319
+ }
2320
+ interface socket_candidate {
2321
+ windows: Type.reserved_window[];
2322
+ duration: UInt32Type;
2323
+ active: UInt16Type;
2324
+ }
2325
+ interface reserved_window {
2326
+ id: UInt64Type;
2327
+ arrival: TimePointType;
2328
+ starts_at: TimePointType;
2329
+ completes_at: TimePointType;
2279
2330
  }
2280
2331
  interface entity_row {
2281
2332
  id: UInt64Type;
@@ -2426,7 +2477,6 @@ declare namespace ActionParams$1 {
2426
2477
  interface buildjob {
2427
2478
  target_id: UInt64Type;
2428
2479
  dock_id: UInt64Type;
2429
- slot: UInt8Type;
2430
2480
  target_item_id: UInt16Type;
2431
2481
  inputs: Type.cargo_item[];
2432
2482
  }
@@ -2447,6 +2497,9 @@ declare namespace ActionParams$1 {
2447
2497
  lane_key: UInt8Type;
2448
2498
  from_id: UInt64Type;
2449
2499
  }
2500
+ interface cancelcraft {
2501
+ job_id: UInt64Type;
2502
+ }
2450
2503
  interface castballot {
2451
2504
  player: NameType;
2452
2505
  ballot_id: UInt64Type;
@@ -2516,7 +2569,6 @@ declare namespace ActionParams$1 {
2516
2569
  interface craftjob {
2517
2570
  ship_id: UInt64Type;
2518
2571
  workshop_id: UInt64Type;
2519
- slot: UInt8Type;
2520
2572
  recipe_id: UInt16Type;
2521
2573
  quantity: UInt32Type;
2522
2574
  inputs: Type.cargo_item[];
@@ -2528,22 +2580,39 @@ declare namespace ActionParams$1 {
2528
2580
  amount_atomic: UInt64Type;
2529
2581
  node?: UInt32Type;
2530
2582
  }
2583
+ interface dbgjobs {
2584
+ crafts: Type.craftjob_row[];
2585
+ builds: Type.buildjob_row[];
2586
+ }
2531
2587
  interface dbgmandate {
2532
2588
  x: Int64Type;
2533
2589
  y: Int64Type;
2534
2590
  node_id: UInt32Type;
2535
2591
  }
2536
- interface dbgoldjobs {
2537
- crafts: Type.craftjob_row[];
2538
- builds: Type.buildjob_row[];
2539
- }
2540
2592
  interface dbgpagerows {
2541
2593
  rows: UInt32Type;
2542
2594
  }
2595
+ interface dbgpick {
2596
+ sockets: Type.socket_candidate[];
2597
+ id: UInt64Type;
2598
+ arrival: TimePointType;
2599
+ cap: UInt16Type;
2600
+ }
2601
+ interface dbgplace {
2602
+ windows: Type.reserved_window[];
2603
+ id: UInt64Type;
2604
+ arrival: TimePointType;
2605
+ duration: UInt32Type;
2606
+ }
2543
2607
  interface dbgpurge {
2544
2608
  table_name: NameType;
2545
2609
  scope?: NameType;
2546
2610
  }
2611
+ interface dbgrepack {
2612
+ windows: Type.reserved_window[];
2613
+ cancelled_id: UInt64Type;
2614
+ now: TimePointType;
2615
+ }
2547
2616
  interface dbgseats {
2548
2617
  x: Int64Type;
2549
2618
  y: Int64Type;
@@ -2837,8 +2906,6 @@ declare namespace ActionParams$1 {
2837
2906
  from_id: UInt64Type;
2838
2907
  items: Type.cargo_item[];
2839
2908
  }
2840
- interface migratejobs {
2841
- }
2842
2909
  interface mintready {
2843
2910
  max_mints?: UInt32Type;
2844
2911
  }
@@ -3057,6 +3124,7 @@ interface ActionNameParams$1 {
3057
3124
  cancel: ActionParams$1.cancel;
3058
3125
  cancelbuild: ActionParams$1.cancelbuild;
3059
3126
  cancelcivic: ActionParams$1.cancelcivic;
3127
+ cancelcraft: ActionParams$1.cancelcraft;
3060
3128
  castballot: ActionParams$1.castballot;
3061
3129
  charterready: ActionParams$1.charterready;
3062
3130
  civicshuttle: ActionParams$1.civicshuttle;
@@ -3073,10 +3141,13 @@ interface ActionNameParams$1 {
3073
3141
  craft: ActionParams$1.craft;
3074
3142
  craftjob: ActionParams$1.craftjob;
3075
3143
  dbgcredit: ActionParams$1.dbgcredit;
3144
+ dbgjobs: ActionParams$1.dbgjobs;
3076
3145
  dbgmandate: ActionParams$1.dbgmandate;
3077
- dbgoldjobs: ActionParams$1.dbgoldjobs;
3078
3146
  dbgpagerows: ActionParams$1.dbgpagerows;
3147
+ dbgpick: ActionParams$1.dbgpick;
3148
+ dbgplace: ActionParams$1.dbgplace;
3079
3149
  dbgpurge: ActionParams$1.dbgpurge;
3150
+ dbgrepack: ActionParams$1.dbgrepack;
3080
3151
  dbgseats: ActionParams$1.dbgseats;
3081
3152
  delentity: ActionParams$1.delentity;
3082
3153
  demolish: ActionParams$1.demolish;
@@ -3159,7 +3230,6 @@ interface ActionNameParams$1 {
3159
3230
  join: ActionParams$1.join;
3160
3231
  launch: ActionParams$1.launch;
3161
3232
  load: ActionParams$1.load;
3162
- migratejobs: ActionParams$1.migratejobs;
3163
3233
  mintready: ActionParams$1.mintready;
3164
3234
  movetile: ActionParams$1.movetile;
3165
3235
  naturalize: ActionParams$1.naturalize;
@@ -3212,7 +3282,7 @@ type ActionNames$1 = keyof ActionNameParams$1;
3212
3282
  interface ActionReturnValues {
3213
3283
  abandonplot: Types$1.task_results;
3214
3284
  addcontrib: Types$1.task_results;
3215
- buildjob: Types$1.booking_receipt;
3285
+ buildjob: Types$1.window_receipt;
3216
3286
  buildplot: Types$1.task_results;
3217
3287
  cancel: Types$1.cancel_results;
3218
3288
  cancelbuild: Types$1.task_results;
@@ -3222,7 +3292,10 @@ interface ActionReturnValues {
3222
3292
  claimplot: Types$1.task_results;
3223
3293
  clustercraft: Types$1.task_results;
3224
3294
  craft: Types$1.task_results;
3225
- craftjob: Types$1.booking_receipt;
3295
+ craftjob: Types$1.window_receipt;
3296
+ dbgpick: Types$1.socket_pick;
3297
+ dbgplace: Types$1.reserved_window;
3298
+ dbgrepack: Types$1.repack_result;
3226
3299
  demolish: Types$1.task_results;
3227
3300
  deploy: Types$1.task_results;
3228
3301
  depotstore: Types$1.task_results;
@@ -3769,12 +3842,8 @@ declare const ITEM_LAUNCHER_T1 = 10109;
3769
3842
  declare const ITEM_BUILDER_T1 = 10110;
3770
3843
  declare const ITEM_CONTAINER_T1_PACKED = 10200;
3771
3844
  declare const ITEM_SHIP_T1_PACKED = 10201;
3772
- declare const ITEM_WAREHOUSE_T1_PACKED = 10202;
3773
- declare const ITEM_EXTRACTOR_T1_PACKED = 10203;
3774
- declare const ITEM_FACTORY_T1_PACKED = 10204;
3775
3845
  declare const ITEM_MASS_DRIVER_T1_PACKED = 10205;
3776
3846
  declare const ITEM_MASS_CATCHER_T1_PACKED = 10206;
3777
- declare const ITEM_HUB_T1_PACKED = 10207;
3778
3847
  declare const ITEM_WORKSHOP_T1_PACKED = 10208;
3779
3848
  declare const ITEM_CONSTRUCTION_DOCK_T1_PACKED = 10209;
3780
3849
  declare const ITEM_ROUSTABOUT_T1A_PACKED = 10210;
@@ -3807,6 +3876,11 @@ declare const ITEM_WARP_T2 = 11107;
3807
3876
  declare const ITEM_BATTERY_T2 = 11108;
3808
3877
  declare const ITEM_BUILDER_T2 = 11110;
3809
3878
  declare const ITEM_CONTAINER_T2_PACKED = 11200;
3879
+ declare const ITEM_WAREHOUSE_T2_PACKED = 11202;
3880
+ declare const ITEM_EXTRACTOR_T2_PACKED = 11203;
3881
+ declare const ITEM_FACTORY_T2_PACKED = 11204;
3882
+ declare const ITEM_HUB_T2_PACKED = 11207;
3883
+ declare const ITEM_ASSEMBLY_YARD_T2_PACKED = 11209;
3810
3884
  declare const ITEM_PROSPECTOR_T2A_PACKED = 11212;
3811
3885
  declare const ITEM_PROSPECTOR_T2B_PACKED = 11213;
3812
3886
  declare const ITEM_DREDGER_T2A_PACKED = 11214;
@@ -3854,7 +3928,7 @@ declare enum EntityClass {
3854
3928
  Plot = 2,
3855
3929
  OrbitalStructure = 3
3856
3930
  }
3857
- type EntityTypeName = 'ship' | 'warehouse' | 'extractor' | 'factory' | 'builddock' | 'workshop' | 'container' | 'nexus' | 'plot' | 'mdriver' | 'mcatcher' | 'hub' | 'depot';
3931
+ type EntityTypeName = 'ship' | 'warehouse' | 'extractor' | 'factory' | 'builddock' | 'workshop' | 'container' | 'nexus' | 'plot' | 'mdriver' | 'mcatcher' | 'hub' | 'depot' | 'asmblyard';
3858
3932
  interface KindMeta {
3859
3933
  kind: Name;
3860
3934
  classification: EntityClass;
@@ -3866,6 +3940,7 @@ interface TemplateMeta {
3866
3940
  itemId: number;
3867
3941
  kind: Name;
3868
3942
  displayLabel: string;
3943
+ baseCapacityFn: string;
3869
3944
  }
3870
3945
  declare const ALL_ENTITY_TYPES: readonly EntityTypeName[];
3871
3946
  declare function getKindMeta(kind: NameType | EntityTypeName): KindMeta | undefined;
@@ -3885,6 +3960,7 @@ declare const ENTITY_CONTAINER: Name;
3885
3960
  declare const ENTITY_NEXUS: Name;
3886
3961
  declare const ENTITY_HUB: Name;
3887
3962
  declare const ENTITY_DEPOT: Name;
3963
+ declare const ENTITY_ASSEMBLY_YARD: Name;
3888
3964
  declare function isShip(entity: {
3889
3965
  type?: Name;
3890
3966
  }): boolean;
@@ -3918,6 +3994,9 @@ declare function isHub(entity: {
3918
3994
  declare function isDepot(entity: {
3919
3995
  type?: Name;
3920
3996
  }): boolean;
3997
+ declare function isAssemblyYard(entity: {
3998
+ type?: Name;
3999
+ }): boolean;
3921
4000
 
3922
4001
  declare class EntityInventory extends Types$1.cargo_item {
3923
4002
  private _item?;
@@ -4679,6 +4758,122 @@ declare class EpochsManager extends BaseManager {
4679
4758
  getRevealsFor(epoch: UInt64Type): Promise<Types$1.reveal_row[]>;
4680
4759
  }
4681
4760
 
4761
+ type CargoItem$4 = Types$1.cargo_item;
4762
+ interface JobWindow {
4763
+ id: number;
4764
+ socket: number;
4765
+ owner: string;
4766
+ startsAt: Date;
4767
+ completesAt: Date;
4768
+ /** Contract-recorded completion of the input Drop-off. */
4769
+ arrivesAt?: Date;
4770
+ recipeId: number;
4771
+ quantity: number;
4772
+ /** False while the job's inputs are still in transit to the building. */
4773
+ deposited: boolean;
4774
+ /** Packed stat roll of the job's output, when the source carried the job's cargo. */
4775
+ outputStats?: bigint;
4776
+ /** Ship that booked the job; lets a caller find its Drop-off on that ship's schedule. */
4777
+ shipId?: number;
4778
+ /** Inputs the Drop-off carries; matched against the task cargo to find the right Drop-off. */
4779
+ inputs?: CargoItem$4[];
4780
+ }
4781
+ interface JobLaneEntry {
4782
+ kind: 'idle' | 'job';
4783
+ startsAt: Date;
4784
+ completesAt: Date;
4785
+ job?: JobWindow;
4786
+ }
4787
+ interface JobLane {
4788
+ socket: number;
4789
+ entries: JobLaneEntry[];
4790
+ }
4791
+ declare const JOB_QUEUE_CAP = 25;
4792
+ declare function jobsToLanes(jobs: JobWindow[], socketCount: number, now: Date): JobLane[];
4793
+ declare function socketTail(jobs: JobWindow[], socket: number, now: Date): Date;
4794
+ declare function pickFabricator(jobs: JobWindow[], sockets: Array<{
4795
+ open: boolean;
4796
+ }>, durationBySocketMinutes: number[], arrival: Date, now?: Date): {
4797
+ slot: number;
4798
+ startsAt: Date;
4799
+ completesAt: Date;
4800
+ } | null;
4801
+ declare function workshopAvailability(jobs: JobWindow[], socketCount: number, now: Date): {
4802
+ open: number;
4803
+ nextOpeningAt: Date | null;
4804
+ };
4805
+ type JobStatus = 'booked' | 'dropping' | 'queued' | 'crafting' | 'ready' | 'pickingup';
4806
+ interface JobStatusInput {
4807
+ startsAt: Date;
4808
+ completesAt: Date;
4809
+ /** Contract-recorded completion of the input Drop-off. */
4810
+ arrivesAt?: Date;
4811
+ deposited?: boolean;
4812
+ quantity?: number;
4813
+ building?: number;
4814
+ inputs?: readonly CargoItem$4[];
4815
+ }
4816
+ declare function jobDropoffTask(job: JobStatusInput, tasks: readonly OrderedTask[] | undefined): OrderedTask | undefined;
4817
+ declare function jobStatus(job: JobStatusInput, now: Date, tasks?: readonly OrderedTask[]): JobStatus;
4818
+ declare function jobCancellable(status: JobStatus): boolean;
4819
+ type JobCancellationBlockReason = 'legacy-inputs-unavailable' | 'ambiguous-dropoff';
4820
+ /** A migrated output-only job has no retained inputs that modern cancellation could return. */
4821
+ declare function jobCancellationBlockReason(job: JobStatusInput, tasks?: readonly OrderedTask[]): JobCancellationBlockReason | null;
4822
+ type JobCancelRoute = {
4823
+ kind: 'dropoff';
4824
+ shipId: number;
4825
+ laneKey: number;
4826
+ count: number;
4827
+ } | {
4828
+ kind: 'craft';
4829
+ jobId: number;
4830
+ } | {
4831
+ kind: 'build';
4832
+ jobId: number;
4833
+ };
4834
+ declare function jobCancelRoute(job: JobStatusInput & {
4835
+ id: number;
4836
+ shipId?: number;
4837
+ }, now: Date, tasks?: readonly OrderedTask[]): JobCancelRoute | null;
4838
+ declare function buildJobCancelRoute(job: JobStatusInput & {
4839
+ id: number;
4840
+ targetId?: number;
4841
+ }, now: Date, tasks?: readonly OrderedTask[]): JobCancelRoute | null;
4842
+ interface PickupInFlight {
4843
+ building: number;
4844
+ cargo: CargoItem$4[];
4845
+ startsAt: Date;
4846
+ completesAt: Date;
4847
+ }
4848
+ declare function pickupsInFlight(tasks: OrderedTask[], building?: number): PickupInFlight[];
4849
+ declare function jobStatusLabel(status: JobStatus): string;
4850
+ declare function jobDeposited(value: unknown): boolean;
4851
+ declare function splitJobCargo<T>(cargo: readonly T[], deposited: boolean, quantity: number): {
4852
+ output: T | null;
4853
+ inputs: T[];
4854
+ };
4855
+ interface OwnedJob {
4856
+ id: number;
4857
+ building: number;
4858
+ socket: number;
4859
+ shipId: number;
4860
+ coords: {
4861
+ x: number;
4862
+ y: number;
4863
+ };
4864
+ startsAt: Date;
4865
+ completesAt: Date;
4866
+ arrivesAt: Date;
4867
+ recipeId: number;
4868
+ quantity: number;
4869
+ status: JobStatus;
4870
+ deposited: boolean;
4871
+ output: CargoItem$4 | null;
4872
+ inputs: CargoItem$4[];
4873
+ /** Packed stat roll of `output`, so every job shape answers this the same way. */
4874
+ outputStats?: bigint;
4875
+ }
4876
+
4682
4877
  type LaunchNumericInput = number | bigint | string | {
4683
4878
  toNumber(): number;
4684
4879
  } | {
@@ -4746,10 +4941,12 @@ declare class ActionsManager extends BaseManager {
4746
4941
  gatherplan(sourceId: UInt64Type, destinationId: UInt64Type, stratum: UInt16Type, quantity: UInt32Type, recharge?: boolean, slots?: number[]): Action;
4747
4942
  warp(entityId: UInt64Type, destination: CoordinatesType): Action;
4748
4943
  craft(entityId: UInt64Type, recipeId: number, quantity: number, inputs: ActionParams$1.Type.cargo_item[], target?: UInt64Type, slot?: UInt8Type): Action;
4749
- craftjob(shipId: UInt64Type, workshopId: UInt64Type, slot: UInt8Type, recipeId: UInt16Type, quantity: UInt32Type, inputs: ActionParams$1.Type.cargo_item[]): Action;
4944
+ craftjob(shipId: UInt64Type, workshopId: UInt64Type, recipeId: UInt16Type, quantity: UInt32Type, inputs: ActionParams$1.Type.cargo_item[]): Action;
4945
+ cancelcraft(jobId: UInt64Type): Action;
4946
+ canceljob(route: JobCancelRoute): Action;
4750
4947
  clustercraft(entityId: UInt64Type, recipeId: number, quantity: number, sources: ActionParams$1.Type.cluster_source[], target?: UInt64Type, slot?: UInt8Type): Action;
4751
4948
  claimcraft(jobId: UInt64Type, shipId: UInt64Type): Action;
4752
- buildjob(targetId: UInt64Type, dockId: UInt64Type, slot: UInt8Type, targetItemId: UInt16Type, inputs: ActionParams$1.Type.cargo_item[]): Action;
4949
+ buildjob(targetId: UInt64Type, dockId: UInt64Type, targetItemId: UInt16Type, inputs: ActionParams$1.Type.cargo_item[]): Action;
4753
4950
  claimbuild(jobId: UInt64Type): Action;
4754
4951
  cancelbuild(jobId: UInt64Type): Action;
4755
4952
  blend(entityId: UInt64Type, inputs: ActionParams$1.Type.cargo_item[]): Action;
@@ -4801,6 +4998,8 @@ declare class ActionsManager extends BaseManager {
4801
4998
  cleanrsvp(epoch: UInt64Type, maxRows: UInt64Type): Action;
4802
4999
  addFundToken(tokenContract: NameType, tokenSymbol: Asset.SymbolType): Action;
4803
5000
  removeFundToken(tokenContract: NameType): Action;
5001
+ /** Pays every nonzero accrued token balance to the beneficiary. */
5002
+ claimFund(beneficiary: NameType): Action;
4804
5003
  collectFund(): Action;
4805
5004
  found(player: NameType, entityId: UInt64Type, location: CoordinatesType): Action;
4806
5005
  naturalize(player: NameType, location: CoordinatesType): Action;
@@ -4889,71 +5088,26 @@ declare class BalancesManager extends BaseManager {
4889
5088
  getWalletBalance(account: NameType, tokenContract?: NameType, symbolCode?: Asset.SymbolCodeType): Promise<TokenBalance | null>;
4890
5089
  }
4891
5090
 
4892
- type CargoItem$4 = Types$1.cargo_item;
4893
- interface JobWindow {
4894
- id: number;
4895
- socket: number;
4896
- owner: string;
4897
- startsAt: Date;
4898
- completesAt: Date;
4899
- recipeId: number;
4900
- quantity: number;
4901
- /** False while the job is In Line: booked, with its inputs still in transit to the building. */
4902
- deposited: boolean;
4903
- /** Packed stat roll of the job's output, when the source carried the job's cargo. */
4904
- outputStats?: bigint;
5091
+ interface FundBeneficiary {
5092
+ account: Name;
5093
+ bps: UInt16;
4905
5094
  }
4906
- interface JobLaneEntry {
4907
- kind: 'idle' | 'job';
4908
- startsAt: Date;
4909
- completesAt: Date;
4910
- job?: JobWindow;
5095
+ interface FundToken {
5096
+ tokenContract: Name;
5097
+ symbol: Asset.Symbol;
4911
5098
  }
4912
- interface JobLane {
4913
- socket: number;
4914
- entries: JobLaneEntry[];
5099
+ interface FundAccrued {
5100
+ tokenContract: Name;
5101
+ balance: Asset;
4915
5102
  }
4916
- declare const JOB_QUEUE_CAP = 25;
4917
- declare function jobsToLanes(jobs: JobWindow[], socketCount: number, now: Date): JobLane[];
4918
- declare function socketTail(jobs: JobWindow[], socket: number, now: Date): Date;
4919
- declare function pickFabricator(jobs: JobWindow[], sockets: Array<{
4920
- open: boolean;
4921
- }>, durationBySocketMinutes: number[], now: Date): {
4922
- slot: number;
4923
- startsAt: Date;
4924
- completesAt: Date;
4925
- } | null;
4926
- type JobStatus = 'inline' | 'waiting' | 'crafting' | 'ready';
4927
- declare function jobStatus(job: {
4928
- startsAt: Date;
4929
- completesAt: Date;
4930
- deposited?: boolean;
4931
- }, now: Date): JobStatus;
4932
- declare function jobStatusLabel(status: JobStatus): string;
4933
- declare function jobDeposited(value: unknown): boolean;
4934
- declare function splitJobCargo<T>(cargo: readonly T[], deposited: boolean): {
4935
- output: T | null;
4936
- inputs: T[];
4937
- };
4938
- interface OwnedJob {
4939
- id: number;
4940
- building: number;
4941
- socket: number;
4942
- shipId: number;
4943
- coords: {
4944
- x: number;
4945
- y: number;
4946
- };
4947
- startsAt: Date;
4948
- completesAt: Date;
4949
- recipeId: number;
4950
- quantity: number;
4951
- status: JobStatus;
4952
- deposited: boolean;
4953
- output: CargoItem$4 | null;
4954
- inputs: CargoItem$4[];
4955
- /** Packed stat roll of `output`, so every job shape answers this the same way. */
4956
- outputStats?: bigint;
5103
+ /** Live fund ledger reads. Token custody can exceed the amounts accrued to beneficiaries. */
5104
+ declare class FundManager extends BaseManager {
5105
+ getBeneficiaries(): Promise<FundBeneficiary[]>;
5106
+ getTokens(): Promise<FundToken[]>;
5107
+ /** Includes zero rows and claims for tokens no longer accepted; no rows returns []. */
5108
+ getAccrued(beneficiary: NameType): Promise<FundAccrued[]>;
5109
+ /** Platform balances that have not reached the fund's accrual ledger yet. */
5110
+ getUncollected(): Promise<PlatformBalance[]>;
4957
5111
  }
4958
5112
 
4959
5113
  declare class JobsManager extends BaseManager {
@@ -5670,6 +5824,7 @@ declare class GameContext {
5670
5824
  private _clusters?;
5671
5825
  private _nft?;
5672
5826
  private _balances?;
5827
+ private _funds?;
5673
5828
  private _jobs?;
5674
5829
  private _influence?;
5675
5830
  private _subscriptions?;
@@ -5686,6 +5841,7 @@ declare class GameContext {
5686
5841
  get clusters(): ClusterManager;
5687
5842
  get nft(): NftManager;
5688
5843
  get balances(): BalancesManager;
5844
+ get funds(): FundManager;
5689
5845
  get jobs(): JobsManager;
5690
5846
  get influence(): InfluenceManager;
5691
5847
  setSubscriptionsUrl(url: string): void;
@@ -5748,6 +5904,7 @@ declare class Shipload {
5748
5904
  get actions(): ActionsManager;
5749
5905
  get clusters(): ClusterManager;
5750
5906
  get nft(): NftManager;
5907
+ get funds(): FundManager;
5751
5908
  get balances(): BalancesManager;
5752
5909
  get jobs(): JobsManager;
5753
5910
  get influence(): InfluenceManager;
@@ -5788,10 +5945,10 @@ interface InstalledModule {
5788
5945
  stats: bigint;
5789
5946
  }
5790
5947
 
5791
- type BookingReceipt = Types$1.booking_receipt;
5792
- declare function decodeBookingReceipt(data: unknown): BookingReceipt;
5793
- declare function bookingReceiptLandsAtMs(receipt: BookingReceipt): number;
5794
- declare function bookingReceiptRuntimeSeconds(receipt: BookingReceipt): number;
5948
+ type WindowReceipt = Types$1.window_receipt;
5949
+ declare function decodeWindowReceipt(data: unknown): WindowReceipt;
5950
+ declare function windowReceiptStartsAtMs(receipt: WindowReceipt): number;
5951
+ declare function windowReceiptCompletesAtMs(receipt: WindowReceipt): number;
5795
5952
 
5796
5953
  type BuildState = 'initializing' | 'accepting' | 'ready' | 'scheduled' | 'finalizing';
5797
5954
  type FinalizerCapability = 'builder';
@@ -6230,6 +6387,14 @@ declare function resolveLaneLoader(modules: ModuleEntry$3[], entityItemId: numbe
6230
6387
  declare function workerLaneKey(modules: ModuleEntry$3[], moduleSubtype: ModuleType, lanes: Lane[], stratum?: number): number;
6231
6388
  declare function rawScheduleEnd(schedule: Schedule): Date;
6232
6389
  declare function candidateLaneCompletesAt(entity: ScheduleData, laneKey: number, durationSec: number, now: Date): Date;
6390
+ /** Mirrors append.cpp for the position-bound civic Drop-off queued by craftjob. */
6391
+ declare function candidateCivicDepositWindow(entity: ScheduleData & {
6392
+ modules: ModuleEntry$3[];
6393
+ }, durationSec: number, now: Date, minStartsAt?: Date): {
6394
+ laneKey: number;
6395
+ startsAt: Date;
6396
+ completesAt: Date;
6397
+ };
6233
6398
 
6234
6399
  interface CargoData {
6235
6400
  cargo: EntityInventory[];
@@ -6659,7 +6824,7 @@ interface SlotConsumer {
6659
6824
  capability: string;
6660
6825
  attribute: string;
6661
6826
  }
6662
- type SlotConsumerKind = 'engine' | 'generator' | 'gatherer' | 'loader' | 'crafter' | 'builder' | 'storage' | 'hauler' | 'warp' | 'battery' | 'ship-t1' | 'container-t1' | 'warehouse-t1' | 'extractor-t1' | 'container-t2';
6827
+ type SlotConsumerKind = 'engine' | 'generator' | 'gatherer' | 'loader' | 'crafter' | 'builder' | 'storage' | 'hauler' | 'warp' | 'battery' | 'ship-t1' | 'container-t1' | 'warehouse-t2' | 'extractor-t2' | 'container-t2';
6663
6828
  declare const SLOT_FORMULAS: Record<SlotConsumerKind, Record<number, SlotConsumer>>;
6664
6829
 
6665
6830
  declare function sourceLabelForOutput(itemId: number): string;
@@ -7485,9 +7650,9 @@ type cargo_item = Types$1.cargo_item;
7485
7650
  type entity_row = Types$1.entity_row;
7486
7651
  type craftjob_row = Types$1.craftjob_row;
7487
7652
  type buildjob_row = Types$1.buildjob_row;
7488
- type booking_receipt = Types$1.booking_receipt;
7653
+ type window_receipt = Types$1.window_receipt;
7489
7654
 
7490
7655
  type location_static = Types$1.location_static;
7491
7656
  type location_derived = Types$1.location_derived;
7492
7657
 
7493
- export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnchoredScheduleData, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BALLOT_CHARTER, BALLOT_MAX_PICKS, BALLOT_NONE_DUE, BALLOT_NOT_DUE, BALLOT_SETTLING, BAR_SEED, BAR_STEP_DOWN, BAR_STEP_UNIT, BAR_STEP_UP, BASE_HAUL_PENALTY_MILLI, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BalancesManager, Ballot, BallotInput, BallotProjection, BallotVote, BallotVoter, BookingReceipt, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BroadEntitySubscriptionFilter, BuildGatherPlanOpts, BuildMethod, BuildState, BuildableTarget, BuilderStats, BuiltCharter, CANCEL_CONTAINS_GROUPED_TASK, CAPACITY_TIER_TABLE, CAP_CATCH, CAP_DEMOLISH, CAP_MODULES, CAP_STORE_CARGO, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, CHARTER_BASELINE_STAT, CHARTER_INELIGIBILITY_MESSAGES, CHARTER_MAX_GRANTS, CHARTER_MAX_PREREQS, CHARTER_NONE, CHARTER_REGISTRY, CHARTER_RUNG_STEP, CHARTER_WORKSHOP, CHARTER_WORKSHOP_COST, CIVIC_DEPOT, CIVIC_DOCK, CIVIC_GRANT_ADVANCEMENT, CIVIC_GRANT_LEVEL_GATE, CIVIC_GRANT_MODULE, CIVIC_GRANT_NONE, CIVIC_GRANT_RUNG, CIVIC_LOADER_STAT, CIVIC_LOADER_TIER, CIVIC_NEXUS, CIVIC_SPEED_CAP, CIVIC_STAT_BUILD_SPEED, CIVIC_STAT_CRAFT_SPEED, CIVIC_STAT_DEFS, CIVIC_STAT_NONE, CIVIC_STAT_STORAGE_CAPACITY, CIVIC_STAT_TRANSFER_SPEED, CIVIC_TRANSFER_PER_PLAYER_CAP, CIVIC_WORKSHOP, CIVIC_WORLD, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, COORD_MAX, COORD_MIN, COORD_OFFSET, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CancelBlockReason, CancelEffects, CancelEligibilityInput, CancelPlan, CancelRefund, CancelReleasedHold, CapabilityAttribute, CapabilityAttributeRow, CapabilityInput, CargoData, CargoInput, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, CharterGateSignature, CharterGrant, CharterIneligibility, CharterMeta, CharterNode, CharterProgress, CharterRungSignature, CharterSignature, CharterWorld, CivicBuildingPreview, CivicDropoffParams, CivicLoaderStats, CivicShuttleBay, CivicStanding, CivicStatDef, ClientMessage, Cluster, ClusterCell, ClusterCellWire, ClusterDeltaMessage, ClusterManager, ClusterSlotType, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, ContributePreview, ContributePreviewRow, Coord, CoordinateAddress, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, CrafterStats, DECAY_MAX_ITERATIONS, DECAY_RETAIN_DEN, DECAY_RETAIN_NUM, DECOMP_MAX_BUCKETS, DECOMP_MAX_DEPTH, DECOMP_PROCESSED_MASS_MAX, DECOMP_RAW_MASS_MAX, DECOMP_REGISTRY, DEFAULT_BASE_HULLMASS, DEFAULT_ORBITAL_Z, DEMAND_TRIPLE_SEED, DEPLOY_ENTITY_HAS_SCHEDULE, DEPOT_LOADER_SLOT, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecayableStanding, DecodedAtomicAsset, DecompBucket, DecompEntry, DemandRow, DemandTriple, DemandView, DepositConfig, DepotTransferParams, DerivedLoaders, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, ENGINE_DRAIN_BASE, ENGINE_DRAIN_REF_THM, ENGINE_DRAIN_REF_THRUST, ENTITY_ALREADY_THERE, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONSTRUCTION_DOCK, ENTITY_CONTAINER, ENTITY_DEPOT, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_HUB, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, ENTITY_WORKSHOP, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EffectiveReserveInput, EnergyCapability, EntitiesManager, EntitiesSubscriptionHandle, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityDeletedMessage, EntityInfo$2 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionFilter, EntitySubscriptionHandle, EntitySubscriptionHandlers, EntitySubscriptionMeta, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, ExactEntitySubscriptionFilter, Extractor, Factory, FetchAssetsOptions, FillCap, FinalizerCapability, FinalizerEntityRef, FloatPosition, FoundedWorld, FoundedWorldRef, fund as FundContract, Types$3 as FundTypes, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_MASS_DIVISOR, GATHER_NOT_ENOUGH_ENERGY, GRADE_PREMIUM, GRADE_STANDARD, 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, GatherCycle, GatherLane, GatherLimpet, GatherPlan, GatherPlanEntity, GathererCapability, GathererDepthParams, GathererLaneSource, GathererStats, GridCell, HAULER_EFFICIENCY_DENOM, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, INFLUENCE_ATOMIC_PER_POINT, INFLUENCE_D1_SEED, INFLUENCE_MASS_MAX, INFLUENCE_NEED_FP_MAX, INFLUENCE_WEIGHT_FP_MAX, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INTAKE_RATE, INVALID_AMOUNT, ITEM_BATTERY_T1, ITEM_BATTERY_T2, ITEM_BEAM, ITEM_BEAM_T2, 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_BUILDER_T1, ITEM_BUILDER_T2, ITEM_CERAMIC, ITEM_CERAMIC_T2, ITEM_CONSTRUCTION_DOCK_T1_PACKED, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRAFTER_T2, 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_DEPOT_T1_PACKED, ITEM_DOES_NOT_EXIST, ITEM_DREDGER_T2A_PACKED, ITEM_ENGINE_T1, ITEM_ENGINE_T2, ITEM_EXTRACTOR_T1_PACKED, ITEM_FACTORY_T1_PACKED, ITEM_FRAME, ITEM_FRAME_T2, 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_GATHERER_T2, ITEM_GENERATOR_T1, ITEM_GENERATOR_T2, ITEM_HAULER_T1, ITEM_HAULER_T2, ITEM_HUB_T1_PACKED, ITEM_LAUNCHER_T1, ITEM_LOADER_T1, ITEM_LOADER_T2, ITEM_MASS_CATCHER_T1_PACKED, ITEM_MASS_DRIVER_T1_PACKED, ITEM_NEXUS_T1_PACKED, 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_PLASMA_CELL, ITEM_PLASMA_CELL_T2, ITEM_PLATE, ITEM_PLATE_T2, ITEM_POLYMER, ITEM_POLYMER_T2, ITEM_PORTER_T1A_PACKED, ITEM_PROSPECTOR_T1A_PACKED, ITEM_PROSPECTOR_T2A_PACKED, ITEM_PROSPECTOR_T2B_PACKED, ITEM_REACTOR, ITEM_REACTOR_T2, 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_RESIN, ITEM_RESIN_T2, ITEM_RESONATOR, ITEM_RESONATOR_T2, ITEM_ROUSTABOUT_T1A_PACKED, ITEM_SENSOR, ITEM_SENSOR_T2, ITEM_SHIP_T1_PACKED, ITEM_SMITH_T1A_PACKED, ITEM_STORAGE_T1, ITEM_STORAGE_T2, ITEM_TENDER_T1A_PACKED, ITEM_TUG_T1A_PACKED, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, ITEM_WARP_T1, ITEM_WARP_T2, ITEM_WORKSHOP_T1_PACKED, ITEM_WRIGHT_T1A_PACKED, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, IncomingHoldEntity, IncomingSource, InfluenceManager, InfluencePricing, InfluenceStanding, InstalledModule, InventoryAccessor, Item, ItemType, JOB_QUEUE_CAP, JobLane, JobLaneEntry, JobStatus, JobWindow, JobsManager, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCAL_HALF, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LanePlanEntry, LaneView, LaunchNumericInput, LaunchQuote, LaunchQuoteCatcher, LaunchQuoteLauncher, LaunchStatsInput, LoadTimeBreakdown, LoaderCapability, LoaderStats, Location, LocationStratum, LocationType, LocationsManager, MASS_STAT_SCALE, MASS_UNITS_PER_TONNE, MAX_LEGS, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MINTREADY_DEFAULT_CAP, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, MODULE_ANY, MODULE_AUX, MODULE_BATTERY, MODULE_BUILDER, 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_STAT_SCALING_ANCHOR, MODULE_STAT_SCALING_POST_ANCHOR_PERCENT, MODULE_STORAGE, MODULE_TIER_PREFIXES, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, NEED_FP_SCALE, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Neighbor, Nexus, NftConfigForItem, NftManager, NodeProgress, OrderedTask, OwnedJob, OwnerSubscriptionHandle, PLANETARY_STRUCTURE_Z, 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, PendingCivicTransfer, PingMessage, PlanRouteParams, PlanTarget, PlanetSubtypeInfo, PlatformBalance, platform as PlatformContract, Types$2 as PlatformTypes, Player, PlayerRosterEntry, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectedOption, ProjectedSeat, ProjectionOptions, QueuedSeat, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REGION_DIV, REGION_PER_AXIS, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, RESOURCE_BIOMASS, RESOURCE_CATEGORY_COUNT, RESOURCE_CRYSTAL, RESOURCE_GAS, RESOURCE_ORE, RESOURCE_REGOLITH, RESOURCE_TIER_ADJECTIVES, RESOURCE_TIER_MULT_TENTHS, RawData, ReachStats, Recipe, RecipeConsumer, RecipeInput, RecipeSlotInput, RefitOp, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedCrafterLane, ResolvedEvent, ResolvedGathererLane, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedLoaderLane, ResolvedModuleSlot, ResourceCategory, ResourceDemand, ResourceStats, RouteFailure, RouteFailureReason, RouteHeuristicCost, RouteLegCost, RouteLegInput, RouteLegSim, RouteMoverCaps, RouteMoverInput, RouteMoverOpts, RouteMoverRow, RoutePlan, RouteResult, RouteSim, SECTORS_PER_AXIS, SECTOR_DIV, SHIPLOAD_COLLECTION, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_NOT_ARRIVED, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, SLOT_FORMULAS, STAR_STEP, ScanProvider, ScheduleAccessor, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types$1 as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SingleGatherInput, SingleGatherPlan, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StarSortable, StatDefinition, StatFlow, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, SystemGraph, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskCargoResult, TaskType, TemplateMeta, TextSpan, TierRange, TokenBalance, token as TokenContract, TransferEntity, TravelDrainBreakdown, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UnwrapDestination, UnwrapItem, UpdateBoundsMessage, UpdateMessage, VOTE_NOT_CITIZEN, VOTE_READY_DEFAULT_MAX, ValidateDisplayNameOptions, ValuedItem, VoteOption, VoteStandings, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, WEIGHT_FP_SCALE, WH, WOULD_OVERFILL, WOULD_STRAND, W_EFF_ATOMIC_PER_UNIT, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, WorldBuilding, WrapConfig, WrapDeposit, WrapGate, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, abundantMaskFor, addressFromCoordinates, allBuildableItems, allCategoryIndexes, allPlotBuildableItems, allocateProportional, appliedTaskCount, applyCapacityTier, applyResourceTierMultiplier, atomicToPoints, availableBuildMethods, availableCapacity$1 as availableCapacity, availableCapacityFromMass, availableForItem, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, bookingReceiptLandsAtMs, bookingReceiptRuntimeSeconds, booking_receipt, buildComponentImmutable, buildDemand, buildEntityDescription, buildEntityImmutable, buildGatherPlan, buildImmutableData, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, buildjob_row, calcCargoItemMass, calcCargoMass, calcClusterIntake, calcClustercraftDuration, calcCounterpartDelivery, calcEnergyUsage, calcStacksMass, calc_acceleration, calc_build_duration, calc_build_energy, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_gather_rate, calc_group_flighttime, calc_loader_acceleration, calc_loader_flighttime, calc_onesided_duration, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calc_transit_duration, calc_travel_flighttime, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canCatch, canMove, canStoreCargo, cancelEligibility, candidateLaneCompletesAt, capabilityAttributes, capabilityNames, capacityTierMultiplier, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLauncher, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoInputKey, cargoItem, cargoItemToStack, cargoKey, cargoReadyAt, cargoRef, cargoUtils, cargo_item, categoryAtIndex, categoryColors, categoryFromIndex, categoryIndex, categoryLabel, categoryLabelFromIndex, charterBuildingEntity, charterEligible, charterEligibleChained, charterGateNodeFor, charterIneligible, charterMetadata, charterModuleCount, charterName, charterNode, charterPrereqsMet, charterRungValue, charterSignature, charterSingletonMandate, charterSummary, citizenryName, citizenryPatternCount, civicBuildingFor, civicBuildingKind, civicBuildingLabel, civicDropoffDuration, civicHullItem, civicLoader, civicModuleItemFor, civicShuttleBays, civicStatLabel, civicStatModuleType, civicTransfersAtCap, civicTransfersFrom, clusterStockAvailable, compareByStars, componentBaseAtomic, componentEffortAtomic, componentIcon, composeIdleResolve, computeBaseCapacity, computeBaseCapacityContainer, computeBaseCapacityDepot, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeBatteryCapabilities, computeBuilderCapabilities, computeBuilderDrain, computeBuilderSpeed, computeComponentStats, computeContainerCapabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeDepotHullCapabilities, computeEffectiveModuleStat, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityCapabilities, computeEntityStats, computeFreeCells, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeGroupPerLegReach, computeHaulPenalty, computeHaulerCapabilities, computeHaulerCapacity, computeHaulerEfficiency, computeInputMass, computeLauncherCapabilities, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeNftImageUrl, computePerLegReach, computeShipHullCapabilities, computeStorageCapabilities, computeTravelDrain, computeWarehouseHullCapabilities, computeWarpCapabilities, computeWarpRange, contractRouteHeuristic, contractRouteLegCost, contributeDuration, contributeDurationForTonnes, coordsToLocationId, coupling, craftEnergyCost, craftjob_row, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decayActive, decodeAddress, decodeAtomicAsset, decodeBookingReceipt, decodeCraftedItemStats, decodeRegion, decodeSector, decodeStat, decodeStats, Shipload as default, demandRoll, depotTransferDuration, deriveDemand, deriveLocation, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStatMappings, deriveStrata, deriveStratum, derivedLoaders, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeAtomicData, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, easeFlightProgress, eligibleCharters, eligibleUpgrades, emptyCivicModules, encodeAddress, encodeAddressMemo, encodeGatheredCargoStats, encodeRegion, encodeSector, encodeStats, energyAtTime, energyPercent, energy_stats, entityDisplayName, entityToRouteMover, entity_row, estimateDealTravelTime, estimateTravelTime, estimateUnwrapDuration, feistel, feistelInv, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findCivicStatDef, findDecomp, findNearbyPlanets, fitCivicModules, flightSpeedFactor, formatInfluence, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatNeedMultiplier, formatTier, gatherEnergyCost, gathererDepthForTier, getAllRecipes, getBaseHullmassFor, getCapabilityAttributeRows, getCapabilityAttributes, getCategoryInfo, getComponentDemand, getComponents, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEffectiveReserve, getEligibleResources, getEntityClass, getEntityItems, getEntityLayout, getEpochInfo, getFlightOrigin, getInterpolatedPosition, getItem, getItems, getKindMeta, getLocationCandidates, getLocationKind, getLocationProfile, getLocationType, getLocationTypeName, getModuleCapabilityType, getModules, getPackedEntityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getProducersForAttribute, getRecipe, getRecipeConsumers, getResourceDemand, getResourceTier, getResourceWeight, getResources, getStatCount, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, getTemplateMeta, hasEnergy, hasEnergyForDistance, hasGatherer, hasIncomingCoupling, hasLoaders, hasMass, hasSchedule, hasSourceCoupling, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, hydrateEntityLanes, incomingHoldMass, incomingSources, influenceWeightKey, interpolateFlightPosition, isAbundant, isAcute, isBuildable, isCivicEntity, isCivicKind, isConstructionDock, isContainer, isCraftedItem, isDepot, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isHub, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isSettling, isShip, isSubscriptionsDebugEnabled, isValidWormholePair, isWarehouse, isWorkshop, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, itemTypeIndex, jobDeposited, jobStatus, jobStatusLabel, jobsToLanes, kindCan, lackingMaskFrom, lane, laneKeyForModule, lerp, locationIdToCoords, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxQtyForCharge, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, nearbyWormholes, needForCategory, needMultiplier, needsRecharge, normalizeActive, normalizeDisplayName, parseWireEntity, partnerRegion, pendingCivicTransfers, pickAcuteCategory, pickFabricator, planParallelTransfer, planRoute, planRouteWithRetry, planSingleGather, poolKey, popcount5, previewCharterGrants, pricingFromWeights, projectBallot, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, projectedPeakCargomass, qualityFactor, raiseCivicStat, rawScheduleEnd, readCommonBase, receiveFits, regionOf, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveLaneBuilder, resolveLaneCrafter, resolveLaneGatherer, resolveLaneLoader, resolveLockedAmount, resolveStats, resourceValueAtomic, rollTier, rollWithinTier, rollupBuilder, rollupCrafter, rollupGatherer, rollupLoaders, romanNumeral, rotation, schedule, sdkSystemGraph, selectCivicShuttleBay, selectGatherLane, setSubscriptionsDebug, simulateRoute, slotAcceptsModule, socketTail, sourceLabelForOutput, splitCost, splitJobCargo, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, statsSumSq, subtractFromStacks, task, taskCargoChanges, taskCargoChangesChecked, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, tryGetItem, typeLabel, unappliedTasks, unwrapLoadDuration, unwrapTransitDuration, usedInputStatKeys, validateDisplayName, validateSchedule, valueCargoItem, valueContribution, weightedQualityAtomic, workerLaneKey, wormholeAt, wormholeAtRegionEndpoint, wrapCostKey, yieldThresholdAt };
7658
+ export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnchoredScheduleData, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BALLOT_CHARTER, BALLOT_MAX_PICKS, BALLOT_NONE_DUE, BALLOT_NOT_DUE, BALLOT_SETTLING, BAR_SEED, BAR_STEP_DOWN, BAR_STEP_UNIT, BAR_STEP_UP, BASE_HAUL_PENALTY_MILLI, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BalancesManager, Ballot, BallotInput, BallotProjection, BallotVote, BallotVoter, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BroadEntitySubscriptionFilter, BuildGatherPlanOpts, BuildMethod, BuildState, BuildableTarget, BuilderStats, BuiltCharter, CANCEL_CONTAINS_GROUPED_TASK, CAPACITY_TIER_TABLE, CAP_CATCH, CAP_DEMOLISH, CAP_MODULES, CAP_STORE_CARGO, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, CHARTER_BASELINE_STAT, CHARTER_INELIGIBILITY_MESSAGES, CHARTER_MAX_GRANTS, CHARTER_MAX_PREREQS, CHARTER_NONE, CHARTER_REGISTRY, CHARTER_RUNG_STEP, CHARTER_WORKSHOP, CHARTER_WORKSHOP_COST, CIVIC_DEPOT, CIVIC_DOCK, CIVIC_GRANT_ADVANCEMENT, CIVIC_GRANT_LEVEL_GATE, CIVIC_GRANT_MODULE, CIVIC_GRANT_NONE, CIVIC_GRANT_RUNG, CIVIC_LOADER_STAT, CIVIC_LOADER_TIER, CIVIC_NEXUS, CIVIC_SPEED_CAP, CIVIC_STAT_BUILD_SPEED, CIVIC_STAT_CRAFT_SPEED, CIVIC_STAT_DEFS, CIVIC_STAT_NONE, CIVIC_STAT_STORAGE_CAPACITY, CIVIC_STAT_TRANSFER_SPEED, CIVIC_TRANSFER_PER_PLAYER_CAP, CIVIC_WORKSHOP, CIVIC_WORLD, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, COORD_MAX, COORD_MIN, COORD_OFFSET, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, CancelBlockReason, CancelEffects, CancelEligibilityInput, CancelPlan, CancelRefund, CancelReleasedHold, CapabilityAttribute, CapabilityAttributeRow, CapabilityInput, CargoData, CargoInput, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, CharterGateSignature, CharterGrant, CharterIneligibility, CharterMeta, CharterNode, CharterProgress, CharterRungSignature, CharterSignature, CharterWorld, CivicBuildingPreview, CivicDropoffParams, CivicLoaderStats, CivicShuttleBay, CivicStanding, CivicStatDef, ClientMessage, Cluster, ClusterCell, ClusterCellWire, ClusterDeltaMessage, ClusterManager, ClusterSlotType, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, ContributePreview, ContributePreviewRow, Coord, CoordinateAddress, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, CrafterStats, DECAY_MAX_ITERATIONS, DECAY_RETAIN_DEN, DECAY_RETAIN_NUM, DECOMP_MAX_BUCKETS, DECOMP_MAX_DEPTH, DECOMP_PROCESSED_MASS_MAX, DECOMP_RAW_MASS_MAX, DECOMP_REGISTRY, DEFAULT_BASE_HULLMASS, DEFAULT_ORBITAL_Z, DEMAND_TRIPLE_SEED, DEPLOY_ENTITY_HAS_SCHEDULE, DEPOT_LOADER_SLOT, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecayableStanding, DecodedAtomicAsset, DecompBucket, DecompEntry, DemandRow, DemandTriple, DemandView, DepositConfig, DepotTransferParams, DerivedLoaders, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, ENGINE_DRAIN_BASE, ENGINE_DRAIN_REF_THM, ENGINE_DRAIN_REF_THRUST, ENTITY_ALREADY_THERE, ENTITY_ASSEMBLY_YARD, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONSTRUCTION_DOCK, ENTITY_CONTAINER, ENTITY_DEPOT, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_HUB, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, ENTITY_WORKSHOP, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EffectiveReserveInput, EnergyCapability, EntitiesManager, EntitiesSubscriptionHandle, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityDeletedMessage, EntityInfo$2 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionFilter, EntitySubscriptionHandle, EntitySubscriptionHandlers, EntitySubscriptionMeta, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, ExactEntitySubscriptionFilter, Extractor, Factory, FetchAssetsOptions, FillCap, FinalizerCapability, FinalizerEntityRef, FloatPosition, FoundedWorld, FoundedWorldRef, FundAccrued, FundBeneficiary, fund as FundContract, FundManager, FundToken, Types$3 as FundTypes, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_MASS_DIVISOR, GATHER_NOT_ENOUGH_ENERGY, GRADE_PREMIUM, GRADE_STANDARD, 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, GatherCycle, GatherLane, GatherLimpet, GatherPlan, GatherPlanEntity, GathererCapability, GathererDepthParams, GathererLaneSource, GathererStats, GridCell, HAULER_EFFICIENCY_DENOM, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, INFLUENCE_ATOMIC_PER_POINT, INFLUENCE_D1_SEED, INFLUENCE_MASS_MAX, INFLUENCE_NEED_FP_MAX, INFLUENCE_WEIGHT_FP_MAX, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INTAKE_RATE, INVALID_AMOUNT, ITEM_ASSEMBLY_YARD_T2_PACKED, ITEM_BATTERY_T1, ITEM_BATTERY_T2, ITEM_BEAM, ITEM_BEAM_T2, 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_BUILDER_T1, ITEM_BUILDER_T2, ITEM_CERAMIC, ITEM_CERAMIC_T2, ITEM_CONSTRUCTION_DOCK_T1_PACKED, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRAFTER_T2, 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_DEPOT_T1_PACKED, ITEM_DOES_NOT_EXIST, ITEM_DREDGER_T2A_PACKED, ITEM_ENGINE_T1, ITEM_ENGINE_T2, ITEM_EXTRACTOR_T2_PACKED, ITEM_FACTORY_T2_PACKED, ITEM_FRAME, ITEM_FRAME_T2, 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_GATHERER_T2, ITEM_GENERATOR_T1, ITEM_GENERATOR_T2, ITEM_HAULER_T1, ITEM_HAULER_T2, ITEM_HUB_T2_PACKED, ITEM_LAUNCHER_T1, ITEM_LOADER_T1, ITEM_LOADER_T2, ITEM_MASS_CATCHER_T1_PACKED, ITEM_MASS_DRIVER_T1_PACKED, ITEM_NEXUS_T1_PACKED, 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_PLASMA_CELL, ITEM_PLASMA_CELL_T2, ITEM_PLATE, ITEM_PLATE_T2, ITEM_POLYMER, ITEM_POLYMER_T2, ITEM_PORTER_T1A_PACKED, ITEM_PROSPECTOR_T1A_PACKED, ITEM_PROSPECTOR_T2A_PACKED, ITEM_PROSPECTOR_T2B_PACKED, ITEM_REACTOR, ITEM_REACTOR_T2, 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_RESIN, ITEM_RESIN_T2, ITEM_RESONATOR, ITEM_RESONATOR_T2, ITEM_ROUSTABOUT_T1A_PACKED, ITEM_SENSOR, ITEM_SENSOR_T2, ITEM_SHIP_T1_PACKED, ITEM_SMITH_T1A_PACKED, ITEM_STORAGE_T1, ITEM_STORAGE_T2, ITEM_TENDER_T1A_PACKED, ITEM_TUG_T1A_PACKED, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T2_PACKED, ITEM_WARP_T1, ITEM_WARP_T2, ITEM_WORKSHOP_T1_PACKED, ITEM_WRIGHT_T1A_PACKED, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, IncomingHoldEntity, IncomingSource, InfluenceManager, InfluencePricing, InfluenceStanding, InstalledModule, InventoryAccessor, Item, ItemType, JOB_QUEUE_CAP, JobCancelRoute, JobCancellationBlockReason, JobLane, JobLaneEntry, JobStatus, JobStatusInput, JobWindow, JobsManager, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCAL_HALF, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LanePlanEntry, LaneView, LaunchNumericInput, LaunchQuote, LaunchQuoteCatcher, LaunchQuoteLauncher, LaunchStatsInput, LoadTimeBreakdown, LoaderCapability, LoaderStats, Location, LocationStratum, LocationType, LocationsManager, MASS_STAT_SCALE, MASS_UNITS_PER_TONNE, MAX_LEGS, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MINTREADY_DEFAULT_CAP, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, MODULE_ANY, MODULE_AUX, MODULE_BATTERY, MODULE_BUILDER, 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_STAT_SCALING_ANCHOR, MODULE_STAT_SCALING_POST_ANCHOR_PERCENT, MODULE_STORAGE, MODULE_TIER_PREFIXES, MODULE_TYPE_MISMATCH, MODULE_WARP, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, NEED_FP_SCALE, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Neighbor, Nexus, NftConfigForItem, NftManager, NodeProgress, OrderedTask, OwnedJob, OwnerSubscriptionHandle, PLANETARY_STRUCTURE_Z, 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, PendingCivicTransfer, PickupInFlight, PingMessage, PlanRouteParams, PlanTarget, PlanetSubtypeInfo, PlatformBalance, platform as PlatformContract, Types$2 as PlatformTypes, Player, PlayerRosterEntry, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectedOption, ProjectedSeat, ProjectionOptions, QueuedSeat, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REGION_DIV, REGION_PER_AXIS, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, RESOURCE_BIOMASS, RESOURCE_CATEGORY_COUNT, RESOURCE_CRYSTAL, RESOURCE_GAS, RESOURCE_ORE, RESOURCE_REGOLITH, RESOURCE_TIER_ADJECTIVES, RESOURCE_TIER_MULT_TENTHS, RawData, ReachStats, Recipe, RecipeConsumer, RecipeInput, RecipeSlotInput, RefitOp, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedCrafterLane, ResolvedEvent, ResolvedGathererLane, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedLoaderLane, ResolvedModuleSlot, ResourceCategory, ResourceDemand, ResourceStats, RouteFailure, RouteFailureReason, RouteHeuristicCost, RouteLegCost, RouteLegInput, RouteLegSim, RouteMoverCaps, RouteMoverInput, RouteMoverOpts, RouteMoverRow, RoutePlan, RouteResult, RouteSim, SECTORS_PER_AXIS, SECTOR_DIV, SHIPLOAD_COLLECTION, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_NOT_ARRIVED, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, SLOT_FORMULAS, STAR_STEP, ScanProvider, ScheduleAccessor, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types$1 as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SingleGatherInput, SingleGatherPlan, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StarSortable, StatDefinition, StatFlow, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, SystemGraph, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskCargoResult, TaskType, TemplateMeta, TextSpan, TierRange, TokenBalance, token as TokenContract, TransferEntity, TravelDrainBreakdown, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UnwrapDestination, UnwrapItem, UpdateBoundsMessage, UpdateMessage, VOTE_NOT_CITIZEN, VOTE_READY_DEFAULT_MAX, ValidateDisplayNameOptions, ValuedItem, VoteOption, VoteStandings, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, WEIGHT_FP_SCALE, WH, WOULD_OVERFILL, WOULD_STRAND, W_EFF_ATOMIC_PER_UNIT, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WindowReceipt, WireCoordinates, WireEntity, WorldBuilding, WrapConfig, WrapDeposit, WrapGate, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, abundantMaskFor, addressFromCoordinates, allBuildableItems, allCategoryIndexes, allPlotBuildableItems, allocateProportional, appliedTaskCount, applyCapacityTier, applyResourceTierMultiplier, atomicToPoints, availableBuildMethods, availableCapacity$1 as availableCapacity, availableCapacityFromMass, availableForItem, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildComponentImmutable, buildDemand, buildEntityDescription, buildEntityImmutable, buildGatherPlan, buildImmutableData, buildJobCancelRoute, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, buildjob_row, calcCargoItemMass, calcCargoMass, calcClusterIntake, calcClustercraftDuration, calcCounterpartDelivery, calcEnergyUsage, calcStacksMass, calc_acceleration, calc_build_duration, calc_build_energy, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_gather_rate, calc_group_flighttime, calc_loader_acceleration, calc_loader_flighttime, calc_onesided_duration, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calc_transit_duration, calc_travel_flighttime, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canCatch, canMove, canStoreCargo, cancelEligibility, candidateCivicDepositWindow, candidateLaneCompletesAt, capabilityAttributes, capabilityNames, capacityTierMultiplier, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLauncher, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoInputKey, cargoItem, cargoItemToStack, cargoKey, cargoReadyAt, cargoRef, cargoUtils, cargo_item, categoryAtIndex, categoryColors, categoryFromIndex, categoryIndex, categoryLabel, categoryLabelFromIndex, charterBuildingEntity, charterEligible, charterEligibleChained, charterGateNodeFor, charterIneligible, charterMetadata, charterModuleCount, charterName, charterNode, charterPrereqsMet, charterRungValue, charterSignature, charterSingletonMandate, charterSummary, citizenryName, citizenryPatternCount, civicBuildingFor, civicBuildingKind, civicBuildingLabel, civicDropoffDuration, civicHullItem, civicLoader, civicModuleItemFor, civicShuttleBays, civicStatLabel, civicStatModuleType, civicTransfersAtCap, civicTransfersFrom, clusterStockAvailable, compareByStars, componentBaseAtomic, componentEffortAtomic, componentIcon, composeIdleResolve, computeBaseCapacity, computeBaseCapacityContainer, computeBaseCapacityDepot, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeBatteryCapabilities, computeBuilderCapabilities, computeBuilderDrain, computeBuilderSpeed, computeComponentStats, computeContainerCapabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeDepotHullCapabilities, computeEffectiveModuleStat, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityCapabilities, computeEntityStats, computeFreeCells, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeGroupPerLegReach, computeHaulPenalty, computeHaulerCapabilities, computeHaulerCapacity, computeHaulerEfficiency, computeInputMass, computeLauncherCapabilities, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeNftImageUrl, computePerLegReach, computeShipHullCapabilities, computeStorageCapabilities, computeTravelDrain, computeWarehouseHullCapabilities, computeWarpCapabilities, computeWarpRange, contractRouteHeuristic, contractRouteLegCost, contributeDuration, contributeDurationForTonnes, coordsToLocationId, coupling, craftEnergyCost, craftjob_row, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decayActive, decodeAddress, decodeAtomicAsset, decodeCraftedItemStats, decodeRegion, decodeSector, decodeStat, decodeStats, decodeWindowReceipt, Shipload as default, demandRoll, depotTransferDuration, deriveDemand, deriveLocation, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStatMappings, deriveStrata, deriveStratum, derivedLoaders, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeAtomicData, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, easeFlightProgress, eligibleCharters, eligibleUpgrades, emptyCivicModules, encodeAddress, encodeAddressMemo, encodeGatheredCargoStats, encodeRegion, encodeSector, encodeStats, energyAtTime, energyPercent, energy_stats, entityDisplayName, entityToRouteMover, entity_row, estimateDealTravelTime, estimateTravelTime, estimateUnwrapDuration, feistel, feistelInv, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findCivicStatDef, findDecomp, findNearbyPlanets, fitCivicModules, flightSpeedFactor, formatInfluence, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatNeedMultiplier, formatTier, gatherEnergyCost, gathererDepthForTier, getAllRecipes, getBaseHullmassFor, getCapabilityAttributeRows, getCapabilityAttributes, getCategoryInfo, getComponentDemand, getComponents, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEffectiveReserve, getEligibleResources, getEntityClass, getEntityItems, getEntityLayout, getEpochInfo, getFlightOrigin, getInterpolatedPosition, getItem, getItems, getKindMeta, getLocationCandidates, getLocationKind, getLocationProfile, getLocationType, getLocationTypeName, getModuleCapabilityType, getModules, getPackedEntityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getProducersForAttribute, getRecipe, getRecipeConsumers, getResourceDemand, getResourceTier, getResourceWeight, getResources, getStatCount, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, getTemplateMeta, hasEnergy, hasEnergyForDistance, hasGatherer, hasIncomingCoupling, hasLoaders, hasMass, hasSchedule, hasSourceCoupling, hasSpace$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, hydrateEntityLanes, incomingHoldMass, incomingSources, influenceWeightKey, interpolateFlightPosition, isAbundant, isAcute, isAssemblyYard, isBuildable, isCivicEntity, isCivicKind, isConstructionDock, isContainer, isCraftedItem, isDepot, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isHub, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isSettling, isShip, isSubscriptionsDebugEnabled, isValidWormholePair, isWarehouse, isWorkshop, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, itemTypeIndex, jobCancelRoute, jobCancellable, jobCancellationBlockReason, jobDeposited, jobDropoffTask, jobStatus, jobStatusLabel, jobsToLanes, kindCan, lackingMaskFrom, lane, laneKeyForModule, lerp, locationIdToCoords, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxQtyForCharge, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, nearbyWormholes, needForCategory, needMultiplier, needsRecharge, normalizeActive, normalizeDisplayName, parseWireEntity, partnerRegion, pendingCivicTransfers, pickAcuteCategory, pickFabricator, pickupsInFlight, planParallelTransfer, planRoute, planRouteWithRetry, planSingleGather, poolKey, popcount5, previewCharterGrants, pricingFromWeights, projectBallot, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, projectedPeakCargomass, qualityFactor, raiseCivicStat, rawScheduleEnd, readCommonBase, receiveFits, regionOf, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveLaneBuilder, resolveLaneCrafter, resolveLaneGatherer, resolveLaneLoader, resolveLockedAmount, resolveStats, resourceValueAtomic, rollTier, rollWithinTier, rollupBuilder, rollupCrafter, rollupGatherer, rollupLoaders, romanNumeral, rotation, schedule, sdkSystemGraph, selectCivicShuttleBay, selectGatherLane, setSubscriptionsDebug, simulateRoute, slotAcceptsModule, socketTail, sourceLabelForOutput, splitCost, splitJobCargo, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, statsSumSq, subtractFromStacks, task, taskCargoChanges, taskCargoChangesChecked, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, tryGetItem, typeLabel, unappliedTasks, unwrapLoadDuration, unwrapTransitDuration, usedInputStatKeys, validateDisplayName, validateSchedule, valueCargoItem, valueContribution, weightedQualityAtomic, windowReceiptCompletesAtMs, windowReceiptStartsAtMs, window_receipt, workerLaneKey, workshopAvailability, wormholeAt, wormholeAtRegionEndpoint, wrapCostKey, yieldThresholdAt };