@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.
@@ -1,3 +1,64 @@
1
+ export class GeometryReader {
2
+ static __wrap(ptr) {
3
+ const obj = Object.create(GeometryReader.prototype);
4
+ obj.__wbg_ptr = ptr;
5
+ GeometryReaderFinalization.register(obj, obj.__wbg_ptr, obj);
6
+ return obj;
7
+ }
8
+ __destroy_into_raw() {
9
+ const ptr = this.__wbg_ptr;
10
+ this.__wbg_ptr = 0;
11
+ GeometryReaderFinalization.unregister(this);
12
+ return ptr;
13
+ }
14
+ free() {
15
+ const ptr = this.__destroy_into_raw();
16
+ wasm.__wbg_geometryreader_free(ptr, 0);
17
+ }
18
+ /**
19
+ * Returns only the new suffix at this total logical byte budget.
20
+ * @param {any} key
21
+ * @param {any} budget
22
+ * @returns {Promise<Uint8Array>}
23
+ */
24
+ extendCellPrefix(key, budget) {
25
+ const ret = wasm.geometryreader_extendCellPrefix(this.__wbg_ptr, key, budget);
26
+ return ret;
27
+ }
28
+ /**
29
+ * Declaration plus cells/LODs; no payload transfer. u64 values are BigInt.
30
+ * @returns {any}
31
+ */
32
+ metadata() {
33
+ const ret = wasm.geometryreader_metadata(this.__wbg_ptr);
34
+ if (ret[2]) {
35
+ throw takeFromExternrefTable0(ret[1]);
36
+ }
37
+ return takeFromExternrefTable0(ret[0]);
38
+ }
39
+ /**
40
+ * @param {any} level
41
+ * @returns {Promise<Uint8Array>}
42
+ */
43
+ readMeshLod(level) {
44
+ const ret = wasm.geometryreader_readMeshLod(this.__wbg_ptr, level);
45
+ return ret;
46
+ }
47
+ /**
48
+ * @param {any} min
49
+ * @param {any} max
50
+ * @returns {Array<any>}
51
+ */
52
+ selectCells(min, max) {
53
+ const ret = wasm.geometryreader_selectCells(this.__wbg_ptr, min, max);
54
+ if (ret[2]) {
55
+ throw takeFromExternrefTable0(ret[1]);
56
+ }
57
+ return takeFromExternrefTable0(ret[0]);
58
+ }
59
+ }
60
+ if (Symbol.dispose) GeometryReader.prototype[Symbol.dispose] = GeometryReader.prototype.free;
61
+
1
62
  /**
2
63
  * A `fetch`-backed backend rooted at a base URL.
3
64
  */
@@ -86,6 +147,29 @@ export class Space {
86
147
  const ptr = this.__destroy_into_raw();
87
148
  wasm.__wbg_space_free(ptr, 0);
88
149
  }
