@bitwarden/sdk-internal 0.2.0-main.402 → 0.2.0-main.403

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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 868dace5d0881b66b5c543edd9053cae2566adf2
1
+ 0107af75bc923b125b7c04a0f14b7c2403bb78b5
@@ -115,6 +115,12 @@ export enum LoginLinkedIdType {
115
115
  Username = 100,
116
116
  Password = 101,
117
117
  }
118
+ export enum RsaError {
119
+ Decryption = 0,
120
+ Encryption = 1,
121
+ KeyParse = 2,
122
+ KeySerialize = 3,
123
+ }
118
124
  export enum SecureNoteType {
119
125
  Generic = 0,
120
126
  }
@@ -2424,13 +2430,22 @@ export class PureCrypto {
2424
2430
  master_key: Uint8Array,
2425
2431
  ): Uint8Array;
2426
2432
  /**
2427
- * Given an encrypted private RSA key and the symmetric key it is wrapped with, this returns
2428
- * the corresponding public RSA key in DER format.
2433
+ * Given a decrypted private RSA key PKCS8 DER this
2434
+ * returns the corresponding public RSA key in DER format.
2429
2435
  */
2430
- static rsa_extract_public_key(
2431
- encrypted_private_key: string,
2432
- wrapping_key: Uint8Array,
2433
- ): Uint8Array;
2436
+ static rsa_extract_public_key(private_key: Uint8Array): Uint8Array;
2437
+ /**
2438
+ * Generates a new RSA key pair and returns the private key
2439
+ */
2440
+ static rsa_generate_keypair(): Uint8Array;
2441
+ /**
2442
+ * Decrypts data using RSAES-OAEP with SHA-1
2443
+ */
2444
+ static rsa_decrypt_data(encrypted_data: Uint8Array, private_key: Uint8Array): Uint8Array;
2445
+ /**
2446
+ * Encrypts data using RSAES-OAEP with SHA-1
2447
+ */
2448
+ static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
2434
2449
  }
2435
2450
  /**
2436
2451
  * The `SendAccessClient` is used to interact with the Bitwarden API to get send access tokens.
@@ -868,10 +868,14 @@ export function isEncryptFileError(error) {
868
868
  }
869
869
  }
870
870
 
871
- function wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(arg0, arg1, arg2) {
871
+ function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
872
+ wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
873
+ }
874
+
875
+ function wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1(arg0, arg1, arg2) {
872
876
  try {
873
877
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
874
- wasm.wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(
878
+ wasm.wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1(
875
879
  retptr,
876
880
  arg0,
877
881
  arg1,
@@ -887,12 +891,8 @@ function wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5(arg0, arg
887
891
  }
888
892
  }
889
893
 
890
- function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
891
- wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
892
- }
893
-
894
- function wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(arg0, arg1, arg2) {
895
- wasm.wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5(
894
+ function wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559(arg0, arg1, arg2) {
895
+ wasm.wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559(
896
896
  arg0,
897
897
  arg1,
898
898
  addHeapObject(arg2),
@@ -1042,6 +1042,19 @@ export const LoginLinkedIdType = Object.freeze({
1042
1042
  Password: 101,
1043
1043
  101: "Password",
1044
1044
  });
1045
+ /**
1046
+ * @enum {0 | 1 | 2 | 3}
1047
+ */
1048
+ export const RsaError = Object.freeze({
1049
+ Decryption: 0,
1050
+ 0: "Decryption",
1051
+ Encryption: 1,
1052
+ 1: "Encryption",
1053
+ KeyParse: 2,
1054
+ 2: "KeyParse",
1055
+ KeySerialize: 3,
1056
+ 3: "KeySerialize",
1057
+ });
1045
1058
  /**
1046
1059
  * @enum {0}
1047
1060
  */
@@ -4012,24 +4025,95 @@ export class PureCrypto {
4012
4025
  }
4013
4026
  }
4014
4027
  /**
4015
- * Given an encrypted private RSA key and the symmetric key it is wrapped with, this returns
4016
- * the corresponding public RSA key in DER format.
4017
- * @param {string} encrypted_private_key
4018
- * @param {Uint8Array} wrapping_key
4028
+ * Given a decrypted private RSA key PKCS8 DER this
4029
+ * returns the corresponding public RSA key in DER format.
4030
+ * @param {Uint8Array} private_key
4019
4031
  * @returns {Uint8Array}
4020
4032
  */
