@xmtp/wasm-bindings 1.2.5 → 1.2.6

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,16 +216,6 @@ 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
-
229
219
  function takeFromExternrefTable0(idx) {
230
220
  const value = wasm.__wbindgen_export_4.get(idx);
231
221
  wasm.__externref_table_dealloc(idx);
@@ -237,6 +227,45 @@ function _assertClass(instance, klass) {
237
227
  throw new Error(`expected instance of ${klass.name}`);
238
228
  }
239
229
  }
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
+ * @returns {Promise<Client>}
241
+ */
242
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
243
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
244
+ const len0 = WASM_VECTOR_LEN;
245
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
246
+ const len1 = WASM_VECTOR_LEN;
247
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
248
+ var len2 = WASM_VECTOR_LEN;
249
+ var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
250
+ var len3 = WASM_VECTOR_LEN;
251
+ let ptr4 = 0;
252
+ if (!isLikeNone(log_options)) {
253
+ _assertClass(log_options, LogOptions);
254
+ ptr4 = log_options.__destroy_into_raw();
255
+ }
256
+ 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);
257
+ return ret;
258
+ }
259
+
260
+ function passArrayJsValueToWasm0(array, malloc) {
261
+ const ptr = malloc(array.length * 4, 4) >>> 0;
262
+ for (let i = 0; i < array.length; i++) {
263
+ const add = addToExternrefTable0(array[i]);
264
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
265
+ }
266
+ WASM_VECTOR_LEN = array.length;
267
+ return ptr;
268
+ }
240
269
  /**
241
270
  * @param {MultiRemoteAttachment} multiRemoteAttachment
242
271
  * @returns {Uint8Array}
@@ -389,36 +418,6 @@ export function applySignatureRequest(host, signature_request) {
389
418
  return ret;
390
419
  }
391
420
 
392
- /**
393
- * @param {string} host
394
- * @param {string} inbox_id
395
- * @param {Identifier} account_identifier
396
- * @param {string | null} [db_path]
397
- * @param {Uint8Array | null} [encryption_key]
398
- * @param {string | null} [device_sync_server_url]
399
- * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
400
- * @param {LogOptions | null} [log_options]
401
- * @param {boolean | null} [allow_offline]
402
- * @returns {Promise<Client>}
403
- */
404
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
405
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
406
- const len0 = WASM_VECTOR_LEN;
407
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
408
- const len1 = WASM_VECTOR_LEN;
409
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
410
- var len2 = WASM_VECTOR_LEN;
411
- var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
- var len3 = WASM_VECTOR_LEN;
413
- let ptr4 = 0;
414
- if (!isLikeNone(log_options)) {
415
- _assertClass(log_options, LogOptions);
416
- ptr4 = log_options.__destroy_into_raw();
417
- }
418
- 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);
419
- return ret;
420
- }
421
-
422
421
  function __wbg_adapter_50(arg0, arg1) {
423
422
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e9b1d0be1909a89(arg0, arg1);
424
423
  }
@@ -428,7 +427,7 @@ function __wbg_adapter_53(arg0, arg1) {
428
427
  }
429
428
 
430
429
  function __wbg_adapter_56(arg0, arg1, arg2) {
431
- wasm.closure4617_externref_shim(arg0, arg1, arg2);
430
+ wasm.closure4609_externref_shim(arg0, arg1, arg2);
432
431
  }
433
432
 
