@dreamlake/dreamdb 0.5.2 → 0.5.3

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/web/dreamdb.js CHANGED
@@ -1,5 +1,66 @@
1
1
  /* @ts-self-types="./dreamdb.d.ts" */
2
2
 
3
+ export class GeometryReader {
4
+ static __wrap(ptr) {
5
+ const obj = Object.create(GeometryReader.prototype);
6
+ obj.__wbg_ptr = ptr;
7
+ GeometryReaderFinalization.register(obj, obj.__wbg_ptr, obj);
8
+ return obj;
9
+ }
10
+ __destroy_into_raw() {
11
+ const ptr = this.__wbg_ptr;
12
+ this.__wbg_ptr = 0;
13
+ GeometryReaderFinalization.unregister(this);
14
+ return ptr;
15
+ }
16
+ free() {
17
+ const ptr = this.__destroy_into_raw();
18
+ wasm.__wbg_geometryreader_free(ptr, 0);
19
+ }
20
+ /**
21
+ * Returns only the new suffix at this total logical byte budget.
22
+ * @param {any} key
23
+ * @param {any} budget
24
+ * @returns {Promise<Uint8Array>}
25
+ */
26
+ extendCellPrefix(key, budget) {
27
+ const ret = wasm.geometryreader_extendCellPrefix(this.__wbg_ptr, key, budget);
28
+ return ret;
29
+ }
30
+ /**
31
+ * Declaration plus cells/LODs; no payload transfer. u64 values are BigInt.
32
+ * @returns {any}
33
+ */
34
+ metadata() {
35
+ const ret = wasm.geometryreader_metadata(this.__wbg_ptr);
36
+ if (ret[2]) {
37
+ throw takeFromExternrefTable0(ret[1]);
38
+ }
39
+ return takeFromExternrefTable0(ret[0]);
40
+ }
41
+ /**
42
+ * @param {any} level
43
+ * @returns {Promise<Uint8Array>}
44
+ */
45
+ readMeshLod(level) {
46
+ const ret = wasm.geometryreader_readMeshLod(this.__wbg_ptr, level);
47
+ return ret;
48
+ }
49
+ /**
50
+ * @param {any} min
51
+ * @param {any} max
52
+ * @returns {Array<any>}
53
+ */
54
+ selectCells(min, max) {
55
+ const ret = wasm.geometryreader_selectCells(this.__wbg_ptr, min, max);
56
+ if (ret[2]) {
57
+ throw takeFromExternrefTable0(ret[1]);
58
+ }
59
+ return takeFromExternrefTable0(ret[0]);
60
+ }
61
+ }
62
+ if (Symbol.dispose) GeometryReader.prototype[Symbol.dispose] = GeometryReader.prototype.free;
63
+
3
64
  /**
4
65
  * A `fetch`-backed backend rooted at a base URL.
5
66
  */
@@ -88,6 +149,29 @@ export class Space {
88
149
  const ptr = this.__destroy_into_raw();
89
150
  wasm.__wbg_space_free(ptr, 0);
90
151
  }
