@xmtp/wasm-bindings 1.2.1 → 1.2.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,41 @@ function debugString(val) {
216
216
  return className;
217
217
  }
218
218
 
219
+ function _assertClass(instance, klass) {
220
+ if (!(instance instanceof klass)) {
221
+ throw new Error(`expected instance of ${klass.name}`);
222
+ }
223
+ }
224
+ /**
225
+ * @param {string} host
226
+ * @param {string} inbox_id
227
+ * @param {Identifier} account_identifier
228
+ * @param {string | null} [db_path]
229
+ * @param {Uint8Array | null} [encryption_key]
230
+ * @param {string | null} [device_sync_server_url]
231
+ * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
232
+ * @param {LogOptions | null} [log_options]
233
+ * @param {boolean | null} [allow_offline]
234
+ * @returns {Promise<Client>}
235
+ */
236
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
237
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
238
+ const len0 = WASM_VECTOR_LEN;
239
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
240
+ const len1 = WASM_VECTOR_LEN;
241
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
242
+ var len2 = WASM_VECTOR_LEN;
243
+ var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
244
+ var len3 = WASM_VECTOR_LEN;
245
+ let ptr4 = 0;
246
+ if (!isLikeNone(log_options)) {
247
+ _assertClass(log_options, LogOptions);
248
+ ptr4 = log_options.__destroy_into_raw();
249
+ }
250
+ 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);
251
+ return ret;
252
+ }
253
+
219
254
  function passArrayJsValueToWasm0(array, malloc) {
220
255
  const ptr = malloc(array.length * 4, 4) >>> 0;
221
256
  for (let i = 0; i < array.length; i++) {
@@ -226,12 +261,6 @@ function passArrayJsValueToWasm0(array, malloc) {
226
261
  return ptr;
227
262
  }
228
263
 
229
- function _assertClass(instance, klass) {
230
- if (!(instance instanceof klass)) {
231
- throw new Error(`expected instance of ${klass.name}`);
232
- }
233
- }
234
-
235
264
  function takeFromExternrefTable0(idx) {
236
265
  const value = wasm.__wbindgen_export_4.get(idx);
237
266
  wasm.__externref_table_dealloc(idx);
@@ -311,30 +340,32 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
311
340
 
312
341
  /**
313
342
  * @param {string} host
343
+ * @param {Identifier} recovery_identifier
314
344
  * @param {string} inbox_id
315
- * @param {Identifier} account_identifier
316
- * @param {string | null} [db_path]
317
- * @param {Uint8Array | null} [encryption_key]
318
- * @param {string | null} [device_sync_server_url]
319
- * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
320
- * @param {LogOptions | null} [log_options]
321
- * @returns {Promise<Client>}
345
+ * @param {Uint8Array[]} installation_ids
346
+ * @returns {Promise<SignatureRequestHandle>}
322
347
  */
323
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
348
+ export function revokeInstallationsSignatureRequest(host, recovery_identifier, inbox_id, installation_ids) {
324
349
  const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
325
350
  const len0 = WASM_VECTOR_LEN;
326
351
  const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
327
352
  const len1 = WASM_VECTOR_LEN;
328
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
329
- var len2 = WASM_VECTOR_LEN;
330
- var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
331
- var len3 = WASM_VECTOR_LEN;
332
- let ptr4 = 0;
333
- if (!isLikeNone(log_options)) {
334
- _assertClass(log_options, LogOptions);
335
- ptr4 = log_options.__destroy_into_raw();
336
- }
337
- 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);
353
+ const ptr2 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
354
+ const len2 = WASM_VECTOR_LEN;
355
+ const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, recovery_identifier, ptr1, len1, ptr2, len2);
356
+ return ret;
357
+ }
358
+
359
+ /**
360
+ * @param {string} host
361
+ * @param {SignatureRequestHandle} signature_request
362
+ * @returns {Promise<void>}
363
+ */
364
+ export function applySignatureRequest(host, signature_request) {
365
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
366
+ const len0 = WASM_VECTOR_LEN;
367
+ _assertClass(signature_request, SignatureRequestHandle);
368
+ const ret = wasm.applySignatureRequest(ptr0, len0, signature_request.__wbg_ptr);
338
369
  return ret;
339
370
  }
340
371
 
@@ -382,15 +413,15 @@ function __wbg_adapter_53(arg0, arg1) {
382
413
  }
383
414
 
384
415
  function __wbg_adapter_56(arg0, arg1, arg2) {
385
- wasm.closure4487_externref_shim(arg0, arg1, arg2);
416
+ wasm.closure4603_externref_shim(arg0, arg1, arg2);
386
417
  }
387
418
 
388
419
  function __wbg_adapter_59(arg0, arg1) {
389
420
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52(arg0, arg1);
390
421
  }
391
422
 
392
- function __wbg_adapter_774(arg0, arg1, arg2, arg3) {
393
- wasm.closure5463_externref_shim(arg0, arg1, arg2, arg3);
423
+ function __wbg_adapter_780(arg0, arg1, arg2, arg3) {
424
+ wasm.closure5579_externref_shim(arg0, arg1, arg2, arg3);
394
425
  }
395
426
 
396
427
  /**
@@ -519,16 +550,6 @@ export const ReactionSchema = Object.freeze({
519
550
  Shortcode: 2, "2": "Shortcode",
520
551
  Custom: 3, "3": "Custom",
521
552
  });
522
- /**
523
- * @enum {0 | 1 | 2 | 3 | 4}
524
- */
525
- export const SignatureRequestType = Object.freeze({
526
- AddWallet: 0, "0": "AddWallet",
527
- CreateInbox: 1, "1": "CreateInbox",
528
- RevokeWallet: 2, "2": "RevokeWallet",
529
- RevokeInstallations: 3, "3": "RevokeInstallations",
530
- ChangeRecoveryIdentifier: 4, "4": "ChangeRecoveryIdentifier",
531
- });
532
553
  /**
533
554
  * @enum {0 | 1}
534
555
  */
@@ -703,125 +724,6 @@ export class Client {
703
724
  const ptr = this.__destroy_into_raw();
704
725
  wasm.__wbg_client_free(ptr, 0);
705
726
  }
706
- /**
707
- * @returns {string | undefined}
708
- */
709
- createInboxSignatureText() {
710
- const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
711
- if (ret[3]) {
712
- throw takeFromExternrefTable0(ret[2]);
713
- }
714
- let v1;
715
- if (ret[0] !== 0) {
716
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
717
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
718
- }
719
- return v1;
720
- }
721
- /**
722
- * @param {Identifier} new_identifier
723
- * @returns {Promise<string>}
724
- */
725
- addWalletSignatureText(new_identifier) {
726
- const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
727
- return ret;
728
- }
729
- /**
730
- * @param {Identifier} identifier
731
- * @returns {Promise<string>}
732
- */
733
- revokeWalletSignatureText(identifier) {
734
- const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
735
- return ret;
736
- }
737
- /**
738
- * @returns {Promise<string>}
739
- */
740
- revokeAllOtherInstallationsSignatureText() {
741
- const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
742
- return ret;
743
- }
744
- /**
745
- * @param {Uint8Array[]} installation_ids
746
- * @returns {Promise<string>}
747
- */
748
- revokeInstallationsSignatureText(installation_ids) {
749
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
750
- const len0 = WASM_VECTOR_LEN;
751
- const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
752
- return ret;
753
- }
754
- /**
755
- * @param {Identifier} new_recovery_identifier
756
- * @returns {Promise<string>}
757
- */
758
- changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
759
- const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
760
- return ret;
761
- }
762
- /**
763
- * @param {SignatureRequestType} signature_type
764
- * @param {Uint8Array} signature_bytes
765
- * @returns {Promise<void>}
766
- */
767
- addEcdsaSignature(signature_type, signature_bytes) {
768
- const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
769
- return ret;
770
- }
771
- /**
772
- * @param {SignatureRequestType} signature_type
773
- * @param {PasskeySignature} signature
774
- * @returns {Promise<void>}
775
- */
776
- addPasskeySignature(signature_type, signature) {
777
- _assertClass(signature, PasskeySignature);
778
- var ptr0 = signature.__destroy_into_raw();
779
- const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
780
- return ret;
781
- }
782
- /**
783
- * @param {SignatureRequestType} signature_type
784
- * @param {Uint8Array} signature_bytes
785
- * @param {bigint} chain_id
786
- * @param {bigint | null} [block_number]
787
- * @returns {Promise<void>}
788
- */
789
- addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
790
- const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
791
- return ret;
792
- }
793
- /**
794
- * @returns {Promise<void>}
795
- */
796
- applySignatureRequests() {
797
- const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
798
- return ret;
799
- }
800
- /**
801
- * @param {string} signature_text
802
- * @returns {Uint8Array}
803
- */
804
- signWithInstallationKey(signature_text) {
805
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
806
- const len0 = WASM_VECTOR_LEN;
807
- const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
808
- if (ret[2]) {
809
- throw takeFromExternrefTable0(ret[1]);
810
- }
811
- return takeFromExternrefTable0(ret[0]);
812
- }
813
- /**
814
- * @param {string} signature_text
815
- * @param {Uint8Array} signature_bytes
816
- */
817
- verifySignedWithInstallationKey(signature_text, signature_bytes) {
818
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
819
- const len0 = WASM_VECTOR_LEN;
820
- const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
821
- if (ret[1]) {
822
- throw takeFromExternrefTable0(ret[0]);
823
- }
824
- }
825
727
  /**
826
728
  * @returns {Identifier}
827
729
  */