434
433
  function __wbg_adapter_59(arg0, arg1) {
@@ -436,7 +435,7 @@ function __wbg_adapter_59(arg0, arg1) {
436
435
  }
437
436
 
438
437
  function __wbg_adapter_781(arg0, arg1, arg2, arg3) {
439
- wasm.closure5575_externref_shim(arg0, arg1, arg2, arg3);
438
+ wasm.closure5567_externref_shim(arg0, arg1, arg2, arg3);
440
439
  }
441
440
 
442
441
  /**
@@ -739,6 +738,150 @@ export class Client {
739
738
  const ptr = this.__destroy_into_raw();
740
739
  wasm.__wbg_client_free(ptr, 0);
741
740
  }
741
+ /**
742
+ * @returns {Identifier}
743
+ */
744
+ get accountIdentifier() {
745
+ const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
746
+ return ret;
747
+ }
748
+ /**
749
+ * @returns {string}
750
+ */
751
+ get inboxId() {
752
+ let deferred1_0;
753
+ let deferred1_1;
754
+ try {
755
+ const ret = wasm.client_inboxId(this.__wbg_ptr);
756
+ deferred1_0 = ret[0];
757
+ deferred1_1 = ret[1];
758
+ return getStringFromWasm0(ret[0], ret[1]);
759
+ } finally {
760
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
761
+ }
762
+ }
763
+ /**
764
+ * @returns {boolean}
765
+ */
766
+ get isRegistered() {
767
+ const ret = wasm.client_isRegistered(this.__wbg_ptr);
768
+ return ret !== 0;
769
+ }
770
+ /**
771
+ * @returns {string}
772
+ */
773
+ get installationId() {
774
+ let deferred1_0;
775
+ let deferred1_1;
776
+ try {
777
+ const ret = wasm.client_installationId(this.__wbg_ptr);
778
+ deferred1_0 = ret[0];
779
+ deferred1_1 = ret[1];
780
+ return getStringFromWasm0(ret[0], ret[1]);
781
+ } finally {
782
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
783
+ }
784
+ }
785
+ /**
786
+ * @returns {Uint8Array}
787
+ */
788
+ get installationIdBytes() {
789
+ const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
790
+ return ret;
791
+ }
792
+ /**
793
+ * Output booleans should be zipped with the index of input identifiers
794
+ * @param {Identifier[]} account_identifiers
795
+ * @returns {Promise<any>}
796
+ */
797
+ canMessage(account_identifiers) {
798
+ const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
799
+ const len0 = WASM_VECTOR_LEN;
800
+ const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
801
+ return ret;
802
+ }
803
+ /**
804
+ * @returns {Promise<void>}
805
+ */
806
+ sendSyncRequest() {
807
+ const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
808
+ return ret;
809
+ }
810
+ /**
811
+ * @param {Identifier} identifier
812
+ * @returns {Promise<string | undefined>}
813
+ */
814
+ findInboxIdByIdentifier(identifier) {
815
+ const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
816
+ return ret;
817
+ }
818
+ /**
819
+ * @param {string[]} inbox_ids
820
+ * @param {boolean} refresh_from_network
821
+ * @returns {Promise<InboxState[]>}
822
+ */
823
+ inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
824
+ const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
825
+ const len0 = WASM_VECTOR_LEN;
826
+ const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
827
+ return ret;
828
+ }
829
+ /**
830
+ * @returns {Conversations}
831
+ */
832
+ conversations() {
833
+ const ret = wasm.client_conversations(this.__wbg_ptr);
834
+ return Conversations.__wrap(ret);
835
+ }
836
+ /**
837
+ * @returns {Promise<number>}
838
+ */
839
+ syncPreferences() {
840
+ const ret = wasm.client_syncPreferences(this.__wbg_ptr);
841
+ return ret;
842
+ }
843
+ /**
844
+ * @returns {ApiStats}
845
+ */
846
+ apiStatistics() {
847
+ const ret = wasm.client_apiStatistics(this.__wbg_ptr);
848
+ return ApiStats.__wrap(ret);
849
+ }
850
+ /**
851
+ * @returns {IdentityStats}
852
+ */
853
+ apiIdentityStatistics() {
854
+ const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
855
+ return IdentityStats.__wrap(ret);
856
+ }
857
+ /**
858
+ * @returns {string}
859
+ */
860
+ apiAggregateStatistics() {
861
+ let deferred1_0;
862
+ let deferred1_1;
863
+ try {
864
+ const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
865
+ deferred1_0 = ret[0];
866
+ deferred1_1 = ret[1];
867
+ return getStringFromWasm0(ret[0], ret[1]);
868
+ } finally {
869
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
870
+ }
871
+ }
872
+ clearAllStatistics() {
873
+ wasm.client_clearAllStatistics(this.__wbg_ptr);
874
+ }
875
+ /**
876
+ * @param {string} server_url
877
+ * @returns {Promise<string>}
878
+ */
879
+ uploadDebugArchive(server_url) {
880
+ const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
881
+ const len0 = WASM_VECTOR_LEN;
882
+ const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
883
+ return ret;
884
+ }
742
885
  /**
743
886
  * @param {Consent[]} records
744
887
  * @returns {Promise<void>}
@@ -894,150 +1037,6 @@ export class Client {
894
1037
  throw takeFromExternrefTable0(ret[0]);
895
1038
  }
896
1039
  }
897
- /**
898
- * @returns {Identifier}
899
- */
900
- get accountIdentifier() {
901
- const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
902
- return ret;
903
- }
904
- /**
905
- * @returns {string}
906
- */
907
- get inboxId() {
908
- let deferred1_0;
909
- let deferred1_1;
910
- try {
911
- const ret = wasm.client_inboxId(this.__wbg_ptr);
912
- deferred1_0 = ret[0];
913
- deferred1_1 = ret[1];
914
- return getStringFromWasm0(ret[0], ret[1]);
915
- } finally {
916
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
917
- }
918
- }
919
- /**
920
- * @returns {boolean}
921
- */
922
- get isRegistered() {
923
- const ret = wasm.client_isRegistered(this.__wbg_ptr);
924
- return ret !== 0;
925
- }
926
- /**
927
- * @returns {string}
928
- */
929
- get installationId() {
930
- let deferred1_0;
931
- let deferred1_1;
932
- try {
933
- const ret = wasm.client_installationId(this.__wbg_ptr);
934
- deferred1_0 = ret[0];
935
- deferred1_1 = ret[1];
936
- return getStringFromWasm0(ret[0], ret[1]);
937
- } finally {
938
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
939
- }
940
- }
941
- /**
942
- * @returns {Uint8Array}
943
- */
944
- get installationIdBytes() {
945
- const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
946
- return ret;
947
- }
948
- /**
949
- * Output booleans should be zipped with the index of input identifiers
950
- * @param {Identifier[]} account_identifiers
951
- * @returns {Promise<any>}
952
- */
953
- canMessage(account_identifiers) {
954
- const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
955
- const len0 = WASM_VECTOR_LEN;
956
- const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
957
- return ret;
958
- }
959
- /**
960
- * @returns {Promise<void>}
961
- */
962
- sendSyncRequest() {
963
- const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
964
- return ret;
965
- }
966
- /**
967
- * @param {Identifier} identifier
968
- * @returns {Promise<string | undefined>}
969
- */
970
- findInboxIdByIdentifier(identifier) {
971
- const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
972
- return ret;
973
- }
974
- /**
975
- * @param {string[]} inbox_ids
976
- * @param {boolean} refresh_from_network
977
- * @returns {Promise<InboxState[]>}
978
- */
979
- inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
980
- const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
981
- const len0 = WASM_VECTOR_LEN;
982
- const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
983
- return ret;
984
- }
985
- /**
986
- * @returns {Conversations}
987
- */
988
- conversations() {
989
- const ret = wasm.client_conversations(this.__wbg_ptr);
990
- return Conversations.__wrap(ret);
991
- }
992
- /**
993
- * @returns {Promise<number>}
994
- */
995
- syncPreferences() {
996
- const ret = wasm.client_syncPreferences(this.__wbg_ptr);
997
- return ret;
998
- }
999
- /**
1000
- * @returns {ApiStats}
1001
- */
1002
- apiStatistics() {
1003
- const ret = wasm.client_apiStatistics(this.__wbg_ptr);
1004
- return ApiStats.__wrap(ret);
1005
- }
1006
- /**
1007
- * @returns {IdentityStats}
1008
- */
1009
- apiIdentityStatistics() {
1010
- const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
1011
- return IdentityStats.__wrap(ret);
1012
- }
1013
- /**
1014
- * @returns {string}
1015
- */
1016
- apiAggregateStatistics() {
1017
- let deferred1_0;
1018
- let deferred1_1;
1019
- try {
1020
- const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
1021
- deferred1_0 = ret[0];
1022
- deferred1_1 = ret[1];
1023
- return getStringFromWasm0(ret[0], ret[1]);
1024
- } finally {
1025
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1026
- }
1027
- }
1028
- clearAllStatistics() {
1029
- wasm.client_clearAllStatistics(this.__wbg_ptr);
1030
- }
1031
- /**
1032
- * @param {string} server_url
1033
- * @returns {Promise<string>}
1034
- */
1035
- uploadDebugArchive(server_url) {
1036
- const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1037
- const len0 = WASM_VECTOR_LEN;
1038
- const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
1039
- return ret;
1040
- }
1041
1040
  }