152
+ /**
153
+ * Validate all referenced Items, including tombstoned payloads.
154
+ * @param {string} field
155
+ * @returns {Promise<bigint>}
156
+ */
157
+ auditArrayField(field) {
158
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
159
+ const len0 = WASM_VECTOR_LEN;
160
+ const ret = wasm.space_auditArrayField(this.__wbg_ptr, ptr0, len0);
161
+ return ret;
162
+ }
163
+ /**
164
+ * Validate all graph pages and, when declared, exact-source correspondence.
165
+ * The returned count is exactly representable (GraphIndex node_count is u32).
166
+ * @param {string} field
167
+ * @returns {Promise<number>}
168
+ */
169
+ auditGraphIndex(field) {
170
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
171
+ const len0 = WASM_VECTOR_LEN;
172
+ const ret = wasm.space_auditGraphIndex(this.__wbg_ptr, ptr0, len0);
173
+ return ret;
174
+ }
91
175
  /**
92
176
  * The base URL objects are fetched relative to (consumers build their own
93
177
  * object URLs from this — e.g. `dreamdb-demo`'s track readers).
@@ -151,6 +235,17 @@ export class Space {
151
235
  const ret = wasm.space_fromUri(ptr0, len0, backend);
152
236
  return ret;
153
237
  }
238
+ /**
239
+ * Read at this pinned Manifest. Returns null for never-created keys;
240
+ * deleted keys retain metadata with sample=null. Integer keys and anchors
241
+ * are BigInt; sample values use the Writer's tagged field shapes.
242
+ * @param {any} key
243
+ * @returns {Promise<any>}
244
+ */
245
+ getEntity(key) {
246
+ const ret = wasm.space_getEntity(this.__wbg_ptr, key);
247
+ return ret;
248
+ }
154
249
  /**
155
250
  * Walk the manifest DAG from HEAD, up to `max_depth` entries. Each entry:
156
251
  * `{ manifestHash, ts, writer, tracks: [{modality, address}] }`.
@@ -177,6 +272,18 @@ export class Space {
177
272
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
178
273
  }
179
274
  }
275
+ /**
276
+ * Open one pinned geometry Item. Missing/deleted anchors return undefined.
277
+ * @param {string} field
278
+ * @param {any} anchor
279
+ * @returns {Promise<GeometryReader | undefined>}
280
+ */
281
+ openGeometryItem(field, anchor) {
282
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
283
+ const len0 = WASM_VECTOR_LEN;
284
+ const ret = wasm.space_openGeometryItem(this.__wbg_ptr, ptr0, len0, anchor);
285
+ return ret;
286
+ }
180
287
  /**
181
288
  * Hybrid search fusing a lexical (BM25) sub-query and a dense (vector)
182
289
  * sub-query per spec/0015 §5/§6. Returns the fused `[{ anchor, score }]`
@@ -199,8 +306,8 @@ export class Space {
199
306
  * ```
200
307
  *
201
308
  * Delegates to the real (tested) `dreamdb-dataset::Dataset::query_hybrid`.
202
- * (v0 does not expose the optional scalar pre/post-filter; it runs with no
203
- * scalar gate.)
309
+ * Optional `scalarField` / `scalarOp` / `scalarValue` properties select
310
+ * the same scalar pre/post-filter planner used by the native API.
204
311
  * @param {Float32Array} vector
205
312
  * @param {any} opts
206
313
  * @returns {Promise<Array<any>>}
@@ -211,6 +318,21 @@ export class Space {
211
318
  const ret = wasm.space_queryHybrid(this.__wbg_ptr, ptr0, len0, opts);
212
319
  return ret;
213
320
  }
321
+ /**
322
+ * Hybrid query with an observable `{hits, trace}` result. `opts` accepts
323
+ * `maxLatencyMs`, `costModel`, and the optional scalar triple
324
+ * `scalarField`/`scalarOp`/`scalarValue` in addition to `queryHybrid`'s
325
+ * existing properties.
326
+ * @param {Float32Array} vector
327
+ * @param {any} opts
328
+ * @returns {Promise<any>}
329
+ */
330
+ queryHybridPlanned(vector, opts) {
331
+ const ptr0 = passArrayF32ToWasm0(vector, wasm.__wbindgen_malloc);
332
+ const len0 = WASM_VECTOR_LEN;
333
+ const ret = wasm.space_queryHybridPlanned(this.__wbg_ptr, ptr0, len0, opts);
334
+ return ret;
335
+ }
214
336
  /**
215
337
  * Scalar-index lookup: every anchor whose `field` satisfies `op value`
216
338
  * (spec/0011). Returns a `BigUint64Array`-style `Array` of anchors,
@@ -308,6 +430,19 @@ export class Space {
308
430
  const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
309
431
  return ret;
310
432
  }
433
+ /**
434
+ * Point read; full-u64 BigInt anchors are supported. Returned components
435
+ * are owned typed arrays (one Item's bytes), never unaligned aliases.
436
+ * @param {string} field
437
+ * @param {any} anchor
438
+ * @returns {Promise<any>}
439
+ */
440
+ readArrayItem(field, anchor) {
441
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
442
+ const len0 = WASM_VECTOR_LEN;
443
+ const ret = wasm.space_readArrayItem(this.__wbg_ptr, ptr0, len0, anchor);
444
+ return ret;
445
+ }
311
446
  /**
312
447
  * Read a scalar track as a `Map<anchorString, value>`. Single-anchor
313
448
  * entries resolve from the track index; multi-anchor entries fetch (and
@@ -477,6 +612,17 @@ export class Writer {
477
612
  const ptr = this.__destroy_into_raw();
478
613
  wasm.__wbg_writer_free(ptr, 0);
479
614
  }
615
+ /**
616
+ * Atomically hot-append a complete Sample batch. Embeddings retain v1;
617
+ * scalar/text values use v2. Identified embeddings require embeddingSpecs.
618
+ * @param {Array<any>} samples
619
+ * @param {object | null} [embedding_specs]
620
+ * @returns {Promise<number>}
621
+ */
622
+ appendHot(samples, embedding_specs) {
623
+ const ret = wasm.writer_appendHot(this.__wbg_ptr, samples, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
624
+ return ret;
625
+ }
480
626
  /**
481
627
  * Append records and commit in one call.
482
628
  *
@@ -495,6 +641,17 @@ export class Writer {
495
641
  const ret = wasm.writer_appendMany(this.__wbg_ptr, samples);
496
642
  return ret;
497
643
  }
644
+ /**
645
+ * Append records with a field-to-`spec_id` map for identified embeddings.
646
+ * Values are full canonical base32 multihashes.
647
+ * @param {Array<any>} samples
648
+ * @param {object} embedding_specs
649
+ * @returns {Promise<number>}
650
+ */
651
+ appendManyWithSpecs(samples, embedding_specs) {
652
+ const ret = wasm.writer_appendManyWithSpecs(this.__wbg_ptr, samples, embedding_specs);
653
+ return ret;
654
+ }
498
655
  /**
499
656
  * Flush staged entries and publish a new manifest.
500
657
  *
@@ -508,6 +665,38 @@ export class Writer {
508
665
  const ret = wasm.writer_commit(this.__wbg_ptr);
509
666
  return ret;
510
667
  }
668
+ /**
669
+ * Producer policy only: TTL is evaluated on append, not by a timer.
670
+ * @param {number} flush_threshold
671
+ * @param {number} ttl_seconds
672
+ */
673
+ configureHotShard(flush_threshold, ttl_seconds) {
674
+ const ret = wasm.writer_configureHotShard(this.__wbg_ptr, flush_threshold, ttl_seconds);
675
+ if (ret[1]) {
676
+ throw takeFromExternrefTable0(ret[0]);
677
+ }
678
+ }
679
+ /**
680
+ * Create a never-used key. Sample uses appendMany's tagged fields, no anchor.
681
+ * @param {any} key
682
+ * @param {object} sample
683
+ * @param {object | null} [embedding_specs]
684
+ * @returns {Promise<object>}
685
+ */
686
+ createEntity(key, sample, embedding_specs) {
687
+ const ret = wasm.writer_createEntity(this.__wbg_ptr, key, sample, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
688
+ return ret;
689
+ }
690
+ /**
691
+ * Delete exactly a live revision, retaining its key and stable identity.
692
+ * @param {any} key
693
+ * @param {Uint8Array} expected
694
+ * @returns {Promise<object>}
695
+ */
696
+ deleteEntity(key, expected) {
697
+ const ret = wasm.writer_deleteEntity(this.__wbg_ptr, key, expected);
698
+ return ret;
699
+ }
511
700
  /**
512
701
  * Tombstone records by anchor. Returns the new manifest hash.
513
702
  * @param {BigUint64Array} anchors
@@ -522,6 +711,25 @@ export class Writer {
522
711
  const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
523
712
  return ret;
524
713
  }
714
+ /**
715
+ * Enable one exact typed entity namespace: string, bytes or int.
716
+ * @param {string} key_kind
717
+ * @returns {Promise<void>}
718
+ */
719
+ enableEntityKeys(key_kind) {
720
+ const ptr0 = passStringToWasm0(key_kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
721
+ const len0 = WASM_VECTOR_LEN;
722
+ const ret = wasm.writer_enableEntityKeys(this.__wbg_ptr, ptr0, len0);
723
+ return ret;
724
+ }
725
+ /**
726
+ * Explicitly fold every pending hot field into cold Tracks in one publish.
727
+ * @returns {Promise<void>}
728
+ */
729
+ flushHot() {
730
+ const ret = wasm.writer_flushHot(this.__wbg_ptr);
731
+ return ret;
732
+ }
525
733
  /**
526
734
  * Current manifest hash, base32.
527
735
  * @returns {string}
@@ -566,6 +774,36 @@ export class Writer {
566
774
  const ret = wasm.writer_open(ptr0, len0, backend);
567
775
  return ret;
568
776
  }
777
+ /**
778
+ * Publish prequantized fixed-stride records. Coordinates is
779
+ * {origin:[x,y,z],step:[x,y,z],units:string}; depth is 0..16.
780
+ * @param {string} field
781
+ * @param {any} anchor
782
+ * @param {any} coordinates
783
+ * @param {any} depth
784
+ * @param {Uint8Array} records
785
+ * @returns {Promise<string>}
786
+ */
787
+ publishGeometryCells(field, anchor, coordinates, depth, records) {
788
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
789
+ const len0 = WASM_VECTOR_LEN;
790
+ const ret = wasm.writer_publishGeometryCells(this.__wbg_ptr, ptr0, len0, anchor, coordinates, depth, records);
791
+ return ret;
792
+ }
793
+ /**
794
+ * Each level is {errorGrid,vertices,triangles,bytes:Uint8Array}.
795
+ * @param {string} field
796
+ * @param {any} anchor
797
+ * @param {any} coordinates
798
+ * @param {Array<any>} levels
799
+ * @returns {Promise<string>}
800
+ */
801
+ publishGeometryMesh(field, anchor, coordinates, levels) {
802
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
803
+ const len0 = WASM_VECTOR_LEN;
804
+ const ret = wasm.writer_publishGeometryMesh(this.__wbg_ptr, ptr0, len0, anchor, coordinates, levels);
805
+ return ret;
806
+ }
569
807
  /**
570
808
  * The ref this writer advances.
571
809
  * @returns {string}
@@ -593,6 +831,30 @@ export class Writer {
593
831
  const ret = wasm.writer_snapshot(this.__wbg_ptr, ptr0, len0);
594
832
  return ret;
595
833
  }
834
+ /**
835
+ * Replace only a live revision, atomically hiding its old physical row.
836
+ * @param {any} key
837
+ * @param {object} sample
838
+ * @param {Uint8Array} expected
839
+ * @param {object | null} [embedding_specs]
840
+ * @returns {Promise<object>}
841
+ */
842
+ supersedeEntity(key, sample, expected, embedding_specs) {
843
+ const ret = wasm.writer_supersedeEntity(this.__wbg_ptr, key, sample, expected, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
844
+ return ret;
845
+ }
846
+ /**
847
+ * Create with no expected token, or replace/restore exactly that revision.
848
+ * @param {any} key
849
+ * @param {object} sample
850
+ * @param {Uint8Array | null} [expected]
851
+ * @param {object | null} [embedding_specs]
852
+ * @returns {Promise<object>}
853
+ */
854
+ upsertEntity(key, sample, expected, embedding_specs) {
855
+ const ret = wasm.writer_upsertEntity(this.__wbg_ptr, key, sample, isLikeNone(expected) ? 0 : addToExternrefTable0(expected), isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
856
+ return ret;
857
+ }
596
858
  }
597
859
  if (Symbol.dispose) Writer.prototype[Symbol.dispose] = Writer.prototype.free;
598
860
 
@@ -1006,6 +1268,10 @@ function __wbg_get_imports() {
1006
1268
  const ret = typeof(val) === 'object' && val !== null;
1007
1269
  return ret;
1008
1270
  },
1271
+ __wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
1272
+ const ret = typeof(arg0) === 'string';
1273
+ return ret;
1274
+ },
1009
1275
  __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
1010
1276
  const ret = arg0 === undefined;
1011
1277
  return ret;
@@ -1062,6 +1328,10 @@ function __wbg_get_imports() {
1062
1328
  const ret = arg0.call(arg1, arg2, arg3);
1063
1329
  return ret;
1064
1330
  }, arguments); },
1331
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
1332
+ const ret = arg0.crypto;
1333
+ return ret;
1334
+ },
1065
1335
  __wbg_done_54b8da57023b7ed2: function(arg0) {
1066
1336
  const ret = arg0.done;
1067
1337
  return ret;
@@ -1073,6 +1343,17 @@ function __wbg_get_imports() {
1073
1343
  __wbg_error_f085d7e62279b703: function(arg0) {
1074
1344
  console.error(arg0);
1075
1345
  },
1346
+ __wbg_from_fa561fa561dc8031: function(arg0) {
1347
+ const ret = Array.from(arg0);
1348
+ return ret;
1349
+ },
1350
+ __wbg_geometryreader_new: function(arg0) {
1351
+ const ret = GeometryReader.__wrap(arg0);
1352
+ return ret;
1353
+ },
1354
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
1355
+ arg0.getRandomValues(arg1);
1356
+ }, arguments); },
1076
1357
  __wbg_getReader_c8a7370df46b86f6: function(arg0) {
1077
1358
  const ret = arg0.getReader();
1078
1359
  return ret;
@@ -1200,6 +1481,10 @@ function __wbg_get_imports() {
1200
1481
  const ret = Symbol.iterator;
1201
1482
  return ret;
1202
1483
  },
1484
+ __wbg_keys_682010b680c9b1f8: function(arg0) {
1485
+ const ret = Object.keys(arg0);
1486
+ return ret;
1487
+ },
1203
1488
  __wbg_length_0adf2f3c5da33087: function(arg0) {
1204
1489
  const ret = arg0.length;
1205
1490
  return ret;
@@ -1244,6 +1529,10 @@ function __wbg_get_imports() {
1244
1529
  const ret = arg0.length;
1245
1530
  return ret;
1246
1531
  },
1532
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
1533
+ const ret = arg0.msCrypto;
1534
+ return ret;
1535
+ },
1247
1536
  __wbg_new_02d162bc6cf02f60: function() {
1248
1537
  const ret = new Object();
1249
1538
  return ret;
@@ -1264,6 +1553,10 @@ function __wbg_get_imports() {
1264
1553
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1265
1554
  return ret;
1266
1555
  },
1556
+ __wbg_new_from_slice_7a419f18ea6472bf: function(arg0, arg1) {
1557
+ const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
1558
+ return ret;
1559
+ },
1267
1560
  __wbg_new_typed_c072c4ce9a2a0cdf: function(arg0, arg1) {
1268
1561
  try {
1269
1562
  var state0 = {a: arg0, b: arg1};
@@ -1310,6 +1603,10 @@ function __wbg_get_imports() {
1310
1603
  const ret = new Int8Array(arg0 >>> 0);
1311
1604
  return ret;
1312
1605
  },
1606
+ __wbg_new_with_length_99887c91eae4abab: function(arg0) {
1607
+ const ret = new Uint8Array(arg0 >>> 0);
1608
+ return ret;
1609
+ },
1313
1610
  __wbg_new_with_length_bab0ddb25b1a2cc7: function(arg0) {
1314
1611
  const ret = new Int16Array(arg0 >>> 0);
1315
1612
  return ret;
@@ -1330,6 +1627,10 @@ function __wbg_get_imports() {
1330
1627
  const ret = arg0.next();
1331
1628
  return ret;
1332
1629
  }, arguments); },
1630
+ __wbg_node_84ea875411254db1: function(arg0) {
1631
+ const ret = arg0.node;
1632
+ return ret;
1633
+ },
1333
1634
  __wbg_now_81363d44c96dd239: function() {
1334
1635
  const ret = Date.now();
1335
1636
  return ret;
@@ -1338,6 +1639,10 @@ function __wbg_get_imports() {
1338
1639
  const ret = arg0.ok;
1339
1640
  return ret;
1340
1641
  },
1642
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
1643
+ const ret = arg0.process;
1644
+ return ret;
1645
+ },
1341
1646
  __wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
1342
1647
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1343
1648
  },
@@ -1355,6 +1660,13 @@ function __wbg_get_imports() {
1355
1660
  __wbg_queueMicrotask_b39ea83c7f01971a: function(arg0) {
1356
1661
  queueMicrotask(arg0);
1357
1662
  },
1663
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
1664
+ arg0.randomFillSync(arg1);
1665
+ }, arguments); },
1666
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
1667
+ const ret = module.require;
1668
+ return ret;
1669
+ }, arguments); },
1358
1670
  __wbg_resolve_d17db9352f5a220e: function(arg0) {
1359
1671
  const ret = Promise.resolve(arg0);
1360
1672
  return ret;
@@ -1421,6 +1733,10 @@ function __wbg_get_imports() {
1421
1733
  const ret = arg0.status;
1422
1734
  return ret;
1423
1735
  },
1736
+ __wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
1737
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1738
+ return ret;
1739
+ },
1424
1740
  __wbg_then_837494e384b37459: function(arg0, arg1) {
1425
1741
  const ret = arg0.then(arg1);
1426
1742
  return ret;
@@ -1433,12 +1749,16 @@ function __wbg_get_imports() {
1433
1749
  const ret = arg0.value;
1434
1750
  return ret;
1435
1751
  },
1752
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
1753
+ const ret = arg0.versions;
1754
+ return ret;
1755
+ },
1436
1756
  __wbg_writer_new: function(arg0) {
1437
1757
  const ret = Writer.__wrap(arg0);
1438
1758
  return ret;
1439
1759
  },
