@neilberkman/sidereon 3.0.4 → 3.0.5

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.
@@ -6109,7 +6109,7 @@ class ExactCacheSingleFlightWait {
6109
6109
  * Observe an opaque IndexedDB owner/heartbeat revision.
6110
6110
  * @param {number} now_ms
6111
6111
  * @param {Uint8Array} revision
6112
- * @returns {any}
6112
+ * @returns {ExactCacheSingleFlightDecision}
6113
6113
  */
6114
6114
  observe(now_ms, revision) {
6115
6115
  const ptr0 = passArray8ToWasm0(revision, wasm.__wbindgen_malloc);
@@ -8070,7 +8070,7 @@ class GnssInsFilter {
8070
8070
  }
8071
8071
  /**
8072
8072
  * Build a filter, then restore its state from versioned fusion-state bytes.
8073
- * @param {any} config
8073
+ * @param {FusionConfig} config
8074
8074
  * @param {Uint8Array} bytes
8075
8075
  * @returns {GnssInsFilter}
8076
8076
  */
@@ -8085,7 +8085,7 @@ class GnssInsFilter {
8085
8085
  }
8086
8086
  /**
8087
8087
  * Build a filter from a JS configuration object.
8088
- * @param {any} config
8088
+ * @param {FusionConfig} config
8089
8089
  */
8090
8090
  constructor(config) {
8091
8091
  const ret = wasm.gnssinsfilter_new(config);
@@ -11362,7 +11362,7 @@ class LnavDecoded {
11362
11362
  return ret;
11363
11363
  }
11364
11364
  /**
11365
- * Mean motion difference, radians per second.
11365
+ * Mean motion difference, semicircles per second.
11366
11366
  * @returns {number}
11367
11367
  */
11368
11368
  get deltaN() {
@@ -11386,7 +11386,7 @@ class LnavDecoded {
11386
11386
  return ret;
11387
11387
  }
11388
11388
  /**
11389
- * Inclination at reference time, radians.
11389
+ * Inclination at reference time, semicircles.
11390
11390
  * @returns {number}
11391
11391
  */
11392
11392
  get i0() {
@@ -11394,7 +11394,7 @@ class LnavDecoded {
11394
11394
  return ret;
11395
11395
  }
11396
11396
  /**
11397
- * Rate of inclination, radians per second.
11397
+ * Rate of inclination, semicircles per second.
11398
11398
  * @returns {number}
11399
11399
  */
11400
11400
  get idot() {
@@ -11426,7 +11426,7 @@ class LnavDecoded {
11426
11426
  return ret;
11427
11427
  }
11428
11428
  /**
11429
- * Mean anomaly at reference time, radians.
11429
+ * Mean anomaly at reference time, semicircles.
11430
11430
  * @returns {number}
11431
11431
  */
11432
11432
  get m0() {
@@ -11434,7 +11434,7 @@ class LnavDecoded {
11434
11434
  return ret;
11435
11435
  }
11436
11436
  /**
11437
- * Argument of perigee, radians.
11437
+ * Argument of perigee, semicircles.
11438
11438
  * @returns {number}
11439
11439
  */
11440
11440
  get omega() {
@@ -11442,7 +11442,7 @@ class LnavDecoded {
11442
11442
  return ret;
11443
11443
  }
11444
11444
  /**
11445
- * Longitude of ascending node at weekly epoch, radians.
11445
+ * Longitude of ascending node at weekly epoch, semicircles.
11446
11446
  * @returns {number}
11447
11447
  */
11448
11448
  get omega0() {
@@ -11450,7 +11450,7 @@ class LnavDecoded {
11450
11450
  return ret;
11451
11451
  }
11452
11452
  /**
11453
- * Rate of right ascension, radians per second.
11453
+ * Rate of right ascension, semicircles per second.
11454
11454
  * @returns {number}
11455
11455
  */
11456
11456
  get omegaDot() {
@@ -22178,7 +22178,7 @@ class SmoothedTrack {
22178
22178
  return ret >>> 0;
22179
22179
  }
22180
22180
  /**
22181
- * @returns {any}
22181
+ * @returns {SmoothedTrackEpoch[]}
22182
22182
  */
22183
22183
  get epochs() {
22184
22184
  const ret = wasm.smoothedtrack_epochs(this.__wbg_ptr);
@@ -22239,7 +22239,8 @@ exports.SourcedSolution = SourcedSolution;
22239
22239
  * Create with [`load_sp3`]. Query interpolated states with
22240
22240
  * [`Sp3.interpolate`], the exact parsed records with [`Sp3.state`], the node
22241
22241
  * epoch axis with [`Sp3.epochsJ2000Seconds`], run positioning with
22242
- * [`Sp3.solveSpp`], and serialize back with [`Sp3.toSp3String`].
22242
+ * [`Sp3.solveSpp`], and serialize back with [`Sp3.toSp3String`] or explicitly
22243
+ * quantize record values with [`Sp3.toSp3StringWithRounding`].
22243
22244
  */
22244
22245
  class Sp3 {
22245
22246
  static __wrap(ptr) {
@@ -22923,6 +22924,22 @@ class Sp3 {
22923
22924
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
22924
22925
  }
22925
22926
  }
22927
+ /**
22928
+ * Serialize after explicitly rounding a copy of the record values to SP3
22929
+ * column precision. The returned report gives the maximum absolute
22930
+ * change in each record field, in that field's SI units. Header fields
22931
+ * and epochs retain their existing precision. Structural failures,
22932
+ * overflow, and values that would become SP3 absence sentinels still
22933
+ * throw a typed `Sp3WriteError`.
22934
+ * @returns {Sp3StringWithRounding}
22935
+ */
22936
+ toSp3StringWithRounding() {
22937
+ const ret = wasm.sp3_toSp3StringWithRounding(this.__wbg_ptr);
22938
+ if (ret[2]) {
22939
+ throw takeFromExternrefTable0(ret[1]);
22940
+ }
22941
+ return takeFromExternrefTable0(ret[0]);
22942
+ }
22926
22943
  /**
22927
22944
  * @param {string} satellite
22928
22945
  * @param {ExactEpochQuery} state_epoch
@@ -22958,7 +22975,8 @@ exports.Sp3 = Sp3;
22958
22975
 
22959
22976
  /**
22960
22977
  * Per-(epoch, satellite) agreement statistics for one accepted merged cell:
22961
- * how tightly the consensus sources clustered about the combined value.
22978
+ * how tightly the consensus sources clustered about the combined value,
22979
+ * before final SP3 record-column rounding.
22962
22980
  */
22963
22981
  class Sp3AgreementMetric {
22964
22982
  static __wrap(ptr) {
@@ -28447,7 +28465,7 @@ class TrackFilter {
28447
28465
  }
28448
28466
  /**
28449
28467
  * Build a filter from a position fix and uncertain zero initial velocity.
28450
- * @param {any} config
28468
+ * @param {TrackFilterFromPositionInput} config
28451
28469
  * @returns {TrackFilter}
28452
28470
  */
28453
28471
  static fromPosition(config) {
@@ -28472,8 +28490,8 @@ class TrackFilter {
28472
28490
  return this;
28473
28491
  }
28474
28492
  /**
28475
- * @param {any} request
28476
- * @returns {any}
28493
+ * @param {TrackPositionObservationInput} request
28494
+ * @returns {TrackInnovation}
28477
28495
  */
28478
28496
  positionInnovation(request) {
28479
28497
  const ret = wasm.trackfilter_positionInnovation(this.__wbg_ptr, request);
@@ -28484,7 +28502,7 @@ class TrackFilter {
28484
28502
  }
28485
28503
  /**
28486
28504
  * @param {number} dt_s
28487
- * @returns {any}
28505
+ * @returns {TrackPrediction}
28488
28506
  */
28489
28507
  predict(dt_s) {
28490
28508
  const ret = wasm.trackfilter_predict(this.__wbg_ptr, dt_s);
@@ -28496,7 +28514,7 @@ class TrackFilter {
28496
28514
  /**
28497
28515
  * @param {number} dt_s
28498
28516
  * @param {TrackRtsHistoryBuilder} history
28499
- * @returns {any}
28517
+ * @returns {TrackPrediction}
28500
28518
  */
28501
28519
  predictRecorded(dt_s, history) {
28502
28520
  _assertClass(history, TrackRtsHistoryBuilder);
@@ -28517,7 +28535,7 @@ class TrackFilter {
28517
28535
  }
28518
28536
  }
28519
28537
  /**
28520
- * @returns {any}
28538
+ * @returns {TrackState}
28521
28539
  */
28522
28540
  get state() {
28523
28541
  const ret = wasm.trackfilter_state(this.__wbg_ptr);
@@ -28527,8 +28545,8 @@ class TrackFilter {
28527
28545
  return takeFromExternrefTable0(ret[0]);
28528
28546
  }
28529
28547
  /**
28530
- * @param {any} request
28531
- * @returns {any}
28548
+ * @param {TrackStateObservationInput} request
28549
+ * @returns {TrackInnovation}
28532
28550
  */
28533
28551
  stateInnovation(request) {
28534
28552
  const ret = wasm.trackfilter_stateInnovation(this.__wbg_ptr, request);
@@ -28538,8 +28556,8 @@ class TrackFilter {
28538
28556
  return takeFromExternrefTable0(ret[0]);
28539
28557
  }
28540
28558
  /**
28541
- * @param {any} request
28542
- * @returns {any}
28559
+ * @param {TrackPositionObservationInput} request
28560
+ * @returns {TrackUpdate}
28543
28561
  */
28544
28562
  updatePosition(request) {
28545
28563
  const ret = wasm.trackfilter_updatePosition(this.__wbg_ptr, request);
@@ -28549,8 +28567,8 @@ class TrackFilter {
28549
28567
  return takeFromExternrefTable0(ret[0]);
28550
28568
  }
28551
28569
  /**
28552
- * @param {any} request
28553
- * @returns {any}
28570
+ * @param {TrackGatedPositionObservationInput} request
28571
+ * @returns {TrackGatedUpdate}
28554
28572
  */
28555
28573
  updatePositionGated(request) {
28556
28574
  const ret = wasm.trackfilter_updatePositionGated(this.__wbg_ptr, request);
@@ -28560,9 +28578,9 @@ class TrackFilter {
28560
28578
  return takeFromExternrefTable0(ret[0]);
28561
28579
  }
28562
28580
  /**
28563
- * @param {any} request
28581
+ * @param {TrackGatedPositionObservationInput} request
28564
28582
  * @param {TrackRtsHistoryBuilder} history
28565
- * @returns {any}
28583
+ * @returns {TrackGatedUpdate}
28566
28584
  */
28567
28585
  updatePositionGatedRecorded(request, history) {
28568
28586
  _assertClass(history, TrackRtsHistoryBuilder);
@@ -28573,9 +28591,9 @@ class TrackFilter {
28573
28591
  return takeFromExternrefTable0(ret[0]);
28574
28592
  }
28575
28593
  /**
28576
- * @param {any} request
28594
+ * @param {TrackPositionObservationInput} request
28577
28595
  * @param {TrackRtsHistoryBuilder} history
28578
- * @returns {any}
28596
+ * @returns {TrackUpdate}
28579
28597
  */
28580
28598
  updatePositionRecorded(request, history) {
28581
28599
  _assertClass(history, TrackRtsHistoryBuilder);
@@ -28586,8 +28604,8 @@ class TrackFilter {
28586
28604
  return takeFromExternrefTable0(ret[0]);
28587
28605
  }
28588
28606
  /**
28589
- * @param {any} request
28590
- * @returns {any}
28607
+ * @param {TrackStateObservationInput} request
28608
+ * @returns {TrackUpdate}
28591
28609
  */
28592
28610
  updateState(request) {
28593
28611
  const ret = wasm.trackfilter_updateState(this.__wbg_ptr, request);
@@ -28625,7 +28643,7 @@ class TrackFilterConfig {
28625
28643
  return ret >>> 0;
28626
28644
  }
28627
28645
  /**
28628
- * @returns {string}
28646
+ * @returns {TrackCoordinateFrame}
28629
28647
  */
28630
28648
  get frame() {
28631
28649
  let deferred1_0;
@@ -28641,7 +28659,7 @@ class TrackFilterConfig {
28641
28659
  }
28642
28660
  /**
28643
28661
  * Build a config from a position fix and uncertain zero initial velocity.
28644
- * @param {any} config
28662
+ * @param {TrackFilterFromPositionInput} config
28645
28663
  * @returns {TrackFilterConfig}
28646
28664
  */
28647
28665
  static fromPosition(config) {
@@ -28660,7 +28678,7 @@ class TrackFilterConfig {
28660
28678
  }
28661
28679
  /**
28662
28680
  * Build a no-IMU track filter config from a JS object.
28663
- * @param {any} config
28681
+ * @param {TrackFilterConfigInput} config
28664
28682
  */
28665
28683
  constructor(config) {
28666
28684
  const ret = wasm.trackfilterconfig_new(config);
@@ -28672,7 +28690,7 @@ class TrackFilterConfig {
28672
28690
  return this;
28673
28691
  }
28674
28692
  /**
28675
- * @returns {any}
28693
+ * @returns {TrackFilterConfigObject}
28676
28694
  */
28677
28695
  toObject() {
28678
28696
  const ret = wasm.trackfilterconfig_toObject(this.__wbg_ptr);
@@ -28710,7 +28728,7 @@ class TrackRtsHistory {
28710
28728
  return ret >>> 0;
28711
28729
  }
28712
28730
  /**
28713
- * @returns {any}
28731
+ * @returns {TrackRtsEpoch[]}
28714
28732
  */
28715
28733
  get epochs() {
28716
28734
  const ret = wasm.trackrtshistory_epochs(this.__wbg_ptr);
@@ -29167,7 +29185,8 @@ class Wgs84Geodetic {
29167
29185
  }
29168
29186
  /**
29169
29187
  * Build a WGS84 geodetic coordinate. `heightM` defaults to 0. Throws a
29170
- * `RangeError` on a non-finite field or latitude outside `[-pi/2, pi/2]`.
29188
+ * `RangeError` on a non-finite field, latitude outside `[-pi/2, pi/2]`,
29189
+ * or longitude outside `[-pi, pi]`.
29171
29190
  * @param {number} lat_rad
29172
29191
  * @param {number} lon_rad
29173
29192
  * @param {number | null} [height_m]
@@ -31671,8 +31690,8 @@ exports.findMoonTransitsWithValidity = findMoonTransitsWithValidity;
31671
31690
  * @param {string} secondary_line2
31672
31691
  * @param {bigint} window_start_unix_micros
31673
31692
  * @param {bigint} window_end_unix_micros
31674
- * @param {any} options
31675
- * @returns {any}
31693
+ * @param {TcaFinderOptions | undefined | null} options
31694
+ * @returns {TcaCandidate[]}
31676
31695
  */
31677
31696
  function findTcaCandidates(primary_line1, primary_line2, secondary_line1, secondary_line2, window_start_unix_micros, window_end_unix_micros, options) {
31678
31697
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -31705,9 +31724,9 @@ exports.findTcaCandidates = findTcaCandidates;
31705
31724
  * @param {string} secondary_line2
31706
31725
  * @param {bigint} window_start_unix_micros
31707
31726
  * @param {bigint} window_end_unix_micros
31708
- * @param {any} pc_options
31709
- * @param {any} options
31710
- * @returns {any}
31727
+ * @param {TcaPcOptions} pc_options
31728
+ * @param {TcaFinderOptions | undefined | null} options
31729
+ * @returns {TcaConjunction[]}
31711
31730
  */
31712
31731
  function findTcaConjunctions(primary_line1, primary_line2, secondary_line1, secondary_line2, window_start_unix_micros, window_end_unix_micros, pc_options, options) {
31713
31732
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -31732,8 +31751,8 @@ exports.findTcaConjunctions = findTcaConjunctions;
31732
31751
  * The residual ledger is computed against the original Earth-fixed SP3
31733
31752
  * observations by the core fit path.
31734
31753
  * @param {Sp3} sp3
31735
- * @param {any} options
31736
- * @returns {any}
31754
+ * @param {OrbitFitOptions | undefined | null} options
31755
+ * @returns {OrbitFitReport}
31737
31756
  */
31738
31757
  function fitAllSp3EcefPreciseOrbits(sp3, options) {
31739
31758
  _assertClass(sp3, Sp3);
@@ -31842,10 +31861,10 @@ exports.fitPowerLawNoise = fitPowerLawNoise;
31842
31861
  * `samples` is the same array accepted by `preciseEphemerisSamplesFromSamples`:
31843
31862
  * `{ sat, epoch, positionEcefM, clockS?, clockEvent? }` with epochs in seconds
31844
31863
  * since J2000.
31845
- * @param {any} samples
31864
+ * @param {Sp3PreciseEphemerisSample[]} samples
31846
31865
  * @param {string} satellite
31847
- * @param {any} options
31848
- * @returns {any}
31866
+ * @param {OrbitFitOptions | undefined | null} options
31867
+ * @returns {OrbitFitReport}
31849
31868
  */
31850
31869
  function fitPreciseEphemerisSampleOrbit(samples, satellite, options) {
31851
31870
  const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -31930,8 +31949,8 @@ exports.fitReducedOrbitTle = fitReducedOrbitTle;
31930
31949
  * core `TdbEarthOrientationProvider` before fitting.
31931
31950
  * @param {Sp3} sp3
31932
31951
  * @param {string} satellite
31933
- * @param {any} options
31934
- * @returns {any}
31952
+ * @param {OrbitFitOptions | undefined | null} options
31953
+ * @returns {OrbitFitReport}
31935
31954
  */
31936
31955
  function fitSp3EcefPreciseOrbit(sp3, satellite, options) {
31937
31956
  _assertClass(sp3, Sp3);
@@ -31951,9 +31970,9 @@ exports.fitSp3EcefPreciseOrbit = fitSp3EcefPreciseOrbit;
31951
31970
  * `satellites` is a string array of IGS tokens such as `["G01", "G02"]`.
31952
31971
  * The Earth-fixed to inertial conversion is handled by the core provider.
31953
31972
  * @param {Sp3} sp3
31954
- * @param {any} satellites
31955
- * @param {any} options
31956
- * @returns {any}
31973
+ * @param {string[]} satellites
31974
+ * @param {OrbitFitOptions | undefined | null} options
31975
+ * @returns {OrbitFitReport}
31957
31976
  */
31958
31977
  function fitSp3EcefPreciseOrbits(sp3, satellites, options) {
31959
31978
  _assertClass(sp3, Sp3);
@@ -31973,8 +31992,8 @@ exports.fitSp3EcefPreciseOrbits = fitSp3EcefPreciseOrbits;
31973
31992
  * `linearSolve`, `minLedgerSamples`, and `drag`.
31974
31993
  * @param {Sp3} sp3
31975
31994
  * @param {string} satellite
31976
- * @param {any} options
31977
- * @returns {any}
31995
+ * @param {OrbitFitOptions | undefined | null} options
31996
+ * @returns {OrbitFitReport}
31978
31997
  */
31979
31998
  function fitSp3PreciseOrbit(sp3, satellite, options) {
31980
31999
  _assertClass(sp3, Sp3);
@@ -37809,12 +37828,12 @@ exports.scenarioSchemaVersion = scenarioSchemaVersion;
37809
37828
  * `sidereon_core::astro::tca::screen_tca_candidates_from_tle_catalog_serial`.
37810
37829
  * @param {string} primary_line1
37811
37830
  * @param {string} primary_line2
37812
- * @param {any} secondaries
37831
+ * @param {TcaTle[]} secondaries
37813
37832
  * @param {bigint} window_start_unix_micros
37814
37833
  * @param {bigint} window_end_unix_micros
37815
37834
  * @param {number} miss_distance_threshold_km
37816
- * @param {any} options
37817
- * @returns {any}
37835
+ * @param {TcaFinderOptions | undefined | null} options
37836
+ * @returns {TcaScreeningHit[]}
37818
37837
  */
37819
37838
  function screenTcaCandidates(primary_line1, primary_line2, secondaries, window_start_unix_micros, window_end_unix_micros, miss_distance_threshold_km, options) {
37820
37839
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -37838,13 +37857,13 @@ exports.screenTcaCandidates = screenTcaCandidates;
37838
37857
  * `sidereon_core::astro::tca::screen_tca_conjunctions_from_tle_catalog_serial`.
37839
37858
  * @param {string} primary_line1
37840
37859
  * @param {string} primary_line2
37841
- * @param {any} secondaries
37860
+ * @param {TcaTle[]} secondaries
37842
37861
  * @param {bigint} window_start_unix_micros
37843
37862
  * @param {bigint} window_end_unix_micros
37844
37863
  * @param {number} miss_distance_threshold_km
37845
- * @param {any} pc_options
37846
- * @param {any} options
37847
- * @returns {any}
37864
+ * @param {TcaPcOptions} pc_options
37865
+ * @param {TcaFinderOptions | undefined | null} options
37866
+ * @returns {TcaScreeningConjunctionHit[]}
37848
37867
  */
37849
37868
  function screenTcaConjunctions(primary_line1, primary_line2, secondaries, window_start_unix_micros, window_end_unix_micros, miss_distance_threshold_km, pc_options, options) {
37850
37869
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
Binary file