@dreamlake/dreamdb 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,6 +26,22 @@ export class S3Backend {
26
26
  const ret = wasm.s3backend_get(this.__wbg_ptr, ptr0, len0, _opts);
27
27
  return ret;
28
28
  }
29
+ /**
30
+ * Stream `path` without first aggregating the response in wasm memory.
31
+ *
32
+ * Returning the length beside the browser stream satisfies the optional
33
+ * `Backend.getStream` contract. Older injected backends that implement
34
+ * only [`Self::get`] remain compatible, but cannot claim bounded memory
35
+ * for historical oversized inline Track reads.
36
+ * @param {string} path
37
+ * @returns {Promise<any>}
38
+ */
39
+ getStream(path) {
40
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
41
+ const len0 = WASM_VECTOR_LEN;
42
+ const ret = wasm.s3backend_getStream(this.__wbg_ptr, ptr0, len0);
43
+ return ret;
44
+ }
29
45
  /**
30
46
  * List object paths under `prefix`. Stub (returns empty); the current
31
47
  * consumer read paths don't require listing.
@@ -87,6 +103,36 @@ export class Space {
87
103
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
88
104
  }
89
105
  }
106
+ /**
107
+ * The Space's human-readable description, or `undefined` when none is set.
108
+ *
109
+ * The read half of `Authoring.setDescription` (#129). It lives here rather
110
+ * than on `Authoring` because that type is `write-full` and so exists only
111
+ * in the Node build — a description is metadata a READER wants, and
112
+ * `Space` is the surface all three build targets share.
113
+ *
114
+ * `async` although `Dataset::description` is not: the value comes from the
115
+ * Dataset this Space opens lazily at the Manifest hash already pinned by
116
+ * this Space, so the first call may perform that open without re-resolving
117
+ * a source Ref.
118
+ *
119
+ * Deliberately routed through `Dataset::description` rather than read out
120
+ * of `self.manifest`'s registry, which would be shorter and would also
121
+ * serve the cached decoded Manifest. `Dataset::recover_meta` is not a prefix
122
+ * filter: it accepts the legacy `vortex.*` namespace as well as
123
+ * `dreamdb.*`, canonicalises, and drops structural keys. Matching
124
+ * `dreamdb.description` here would silently return nothing for a legacy
125
+ * Space whose description is on disk and readable from Rust — the exact
126
+ * defect `recover_meta`'s own comment records.
127
+ *
128
+ * `Option<String>` marshals to `string | undefined`, NOT to `""`. An unset
129
+ * description and an empty one stay distinguishable across the boundary.
130
+ * @returns {Promise<string | undefined>}
131
+ */
132
+ description() {
133
+ const ret = wasm.space_description(this.__wbg_ptr);
134
+ return ret;
135
+ }
90
136
  /**
91
137
  * Open a Space from a `.../refs/<name>` or `.../manifests/<hash>` URI,
92
138
  * resolving the ref (if any) and loading the manifest. If `backend` is
@@ -236,6 +282,30 @@ export class Space {
236
282
  const ret = wasm.space_queryVector(this.__wbg_ptr, ptr0, len0, ptr1, len1, opts);
237
283
  return ret;
238
284
  }
285
+ /**
286
+ * Read an Event/Unbucketed or Continuous/TimeBatch typed-array field as
287
+ * `Map<anchorString, {values, shape, ...}>`.
288
+ * @param {string} field
289
+ * @returns {Promise<Map<any, any>>}
290
+ */
291
+ readArrayColumn(field) {
292
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
293
+ const len0 = WASM_VECTOR_LEN;
294
+ const ret = wasm.space_readArrayColumn(this.__wbg_ptr, ptr0, len0);
295
+ return ret;
296
+ }
297
+ /**
298
+ * Read a typed-array Constant and decode it to a JS TypedArray plus its
299
+ * authoritative shape and semantic metadata.
300
+ * @param {string} field
301
+ * @returns {Promise<any>}
302
+ */
303
+ readArrayConstant(field) {
304
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
305
+ const len0 = WASM_VECTOR_LEN;
306
+ const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
307
+ return ret;
308
+ }
239
309
  /**
240
310
  * Read a scalar track as a `Map<anchorString, value>`. Single-anchor
241
311
  * entries resolve from the track index; multi-anchor entries fetch (and
@@ -248,6 +318,22 @@ export class Space {
248
318
  const ret = wasm.space_readScalarColumn(this.__wbg_ptr, track, _opts);
249
319
  return ret;
250
320
  }
321
+ /**
322
+ * Fetch verified initialization and complete Fragments overlapping one
323
+ * item-relative half-open range. This materializes the selected bytes; it
324
+ * is not a streaming API.
325
+ * @param {string} field
326
+ * @param {Uint8Array} item_key
327
+ * @param {any} relative_start_ns
328
+ * @param {any} relative_end_ns
329
+ * @returns {Promise<any>}
330
+ */
331
+ readVideoItemRange(field, item_key, relative_start_ns, relative_end_ns) {
332
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
333
+ const len0 = WASM_VECTOR_LEN;
334
+ const ret = wasm.space_readVideoItemRange(this.__wbg_ptr, ptr0, len0, item_key, relative_start_ns, relative_end_ns);
335
+ return ret;
336
+ }
251
337
  /**
252
338
  * Fetch a track object and return its `object_index` (array of CBOR
253
339
  * entries). Inline indexes only — paged indexes are not resolved (matching
@@ -259,6 +345,40 @@ export class Space {
259
345
  const ret = wasm.space_resolveObjectIndex(this.__wbg_ptr, track);
260
346
  return ret;
261
347
  }
348
+ /**
349
+ * Semantic-cache capacity in bytes (spec/0006 §3.6). Default 1 GiB.
350
+ * @returns {Promise<number>}
351
+ */
352
+ semanticCacheCapacity() {
353
+ const ret = wasm.space_semanticCacheCapacity(this.__wbg_ptr);
354
+ return ret;
355
+ }
356
+ /**
357
+ * Semantic-cache occupancy as `{ entries, bytesUsed, maxBytes }`.
358
+ * @returns {Promise<object>}
359
+ */
360
+ semanticCacheStats() {
361
+ const ret = wasm.space_semanticCacheStats(this.__wbg_ptr);
362
+ return ret;
363
+ }
364
+ /**
365
+ * Set the semantic-cache capacity in bytes, evicting down to it before
366
+ * returning. Returns the bytes evicted. `0` disables the cache.
367
+ *
368
+ * An index whose accounted size exceeds the cap is not cached and is
369
+ * re-fetched on every query, reported honestly as a miss. The default is
370
+ * not raised globally to suit one corpus.
371
+ *
372
+ * Sizing is workload- and architecture-dependent, and figures measured on
373
+ * a 64-bit host do NOT carry over here: `usize` is 32 bits on `wasm32`, so
374
+ * every offset and length inside a decoded index accounts differently.
375
+ * @param {number} n_bytes
376
+ * @returns {Promise<number>}
377
+ */
378
+ setSemanticCacheCapacity(n_bytes) {
379
+ const ret = wasm.space_setSemanticCacheCapacity(this.__wbg_ptr, n_bytes);
380
+ return ret;
381
+ }
262
382
  /**
263
383
  * Base32 hash of the manifest's first timeline.
264
384
  * @returns {string}
@@ -290,7 +410,10 @@ export class Space {
290
410
  const ptr0 = passStringToWasm0(key_or_modality, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
291
411
  const len0 = WASM_VECTOR_LEN;
292
412
  const ret = wasm.space_trackFor(this.__wbg_ptr, ptr0, len0);
293
- return ret;
413
+ if (ret[2]) {
414
+ throw takeFromExternrefTable0(ret[1]);
415
+ }
416
+ return takeFromExternrefTable0(ret[0]);
294
417
  }
295
418
  /**
296
419
  * List resolved tracks from this manifest.
@@ -298,6 +421,35 @@ export class Space {
298
421
  */
