@bitwarden/sdk-internal 0.2.0-main.425 → 0.2.0-main.427

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.
@@ -391,9 +391,9 @@ exports.isAccountCryptographyInitializationError = function (error) {
391
391
  * @param {any} error
392
392
  * @returns {boolean}
393
393
  */
394
- exports.isCryptoClientError = function (error) {
394
+ exports.isDeriveKeyConnectorError = function (error) {
395
395
  try {
396
- const ret = wasm.isCryptoClientError(addBorrowedObject(error));
396
+ const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
397
397
  return ret !== 0;
398
398
  } finally {
399
399
  heap[stack_pointer++] = undefined;
@@ -417,9 +417,9 @@ exports.isEnrollAdminPasswordResetError = function (error) {
417
417
  * @param {any} error
418
418
  * @returns {boolean}
419
419
  */
420
- exports.isDeriveKeyConnectorError = function (error) {
420
+ exports.isCryptoClientError = function (error) {
421
421
  try {
422
- const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
422
+ const ret = wasm.isCryptoClientError(addBorrowedObject(error));
423
423
  return ret !== 0;
424
424
  } finally {
425
425
  heap[stack_pointer++] = undefined;
@@ -642,9 +642,9 @@ exports.isSshKeyImportError = function (error) {
642
642
  * @param {any} error
643
643
  * @returns {boolean}
644
644
  */
645
- exports.isSshKeyExportError = function (error) {
645
+ exports.isKeyGenerationError = function (error) {
646
646
  try {
647
- const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
647
+ const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
648
648
  return ret !== 0;
649
649
  } finally {
650
650
  heap[stack_pointer++] = undefined;
@@ -655,9 +655,9 @@ exports.isSshKeyExportError = function (error) {
655
655
  * @param {any} error
656
656
  * @returns {boolean}
657
657
  */
658
- exports.isKeyGenerationError = function (error) {
658
+ exports.isSshKeyExportError = function (error) {
659
659
  try {
660
- const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
660
+ const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
661
661
  return ret !== 0;
662
662
  } finally {
663
663
  heap[stack_pointer++] = undefined;
@@ -733,9 +733,9 @@ exports.isTotpError = function (error) {
733
733
  * @param {any} error
734
734
  * @returns {boolean}
735
735
  */
736
- exports.isDecryptError = function (error) {
736
+ exports.isEncryptError = function (error) {
737
737
  try {
738
- const ret = wasm.isDecryptError(addBorrowedObject(error));
738
+ const ret = wasm.isEncryptError(addBorrowedObject(error));
739
739
  return ret !== 0;
740
740
  } finally {
741
741
  heap[stack_pointer++] = undefined;
@@ -746,9 +746,9 @@ exports.isDecryptError = function (error) {
746
746
  * @param {any} error
747
747
  * @returns {boolean}
748
748
  */
749
- exports.isEncryptError = function (error) {
749
+ exports.isDecryptError = function (error) {
750
750
  try {
751
- const ret = wasm.isEncryptError(addBorrowedObject(error));
751
+ const ret = wasm.isDecryptError(addBorrowedObject(error));
752
752
  return ret !== 0;
753
753
  } finally {
754
754
  heap[stack_pointer++] = undefined;
@@ -798,9 +798,9 @@ exports.isCreateCipherError = function (error) {
798
798
  * @param {any} error
799
799
  * @returns {boolean}
800
800
  */
801
- exports.isEncryptFileError = function (error) {
801
+ exports.isDecryptFileError = function (error) {
802
802
  try {
803
- const ret = wasm.isEncryptFileError(addBorrowedObject(error));
803
+ const ret = wasm.isDecryptFileError(addBorrowedObject(error));
804
804
  return ret !== 0;
805
805
  } finally {
806
806
  heap[stack_pointer++] = undefined;
@@ -811,9 +811,9 @@ exports.isEncryptFileError = function (error) {
811
811
  * @param {any} error
812
812
  * @returns {boolean}
813
813
  */
814
- exports.isDecryptFileError = function (error) {
814
+ exports.isEncryptFileError = function (error) {
815
815
  try {
816
- const ret = wasm.isDecryptFileError(addBorrowedObject(error));
816
+ const ret = wasm.isEncryptFileError(addBorrowedObject(error));
817
817
  return ret !== 0;
818
818
  } finally {
819
819
  heap[stack_pointer++] = undefined;
@@ -872,22 +872,14 @@ exports.isGetFolderError = function (error) {
872
872
  }
873
873
  };
874
874
 
875
- function wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1) {
876
- wasm.wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1);
877
- }
878
-
879
- function wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61(arg0, arg1, arg2) {
880
- wasm.wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61(
881
- arg0,
882
- arg1,
883
- addHeapObject(arg2),
884
- );
875
+ function wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1) {
876
+ wasm.wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1);
885
877
  }
886
878
 
887
- function wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928(arg0, arg1, arg2) {
879
+ function wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b(arg0, arg1, arg2) {
888
880
  try {
889
881
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
890
- wasm.wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928(
882
+ wasm.wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b(
891
883
  retptr,
892
884
  arg0,
893
885
  arg1,
@@ -903,6 +895,14 @@ function wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928(arg0, arg
903
895
  }
904
896
  }
905
897
 
898
+ function wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820(arg0, arg1, arg2) {
899
+ wasm.wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820(
900
+ arg0,
901
+ arg1,
902
+ addHeapObject(arg2),
903
+ );
904
+ }
905
+
906
906
  function wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(arg0, arg1, arg2, arg3) {
907
907
  wasm.wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83(
908
908
  arg0,
@@ -4642,7 +4642,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4642
4642
  }, arguments);
4643
4643
  };
4644
4644
 
4645
- exports.__wbg_cipher_4720c11002fc96fd = function (arg0) {
4645
+ exports.__wbg_cipher_010028ccb5921891 = function (arg0) {
4646
4646
  const ret = getObject(arg0).cipher;
4647
4647
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4648
4648
  };
@@ -4735,7 +4735,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
4735
4735
  return addHeapObject(ret);
4736
4736
  };
4737
4737
 
4738
- exports.__wbg_folder_d21d8f5a125d055f = function (arg0) {
4738
+ exports.__wbg_folder_c6742a58d1aace54 = function (arg0) {
4739
4739
  const ret = getObject(arg0).folder;
4740
4740
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4741
4741
  };
@@ -4773,12 +4773,7 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4773
4773
  return addHeapObject(ret);
4774
4774
  };
4775
4775
 
4776
- exports.__wbg_get_access_token_e2133519f41a6ac7 = function (arg0) {
4777
- const ret = getObject(arg0).get_access_token();
4778
- return addHeapObject(ret);
4779
- };
4780
-
4781
- exports.__wbg_get_cd62268d8c087001 = function () {
4776
+ exports.__wbg_get_7d4be1fafd7521f6 = function () {
4782
4777
  return handleError(function (arg0, arg1, arg2) {
4783
4778
  let deferred0_0;
4784
4779
  let deferred0_1;
@@ -4793,7 +4788,7 @@ exports.__wbg_get_cd62268d8c087001 = function () {
4793
4788
  }, arguments);
4794
4789
  };
4795
4790
 
4796
- exports.__wbg_get_d1114999a8ab47d9 = function () {
4791
+ exports.__wbg_get_8154abbab734cab3 = function () {
4797
4792
  return handleError(function (arg0, arg1, arg2) {
4798
4793
  let deferred0_0;
4799
4794
  let deferred0_1;
@@ -4808,6 +4803,11 @@ exports.__wbg_get_d1114999a8ab47d9 = function () {
4808
4803
  }, arguments);
4809
4804
  };
4810
4805
 
4806
+ exports.__wbg_get_access_token_90942c10aa097d90 = function (arg0) {
4807
+ const ret = getObject(arg0).get_access_token();
4808
+ return addHeapObject(ret);
4809
+ };
4810
+
4811
4811
  exports.__wbg_get_efcb449f58ec27c2 = function () {
4812
4812
  return handleError(function (arg0, arg1) {
4813
4813
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
@@ -4999,14 +4999,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
4999
4999
  return ret;
5000
5000
  };
5001
5001
 
5002
- exports.__wbg_list_7b4bcbc83976604d = function () {
5002
+ exports.__wbg_list_312ed344d6c42827 = function () {
5003
5003
  return handleError(function (arg0) {
5004
5004
  const ret = getObject(arg0).list();
5005
5005
  return addHeapObject(ret);
5006
5006
  }, arguments);
5007
5007
  };
5008
5008
 
5009
- exports.__wbg_list_a7aca25d8822da99 = function () {
5009
+ exports.__wbg_list_51c2850ab5b499ad = function () {
5010
5010
  return handleError(function (arg0) {
5011
5011
  const ret = getObject(arg0).list();
5012
5012
  return addHeapObject(ret);
@@ -5250,7 +5250,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5250
5250
  }, arguments);
5251
5251
  };
5252
5252
 
5253
- exports.__wbg_remove_486de06f6037d12d = function () {
5253
+ exports.__wbg_remove_5c3ab79f50b0411f = function () {
5254
5254
  return handleError(function (arg0, arg1, arg2) {
5255
5255
  let deferred0_0;
5256
5256
  let deferred0_1;
@@ -5265,7 +5265,7 @@ exports.__wbg_remove_486de06f6037d12d = function () {
5265
5265
  }, arguments);
5266
5266
  };
5267
5267
 
5268
- exports.__wbg_remove_839a2bc7e9bfd311 = function () {
5268
+ exports.__wbg_remove_8ff55a57b530ed36 = function () {
5269
5269
  return handleError(function (arg0, arg1, arg2) {
5270
5270
  let deferred0_0;
5271
5271
  let deferred0_1;
@@ -5315,6 +5315,21 @@ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5315
5315
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5316
5316
  };
5317
5317
 
5318
+ exports.__wbg_set_795fa9d751d5bf30 = function () {
5319
+ return handleError(function (arg0, arg1, arg2, arg3) {
5320
+ let deferred0_0;
5321
+ let deferred0_1;
5322
+ try {
5323
+ deferred0_0 = arg1;
5324
+ deferred0_1 = arg2;
5325
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5326
+ return addHeapObject(ret);
5327
+ } finally {
5328
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5329
+ }
5330
+ }, arguments);
5331
+ };
5332
+
5318
5333
  exports.__wbg_set_907fb406c34a251d = function (arg0, arg1, arg2) {
5319
5334
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5320
5335
  return addHeapObject(ret);
@@ -5339,22 +5354,7 @@ exports.__wbg_set_credentials_f621cd2d85c0c228 = function (arg0, arg1) {
5339
5354
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5340
5355
  };
5341
5356
 
5342
- exports.__wbg_set_d16463df2409068d = function () {
5343
- return handleError(function (arg0, arg1, arg2, arg3) {
5344
- let deferred0_0;
5345
- let deferred0_1;
5346
- try {
5347
- deferred0_0 = arg1;
5348
- deferred0_1 = arg2;
5349
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5350
- return addHeapObject(ret);
5351
- } finally {
5352
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5353
- }
5354
- }, arguments);
5355
- };
5356
-
5357
- exports.__wbg_set_e9bc328257c76201 = function () {
5357
+ exports.__wbg_set_fb6952e37c5886de = function () {
5358
5358
  return handleError(function (arg0, arg1, arg2, arg3) {
5359
5359
  let deferred0_0;
5360
5360
  let deferred0_1;
@@ -5533,6 +5533,17 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
5533
5533
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5534
5534
  };
5535
5535
 
5536
+ exports.__wbindgen_cast_18e7d5b03ebc0b46 = function (arg0, arg1) {
5537
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5538
+ const ret = makeMutClosure(
5539
+ arg0,
5540
+ arg1,
5541
+ wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5542
+ wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820,
5543
+ );
5544
+ return addHeapObject(ret);
5545
+ };
5546
+
5536
5547
  exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5537
5548
  // Cast intrinsic for `Ref(String) -> Externref`.
5538
5549
  const ret = getStringFromWasm0(arg0, arg1);
@@ -5544,8 +5555,8 @@ exports.__wbindgen_cast_34ef3ce950757bdd = function (arg0, arg1) {
5544
5555
  const ret = makeMutClosure(
5545
5556
  arg0,
5546
5557
  arg1,
5547
- wasm.wasm_bindgen__closure__destroy__h604f7173db0b623e,
5548
- wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61,
5558
+ wasm.wasm_bindgen__closure__destroy__h563da61d09f48819,
5559
+ wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820,
5549
5560
  );
5550
5561
  return addHeapObject(ret);
5551
5562
  };
@@ -5555,8 +5566,8 @@ exports.__wbindgen_cast_397295739b4135cd = function (arg0, arg1) {
5555
5566
  const ret = makeMutClosure(
5556
5567
  arg0,
5557
5568
  arg1,
5558
- wasm.wasm_bindgen__closure__destroy__h604f7173db0b623e,
5559
- wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928,
5569
+ wasm.wasm_bindgen__closure__destroy__h563da61d09f48819,
5570
+ wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b,
5560
5571
  );
5561
5572
  return addHeapObject(ret);
5562
5573
  };
@@ -5575,13 +5586,13 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
5575
5586
  return addHeapObject(ret);
5576
5587
  };
5577
5588
 
5578
- exports.__wbindgen_cast_630a55545c54fc2a = function (arg0, arg1) {
5579
- // Cast intrinsic for `Closure(Closure { dtor_idx: 554, function: Function { arguments: [], shim_idx: 304, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5589
+ exports.__wbindgen_cast_6e095a3d144cfbd7 = function (arg0, arg1) {
5590
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 554, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5580
5591
  const ret = makeMutClosure(
5581
5592
  arg0,
5582
5593
  arg1,
5583
- wasm.wasm_bindgen__closure__destroy__he41cbbdbe831f2ac,
5584
- wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2,
5594
+ wasm.wasm_bindgen__closure__destroy__h602c026e8307a31b,
5595
+ wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5585
5596
  );
5586
5597
  return addHeapObject(ret);
5587
5598
  };
@@ -5594,13 +5605,13 @@ exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
5594
5605
  return addHeapObject(ret);
5595
5606
  };
5596
5607
 
5597
- exports.__wbindgen_cast_930d054add031527 = function (arg0, arg1) {
5598
- // Cast intrinsic for `Closure(Closure { dtor_idx: 303, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5608
+ exports.__wbindgen_cast_8340b5b160d85933 = function (arg0, arg1) {
5609
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5599
5610
  const ret = makeMutClosure(
5600
5611
  arg0,
5601
5612
  arg1,
5602
5613
  wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5603
- wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61,
5614
+ wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5604
5615
  );
5605
5616
  return addHeapObject(ret);
5606
5617
  };
@@ -5611,17 +5622,6 @@ exports.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
5611
5622
  return addHeapObject(ret);
5612
5623
  };
5613
5624
 
5614
- exports.__wbindgen_cast_bfa5a190b0f2e981 = function (arg0, arg1) {
5615
- // Cast intrinsic for `Closure(Closure { dtor_idx: 303, function: Function { arguments: [], shim_idx: 304, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5616
- const ret = makeMutClosure(
5617
- arg0,
5618
- arg1,
5619
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5620
- wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2,
5621
- );
5622
- return addHeapObject(ret);
5623
- };
5624
-
5625
5625
  exports.__wbindgen_cast_cb9088102bce6b30 = function (arg0, arg1) {
5626
5626
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5627
5627
  const ret = getArrayU8FromWasm0(arg0, arg1);
@@ -450,24 +450,24 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
450
450
  export const __wbg_registrationclient_free: (a: number, b: number) => void;
451
451
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
452
452
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
453
- export const wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2: (
453
+ export const wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373: (
454
454
  a: number,
455
455
  b: number,
456
456
  ) => void;
457
- export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
458
- export const wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61: (
457
+ export const wasm_bindgen__closure__destroy__h602c026e8307a31b: (a: number, b: number) => void;
458
+ export const wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b: (
459
459
  a: number,
460
460
  b: number,
461
461
  c: number,
462
+ d: number,
462
463
  ) => void;
463
- export const wasm_bindgen__closure__destroy__h604f7173db0b623e: (a: number, b: number) => void;
464
- export const wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928: (
464
+ export const wasm_bindgen__closure__destroy__h563da61d09f48819: (a: number, b: number) => void;
465
+ export const wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820: (
465
466
  a: number,
466
467
  b: number,
467
468
  c: number,
468
- d: number,
469
469
  ) => void;
470
- export const wasm_bindgen__closure__destroy__he41cbbdbe831f2ac: (a: number, b: number) => void;
470
+ export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
471
471
  export const wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83: (
472
472
  a: number,
473
473
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.425",
3
+ "version": "0.2.0-main.427",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",