1042
1041
 
1043
1042
  const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1174,7 +1173,7 @@ export class ContentTypeId {
1174
1173
  set authorityId(arg0) {
1175
1174
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1176
1175
  const len0 = WASM_VECTOR_LEN;
1177
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1176
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1178
1177
  }
1179
1178
  /**
1180
1179
  * @returns {string}
@@ -1804,14 +1803,14 @@ export class ConversationDebugInfo {
1804
1803
  * @returns {bigint}
1805
1804
  */
1806
1805
  get epoch() {
1807
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
1806
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
1808
1807
  return BigInt.asUintN(64, ret);
1809
1808
  }
1810
1809
  /**
1811
1810
  * @param {bigint} arg0
1812
1811
  */
1813
1812
  set epoch(arg0) {
1814
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
1813
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
1815
1814
  }
1816
1815
  /**
1817
1816
  * @returns {boolean}
@@ -2769,14 +2768,14 @@ export class HmacKey {
2769
2768
  * @returns {bigint}
2770
2769
  */
2771
2770
  get epoch() {
2772
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
2771
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
2773
2772
  return ret;
2774
2773
  }
2775
2774
  /**
2776
2775
  * @param {bigint} arg0
2777
2776
  */
2778
2777
  set epoch(arg0) {
2779
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
2778
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
2780
2779
  }
2781
2780
  }
