@neilberkman/sidereon 0.29.2 → 0.31.2
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/CHANGELOG.md +27 -1
- package/README.md +44 -1
- package/exact-cache.js +242 -0
- package/package.json +8 -1
- package/pkg/sidereon.d.ts +1855 -1737
- package/pkg/sidereon.js +206 -0
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +1552 -1542
- package/pkg-node/sidereon.d.ts +108 -0
- package/pkg-node/sidereon.js +210 -0
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +1552 -1542
- package/types/exact-cache.d.ts +31 -0
package/pkg/sidereon.js
CHANGED
|
@@ -6371,6 +6371,21 @@ export class GnssProductIdentity {
|
|
|
6371
6371
|
const ptr = this.__destroy_into_raw();
|
|
6372
6372
|
wasm.__wbg_gnssproductidentity_free(ptr, 0);
|
|
6373
6373
|
}
|
|
6374
|
+
/**
|
|
6375
|
+
* @returns {string}
|
|
6376
|
+
*/
|
|
6377
|
+
get analysisCenter() {
|
|
6378
|
+
let deferred1_0;
|
|
6379
|
+
let deferred1_1;
|
|
6380
|
+
try {
|
|
6381
|
+
const ret = wasm.gnssproductidentity_analysisCenter(this.__wbg_ptr);
|
|
6382
|
+
deferred1_0 = ret[0];
|
|
6383
|
+
deferred1_1 = ret[1];
|
|
6384
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
6385
|
+
} finally {
|
|
6386
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
6387
|
+
}
|
|
6388
|
+
}
|
|
6374
6389
|
/**
|
|
6375
6390
|
* Stable validated identity key suitable for caller-managed cache paths.
|
|
6376
6391
|
* @returns {string}
|
|
@@ -6452,6 +6467,18 @@ export class GnssProductIdentity {
|
|
|
6452
6467
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
6453
6468
|
}
|
|
6454
6469
|
}
|
|
6470
|
+
/**
|
|
6471
|
+
* @returns {string | undefined}
|
|
6472
|
+
*/
|
|
6473
|
+
get formatVersion() {
|
|
6474
|
+
const ret = wasm.gnssproductidentity_formatVersion(this.__wbg_ptr);
|
|
6475
|
+
let v1;
|
|
6476
|
+
if (ret[0] !== 0) {
|
|
6477
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
6478
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
6479
|
+
}
|
|
6480
|
+
return v1;
|
|
6481
|
+
}
|
|
6455
6482
|
/**
|
|
6456
6483
|
* @returns {string | undefined}
|
|
6457
6484
|
*/
|
|
@@ -17439,6 +17466,70 @@ export class Sp3MergeFlag {
|
|
|
17439
17466
|
}
|
|
17440
17467
|
if (Symbol.dispose) Sp3MergeFlag.prototype[Symbol.dispose] = Sp3MergeFlag.prototype.free;
|
|
17441
17468
|
|
|
17469
|
+
/**
|
|
17470
|
+
* Canonical identity of a complete exact SP3 input set and full merge policy.
|
|
17471
|
+
*/
|
|
17472
|
+
export class Sp3MergeInputIdentity {
|
|
17473
|
+
static __wrap(ptr) {
|
|
17474
|
+
const obj = Object.create(Sp3MergeInputIdentity.prototype);
|
|
17475
|
+
obj.__wbg_ptr = ptr;
|
|
17476
|
+
Sp3MergeInputIdentityFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
17477
|
+
return obj;
|
|
17478
|
+
}
|
|
17479
|
+
__destroy_into_raw() {
|
|
17480
|
+
const ptr = this.__wbg_ptr;
|
|
17481
|
+
this.__wbg_ptr = 0;
|
|
17482
|
+
Sp3MergeInputIdentityFinalization.unregister(this);
|
|
17483
|
+
return ptr;
|
|
17484
|
+
}
|
|
17485
|
+
free() {
|
|
17486
|
+
const ptr = this.__destroy_into_raw();
|
|
17487
|
+
wasm.__wbg_sp3mergeinputidentity_free(ptr, 0);
|
|
17488
|
+
}
|
|
17489
|
+
/**
|
|
17490
|
+
* Contributors in distributor-independent canonical order.
|
|
17491
|
+
* @returns {any}
|
|
17492
|
+
*/
|
|
17493
|
+
get contributors() {
|
|
17494
|
+
const ret = wasm.sp3mergeinputidentity_contributors(this.__wbg_ptr);
|
|
17495
|
+
return ret;
|
|
17496
|
+
}
|
|
17497
|
+
/**
|
|
17498
|
+
* Contributors in semantic source-priority order for precedence merges;
|
|
17499
|
+
* undefined for mean and median.
|
|
17500
|
+
* @returns {any}
|
|
17501
|
+
*/
|
|
17502
|
+
get precedenceContributors() {
|
|
17503
|
+
const ret = wasm.sp3mergeinputidentity_precedenceContributors(this.__wbg_ptr);
|
|
17504
|
+
return ret;
|
|
17505
|
+
}
|
|
17506
|
+
/**
|
|
17507
|
+
* Canonical encoding version.
|
|
17508
|
+
* @returns {number}
|
|
17509
|
+
*/
|
|
17510
|
+
get schemaVersion() {
|
|
17511
|
+
const ret = wasm.sp3mergeinputidentity_schemaVersion(this.__wbg_ptr);
|
|
17512
|
+
return ret;
|
|
17513
|
+
}
|
|
17514
|
+
/**
|
|
17515
|
+
* Versioned stable identity of every artifact and effective merge control.
|
|
17516
|
+
* @returns {string}
|
|
17517
|
+
*/
|
|
17518
|
+
get stableId() {
|
|
17519
|
+
let deferred1_0;
|
|
17520
|
+
let deferred1_1;
|
|
17521
|
+
try {
|
|
17522
|
+
const ret = wasm.sp3mergeinputidentity_stableId(this.__wbg_ptr);
|
|
17523
|
+
deferred1_0 = ret[0];
|
|
17524
|
+
deferred1_1 = ret[1];
|
|
17525
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
17526
|
+
} finally {
|
|
17527
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
17528
|
+
}
|
|
17529
|
+
}
|
|
17530
|
+
}
|
|
17531
|
+
if (Symbol.dispose) Sp3MergeInputIdentity.prototype[Symbol.dispose] = Sp3MergeInputIdentity.prototype.free;
|
|
17532
|
+
|
|
17442
17533
|
/**
|
|
17443
17534
|
* Audit report returned with a merged SP3 product.
|
|
17444
17535
|
*/
|
|
@@ -21637,6 +21728,40 @@ export function buildDualFrequencyRinexRtkArc(ephemeris, base_obs, rover_obs, op
|
|
|
21637
21728
|
return takeFromExternrefTable0(ret[0]);
|
|
21638
21729
|
}
|
|
21639
21730
|
|
|
21731
|
+
/**
|
|
21732
|
+
* Build the shared exact-cache commit bytes for a complete immutable candidate.
|
|
21733
|
+
*
|
|
21734
|
+
* Browser hosts should stage product, archive, and provenance under `entry_id`
|
|
21735
|
+
* and make the returned marker visible in the same IndexedDB transaction.
|
|
21736
|
+
* @param {GnssProductIdentity} identity
|
|
21737
|
+
* @param {string} source
|
|
21738
|
+
* @param {string} entry_id
|
|
21739
|
+
* @param {Uint8Array} product
|
|
21740
|
+
* @param {Uint8Array} archive
|
|
21741
|
+
* @param {Uint8Array} provenance
|
|
21742
|
+
* @returns {Uint8Array}
|
|
21743
|
+
*/
|
|
21744
|
+
export function buildExactCacheCommit(identity, source, entry_id, product, archive, provenance) {
|
|
21745
|
+
_assertClass(identity, GnssProductIdentity);
|
|
21746
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
21747
|
+
const len0 = WASM_VECTOR_LEN;
|
|
21748
|
+
const ptr1 = passStringToWasm0(entry_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
21749
|
+
const len1 = WASM_VECTOR_LEN;
|
|
21750
|
+
const ptr2 = passArray8ToWasm0(product, wasm.__wbindgen_malloc);
|
|
21751
|
+
const len2 = WASM_VECTOR_LEN;
|
|
21752
|
+
const ptr3 = passArray8ToWasm0(archive, wasm.__wbindgen_malloc);
|
|
21753
|
+
const len3 = WASM_VECTOR_LEN;
|
|
21754
|
+
const ptr4 = passArray8ToWasm0(provenance, wasm.__wbindgen_malloc);
|
|
21755
|
+
const len4 = WASM_VECTOR_LEN;
|
|
21756
|
+
const ret = wasm.buildExactCacheCommit(identity.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
21757
|
+
if (ret[3]) {
|
|
21758
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
21759
|
+
}
|
|
21760
|
+
var v6 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
21761
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
21762
|
+
return v6;
|
|
21763
|
+
}
|
|
21764
|
+
|
|
21640
21765
|
/**
|
|
21641
21766
|
* Build single-frequency RTK arc records from parsed RINEX OBS products.
|
|
21642
21767
|
*
|
|
@@ -28760,6 +28885,29 @@ export function sourceSolveModeToa() {
|
|
|
28760
28885
|
}
|
|
28761
28886
|
}
|
|
28762
28887
|
|
|
28888
|
+
/**
|
|
28889
|
+
* Validate complete exact artifact records and return their canonical merge
|
|
28890
|
+
* input identity.
|
|
28891
|
+
*
|
|
28892
|
+
* `contributors` must be an array of complete `Sp3ArtifactIdentityInput`
|
|
28893
|
+
* objects. Contributor enumeration order does not affect mean or median
|
|
28894
|
+
* identities. Precedence identities bind the original order because it
|
|
28895
|
+
* determines source priority. Unordered policy fields are canonicalized.
|
|
28896
|
+
* Empty, duplicate, incomplete, malformed, non-SP3, or mismatched records fail
|
|
28897
|
+
* closed. Acquisition timestamps, URLs, HTTP metadata, credentials, cache
|
|
28898
|
+
* paths, and retry history are not accepted input fields.
|
|
28899
|
+
* @param {any} contributors
|
|
28900
|
+
* @param {any} options
|
|
28901
|
+
* @returns {Sp3MergeInputIdentity}
|
|
28902
|
+
*/
|
|
28903
|
+
export function sp3MergeInputIdentity(contributors, options) {
|
|
28904
|
+
const ret = wasm.sp3MergeInputIdentity(contributors, options);
|
|
28905
|
+
if (ret[2]) {
|
|
28906
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
28907
|
+
}
|
|
28908
|
+
return Sp3MergeInputIdentity.__wrap(ret[0]);
|
|
28909
|
+
}
|
|
28910
|
+
|
|
28763
28911
|
/**
|
|
28764
28912
|
* Extract a parsed SP3 product as the canonical precise-ephemeris samples, one
|
|
28765
28913
|
* per real position record in ascending epoch order.
|
|
@@ -29444,6 +29592,47 @@ export function velocityMidas(series, options) {
|
|
|
29444
29592
|
return takeFromExternrefTable0(ret[0]);
|
|
29445
29593
|
}
|
|
29446
29594
|
|
|
29595
|
+
/**
|
|
29596
|
+
* Verify a shared commit marker against the requested full identity, source,
|
|
29597
|
+
* and all three immutable byte objects. Returns the committed entry id.
|
|
29598
|
+
* @param {GnssProductIdentity} identity
|
|
29599
|
+
* @param {string} source
|
|
29600
|
+
* @param {Uint8Array} marker
|
|
29601
|
+
* @param {Uint8Array} product
|
|
29602
|
+
* @param {Uint8Array} archive
|
|
29603
|
+
* @param {Uint8Array} provenance
|
|
29604
|
+
* @returns {string}
|
|
29605
|
+
*/
|
|
29606
|
+
export function verifyExactCacheCommit(identity, source, marker, product, archive, provenance) {
|
|
29607
|
+
let deferred7_0;
|
|
29608
|
+
let deferred7_1;
|
|
29609
|
+
try {
|
|
29610
|
+
_assertClass(identity, GnssProductIdentity);
|
|
29611
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
29612
|
+
const len0 = WASM_VECTOR_LEN;
|
|
29613
|
+
const ptr1 = passArray8ToWasm0(marker, wasm.__wbindgen_malloc);
|
|
29614
|
+
const len1 = WASM_VECTOR_LEN;
|
|
29615
|
+
const ptr2 = passArray8ToWasm0(product, wasm.__wbindgen_malloc);
|
|
29616
|
+
const len2 = WASM_VECTOR_LEN;
|
|
29617
|
+
const ptr3 = passArray8ToWasm0(archive, wasm.__wbindgen_malloc);
|
|
29618
|
+
const len3 = WASM_VECTOR_LEN;
|
|
29619
|
+
const ptr4 = passArray8ToWasm0(provenance, wasm.__wbindgen_malloc);
|
|
29620
|
+
const len4 = WASM_VECTOR_LEN;
|
|
29621
|
+
const ret = wasm.verifyExactCacheCommit(identity.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
29622
|
+
var ptr6 = ret[0];
|
|
29623
|
+
var len6 = ret[1];
|
|
29624
|
+
if (ret[3]) {
|
|
29625
|
+
ptr6 = 0; len6 = 0;
|
|
29626
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
29627
|
+
}
|
|
29628
|
+
deferred7_0 = ptr6;
|
|
29629
|
+
deferred7_1 = len6;
|
|
29630
|
+
return getStringFromWasm0(ptr6, len6);
|
|
29631
|
+
} finally {
|
|
29632
|
+
wasm.__wbindgen_free(deferred7_0, deferred7_1, 1);
|
|
29633
|
+
}
|
|
29634
|
+
}
|
|
29635
|
+
|
|
29447
29636
|
/**
|
|
29448
29637
|
* Vertical one-dimensional percentile radius from an up variance.
|
|
29449
29638
|
* @param {number} sigma_u_m2
|
|
@@ -29797,6 +29986,16 @@ function __wbg_get_imports() {
|
|
|
29797
29986
|
const ret = result;
|
|
29798
29987
|
return ret;
|
|
29799
29988
|
},
|
|
29989
|
+
__wbg_instanceof_Object_33f20e6f12439f3e: function(arg0) {
|
|
29990
|
+
let result;
|
|
29991
|
+
try {
|
|
29992
|
+
result = arg0 instanceof Object;
|
|
29993
|
+
} catch (_) {
|
|
29994
|
+
result = false;
|
|
29995
|
+
}
|
|
29996
|
+
const ret = result;
|
|
29997
|
+
return ret;
|
|
29998
|
+
},
|
|
29800
29999
|
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
29801
30000
|
let result;
|
|
29802
30001
|
try {
|
|
@@ -29827,6 +30026,10 @@ function __wbg_get_imports() {
|
|
|
29827
30026
|
const ret = Symbol.iterator;
|
|
29828
30027
|
return ret;
|
|
29829
30028
|
},
|
|
30029
|
+
__wbg_keys_58421f8f96795607: function(arg0) {
|
|
30030
|
+
const ret = Object.keys(arg0);
|
|
30031
|
+
return ret;
|
|
30032
|
+
},
|
|
29830
30033
|
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
29831
30034
|
const ret = arg0.length;
|
|
29832
30035
|
return ret;
|
|
@@ -30567,6 +30770,9 @@ const Sp3InterpolationFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
30567
30770
|
const Sp3MergeFlagFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
30568
30771
|
? { register: () => {}, unregister: () => {} }
|
|
30569
30772
|
: new FinalizationRegistry(ptr => wasm.__wbg_sp3mergeflag_free(ptr, 1));
|
|
30773
|
+
const Sp3MergeInputIdentityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
30774
|
+
? { register: () => {}, unregister: () => {} }
|
|
30775
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sp3mergeinputidentity_free(ptr, 1));
|
|
30570
30776
|
const Sp3MergeReportFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
30571
30777
|
? { register: () => {}, unregister: () => {} }
|
|
30572
30778
|
: new FinalizationRegistry(ptr => wasm.__wbg_sp3mergereport_free(ptr, 1));
|
package/pkg/sidereon_bg.wasm
CHANGED
|
Binary file
|