@xmtp/wasm-bindings 1.3.1 → 1.3.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.
@@ -216,6 +216,16 @@ function debugString(val) {
216
216
  return className;
217
217
  }
218
218
 
219
+ function passArrayJsValueToWasm0(array, malloc) {
220
+ const ptr = malloc(array.length * 4, 4) >>> 0;
221
+ for (let i = 0; i < array.length; i++) {
222
+ const add = addToExternrefTable0(array[i]);
223
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
224
+ }
225
+ WASM_VECTOR_LEN = array.length;
226
+ return ptr;
227
+ }
228
+
219
229
  function takeFromExternrefTable0(idx) {
220
230
  const value = wasm.__wbindgen_export_4.get(idx);
221
231
  wasm.__externref_table_dealloc(idx);
@@ -227,46 +237,6 @@ function _assertClass(instance, klass) {
227
237
  throw new Error(`expected instance of ${klass.name}`);
228
238
  }
229
239
  }
230
- /**
231
- * @param {string} host
232
- * @param {string} inbox_id
233
- * @param {Identifier} account_identifier
234
- * @param {string | null} [db_path]
235
- * @param {Uint8Array | null} [encryption_key]
236
- * @param {string | null} [device_sync_server_url]
237
- * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
238
- * @param {LogOptions | null} [log_options]
239
- * @param {boolean | null} [allow_offline]
240
- * @param {boolean | null} [disable_events]
241
- * @returns {Promise<Client>}
242
- */
243
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events) {
244
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
- const len0 = WASM_VECTOR_LEN;
246
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
247
- const len1 = WASM_VECTOR_LEN;
248
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
249
- var len2 = WASM_VECTOR_LEN;
250
- var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
251
- var len3 = WASM_VECTOR_LEN;
252
- let ptr4 = 0;
253
- if (!isLikeNone(log_options)) {
254
- _assertClass(log_options, LogOptions);
255
- ptr4 = log_options.__destroy_into_raw();
256
- }
257
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0);
258
- return ret;
259
- }
260
-
261
- function passArrayJsValueToWasm0(array, malloc) {
262
- const ptr = malloc(array.length * 4, 4) >>> 0;
263
- for (let i = 0; i < array.length; i++) {
264
- const add = addToExternrefTable0(array[i]);
265
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
266
- }
267
- WASM_VECTOR_LEN = array.length;
268
- return ptr;
269
- }
270
240
 
