@neilberkman/sidereon 0.29.2 → 0.30.0
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 +10 -1
- package/README.md +22 -1
- package/exact-cache.js +242 -0
- package/package.json +8 -1
- package/pkg/sidereon.d.ts +1342 -1322
- package/pkg/sidereon.js +102 -0
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +1326 -1322
- package/pkg-node/sidereon.d.ts +16 -0
- package/pkg-node/sidereon.js +104 -0
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +1326 -1322
- 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
|
*/
|
|
@@ -21637,6 +21664,40 @@ export function buildDualFrequencyRinexRtkArc(ephemeris, base_obs, rover_obs, op
|
|
|
21637
21664
|
return takeFromExternrefTable0(ret[0]);
|
|
21638
21665
|
}
|
|
21639
21666
|
|
|
21667
|
+
/**
|
|
21668
|
+
* Build the shared exact-cache commit bytes for a complete immutable candidate.
|
|
21669
|
+
*
|
|
21670
|
+
* Browser hosts should stage product, archive, and provenance under `entry_id`
|
|
21671
|
+
* and make the returned marker visible in the same IndexedDB transaction.
|
|
21672
|
+
* @param {GnssProductIdentity} identity
|
|
21673
|
+
* @param {string} source
|
|
21674
|
+
* @param {string} entry_id
|
|
21675
|
+
* @param {Uint8Array} product
|
|
21676
|
+
* @param {Uint8Array} archive
|
|
21677
|
+
* @param {Uint8Array} provenance
|
|
21678
|
+
* @returns {Uint8Array}
|
|
21679
|
+
*/
|
|
21680
|
+
export function buildExactCacheCommit(identity, source, entry_id, product, archive, provenance) {
|
|
21681
|
+
_assertClass(identity, GnssProductIdentity);
|
|
21682
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
21683
|
+
const len0 = WASM_VECTOR_LEN;
|
|
21684
|
+
const ptr1 = passStringToWasm0(entry_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
21685
|
+
const len1 = WASM_VECTOR_LEN;
|
|
21686
|
+
const ptr2 = passArray8ToWasm0(product, wasm.__wbindgen_malloc);
|
|
21687
|
+
const len2 = WASM_VECTOR_LEN;
|
|
21688
|
+
const ptr3 = passArray8ToWasm0(archive, wasm.__wbindgen_malloc);
|
|
21689
|
+
const len3 = WASM_VECTOR_LEN;
|
|
21690
|
+
const ptr4 = passArray8ToWasm0(provenance, wasm.__wbindgen_malloc);
|
|
21691
|
+
const len4 = WASM_VECTOR_LEN;
|
|
21692
|
+
const ret = wasm.buildExactCacheCommit(identity.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
21693
|
+
if (ret[3]) {
|
|
21694
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
21695
|
+
}
|
|
21696
|
+
var v6 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
21697
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
21698
|
+
return v6;
|
|
21699
|
+
}
|
|
21700
|
+
|
|
21640
21701
|
/**
|
|
21641
21702
|
* Build single-frequency RTK arc records from parsed RINEX OBS products.
|
|
21642
21703
|
*
|
|
@@ -29444,6 +29505,47 @@ export function velocityMidas(series, options) {
|
|
|
29444
29505
|
return takeFromExternrefTable0(ret[0]);
|
|
29445
29506
|
}
|
|
29446
29507
|
|
|
29508
|
+
/**
|
|
29509
|
+
* Verify a shared commit marker against the requested full identity, source,
|
|
29510
|
+
* and all three immutable byte objects. Returns the committed entry id.
|
|
29511
|
+
* @param {GnssProductIdentity} identity
|
|
29512
|
+
* @param {string} source
|
|
29513
|
+
* @param {Uint8Array} marker
|
|
29514
|
+
* @param {Uint8Array} product
|
|
29515
|
+
* @param {Uint8Array} archive
|
|
29516
|
+
* @param {Uint8Array} provenance
|
|
29517
|
+
* @returns {string}
|
|
29518
|
+
*/
|
|
29519
|
+
export function verifyExactCacheCommit(identity, source, marker, product, archive, provenance) {
|
|
29520
|
+
let deferred7_0;
|
|
29521
|
+
let deferred7_1;
|
|
29522
|
+
try {
|
|
29523
|
+
_assertClass(identity, GnssProductIdentity);
|
|
29524
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
29525
|
+
const len0 = WASM_VECTOR_LEN;
|
|
29526
|
+
const ptr1 = passArray8ToWasm0(marker, wasm.__wbindgen_malloc);
|
|
29527
|
+
const len1 = WASM_VECTOR_LEN;
|
|
29528
|
+
const ptr2 = passArray8ToWasm0(product, wasm.__wbindgen_malloc);
|
|
29529
|
+
const len2 = WASM_VECTOR_LEN;
|
|
29530
|
+
const ptr3 = passArray8ToWasm0(archive, wasm.__wbindgen_malloc);
|
|
29531
|
+
const len3 = WASM_VECTOR_LEN;
|
|
29532
|
+
const ptr4 = passArray8ToWasm0(provenance, wasm.__wbindgen_malloc);
|
|
29533
|
+
const len4 = WASM_VECTOR_LEN;
|
|
29534
|
+
const ret = wasm.verifyExactCacheCommit(identity.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
29535
|
+
var ptr6 = ret[0];
|
|
29536
|
+
var len6 = ret[1];
|
|
29537
|
+
if (ret[3]) {
|
|
29538
|
+
ptr6 = 0; len6 = 0;
|
|
29539
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
29540
|
+
}
|
|
29541
|
+
deferred7_0 = ptr6;
|
|
29542
|
+
deferred7_1 = len6;
|
|
29543
|
+
return getStringFromWasm0(ptr6, len6);
|
|
29544
|
+
} finally {
|
|
29545
|
+
wasm.__wbindgen_free(deferred7_0, deferred7_1, 1);
|
|
29546
|
+
}
|
|
29547
|
+
}
|
|
29548
|
+
|
|
29447
29549
|
/**
|
|
29448
29550
|
* Vertical one-dimensional percentile radius from an up variance.
|
|
29449
29551
|
* @param {number} sigma_u_m2
|
package/pkg/sidereon_bg.wasm
CHANGED
|
Binary file
|