2782
2781
 
@@ -3225,7 +3224,7 @@ export class KeyPackageStatus {
3225
3224
  * @returns {Lifetime | undefined}
3226
3225
  */
3227
3226
  get lifetime() {
3228
- const ret = wasm.__wbg_get_createdmoptions_messageDisappearingSettings(this.__wbg_ptr);
3227
+ const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
3229
3228
  return ret === 0 ? undefined : Lifetime.__wrap(ret);
3230
3229
  }
3231
3230
  /**
@@ -3290,27 +3289,27 @@ export class Lifetime {
3290
3289
  * @returns {bigint}
3291
3290
  */
3292
3291
  get not_before() {
3293
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3292
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3294
3293
  return BigInt.asUintN(64, ret);
3295
3294
  }
3296
3295
  /**
3297
3296
  * @param {bigint} arg0
3298
3297
  */
3299
3298
  set not_before(arg0) {
3300
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3299
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3301
3300
  }
3302
3301
  /**
3303
3302
  * @returns {bigint}
3304
3303
  */
3305
3304
  get not_after() {
3306
- const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
3305
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
3307
3306
  return BigInt.asUintN(64, ret);
3308
3307
  }
3309
3308
  /**
3310
3309
  * @param {bigint} arg0
3311
3310
  */
3312
3311
  set not_after(arg0) {
3313
- wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
3312
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
3314
3313
  }
3315
3314
  }
3316
3315
 