271
241
  function passArray8ToWasm0(arg, malloc) {
272
242
  const ptr = malloc(arg.length * 1, 1) >>> 0;
@@ -274,58 +244,6 @@ function passArray8ToWasm0(arg, malloc) {
274
244
  WASM_VECTOR_LEN = arg.length;
275
245
  return ptr;
276
246
  }
277
- /**
278
- * @param {MultiRemoteAttachment} multiRemoteAttachment
279
- * @returns {Uint8Array}
280
- */
281
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
282
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
283
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
284
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
285
- if (ret[2]) {
286
- throw takeFromExternrefTable0(ret[1]);
287
- }
288
- return takeFromExternrefTable0(ret[0]);
289
- }
290
-
291
- /**
292
- * @param {Uint8Array} bytes
293
- * @returns {MultiRemoteAttachment}
294
- */
295
- export function decodeMultiRemoteAttachment(bytes) {
296
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
297
- if (ret[2]) {
298
- throw takeFromExternrefTable0(ret[1]);
299
- }
300
- return MultiRemoteAttachment.__wrap(ret[0]);
301
- }
302
-
303
- /**
304
- * @param {Reaction} reaction
305
- * @returns {Uint8Array}
306
- */
307
- export function encodeReaction(reaction) {
308
- _assertClass(reaction, Reaction);
309
- var ptr0 = reaction.__destroy_into_raw();
310
- const ret = wasm.encodeReaction(ptr0);
311
- if (ret[2]) {
312
- throw takeFromExternrefTable0(ret[1]);
313
- }
314
- return takeFromExternrefTable0(ret[0]);
315
- }
316
-
317
- /**
318
- * @param {Uint8Array} bytes
319
- * @returns {Reaction}
320
- */
321
- export function decodeReaction(bytes) {
322
- const ret = wasm.decodeReaction(bytes);
323
- if (ret[2]) {
324
- throw takeFromExternrefTable0(ret[1]);
325
- }
326
- return Reaction.__wrap(ret[0]);
327
- }
328
-
329
247
  /**
330
248
  * @param {string} host
331
249
  * @param {Identifier} accountIdentifier
@@ -420,20 +338,114 @@ export function applySignatureRequest(host, signature_request) {
420
338
  return ret;
421
339
  }
422
340
 
423
- function __wbg_adapter_50(arg0, arg1) {
424
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2bc8eabc61c14181(arg0, arg1);
341
+ /**
342
+ * @param {string} host
343
+ * @param {string} inbox_id
344
+ * @param {Identifier} account_identifier
345
+ * @param {string | null} [db_path]
346
+ * @param {Uint8Array | null} [encryption_key]
347
+ * @param {string | null} [device_sync_server_url]
348
+ * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
349
+ * @param {LogOptions | null} [log_options]
350
+ * @param {boolean | null} [allow_offline]
351
+ * @param {boolean | null} [disable_events]
352
+ * @returns {Promise<Client>}
353
+ */
354
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events) {
355
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
356
+ const len0 = WASM_VECTOR_LEN;
357
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
358
+ const len1 = WASM_VECTOR_LEN;
359
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
360
+ var len2 = WASM_VECTOR_LEN;
361
+ var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
362
+ var len3 = WASM_VECTOR_LEN;
363
+ let ptr4 = 0;
364
+ if (!isLikeNone(log_options)) {
365
+ _assertClass(log_options, LogOptions);
366
+ ptr4 = log_options.__destroy_into_raw();
367
+ }
368
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0);
369
+ return ret;
370
+ }
371
+
372
+ /**
373
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
374
+ * @returns {Uint8Array}
375
+ */
376
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
377
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
378
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
379
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
380
+ if (ret[2]) {
381
+ throw takeFromExternrefTable0(ret[1]);
382
+ }
383
+ return takeFromExternrefTable0(ret[0]);
384
+ }
385
+
386
+ /**
387
+ * @param {Uint8Array} bytes
388
+ * @returns {MultiRemoteAttachment}
389
+ */
390
+ export function decodeMultiRemoteAttachment(bytes) {
391
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
392
+ if (ret[2]) {
393
+ throw takeFromExternrefTable0(ret[1]);
394
+ }
395
+ return MultiRemoteAttachment.__wrap(ret[0]);
396
+ }
397
+
398
+ /**
399
+ * @param {Reaction} reaction
400
+ * @returns {Uint8Array}
401
+ */
402
+ export function encodeReaction(reaction) {
403
+ _assertClass(reaction, Reaction);
404
+ var ptr0 = reaction.__destroy_into_raw();
405
+ const ret = wasm.encodeReaction(ptr0);
406
+ if (ret[2]) {
407
+ throw takeFromExternrefTable0(ret[1]);
408
+ }
409
+ return takeFromExternrefTable0(ret[0]);
410
+ }
411
+
412
+ /**
413
+ * @param {Uint8Array} bytes
414
+ * @returns {Reaction}
415
+ */
416
+ export function decodeReaction(bytes) {
417
+ const ret = wasm.decodeReaction(bytes);
418
+ if (ret[2]) {
419
+ throw takeFromExternrefTable0(ret[1]);
420
+ }
421
+ return Reaction.__wrap(ret[0]);
422
+ }
423
+
424
+ /**
425
+ * Entry point invoked by JavaScript in a worker.
426
+ * @param {number} ptr
427
+ */
428
+ export function task_worker_entry_point(ptr) {
429
+ const ret = wasm.task_worker_entry_point(ptr);
430
+ if (ret[1]) {
431
+ throw takeFromExternrefTable0(ret[0]);
432
+ }
425
433
  }
426
434
 