4021
- static rsa_extract_public_key(encrypted_private_key, wrapping_key) {
4033
+ static rsa_extract_public_key(private_key) {
4022
4034
  try {
4023
4035
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4024
- const ptr0 = passStringToWasm0(
4025
- encrypted_private_key,
4026
- wasm.__wbindgen_malloc,
4027
- wasm.__wbindgen_realloc,
4028
- );
4036
+ const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
4029
4037
  const len0 = WASM_VECTOR_LEN;
4030
- const ptr1 = passArray8ToWasm0(wrapping_key, wasm.__wbindgen_malloc);
4038
+ wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0);
4039
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4040
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4041
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4042
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
4043
+ if (r3) {
4044
+ throw takeObject(r2);
4045
+ }
4046
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
4047
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
4048
+ return v2;
4049
+ } finally {
4050
+ wasm.__wbindgen_add_to_stack_pointer(16);
4051
+ }
4052
+ }
4053
+ /**
4054
+ * Generates a new RSA key pair and returns the private key
4055
+ * @returns {Uint8Array}
4056
+ */
4057
+ static rsa_generate_keypair() {
4058
+ try {
4059
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4060
+ wasm.purecrypto_rsa_generate_keypair(retptr);
4061
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4062
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4063
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4064
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
4065
+ if (r3) {
4066
+ throw takeObject(r2);
4067
+ }
4068
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
4069
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
4070
+ return v1;
4071
+ } finally {
4072
+ wasm.__wbindgen_add_to_stack_pointer(16);
4073
+ }
4074
+ }
4075
+ /**
4076
+ * Decrypts data using RSAES-OAEP with SHA-1
4077
+ * @param {Uint8Array} encrypted_data
4078
+ * @param {Uint8Array} private_key
4079
+ * @returns {Uint8Array}
4080
+ */
4081
+ static rsa_decrypt_data(encrypted_data, private_key) {
4082
+ try {
4083
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4084
+ const ptr0 = passArray8ToWasm0(encrypted_data, wasm.__wbindgen_malloc);
4085
+ const len0 = WASM_VECTOR_LEN;
4086
+ const ptr1 = passArray8ToWasm0(private_key, wasm.__wbindgen_malloc);
4087
+ const len1 = WASM_VECTOR_LEN;
4088
+ wasm.purecrypto_rsa_decrypt_data(retptr, ptr0, len0, ptr1, len1);
4089
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4090
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4091
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4092
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
4093
+ if (r3) {
4094
+ throw takeObject(r2);
4095
+ }
4096
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
4097
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
4098
+ return v3;
4099
+ } finally {
4100
+ wasm.__wbindgen_add_to_stack_pointer(16);
4101
+ }
4102
+ }
4103
+ /**
4104
+ * Encrypts data using RSAES-OAEP with SHA-1
4105
+ * @param {Uint8Array} plain_data
4106
+ * @param {Uint8Array} public_key
4107
+ * @returns {Uint8Array}
4108
+ */
4109
+ static rsa_encrypt_data(plain_data, public_key) {
4110
+ try {
4111
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4112
+ const ptr0 = passArray8ToWasm0(plain_data, wasm.__wbindgen_malloc);
4113
+ const len0 = WASM_VECTOR_LEN;
4114
+ const ptr1 = passArray8ToWasm0(public_key, wasm.__wbindgen_malloc);
4031
4115
  const len1 = WASM_VECTOR_LEN;
4032
- wasm.purecrypto_rsa_extract_public_key(retptr, ptr0, len0, ptr1, len1);
4116
+ wasm.purecrypto_rsa_encrypt_data(retptr, ptr0, len0, ptr1, len1);
4033
4117
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4034
4118
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4035
4119
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -4461,7 +4545,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
4461
4545
  }, arguments);
4462
4546
  }
4463
4547
 
4464
- export function __wbg_cipher_ed16a34ea24872d4(arg0) {
4548
+ export function __wbg_cipher_1cdb0d79866a6837(arg0) {
4465
4549
  const ret = getObject(arg0).cipher;
4466
4550
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4467
4551
  }
@@ -4554,7 +4638,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4554
4638
  return addHeapObject(ret);
4555
4639
  }
4556
4640
 
4557
- export function __wbg_folder_0b0299bd1cc85c67(arg0) {
4641
+ export function __wbg_folder_bf0beccb0458352a(arg0) {
4558
4642
  const ret = getObject(arg0).folder;
4559
4643
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4560
4644
  }
@@ -4581,7 +4665,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4581
4665
  return ret;
4582
4666
  }
4583
4667
 