@@ -884,13 +786,6 @@ export class Client {
884
786
  const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
885
787
  return ret;
886
788
  }
887
- /**
888
- * @returns {Promise<void>}
889
- */
890
- registerIdentity() {
891
- const ret = wasm.client_registerIdentity(this.__wbg_ptr);
892
- return ret;
893
- }
894
789
  /**
895
790
  * @returns {Promise<void>}
896
791
  */
@@ -960,6 +855,9 @@ export class Client {
960
855
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
961
856
  }
962
857
  }
858
+ clearAllStatistics() {
859
+ wasm.client_clearAllStatistics(this.__wbg_ptr);
860
+ }
963
861
  /**
964
862
  * @param {string} server_url
965
863
  * @returns {Promise<string>}
@@ -1009,6 +907,101 @@ export class Client {
1009
907
  const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1010
908
  return ret;
1011
909
  }
910
+ /**
911
+ * @returns {SignatureRequestHandle | undefined}
912
+ */
913
+ createInboxSignatureRequest() {
914
+ const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
915
+ if (ret[2]) {
916
+ throw takeFromExternrefTable0(ret[1]);
917
+ }
918
+ return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
919
+ }
920
+ /**
921
+ * @param {Identifier} new_identifier
922
+ * @returns {Promise<SignatureRequestHandle>}
923
+ */
924
+ addWalletSignatureRequest(new_identifier) {
925
+ const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
926
+ return ret;
927
+ }
928
+ /**
929
+ * @param {Identifier} identifier
930
+ * @returns {Promise<SignatureRequestHandle>}
931
+ */
932
+ revokeWalletSignatureRequest(identifier) {
933
+ const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
934
+ return ret;
935
+ }
936
+ /**
937
+ * @returns {Promise<SignatureRequestHandle>}
938
+ */
939
+ revokeAllOtherInstallationsSignatureRequest() {
940
+ const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
941
+ return ret;
942
+ }
943
+ /**
944
+ * @param {Uint8Array[]} installation_ids
945
+ * @returns {Promise<SignatureRequestHandle>}
946
+ */
947
+ revokeInstallationsSignatureRequest(installation_ids) {
948
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
949
+ const len0 = WASM_VECTOR_LEN;
950
+ const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
951
+ return ret;
952
+ }
953
+ /**
954
+ * @param {Identifier} new_recovery_identifier
955
+ * @returns {Promise<SignatureRequestHandle>}
956
+ */
957
+ changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
958
+ const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
959
+ return ret;
960
+ }
961
+ /**
962
+ * @param {SignatureRequestHandle} signature_request
963
+ * @returns {Promise<void>}
964
+ */
965
+ applySignatureRequest(signature_request) {
966
+ _assertClass(signature_request, SignatureRequestHandle);
967
+ const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
968
+ return ret;
969
+ }
970
+ /**
971
+ * @param {SignatureRequestHandle} signature_request
972
+ * @returns {Promise<void>}
973
+ */
974
+ registerIdentity(signature_request) {
975
+ _assertClass(signature_request, SignatureRequestHandle);
976
+ var ptr0 = signature_request.__destroy_into_raw();
977
+ const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
978
+ return ret;
979
+ }
980
+ /**
981
+ * @param {string} signature_text
982
+ * @returns {Uint8Array}
983
+ */
984
+ signWithInstallationKey(signature_text) {
985
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
986
+ const len0 = WASM_VECTOR_LEN;
987
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
988
+ if (ret[2]) {
989
+ throw takeFromExternrefTable0(ret[1]);
990
+ }
991
+ return takeFromExternrefTable0(ret[0]);
992
+ }
993
+ /**
994
+ * @param {string} signature_text
995
+ * @param {Uint8Array} signature_bytes
996
+ */
997
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
998
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
999
+ const len0 = WASM_VECTOR_LEN;
1000
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
1001
+ if (ret[1]) {
1002
+ throw takeFromExternrefTable0(ret[0]);
1003
+ }
1004
+ }
1012
1005
  /**
1013
1006
  * @param {Consent[]} records
1014
1007
  * @returns {Promise<void>}
@@ -3217,7 +3210,7 @@ export class KeyPackageStatus {
3217
3210
  * @returns {Lifetime | undefined}
3218
3211
  */
