@bitwarden/sdk-internal 0.2.0-main.500 → 0.2.0-main.502

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.
@@ -418,9 +418,9 @@ export function isRotateCryptographyStateError(error) {
418
418
  * @param {any} error
419
419
  * @returns {boolean}
420
420
  */
421
- export function isCryptoClientError(error) {
421
+ export function isEnrollAdminPasswordResetError(error) {
422
422
  try {
423
- const ret = wasm.isCryptoClientError(addBorrowedObject(error));
423
+ const ret = wasm.isEnrollAdminPasswordResetError(addBorrowedObject(error));
424
424
  return ret !== 0;
425
425
  } finally {
426
426
  heap[stack_pointer++] = undefined;
@@ -431,9 +431,9 @@ export function isCryptoClientError(error) {
431
431
  * @param {any} error
432
432
  * @returns {boolean}
433
433
  */
434
- export function isMakeKeysError(error) {
434
+ export function isCryptoClientError(error) {
435
435
  try {
436
- const ret = wasm.isMakeKeysError(addBorrowedObject(error));
436
+ const ret = wasm.isCryptoClientError(addBorrowedObject(error));
437
437
  return ret !== 0;
438
438
  } finally {
439
439
  heap[stack_pointer++] = undefined;
@@ -444,9 +444,9 @@ export function isMakeKeysError(error) {
444
444
  * @param {any} error
445
445
  * @returns {boolean}
446
446
  */
447
- export function isDeriveKeyConnectorError(error) {
447
+ export function isMakeKeysError(error) {
448
448
  try {
449
- const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
449
+ const ret = wasm.isMakeKeysError(addBorrowedObject(error));
450
450
  return ret !== 0;
451
451
  } finally {
452
452
  heap[stack_pointer++] = undefined;
@@ -457,9 +457,9 @@ export function isDeriveKeyConnectorError(error) {
457
457
  * @param {any} error
458
458
  * @returns {boolean}
459
459
  */
460
- export function isEnrollAdminPasswordResetError(error) {
460
+ export function isDeriveKeyConnectorError(error) {
461
461
  try {
462
- const ret = wasm.isEnrollAdminPasswordResetError(addBorrowedObject(error));
462
+ const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
463
463
  return ret !== 0;
464
464
  } finally {
465
465
  heap[stack_pointer++] = undefined;
@@ -769,9 +769,9 @@ export function isTotpError(error) {
769
769
  * @param {any} error
770
770
  * @returns {boolean}
771
771
  */
772
- export function isEncryptError(error) {
772
+ export function isDecryptError(error) {
773
773
  try {
774
- const ret = wasm.isEncryptError(addBorrowedObject(error));
774
+ const ret = wasm.isDecryptError(addBorrowedObject(error));
775
775
  return ret !== 0;
776
776
  } finally {
777
777
  heap[stack_pointer++] = undefined;
@@ -782,9 +782,9 @@ export function isEncryptError(error) {
782
782
  * @param {any} error
783
783
  * @returns {boolean}
784
784
  */
785
- export function isDecryptError(error) {
785
+ export function isEncryptError(error) {
786
786
  try {
787
- const ret = wasm.isDecryptError(addBorrowedObject(error));
787
+ const ret = wasm.isEncryptError(addBorrowedObject(error));
788
788
  return ret !== 0;
789
789
  } finally {
790
790
  heap[stack_pointer++] = undefined;
@@ -925,9 +925,9 @@ export function isRestoreCipherError(error) {
925
925
  * @param {any} error
926
926
  * @returns {boolean}
927
927
  */
928
- export function isDecryptFileError(error) {
928
+ export function isEncryptFileError(error) {
929
929
  try {
930
- const ret = wasm.isDecryptFileError(addBorrowedObject(error));
930
+ const ret = wasm.isEncryptFileError(addBorrowedObject(error));
931
931
  return ret !== 0;
932
932
  } finally {
933
933
  heap[stack_pointer++] = undefined;
@@ -938,9 +938,9 @@ export function isDecryptFileError(error) {
938
938
  * @param {any} error
939
939
  * @returns {boolean}
940
940
  */
941
- export function isEncryptFileError(error) {
941
+ export function isDecryptFileError(error) {
942
942
  try {
943
- const ret = wasm.isEncryptFileError(addBorrowedObject(error));
943
+ const ret = wasm.isDecryptFileError(addBorrowedObject(error));
944
944
  return ret !== 0;
945
945
  } finally {
946
946
  heap[stack_pointer++] = undefined;
@@ -1007,10 +1007,10 @@ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg
1007
1007
  wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1008
1008
  }
1009
1009
 
1010
- function wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab(arg0, arg1, arg2) {
1010
+ function wasm_bindgen__convert__closures_____invoke__h4af377e64bbfb918(arg0, arg1, arg2) {
1011
1011
  try {
1012
1012
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1013
- wasm.wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab(retptr, arg0, arg1, addHeapObject(arg2));
1013
+ wasm.wasm_bindgen__convert__closures_____invoke__h4af377e64bbfb918(retptr, arg0, arg1, addHeapObject(arg2));
1014
1014
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1015
1015
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1016
1016
  if (r1) {
@@ -4723,7 +4723,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
4723
4723
  return addHeapObject(ret);
4724
4724
  }, arguments) };
4725
4725
 
4726
- export function __wbg_cipher_a2f808104edd109b(arg0) {
4726
+ export function __wbg_cipher_25e21f64a5b36729(arg0) {
4727
4727
  const ret = getObject(arg0).cipher;
4728
4728
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4729
4729
  };
@@ -4815,7 +4815,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4815
4815
  return addHeapObject(ret);
4816
4816
  };
4817
4817
 
4818
- export function __wbg_folder_31c7eeacddfa455a(arg0) {
4818
+ export function __wbg_folder_dffa8d63ce80732c(arg0) {
4819
4819
  const ret = getObject(arg0).folder;
4820
4820
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4821
4821
  };
@@ -4847,12 +4847,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4847
4847
  return ret;
4848
4848
  };
4849
4849
 
4850
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
4851
- const ret = getObject(arg0)[arg1 >>> 0];
4852
- return addHeapObject(ret);
4853
- };
4854
-
4855
- export function __wbg_get_95bb06f440819e46() { return handleError(function (arg0, arg1, arg2) {
4850
+ export function __wbg_get_21245f1834b60ecd() { return handleError(function (arg0, arg1, arg2) {
4856
4851
  let deferred0_0;
4857
4852
  let deferred0_1;
4858
4853
  try {
@@ -4865,12 +4860,17 @@ export function __wbg_get_95bb06f440819e46() { return handleError(function (arg0
4865
4860
  }
4866
4861
  }, arguments) };
4867
4862
 
4868
- export function __wbg_get_access_token_883f09a20f73d250(arg0) {
4863
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4864
+ const ret = getObject(arg0)[arg1 >>> 0];
4865
+ return addHeapObject(ret);
4866
+ };
4867
+
4868
+ export function __wbg_get_access_token_d759cc6f6e3c9186(arg0) {
4869
4869
  const ret = getObject(arg0).get_access_token();
4870
4870
  return addHeapObject(ret);
4871
4871
  };
4872
4872
 
4873
- export function __wbg_get_db64efec39724d14() { return handleError(function (arg0, arg1, arg2) {
4873
+ export function __wbg_get_dc1fe8a0ad1b079d() { return handleError(function (arg0, arg1, arg2) {
4874
4874
  let deferred0_0;
4875
4875
  let deferred0_1;
4876
4876
  try {
@@ -5071,12 +5071,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5071
5071
  return ret;
5072
5072
  };
5073
5073
 
5074
- export function __wbg_list_22c75bbbbb986671() { return handleError(function (arg0) {
5074
+ export function __wbg_list_0ba4e8f1a5b8668c() { return handleError(function (arg0) {
5075
5075
  const ret = getObject(arg0).list();
5076
5076
  return addHeapObject(ret);
5077
5077
  }, arguments) };
5078
5078
 
5079
- export function __wbg_list_c8fb56df32e988ab() { return handleError(function (arg0) {
5079
+ export function __wbg_list_7fea1e83732ecfa9() { return handleError(function (arg0) {
5080
5080
  const ret = getObject(arg0).list();
5081
5081
  return addHeapObject(ret);
5082
5082
  }, arguments) };
@@ -5298,7 +5298,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
5298
5298
  getObject(arg0).randomFillSync(takeObject(arg1));
5299
5299
  }, arguments) };
5300
5300
 
5301
- export function __wbg_remove_17290c56cef3c359() { return handleError(function (arg0, arg1, arg2) {
5301
+ export function __wbg_remove_006f4adc3520c64e() { return handleError(function (arg0, arg1, arg2) {
5302
5302
  let deferred0_0;
5303
5303
  let deferred0_1;
5304
5304
  try {
@@ -5311,7 +5311,7 @@ export function __wbg_remove_17290c56cef3c359() { return handleError(function (a
5311
5311
  }
5312
5312
  }, arguments) };
5313
5313
 
5314
- export function __wbg_remove_823c864357e9355d() { return handleError(function (arg0, arg1, arg2) {
5314
+ export function __wbg_remove_8b96f102e76672ad() { return handleError(function (arg0, arg1, arg2) {
5315
5315
  let deferred0_0;
5316
5316
  let deferred0_1;
5317
5317
  try {
@@ -5349,11 +5349,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
5349
5349
  return addHeapObject(ret);
5350
5350
  };
5351
5351
 
5352
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5353
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5354
- };
5355
-
5356
- export function __wbg_set_51f8a30bfdc60212() { return handleError(function (arg0, arg1, arg2, arg3) {
5352
+ export function __wbg_set_16b2a9c31405c457() { return handleError(function (arg0, arg1, arg2, arg3) {
5357
5353
  let deferred0_0;
5358
5354
  let deferred0_1;
5359
5355
  try {
@@ -5366,12 +5362,7 @@ export function __wbg_set_51f8a30bfdc60212() { return handleError(function (arg0
5366
5362
  }
5367
5363
  }, arguments) };
5368
5364
 
5369
- export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5370
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5371
- return addHeapObject(ret);
5372
- };
5373
-
5374
- export function __wbg_set_b9166c4267487258() { return handleError(function (arg0, arg1, arg2, arg3) {
5365
+ export function __wbg_set_1c3d5ce246338885() { return handleError(function (arg0, arg1, arg2, arg3) {
5375
5366
  let deferred0_0;
5376
5367
  let deferred0_1;
5377
5368
  try {
@@ -5384,6 +5375,15 @@ export function __wbg_set_b9166c4267487258() { return handleError(function (arg0
5384
5375
  }
5385
5376
  }, arguments) };
5386
5377
 
5378
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5379
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5380
+ };
5381
+
5382
+ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5383
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5384
+ return addHeapObject(ret);
5385
+ };
5386
+
5387
5387
  export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5388
5388
  getObject(arg0).body = getObject(arg1);
5389
5389
  };
@@ -5566,21 +5566,21 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
5566
5566
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5567
5567
  };
5568
5568
 
5569
- export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5570
- // Cast intrinsic for `Ref(String) -> Externref`.
5571
- const ret = getStringFromWasm0(arg0, arg1);
5569
+ export function __wbindgen_cast_040237b82ce31ec9(arg0, arg1) {
5570
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5571
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5572
5572
  return addHeapObject(ret);
5573
5573
  };
5574
5574
 
5575
- export function __wbindgen_cast_22b4944821d4b7c9(arg0, arg1) {
5576
- // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5577
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5575
+ export function __wbindgen_cast_1e9dc1058b799ead(arg0, arg1) {
5576
+ // 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`.
5577
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h68ac44da0078a006, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5578
5578
  return addHeapObject(ret);
5579
5579
  };
5580
5580
 
5581
- export function __wbindgen_cast_4042b341512ce63a(arg0, arg1) {
5582
- // 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`.
5583
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h582e24ac35be59c7, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5581
+ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5582
+ // Cast intrinsic for `Ref(String) -> Externref`.
5583
+ const ret = getStringFromWasm0(arg0, arg1);
5584
5584
  return addHeapObject(ret);
5585
5585
  };
5586
5586
 
@@ -5604,12 +5604,6 @@ export function __wbindgen_cast_73a0930a4562bf7d(arg0, arg1) {
5604
5604
  return addHeapObject(ret);
5605
5605
  };
5606
5606
 
5607
- export function __wbindgen_cast_74e55181dcd20690(arg0, arg1) {
5608
- // Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5609
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5610
- return addHeapObject(ret);
5611
- };
5612
-
5613
5607
  export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
5614
5608
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5615
5609
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5636,18 +5630,18 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5636
5630
  return addHeapObject(ret);
5637
5631
  };
5638
5632
 
5639
- export function __wbindgen_cast_d49c305f67640cb1(arg0, arg1) {
5640
- // 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`.
5641
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h582e24ac35be59c7, wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab);
5642
- return addHeapObject(ret);
5643
- };
5644
-
5645
5633
  export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
5646
5634
  // Cast intrinsic for `F64 -> Externref`.
5647
5635
  const ret = arg0;
5648
5636
  return addHeapObject(ret);
5649
5637
  };
5650
5638
 
5639
+ export function __wbindgen_cast_daac1d8e48fc3ba0(arg0, arg1) {
5640
+ // 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`.
5641
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h68ac44da0078a006, wasm_bindgen__convert__closures_____invoke__h4af377e64bbfb918);
5642
+ return addHeapObject(ret);
5643
+ };
5644
+
5651
5645
  export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
5652
5646
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5653
5647
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5656,6 +5650,12 @@ export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
5656
5650
  return addHeapObject(ret);
5657
5651
  };
5658
5652
 
5653
+ export function __wbindgen_cast_faabdb593332903b(arg0, arg1) {
5654
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 339, function: Function { arguments: [NamedExternref("Event")], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5655
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5656
+ return addHeapObject(ret);
5657
+ };
5658
+
5659
5659
  export function __wbindgen_object_clone_ref(arg0) {
5660
5660
  const ret = getObject(arg0);
5661
5661
  return addHeapObject(ret);
Binary file
@@ -516,19 +516,19 @@ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
516
516
  c: number,
517
517
  ) => void;
518
518
  export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
519
- export const wasm_bindgen__closure__destroy__h582e24ac35be59c7: (a: number, b: number) => void;
520
519
  export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
521
520
  a: number,
522
521
  b: number,
523
522
  ) => void;
524
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
525
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
526
- export const wasm_bindgen__convert__closures_____invoke__hc40f00976e9368ab: (
523
+ export const wasm_bindgen__convert__closures_____invoke__h4af377e64bbfb918: (
527
524
  a: number,
528
525
  b: number,
529
526
  c: number,
530
527
  d: number,
531
528
  ) => void;
529
+ export const wasm_bindgen__closure__destroy__h68ac44da0078a006: (a: number, b: number) => void;
530
+ export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
531
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
532
532
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
533
533
  a: number,
534
534
  b: number,