427
- function __wbg_adapter_53(arg0, arg1, arg2) {
428
- wasm.closure4982_externref_shim(arg0, arg1, arg2);
435
+ function __wbg_adapter_50(arg0, arg1) {
436
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h42782d8d6f6b94ef(arg0, arg1);
429
437
  }
430
438
 
431
- function __wbg_adapter_56(arg0, arg1) {
439
+ function __wbg_adapter_53(arg0, arg1) {
432
440
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h912129f7a2cf8b7b(arg0, arg1);
433
441
  }
434
442
 
435
- function __wbg_adapter_780(arg0, arg1, arg2, arg3) {
436
- wasm.closure5936_externref_shim(arg0, arg1, arg2, arg3);
443
+ function __wbg_adapter_56(arg0, arg1, arg2) {
444
+ wasm.closure5046_externref_shim(arg0, arg1, arg2);
445
+ }
446
+
447
+ function __wbg_adapter_787(arg0, arg1, arg2, arg3) {
448
+ wasm.closure5989_externref_shim(arg0, arg1, arg2, arg3);
437
449
  }
438
450
 
439
451
  /**
@@ -736,150 +748,6 @@ export class Client {
736
748
  const ptr = this.__destroy_into_raw();
737
749
  wasm.__wbg_client_free(ptr, 0);
738
750
  }
739
- /**
740
- * @returns {Identifier}
741
- */
742
- get accountIdentifier() {
743
- const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
744
- return ret;
745
- }
746
- /**
747
- * @returns {string}
748
- */
749
- get inboxId() {
750
- let deferred1_0;
751
- let deferred1_1;
752
- try {
753
- const ret = wasm.client_inboxId(this.__wbg_ptr);
754
- deferred1_0 = ret[0];
755
- deferred1_1 = ret[1];
756
- return getStringFromWasm0(ret[0], ret[1]);
757
- } finally {
758
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
759
- }
760
- }
761
- /**
762
- * @returns {boolean}
763
- */
764
- get isRegistered() {
765
- const ret = wasm.client_isRegistered(this.__wbg_ptr);
766
- return ret !== 0;
767
- }
768
- /**
769
- * @returns {string}
770
- */
771
- get installationId() {
772
- let deferred1_0;
773
- let deferred1_1;
774
- try {
775
- const ret = wasm.client_installationId(this.__wbg_ptr);
776
- deferred1_0 = ret[0];
777
- deferred1_1 = ret[1];
778
- return getStringFromWasm0(ret[0], ret[1]);
779
- } finally {
780
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
781
- }
782
- }
783
- /**
784
- * @returns {Uint8Array}
785
- */
786
- get installationIdBytes() {
787
- const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
788
- return ret;
789
- }
790
- /**
791
- * Output booleans should be zipped with the index of input identifiers
792
- * @param {Identifier[]} account_identifiers
793
- * @returns {Promise<any>}
794
- */
795
- canMessage(account_identifiers) {
796
- const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
797
- const len0 = WASM_VECTOR_LEN;
798
- const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
799
- return ret;
800
- }
801
- /**
802
- * @returns {Promise<void>}
803
- */
804
- sendSyncRequest() {
805
- const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
806
- return ret;
807
- }
808
- /**
809
- * @param {Identifier} identifier
810
- * @returns {Promise<string | undefined>}
811
- */
812
- findInboxIdByIdentifier(identifier) {
813
- const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
814
- return ret;
815
- }
816
- /**
817
- * @param {string[]} inbox_ids
818
- * @param {boolean} refresh_from_network
819
- * @returns {Promise<InboxState[]>}
820
- */
821
- inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
822
- const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
823
- const len0 = WASM_VECTOR_LEN;
824
- const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
825
- return ret;
826
- }
827
- /**
828
- * @returns {Conversations}
829
- */
830
- conversations() {
831
- const ret = wasm.client_conversations(this.__wbg_ptr);
832
- return Conversations.__wrap(ret);
833
- }
834
- /**
835
- * @returns {Promise<number>}
836
- */
837
- syncPreferences() {
838
- const ret = wasm.client_syncPreferences(this.__wbg_ptr);
839
- return ret;
840
- }
841
- /**
842
- * @returns {ApiStats}
843
- */
844
- apiStatistics() {
845
- const ret = wasm.client_apiStatistics(this.__wbg_ptr);
846
- return ApiStats.__wrap(ret);
847
- }
848
- /**
849
- * @returns {IdentityStats}
850
- */
851
- apiIdentityStatistics() {
852
- const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
853
- return IdentityStats.__wrap(ret);
854
- }
855
- /**
856
- * @returns {string}
857
- */
858
- apiAggregateStatistics() {
859
- let deferred1_0;
860
- let deferred1_1;
861
- try {
862
- const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
863
- deferred1_0 = ret[0];
864
- deferred1_1 = ret[1];
865
- return getStringFromWasm0(ret[0], ret[1]);
866
- } finally {
867
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
868
- }
869
- }
870
- clearAllStatistics() {
871
- wasm.client_clearAllStatistics(this.__wbg_ptr);
872
- }
873
- /**
874
- * @param {string} server_url
875
- * @returns {Promise<string>}
876
- */
877
- uploadDebugArchive(server_url) {
878
- const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
879
- const len0 = WASM_VECTOR_LEN;
880
- const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
881
- return ret;
882
- }
883
751
  /**
884
752
  * @param {Consent[]} records
885
753
  * @returns {Promise<void>}
@@ -1035,6 +903,150 @@ export class Client {
1035
903
  throw takeFromExternrefTable0(ret[0]);
1036
904
  }
1037
905
  }
906
+ /**
907
+ * @returns {Identifier}
908
+ */
909
+ get accountIdentifier() {
910
+ const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
911
+ return ret;
912
+ }
913
+ /**
914
+ * @returns {string}
915
+ */
916
+ get inboxId() {
917
+ let deferred1_0;
918
+ let deferred1_1;
919
+ try {
920
+ const ret = wasm.client_inboxId(this.__wbg_ptr);
921
+ deferred1_0 = ret[0];
922
+ deferred1_1 = ret[1];
923
+ return getStringFromWasm0(ret[0], ret[1]);
924
+ } finally {
925
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
926
+ }
927
+ }
928
+ /**
929
+ * @returns {boolean}
930
+ */
931
+ get isRegistered() {
932
+ const ret = wasm.client_isRegistered(this.__wbg_ptr);
933
+ return ret !== 0;
934
+ }
935
+ /**
936
+ * @returns {string}
937
+ */
938
+ get installationId() {
939
+ let deferred1_0;
940
+ let deferred1_1;
941
+ try {
942
+ const ret = wasm.client_installationId(this.__wbg_ptr);
943
+ deferred1_0 = ret[0];
944
+ deferred1_1 = ret[1];
945
+ return getStringFromWasm0(ret[0], ret[1]);
946
+ } finally {
947
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
948
+ }
949
+ }
950
+ /**
951
+ * @returns {Uint8Array}
952
+ */
953
+ get installationIdBytes() {
954
+ const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
955
+ return ret;
956
+ }
957
+ /**
958
+ * Output booleans should be zipped with the index of input identifiers
959
+ * @param {Identifier[]} account_identifiers
960
+ * @returns {Promise<any>}
961
+ */
962
+ canMessage(account_identifiers) {
963
+ const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
964
+ const len0 = WASM_VECTOR_LEN;
965
+ const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
966
+ return ret;
967
+ }
968
+ /**
969
+ * @returns {Promise<void>}
970
+ */
971
+ sendSyncRequest() {
972
+ const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
973
+ return ret;
974
+ }
975
+ /**
976
+ * @param {Identifier} identifier
977
+ * @returns {Promise<string | undefined>}
978
+ */
979
+ findInboxIdByIdentifier(identifier) {
980
+ const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
981
+ return ret;
982
+ }
983
+ /**
984
+ * @param {string[]} inbox_ids
985
+ * @param {boolean} refresh_from_network
986
+ * @returns {Promise<InboxState[]>}
987
+ */
988
+ inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
989
+ const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
990
+ const len0 = WASM_VECTOR_LEN;
991
+ const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
992
+ return ret;
993
+ }
994
+ /**
995
+ * @returns {Conversations}
996
+ */
997
+ conversations() {
998
+ const ret = wasm.client_conversations(this.__wbg_ptr);
999
+ return Conversations.__wrap(ret);
1000
+ }
1001
+ /**
1002
+ * @returns {Promise<number>}
1003
+ */
1004
+ syncPreferences() {
1005
+ const ret = wasm.client_syncPreferences(this.__wbg_ptr);
1006
+ return ret;
1007
+ }
1008
+ /**
1009
+ * @returns {ApiStats}
1010
+ */
1011
+ apiStatistics() {
1012
+ const ret = wasm.client_apiStatistics(this.__wbg_ptr);
1013
+ return ApiStats.__wrap(ret);
1014
+ }
1015
+ /**
1016
+ * @returns {IdentityStats}
1017
+ */
1018
+ apiIdentityStatistics() {
1019
+ const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
1020
+ return IdentityStats.__wrap(ret);
1021
+ }
1022
+ /**
1023
+ * @returns {string}
1024
+ */
1025
+ apiAggregateStatistics() {
1026
+ let deferred1_0;
1027
+ let deferred1_1;
1028
+ try {
1029
+ const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
1030
+ deferred1_0 = ret[0];
1031
+ deferred1_1 = ret[1];
1032
+ return getStringFromWasm0(ret[0], ret[1]);
1033
+ } finally {
1034
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1035
+ }
1036
+ }
1037
+ clearAllStatistics() {
1038
+ wasm.client_clearAllStatistics(this.__wbg_ptr);
1039
+ }
1040
+ /**
1041
+ * @param {string} server_url
1042
+ * @returns {Promise<string>}
1043
+ */
1044
+ uploadDebugArchive(server_url) {
1045
+ const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1046
+ const len0 = WASM_VECTOR_LEN;
1047
+ const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
1048
+ return ret;
1049
+ }
1038
1050
  }