3219
3212
  get lifetime() {
3220
- const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
3213
+ const ret = wasm.__wbg_get_createdmoptions_messageDisappearingSettings(this.__wbg_ptr);
3221
3214
  return ret === 0 ? undefined : Lifetime.__wrap(ret);
3222
3215
  }
3223
3216
  /**
@@ -3229,7 +3222,7 @@ export class KeyPackageStatus {
3229
3222
  _assertClass(arg0, Lifetime);
3230
3223
  ptr0 = arg0.__destroy_into_raw();
3231
3224
  }
3232
- wasm.__wbg_set_keypackagestatus_lifetime(this.__wbg_ptr, ptr0);
3225
+ wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
3233
3226
  }
3234
3227
  /**
3235
3228
  * @returns {string | undefined}
@@ -3282,27 +3275,27 @@ export class Lifetime {
3282
3275
  * @returns {bigint}
3283
3276
  */
3284
3277
  get not_before() {
3285
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3278
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3286
3279
  return BigInt.asUintN(64, ret);
3287
3280
  }
3288
3281
  /**
3289
3282
  * @param {bigint} arg0
3290
3283
  */
3291
3284
  set not_before(arg0) {
3292
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3285
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3293
3286
  }
3294
3287
  /**
3295
3288
  * @returns {bigint}
3296
3289
  */