4584
- export function __wbg_get_4c60beeeb1154fc2() {
4668
+ export function __wbg_get_1b7efe6c2c00e86d() {
4585
4669
  return handleError(function (arg0, arg1, arg2) {
4586
4670
  let deferred0_0;
4587
4671
  let deferred0_1;
@@ -4596,7 +4680,12 @@ export function __wbg_get_4c60beeeb1154fc2() {
4596
4680
  }, arguments);
4597
4681
  }
4598
4682
 
4599
- export function __wbg_get_756969d3b9917d61() {
4683
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4684
+ const ret = getObject(arg0)[arg1 >>> 0];
4685
+ return addHeapObject(ret);
4686
+ }
4687
+
4688
+ export function __wbg_get_ab3c82eecdf4bc91() {
4600
4689
  return handleError(function (arg0, arg1, arg2) {
4601
4690
  let deferred0_0;
4602
4691
  let deferred0_1;
@@ -4611,12 +4700,7 @@ export function __wbg_get_756969d3b9917d61() {
4611
4700
  }, arguments);
4612
4701
  }
4613
4702
 
4614
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
4615
- const ret = getObject(arg0)[arg1 >>> 0];
4616
- return addHeapObject(ret);
4617
- }
4618
-
4619
- export function __wbg_get_access_token_7db381e38e606e59(arg0) {
4703
+ export function __wbg_get_access_token_418fcb38cdc8413d(arg0) {
4620
4704
  const ret = getObject(arg0).get_access_token();
4621
4705
  return addHeapObject(ret);
4622
4706
  }
@@ -4812,14 +4896,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
4812
4896
  return ret;
4813
4897
  }
4814
4898
 
4815
- export function __wbg_list_3845e5691ae026d3() {
4899
+ export function __wbg_list_056c98609a1fb3ef() {
4816
4900
  return handleError(function (arg0) {
4817
4901
  const ret = getObject(arg0).list();
4818
4902
  return addHeapObject(ret);
4819
4903
  }, arguments);
4820
4904
  }
4821
4905
 
4822
- export function __wbg_list_b4e456c48b5b30f2() {
4906
+ export function __wbg_list_78accfdd0a91ad5f() {
4823
4907
  return handleError(function (arg0) {
4824
4908
  const ret = getObject(arg0).list();
4825
4909
  return addHeapObject(ret);
@@ -5063,7 +5147,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
5063
5147
  }, arguments);
5064
5148
  }
5065
5149
 
5066
- export function __wbg_remove_2008f1dde7b91f51() {
5150
+ export function __wbg_remove_2d6d9bd3eaac392b() {
5067
5151
  return handleError(function (arg0, arg1, arg2) {
5068
5152
  let deferred0_0;
5069
5153
  let deferred0_1;
@@ -5078,7 +5162,7 @@ export function __wbg_remove_2008f1dde7b91f51() {
5078
5162
  }, arguments);
5079
5163
  }
5080
5164
 
5081
- export function __wbg_remove_bfbaa9c2aacce2f3() {
5165
+ export function __wbg_remove_7648970db543e157() {
5082
5166
  return handleError(function (arg0, arg1, arg2) {
5083
5167
  let deferred0_0;
5084
5168
  let deferred0_1;
@@ -5128,7 +5212,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5128
5212
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5129
5213
  }
5130
5214
 
5131
- export function __wbg_set_512ce00f6a1a36e7() {
5215
+ export function __wbg_set_5235cc0f26ed539b() {
5132
5216
  return handleError(function (arg0, arg1, arg2, arg3) {
5133
5217
  let deferred0_0;
5134
5218
  let deferred0_1;
@@ -5143,12 +5227,7 @@ export function __wbg_set_512ce00f6a1a36e7() {
5143
5227
  }, arguments);
5144
5228
  }
5145
5229
 
5146
- export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5147
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5148
- return addHeapObject(ret);
5149
- }
5150
-
5151
- export function __wbg_set_b17bc1811a1e440e() {
5230
+ export function __wbg_set_7f395f02ecd2904e() {
5152
5231
  return handleError(function (arg0, arg1, arg2, arg3) {
5153
5232
  let deferred0_0;
5154
5233
  let deferred0_1;
@@ -5163,6 +5242,11 @@ export function __wbg_set_b17bc1811a1e440e() {
5163
5242
  }, arguments);
5164
5243
  }
5165
5244
 
5245
+ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5246
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5247
+ return addHeapObject(ret);
5248
+ }
5249
+
5166
5250
  export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5167
5251
  getObject(arg0).body = getObject(arg1);
5168
5252
  }
@@ -5346,13 +5430,13 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
5346
5430
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5347
5431
  }
5348
5432
 
5349
- export function __wbindgen_cast_1e9dc1058b799ead(arg0, arg1) {
5350
- // Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5433
+ export function __wbindgen_cast_1dc3b0d4f0abedd3(arg0, arg1) {
5434
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5351
5435
  const ret = makeMutClosure(
5352
5436
  arg0,
5353
5437
  arg1,
5354
- wasm.wasm_bindgen__closure__destroy__h1470697583ce3ba3,
5355
- wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
5438
+ wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5439
+ wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559,
5356
5440
  );
5357
5441
  return addHeapObject(ret);
5358
5442
  }
@@ -5363,6 +5447,17 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5363
5447
  return addHeapObject(ret);
5364
5448
  }
5365
5449
 
5450
+ export function __wbindgen_cast_4042b341512ce63a(arg0, arg1) {
5451
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5452
+ const ret = makeMutClosure(
5453
+ arg0,
5454
+ arg1,
5455
+ wasm.wasm_bindgen__closure__destroy__h03de969722544a39,
5456
+ wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559,
5457
+ );
5458
+ return addHeapObject(ret);
5459
+ }
5460
+
5366
5461
  export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
5367
5462
  // Cast intrinsic for `U64 -> Externref`.
5368
5463
  const ret = BigInt.asUintN(64, arg0);
@@ -5402,23 +5497,23 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
5402
5497
  return addHeapObject(ret);
5403
5498
  }
5404
5499
 
5405
- export function __wbindgen_cast_c5e8bf91c85dc4ef(arg0, arg1) {
5406
- // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5500
+ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5501
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5502
+ const ret = getArrayU8FromWasm0(arg0, arg1);
5503
+ return addHeapObject(ret);
5504
+ }
5505
+
5506
+ export function __wbindgen_cast_d49c305f67640cb1(arg0, arg1) {
5507
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("Event")], shim_idx: 42, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5407
5508
  const ret = makeMutClosure(
5408
5509
  arg0,
5409
5510
  arg1,
5410
- wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5411
- wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5,
5511
+ wasm.wasm_bindgen__closure__destroy__h03de969722544a39,
5512
+ wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1,
5412
5513
  );
5413
5514
  return addHeapObject(ret);
5414
5515
  }
5415
5516
 
5416
- export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5417
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5418
- const ret = getArrayU8FromWasm0(arg0, arg1);
5419
- return addHeapObject(ret);
5420
- }
5421
-
5422
5517
  export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
5423
5518
  // Cast intrinsic for `F64 -> Externref`.
5424
5519
  const ret = arg0;
@@ -5436,17 +5531,6 @@ export function __wbindgen_cast_d87bfd09ab1288e4(arg0, arg1) {
5436
5531
  return addHeapObject(ret);
5437
5532
  }
5438
5533
 
5439
- export function __wbindgen_cast_daac1d8e48fc3ba0(arg0, arg1) {
5440
- // Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5441
- const ret = makeMutClosure(
5442
- arg0,
5443
- arg1,
5444
- wasm.wasm_bindgen__closure__destroy__h1470697583ce3ba3,
5445
- wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5,
5446
- );
5447
- return addHeapObject(ret);
5448
- }
5449
-
5450
5534
  export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
5451
5535
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5452
5536
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file
@@ -177,7 +177,16 @@ export const purecrypto_decrypt_user_key_with_master_key: (
177
177
  d: number,
178
178
  e: number,
179
179
  ) => void;
180
- export const purecrypto_rsa_extract_public_key: (
180
+ export const purecrypto_rsa_extract_public_key: (a: number, b: number, c: number) => void;
181
+ export const purecrypto_rsa_generate_keypair: (a: number) => void;
182
+ export const purecrypto_rsa_decrypt_data: (
183
+ a: number,
184
+ b: number,
185
+ c: number,
186
+ d: number,
187
+ e: number,
188
+ ) => void;
189
+ export const purecrypto_rsa_encrypt_data: (
181
190
  a: number,
182
191
  b: number,
183
192
  c: number,
@@ -438,19 +447,19 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
438
447
  export const __wbg_get_outgoingmessage_destination: (a: number) => number;
439
448
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
440
449
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
441
- export const wasm_bindgen__convert__closures_____invoke__h1a8786b7bd5c2cf5: (
450
+ export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
442
451
  a: number,
443
452
  b: number,
444
- c: number,
445
- d: number,
446
453
  ) => void;
447
- export const wasm_bindgen__closure__destroy__h1470697583ce3ba3: (a: number, b: number) => void;
448
- export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
454
+ export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
455
+ export const wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1: (
449
456
  a: number,
450
457
  b: number,
458
+ c: number,
459
+ d: number,
451
460
  ) => void;
452
- export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
453
- export const wasm_bindgen__convert__closures_____invoke__hdc41283f124c06e5: (
461
+ export const wasm_bindgen__closure__destroy__h03de969722544a39: (a: number, b: number) => void;
462
+ export const wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559: (
454
463
  a: number,
455
464
  b: number,
456
465
  c: number,