@layers/amba-core 4.0.8 → 4.0.10

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,26 +26,26 @@ export class AmbaCoreWasm {
26
26
  * `filter_json` is the JSON-encoded [`Filter`] tree or `null`/None.
27
27
  * Returns the bare count as a JS `number` value.
28
28
  */
29
- collectionsCount(collection: string, filter_json?: string | null): Promise<any>;
30
- collectionsDelete(collection: string, id: string): Promise<any>;
29
+ collectionsCount(collection: string, filter_json?: string | null, group_context?: string | null): Promise<any>;
30
+ collectionsDelete(collection: string, id: string, group_context?: string | null): Promise<any>;
31
31
  /**
32
32
  * Bulk soft-delete rows matching `filter_json` (a JSON-encoded
33
33
  * [`Filter`](crate::collections::Filter) tree). Returns
34
34
  * `{data: {deleted: N}}`.
35
35
  */
36
- collectionsDeleteWhere(collection: string, filter_json: string): Promise<any>;
36
+ collectionsDeleteWhere(collection: string, filter_json: string, group_context?: string | null): Promise<any>;
37
37
  collectionsFind(collection: string, options_json: string): Promise<any>;
38
38
  /**
39
39
  * Vector-search. `options_json` matches `NearestOptions`
40
40
  * (`{vector_field, query_vector, k, filter?}`).
41
41
  */
42
- collectionsFindNearest(collection: string, options_json: string): Promise<any>;
43
- collectionsFindOne(collection: string, id: string): Promise<any>;
44
- collectionsInsert(collection: string, row_json: string): Promise<any>;
42
+ collectionsFindNearest(collection: string, options_json: string, group_context?: string | null): Promise<any>;
43
+ collectionsFindOne(collection: string, id: string, group_context?: string | null): Promise<any>;
44
+ collectionsInsert(collection: string, row_json: string, group_context?: string | null): Promise<any>;
45
45
  /**
46
46
  * Restore a previously soft-deleted row by id. Returns the restored row.
47
47
  */
48
- collectionsRestore(collection: string, id: string): Promise<any>;
48
+ collectionsRestore(collection: string, id: string, group_context?: string | null): Promise<any>;
49
49
  /**
50
50
  * Run an ordered batch of writes as ONE atomic transaction.
51
51
  * `operations_json` is a JSON-encoded array of wire-shaped op objects
@@ -53,15 +53,15 @@ export class AmbaCoreWasm {
53
53
  * conflict_target?}]`). Resolves to the per-op results array; rejects with
54
54
  * the server's structured error (naming the failing op index) on rollback.
55
55
  */
56
- collectionsTransaction(operations_json: string): Promise<any>;
57
- collectionsUpdate(collection: string, id: string, set_json: string): Promise<any>;
56
+ collectionsTransaction(operations_json: string, group_context?: string | null): Promise<any>;
57
+ collectionsUpdate(collection: string, id: string, set_json: string, group_context?: string | null): Promise<any>;
58
58
  /**
59
59
  * Upsert a row. `options_json` is `{on_conflict, conflict_target}` —
60
60
  * `on_conflict` is `"ignore"` or `"update"`, `conflict_target` is the
61
61
  * array of unique-index columns to arbitrate on. Returns the resolved
62
62
  * row.
63
63
  */
64
- collectionsUpsert(collection: string, row_json: string, options_json: string): Promise<any>;
64
+ collectionsUpsert(collection: string, row_json: string, options_json: string, group_context?: string | null): Promise<any>;
65
65
  configFetch(): Promise<any>;
66
66
  contentCreateItem(channel: string, item_json: string): Promise<any>;
67
67
  contentGetItem(id: string): Promise<any>;
@@ -131,6 +131,14 @@ export class AmbaCoreWasm {
131
131
  groupsJoin(id: string): Promise<any>;
132
132
  groupsLeave(id: string): Promise<any>;
133
133
  groupsUpdate(id: string, patch_json: string): Promise<any>;
134
+ /**
135
+ * Hydrate a browser-persisted identity into the live Rust core.
136
+ *
137
+ * This is intentionally a synchronous init-time bridge: the web wrapper
138
+ * reads its project-namespaced localStorage snapshot, initializes a fresh
139
+ * core, then calls this before publishing the configured SDK instance.
140
+ */
141
+ hydrateIdentity(identity_json: string): void;
134
142
  /**
135
143
  * Initialize the SDK.
136
144
  *
@@ -208,27 +208,33 @@ export class AmbaCoreWasm {
208
208
  * Returns the bare count as a JS `number` value.
209
209
  * @param {string} collection
210
210
  * @param {string | null} [filter_json]
211
+ * @param {string | null} [group_context]
211
212
  * @returns {Promise<any>}
212
213
  */
213
- collectionsCount(collection, filter_json) {
214
+ collectionsCount(collection, filter_json, group_context) {
214
215
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
215
216
  const len0 = WASM_VECTOR_LEN;
216
217
  var ptr1 = isLikeNone(filter_json) ? 0 : passStringToWasm0(filter_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
217
218
  var len1 = WASM_VECTOR_LEN;
218
- const ret = wasm.ambacorewasm_collectionsCount(this.__wbg_ptr, ptr0, len0, ptr1, len1);
219
+ var ptr2 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
220
+ var len2 = WASM_VECTOR_LEN;
221
+ const ret = wasm.ambacorewasm_collectionsCount(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
219
222
  return takeObject(ret);
220
223
  }
221
224
  /**
222
225
  * @param {string} collection
223
226
  * @param {string} id
227
+ * @param {string | null} [group_context]
224
228
  * @returns {Promise<any>}
225
229
  */
226
- collectionsDelete(collection, id) {
230
+ collectionsDelete(collection, id, group_context) {
227
231
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
228
232
  const len0 = WASM_VECTOR_LEN;
229
233
  const ptr1 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
230
234
  const len1 = WASM_VECTOR_LEN;
231
- const ret = wasm.ambacorewasm_collectionsDelete(this.__wbg_ptr, ptr0, len0, ptr1, len1);
235
+ var ptr2 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
236
+ var len2 = WASM_VECTOR_LEN;
237
+ const ret = wasm.ambacorewasm_collectionsDelete(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
232
238
  return takeObject(ret);
233
239
  }
234
240
  /**
@@ -237,14 +243,17 @@ export class AmbaCoreWasm {
237
243
  * `{data: {deleted: N}}`.
238
244
  * @param {string} collection
239
245
  * @param {string} filter_json
246
+ * @param {string | null} [group_context]
240
247
  * @returns {Promise<any>}
241
248
  */
242
- collectionsDeleteWhere(collection, filter_json) {
249
+ collectionsDeleteWhere(collection, filter_json, group_context) {
243
250
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
244
251
  const len0 = WASM_VECTOR_LEN;
245
252
  const ptr1 = passStringToWasm0(filter_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
246
253
  const len1 = WASM_VECTOR_LEN;
247
- const ret = wasm.ambacorewasm_collectionsDeleteWhere(this.__wbg_ptr, ptr0, len0, ptr1, len1);
254
+ var ptr2 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
255
+ var len2 = WASM_VECTOR_LEN;
256
+ const ret = wasm.ambacorewasm_collectionsDeleteWhere(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
248
257
  return takeObject(ret);
249
258
  }
250
259
  /**
@@ -265,54 +274,66 @@ export class AmbaCoreWasm {
265
274
  * (`{vector_field, query_vector, k, filter?}`).
266
275
  * @param {string} collection
267
276
  * @param {string} options_json
277
+ * @param {string | null} [group_context]
268
278
  * @returns {Promise<any>}
269
279
  */
270
- collectionsFindNearest(collection, options_json) {
280
+ collectionsFindNearest(collection, options_json, group_context) {
271
281
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
272
282
  const len0 = WASM_VECTOR_LEN;
273
283
  const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
274
284
  const len1 = WASM_VECTOR_LEN;
275
- const ret = wasm.ambacorewasm_collectionsFindNearest(this.__wbg_ptr, ptr0, len0, ptr1, len1);
285
+ var ptr2 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
286
+ var len2 = WASM_VECTOR_LEN;
287
+ const ret = wasm.ambacorewasm_collectionsFindNearest(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
276
288
  return takeObject(ret);
277
289
  }
278
290
  /**
279
291
  * @param {string} collection
280
292
  * @param {string} id
293
+ * @param {string | null} [group_context]
281
294
  * @returns {Promise<any>}
282
295
  */
283
- collectionsFindOne(collection, id) {
296
+ collectionsFindOne(collection, id, group_context) {
284
297
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
285
298
  const len0 = WASM_VECTOR_LEN;
286
299
  const ptr1 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
287
300
  const len1 = WASM_VECTOR_LEN;
288
- const ret = wasm.ambacorewasm_collectionsFindOne(this.__wbg_ptr, ptr0, len0, ptr1, len1);
301
+ var ptr2 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
302
+ var len2 = WASM_VECTOR_LEN;
303
+ const ret = wasm.ambacorewasm_collectionsFindOne(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
289
304
  return takeObject(ret);
290
305
  }
291
306
  /**
292
307
  * @param {string} collection
293
308
  * @param {string} row_json
309
+ * @param {string | null} [group_context]
294
310
  * @returns {Promise<any>}
295
311
  */
296
- collectionsInsert(collection, row_json) {
312
+ collectionsInsert(collection, row_json, group_context) {
297
313
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
298
314
  const len0 = WASM_VECTOR_LEN;
299
315
  const ptr1 = passStringToWasm0(row_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
300
316
  const len1 = WASM_VECTOR_LEN;
301
- const ret = wasm.ambacorewasm_collectionsInsert(this.__wbg_ptr, ptr0, len0, ptr1, len1);
317
+ var ptr2 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
318
+ var len2 = WASM_VECTOR_LEN;
319
+ const ret = wasm.ambacorewasm_collectionsInsert(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
302
320
  return takeObject(ret);
303
321
  }
304
322
  /**
305
323
  * Restore a previously soft-deleted row by id. Returns the restored row.
306
324
  * @param {string} collection
307
325
  * @param {string} id
326
+ * @param {string | null} [group_context]
308
327
  * @returns {Promise<any>}
309
328
  */
310
- collectionsRestore(collection, id) {
329
+ collectionsRestore(collection, id, group_context) {
311
330
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
312
331
  const len0 = WASM_VECTOR_LEN;
313
332
  const ptr1 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
314
333
  const len1 = WASM_VECTOR_LEN;
315
- const ret = wasm.ambacorewasm_collectionsRestore(this.__wbg_ptr, ptr0, len0, ptr1, len1);
334
+ var ptr2 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
335
+ var len2 = WASM_VECTOR_LEN;
336
+ const ret = wasm.ambacorewasm_collectionsRestore(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
316
337
  return takeObject(ret);
317
338
  }
318
339
  /**
@@ -322,28 +343,34 @@ export class AmbaCoreWasm {
322
343
  * conflict_target?}]`). Resolves to the per-op results array; rejects with
323
344
  * the server's structured error (naming the failing op index) on rollback.
324
345
  * @param {string} operations_json
346
+ * @param {string | null} [group_context]
325
347
  * @returns {Promise<any>}
326
348
  */
327
- collectionsTransaction(operations_json) {
349
+ collectionsTransaction(operations_json, group_context) {
328
350
  const ptr0 = passStringToWasm0(operations_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
329
351
  const len0 = WASM_VECTOR_LEN;
330
- const ret = wasm.ambacorewasm_collectionsTransaction(this.__wbg_ptr, ptr0, len0);
352
+ var ptr1 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
353
+ var len1 = WASM_VECTOR_LEN;
354
+ const ret = wasm.ambacorewasm_collectionsTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1);
331
355
  return takeObject(ret);
332
356
  }
333
357
  /**
334
358
  * @param {string} collection
335
359
  * @param {string} id
336
360
  * @param {string} set_json
361
+ * @param {string | null} [group_context]
337
362
  * @returns {Promise<any>}
338
363
  */
339
- collectionsUpdate(collection, id, set_json) {
364
+ collectionsUpdate(collection, id, set_json, group_context) {
340
365
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
341
366
  const len0 = WASM_VECTOR_LEN;
342
367
  const ptr1 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
343
368
  const len1 = WASM_VECTOR_LEN;
344
369
  const ptr2 = passStringToWasm0(set_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
345
370
  const len2 = WASM_VECTOR_LEN;
346
- const ret = wasm.ambacorewasm_collectionsUpdate(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
371
+ var ptr3 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
372
+ var len3 = WASM_VECTOR_LEN;
373
+ const ret = wasm.ambacorewasm_collectionsUpdate(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
347
374
  return takeObject(ret);
348
375
  }
349
376
  /**
@@ -354,16 +381,19 @@ export class AmbaCoreWasm {
354
381
  * @param {string} collection
355
382
  * @param {string} row_json
356
383
  * @param {string} options_json
384
+ * @param {string | null} [group_context]
357
385
  * @returns {Promise<any>}
358
386
  */
359
- collectionsUpsert(collection, row_json, options_json) {
387
+ collectionsUpsert(collection, row_json, options_json, group_context) {
360
388
  const ptr0 = passStringToWasm0(collection, wasm.__wbindgen_export, wasm.__wbindgen_export2);
361
389
  const len0 = WASM_VECTOR_LEN;
362
390
  const ptr1 = passStringToWasm0(row_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
363
391
  const len1 = WASM_VECTOR_LEN;
364
392
  const ptr2 = passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
365
393
  const len2 = WASM_VECTOR_LEN;
366
- const ret = wasm.ambacorewasm_collectionsUpsert(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
394
+ var ptr3 = isLikeNone(group_context) ? 0 : passStringToWasm0(group_context, wasm.__wbindgen_export, wasm.__wbindgen_export2);
395
+ var len3 = WASM_VECTOR_LEN;
396
+ const ret = wasm.ambacorewasm_collectionsUpsert(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
367
397
  return takeObject(ret);
368
398
  }
369
399
  /**
@@ -754,6 +784,29 @@ export class AmbaCoreWasm {
754
784
  const ret = wasm.ambacorewasm_groupsUpdate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
755
785
  return takeObject(ret);
756
786
  }
787
+ /**
788
+ * Hydrate a browser-persisted identity into the live Rust core.
789
+ *
790
+ * This is intentionally a synchronous init-time bridge: the web wrapper
791
+ * reads its project-namespaced localStorage snapshot, initializes a fresh
792
+ * core, then calls this before publishing the configured SDK instance.
793
+ * @param {string} identity_json
794
+ */
795
+ hydrateIdentity(identity_json) {
796
+ try {
797
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
798
+ const ptr0 = passStringToWasm0(identity_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
799
+ const len0 = WASM_VECTOR_LEN;
800
+ wasm.ambacorewasm_hydrateIdentity(retptr, this.__wbg_ptr, ptr0, len0);
801
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
802
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
803
+ if (r1) {
804
+ throw takeObject(r0);
805
+ }
806
+ } finally {
807
+ wasm.__wbindgen_add_to_stack_pointer(16);
808
+ }
809
+ }
757
810
  /**
758
811
  * Initialize the SDK.
759
812
  *
@@ -1750,7 +1803,7 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
1750
1803
  const a = state0.a;
1751
1804
  state0.a = 0;
1752
1805
  try {
1753
- return __wasm_bindgen_func_elem_3271_144(a, state0.b, arg0, arg1);
1806
+ return __wasm_bindgen_func_elem_3293_145(a, state0.b, arg0, arg1);
1754
1807
  } finally {
1755
1808
  state0.a = a;
1756
1809
  }
@@ -1821,13 +1874,13 @@ export function __wbg_then_bd927500e8905df2(arg0, arg1, arg2) {
1821
1874
  return addHeapObject(ret);
1822
1875
  }
1823
1876
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1824
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 830, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1825
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3271);
1877
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 829, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1878
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3293);
1826
1879
  return addHeapObject(ret);
1827
1880
  }
1828
1881
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
1829
- // 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`.
1830
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3252);
1882
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 827, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1883
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3291);
1831
1884
  return addHeapObject(ret);
1832
1885
  }
1833
1886
  export function __wbindgen_cast_0000000000000003(arg0) {
@@ -1857,14 +1910,14 @@ export function __wbindgen_object_clone_ref(arg0) {
1857
1910
  export function __wbindgen_object_drop_ref(arg0) {
1858
1911
  takeObject(arg0);
1859
1912
  }
1860
- function __wasm_bindgen_func_elem_3271(arg0, arg1, arg2, arg3) {
1861
- wasm.__wasm_bindgen_func_elem_3271(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1913
+ function __wasm_bindgen_func_elem_3293(arg0, arg1, arg2, arg3) {
1914
+ wasm.__wasm_bindgen_func_elem_3293(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1862
1915
  }
1863
1916
 
1864
- function __wasm_bindgen_func_elem_3252(arg0, arg1, arg2) {
1917
+ function __wasm_bindgen_func_elem_3291(arg0, arg1, arg2) {
1865
1918
  try {
1866
1919
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1867
- wasm.__wasm_bindgen_func_elem_3252(retptr, arg0, arg1, addHeapObject(arg2));
1920
+ wasm.__wasm_bindgen_func_elem_3291(retptr, arg0, arg1, addHeapObject(arg2));
1868
1921
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1869
1922
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1870
1923
  if (r1) {
@@ -1875,8 +1928,8 @@ function __wasm_bindgen_func_elem_3252(arg0, arg1, arg2) {
1875
1928
  }
1876
1929
  }
1877
1930
 
1878
- function __wasm_bindgen_func_elem_3271_144(arg0, arg1, arg2, arg3) {
1879
- wasm.__wasm_bindgen_func_elem_3271_144(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1931
+ function __wasm_bindgen_func_elem_3293_145(arg0, arg1, arg2, arg3) {
1932
+ wasm.__wasm_bindgen_func_elem_3293_145(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1880
1933
  }
1881
1934
 
1882
1935
  const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -13,17 +13,17 @@ export const ambacorewasm_challengesClaim: (a: number, b: number, c: number) =>
13
13
  export const ambacorewasm_challengesGet: (a: number, b: number, c: number) => number;
14
14
  export const ambacorewasm_challengesGetActive: (a: number) => number;
15
15
  export const ambacorewasm_challengesGetProgress: (a: number, b: number, c: number) => number;
16
- export const ambacorewasm_collectionsCount: (a: number, b: number, c: number, d: number, e: number) => number;
17
- export const ambacorewasm_collectionsDelete: (a: number, b: number, c: number, d: number, e: number) => number;
18
- export const ambacorewasm_collectionsDeleteWhere: (a: number, b: number, c: number, d: number, e: number) => number;
16
+ export const ambacorewasm_collectionsCount: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
17
+ export const ambacorewasm_collectionsDelete: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
18
+ export const ambacorewasm_collectionsDeleteWhere: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
19
19
  export const ambacorewasm_collectionsFind: (a: number, b: number, c: number, d: number, e: number) => number;
20
- export const ambacorewasm_collectionsFindNearest: (a: number, b: number, c: number, d: number, e: number) => number;
21
- export const ambacorewasm_collectionsFindOne: (a: number, b: number, c: number, d: number, e: number) => number;
22
- export const ambacorewasm_collectionsInsert: (a: number, b: number, c: number, d: number, e: number) => number;
23
- export const ambacorewasm_collectionsRestore: (a: number, b: number, c: number, d: number, e: number) => number;
24
- export const ambacorewasm_collectionsTransaction: (a: number, b: number, c: number) => number;
25
- export const ambacorewasm_collectionsUpdate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
26
- export const ambacorewasm_collectionsUpsert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
20
+ export const ambacorewasm_collectionsFindNearest: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
21
+ export const ambacorewasm_collectionsFindOne: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
22
+ export const ambacorewasm_collectionsInsert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
23
+ export const ambacorewasm_collectionsRestore: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
24
+ export const ambacorewasm_collectionsTransaction: (a: number, b: number, c: number, d: number, e: number) => number;
25
+ export const ambacorewasm_collectionsUpdate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
26
+ export const ambacorewasm_collectionsUpsert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
27
27
  export const ambacorewasm_configFetch: (a: number) => number;
28
28
  export const ambacorewasm_contentCreateItem: (a: number, b: number, c: number, d: number, e: number) => number;
29
29
  export const ambacorewasm_contentGetItem: (a: number, b: number, c: number) => number;
@@ -61,6 +61,7 @@ export const ambacorewasm_groupsInvite: (a: number, b: number, c: number, d: num
61
61
  export const ambacorewasm_groupsJoin: (a: number, b: number, c: number) => number;
62
62
  export const ambacorewasm_groupsLeave: (a: number, b: number, c: number) => number;
63
63
  export const ambacorewasm_groupsUpdate: (a: number, b: number, c: number, d: number, e: number) => number;
64
+ export const ambacorewasm_hydrateIdentity: (a: number, b: number, c: number, d: number) => void;
64
65
  export const ambacorewasm_init: (a: number, b: number, c: number, d: number) => void;
65
66
  export const ambacorewasm_inventoryConsume: (a: number, b: number, c: number) => number;
66
67
  export const ambacorewasm_inventoryGetItem: (a: number, b: number, c: number) => number;
@@ -144,9 +145,9 @@ export const ambacorewasm_verifySmsOtp: (a: number, b: number, c: number, d: num
144
145
  export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
145
146
  export const ambacorewasm_xpGetBalance: (a: number) => number;
146
147
  export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
147
- export const __wasm_bindgen_func_elem_3271: (a: number, b: number, c: number, d: number) => void;
148
- export const __wasm_bindgen_func_elem_3252: (a: number, b: number, c: number, d: number) => void;
149
- export const __wasm_bindgen_func_elem_3271_144: (a: number, b: number, c: number, d: number) => void;
148
+ export const __wasm_bindgen_func_elem_3293: (a: number, b: number, c: number, d: number) => void;
149
+ export const __wasm_bindgen_func_elem_3291: (a: number, b: number, c: number, d: number) => void;
150
+ export const __wasm_bindgen_func_elem_3293_145: (a: number, b: number, c: number, d: number) => void;
150
151
  export const __wbindgen_export: (a: number, b: number) => number;
151
152
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
152
153
  export const __wbindgen_export3: (a: number) => void;