299
422
  tracks() {
300
423
  const ret = wasm.space_tracks(this.__wbg_ptr);
424
+ if (ret[2]) {
425
+ throw takeFromExternrefTable0(ret[1]);
426
+ }
427
+ return takeFromExternrefTable0(ret[0]);
428
+ }
429
+ /**
430
+ * Look up the logical VideoItem containing one absolute Timeline anchor
431
+ * without fetching media. Exact nanosecond values are returned as bigint.
432
+ * @param {string} field
433
+ * @param {any} anchor_ns
434
+ * @returns {Promise<any>}
435
+ */
436
+ videoItemAt(field, anchor_ns) {
437
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
438
+ const len0 = WASM_VECTOR_LEN;
439
+ const ret = wasm.space_videoItemAt(this.__wbg_ptr, ptr0, len0, anchor_ns);
440
+ return ret;
441
+ }
442
+ /**
443
+ * Look up one logical VideoItem by its stable opaque key without fetching
444
+ * initialization or Fragment bytes.
445
+ * @param {string} field
446
+ * @param {Uint8Array} item_key
447
+ * @returns {Promise<any>}
448
+ */
449
+ videoItemByKey(field, item_key) {
450
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
451
+ const len0 = WASM_VECTOR_LEN;
452
+ const ret = wasm.space_videoItemByKey(this.__wbg_ptr, ptr0, len0, item_key);
301
453
  return ret;
302
454
  }
