@neilberkman/sidereon 3.0.3 → 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.
package/pkg/sidereon.js CHANGED
@@ -6053,7 +6053,7 @@ export class ExactCacheSingleFlightWait {
6053
6053
  * Observe an opaque IndexedDB owner/heartbeat revision.
6054
6054
  * @param {number} now_ms
6055
6055
  * @param {Uint8Array} revision
6056
- * @returns {any}
6056
+ * @returns {ExactCacheSingleFlightDecision}
6057
6057
  */
6058
6058
  observe(now_ms, revision) {
6059
6059
  const ptr0 = passArray8ToWasm0(revision, wasm.__wbindgen_malloc);
@@ -7991,7 +7991,7 @@ export class GnssInsFilter {
7991
7991
  }
7992
7992
  /**
7993
7993
  * Build a filter, then restore its state from versioned fusion-state bytes.
7994
- * @param {any} config
7994
+ * @param {FusionConfig} config
7995
7995
  * @param {Uint8Array} bytes
7996
7996
  * @returns {GnssInsFilter}
7997
7997
  */
@@ -8006,7 +8006,7 @@ export class GnssInsFilter {
8006
8006
  }
8007
8007
  /**
8008
8008
  * Build a filter from a JS configuration object.
8009
- * @param {any} config
8009
+ * @param {FusionConfig} config
8010
8010
  */
8011
8011
  constructor(config) {
8012
8012
  const ret = wasm.gnssinsfilter_new(config);
@@ -11252,7 +11252,7 @@ export class LnavDecoded {
11252
11252
  return ret;
11253
11253
  }
11254
11254
  /**
11255
- * Mean motion difference, radians per second.
11255
+ * Mean motion difference, semicircles per second.
11256
11256
  * @returns {number}
11257
11257
  */
11258
11258
  get deltaN() {
@@ -11276,7 +11276,7 @@ export class LnavDecoded {
11276
11276
  return ret;
11277
11277
  }
11278
11278
  /**
11279
- * Inclination at reference time, radians.
11279
+ * Inclination at reference time, semicircles.
11280
11280
  * @returns {number}
11281
11281
  */
11282
11282
  get i0() {
@@ -11284,7 +11284,7 @@ export class LnavDecoded {
11284
11284
  return ret;
11285
11285
  }
11286
11286
  /**
11287
- * Rate of inclination, radians per second.
11287
+ * Rate of inclination, semicircles per second.
11288
11288
  * @returns {number}
11289
11289
  */
11290
11290
  get idot() {
@@ -11316,7 +11316,7 @@ export class LnavDecoded {
11316
11316
  return ret;
11317
11317
  }
11318
11318
  /**
11319
- * Mean anomaly at reference time, radians.
11319
+ * Mean anomaly at reference time, semicircles.
11320
11320
  * @returns {number}
11321
11321
  */
11322
11322
  get m0() {
@@ -11324,7 +11324,7 @@ export class LnavDecoded {
11324
11324
  return ret;
11325
11325
  }
11326
11326
  /**
11327
- * Argument of perigee, radians.
11327
+ * Argument of perigee, semicircles.
11328
11328
  * @returns {number}
11329
11329
  */
11330
11330
  get omega() {
@@ -11332,7 +11332,7 @@ export class LnavDecoded {
11332
11332
  return ret;
11333
11333
  }
11334
11334
  /**
11335
- * Longitude of ascending node at weekly epoch, radians.
11335
+ * Longitude of ascending node at weekly epoch, semicircles.
11336
11336
  * @returns {number}
11337
11337
  */
11338
11338
  get omega0() {
@@ -11340,7 +11340,7 @@ export class LnavDecoded {
11340
11340
  return ret;
11341
11341
  }
11342
11342
  /**
11343
- * Rate of right ascension, radians per second.
11343
+ * Rate of right ascension, semicircles per second.
11344
11344
  * @returns {number}
11345
11345
  */
11346
11346
  get omegaDot() {
@@ -21972,7 +21972,7 @@ export class SmoothedTrack {
21972
21972
  return ret >>> 0;
21973
21973
  }
21974
21974
  /**
21975
- * @returns {any}
21975
+ * @returns {SmoothedTrackEpoch[]}
21976
21976
  */
21977
21977
  get epochs() {
21978
21978
  const ret = wasm.smoothedtrack_epochs(this.__wbg_ptr);
@@ -22031,7 +22031,8 @@ if (Symbol.dispose) SourcedSolution.prototype[Symbol.dispose] = SourcedSolution.
22031
22031
  * Create with [`load_sp3`]. Query interpolated states with
22032
22032
  * [`Sp3.interpolate`], the exact parsed records with [`Sp3.state`], the node
22033
22033
  * epoch axis with [`Sp3.epochsJ2000Seconds`], run positioning with
22034
- * [`Sp3.solveSpp`], and serialize back with [`Sp3.toSp3String`].
22034
+ * [`Sp3.solveSpp`], and serialize back with [`Sp3.toSp3String`] or explicitly
22035
+ * quantize record values with [`Sp3.toSp3StringWithRounding`].
22035
22036
  */
22036
22037
  export class Sp3 {
22037
22038
  static __wrap(ptr) {
@@ -22715,6 +22716,22 @@ export class Sp3 {
22715
22716
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
22716
22717
  }
22717
22718
  }
22719
+ /**
22720
+ * Serialize after explicitly rounding a copy of the record values to SP3
22721
+ * column precision. The returned report gives the maximum absolute
22722
+ * change in each record field, in that field's SI units. Header fields
22723
+ * and epochs retain their existing precision. Structural failures,
22724
+ * overflow, and values that would become SP3 absence sentinels still
22725
+ * throw a typed `Sp3WriteError`.
22726
+ * @returns {Sp3StringWithRounding}
22727
+ */
22728
+ toSp3StringWithRounding() {
22729
+ const ret = wasm.sp3_toSp3StringWithRounding(this.__wbg_ptr);
22730
+ if (ret[2]) {
22731
+ throw takeFromExternrefTable0(ret[1]);
22732
+ }
22733
+ return takeFromExternrefTable0(ret[0]);
22734
+ }
22718
22735
  /**
22719
22736
  * @param {string} satellite
22720
22737
  * @param {ExactEpochQuery} state_epoch
@@ -22749,7 +22766,8 @@ if (Symbol.dispose) Sp3.prototype[Symbol.dispose] = Sp3.prototype.free;
22749
22766
 
22750
22767
  /**
22751
22768
  * Per-(epoch, satellite) agreement statistics for one accepted merged cell:
22752
- * how tightly the consensus sources clustered about the combined value.
22769
+ * how tightly the consensus sources clustered about the combined value,
22770
+ * before final SP3 record-column rounding.
22753
22771
  */
22754
22772
  export class Sp3AgreementMetric {
22755
22773
  static __wrap(ptr) {
@@ -28182,7 +28200,7 @@ export class TrackFilter {
28182
28200
  }
28183
28201
  /**
28184
28202
  * Build a filter from a position fix and uncertain zero initial velocity.
28185
- * @param {any} config
28203
+ * @param {TrackFilterFromPositionInput} config
28186
28204
  * @returns {TrackFilter}
28187
28205
  */
28188
28206
  static fromPosition(config) {
@@ -28207,8 +28225,8 @@ export class TrackFilter {
28207
28225
  return this;
28208
28226
  }
28209
28227
  /**
28210
- * @param {any} request
28211
- * @returns {any}
28228
+ * @param {TrackPositionObservationInput} request
28229
+ * @returns {TrackInnovation}
28212
28230
  */
28213
28231
  positionInnovation(request) {
28214
28232
  const ret = wasm.trackfilter_positionInnovation(this.__wbg_ptr, request);
@@ -28219,7 +28237,7 @@ export class TrackFilter {
28219
28237
  }
28220
28238
  /**
28221
28239
  * @param {number} dt_s
28222
- * @returns {any}
28240
+ * @returns {TrackPrediction}
28223
28241
  */
28224
28242
  predict(dt_s) {
28225
28243
  const ret = wasm.trackfilter_predict(this.__wbg_ptr, dt_s);
@@ -28231,7 +28249,7 @@ export class TrackFilter {
28231
28249
  /**
28232
28250
  * @param {number} dt_s
28233
28251
  * @param {TrackRtsHistoryBuilder} history
28234
- * @returns {any}
28252
+ * @returns {TrackPrediction}
28235
28253
  */
28236
28254
  predictRecorded(dt_s, history) {
28237
28255
  _assertClass(history, TrackRtsHistoryBuilder);
@@ -28252,7 +28270,7 @@ export class TrackFilter {
28252
28270
  }
28253
28271
  }
28254
28272
  /**
28255
- * @returns {any}
28273
+ * @returns {TrackState}
28256
28274
  */
28257
28275
  get state() {
28258
28276
  const ret = wasm.trackfilter_state(this.__wbg_ptr);
@@ -28262,8 +28280,8 @@ export class TrackFilter {
28262
28280
  return takeFromExternrefTable0(ret[0]);
28263
28281
  }
28264
28282
  /**
28265
- * @param {any} request
28266
- * @returns {any}
28283
+ * @param {TrackStateObservationInput} request
28284
+ * @returns {TrackInnovation}
28267
28285
  */
28268
28286
  stateInnovation(request) {
28269
28287
  const ret = wasm.trackfilter_stateInnovation(this.__wbg_ptr, request);
@@ -28273,8 +28291,8 @@ export class TrackFilter {
28273
28291
  return takeFromExternrefTable0(ret[0]);
28274
28292
  }
28275
28293
  /**
28276
- * @param {any} request
28277
- * @returns {any}
28294
+ * @param {TrackPositionObservationInput} request
28295
+ * @returns {TrackUpdate}
28278
28296
  */
28279
28297
  updatePosition(request) {
28280
28298
  const ret = wasm.trackfilter_updatePosition(this.__wbg_ptr, request);
@@ -28284,8 +28302,8 @@ export class TrackFilter {
28284
28302
  return takeFromExternrefTable0(ret[0]);
28285
28303
  }
28286
28304
  /**
28287
- * @param {any} request
28288
- * @returns {any}
28305
+ * @param {TrackGatedPositionObservationInput} request
28306
+ * @returns {TrackGatedUpdate}
28289
28307
  */
28290
28308
  updatePositionGated(request) {
28291
28309
  const ret = wasm.trackfilter_updatePositionGated(this.__wbg_ptr, request);
@@ -28295,9 +28313,9 @@ export class TrackFilter {
28295
28313
  return takeFromExternrefTable0(ret[0]);
28296
28314
  }
28297
28315
  /**
28298
- * @param {any} request
28316
+ * @param {TrackGatedPositionObservationInput} request
28299
28317
  * @param {TrackRtsHistoryBuilder} history
28300
- * @returns {any}
28318
+ * @returns {TrackGatedUpdate}
28301
28319
  */
28302
28320
  updatePositionGatedRecorded(request, history) {
28303
28321
  _assertClass(history, TrackRtsHistoryBuilder);
@@ -28308,9 +28326,9 @@ export class TrackFilter {
28308
28326
  return takeFromExternrefTable0(ret[0]);
28309
28327
  }
28310
28328
  /**
28311
- * @param {any} request
28329
+ * @param {TrackPositionObservationInput} request
28312
28330
  * @param {TrackRtsHistoryBuilder} history
28313
- * @returns {any}
28331
+ * @returns {TrackUpdate}
28314
28332
  */
28315
28333
  updatePositionRecorded(request, history) {
28316
28334
  _assertClass(history, TrackRtsHistoryBuilder);
@@ -28321,8 +28339,8 @@ export class TrackFilter {
28321
28339
  return takeFromExternrefTable0(ret[0]);
28322
28340
  }
28323
28341
  /**
28324
- * @param {any} request
28325
- * @returns {any}
28342
+ * @param {TrackStateObservationInput} request
28343
+ * @returns {TrackUpdate}
28326
28344
  */
28327
28345
  updateState(request) {
28328
28346
  const ret = wasm.trackfilter_updateState(this.__wbg_ptr, request);
@@ -28359,7 +28377,7 @@ export class TrackFilterConfig {
28359
28377
  return ret >>> 0;
28360
28378
  }
28361
28379
  /**
28362
- * @returns {string}
28380
+ * @returns {TrackCoordinateFrame}
28363
28381
  */
28364
28382
  get frame() {
28365
28383
  let deferred1_0;
@@ -28375,7 +28393,7 @@ export class TrackFilterConfig {
28375
28393
  }
28376
28394
  /**
28377
28395
  * Build a config from a position fix and uncertain zero initial velocity.
28378
- * @param {any} config
28396
+ * @param {TrackFilterFromPositionInput} config
28379
28397
  * @returns {TrackFilterConfig}
28380
28398
  */
28381
28399
  static fromPosition(config) {
@@ -28394,7 +28412,7 @@ export class TrackFilterConfig {
28394
28412
  }
28395
28413
  /**
28396
28414
  * Build a no-IMU track filter config from a JS object.
28397
- * @param {any} config
28415
+ * @param {TrackFilterConfigInput} config
28398
28416
  */
28399
28417
  constructor(config) {
28400
28418
  const ret = wasm.trackfilterconfig_new(config);
@@ -28406,7 +28424,7 @@ export class TrackFilterConfig {
28406
28424
  return this;
28407
28425
  }
28408
28426
  /**
28409
- * @returns {any}
28427
+ * @returns {TrackFilterConfigObject}
28410
28428
  */
28411
28429
  toObject() {
28412
28430
  const ret = wasm.trackfilterconfig_toObject(this.__wbg_ptr);
@@ -28443,7 +28461,7 @@ export class TrackRtsHistory {
28443
28461
  return ret >>> 0;
28444
28462
  }
28445
28463
  /**
28446
- * @returns {any}
28464
+ * @returns {TrackRtsEpoch[]}
28447
28465
  */
28448
28466
  get epochs() {
28449
28467
  const ret = wasm.trackrtshistory_epochs(this.__wbg_ptr);
@@ -28893,7 +28911,8 @@ export class Wgs84Geodetic {
28893
28911
  }
28894
28912
  /**
28895
28913
  * Build a WGS84 geodetic coordinate. `heightM` defaults to 0. Throws a
28896
- * `RangeError` on a non-finite field or latitude outside `[-pi/2, pi/2]`.
28914
+ * `RangeError` on a non-finite field, latitude outside `[-pi/2, pi/2]`,
28915
+ * or longitude outside `[-pi, pi]`.
28897
28916
  * @param {number} lat_rad
28898
28917
  * @param {number} lon_rad
28899
28918
  * @param {number | null} [height_m]
@@ -31274,8 +31293,8 @@ export function findMoonTransitsWithValidity(latitude_deg, longitude_deg, altitu
31274
31293
  * @param {string} secondary_line2
31275
31294
  * @param {bigint} window_start_unix_micros
31276
31295
  * @param {bigint} window_end_unix_micros
31277
- * @param {any} options
31278
- * @returns {any}
31296
+ * @param {TcaFinderOptions | undefined | null} options
31297
+ * @returns {TcaCandidate[]}
31279
31298
  */
31280
31299
  export function findTcaCandidates(primary_line1, primary_line2, secondary_line1, secondary_line2, window_start_unix_micros, window_end_unix_micros, options) {
31281
31300
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -31307,9 +31326,9 @@ export function findTcaCandidates(primary_line1, primary_line2, secondary_line1,
31307
31326
  * @param {string} secondary_line2
31308
31327
  * @param {bigint} window_start_unix_micros
31309
31328
  * @param {bigint} window_end_unix_micros
31310
- * @param {any} pc_options
31311
- * @param {any} options
31312
- * @returns {any}
31329
+ * @param {TcaPcOptions} pc_options
31330
+ * @param {TcaFinderOptions | undefined | null} options
31331
+ * @returns {TcaConjunction[]}
31313
31332
  */
31314
31333
  export function findTcaConjunctions(primary_line1, primary_line2, secondary_line1, secondary_line2, window_start_unix_micros, window_end_unix_micros, pc_options, options) {
31315
31334
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -31333,8 +31352,8 @@ export function findTcaConjunctions(primary_line1, primary_line2, secondary_line
31333
31352
  * The residual ledger is computed against the original Earth-fixed SP3
31334
31353
  * observations by the core fit path.
31335
31354
  * @param {Sp3} sp3
31336
- * @param {any} options
31337
- * @returns {any}
31355
+ * @param {OrbitFitOptions | undefined | null} options
31356
+ * @returns {OrbitFitReport}
31338
31357
  */
31339
31358
  export function fitAllSp3EcefPreciseOrbits(sp3, options) {
31340
31359
  _assertClass(sp3, Sp3);
@@ -31438,10 +31457,10 @@ export function fitPowerLawNoise(adev, mdev, options) {
31438
31457
  * `samples` is the same array accepted by `preciseEphemerisSamplesFromSamples`:
31439
31458
  * `{ sat, epoch, positionEcefM, clockS?, clockEvent? }` with epochs in seconds
31440
31459
  * since J2000.
31441
- * @param {any} samples
31460
+ * @param {Sp3PreciseEphemerisSample[]} samples
31442
31461
  * @param {string} satellite
31443
- * @param {any} options
31444
- * @returns {any}
31462
+ * @param {OrbitFitOptions | undefined | null} options
31463
+ * @returns {OrbitFitReport}
31445
31464
  */
31446
31465
  export function fitPreciseEphemerisSampleOrbit(samples, satellite, options) {
31447
31466
  const ptr0 = passStringToWasm0(satellite, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -31522,8 +31541,8 @@ export function fitReducedOrbitTle(tle, options) {
31522
31541
  * core `TdbEarthOrientationProvider` before fitting.
31523
31542
  * @param {Sp3} sp3
31524
31543
  * @param {string} satellite
31525
- * @param {any} options
31526
- * @returns {any}
31544
+ * @param {OrbitFitOptions | undefined | null} options
31545
+ * @returns {OrbitFitReport}
31527
31546
  */
31528
31547
  export function fitSp3EcefPreciseOrbit(sp3, satellite, options) {
31529
31548
  _assertClass(sp3, Sp3);
@@ -31542,9 +31561,9 @@ export function fitSp3EcefPreciseOrbit(sp3, satellite, options) {
31542
31561
  * `satellites` is a string array of IGS tokens such as `["G01", "G02"]`.
31543
31562
  * The Earth-fixed to inertial conversion is handled by the core provider.
31544
31563
  * @param {Sp3} sp3
31545
- * @param {any} satellites
31546
- * @param {any} options
31547
- * @returns {any}
31564
+ * @param {string[]} satellites
31565
+ * @param {OrbitFitOptions | undefined | null} options
31566
+ * @returns {OrbitFitReport}
31548
31567
  */
31549
31568
  export function fitSp3EcefPreciseOrbits(sp3, satellites, options) {
31550
31569
  _assertClass(sp3, Sp3);
@@ -31563,8 +31582,8 @@ export function fitSp3EcefPreciseOrbits(sp3, satellites, options) {
31563
31582
  * `linearSolve`, `minLedgerSamples`, and `drag`.
31564
31583
  * @param {Sp3} sp3
31565
31584
  * @param {string} satellite
31566
- * @param {any} options
31567
- * @returns {any}
31585
+ * @param {OrbitFitOptions | undefined | null} options
31586
+ * @returns {OrbitFitReport}
31568
31587
  */
31569
31588
  export function fitSp3PreciseOrbit(sp3, satellite, options) {
31570
31589
  _assertClass(sp3, Sp3);
@@ -37104,12 +37123,12 @@ export function scenarioSchemaVersion() {
37104
37123
  * `sidereon_core::astro::tca::screen_tca_candidates_from_tle_catalog_serial`.
37105
37124
  * @param {string} primary_line1
37106
37125
  * @param {string} primary_line2
37107
- * @param {any} secondaries
37126
+ * @param {TcaTle[]} secondaries
37108
37127
  * @param {bigint} window_start_unix_micros
37109
37128
  * @param {bigint} window_end_unix_micros
37110
37129
  * @param {number} miss_distance_threshold_km
37111
- * @param {any} options
37112
- * @returns {any}
37130
+ * @param {TcaFinderOptions | undefined | null} options
37131
+ * @returns {TcaScreeningHit[]}
37113
37132
  */
37114
37133
  export function screenTcaCandidates(primary_line1, primary_line2, secondaries, window_start_unix_micros, window_end_unix_micros, miss_distance_threshold_km, options) {
37115
37134
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -37132,13 +37151,13 @@ export function screenTcaCandidates(primary_line1, primary_line2, secondaries, w
37132
37151
  * `sidereon_core::astro::tca::screen_tca_conjunctions_from_tle_catalog_serial`.
37133
37152
  * @param {string} primary_line1
37134
37153
  * @param {string} primary_line2
37135
- * @param {any} secondaries
37154
+ * @param {TcaTle[]} secondaries
37136
37155
  * @param {bigint} window_start_unix_micros
37137
37156
  * @param {bigint} window_end_unix_micros
37138
37157
  * @param {number} miss_distance_threshold_km
37139
- * @param {any} pc_options
37140
- * @param {any} options
37141
- * @returns {any}
37158
+ * @param {TcaPcOptions} pc_options
37159
+ * @param {TcaFinderOptions | undefined | null} options
37160
+ * @returns {TcaScreeningConjunctionHit[]}
37142
37161
  */
37143
37162
  export function screenTcaConjunctions(primary_line1, primary_line2, secondaries, window_start_unix_micros, window_end_unix_micros, miss_distance_threshold_km, pc_options, options) {
37144
37163
  const ptr0 = passStringToWasm0(primary_line1, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
Binary file