1039
1051
 
1040
1052
  const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1171,7 +1183,7 @@ export class ContentTypeId {
1171
1183
  set authorityId(arg0) {
1172
1184
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1173
1185
  const len0 = WASM_VECTOR_LEN;
1174
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1186
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1175
1187
  }
1176
1188
  /**
1177
1189
  * @returns {string}
@@ -1801,14 +1813,14 @@ export class ConversationDebugInfo {
1801
1813
  * @returns {bigint}
1802
1814
  */
1803
1815
  get epoch() {
1804
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
1816
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
1805
1817
  return BigInt.asUintN(64, ret);
1806
1818
  }
1807
1819
  /**
1808
1820
  * @param {bigint} arg0
1809
1821
  */
1810
1822
  set epoch(arg0) {
1811
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
1823
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
1812
1824
  }
1813
1825
  /**
1814
1826
  * @returns {boolean}
@@ -1873,14 +1885,14 @@ export class ConversationDebugInfo {
1873
1885
  * @returns {bigint}
1874
1886
  */
1875
1887
  get cursor() {
1876
- const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
1888
+ const ret = wasm.__wbg_get_conversationdebuginfo_cursor(this.__wbg_ptr);
1877
1889
  return ret;
1878
1890
  }
1879
1891
  /**
1880
1892
  * @param {bigint} arg0
1881
1893
  */
1882
1894
  set cursor(arg0) {
1883
- wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
1895
+ wasm.__wbg_set_conversationdebuginfo_cursor(this.__wbg_ptr, arg0);
1884
1896
  }
1885
1897
  }
