@dreamlake/dreamdb 0.5.2 → 0.5.4
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/README.md +7 -0
- package/browser/dreamdb.d.ts +101 -3
- package/browser/dreamdb.js +1 -1
- package/browser/dreamdb_bg.js +337 -5
- package/browser/dreamdb_bg.wasm +0 -0
- package/browser/dreamdb_bg.wasm.d.ts +22 -0
- package/index.d.ts +121 -7
- package/node/dreamdb.cjs +360 -7
- package/node/dreamdb.d.cts +121 -7
- package/node/dreamdb_bg.wasm +0 -0
- package/node/dreamdb_bg.wasm.d.ts +27 -1
- package/node.mjs +5 -4
- package/package.json +1 -1
- package/web/dreamdb.d.ts +123 -3
- package/web/dreamdb.js +337 -5
- package/web/dreamdb_bg.wasm +0 -0
- package/web/dreamdb_bg.wasm.d.ts +22 -0
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
|
-
*
|
|
203
|
-
* scalar
|
|
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,
|
|
@@ -266,7 +388,11 @@ export class Space {
|
|
|
266
388
|
}
|
|
267
389
|
/**
|
|
268
390
|
* Top-K cosine vector search over an embedding `field`. `opts` may be a
|
|
269
|
-
* number (topK) or `{ topK?, probeCount
|
|
391
|
+
* number (topK) or `{ topK?, probeCount?, specId?, rerankPoolSize?, rerankMode? }`.
|
|
392
|
+
* The optional pool must be a positive integer at least topK; it changes
|
|
393
|
+
* neither probe coverage nor Schema exactness. rerankMode explicitly selects
|
|
394
|
+
* inherit (default), approximate or exact. Graphs reject explicit overrides.
|
|
395
|
+
* Returns `[{ anchor, score }]`
|
|
270
396
|
* sorted by score descending — the shape dreamdb-ts's `queryVector` yields.
|
|
271
397
|
*
|
|
272
398
|
* Delegates to the real (tested) `dreamdb-dataset` query path: ADC cull +
|
|
@@ -308,6 +434,19 @@ export class Space {
|
|
|
308
434
|
const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
|
|
309
435
|
return ret;
|
|
310
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* Point read; full-u64 BigInt anchors are supported. Returned components
|
|
439
|
+
* are owned typed arrays (one Item's bytes), never unaligned aliases.
|
|
440
|
+
* @param {string} field
|
|
441
|
+
* @param {any} anchor
|
|
442
|
+
* @returns {Promise<any>}
|
|
443
|
+
*/
|
|
444
|
+
readArrayItem(field, anchor) {
|
|
445
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
446
|
+
const len0 = WASM_VECTOR_LEN;
|
|
447
|
+
const ret = wasm.space_readArrayItem(this.__wbg_ptr, ptr0, len0, anchor);
|
|
448
|
+
return ret;
|
|
449
|
+
}
|
|
311
450
|
/**
|
|
312
451
|
* Read a scalar track as a `Map<anchorString, value>`. Single-anchor
|
|
313
452
|
* entries resolve from the track index; multi-anchor entries fetch (and
|
|
@@ -477,6 +616,17 @@ export class Writer {
|
|
|
477
616
|
const ptr = this.__destroy_into_raw();
|
|
478
617
|
wasm.__wbg_writer_free(ptr, 0);
|
|
479
618
|
}
|
|
619
|
+
/**
|
|
620
|
+
* Atomically hot-append a complete Sample batch. Embeddings retain v1;
|
|
621
|
+
* scalar/text values use v2. Identified embeddings require embeddingSpecs.
|
|
622
|
+
* @param {Array<any>} samples
|
|
623
|
+
* @param {object | null} [embedding_specs]
|
|
624
|
+
* @returns {Promise<number>}
|
|
625
|
+
*/
|
|
626
|
+
appendHot(samples, embedding_specs) {
|
|
627
|
+
const ret = wasm.writer_appendHot(this.__wbg_ptr, samples, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
628
|
+
return ret;
|
|
629
|
+
}
|
|
480
630
|
/**
|
|
481
631
|
* Append records and commit in one call.
|
|
482
632
|
*
|
|
@@ -495,6 +645,17 @@ export class Writer {
|
|
|
495
645
|
const ret = wasm.writer_appendMany(this.__wbg_ptr, samples);
|
|
496
646
|
return ret;
|
|
497
647
|
}
|
|
648
|
+
/**
|
|
649
|
+
* Append records with a field-to-`spec_id` map for identified embeddings.
|
|
650
|
+
* Values are full canonical base32 multihashes.
|
|
651
|
+
* @param {Array<any>} samples
|
|
652
|
+
* @param {object} embedding_specs
|
|
653
|
+
* @returns {Promise<number>}
|
|
654
|
+
*/
|
|
655
|
+
appendManyWithSpecs(samples, embedding_specs) {
|
|
656
|
+
const ret = wasm.writer_appendManyWithSpecs(this.__wbg_ptr, samples, embedding_specs);
|
|
657
|
+
return ret;
|
|
658
|
+
}
|
|
498
659
|
/**
|
|
499
660
|
* Flush staged entries and publish a new manifest.
|
|
500
661
|
*
|
|
@@ -508,6 +669,38 @@ export class Writer {
|
|
|
508
669
|
const ret = wasm.writer_commit(this.__wbg_ptr);
|
|
509
670
|
return ret;
|
|
510
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
* Producer policy only: TTL is evaluated on append, not by a timer.
|
|
674
|
+
* @param {number} flush_threshold
|
|
675
|
+
* @param {number} ttl_seconds
|
|
676
|
+
*/
|
|
677
|
+
configureHotShard(flush_threshold, ttl_seconds) {
|
|
678
|
+
const ret = wasm.writer_configureHotShard(this.__wbg_ptr, flush_threshold, ttl_seconds);
|
|
679
|
+
if (ret[1]) {
|
|
680
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Create a never-used key. Sample uses appendMany's tagged fields, no anchor.
|
|
685
|
+
* @param {any} key
|
|
686
|
+
* @param {object} sample
|
|
687
|
+
* @param {object | null} [embedding_specs]
|
|
688
|
+
* @returns {Promise<object>}
|
|
689
|
+
*/
|
|
690
|
+
createEntity(key, sample, embedding_specs) {
|
|
691
|
+
const ret = wasm.writer_createEntity(this.__wbg_ptr, key, sample, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
692
|
+
return ret;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Delete exactly a live revision, retaining its key and stable identity.
|
|
696
|
+
* @param {any} key
|
|
697
|
+
* @param {Uint8Array} expected
|
|
698
|
+
* @returns {Promise<object>}
|
|
699
|
+
*/
|
|
700
|
+
deleteEntity(key, expected) {
|
|
701
|
+
const ret = wasm.writer_deleteEntity(this.__wbg_ptr, key, expected);
|
|
702
|
+
return ret;
|
|
703
|
+
}
|
|
511
704
|
/**
|
|
512
705
|
* Tombstone records by anchor. Returns the new manifest hash.
|
|
513
706
|
* @param {BigUint64Array} anchors
|
|
@@ -522,6 +715,25 @@ export class Writer {
|
|
|
522
715
|
const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
523
716
|
return ret;
|
|
524
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* Enable one exact typed entity namespace: string, bytes or int.
|
|
720
|
+
* @param {string} key_kind
|
|
721
|
+
* @returns {Promise<void>}
|
|
722
|
+
*/
|
|
723
|
+
enableEntityKeys(key_kind) {
|
|
724
|
+
const ptr0 = passStringToWasm0(key_kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
725
|
+
const len0 = WASM_VECTOR_LEN;
|
|
726
|
+
const ret = wasm.writer_enableEntityKeys(this.__wbg_ptr, ptr0, len0);
|
|
727
|
+
return ret;
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Explicitly fold every pending hot field into cold Tracks in one publish.
|
|
731
|
+
* @returns {Promise<void>}
|
|
732
|
+
*/
|
|
733
|
+
flushHot() {
|
|
734
|
+
const ret = wasm.writer_flushHot(this.__wbg_ptr);
|
|
735
|
+
return ret;
|
|
736
|
+
}
|
|
525
737
|
/**
|
|
526
738
|
* Current manifest hash, base32.
|
|
527
739
|
* @returns {string}
|
|
@@ -566,6 +778,36 @@ export class Writer {
|
|
|
566
778
|
const ret = wasm.writer_open(ptr0, len0, backend);
|
|
567
779
|
return ret;
|
|
568
780
|
}
|
|
781
|
+
/**
|
|
782
|
+
* Publish prequantized fixed-stride records. Coordinates is
|
|
783
|
+
* {origin:[x,y,z],step:[x,y,z],units:string}; depth is 0..16.
|
|
784
|
+
* @param {string} field
|
|
785
|
+
* @param {any} anchor
|
|
786
|
+
* @param {any} coordinates
|
|
787
|
+
* @param {any} depth
|
|
788
|
+
* @param {Uint8Array} records
|
|
789
|
+
* @returns {Promise<string>}
|
|
790
|
+
*/
|
|
791
|
+
publishGeometryCells(field, anchor, coordinates, depth, records) {
|
|
792
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
793
|
+
const len0 = WASM_VECTOR_LEN;
|
|
794
|
+
const ret = wasm.writer_publishGeometryCells(this.__wbg_ptr, ptr0, len0, anchor, coordinates, depth, records);
|
|
795
|
+
return ret;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Each level is {errorGrid,vertices,triangles,bytes:Uint8Array}.
|
|
799
|
+
* @param {string} field
|
|
800
|
+
* @param {any} anchor
|
|
801
|
+
* @param {any} coordinates
|
|
802
|
+
* @param {Array<any>} levels
|
|
803
|
+
* @returns {Promise<string>}
|
|
804
|
+
*/
|
|
805
|
+
publishGeometryMesh(field, anchor, coordinates, levels) {
|
|
806
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
807
|
+
const len0 = WASM_VECTOR_LEN;
|
|
808
|
+
const ret = wasm.writer_publishGeometryMesh(this.__wbg_ptr, ptr0, len0, anchor, coordinates, levels);
|
|
809
|
+
return ret;
|
|
810
|
+
}
|
|
569
811
|
/**
|
|
570
812
|
* The ref this writer advances.
|
|
571
813
|
* @returns {string}
|
|
@@ -593,6 +835,30 @@ export class Writer {
|
|
|
593
835
|
const ret = wasm.writer_snapshot(this.__wbg_ptr, ptr0, len0);
|
|
594
836
|
return ret;
|
|
595
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
* Replace only a live revision, atomically hiding its old physical row.
|
|
840
|
+
* @param {any} key
|
|
841
|
+
* @param {object} sample
|
|
842
|
+
* @param {Uint8Array} expected
|
|
843
|
+
* @param {object | null} [embedding_specs]
|
|
844
|
+
* @returns {Promise<object>}
|
|
845
|
+
*/
|
|
846
|
+
supersedeEntity(key, sample, expected, embedding_specs) {
|
|
847
|
+
const ret = wasm.writer_supersedeEntity(this.__wbg_ptr, key, sample, expected, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
848
|
+
return ret;
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Create with no expected token, or replace/restore exactly that revision.
|
|
852
|
+
* @param {any} key
|
|
853
|
+
* @param {object} sample
|
|
854
|
+
* @param {Uint8Array | null} [expected]
|
|
855
|
+
* @param {object | null} [embedding_specs]
|
|
856
|
+
* @returns {Promise<object>}
|
|
857
|
+
*/
|
|
858
|
+
upsertEntity(key, sample, expected, embedding_specs) {
|
|
859
|
+
const ret = wasm.writer_upsertEntity(this.__wbg_ptr, key, sample, isLikeNone(expected) ? 0 : addToExternrefTable0(expected), isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
860
|
+
return ret;
|
|
861
|
+
}
|
|
596
862
|
}
|
|
597
863
|
if (Symbol.dispose) Writer.prototype[Symbol.dispose] = Writer.prototype.free;
|
|
598
864
|
|
|
@@ -1006,6 +1272,10 @@ function __wbg_get_imports() {
|
|
|
1006
1272
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1007
1273
|
return ret;
|
|
1008
1274
|
},
|
|
1275
|
+
__wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
|
|
1276
|
+
const ret = typeof(arg0) === 'string';
|
|
1277
|
+
return ret;
|
|
1278
|
+
},
|
|
1009
1279
|
__wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
|
|
1010
1280
|
const ret = arg0 === undefined;
|
|
1011
1281
|
return ret;
|
|
@@ -1062,6 +1332,10 @@ function __wbg_get_imports() {
|
|
|
1062
1332
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1063
1333
|
return ret;
|
|
1064
1334
|
}, arguments); },
|
|
1335
|
+
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
1336
|
+
const ret = arg0.crypto;
|
|
1337
|
+
return ret;
|
|
1338
|
+
},
|
|
1065
1339
|
__wbg_done_54b8da57023b7ed2: function(arg0) {
|
|
1066
1340
|
const ret = arg0.done;
|
|
1067
1341
|
return ret;
|
|
@@ -1073,6 +1347,17 @@ function __wbg_get_imports() {
|
|
|
1073
1347
|
__wbg_error_f085d7e62279b703: function(arg0) {
|
|
1074
1348
|
console.error(arg0);
|
|
1075
1349
|
},
|
|
1350
|
+
__wbg_from_fa561fa561dc8031: function(arg0) {
|
|
1351
|
+
const ret = Array.from(arg0);
|
|
1352
|
+
return ret;
|
|
1353
|
+
},
|
|
1354
|
+
__wbg_geometryreader_new: function(arg0) {
|
|
1355
|
+
const ret = GeometryReader.__wrap(arg0);
|
|
1356
|
+
return ret;
|
|
1357
|
+
},
|
|
1358
|
+
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1359
|
+
arg0.getRandomValues(arg1);
|
|
1360
|
+
}, arguments); },
|
|
1076
1361
|
__wbg_getReader_c8a7370df46b86f6: function(arg0) {
|
|
1077
1362
|
const ret = arg0.getReader();
|
|
1078
1363
|
return ret;
|
|
@@ -1200,6 +1485,10 @@ function __wbg_get_imports() {
|
|
|
1200
1485
|
const ret = Symbol.iterator;
|
|
1201
1486
|
return ret;
|
|
1202
1487
|
},
|
|
1488
|
+
__wbg_keys_682010b680c9b1f8: function(arg0) {
|
|
1489
|
+
const ret = Object.keys(arg0);
|
|
1490
|
+
return ret;
|
|
1491
|
+
},
|
|
1203
1492
|
__wbg_length_0adf2f3c5da33087: function(arg0) {
|
|
1204
1493
|
const ret = arg0.length;
|
|
1205
1494
|
return ret;
|
|
@@ -1244,6 +1533,10 @@ function __wbg_get_imports() {
|
|
|
1244
1533
|
const ret = arg0.length;
|
|
1245
1534
|
return ret;
|
|
1246
1535
|
},
|
|
1536
|
+
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1537
|
+
const ret = arg0.msCrypto;
|
|
1538
|
+
return ret;
|
|
1539
|
+
},
|
|
1247
1540
|
__wbg_new_02d162bc6cf02f60: function() {
|
|
1248
1541
|
const ret = new Object();
|
|
1249
1542
|
return ret;
|
|
@@ -1264,6 +1557,10 @@ function __wbg_get_imports() {
|
|
|
1264
1557
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1265
1558
|
return ret;
|
|
1266
1559
|
},
|
|
1560
|
+
__wbg_new_from_slice_7a419f18ea6472bf: function(arg0, arg1) {
|
|
1561
|
+
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
1562
|
+
return ret;
|
|
1563
|
+
},
|
|
1267
1564
|
__wbg_new_typed_c072c4ce9a2a0cdf: function(arg0, arg1) {
|
|
1268
1565
|
try {
|
|
1269
1566
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1310,6 +1607,10 @@ function __wbg_get_imports() {
|
|
|
1310
1607
|
const ret = new Int8Array(arg0 >>> 0);
|
|
1311
1608
|
return ret;
|
|
1312
1609
|
},
|
|
1610
|
+
__wbg_new_with_length_99887c91eae4abab: function(arg0) {
|
|
1611
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1612
|
+
return ret;
|
|
1613
|
+
},
|
|
1313
1614
|
__wbg_new_with_length_bab0ddb25b1a2cc7: function(arg0) {
|
|
1314
1615
|
const ret = new Int16Array(arg0 >>> 0);
|
|
1315
1616
|
return ret;
|
|
@@ -1330,6 +1631,10 @@ function __wbg_get_imports() {
|
|
|
1330
1631
|
const ret = arg0.next();
|
|
1331
1632
|
return ret;
|
|
1332
1633
|
}, arguments); },
|
|
1634
|
+
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1635
|
+
const ret = arg0.node;
|
|
1636
|
+
return ret;
|
|
1637
|
+
},
|
|
1333
1638
|
__wbg_now_81363d44c96dd239: function() {
|
|
1334
1639
|
const ret = Date.now();
|
|
1335
1640
|
return ret;
|
|
@@ -1338,6 +1643,10 @@ function __wbg_get_imports() {
|
|
|
1338
1643
|
const ret = arg0.ok;
|
|
1339
1644
|
return ret;
|
|
1340
1645
|
},
|
|
1646
|
+
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
1647
|
+
const ret = arg0.process;
|
|
1648
|
+
return ret;
|
|
1649
|
+
},
|
|
1341
1650
|
__wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
|
|
1342
1651
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1343
1652
|
},
|
|
@@ -1355,6 +1664,13 @@ function __wbg_get_imports() {
|
|
|
1355
1664
|
__wbg_queueMicrotask_b39ea83c7f01971a: function(arg0) {
|
|
1356
1665
|
queueMicrotask(arg0);
|
|
1357
1666
|
},
|
|
1667
|
+
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1668
|
+
arg0.randomFillSync(arg1);
|
|
1669
|
+
}, arguments); },
|
|
1670
|
+
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1671
|
+
const ret = module.require;
|
|
1672
|
+
return ret;
|
|
1673
|
+
}, arguments); },
|
|
1358
1674
|
__wbg_resolve_d17db9352f5a220e: function(arg0) {
|
|
1359
1675
|
const ret = Promise.resolve(arg0);
|
|
1360
1676
|
return ret;
|
|
@@ -1421,6 +1737,10 @@ function __wbg_get_imports() {
|
|
|
1421
1737
|
const ret = arg0.status;
|
|
1422
1738
|
return ret;
|
|
1423
1739
|
},
|
|
1740
|
+
__wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
|
|
1741
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1742
|
+
return ret;
|
|
1743
|
+
},
|
|
1424
1744
|
__wbg_then_837494e384b37459: function(arg0, arg1) {
|
|
1425
1745
|
const ret = arg0.then(arg1);
|
|
1426
1746
|
return ret;
|
|
@@ -1433,12 +1753,16 @@ function __wbg_get_imports() {
|
|
|
1433
1753
|
const ret = arg0.value;
|
|
1434
1754
|
return ret;
|
|
1435
1755
|
},
|
|
1756
|
+
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
1757
|
+
const ret = arg0.versions;
|
|
1758
|
+
return ret;
|
|
1759
|
+
},
|
|
1436
1760
|
__wbg_writer_new: function(arg0) {
|
|
1437
1761
|
const ret = Writer.__wrap(arg0);
|
|
1438
1762
|
return ret;
|
|
1439
1763
|
},
|
|
1440
1764
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1441
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1765
|
+
// 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
1766
|
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
1767
|
return ret;
|
|
1444
1768
|
},
|
|
@@ -1458,11 +1782,16 @@ function __wbg_get_imports() {
|
|
|
1458
1782
|
return ret;
|
|
1459
1783
|
},
|
|
1460
1784
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1785
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1786
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1787
|
+
return ret;
|
|
1788
|
+
},
|
|
1789
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1461
1790
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1462
1791
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1463
1792
|
return ret;
|
|
1464
1793
|
},
|
|
1465
|
-
|
|
1794
|
+
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
1466
1795
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1467
1796
|
const ret = BigInt.asUintN(64, arg0);
|
|
1468
1797
|
return ret;
|
|
@@ -1494,6 +1823,9 @@ function wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_a
|
|
|
1494
1823
|
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
1824
|
}
|
|
1496
1825
|
|
|
1826
|
+
const GeometryReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1827
|
+
? { register: () => {}, unregister: () => {} }
|
|
1828
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_geometryreader_free(ptr, 1));
|
|
1497
1829
|
const S3BackendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1498
1830
|
? { register: () => {}, unregister: () => {} }
|
|
1499
1831
|
: new FinalizationRegistry(ptr => wasm.__wbg_s3backend_free(ptr, 1));
|
package/web/dreamdb_bg.wasm
CHANGED
|
Binary file
|
package/web/dreamdb_bg.wasm.d.ts
CHANGED
|
@@ -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];
|