@bitwarden/commercial-sdk-internal 0.2.0-main.449 → 0.2.0-main.451

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.
@@ -254,33 +254,21 @@ function passArray8ToWasm0(arg, malloc) {
254
254
  return ptr;
255
255
  }
256
256
  /**
257
- * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
258
- * to an OpenSSH private key with public key and fingerprint
257
+ * Generate a new SSH key pair
259
258
  *
260
259
  * # Arguments
261
- * - `imported_key` - The private key to convert
262
- * - `password` - The password to use for decrypting the key
260
+ * - `key_algorithm` - The algorithm to use for the key pair
263
261
  *
264
262
  * # Returns
265
- * - `Ok(SshKey)` if the key was successfully coneverted
266
- * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
267
- * - `Err(WrongPassword)` if the password provided is incorrect
268
- * - `Err(ParsingError)` if the key could not be parsed
269
- * - `Err(UnsupportedKeyType)` if the key type is not supported
270
- * @param {string} imported_key
271
- * @param {string | null} [password]
263
+ * - `Ok(SshKey)` if the key was successfully generated
264
+ * - `Err(KeyGenerationError)` if the key could not be generated
265
+ * @param {KeyAlgorithm} key_algorithm
272
266
  * @returns {SshKeyView}
273
267
  */
274
- exports.import_ssh_key = function (imported_key, password) {
268
+ exports.generate_ssh_key = function (key_algorithm) {
275
269
  try {
276
270
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
277
- const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
278
- const len0 = WASM_VECTOR_LEN;
279
- var ptr1 = isLikeNone(password)
280
- ? 0
281
- : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
- var len1 = WASM_VECTOR_LEN;
283
- wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
271
+ wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
284
272
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
285
273
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
286
274
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -294,21 +282,33 @@ exports.import_ssh_key = function (imported_key, password) {
294
282
  };
295
283
 
296
284
  /**
297
- * Generate a new SSH key pair
285
+ * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
286
+ * to an OpenSSH private key with public key and fingerprint
298
287
  *
299
288
  * # Arguments
300
- * - `key_algorithm` - The algorithm to use for the key pair
289
+ * - `imported_key` - The private key to convert
290
+ * - `password` - The password to use for decrypting the key
301
291
  *
302
292
  * # Returns
303
- * - `Ok(SshKey)` if the key was successfully generated
304
- * - `Err(KeyGenerationError)` if the key could not be generated
305
- * @param {KeyAlgorithm} key_algorithm
293
+ * - `Ok(SshKey)` if the key was successfully coneverted
294
+ * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
295
+ * - `Err(WrongPassword)` if the password provided is incorrect
296
+ * - `Err(ParsingError)` if the key could not be parsed
297
+ * - `Err(UnsupportedKeyType)` if the key type is not supported
298
+ * @param {string} imported_key
299
+ * @param {string | null} [password]
306
300
  * @returns {SshKeyView}
307
301
  */
308
- exports.generate_ssh_key = function (key_algorithm) {
302
+ exports.import_ssh_key = function (imported_key, password) {
309
303
  try {
310
304
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
311
- wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
305
+ const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
+ const len0 = WASM_VECTOR_LEN;
307
+ var ptr1 = isLikeNone(password)
308
+ ? 0
309
+ : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
310
+ var len1 = WASM_VECTOR_LEN;
311
+ wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
312
312
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
313
313
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
314
314
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -404,9 +404,9 @@ exports.isAccountCryptographyInitializationError = function (error) {
404
404
  * @param {any} error
405
405
  * @returns {boolean}
406
406
  */
407
- exports.isMakeKeysError = function (error) {
407
+ exports.isCryptoClientError = function (error) {
408
408
  try {
409
- const ret = wasm.isMakeKeysError(addBorrowedObject(error));
409
+ const ret = wasm.isCryptoClientError(addBorrowedObject(error));
410
410
  return ret !== 0;
411
411
  } finally {
412
412
  heap[stack_pointer++] = undefined;
@@ -430,9 +430,9 @@ exports.isEnrollAdminPasswordResetError = function (error) {
430
430
  * @param {any} error
431
431
  * @returns {boolean}
432
432
  */
433
- exports.isDeriveKeyConnectorError = function (error) {
433
+ exports.isMakeKeysError = function (error) {
434
434
  try {
435
- const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
435
+ const ret = wasm.isMakeKeysError(addBorrowedObject(error));
436
436
  return ret !== 0;
437
437
  } finally {
438
438
  heap[stack_pointer++] = undefined;
@@ -443,9 +443,9 @@ exports.isDeriveKeyConnectorError = function (error) {
443
443
  * @param {any} error
444
444
  * @returns {boolean}
445
445
  */
446
- exports.isCryptoClientError = function (error) {
446
+ exports.isDeriveKeyConnectorError = function (error) {
447
447
  try {
448
- const ret = wasm.isCryptoClientError(addBorrowedObject(error));
448
+ const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
449
449
  return ret !== 0;
450
450
  } finally {
451
451
  heap[stack_pointer++] = undefined;
@@ -902,9 +902,9 @@ exports.isRestoreCipherError = function (error) {
902
902
  * @param {any} error
903
903
  * @returns {boolean}
904
904
  */
905
- exports.isEncryptFileError = function (error) {
905
+ exports.isDecryptFileError = function (error) {
906
906
  try {
907
- const ret = wasm.isEncryptFileError(addBorrowedObject(error));
907
+ const ret = wasm.isDecryptFileError(addBorrowedObject(error));
908
908
  return ret !== 0;
909
909
  } finally {
910
910
  heap[stack_pointer++] = undefined;
@@ -915,9 +915,9 @@ exports.isEncryptFileError = function (error) {
915
915
  * @param {any} error
916
916
  * @returns {boolean}
917
917
  */
918
- exports.isDecryptFileError = function (error) {
918
+ exports.isEncryptFileError = function (error) {
919
919
  try {
920
- const ret = wasm.isDecryptFileError(addBorrowedObject(error));
920
+ const ret = wasm.isEncryptFileError(addBorrowedObject(error));
921
921
  return ret !== 0;
922
922
  } finally {
923
923
  heap[stack_pointer++] = undefined;
@@ -976,10 +976,22 @@ exports.isGetFolderError = function (error) {
976
976
  }
977
977
  };
978
978
 
979
- function wasm_bindgen__convert__closures_____invoke__he146b106f849f26a(arg0, arg1, arg2) {
979
+ function wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(arg0, arg1, arg2) {
980
+ wasm.wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5(
981
+ arg0,
982
+ arg1,
983
+ addHeapObject(arg2),
984
+ );
985
+ }
986
+
987
+ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
988
+ wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
989
+ }
990
+
991
+ function wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000(arg0, arg1, arg2) {
980
992
  try {
981
993
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
982
- wasm.wasm_bindgen__convert__closures_____invoke__he146b106f849f26a(
994
+ wasm.wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000(
983
995
  retptr,
984
996
  arg0,
985
997
  arg1,
@@ -995,18 +1007,6 @@ function wasm_bindgen__convert__closures_____invoke__he146b106f849f26a(arg0, arg
995
1007
  }
996
1008
  }
997
1009
 
998
- function wasm_bindgen__convert__closures_____invoke__ha40d0e6540b33984(arg0, arg1, arg2) {
999
- wasm.wasm_bindgen__convert__closures_____invoke__ha40d0e6540b33984(
1000
- arg0,
1001
- arg1,
1002
- addHeapObject(arg2),
1003
- );
1004
- }
1005
-
1006
- function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1007
- wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1008
- }
1009
-
1010
1010
  function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
1011
1011
  wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(
1012
1012
  arg0,
@@ -4516,6 +4516,37 @@ class RegistrationClient {
4516
4516
  );
4517
4517
  return takeObject(ret);
4518
4518
  }
4519
+ /**
4520
+ * Initializes a new cryptographic state for a user and posts it to the server; enrolls the
4521
+ * user to key connector unlock.
4522
+ * @param {string} key_connector_url
4523
+ * @param {string} sso_org_identifier
4524
+ * @param {UserId} user_id
4525
+ * @returns {Promise<KeyConnectorRegistrationResult>}
4526
+ */
4527
+ post_keys_for_key_connector_registration(key_connector_url, sso_org_identifier, user_id) {
4528
+ const ptr0 = passStringToWasm0(
4529
+ key_connector_url,
4530
+ wasm.__wbindgen_malloc,
4531
+ wasm.__wbindgen_realloc,
4532
+ );
4533
+ const len0 = WASM_VECTOR_LEN;
4534
+ const ptr1 = passStringToWasm0(
4535
+ sso_org_identifier,
4536
+ wasm.__wbindgen_malloc,
4537
+ wasm.__wbindgen_realloc,
4538
+ );
4539
+ const len1 = WASM_VECTOR_LEN;
4540
+ const ret = wasm.registrationclient_post_keys_for_key_connector_registration(
4541
+ this.__wbg_ptr,
4542
+ ptr0,
4543
+ len0,
4544
+ ptr1,
4545
+ len1,
4546
+ addHeapObject(user_id),
4547
+ );
4548
+ return takeObject(ret);
4549
+ }
4519
4550
  }
4520
4551
  if (Symbol.dispose)
4521
4552
  RegistrationClient.prototype[Symbol.dispose] = RegistrationClient.prototype.free;
@@ -4944,7 +4975,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4944
4975
  }, arguments);
4945
4976
  };
4946
4977
 
4947
- exports.__wbg_cipher_94207c0dec4c374a = function (arg0) {
4978
+ exports.__wbg_cipher_af3e12eb9f7e34f7 = function (arg0) {
4948
4979
  const ret = getObject(arg0).cipher;
4949
4980
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4950
4981
  };
@@ -5037,7 +5068,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
5037
5068
  return addHeapObject(ret);
5038
5069
  };
5039
5070
 
5040
- exports.__wbg_folder_69e9f84611a5ec42 = function (arg0) {
5071
+ exports.__wbg_folder_291bbc6e2dc049c2 = function (arg0) {
5041
5072
  const ret = getObject(arg0).folder;
5042
5073
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5043
5074
  };
@@ -5070,7 +5101,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
5070
5101
  return ret;
5071
5102
  };
5072
5103
 
5073
- exports.__wbg_get_2986ad9f0f45d249 = function () {
5104
+ exports.__wbg_get_20f60fd2a0e1aba0 = function () {
5074
5105
  return handleError(function (arg0, arg1, arg2) {
5075
5106
  let deferred0_0;
5076
5107
  let deferred0_1;
@@ -5085,7 +5116,7 @@ exports.__wbg_get_2986ad9f0f45d249 = function () {
5085
5116
  }, arguments);
5086
5117
  };
5087
5118
 
5088
- exports.__wbg_get_3530ac255f00b422 = function () {
5119
+ exports.__wbg_get_61217513fb681869 = function () {
5089
5120
  return handleError(function (arg0, arg1, arg2) {
5090
5121
  let deferred0_0;
5091
5122
  let deferred0_1;
@@ -5105,7 +5136,7 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
5105
5136
  return addHeapObject(ret);
5106
5137
  };
5107
5138
 
5108
- exports.__wbg_get_access_token_f92acd5e32e8d8ad = function (arg0) {
5139
+ exports.__wbg_get_access_token_fab4341a9aa733a8 = function (arg0) {
5109
5140
  const ret = getObject(arg0).get_access_token();
5110
5141
  return addHeapObject(ret);
5111
5142
  };
@@ -5301,14 +5332,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
5301
5332
  return ret;
5302
5333
  };
5303
5334
 
5304
- exports.__wbg_list_6a0d55a7981428ab = function () {
5335
+ exports.__wbg_list_89563eff7fc4c21f = function () {
5305
5336
  return handleError(function (arg0) {
5306
5337
  const ret = getObject(arg0).list();
5307
5338
  return addHeapObject(ret);
5308
5339
  }, arguments);
5309
5340
  };
5310
5341
 
5311
- exports.__wbg_list_930311b58370e93a = function () {
5342
+ exports.__wbg_list_8a8baf839a77ac0a = function () {
5312
5343
  return handleError(function (arg0) {
5313
5344
  const ret = getObject(arg0).list();
5314
5345
  return addHeapObject(ret);
@@ -5552,7 +5583,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5552
5583
  }, arguments);
5553
5584
  };
5554
5585
 
5555
- exports.__wbg_remove_2a5dbaf0c8cdf929 = function () {
5586
+ exports.__wbg_remove_2cf051b966259adb = function () {
5556
5587
  return handleError(function (arg0, arg1, arg2) {
5557
5588
  let deferred0_0;
5558
5589
  let deferred0_1;
@@ -5567,7 +5598,7 @@ exports.__wbg_remove_2a5dbaf0c8cdf929 = function () {
5567
5598
  }, arguments);
5568
5599
  };
5569
5600
 
5570
- exports.__wbg_remove_efe0425662341c23 = function () {
5601
+ exports.__wbg_remove_4b1abd49b42474d3 = function () {
5571
5602
  return handleError(function (arg0, arg1, arg2) {
5572
5603
  let deferred0_0;
5573
5604
  let deferred0_1;
@@ -5613,11 +5644,26 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5613
5644
  return addHeapObject(ret);
5614
5645
  };
5615
5646
 
5647
+ exports.__wbg_set_171546e64ab663f1 = function () {
5648
+ return handleError(function (arg0, arg1, arg2, arg3) {
5649
+ let deferred0_0;
5650
+ let deferred0_1;
5651
+ try {
5652
+ deferred0_0 = arg1;
5653
+ deferred0_1 = arg2;
5654
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5655
+ return addHeapObject(ret);
5656
+ } finally {
5657
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5658
+ }
5659
+ }, arguments);
5660
+ };
5661
+
5616
5662
  exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5617
5663
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5618
5664
  };
5619
5665
 
5620
- exports.__wbg_set_626f81b1fe76096c = function () {
5666
+ exports.__wbg_set_5a0e4a6e6c6d1efc = function () {
5621
5667
  return handleError(function (arg0, arg1, arg2, arg3) {
5622
5668
  let deferred0_0;
5623
5669
  let deferred0_1;
@@ -5656,21 +5702,6 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5656
5702
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5657
5703
  };
5658
5704
 
5659
- exports.__wbg_set_d9e5ca08ad8e99a5 = function () {
5660
- return handleError(function (arg0, arg1, arg2, arg3) {
5661
- let deferred0_0;
5662
- let deferred0_1;
5663
- try {
5664
- deferred0_0 = arg1;
5665
- deferred0_1 = arg2;
5666
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5667
- return addHeapObject(ret);
5668
- } finally {
5669
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5670
- }
5671
- }, arguments);
5672
- };
5673
-
5674
5705
  exports.__wbg_set_headers_6926da238cd32ee4 = function (arg0, arg1) {
5675
5706
  getObject(arg0).headers = getObject(arg1);
5676
5707
  };
@@ -5835,36 +5866,36 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
5835
5866
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5836
5867
  };
5837
5868
 
5838
- exports.__wbindgen_cast_20857c511765411e = function (arg0, arg1) {
5839
- // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("Event")], shim_idx: 46, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5869
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5870
+ // Cast intrinsic for `Ref(String) -> Externref`.
5871
+ const ret = getStringFromWasm0(arg0, arg1);
5872
+ return addHeapObject(ret);
5873
+ };
5874
+
5875
+ exports.__wbindgen_cast_3a10e1a5d733093a = function (arg0, arg1) {
5876
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 324, function: Function { arguments: [Externref], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5840
5877
  const ret = makeMutClosure(
5841
5878
  arg0,
5842
5879
  arg1,
5843
- wasm.wasm_bindgen__closure__destroy__hb9785c609198ba41,
5844
- wasm_bindgen__convert__closures_____invoke__he146b106f849f26a,
5880
+ wasm.wasm_bindgen__closure__destroy__hc71695a401114797,
5881
+ wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5,
5845
5882
  );
5846
5883
  return addHeapObject(ret);
5847
5884
  };
5848
5885
 
5849
- exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5850
- // Cast intrinsic for `Ref(String) -> Externref`.
5851
- const ret = getStringFromWasm0(arg0, arg1);
5852
- return addHeapObject(ret);
5853
- };
5854
-
5855
5886
  exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
5856
5887
  // Cast intrinsic for `U64 -> Externref`.
5857
5888
  const ret = BigInt.asUintN(64, arg0);
5858
5889
  return addHeapObject(ret);
5859
5890
  };
5860
5891
 
5861
- exports.__wbindgen_cast_5774b2b6fba5c6d4 = function (arg0, arg1) {
5862
- // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5892
+ exports.__wbindgen_cast_4d264fdb14fbe142 = function (arg0, arg1) {
5893
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 324, function: Function { arguments: [], shim_idx: 325, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5863
5894
  const ret = makeMutClosure(
5864
5895
  arg0,
5865
5896
  arg1,
5866
- wasm.wasm_bindgen__closure__destroy__hb9785c609198ba41,
5867
- wasm_bindgen__convert__closures_____invoke__ha40d0e6540b33984,
5897
+ wasm.wasm_bindgen__closure__destroy__hc71695a401114797,
5898
+ wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d,
5868
5899
  );
5869
5900
  return addHeapObject(ret);
5870
5901
  };
@@ -5885,30 +5916,19 @@ exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
5885
5916
  return addHeapObject(ret);
5886
5917
  };
5887
5918
 
5888
- exports.__wbindgen_cast_999c2e74f2a852c3 = function (arg0, arg1) {
5889
- // Cast intrinsic for `Closure(Closure { dtor_idx: 562, function: Function { arguments: [], shim_idx: 314, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5890
- const ret = makeMutClosure(
5891
- arg0,
5892
- arg1,
5893
- wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11,
5894
- wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d,
5895
- );
5896
- return addHeapObject(ret);
5897
- };
5898
-
5899
5919
  exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5900
5920
  // Cast intrinsic for `I64 -> Externref`.
5901
5921
  const ret = arg0;
5902
5922
  return addHeapObject(ret);
5903
5923
  };
5904
5924
 
5905
- exports.__wbindgen_cast_aaf650ef6a5be3f2 = function (arg0, arg1) {
5906
- // Cast intrinsic for `Closure(Closure { dtor_idx: 313, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5925
+ exports.__wbindgen_cast_bf18027ee84acd62 = function (arg0, arg1) {
5926
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 573, function: Function { arguments: [], shim_idx: 325, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5907
5927
  const ret = makeMutClosure(
5908
5928
  arg0,
5909
5929
  arg1,
5910
- wasm.wasm_bindgen__closure__destroy__hc71695a401114797,
5911
- wasm_bindgen__convert__closures_____invoke__ha40d0e6540b33984,
5930
+ wasm.wasm_bindgen__closure__destroy__h666c8569a46b7e11,
5931
+ wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d,
5912
5932
  );
5913
5933
  return addHeapObject(ret);
5914
5934
  };
@@ -5919,19 +5939,30 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5919
5939
  return addHeapObject(ret);
5920
5940
  };
5921
5941
 
5942
+ exports.__wbindgen_cast_d3c442d81884e8e4 = function (arg0, arg1) {
5943
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5944
+ const ret = makeMutClosure(
5945
+ arg0,
5946
+ arg1,
5947
+ wasm.wasm_bindgen__closure__destroy__h7a79e3df9e7c7848,
5948
+ wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000,
5949
+ );
5950
+ return addHeapObject(ret);
5951
+ };
5952
+
5922
5953
  exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
5923
5954
  // Cast intrinsic for `F64 -> Externref`.
5924
5955
  const ret = arg0;
5925
5956
  return addHeapObject(ret);
5926
5957
  };
5927
5958
 
5928
- exports.__wbindgen_cast_de94229cd40e7152 = function (arg0, arg1) {
5929
- // Cast intrinsic for `Closure(Closure { dtor_idx: 313, function: Function { arguments: [], shim_idx: 314, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5959
+ exports.__wbindgen_cast_d9da8617cf4d65f6 = function (arg0, arg1) {
5960
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 43, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 46, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5930
5961
  const ret = makeMutClosure(
5931
5962
  arg0,
5932
5963
  arg1,
5933
- wasm.wasm_bindgen__closure__destroy__hc71695a401114797,
5934
- wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d,
5964
+ wasm.wasm_bindgen__closure__destroy__h7a79e3df9e7c7848,
5965
+ wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5,
5935
5966
  );
5936
5967
  return addHeapObject(ret);
5937
5968
  };
@@ -201,6 +201,14 @@ export const __wbg_authclient_free: (a: number, b: number) => void;
201
201
  export const __wbg_identityclient_free: (a: number, b: number) => void;
202
202
  export const authclient_identity: (a: number) => number;
203
203
  export const isRegistrationError: (a: number) => number;
204
+ export const registrationclient_post_keys_for_key_connector_registration: (
205
+ a: number,
206
+ b: number,
207
+ c: number,
208
+ d: number,
209
+ e: number,
210
+ f: number,
211
+ ) => number;
204
212
  export const registrationclient_post_keys_for_tde_registration: (a: number, b: number) => number;
205
213
  export const sendaccessclient_request_send_access_token: (a: number, b: number) => number;
206
214
  export const isCollectionDecryptError: (a: number) => number;
@@ -480,23 +488,23 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
480
488
  export const vaultclient_attachments: (a: number) => number;
481
489
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
482
490
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
483
- export const wasm_bindgen__convert__closures_____invoke__he146b106f849f26a: (
491
+ export const wasm_bindgen__convert__closures_____invoke__he2e170c549b97ed5: (
484
492
  a: number,
485
493
  b: number,
486
494
  c: number,
487
- d: number,
488
495
  ) => void;
489
- export const wasm_bindgen__closure__destroy__hb9785c609198ba41: (a: number, b: number) => void;
490
- export const wasm_bindgen__convert__closures_____invoke__ha40d0e6540b33984: (
496
+ export const wasm_bindgen__closure__destroy__h7a79e3df9e7c7848: (a: number, b: number) => void;
497
+ export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
498
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
491
499
  a: number,
492
500
  b: number,
493
- c: number,
494
501
  ) => void;
495
- export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
502
+ export const wasm_bindgen__convert__closures_____invoke__h6fa4a14c2e357000: (
496
503
  a: number,
497
504
  b: number,
505
+ c: number,
506
+ d: number,
498
507
  ) => void;
499
- export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
500
508
  export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
501
509
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
502
510
  a: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/commercial-sdk-internal",
3
- "version": "0.2.0-main.449",
3
+ "version": "0.2.0-main.451",
4
4
  "license": "BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT",
5
5
  "repository": {
6
6
  "type": "git",