3297
3290
  get not_after() {
3298
- const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
3291
+ const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
3299
3292
  return BigInt.asUintN(64, ret);
3300
3293
  }
3301
3294
  /**
3302
3295
  * @param {bigint} arg0
3303
3296
  */
3304
3297
  set not_after(arg0) {
3305
- wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
3298
+ wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
3306
3299
  }
3307
3300
  }
3308
3301
 
@@ -3367,7 +3360,7 @@ export class ListConversationsOptions {
3367
3360
  * @param {bigint | null} [arg0]
3368
3361
  */
3369
3362
  set createdAfterNs(arg0) {
3370
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3363
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3371
3364
  }
3372
3365
  /**
3373
3366
  * @returns {bigint | undefined}
@@ -3474,7 +3467,7 @@ export class ListMessagesOptions {
3474
3467
  * @param {bigint | null} [arg0]
3475
3468
  */
3476
3469
  set sentBeforeNs(arg0) {
3477
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3470
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3478
3471
  }
3479
3472
  /**
3480
3473
  * @returns {bigint | undefined}
@@ -3859,14 +3852,14 @@ export class MessageDisappearingSettings {
3859
3852
  * @returns {bigint}
3860
3853
  */
3861
3854
  get inNs() {
3862
- const ret = wasm.__wbg_get_messagedisappearingsettings_inNs(this.__wbg_ptr);
3855
+ const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
3863
3856
  return ret;
3864
3857
  }
3865
3858
  /**
3866
3859
  * @param {bigint} arg0
3867
3860
  */
3868
3861
  set inNs(arg0) {
3869
- wasm.__wbg_set_messagedisappearingsettings_inNs(this.__wbg_ptr, arg0);
3862
+ wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
3870
3863
  }
3871
3864
  /**
3872
3865
  * @param {bigint} from_ns
@@ -4348,7 +4341,7 @@ export class Reaction {
4348
4341
  set reference(arg0) {
4349
4342
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4350
4343
  const len0 = WASM_VECTOR_LEN;
4351
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
4344
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4352
4345
  }
4353
4346
  /**
4354
4347
  * @returns {string}
@@ -4371,7 +4364,7 @@ export class Reaction {
4371
4364
  set referenceInboxId(arg0) {
4372
4365
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4373
4366
  const len0 = WASM_VECTOR_LEN;
4374
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
4367
+ wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
4375
4368
  }
4376
4369
  /**
4377
4370
  * @returns {ReactionAction}
@@ -4642,6 +4635,69 @@ export class RemoteAttachmentInfo {
4642
4635
  }
4643
4636
  }
4644
4637
 
4638
+ const SignatureRequestHandleFinalization = (typeof FinalizationRegistry === 'undefined')
4639
+ ? { register: () => {}, unregister: () => {} }
4640
+ : new FinalizationRegistry(ptr => wasm.__wbg_signaturerequesthandle_free(ptr >>> 0, 1));
4641
+
4642
+ export class SignatureRequestHandle {
4643
+
4644
+ static __wrap(ptr) {
4645
+ ptr = ptr >>> 0;
4646
+ const obj = Object.create(SignatureRequestHandle.prototype);
4647
+ obj.__wbg_ptr = ptr;
4648
+ SignatureRequestHandleFinalization.register(obj, obj.__wbg_ptr, obj);
4649
+ return obj;
4650
+ }
4651
+
4652
+ __destroy_into_raw() {
4653
+ const ptr = this.__wbg_ptr;
4654
+ this.__wbg_ptr = 0;
4655
+ SignatureRequestHandleFinalization.unregister(this);
4656
+ return ptr;
4657
+ }
4658
+
4659
+ free() {
4660
+ const ptr = this.__destroy_into_raw();
4661
+ wasm.__wbg_signaturerequesthandle_free(ptr, 0);
4662
+ }
4663
+ /**
4664
+ * @returns {Promise<string>}
4665
+ */
4666
+ signatureText() {
4667
+ const ret = wasm.signaturerequesthandle_signatureText(this.__wbg_ptr);
4668
+ return ret;
4669
+ }
4670
+ /**
4671
+ * @param {Uint8Array} signature_bytes
4672
+ * @returns {Promise<void>}
4673
+ */
4674
+ addEcdsaSignature(signature_bytes) {
4675
+ const ret = wasm.signaturerequesthandle_addEcdsaSignature(this.__wbg_ptr, signature_bytes);
4676
+ return ret;
4677
+ }
4678
+ /**
4679
+ * @param {PasskeySignature} signature
4680
+ * @returns {Promise<void>}
4681
+ */
4682
+ addPasskeySignature(signature) {
4683
+ _assertClass(signature, PasskeySignature);
4684
+ var ptr0 = signature.__destroy_into_raw();
4685
+ const ret = wasm.signaturerequesthandle_addPasskeySignature(this.__wbg_ptr, ptr0);
4686
+ return ret;
4687
+ }
4688
+ /**
4689
+ * @param {Identifier} account_identifier
4690
+ * @param {Uint8Array} signature_bytes
4691
+ * @param {bigint} chain_id
4692
+ * @param {bigint | null} [block_number]
4693
+ * @returns {Promise<void>}
4694
+ */
4695
+ addScwSignature(account_identifier, signature_bytes, chain_id, block_number) {
4696
+ const ret = wasm.signaturerequesthandle_addScwSignature(this.__wbg_ptr, account_identifier, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
4697
+ return ret;
4698
+ }
4699
+ }
4700
+
4645
4701
  const StreamCloserFinalization = (typeof FinalizationRegistry === 'undefined')
4646
4702
  ? { register: () => {}, unregister: () => {} }
4647
4703
  : new FinalizationRegistry(ptr => wasm.__wbg_streamcloser_free(ptr >>> 0, 1));
@@ -5203,7 +5259,7 @@ function __wbg_get_imports() {
5203
5259
  const a = state0.a;
5204
5260
  state0.a = 0;
5205
5261
  try {
5206
- return __wbg_adapter_774(a, state0.b, arg0, arg1);
5262
+ return __wbg_adapter_780(a, state0.b, arg0, arg1);
5207
5263
  } finally {
5208
5264
  state0.a = a;
5209
5265
  }
@@ -5315,19 +5371,19 @@ function __wbg_get_imports() {
5315
5371
  const ret = arg0.now();
5316
5372
  return ret;
5317
5373
  };
5318
- imports.wbg.__wbg_onconsentupdate_f1fb42cc2ff15d86 = function(arg0, arg1) {
5374
+ imports.wbg.__wbg_onconsentupdate_f8105588c9e804b8 = function(arg0, arg1) {
5319
5375
  arg0.on_consent_update(arg1);
5320
5376
  };
5321
- imports.wbg.__wbg_onconversation_1360ce64782d004d = function(arg0, arg1) {
5377
+ imports.wbg.__wbg_onconversation_55400867b020173b = function(arg0, arg1) {
5322
5378
  arg0.on_conversation(Conversation.__wrap(arg1));
5323
5379
  };
5324
- imports.wbg.__wbg_onerror_3460845a0ed0d5bb = function(arg0, arg1) {
5380
+ imports.wbg.__wbg_onerror_0c7ab85f5c732a56 = function(arg0, arg1) {
5325
5381
  arg0.on_error(arg1);
5326
5382
  };
5327
- imports.wbg.__wbg_onmessage_41cbe56dc22058f1 = function(arg0, arg1) {
5383
+ imports.wbg.__wbg_onmessage_62db180abce496e7 = function(arg0, arg1) {
5328
5384
  arg0.on_message(Message.__wrap(arg1));
5329
5385
  };
5330
- imports.wbg.__wbg_onuserpreferenceupdate_ebf9a59554754d98 = function(arg0, arg1, arg2) {
5386
+ imports.wbg.__wbg_onuserpreferenceupdate_2c7863b671f23eed = function(arg0, arg1, arg2) {
5331
5387
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5332
5388
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5333
5389
  arg0.on_user_preference_update(v0);
@@ -5477,6 +5533,10 @@ function __wbg_get_imports() {
5477
5533
  const ret = arg0.signal;
5478
5534
  return ret;
5479
5535
  };
5536
+ imports.wbg.__wbg_signaturerequesthandle_new = function(arg0) {
5537
+ const ret = SignatureRequestHandle.__wrap(arg0);
5538
+ return ret;
5539
+ };
5480
5540
  imports.wbg.__wbg_size_f9d54556ad844dc3 = function(arg0) {
5481
5541
  const ret = arg0.size;
5482
5542
  return ret;
@@ -5614,20 +5674,20 @@ function __wbg_get_imports() {
5614
5674
  const ret = false;
5615
5675
  return ret;
5616
5676
  };
5617
- imports.wbg.__wbindgen_closure_wrapper17370 = function(arg0, arg1, arg2) {
5618
- const ret = makeMutClosure(arg0, arg1, 4124, __wbg_adapter_50);
5677
+ imports.wbg.__wbindgen_closure_wrapper17681 = function(arg0, arg1, arg2) {
5678
+ const ret = makeMutClosure(arg0, arg1, 4239, __wbg_adapter_50);
5619
5679
  return ret;
5620
5680
  };
5621
- imports.wbg.__wbindgen_closure_wrapper17530 = function(arg0, arg1, arg2) {
5622
- const ret = makeMutClosure(arg0, arg1, 4182, __wbg_adapter_53);
5681
+ imports.wbg.__wbindgen_closure_wrapper17841 = function(arg0, arg1, arg2) {
5682
+ const ret = makeMutClosure(arg0, arg1, 4297, __wbg_adapter_53);
5623
5683
  return ret;
5624
5684
  };
5625
- imports.wbg.__wbindgen_closure_wrapper20634 = function(arg0, arg1, arg2) {
5626
- const ret = makeMutClosure(arg0, arg1, 4488, __wbg_adapter_56);
5685
+ imports.wbg.__wbindgen_closure_wrapper20956 = function(arg0, arg1, arg2) {
5686
+ const ret = makeMutClosure(arg0, arg1, 4604, __wbg_adapter_56);
5627
5687
  return ret;
5628
5688
  };
5629
- imports.wbg.__wbindgen_closure_wrapper20744 = function(arg0, arg1, arg2) {
5630
- const ret = makeMutClosure(arg0, arg1, 4499, __wbg_adapter_59);
5689
+ imports.wbg.__wbindgen_closure_wrapper21066 = function(arg0, arg1, arg2) {
5690
+ const ret = makeMutClosure(arg0, arg1, 4615, __wbg_adapter_59);
5631
5691
  return ret;
5632
5692
  };
5633
5693
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file