1886
1898
 
@@ -2577,7 +2589,7 @@ export class GroupMember {
2577
2589
  set inboxId(arg0) {
2578
2590
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2579
2591
  const len0 = WASM_VECTOR_LEN;
2580
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2592
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2581
2593
  }
2582
2594
  /**
2583
2595
  * @returns {Identifier[]}
@@ -2802,14 +2814,14 @@ export class HmacKey {
2802
2814
  * @returns {bigint}
2803
2815
  */
2804
2816
  get epoch() {
2805
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
2817
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
2806
2818
  return ret;
2807
2819
  }
2808
2820
  /**
2809
2821
  * @param {bigint} arg0
2810
2822
  */
2811
2823
  set epoch(arg0) {
2812
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
2824
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
2813
2825
  }
2814
2826
  }
2815
2827
 
@@ -2938,7 +2950,7 @@ export class InboxState {
2938
2950
  set inboxId(arg0) {
2939
2951
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2940
2952
  const len0 = WASM_VECTOR_LEN;
2941
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2953
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2942
2954
  }
2943
2955
  /**
2944
2956
  * @returns {Identifier}
@@ -3258,7 +3270,7 @@ export class KeyPackageStatus {
3258
3270
  * @returns {Lifetime | undefined}
3259
3271
  */
3260
3272
  get lifetime() {
3261
- const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
3273
+ const ret = wasm.__wbg_get_createdmoptions_messageDisappearingSettings(this.__wbg_ptr);
3262
3274
  return ret === 0 ? undefined : Lifetime.__wrap(ret);
3263
3275
  }
3264
3276
  /**
@@ -3323,27 +3335,27 @@ export class Lifetime {
3323
3335
  * @returns {bigint}
3324
3336
  */
3325
3337
  get not_before() {
3326
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3338
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3327
3339
  return BigInt.asUintN(64, ret);
3328
3340
  }
3329
3341
  /**
3330
3342
  * @param {bigint} arg0
3331
3343
  */
3332
3344
  set not_before(arg0) {
3333
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3345
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3334
3346
  }
3335
3347
  /**
3336
3348
  * @returns {bigint}
3337
3349
  */
3338
3350
  get not_after() {
3339
- const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
3351
+ const ret = wasm.__wbg_get_conversationdebuginfo_cursor(this.__wbg_ptr);
3340
3352
  return BigInt.asUintN(64, ret);
3341
3353
  }
3342
3354
  /**
3343
3355
  * @param {bigint} arg0
3344
3356
  */
3345
3357
  set not_after(arg0) {
3346
- wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
3358
+ wasm.__wbg_set_conversationdebuginfo_cursor(this.__wbg_ptr, arg0);
3347
3359
  }
3348
3360
  }