@@ -3704,14 +3703,14 @@ export class Message {
3704
3703
  * @returns {bigint}
3705
3704
  */
3706
3705
  get sentAtNs() {
3707
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3706
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3708
3707
  return ret;
3709
3708
  }
3710
3709
  /**
3711
3710
  * @param {bigint} arg0
3712
3711
  */
3713
3712
  set sentAtNs(arg0) {
3714
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3713
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3715
3714
  }
3716
3715
  /**
3717
3716
  * @returns {string}
@@ -3854,27 +3853,27 @@ export class MessageDisappearingSettings {
3854
3853
  * @returns {bigint}
3855
3854
  */
3856
3855
  get fromNs() {
3857
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3856
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3858
3857
  return ret;
3859
3858
  }
3860
3859
  /**
3861
3860
  * @param {bigint} arg0
3862
3861
  */
3863
3862
  set fromNs(arg0) {
3864
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3863
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3865
3864
  }
3866
3865
  /**
3867
3866
  * @returns {bigint}
3868
3867
  */
3869
3868
  get inNs() {
3870
- const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
3869
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
3871
3870
  return ret;
3872
3871
  }
3873
3872
  /**
3874
3873
  * @param {bigint} arg0
3875
3874
  */
3876
3875
  set inNs(arg0) {
3877
- wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
3876
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
3878
3877
  }
3879
3878
  /**
3880
3879
  * @param {bigint} from_ns
@@ -4379,7 +4378,7 @@ export class Reaction {
4379
4378
  set referenceInboxId(arg0) {
4380
4379
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4381
4380
  const len0 = WASM_VECTOR_LEN;
4382
- wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
4381
+ wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
4383
4382
  }
4384
4383
  /**
4385
4384
  * @returns {ReactionAction}
@@ -5386,19 +5385,19 @@ function __wbg_get_imports() {
5386
5385
  const ret = arg0.now();
5387
5386
  return ret;
5388
5387
  };
5389
- imports.wbg.__wbg_onconsentupdate_3ee822385ce52c1b = function(arg0, arg1) {
5388
+ imports.wbg.__wbg_onconsentupdate_0015afd33d49f734 = function(arg0, arg1) {
5390
5389
  arg0.on_consent_update(arg1);
5391
5390
  };
5392
- imports.wbg.__wbg_onconversation_93e8c3e97ceff607 = function(arg0, arg1) {
5391
+ imports.wbg.__wbg_onconversation_4c5109f7a97cb0e0 = function(arg0, arg1) {
5393
5392
  arg0.on_conversation(Conversation.__wrap(arg1));
5394
5393
  };
5395
- imports.wbg.__wbg_onerror_a4d17f0e71800436 = function(arg0, arg1) {
5394
+ imports.wbg.__wbg_onerror_fc32c3909180f9b0 = function(arg0, arg1) {
5396
5395
  arg0.on_error(arg1);
5397
5396
  };
5398
- imports.wbg.__wbg_onmessage_c6c369e7d39d60a1 = function(arg0, arg1) {
5397
+ imports.wbg.__wbg_onmessage_6019249fb877e093 = function(arg0, arg1) {
5399
5398
  arg0.on_message(Message.__wrap(arg1));
5400
5399
  };
5401
- imports.wbg.__wbg_onuserpreferenceupdate_480a6d9d21b41238 = function(arg0, arg1, arg2) {
5400
+ imports.wbg.__wbg_onuserpreferenceupdate_1b9ee4ce886fa1d3 = function(arg0, arg1, arg2) {
5402
5401
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5403
5402
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5404
5403
  arg0.on_user_preference_update(v0);
@@ -5689,20 +5688,20 @@ function __wbg_get_imports() {
5689
5688
  const ret = false;
5690
5689
  return ret;
5691
5690
  };
5692
- imports.wbg.__wbindgen_closure_wrapper17738 = function(arg0, arg1, arg2) {
5693
- const ret = makeMutClosure(arg0, arg1, 4258, __wbg_adapter_50);
5691
+ imports.wbg.__wbindgen_closure_wrapper17750 = function(arg0, arg1, arg2) {
5692
+ const ret = makeMutClosure(arg0, arg1, 4250, __wbg_adapter_50);
5694
5693
  return ret;
5695
5694
  };
5696
- imports.wbg.__wbindgen_closure_wrapper17879 = function(arg0, arg1, arg2) {
5697
- const ret = makeMutClosure(arg0, arg1, 4314, __wbg_adapter_53);
5695
+ imports.wbg.__wbindgen_closure_wrapper17891 = function(arg0, arg1, arg2) {
5696
+ const ret = makeMutClosure(arg0, arg1, 4306, __wbg_adapter_53);
5698
5697
  return ret;
5699
5698
  };
5700
- imports.wbg.__wbindgen_closure_wrapper20999 = function(arg0, arg1, arg2) {
5701
- const ret = makeMutClosure(arg0, arg1, 4618, __wbg_adapter_56);
5699
+ imports.wbg.__wbindgen_closure_wrapper21012 = function(arg0, arg1, arg2) {
5700
+ const ret = makeMutClosure(arg0, arg1, 4610, __wbg_adapter_56);
5702
5701
  return ret;
5703
5702
  };
5704
- imports.wbg.__wbindgen_closure_wrapper21100 = function(arg0, arg1, arg2) {
5705
- const ret = makeMutClosure(arg0, arg1, 4629, __wbg_adapter_59);
5703
+ imports.wbg.__wbindgen_closure_wrapper21113 = function(arg0, arg1, arg2) {
5704
+ const ret = makeMutClosure(arg0, arg1, 4621, __wbg_adapter_59);
5706
5705
  return ret;
5707
5706
  };
5708
5707
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file