1440
1760
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1441
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 683, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1761
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 819, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1442
1762
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
1443
1763
  return ret;
1444
1764
  },
@@ -1458,11 +1778,16 @@ function __wbg_get_imports() {
1458
1778
  return ret;
1459
1779
  },
1460
1780
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1781
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1782
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1783
+ return ret;
1784
+ },
1785
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1461
1786
  // Cast intrinsic for `Ref(String) -> Externref`.
1462
1787
  const ret = getStringFromWasm0(arg0, arg1);
1463
1788
  return ret;
1464
1789
  },
1465
- __wbindgen_cast_0000000000000006: function(arg0) {
1790
+ __wbindgen_cast_0000000000000007: function(arg0) {
1466
1791
  // Cast intrinsic for `U64 -> Externref`.
1467
1792
  const ret = BigInt.asUintN(64, arg0);
1468
1793
  return ret;
@@ -1494,6 +1819,9 @@ function wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_a
1494
1819
  wasm.wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined___js_sys_ac40961855821e8e___Function_fn_wasm_bindgen_f7c54996eb9137d9___JsValue_____wasm_bindgen_f7c54996eb9137d9___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
1495
1820
  }
1496
1821
 
1822
+ const GeometryReaderFinalization = (typeof FinalizationRegistry === 'undefined')
1823
+ ? { register: () => {}, unregister: () => {} }
1824
+ : new FinalizationRegistry(ptr => wasm.__wbg_geometryreader_free(ptr, 1));
1497
1825
  const S3BackendFinalization = (typeof FinalizationRegistry === 'undefined')
1498
1826
  ? { register: () => {}, unregister: () => {} }
1499
1827
  : new FinalizationRegistry(ptr => wasm.__wbg_s3backend_free(ptr, 1));
Binary file
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_geometryreader_free: (a: number, b: number) => void;
4
5
  export const __wbg_s3backend_free: (a: number, b: number) => void;
5
6
  export const __wbg_space_free: (a: number, b: number) => void;
6
7
  export const __wbg_writer_free: (a: number, b: number) => void;
@@ -9,6 +10,10 @@ export const addressVariant: (a: number, b: number) => [number, number, number,
9
10
  export const bytesToBase32: (a: number, b: number) => [number, number];
10
11
  export const decodeCbor: (a: number, b: number) => [number, number, number];
11
12
  export const encodeCbor: (a: any) => [number, number, number, number];
13
+ export const geometryreader_extendCellPrefix: (a: number, b: any, c: any) => any;
14
+ export const geometryreader_metadata: (a: number) => [number, number, number];
15
+ export const geometryreader_readMeshLod: (a: number, b: any) => any;
16
+ export const geometryreader_selectCells: (a: number, b: any, c: any) => [number, number, number];
12
17
  export const modalityParse: (a: number, b: number) => [number, number, number];
13
18
  export const multihashBase32: (a: number, b: number) => [number, number];
14
19
  export const multihashHex: (a: number, b: number) => [number, number];
@@ -17,17 +22,23 @@ export const s3backend_get: (a: number, b: number, c: number, d: any) => any;
17
22
  export const s3backend_getStream: (a: number, b: number, c: number) => any;
18
23
  export const s3backend_list: (a: number, b: number, c: number) => any;
19
24
  export const s3backend_new: (a: number, b: number) => number;
25
+ export const space_auditArrayField: (a: number, b: number, c: number) => any;
26
+ export const space_auditGraphIndex: (a: number, b: number, c: number) => any;
20
27
  export const space_connectorBase: (a: number) => [number, number];
21
28
  export const space_description: (a: number) => any;
22
29
  export const space_fromUri: (a: number, b: number, c: any) => any;
30
+ export const space_getEntity: (a: number, b: any) => any;
23
31
  export const space_history: (a: number, b: number) => any;
24
32
  export const space_manifestHash: (a: number) => [number, number];
33
+ export const space_openGeometryItem: (a: number, b: number, c: number, d: any) => any;
25
34
  export const space_queryHybrid: (a: number, b: number, c: number, d: any) => any;
35
+ export const space_queryHybridPlanned: (a: number, b: number, c: number, d: any) => any;
26
36
  export const space_queryScalar: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
27
37
  export const space_queryText: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
28
38
  export const space_queryVector: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
29
39
  export const space_readArrayColumn: (a: number, b: number, c: number) => any;
30
40
  export const space_readArrayConstant: (a: number, b: number, c: number) => any;
41
+ export const space_readArrayItem: (a: number, b: number, c: number, d: any) => any;
31
42
  export const space_readScalarColumn: (a: number, b: any, c: any) => any;
32
43
  export const space_readVideoItemRange: (a: number, b: number, c: number, d: any, e: any, f: any) => any;
33
44
  export const space_resolveObjectIndex: (a: number, b: any) => any;
@@ -45,13 +56,24 @@ export const timeAnchorHex: (a: bigint) => [number, number];
45
56
  export const timeBucket: (a: bigint, b: number, c: number) => [bigint, number, number];
46
57
  export const typedArrayDecode: (a: any, b: number, c: number) => [number, number, number];
47
58
  export const version: () => [number, number];
59
+ export const writer_appendHot: (a: number, b: any, c: number) => any;
48
60
  export const writer_appendMany: (a: number, b: any) => any;
61
+ export const writer_appendManyWithSpecs: (a: number, b: any, c: any) => any;
49
62
  export const writer_commit: (a: number) => any;
63
+ export const writer_configureHotShard: (a: number, b: number, c: number) => [number, number];
64
+ export const writer_createEntity: (a: number, b: any, c: any, d: number) => any;
65
+ export const writer_deleteEntity: (a: number, b: any, c: any) => any;
50
66
  export const writer_deleteRecords: (a: number, b: number, c: number, d: number, e: number) => any;
67
+ export const writer_enableEntityKeys: (a: number, b: number, c: number) => any;
68
+ export const writer_flushHot: (a: number) => any;
51
69
  export const writer_manifestHash: (a: number) => [number, number, number, number];
52
70
  export const writer_open: (a: number, b: number, c: any) => any;
71
+ export const writer_publishGeometryCells: (a: number, b: number, c: number, d: any, e: any, f: any, g: any) => any;
72
+ export const writer_publishGeometryMesh: (a: number, b: number, c: number, d: any, e: any, f: any) => any;
53
73
  export const writer_refName: (a: number) => [number, number];
54
74
  export const writer_snapshot: (a: number, b: number, c: number) => any;
75
+ export const writer_supersedeEntity: (a: number, b: any, c: any, d: any, e: number) => any;
76
+ export const writer_upsertEntity: (a: number, b: any, c: any, d: number, e: number) => any;
55
77
  export const zeroSpatialKey: () => [number, number];
56
78
  export const __wasm_init: () => void;
57
79
  export const wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_: (a: number, b: number, c: any) => [number, number];