3349
3361
 
@@ -3737,14 +3749,14 @@ export class Message {
3737
3749
  * @returns {bigint}
3738
3750
  */
3739
3751
  get sentAtNs() {
3740
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3752
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3741
3753
  return ret;
3742
3754
  }
3743
3755
  /**
3744
3756
  * @param {bigint} arg0
3745
3757
  */
3746
3758
  set sentAtNs(arg0) {
3747
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3759
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3748
3760
  }
3749
3761
  /**
3750
3762
  * @returns {string}
@@ -3887,27 +3899,27 @@ export class MessageDisappearingSettings {
3887
3899
  * @returns {bigint}
3888
3900
  */
3889
3901
  get fromNs() {
3890
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3902
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3891
3903
  return ret;
3892
3904
  }
3893
3905
  /**
3894
3906
  * @param {bigint} arg0
3895
3907
  */
3896
3908
  set fromNs(arg0) {
3897
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3909
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3898
3910
  }
3899
3911
  /**
3900
3912
  * @returns {bigint}
3901
3913
  */
3902
3914
  get inNs() {
3903
- const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
3915
+ const ret = wasm.__wbg_get_conversationdebuginfo_cursor(this.__wbg_ptr);
3904
3916
  return ret;
3905
3917
  }
3906
3918
  /**
3907
3919
  * @param {bigint} arg0
3908
3920
  */
3909
3921
  set inNs(arg0) {
3910
- wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
3922
+ wasm.__wbg_set_conversationdebuginfo_cursor(this.__wbg_ptr, arg0);
3911
3923
  }
3912
3924
  /**
3913
3925
  * @param {bigint} from_ns
@@ -4389,7 +4401,7 @@ export class Reaction {
4389
4401
  set reference(arg0) {
4390
4402
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4391
4403
  const len0 = WASM_VECTOR_LEN;
4392
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4404
+ wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
4393
4405
  }
4394
4406
  /**
4395
4407
  * @returns {string}
@@ -4609,7 +4621,7 @@ export class RemoteAttachmentInfo {
4609
4621
  set url(arg0) {
4610
4622
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4611
4623
  const len0 = WASM_VECTOR_LEN;
4612
- wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
4624
+ wasm.__wbg_set_remoteattachmentinfo_url(this.__wbg_ptr, ptr0, len0);
4613
4625
  }
4614
4626
  /**
4615
4627
  * @returns {Uint8Array}
@@ -5008,6 +5020,9 @@ function __wbg_get_imports() {
5008
5020
  imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
5009
5021
  console.error(arg0, arg1, arg2, arg3);
5010
5022
  };
5023
+ imports.wbg.__wbg_error_e98c298703cffa97 = function(arg0, arg1) {
5024
+ console.error(getStringFromWasm0(arg0, arg1));
5025
+ };
5011
5026
  imports.wbg.__wbg_fetch_43e69ddf509149f8 = function(arg0) {
5012
5027
  const ret = fetch(arg0);
5013
5028
  return ret;
@@ -5303,7 +5318,7 @@ function __wbg_get_imports() {
5303
5318
  const a = state0.a;
5304
5319
  state0.a = 0;
5305
5320
  try {
5306
- return __wbg_adapter_780(a, state0.b, arg0, arg1);
5321
+ return __wbg_adapter_787(a, state0.b, arg0, arg1);
5307
5322
  } finally {
5308
5323
  state0.a = a;
5309
5324
  }
@@ -5415,22 +5430,22 @@ function __wbg_get_imports() {
5415
5430
  const ret = arg0.now();
5416
5431
  return ret;
5417
5432
  };
5418
- imports.wbg.__wbg_onclose_6fcba49e178e74f1 = function(arg0) {
5433
+ imports.wbg.__wbg_onclose_33c2685b3d6919fe = function(arg0) {
5419
5434
  arg0.on_close();
5420
5435
  };
5421
- imports.wbg.__wbg_onconsentupdate_f1a4f09d556f246a = function(arg0, arg1) {
5436
+ imports.wbg.__wbg_onconsentupdate_b0ad10636a4bbf87 = function(arg0, arg1) {
5422
5437
  arg0.on_consent_update(arg1);
5423
5438
  };
5424
- imports.wbg.__wbg_onconversation_3b59d4dc771e4771 = function(arg0, arg1) {
5439
+ imports.wbg.__wbg_onconversation_d77e5cfa31969f41 = function(arg0, arg1) {
5425
5440
  arg0.on_conversation(Conversation.__wrap(arg1));
5426
5441
  };
5427
- imports.wbg.__wbg_onerror_bd4006897e392040 = function(arg0, arg1) {
5442
+ imports.wbg.__wbg_onerror_3a496c1bd703126d = function(arg0, arg1) {
5428
5443
  arg0.on_error(arg1);
5429
5444
  };
5430
- imports.wbg.__wbg_onmessage_fc9dabc2918de9d1 = function(arg0, arg1) {
5445
+ imports.wbg.__wbg_onmessage_83a0c907bdd614d4 = function(arg0, arg1) {
5431
5446
  arg0.on_message(Message.__wrap(arg1));
5432
5447
  };
5433
- imports.wbg.__wbg_onuserpreferenceupdate_c306059a421b3f1d = function(arg0, arg1, arg2) {
5448
+ imports.wbg.__wbg_onuserpreferenceupdate_07cad92e339131e3 = function(arg0, arg1, arg2) {
5434
5449
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5435
5450
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5436
5451
  arg0.on_user_preference_update(v0);
@@ -5450,6 +5465,9 @@ function __wbg_get_imports() {
5450
5465
  const ret = arg0.performance;
5451
5466
  return ret;
5452
5467
  };
5468
+ imports.wbg.__wbg_postMessage_83a8d58d3fcb6c13 = function() { return handleError(function (arg0, arg1) {
5469
+ arg0.postMessage(arg1);
5470
+ }, arguments) };
5453
5471
  imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
5454
5472
  const ret = arg0.process;
5455
5473
  return ret;
@@ -5514,6 +5532,9 @@ function __wbg_get_imports() {
5514
5532
  const ret = setInterval(arg0, arg1);
5515
5533
  return ret;
5516
5534
  }, arguments) };
5535
+ imports.wbg.__wbg_setTimeout_8f06012fba12034e = function(arg0, arg1) {
5536
+ globalThis.setTimeout(arg0, arg1);
5537
+ };
5517
5538
  imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
5518
5539
  const ret = setTimeout(arg0, arg1);
5519
5540
  return ret;
@@ -5717,16 +5738,16 @@ function __wbg_get_imports() {
5717
5738
  const ret = false;
5718
5739
  return ret;
5719
5740
  };
5720
- imports.wbg.__wbindgen_closure_wrapper18652 = function(arg0, arg1, arg2) {
5721
- const ret = makeMutClosure(arg0, arg1, 4635, __wbg_adapter_50);
5741
+ imports.wbg.__wbindgen_closure_wrapper18907 = function(arg0, arg1, arg2) {
5742
+ const ret = makeMutClosure(arg0, arg1, 4688, __wbg_adapter_50);
5722
5743
  return ret;
5723
5744
  };
5724
- imports.wbg.__wbindgen_closure_wrapper21855 = function(arg0, arg1, arg2) {
5725
- const ret = makeMutClosure(arg0, arg1, 4983, __wbg_adapter_53);
5745
+ imports.wbg.__wbindgen_closure_wrapper21499 = function(arg0, arg1, arg2) {
5746
+ const ret = makeMutClosure(arg0, arg1, 5023, __wbg_adapter_53);
5726
5747
  return ret;
5727
5748
  };
5728
- imports.wbg.__wbindgen_closure_wrapper21945 = function(arg0, arg1, arg2) {
5729
- const ret = makeMutClosure(arg0, arg1, 4992, __wbg_adapter_56);
5749
+ imports.wbg.__wbindgen_closure_wrapper22226 = function(arg0, arg1, arg2) {
5750
+ const ret = makeMutClosure(arg0, arg1, 5047, __wbg_adapter_56);
5730
5751
  return ret;
5731
5752
  };
5732
5753
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {