@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.
@@ -401,9 +401,9 @@ export function isAccountCryptographyInitializationError(error) {
401
401
  * @param {any} error
402
402
  * @returns {boolean}
403
403
  */
404
- export function isCryptoClientError(error) {
404
+ export function isDeriveKeyConnectorError(error) {
405
405
  try {
406
- const ret = wasm.isCryptoClientError(addBorrowedObject(error));
406
+ const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
407
407
  return ret !== 0;
408
408
  } finally {
409
409
  heap[stack_pointer++] = undefined;
@@ -427,9 +427,9 @@ export function isEnrollAdminPasswordResetError(error) {
427
427
  * @param {any} error
428
428
  * @returns {boolean}
429
429
  */
430
- export function isDeriveKeyConnectorError(error) {
430
+ export function isCryptoClientError(error) {
431
431
  try {
432
- const ret = wasm.isDeriveKeyConnectorError(addBorrowedObject(error));
432
+ const ret = wasm.isCryptoClientError(addBorrowedObject(error));
433
433
  return ret !== 0;
434
434
  } finally {
435
435
  heap[stack_pointer++] = undefined;
@@ -652,9 +652,9 @@ export function isSshKeyImportError(error) {
652
652
  * @param {any} error
653
653
  * @returns {boolean}
654
654
  */
655
- export function isSshKeyExportError(error) {
655
+ export function isKeyGenerationError(error) {
656
656
  try {
657
- const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
657
+ const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
658
658
  return ret !== 0;
659
659
  } finally {
660
660
  heap[stack_pointer++] = undefined;
@@ -665,9 +665,9 @@ export function isSshKeyExportError(error) {
665
665
  * @param {any} error
666
666
  * @returns {boolean}
667
667
  */
668
- export function isKeyGenerationError(error) {
668
+ export function isSshKeyExportError(error) {
669
669
  try {
670
- const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
670
+ const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
671
671
  return ret !== 0;
672
672
  } finally {
673
673
  heap[stack_pointer++] = undefined;
@@ -743,9 +743,9 @@ export function isTotpError(error) {
743
743
  * @param {any} error
744
744
  * @returns {boolean}
745
745
  */
746
- export function isDecryptError(error) {
746
+ export function isEncryptError(error) {
747
747
  try {
748
- const ret = wasm.isDecryptError(addBorrowedObject(error));
748
+ const ret = wasm.isEncryptError(addBorrowedObject(error));
749
749
  return ret !== 0;
750
750
  } finally {
751
751
  heap[stack_pointer++] = undefined;
@@ -756,9 +756,9 @@ export function isDecryptError(error) {
756
756
  * @param {any} error
757
757
  * @returns {boolean}
758
758
  */
759
- export function isEncryptError(error) {
759
+ export function isDecryptError(error) {
760
760
  try {
761
- const ret = wasm.isEncryptError(addBorrowedObject(error));
761
+ const ret = wasm.isDecryptError(addBorrowedObject(error));
762
762
  return ret !== 0;
763
763
  } finally {
764
764
  heap[stack_pointer++] = undefined;
@@ -808,9 +808,9 @@ export function isCreateCipherError(error) {
808
808
  * @param {any} error
809
809
  * @returns {boolean}
810
810
  */
811
- export function isEncryptFileError(error) {
811
+ export function isDecryptFileError(error) {
812
812
  try {
813
- const ret = wasm.isEncryptFileError(addBorrowedObject(error));
813
+ const ret = wasm.isDecryptFileError(addBorrowedObject(error));
814
814
  return ret !== 0;
815
815
  } finally {
816
816
  heap[stack_pointer++] = undefined;
@@ -821,9 +821,9 @@ export function isEncryptFileError(error) {
821
821
  * @param {any} error
822
822
  * @returns {boolean}
823
823
  */
824
- export function isDecryptFileError(error) {
824
+ export function isEncryptFileError(error) {
825
825
  try {
826
- const ret = wasm.isDecryptFileError(addBorrowedObject(error));
826
+ const ret = wasm.isEncryptFileError(addBorrowedObject(error));
827
827
  return ret !== 0;
828
828
  } finally {
829
829
  heap[stack_pointer++] = undefined;
@@ -882,22 +882,22 @@ export function isGetFolderError(error) {
882
882
  }
883
883
  }
884
884
 
885
- function wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61(arg0, arg1, arg2) {
886
- wasm.wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61(
885
+ function wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1) {
886
+ wasm.wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373(arg0, arg1);
887
+ }
888
+
889
+ function wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820(arg0, arg1, arg2) {
890
+ wasm.wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820(
887
891
  arg0,
888
892
  arg1,
889
893
  addHeapObject(arg2),
890
894
  );
891
895
  }
892
896
 
893
- function wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1) {
894
- wasm.wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2(arg0, arg1);
895
- }
896
-
897
- function wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928(arg0, arg1, arg2) {
897
+ function wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b(arg0, arg1, arg2) {
898
898
  try {
899
899
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
900
- wasm.wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928(
900
+ wasm.wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b(
901
901
  retptr,
902
902
  arg0,
903
903
  arg1,
@@ -4602,7 +4602,7 @@ export function __wbg_call_e762c39fa8ea36bf() {
4602
4602
  }, arguments);
4603
4603
  }
4604
4604
 
4605
- export function __wbg_cipher_4720c11002fc96fd(arg0) {
4605
+ export function __wbg_cipher_010028ccb5921891(arg0) {
4606
4606
  const ret = getObject(arg0).cipher;
4607
4607
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4608
4608
  }
@@ -4695,7 +4695,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4695
4695
  return addHeapObject(ret);
4696
4696
  }
4697
4697
 
4698
- export function __wbg_folder_d21d8f5a125d055f(arg0) {
4698
+ export function __wbg_folder_c6742a58d1aace54(arg0) {
4699
4699
  const ret = getObject(arg0).folder;
4700
4700
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4701
4701
  }
@@ -4733,12 +4733,7 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4733
4733
  return addHeapObject(ret);
4734
4734
  }
4735
4735
 
4736
- export function __wbg_get_access_token_e2133519f41a6ac7(arg0) {
4737
- const ret = getObject(arg0).get_access_token();
4738
- return addHeapObject(ret);
4739
- }
4740
-
4741
- export function __wbg_get_cd62268d8c087001() {
4736
+ export function __wbg_get_7d4be1fafd7521f6() {
4742
4737
  return handleError(function (arg0, arg1, arg2) {
4743
4738
  let deferred0_0;
4744
4739
  let deferred0_1;
@@ -4753,7 +4748,7 @@ export function __wbg_get_cd62268d8c087001() {
4753
4748
  }, arguments);
4754
4749
  }
4755
4750
 
4756
- export function __wbg_get_d1114999a8ab47d9() {
4751
+ export function __wbg_get_8154abbab734cab3() {
4757
4752
  return handleError(function (arg0, arg1, arg2) {
4758
4753
  let deferred0_0;
4759
4754
  let deferred0_1;
@@ -4768,6 +4763,11 @@ export function __wbg_get_d1114999a8ab47d9() {
4768
4763
  }, arguments);
4769
4764
  }
4770
4765
 
4766
+ export function __wbg_get_access_token_90942c10aa097d90(arg0) {
4767
+ const ret = getObject(arg0).get_access_token();
4768
+ return addHeapObject(ret);
4769
+ }
4770
+
4771
4771
  export function __wbg_get_efcb449f58ec27c2() {
4772
4772
  return handleError(function (arg0, arg1) {
4773
4773
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
@@ -4959,14 +4959,14 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
4959
4959
  return ret;
4960
4960
  }
4961
4961
 
4962
- export function __wbg_list_7b4bcbc83976604d() {
4962
+ export function __wbg_list_312ed344d6c42827() {
4963
4963
  return handleError(function (arg0) {
4964
4964
  const ret = getObject(arg0).list();
4965
4965
  return addHeapObject(ret);
4966
4966
  }, arguments);
4967
4967
  }
4968
4968
 
4969
- export function __wbg_list_a7aca25d8822da99() {
4969
+ export function __wbg_list_51c2850ab5b499ad() {
4970
4970
  return handleError(function (arg0) {
4971
4971
  const ret = getObject(arg0).list();
4972
4972
  return addHeapObject(ret);
@@ -5210,7 +5210,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
5210
5210
  }, arguments);
5211
5211
  }
5212
5212
 
5213
- export function __wbg_remove_486de06f6037d12d() {
5213
+ export function __wbg_remove_5c3ab79f50b0411f() {
5214
5214
  return handleError(function (arg0, arg1, arg2) {
5215
5215
  let deferred0_0;
5216
5216
  let deferred0_1;
@@ -5225,7 +5225,7 @@ export function __wbg_remove_486de06f6037d12d() {
5225
5225
  }, arguments);
5226
5226
  }
5227
5227
 
5228
- export function __wbg_remove_839a2bc7e9bfd311() {
5228
+ export function __wbg_remove_8ff55a57b530ed36() {
5229
5229
  return handleError(function (arg0, arg1, arg2) {
5230
5230
  let deferred0_0;
5231
5231
  let deferred0_1;
@@ -5275,6 +5275,21 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5275
5275
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5276
5276
  }
5277
5277
 
5278
+ export function __wbg_set_795fa9d751d5bf30() {
5279
+ return handleError(function (arg0, arg1, arg2, arg3) {
5280
+ let deferred0_0;
5281
+ let deferred0_1;
5282
+ try {
5283
+ deferred0_0 = arg1;
5284
+ deferred0_1 = arg2;
5285
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5286
+ return addHeapObject(ret);
5287
+ } finally {
5288
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5289
+ }
5290
+ }, arguments);
5291
+ }
5292
+
5278
5293
  export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5279
5294
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5280
5295
  return addHeapObject(ret);
@@ -5299,22 +5314,7 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5299
5314
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5300
5315
  }
5301
5316
 
5302
- export function __wbg_set_d16463df2409068d() {
5303
- return handleError(function (arg0, arg1, arg2, arg3) {
5304
- let deferred0_0;
5305
- let deferred0_1;
5306
- try {
5307
- deferred0_0 = arg1;
5308
- deferred0_1 = arg2;
5309
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5310
- return addHeapObject(ret);
5311
- } finally {
5312
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5313
- }
5314
- }, arguments);
5315
- }
5316
-
5317
- export function __wbg_set_e9bc328257c76201() {
5317
+ export function __wbg_set_fb6952e37c5886de() {
5318
5318
  return handleError(function (arg0, arg1, arg2, arg3) {
5319
5319
  let deferred0_0;
5320
5320
  let deferred0_1;
@@ -5493,6 +5493,17 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
5493
5493
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5494
5494
  }
5495
5495
 
5496
+ export function __wbindgen_cast_18e7d5b03ebc0b46(arg0, arg1) {
5497
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5498
+ const ret = makeMutClosure(
5499
+ arg0,
5500
+ arg1,
5501
+ wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5502
+ wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820,
5503
+ );
5504
+ return addHeapObject(ret);
5505
+ }
5506
+
5496
5507
  export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5497
5508
  // Cast intrinsic for `Ref(String) -> Externref`.
5498
5509
  const ret = getStringFromWasm0(arg0, arg1);
@@ -5504,8 +5515,8 @@ export function __wbindgen_cast_34ef3ce950757bdd(arg0, arg1) {
5504
5515
  const ret = makeMutClosure(
5505
5516
  arg0,
5506
5517
  arg1,
5507
- wasm.wasm_bindgen__closure__destroy__h604f7173db0b623e,
5508
- wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61,
5518
+ wasm.wasm_bindgen__closure__destroy__h563da61d09f48819,
5519
+ wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820,
5509
5520
  );
5510
5521
  return addHeapObject(ret);
5511
5522
  }
@@ -5515,8 +5526,8 @@ export function __wbindgen_cast_397295739b4135cd(arg0, arg1) {
5515
5526
  const ret = makeMutClosure(
5516
5527
  arg0,
5517
5528
  arg1,
5518
- wasm.wasm_bindgen__closure__destroy__h604f7173db0b623e,
5519
- wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928,
5529
+ wasm.wasm_bindgen__closure__destroy__h563da61d09f48819,
5530
+ wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b,
5520
5531
  );
5521
5532
  return addHeapObject(ret);
5522
5533
  }
@@ -5535,13 +5546,13 @@ export function __wbindgen_cast_5fea77eff9dd275c(arg0, arg1) {
5535
5546
  return addHeapObject(ret);
5536
5547
  }
5537
5548
 
5538
- export function __wbindgen_cast_630a55545c54fc2a(arg0, arg1) {
5539
- // Cast intrinsic for `Closure(Closure { dtor_idx: 554, function: Function { arguments: [], shim_idx: 304, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5549
+ export function __wbindgen_cast_6e095a3d144cfbd7(arg0, arg1) {
5550
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 554, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5540
5551
  const ret = makeMutClosure(
5541
5552
  arg0,
5542
5553
  arg1,
5543
- wasm.wasm_bindgen__closure__destroy__he41cbbdbe831f2ac,
5544
- wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2,
5554
+ wasm.wasm_bindgen__closure__destroy__h602c026e8307a31b,
5555
+ wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5545
5556
  );
5546
5557
  return addHeapObject(ret);
5547
5558
  }
@@ -5554,13 +5565,13 @@ export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
5554
5565
  return addHeapObject(ret);
5555
5566
  }
5556
5567
 
5557
- export function __wbindgen_cast_930d054add031527(arg0, arg1) {
5558
- // Cast intrinsic for `Closure(Closure { dtor_idx: 303, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5568
+ export function __wbindgen_cast_8340b5b160d85933(arg0, arg1) {
5569
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5559
5570
  const ret = makeMutClosure(
5560
5571
  arg0,
5561
5572
  arg1,
5562
5573
  wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5563
- wasm_bindgen__convert__closures_____invoke__h0e054f67fdf6fa61,
5574
+ wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373,
5564
5575
  );
5565
5576
  return addHeapObject(ret);
5566
5577
  }
@@ -5571,17 +5582,6 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
5571
5582
  return addHeapObject(ret);
5572
5583
  }
5573
5584
 
5574
- export function __wbindgen_cast_bfa5a190b0f2e981(arg0, arg1) {
5575
- // Cast intrinsic for `Closure(Closure { dtor_idx: 303, function: Function { arguments: [], shim_idx: 304, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5576
- const ret = makeMutClosure(
5577
- arg0,
5578
- arg1,
5579
- wasm.wasm_bindgen__closure__destroy__h591e0f2efd143068,
5580
- wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2,
5581
- );
5582
- return addHeapObject(ret);
5583
- }
5584
-
5585
5585
  export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5586
5586
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
5587
5587
  const ret = getArrayU8FromWasm0(arg0, arg1);
Binary file
@@ -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__h0e054f67fdf6fa61: (
453
+ export const wasm_bindgen__convert__closures_____invoke__h1920d8a7b3007373: (
454
454
  a: number,
455
455
  b: number,
456
- c: number,
457
456
  ) => void;
458
- export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
459
- export const wasm_bindgen__closure__destroy__h604f7173db0b623e: (a: number, b: number) => void;
460
- export const wasm_bindgen__convert__closures_____invoke__h4eff94a44eff58c2: (
457
+ export const wasm_bindgen__closure__destroy__h602c026e8307a31b: (a: number, b: number) => void;
458
+ export const wasm_bindgen__convert__closures_____invoke__h4c674a07d62b8820: (
461
459
  a: number,
462
460
  b: number,
461
+ c: number,
463
462
  ) => void;
464
- export const wasm_bindgen__convert__closures_____invoke__he7d072dd274b3928: (
463
+ export const wasm_bindgen__closure__destroy__h591e0f2efd143068: (a: number, b: number) => void;
464
+ export const wasm_bindgen__closure__destroy__h563da61d09f48819: (a: number, b: number) => void;
465
+ export const wasm_bindgen__convert__closures_____invoke__hea2276c16b64824b: (
465
466
  a: number,
466
467
  b: number,
467
468
  c: number,
468
469
  d: number,
469
470
  ) => void;
470
- export const wasm_bindgen__closure__destroy__he41cbbdbe831f2ac: (a: number, b: number) => void;
471
471
  export const wasm_bindgen__convert__closures_____invoke__h0cb536241502fe83: (
472
472
  a: number,
473
473
  b: number,