@bitwarden/commercial-sdk-internal 0.2.0-main.497 → 0.2.0-main.499

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.
@@ -1271,13 +1271,6 @@ export interface SshKeyExportError extends Error {
1271
1271
 
1272
1272
  export function isSshKeyExportError(error: any): error is SshKeyExportError;
1273
1273
 
1274
- export interface KeyGenerationError extends Error {
1275
- name: "KeyGenerationError";
1276
- variant: "KeyGeneration" | "KeyConversion";
1277
- }
1278
-
1279
- export function isKeyGenerationError(error: any): error is KeyGenerationError;
1280
-
1281
1274
  export interface SshKeyImportError extends Error {
1282
1275
  name: "SshKeyImportError";
1283
1276
  variant: "Parsing" | "PasswordRequired" | "WrongPassword" | "UnsupportedKeyType";
@@ -1285,6 +1278,13 @@ export interface SshKeyImportError extends Error {
1285
1278
 
1286
1279
  export function isSshKeyImportError(error: any): error is SshKeyImportError;
1287
1280
 
1281
+ export interface KeyGenerationError extends Error {
1282
+ name: "KeyGenerationError";
1283
+ variant: "KeyGeneration" | "KeyConversion";
1284
+ }
1285
+
1286
+ export function isKeyGenerationError(error: any): error is KeyGenerationError;
1287
+
1288
1288
  export type KeyAlgorithm = "Ed25519" | "Rsa3072" | "Rsa4096";
1289
1289
 
1290
1290
  export interface DatabaseError extends Error {
@@ -655,9 +655,9 @@ exports.ipcRequestDiscover = function(ipc_client, destination, abort_signal) {
655
655
  * @param {any} error
656
656
  * @returns {boolean}
657
657
  */
658
- exports.isSshKeyExportError = function(error) {
658
+ exports.isKeyGenerationError = function(error) {
659
659
  try {
660
- const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
660
+ const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
661
661
  return ret !== 0;
662
662
  } finally {
663
663
  heap[stack_pointer++] = undefined;
@@ -668,9 +668,9 @@ exports.isSshKeyExportError = function(error) {
668
668
  * @param {any} error
669
669
  * @returns {boolean}
670
670
  */
671
- exports.isSshKeyImportError = function(error) {
671
+ exports.isSshKeyExportError = function(error) {
672
672
  try {
673
- const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
673
+ const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
674
674
  return ret !== 0;
675
675
  } finally {
676
676
  heap[stack_pointer++] = undefined;
@@ -681,9 +681,9 @@ exports.isSshKeyImportError = function(error) {
681
681
  * @param {any} error
682
682
  * @returns {boolean}
683
683
  */
684
- exports.isKeyGenerationError = function(error) {
684
+ exports.isSshKeyImportError = function(error) {
685
685
  try {
686
- const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
686
+ const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
687
687
  return ret !== 0;
688
688
  } finally {
689
689
  heap[stack_pointer++] = undefined;
@@ -989,18 +989,14 @@ exports.isGetFolderError = function(error) {
989
989
  }
990
990
  };
991
991
 
992
- function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
993
- wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
994
- }
995
-
996
992
  function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
997
993
  wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
998
994
  }
999
995
 
1000
- function wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3(arg0, arg1, arg2) {
996
+ function wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e(arg0, arg1, arg2) {
1001
997
  try {
1002
998
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1003
- wasm.wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3(retptr, arg0, arg1, addHeapObject(arg2));
999
+ wasm.wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e(retptr, arg0, arg1, addHeapObject(arg2));
1004
1000
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1005
1001
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1006
1002
  if (r1) {
@@ -1011,6 +1007,10 @@ function wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3(arg0, arg
1011
1007
  }
1012
1008
  }
1013
1009
 
1010
+ function wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df(arg0, arg1, arg2) {
1011
+ wasm.wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df(arg0, arg1, addHeapObject(arg2));
1012
+ }
1013
+
1014
1014
  function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
1015
1015
  wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1016
1016
  }
@@ -4843,7 +4843,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
4843
4843
  return addHeapObject(ret);
4844
4844
  }, arguments) };
4845
4845
 
4846
- exports.__wbg_cipher_99d0bf2a506cd93a = function(arg0) {
4846
+ exports.__wbg_cipher_668ddb3b3044cb95 = function(arg0) {
4847
4847
  const ret = getObject(arg0).cipher;
4848
4848
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4849
4849
  };
@@ -4935,7 +4935,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
4935
4935
  return addHeapObject(ret);
4936
4936
  };
4937
4937
 
4938
- exports.__wbg_folder_bd11165c8ba409a5 = function(arg0) {
4938
+ exports.__wbg_folder_67f44a9cc2eadfe1 = function(arg0) {
4939
4939
  const ret = getObject(arg0).folder;
4940
4940
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4941
4941
  };
@@ -4967,7 +4967,17 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
4967
4967
  return ret;
4968
4968
  };
4969
4969
 
4970
- exports.__wbg_get_3a39ecb3d61925e8 = function() { return handleError(function (arg0, arg1, arg2) {
4970
+ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
4971
+ const ret = getObject(arg0)[arg1 >>> 0];
4972
+ return addHeapObject(ret);
4973
+ };
4974
+
4975
+ exports.__wbg_get_access_token_02de5a5864128abb = function(arg0) {
4976
+ const ret = getObject(arg0).get_access_token();
4977
+ return addHeapObject(ret);
4978
+ };
4979
+
4980
+ exports.__wbg_get_e7d2d521419c9031 = function() { return handleError(function (arg0, arg1, arg2) {
4971
4981
  let deferred0_0;
4972
4982
  let deferred0_1;
4973
4983
  try {
@@ -4980,17 +4990,7 @@ exports.__wbg_get_3a39ecb3d61925e8 = function() { return handleError(function (a
4980
4990
  }
4981
4991
  }, arguments) };
4982
4992
 
4983
- exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
4984
- const ret = getObject(arg0)[arg1 >>> 0];
4985
- return addHeapObject(ret);
4986
- };
4987
-
4988
- exports.__wbg_get_access_token_caeee7a05d361115 = function(arg0) {
4989
- const ret = getObject(arg0).get_access_token();
4990
- return addHeapObject(ret);
4991
- };
4992
-
4993
- exports.__wbg_get_efc472cc8b33cc90 = function() { return handleError(function (arg0, arg1, arg2) {
4993
+ exports.__wbg_get_eecade45714aba08 = function() { return handleError(function (arg0, arg1, arg2) {
4994
4994
  let deferred0_0;
4995
4995
  let deferred0_1;
4996
4996
  try {
@@ -5191,12 +5191,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
5191
5191
  return ret;
5192
5192
  };
5193
5193
 
5194
- exports.__wbg_list_6b31f0e7826be6fa = function() { return handleError(function (arg0) {
5194
+ exports.__wbg_list_85121a3542cb05b1 = function() { return handleError(function (arg0) {
5195
5195
  const ret = getObject(arg0).list();
5196
5196
  return addHeapObject(ret);
5197
5197
  }, arguments) };
5198
5198
 
5199
- exports.__wbg_list_bea4ba6ef563512c = function() { return handleError(function (arg0) {
5199
+ exports.__wbg_list_ca3aaff2a7cb1640 = function() { return handleError(function (arg0) {
5200
5200
  const ret = getObject(arg0).list();
5201
5201
  return addHeapObject(ret);
5202
5202
  }, arguments) };
@@ -5418,7 +5418,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
5418
5418
  getObject(arg0).randomFillSync(takeObject(arg1));
5419
5419
  }, arguments) };
5420
5420
 
5421
- exports.__wbg_remove_eca422df184eb1de = function() { return handleError(function (arg0, arg1, arg2) {
5421
+ exports.__wbg_remove_a62b6083405c4250 = function() { return handleError(function (arg0, arg1, arg2) {
5422
5422
  let deferred0_0;
5423
5423
  let deferred0_1;
5424
5424
  try {
@@ -5431,7 +5431,7 @@ exports.__wbg_remove_eca422df184eb1de = function() { return handleError(function
5431
5431
  }
5432
5432
  }, arguments) };
5433
5433
 
5434
- exports.__wbg_remove_ee9c977274161f7f = function() { return handleError(function (arg0, arg1, arg2) {
5434
+ exports.__wbg_remove_d95cb01abb300f7b = function() { return handleError(function (arg0, arg1, arg2) {
5435
5435
  let deferred0_0;
5436
5436
  let deferred0_1;
5437
5437
  try {
@@ -5469,6 +5469,19 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
5469
5469
  return addHeapObject(ret);
5470
5470
  };
5471
5471
 
5472
+ exports.__wbg_set_14d5a11c374267ee = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5473
+ let deferred0_0;
5474
+ let deferred0_1;
5475
+ try {
5476
+ deferred0_0 = arg1;
5477
+ deferred0_1 = arg2;
5478
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5479
+ return addHeapObject(ret);
5480
+ } finally {
5481
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5482
+ }
5483
+ }, arguments) };
5484
+
5472
5485
  exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
5473
5486
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5474
5487
  };
@@ -5491,24 +5504,11 @@ exports.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (a
5491
5504
  return ret;
5492
5505
  }, arguments) };
5493
5506
 
5494
- exports.__wbg_set_cacab93d39f80fd1 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5495
- let deferred0_0;
5496
- let deferred0_1;
5497
- try {
5498
- deferred0_0 = arg1;
5499
- deferred0_1 = arg2;
5500
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5501
- return addHeapObject(ret);
5502
- } finally {
5503
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5504
- }
5505
- }, arguments) };
5506
-
5507
5507
  exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
5508
5508
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5509
5509
  };
5510
5510
 
5511
- exports.__wbg_set_e6f6b4ab3f89ad14 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5511
+ exports.__wbg_set_e2fe9ac3109696fb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5512
5512
  let deferred0_0;
5513
5513
  let deferred0_1;
5514
5514
  try {
@@ -5686,21 +5686,21 @@ exports.__wbg_warn_8f5b5437666d0885 = function(arg0, arg1, arg2, arg3) {
5686
5686
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5687
5687
  };
5688
5688
 
5689
- exports.__wbindgen_cast_040237b82ce31ec9 = function(arg0, arg1) {
5690
- // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5691
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5689
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
5690
+ // Cast intrinsic for `Ref(String) -> Externref`.
5691
+ const ret = getStringFromWasm0(arg0, arg1);
5692
5692
  return addHeapObject(ret);
5693
5693
  };
5694
5694
 
5695
- exports.__wbindgen_cast_1e9dc1058b799ead = function(arg0, arg1) {
5696
- // 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`.
5697
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1d5e70ff7d1cc2b9, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5695
+ exports.__wbindgen_cast_22b4944821d4b7c9 = function(arg0, arg1) {
5696
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5697
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df);
5698
5698
  return addHeapObject(ret);
5699
5699
  };
5700
5700
 
5701
- exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
5702
- // Cast intrinsic for `Ref(String) -> Externref`.
5703
- const ret = getStringFromWasm0(arg0, arg1);
5701
+ exports.__wbindgen_cast_4042b341512ce63a = function(arg0, arg1) {
5702
+ // 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`.
5703
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hcdeece46b5bdeb9b, wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df);
5704
5704
  return addHeapObject(ret);
5705
5705
  };
5706
5706
 
@@ -5724,6 +5724,12 @@ exports.__wbindgen_cast_73a0930a4562bf7d = function(arg0, arg1) {
5724
5724
  return addHeapObject(ret);
5725
5725
  };
5726
5726
 
5727
+ exports.__wbindgen_cast_74e55181dcd20690 = function(arg0, arg1) {
5728
+ // 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`.
5729
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df);
5730
+ return addHeapObject(ret);
5731
+ };
5732
+
5727
5733
  exports.__wbindgen_cast_7a6d185652cd8149 = function(arg0, arg1) {
5728
5734
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5729
5735
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5750,15 +5756,15 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
5750
5756
  return addHeapObject(ret);
5751
5757
  };
5752
5758
 
5753
- exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
5754
- // Cast intrinsic for `F64 -> Externref`.
5755
- const ret = arg0;
5759
+ exports.__wbindgen_cast_d49c305f67640cb1 = function(arg0, arg1) {
5760
+ // 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`.
5761
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hcdeece46b5bdeb9b, wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e);
5756
5762
  return addHeapObject(ret);
5757
5763
  };
5758
5764
 
5759
- exports.__wbindgen_cast_daac1d8e48fc3ba0 = function(arg0, arg1) {
5760
- // 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`.
5761
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1d5e70ff7d1cc2b9, wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3);
5765
+ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
5766
+ // Cast intrinsic for `F64 -> Externref`.
5767
+ const ret = arg0;
5762
5768
  return addHeapObject(ret);
5763
5769
  };
5764
5770
 
@@ -5770,12 +5776,6 @@ exports.__wbindgen_cast_ef90a087adb7475d = function(arg0, arg1) {
5770
5776
  return addHeapObject(ret);
5771
5777
  };
5772
5778
 
5773
- exports.__wbindgen_cast_faabdb593332903b = function(arg0, arg1) {
5774
- // 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`.
5775
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5776
- return addHeapObject(ret);
5777
- };
5778
-
5779
5779
  exports.__wbindgen_object_clone_ref = function(arg0) {
5780
5780
  const ret = getObject(arg0);
5781
5781
  return addHeapObject(ret);
@@ -514,25 +514,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
514
514
  export const vaultclient_attachments: (a: number) => number;
515
515
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
516
516
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
517
- export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
517
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
518
518
  a: number,
519
519
  b: number,
520
- c: number,
521
520
  ) => void;
522
521
  export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
523
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
524
- export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
522
+ export const wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e: (
525
523
  a: number,
526
524
  b: number,
525
+ c: number,
526
+ d: number,
527
527
  ) => void;
528
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
529
- export const wasm_bindgen__closure__destroy__h1d5e70ff7d1cc2b9: (a: number, b: number) => void;
530
- export const wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3: (
528
+ export const wasm_bindgen__closure__destroy__hcdeece46b5bdeb9b: (a: number, b: number) => void;
529
+ export const wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df: (
531
530
  a: number,
532
531
  b: number,
533
532
  c: number,
534
- d: number,
535
533
  ) => void;
534
+ export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
535
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
536
536
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
537
537
  a: number,
538
538
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/commercial-sdk-internal",
3
- "version": "0.2.0-main.497",
3
+ "version": "0.2.0-main.499",
4
4
  "license": "BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT",
5
5
  "repository": {
6
6
  "type": "git",