150
+ /**
151
+ * Validate all referenced Items, including tombstoned payloads.
152
+ * @param {string} field
153
+ * @returns {Promise<bigint>}
154
+ */
155
+ auditArrayField(field) {
156
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
157
+ const len0 = WASM_VECTOR_LEN;
158
+ const ret = wasm.space_auditArrayField(this.__wbg_ptr, ptr0, len0);
159
+ return ret;
160
+ }
161
+ /**
162
+ * Validate all graph pages and, when declared, exact-source correspondence.
163
+ * The returned count is exactly representable (GraphIndex node_count is u32).
164
+ * @param {string} field
165
+ * @returns {Promise<number>}
166
+ */
167
+ auditGraphIndex(field) {
168
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
169
+ const len0 = WASM_VECTOR_LEN;
170
+ const ret = wasm.space_auditGraphIndex(this.__wbg_ptr, ptr0, len0);
171
+ return ret;
172
+ }
89
173
  /**
90
174
  * The base URL objects are fetched relative to (consumers build their own
91
175
  * object URLs from this — e.g. `dreamdb-demo`'s track readers).
@@ -149,6 +233,17 @@ export class Space {
149
233
  const ret = wasm.space_fromUri(ptr0, len0, backend);
150
234
  return ret;
151
235
  }
236
+ /**
237
+ * Read at this pinned Manifest. Returns null for never-created keys;
238
+ * deleted keys retain metadata with sample=null. Integer keys and anchors
239
+ * are BigInt; sample values use the Writer's tagged field shapes.
240
+ * @param {any} key
241
+ * @returns {Promise<any>}
242
+ */
243
+ getEntity(key) {
244
+ const ret = wasm.space_getEntity(this.__wbg_ptr, key);
245
+ return ret;
246
+ }
152
247
  /**
153
248
  * Walk the manifest DAG from HEAD, up to `max_depth` entries. Each entry:
154
249
  * `{ manifestHash, ts, writer, tracks: [{modality, address}] }`.
@@ -175,6 +270,18 @@ export class Space {
175
270
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
176
271
  }
177
272
  }
273
+ /**
274
+ * Open one pinned geometry Item. Missing/deleted anchors return undefined.
275
+ * @param {string} field
276
+ * @param {any} anchor
277
+ * @returns {Promise<GeometryReader | undefined>}
278
+ */
279
+ openGeometryItem(field, anchor) {
280
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
281
+ const len0 = WASM_VECTOR_LEN;
282
+ const ret = wasm.space_openGeometryItem(this.__wbg_ptr, ptr0, len0, anchor);
283
+ return ret;
284
+ }
178
285
  /**
179
286
  * Hybrid search fusing a lexical (BM25) sub-query and a dense (vector)
180
287
  * sub-query per spec/0015 §5/§6. Returns the fused `[{ anchor, score }]`
@@ -197,8 +304,8 @@ export class Space {
197
304
  * ```
198
305
  *
199
306
  * Delegates to the real (tested) `dreamdb-dataset::Dataset::query_hybrid`.
200
- * (v0 does not expose the optional scalar pre/post-filter; it runs with no
201
- * scalar gate.)
307
+ * Optional `scalarField` / `scalarOp` / `scalarValue` properties select
308
+ * the same scalar pre/post-filter planner used by the native API.
202
309
  * @param {Float32Array} vector
203
310
  * @param {any} opts
204
311
  * @returns {Promise<Array<any>>}
@@ -209,6 +316,21 @@ export class Space {
209
316
  const ret = wasm.space_queryHybrid(this.__wbg_ptr, ptr0, len0, opts);
210
317
  return ret;
211
318
  }
319
+ /**
320
+ * Hybrid query with an observable `{hits, trace}` result. `opts` accepts
321
+ * `maxLatencyMs`, `costModel`, and the optional scalar triple
322
+ * `scalarField`/`scalarOp`/`scalarValue` in addition to `queryHybrid`'s
323
+ * existing properties.
324
+ * @param {Float32Array} vector
325
+ * @param {any} opts
326
+ * @returns {Promise<any>}
327
+ */
328
+ queryHybridPlanned(vector, opts) {
329
+ const ptr0 = passArrayF32ToWasm0(vector, wasm.__wbindgen_malloc);
330
+ const len0 = WASM_VECTOR_LEN;
331
+ const ret = wasm.space_queryHybridPlanned(this.__wbg_ptr, ptr0, len0, opts);
332
+ return ret;
333
+ }
212
334
  /**
213
335
  * Scalar-index lookup: every anchor whose `field` satisfies `op value`
214
336
  * (spec/0011). Returns a `BigUint64Array`-style `Array` of anchors,
@@ -306,6 +428,19 @@ export class Space {
306
428
  const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
307
429
  return ret;
308
430
  }
431
+ /**
432
+ * Point read; full-u64 BigInt anchors are supported. Returned components
433
+ * are owned typed arrays (one Item's bytes), never unaligned aliases.
434
+ * @param {string} field
435
+ * @param {any} anchor
436
+ * @returns {Promise<any>}
437
+ */
438
+ readArrayItem(field, anchor) {
439
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
440
+ const len0 = WASM_VECTOR_LEN;
441
+ const ret = wasm.space_readArrayItem(this.__wbg_ptr, ptr0, len0, anchor);
442
+ return ret;
443
+ }
309
444
  /**
310
445
  * Read a scalar track as a `Map<anchorString, value>`. Single-anchor
311
446
  * entries resolve from the track index; multi-anchor entries fetch (and
@@ -475,6 +610,17 @@ export class Writer {
475
610
  const ptr = this.__destroy_into_raw();
476
611
  wasm.__wbg_writer_free(ptr, 0);
477
612
  }
613
+ /**
614
+ * Atomically hot-append a complete Sample batch. Embeddings retain v1;
615
+ * scalar/text values use v2. Identified embeddings require embeddingSpecs.
616
+ * @param {Array<any>} samples
617
+ * @param {object | null} [embedding_specs]
618
+ * @returns {Promise<number>}
619
+ */
620
+ appendHot(samples, embedding_specs) {
621
+ const ret = wasm.writer_appendHot(this.__wbg_ptr, samples, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
622
+ return ret;
623
+ }
478
624
  /**
479
625
  * Append records and commit in one call.
480
626
  *
@@ -493,6 +639,17 @@ export class Writer {
493
639
  const ret = wasm.writer_appendMany(this.__wbg_ptr, samples);
494
640
  return ret;
495
641
  }
642
+ /**
643
+ * Append records with a field-to-`spec_id` map for identified embeddings.
644
+ * Values are full canonical base32 multihashes.
645
+ * @param {Array<any>} samples
646
+ * @param {object} embedding_specs
647
+ * @returns {Promise<number>}
648
+ */
649
+ appendManyWithSpecs(samples, embedding_specs) {
650
+ const ret = wasm.writer_appendManyWithSpecs(this.__wbg_ptr, samples, embedding_specs);
651
+ return ret;
652
+ }
496
653
  /**
497
654
  * Flush staged entries and publish a new manifest.
498
655
  *
@@ -506,6 +663,38 @@ export class Writer {
506
663
  const ret = wasm.writer_commit(this.__wbg_ptr);
507
664
  return ret;
508
665
  }
666
+ /**
667
+ * Producer policy only: TTL is evaluated on append, not by a timer.
668
+ * @param {number} flush_threshold
669
+ * @param {number} ttl_seconds
670
+ */
671
+ configureHotShard(flush_threshold, ttl_seconds) {
672
+ const ret = wasm.writer_configureHotShard(this.__wbg_ptr, flush_threshold, ttl_seconds);
673
+ if (ret[1]) {
674
+ throw takeFromExternrefTable0(ret[0]);
675
+ }
676
+ }
677
+ /**
678
+ * Create a never-used key. Sample uses appendMany's tagged fields, no anchor.
679
+ * @param {any} key
680
+ * @param {object} sample
681
+ * @param {object | null} [embedding_specs]
682
+ * @returns {Promise<object>}
683
+ */
684
+ createEntity(key, sample, embedding_specs) {
685
+ const ret = wasm.writer_createEntity(this.__wbg_ptr, key, sample, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
686
+ return ret;
687
+ }
688
+ /**
689
+ * Delete exactly a live revision, retaining its key and stable identity.
690
+ * @param {any} key
691
+ * @param {Uint8Array} expected
692
+ * @returns {Promise<object>}
693
+ */
694
+ deleteEntity(key, expected) {
695
+ const ret = wasm.writer_deleteEntity(this.__wbg_ptr, key, expected);
696
+ return ret;
697
+ }
509
698
  /**
510
699
  * Tombstone records by anchor. Returns the new manifest hash.
511
700
  * @param {BigUint64Array} anchors
@@ -520,6 +709,25 @@ export class Writer {
520
709
  const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
521
710
  return ret;
522
711
  }
712
+ /**
713
+ * Enable one exact typed entity namespace: string, bytes or int.
714
+ * @param {string} key_kind
715
+ * @returns {Promise<void>}
716
+ */
717
+ enableEntityKeys(key_kind) {
718
+ const ptr0 = passStringToWasm0(key_kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
719
+ const len0 = WASM_VECTOR_LEN;
720
+ const ret = wasm.writer_enableEntityKeys(this.__wbg_ptr, ptr0, len0);
721
+ return ret;
722
+ }
723
+ /**
724
+ * Explicitly fold every pending hot field into cold Tracks in one publish.
725
+ * @returns {Promise<void>}
726
+ */
727
+ flushHot() {
728
+ const ret = wasm.writer_flushHot(this.__wbg_ptr);
729
+ return ret;
730
+ }
523
731
  /**
524
732
  * Current manifest hash, base32.
525
733
  * @returns {string}
@@ -564,6 +772,36 @@ export class Writer {
564
772
  const ret = wasm.writer_open(ptr0, len0, backend);
565
773
  return ret;
566
774
  }
775
+ /**
776
+ * Publish prequantized fixed-stride records. Coordinates is
777
+ * {origin:[x,y,z],step:[x,y,z],units:string}; depth is 0..16.
778
+ * @param {string} field
779
+ * @param {any} anchor
780
+ * @param {any} coordinates
781
+ * @param {any} depth
782
+ * @param {Uint8Array} records
783
+ * @returns {Promise<string>}
784
+ */
785
+ publishGeometryCells(field, anchor, coordinates, depth, records) {
786
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
787
+ const len0 = WASM_VECTOR_LEN;
788
+ const ret = wasm.writer_publishGeometryCells(this.__wbg_ptr, ptr0, len0, anchor, coordinates, depth, records);
789
+ return ret;
790
+ }
791
+ /**
792
+ * Each level is {errorGrid,vertices,triangles,bytes:Uint8Array}.
793
+ * @param {string} field
794
+ * @param {any} anchor
795
+ * @param {any} coordinates
796
+ * @param {Array<any>} levels
797
+ * @returns {Promise<string>}
798
+ */
799
+ publishGeometryMesh(field, anchor, coordinates, levels) {
800
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
801
+ const len0 = WASM_VECTOR_LEN;
802
+ const ret = wasm.writer_publishGeometryMesh(this.__wbg_ptr, ptr0, len0, anchor, coordinates, levels);
803
+ return ret;
804
+ }
567
805
  /**
568
806
  * The ref this writer advances.
569
807
  * @returns {string}
@@ -591,6 +829,30 @@ export class Writer {
591
829
  const ret = wasm.writer_snapshot(this.__wbg_ptr, ptr0, len0);
592
830
  return ret;
593
831
  }
832
+ /**
833
+ * Replace only a live revision, atomically hiding its old physical row.
834
+ * @param {any} key
835
+ * @param {object} sample
836
+ * @param {Uint8Array} expected
837
+ * @param {object | null} [embedding_specs]
838
+ * @returns {Promise<object>}
839
+ */
840
+ supersedeEntity(key, sample, expected, embedding_specs) {
841
+ const ret = wasm.writer_supersedeEntity(this.__wbg_ptr, key, sample, expected, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
842
+ return ret;
843
+ }
844
+ /**
845
+ * Create with no expected token, or replace/restore exactly that revision.
846
+ * @param {any} key
847
+ * @param {object} sample
848
+ * @param {Uint8Array | null} [expected]
849
+ * @param {object | null} [embedding_specs]
850
+ * @returns {Promise<object>}
851
+ */
852
+ upsertEntity(key, sample, expected, embedding_specs) {
853
+ const ret = wasm.writer_upsertEntity(this.__wbg_ptr, key, sample, isLikeNone(expected) ? 0 : addToExternrefTable0(expected), isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
854
+ return ret;
855
+ }
594
856
  }
595
857
  if (Symbol.dispose) Writer.prototype[Symbol.dispose] = Writer.prototype.free;
596
858
 
@@ -1001,6 +1263,10 @@ export function __wbg___wbindgen_is_object_b4593df85baada48(arg0) {
1001
1263
  const ret = typeof(val) === 'object' && val !== null;
1002
1264
  return ret;
1003
1265
  }
1266
+ export function __wbg___wbindgen_is_string_dde0fd9020db4434(arg0) {
1267
+ const ret = typeof(arg0) === 'string';
1268
+ return ret;
1269
+ }
1004
1270
  export function __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5(arg0) {
1005
1271
  const ret = arg0 === undefined;
1006
1272
  return ret;
@@ -1057,6 +1323,10 @@ export function __wbg_call_faa0a261f288f846() { return handleError(function (arg
1057
1323
  const ret = arg0.call(arg1, arg2, arg3);
1058
1324
  return ret;
1059
1325
  }, arguments); }
1326
+ export function __wbg_crypto_38df2bab126b63dc(arg0) {
1327
+ const ret = arg0.crypto;
1328
+ return ret;
1329
+ }
1060
1330
  export function __wbg_done_54b8da57023b7ed2(arg0) {
1061
1331
  const ret = arg0.done;
1062
1332
  return ret;
@@ -1068,6 +1338,17 @@ export function __wbg_entries_564a7e8b1e54ede5(arg0) {
1068
1338
  export function __wbg_error_f085d7e62279b703(arg0) {
1069
1339
  console.error(arg0);
1070
1340
  }
1341
+ export function __wbg_from_fa561fa561dc8031(arg0) {
1342
+ const ret = Array.from(arg0);
1343
+ return ret;
1344
+ }
1345
+ export function __wbg_geometryreader_new(arg0) {
1346
+ const ret = GeometryReader.__wrap(arg0);
1347
+ return ret;
1348
+ }
1349
+ export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
1350
+ arg0.getRandomValues(arg1);
1351
+ }, arguments); }
1071
1352
  export function __wbg_getReader_c8a7370df46b86f6(arg0) {
1072
1353
  const ret = arg0.getReader();
1073
1354
  return ret;
@@ -1195,6 +1476,10 @@ export function __wbg_iterator_1441b47f341dc34f() {
1195
1476
  const ret = Symbol.iterator;
1196
1477
  return ret;
1197
1478
  }
1479
+ export function __wbg_keys_682010b680c9b1f8(arg0) {
1480
+ const ret = Object.keys(arg0);
1481
+ return ret;
1482
+ }
1198
1483
  export function __wbg_length_0adf2f3c5da33087(arg0) {
1199
1484
  const ret = arg0.length;
1200
1485
  return ret;
@@ -1239,6 +1524,10 @@ export function __wbg_length_efe2271ed86b56cc(arg0) {
1239
1524
  const ret = arg0.length;
1240
1525
  return ret;
1241
1526
  }
1527
+ export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
1528
+ const ret = arg0.msCrypto;
1529
+ return ret;
1530
+ }
1242
1531
  export function __wbg_new_02d162bc6cf02f60() {
1243
1532
  const ret = new Object();
1244
1533
  return ret;
@@ -1259,6 +1548,10 @@ export function __wbg_new_from_slice_269e35316ed2d061(arg0, arg1) {
1259
1548
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1260
1549
  return ret;
1261
1550
  }
1551
+ export function __wbg_new_from_slice_7a419f18ea6472bf(arg0, arg1) {
1552
+ const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
1553
+ return ret;
1554
+ }
1262
1555
  export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
1263
1556
  try {
1264
1557
  var state0 = {a: arg0, b: arg1};
@@ -1305,6 +1598,10 @@ export function __wbg_new_with_length_96785292f4aab914(arg0) {
1305
1598
  const ret = new Int8Array(arg0 >>> 0);
1306
1599
  return ret;
1307
1600
  }
1601
+ export function __wbg_new_with_length_99887c91eae4abab(arg0) {
1602
+ const ret = new Uint8Array(arg0 >>> 0);
1603
+ return ret;
1604
+ }
1308
1605
  export function __wbg_new_with_length_bab0ddb25b1a2cc7(arg0) {
1309
1606
  const ret = new Int16Array(arg0 >>> 0);
1310
1607
  return ret;
@@ -1325,6 +1622,10 @@ export function __wbg_next_6429a146bf756f93() { return handleError(function (arg
1325
1622
  const ret = arg0.next();
1326
1623
  return ret;
1327
1624
  }, arguments); }
1625
+ export function __wbg_node_84ea875411254db1(arg0) {
1626
+ const ret = arg0.node;
1627
+ return ret;
1628
+ }
1328
1629
  export function __wbg_now_81363d44c96dd239() {
1329
1630
  const ret = Date.now();
1330
1631
  return ret;
@@ -1333,6 +1634,10 @@ export function __wbg_ok_556a55299dd238ba(arg0) {
1333
1634
  const ret = arg0.ok;
1334
1635
  return ret;
1335
1636
  }
1637
+ export function __wbg_process_44c7a14e11e9f69e(arg0) {
1638
+ const ret = arg0.process;
1639
+ return ret;
1640
+ }
1336
1641
  export function __wbg_prototypesetcall_5f9bdc8d75e07276(arg0, arg1, arg2) {
1337
1642
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1338
1643
  }
@@ -1350,6 +1655,13 @@ export function __wbg_queueMicrotask_78d584b53af520f5(arg0) {
1350
1655
  export function __wbg_queueMicrotask_b39ea83c7f01971a(arg0) {
1351
1656
  queueMicrotask(arg0);
1352
1657
  }
1658
+ export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
1659
+ arg0.randomFillSync(arg1);
1660
+ }, arguments); }
1661
+ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
1662
+ const ret = module.require;
1663
+ return ret;
1664
+ }, arguments); }
1353
1665
  export function __wbg_resolve_d17db9352f5a220e(arg0) {
1354
1666
  const ret = Promise.resolve(arg0);
1355
1667
  return ret;
@@ -1416,6 +1728,10 @@ export function __wbg_status_0853c9f5752c7ee2(arg0) {
1416
1728
  const ret = arg0.status;
1417
1729
  return ret;
1418
1730
  }
1731
+ export function __wbg_subarray_7c6a0da8f3b4a1ba(arg0, arg1, arg2) {
1732
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1733
+ return ret;
1734
+ }
1419
1735
  export function __wbg_then_837494e384b37459(arg0, arg1) {
1420
1736
  const ret = arg0.then(arg1);
1421
1737
  return ret;
@@ -1428,12 +1744,16 @@ export function __wbg_value_9cc0518af87a489c(arg0) {
1428
1744
  const ret = arg0.value;
1429
1745
  return ret;
1430
1746
  }
1747
+ export function __wbg_versions_276b2795b1c6a219(arg0) {
1748
+ const ret = arg0.versions;
1749
+ return ret;
1750
+ }
1431
1751
  export function __wbg_writer_new(arg0) {
1432
1752
  const ret = Writer.__wrap(arg0);
1433
1753
  return ret;
1434
1754
  }
1435
1755
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1436
- // 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`.
1756
+ // 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`.
1437
1757
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
1438
1758
  return ret;
1439
1759
  }
@@ -1453,11 +1773,16 @@ export function __wbindgen_cast_0000000000000004(arg0) {
1453
1773
  return ret;
1454
1774
  }
1455
1775
  export function __wbindgen_cast_0000000000000005(arg0, arg1) {
1776
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1777
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1778
+ return ret;
1779
+ }
1780
+ export function __wbindgen_cast_0000000000000006(arg0, arg1) {
1456
1781
  // Cast intrinsic for `Ref(String) -> Externref`.
1457
1782
  const ret = getStringFromWasm0(arg0, arg1);
1458
1783
  return ret;
1459
1784
  }
1460
- export function __wbindgen_cast_0000000000000006(arg0) {
1785
+ export function __wbindgen_cast_0000000000000007(arg0) {
1461
1786
  // Cast intrinsic for `U64 -> Externref`.
1462
1787
  const ret = BigInt.asUintN(64, arg0);
1463
1788
  return ret;
@@ -1482,6 +1807,9 @@ function wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_a
1482
1807
  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);
1483
1808
  }
1484
1809
 
1810
+ const GeometryReaderFinalization = (typeof FinalizationRegistry === 'undefined')
1811
+ ? { register: () => {}, unregister: () => {} }
1812
+ : new FinalizationRegistry(ptr => wasm.__wbg_geometryreader_free(ptr, 1));
1485
1813
  const S3BackendFinalization = (typeof FinalizationRegistry === 'undefined')
1486
1814
  ? { register: () => {}, unregister: () => {} }
1487
1815
  : 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];