303
455
  }
@@ -747,6 +899,24 @@ export function timeBucket(t_start, duration) {
747
899
  return BigInt.asUintN(64, ret[0]);
748
900
  }
749
901
 
902
+ /**
903
+ * Decode one spec/0025 item using the same declaration and payload path as
904
+ * `Space.readArrayColumn`, without requiring storage IO. This is the SDK's
905
+ * pure conformance entry point for language-neutral vectors.
906
+ * @param {any} item_type
907
+ * @param {Uint8Array} payload
908
+ * @returns {any}
909
+ */
910
+ export function typedArrayDecode(item_type, payload) {
911
+ const ptr0 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
912
+ const len0 = WASM_VECTOR_LEN;
913
+ const ret = wasm.typedArrayDecode(item_type, ptr0, len0);
914
+ if (ret[2]) {
915
+ throw takeFromExternrefTable0(ret[1]);
916
+ }
917
+ return takeFromExternrefTable0(ret[0]);
918
+ }
919
+
750
920
  /**
751
921
  * Package version — useful for consumers to confirm which build is loaded.
752
922
  * @returns {string}
@@ -867,6 +1037,10 @@ export function __wbg_arrayBuffer_cb5d4748b5f3cad5() { return handleError(functi
867
1037
  const ret = arg0.arrayBuffer();
868
1038
  return ret;
869
1039
  }, arguments); }
1040
+ export function __wbg_body_acbb5ec9cd18657f(arg0) {
1041
+ const ret = arg0.body;
1042
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1043
+ }
870
1044
  export function __wbg_call_084ee3e860ee9f92() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
871
1045
  const ret = arg0.call(arg1, arg2, arg3, arg4);
872
1046
  return ret;
@@ -879,6 +1053,10 @@ export function __wbg_call_dfde26266607c996() { return handleError(function (arg
879
1053
  const ret = arg0.call(arg1, arg2);
880
1054
  return ret;
881
1055
  }, arguments); }
1056
+ export function __wbg_call_faa0a261f288f846() { return handleError(function (arg0, arg1, arg2, arg3) {
1057
+ const ret = arg0.call(arg1, arg2, arg3);
1058
+ return ret;
1059
+ }, arguments); }
882
1060
  export function __wbg_done_54b8da57023b7ed2(arg0) {
883
1061
  const ret = arg0.done;
884
1062
  return ret;
@@ -890,6 +1068,17 @@ export function __wbg_entries_564a7e8b1e54ede5(arg0) {
890
1068
  export function __wbg_error_f085d7e62279b703(arg0) {
891
1069
  console.error(arg0);
892
1070
  }
1071
+ export function __wbg_getReader_c8a7370df46b86f6(arg0) {
1072
+ const ret = arg0.getReader();
1073
+ return ret;
1074
+ }
1075
+ export function __wbg_get_0b3f3bb74d16b7ad() { return handleError(function (arg0, arg1, arg2, arg3) {
1076
+ const ret = arg1.get(getStringFromWasm0(arg2, arg3));
1077
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1078
+ var len1 = WASM_VECTOR_LEN;
1079
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1080
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1081
+ }, arguments); }
893
1082
  export function __wbg_get_3e9a707ab7d352eb() { return handleError(function (arg0, arg1) {
894
1083
  const ret = Reflect.get(arg0, arg1);
895
1084
  return ret;
@@ -906,6 +1095,10 @@ export function __wbg_get_unchecked_1dfe6d05ad91d9b7(arg0, arg1) {
906
1095
  const ret = arg0[arg1 >>> 0];
907
1096
  return ret;
908
1097
  }
1098
+ export function __wbg_headers_18f39f24d3837dc1(arg0) {
1099
+ const ret = arg0.headers;
1100
+ return ret;
1101
+ }
909
1102
  export function __wbg_headers_4cfb0c75793d7a8d(arg0) {
910
1103
  const ret = arg0.headers;
911
1104
  return ret;
@@ -960,6 +1153,16 @@ export function __wbg_instanceof_Promise_09012cfa9708520a(arg0) {
960
1153
  const ret = result;
961
1154
  return ret;
962
1155
  }
1156
+ export function __wbg_instanceof_ReadableStream_9a3d74fc91aa9c55(arg0) {
1157
+ let result;
1158
+ try {
1159
+ result = arg0 instanceof ReadableStream;
1160
+ } catch (_) {
1161
+ result = false;
1162
+ }
1163
+ const ret = result;
1164
+ return ret;
1165
+ }
963
1166
  export function __wbg_instanceof_Response_ecfc823e8fb354e2(arg0) {
964
1167
  let result;
965
1168
  try {
@@ -992,18 +1195,50 @@ export function __wbg_iterator_1441b47f341dc34f() {
992
1195
  const ret = Symbol.iterator;
993
1196
  return ret;
994
1197
  }
1198
+ export function __wbg_length_0adf2f3c5da33087(arg0) {
1199
+ const ret = arg0.length;
1200
+ return ret;
1201
+ }
995
1202
  export function __wbg_length_13e61aa81636ec86(arg0) {
996
1203
  const ret = arg0.length;
997
1204
  return ret;
998
1205
  }
1206
+ export function __wbg_length_1c094f6c75753f5f(arg0) {
1207
+ const ret = arg0.length;
1208
+ return ret;
1209
+ }
999
1210
  export function __wbg_length_2591a0f4f659a55c(arg0) {
1000
1211
  const ret = arg0.length;
1001
1212
  return ret;
1002
1213
  }
1214
+ export function __wbg_length_3a1b902b6cde9e2c(arg0) {
1215
+ const ret = arg0.length;
1216
+ return ret;
1217
+ }
1003
1218
  export function __wbg_length_56fcd3e2b7e0299d(arg0) {
1004
1219
  const ret = arg0.length;
1005
1220
  return ret;
1006
1221
  }
1222
+ export function __wbg_length_911750a64e2f4f88(arg0) {
1223
+ const ret = arg0.length;
1224
+ return ret;
1225
+ }
1226
+ export function __wbg_length_a4365e969857a2c9(arg0) {
1227
+ const ret = arg0.length;
1228
+ return ret;
1229
+ }
1230
+ export function __wbg_length_c7ce929623e7a230(arg0) {
1231
+ const ret = arg0.length;
1232
+ return ret;
1233
+ }
1234
+ export function __wbg_length_dc239675ea61db1b(arg0) {
1235
+ const ret = arg0.length;
1236
+ return ret;
1237
+ }
1238
+ export function __wbg_length_efe2271ed86b56cc(arg0) {
1239
+ const ret = arg0.length;
1240
+ return ret;
1241
+ }
1007
1242
  export function __wbg_new_02d162bc6cf02f60() {
1008
1243
  const ret = new Object();
1009
1244
  return ret;
@@ -1042,6 +1277,42 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
1042
1277
  state0.a = 0;
1043
1278
  }
1044
1279
  }
1280
+ export function __wbg_new_with_length_1278c16a5c5b497f(arg0) {
1281
+ const ret = new Float64Array(arg0 >>> 0);
1282
+ return ret;
1283
+ }
1284
+ export function __wbg_new_with_length_22e34f6824b87f53(arg0) {
1285
+ const ret = new BigUint64Array(arg0 >>> 0);
1286
+ return ret;
1287
+ }
1288
+ export function __wbg_new_with_length_58dc420af34edb59(arg0) {
1289
+ const ret = new Float32Array(arg0 >>> 0);
1290
+ return ret;
1291
+ }
1292
+ export function __wbg_new_with_length_662ce8fda8456c6c(arg0) {
1293
+ const ret = new Uint16Array(arg0 >>> 0);
1294
+ return ret;
1295
+ }
1296
+ export function __wbg_new_with_length_6ab0b677ba8ffdc4(arg0) {
1297
+ const ret = new BigInt64Array(arg0 >>> 0);
1298
+ return ret;
1299
+ }
1300
+ export function __wbg_new_with_length_78398b95fa59feae(arg0) {
1301
+ const ret = new Int32Array(arg0 >>> 0);
1302
+ return ret;
1303
+ }
1304
+ export function __wbg_new_with_length_96785292f4aab914(arg0) {
1305
+ const ret = new Int8Array(arg0 >>> 0);
1306
+ return ret;
1307
+ }
1308
+ export function __wbg_new_with_length_bab0ddb25b1a2cc7(arg0) {
1309
+ const ret = new Int16Array(arg0 >>> 0);
1310
+ return ret;
1311
+ }
1312
+ export function __wbg_new_with_length_f128f2c16ad4f906(arg0) {
1313
+ const ret = new Uint32Array(arg0 >>> 0);
1314
+ return ret;
1315
+ }
1045
1316
  export function __wbg_new_with_str_and_init_ffe9977c986ea039() { return handleError(function (arg0, arg1, arg2) {
1046
1317
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1047
1318
  return ret;
@@ -1083,10 +1354,34 @@ export function __wbg_resolve_d17db9352f5a220e(arg0) {
1083
1354
  const ret = Promise.resolve(arg0);
1084
1355
  return ret;
1085
1356
  }
1357
+ export function __wbg_set_517261bc500078e6(arg0, arg1, arg2) {
1358
+ arg0.set(getArrayI16FromWasm0(arg1, arg2));
1359
+ }
1360
+ export function __wbg_set_5bffd0c00e65c280(arg0, arg1, arg2) {
1361
+ arg0.set(getArrayF64FromWasm0(arg1, arg2));
1362
+ }
1363
+ export function __wbg_set_5d860a0c0949a838(arg0, arg1, arg2) {
1364
+ arg0.set(getArrayF32FromWasm0(arg1, arg2));
1365
+ }
1366
+ export function __wbg_set_8c4bf3c22a64e1df(arg0, arg1, arg2) {
1367
+ arg0.set(getArrayI8FromWasm0(arg1, arg2));
1368
+ }
1369
+ export function __wbg_set_90474108ec025ba3(arg0, arg1, arg2) {
1370
+ arg0.set(getArrayU32FromWasm0(arg1, arg2));
1371
+ }
1372
+ export function __wbg_set_943e5a384dda27eb(arg0, arg1, arg2) {
1373
+ arg0.set(getArrayI32FromWasm0(arg1, arg2));
1374
+ }
1086
1375
  export function __wbg_set_a0e911be3da02782() { return handleError(function (arg0, arg1, arg2) {
1087
1376
  const ret = Reflect.set(arg0, arg1, arg2);
1088
1377
  return ret;
1089
1378
  }, arguments); }
1379
+ export function __wbg_set_c9acd362199fe8b8(arg0, arg1, arg2) {
1380
+ arg0.set(getArrayI64FromWasm0(arg1, arg2));
1381
+ }
1382
+ export function __wbg_set_d4121491cc61da07(arg0, arg1, arg2) {
1383
+ arg0.set(getArrayU16FromWasm0(arg1, arg2));
1384
+ }
1090
1385
  export function __wbg_set_d57e5106f0271787() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1091
1386
  arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1092
1387
  }, arguments); }
@@ -1094,6 +1389,9 @@ export function __wbg_set_facb7a5914e0fa39(arg0, arg1, arg2) {
1094
1389
  const ret = arg0.set(arg1, arg2);
1095
1390
  return ret;
1096
1391
  }
1392
+ export function __wbg_set_fb3115a057014152(arg0, arg1, arg2) {
1393
+ arg0.set(getArrayU64FromWasm0(arg1, arg2));
1394
+ }
1097
1395
  export function __wbg_space_new(arg0) {
1098
1396
  const ret = Space.__wrap(arg0);
1099
1397
  return ret;
@@ -1135,7 +1433,7 @@ export function __wbg_writer_new(arg0) {
1135
1433
  return ret;
1136
1434
  }
1137
1435
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1138
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 488, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
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`.
1139
1437
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
1140
1438
  return ret;
1141
1439
  }
@@ -1274,11 +1572,59 @@ function getArrayF32FromWasm0(ptr, len) {
1274
1572
  return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1275
1573
  }
1276
1574
 
1575
+ function getArrayF64FromWasm0(ptr, len) {
1576
+ ptr = ptr >>> 0;
1577
+ return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1578
+ }
1579
+
1580
+ function getArrayI16FromWasm0(ptr, len) {
1581
+ ptr = ptr >>> 0;
1582
+ return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1583
+ }
1584
+
1585
+ function getArrayI32FromWasm0(ptr, len) {
1586
+ ptr = ptr >>> 0;
1587
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1588
+ }
1589
+
1590
+ function getArrayI64FromWasm0(ptr, len) {
1591
+ ptr = ptr >>> 0;
1592
+ return getBigInt64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1593
+ }
1594
+
1595
+ function getArrayI8FromWasm0(ptr, len) {
1596
+ ptr = ptr >>> 0;
1597
+ return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1598
+ }
1599
+
1600
+ function getArrayU16FromWasm0(ptr, len) {
1601
+ ptr = ptr >>> 0;
1602
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1603
+ }
1604
+
1605
+ function getArrayU32FromWasm0(ptr, len) {
1606
+ ptr = ptr >>> 0;
1607
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1608
+ }
1609
+
1610
+ function getArrayU64FromWasm0(ptr, len) {
1611
+ ptr = ptr >>> 0;
1612
+ return getBigUint64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1613
+ }
1614
+
1277
1615
  function getArrayU8FromWasm0(ptr, len) {
1278
1616
  ptr = ptr >>> 0;
1279
1617
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1280
1618
  }
1281
1619
 
1620
+ let cachedBigInt64ArrayMemory0 = null;
1621
+ function getBigInt64ArrayMemory0() {
1622
+ if (cachedBigInt64ArrayMemory0 === null || cachedBigInt64ArrayMemory0.byteLength === 0) {
1623
+ cachedBigInt64ArrayMemory0 = new BigInt64Array(wasm.memory.buffer);
1624
+ }
1625
+ return cachedBigInt64ArrayMemory0;
1626
+ }
1627
+
1282
1628
  let cachedBigUint64ArrayMemory0 = null;
1283
1629
  function getBigUint64ArrayMemory0() {
1284
1630
  if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
@@ -1303,10 +1649,58 @@ function getFloat32ArrayMemory0() {
1303
1649
  return cachedFloat32ArrayMemory0;
1304
1650
  }
1305
1651
 
1652
+ let cachedFloat64ArrayMemory0 = null;
1653
+ function getFloat64ArrayMemory0() {
1654
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
1655
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
1656
+ }
1657
+ return cachedFloat64ArrayMemory0;
1658
+ }
1659
+
1660
+ let cachedInt16ArrayMemory0 = null;
1661
+ function getInt16ArrayMemory0() {
1662
+ if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
1663
+ cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
1664
+ }
1665
+ return cachedInt16ArrayMemory0;
1666
+ }
1667
+
1668
+ let cachedInt32ArrayMemory0 = null;
1669
+ function getInt32ArrayMemory0() {
1670
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
1671
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
1672
+ }
1673
+ return cachedInt32ArrayMemory0;
1674
+ }
1675
+
1676
+ let cachedInt8ArrayMemory0 = null;
1677
+ function getInt8ArrayMemory0() {
1678
+ if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
1679
+ cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
1680
+ }
1681
+ return cachedInt8ArrayMemory0;
1682
+ }
1683
+
1306
1684
  function getStringFromWasm0(ptr, len) {
1307
1685
  return decodeText(ptr >>> 0, len);
1308
1686
  }
1309
1687
 
1688
+ let cachedUint16ArrayMemory0 = null;
1689
+ function getUint16ArrayMemory0() {
1690
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
1691
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
1692
+ }
1693
+ return cachedUint16ArrayMemory0;
1694
+ }
1695
+
1696
+ let cachedUint32ArrayMemory0 = null;
1697
+ function getUint32ArrayMemory0() {
1698
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
1699
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
1700
+ }
1701
+ return cachedUint32ArrayMemory0;
1702
+ }
1703
+
1310
1704
  let cachedUint8ArrayMemory0 = null;
1311
1705
  function getUint8ArrayMemory0() {
1312
1706
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
Binary file
@@ -14,9 +14,11 @@ export const multihashBase32: (a: number, b: number) => [number, number];
14
14
  export const multihashHex: (a: number, b: number) => [number, number];
15
15
  export const rangeHeader: (a: bigint, b: bigint) => [number, number, number, number];
16
16
  export const s3backend_get: (a: number, b: number, c: number, d: any) => any;
17
+ export const s3backend_getStream: (a: number, b: number, c: number) => any;
17
18
  export const s3backend_list: (a: number, b: number, c: number) => any;
18
19
  export const s3backend_new: (a: number, b: number) => number;
19
20
  export const space_connectorBase: (a: number) => [number, number];
21
+ export const space_description: (a: number) => any;
20
22
  export const space_fromUri: (a: number, b: number, c: any) => any;
21
23
  export const space_history: (a: number, b: number) => any;
22
24
  export const space_manifestHash: (a: number) => [number, number];
@@ -24,15 +26,24 @@ export const space_queryHybrid: (a: number, b: number, c: number, d: any) => any
24
26
  export const space_queryScalar: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
25
27
  export const space_queryText: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
26
28
  export const space_queryVector: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
29
+ export const space_readArrayColumn: (a: number, b: number, c: number) => any;
30
+ export const space_readArrayConstant: (a: number, b: number, c: number) => any;
27
31
  export const space_readScalarColumn: (a: number, b: any, c: any) => any;
32
+ export const space_readVideoItemRange: (a: number, b: number, c: number, d: any, e: any, f: any) => any;
28
33
  export const space_resolveObjectIndex: (a: number, b: any) => any;
34
+ export const space_semanticCacheCapacity: (a: number) => any;
35
+ export const space_semanticCacheStats: (a: number) => any;
36
+ export const space_setSemanticCacheCapacity: (a: number, b: number) => any;
29
37
  export const space_timelineId: (a: number) => [number, number, number, number];
30
- export const space_trackFor: (a: number, b: number, c: number) => any;
31
- export const space_tracks: (a: number) => any;
38
+ export const space_trackFor: (a: number, b: number, c: number) => [number, number, number];
39
+ export const space_tracks: (a: number) => [number, number, number];
40
+ export const space_videoItemAt: (a: number, b: number, c: number, d: any) => any;
41
+ export const space_videoItemByKey: (a: number, b: number, c: number, d: any) => any;
32
42
  export const spatialKeyRoundTrip: (a: number, b: number) => [number, number, number, number];
33
43
  export const timeAnchorFromHex: (a: number, b: number) => [bigint, number, number];
34
44
  export const timeAnchorHex: (a: bigint) => [number, number];
35
45
  export const timeBucket: (a: bigint, b: number, c: number) => [bigint, number, number];
46
+ export const typedArrayDecode: (a: any, b: number, c: number) => [number, number, number];
36
47
  export const version: () => [number, number];
37
48
  export const writer_appendMany: (a: number, b: any) => any;
38
49
  export const writer_commit: (a: number) => any;