@bitwarden/commercial-sdk-internal 0.2.0-main.498 → 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 {
@@ -665,9 +665,9 @@ export function ipcRequestDiscover(ipc_client, destination, abort_signal) {
665
665
  * @param {any} error
666
666
  * @returns {boolean}
667
667
  */
668
- export function isSshKeyExportError(error) {
668
+ export function isKeyGenerationError(error) {
669
669
  try {
670
- const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
670
+ const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
671
671
  return ret !== 0;
672
672
  } finally {
673
673
  heap[stack_pointer++] = undefined;
@@ -678,9 +678,9 @@ export function isSshKeyExportError(error) {
678
678
  * @param {any} error
679
679
  * @returns {boolean}
680
680
  */
681
- export function isSshKeyImportError(error) {
681
+ export function isSshKeyExportError(error) {
682
682
  try {
683
- const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
683
+ const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
684
684
  return ret !== 0;
685
685
  } finally {
686
686
  heap[stack_pointer++] = undefined;
@@ -691,9 +691,9 @@ export function isSshKeyImportError(error) {
691
691
  * @param {any} error
692
692
  * @returns {boolean}
693
693
  */
694
- export function isKeyGenerationError(error) {
694
+ export function isSshKeyImportError(error) {
695
695
  try {
696
- const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
696
+ const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
697
697
  return ret !== 0;
698
698
  } finally {
699
699
  heap[stack_pointer++] = undefined;
@@ -999,14 +999,18 @@ export function isGetFolderError(error) {
999
999
  }
1000
1000
  }
1001
1001
 
1002
+ function wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df(arg0, arg1, arg2) {
1003
+ wasm.wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df(arg0, arg1, addHeapObject(arg2));
1004
+ }
1005
+
1002
1006
  function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1003
1007
  wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1004
1008
  }
1005
1009
 
1006
- function wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3(arg0, arg1, arg2) {
1010
+ function wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e(arg0, arg1, arg2) {
1007
1011
  try {
1008
1012
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1009
- wasm.wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3(retptr, arg0, arg1, addHeapObject(arg2));
1013
+ wasm.wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e(retptr, arg0, arg1, addHeapObject(arg2));
1010
1014
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1011
1015
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1012
1016
  if (r1) {
@@ -1017,10 +1021,6 @@ function wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3(arg0, arg
1017
1021
  }
1018
1022
  }
1019
1023
 
1020
- function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
1021
- wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
1022
- }
1023
-
1024
1024
  function wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, arg2, arg3) {
1025
1025
  wasm.wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1026
1026
  }
@@ -4797,7 +4797,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
4797
4797
  return addHeapObject(ret);
4798
4798
  }, arguments) };
4799
4799
 
4800
- export function __wbg_cipher_43eefff0076d2298(arg0) {
4800
+ export function __wbg_cipher_668ddb3b3044cb95(arg0) {
4801
4801
  const ret = getObject(arg0).cipher;
4802
4802
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4803
4803
  };
@@ -4889,7 +4889,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4889
4889
  return addHeapObject(ret);
4890
4890
  };
4891
4891
 
4892
- export function __wbg_folder_7cc2eb4ab856ec8c(arg0) {
4892
+ export function __wbg_folder_67f44a9cc2eadfe1(arg0) {
4893
4893
  const ret = getObject(arg0).folder;
4894
4894
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4895
4895
  };
@@ -4921,7 +4921,17 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4921
4921
  return ret;
4922
4922
  };
4923
4923
 
4924
- export function __wbg_get_08fb71f38ce7f5cc() { return handleError(function (arg0, arg1, arg2) {
4924
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4925
+ const ret = getObject(arg0)[arg1 >>> 0];
4926
+ return addHeapObject(ret);
4927
+ };
4928
+
4929
+ export function __wbg_get_access_token_02de5a5864128abb(arg0) {
4930
+ const ret = getObject(arg0).get_access_token();
4931
+ return addHeapObject(ret);
4932
+ };
4933
+
4934
+ export function __wbg_get_e7d2d521419c9031() { return handleError(function (arg0, arg1, arg2) {
4925
4935
  let deferred0_0;
4926
4936
  let deferred0_1;
4927
4937
  try {
@@ -4934,17 +4944,7 @@ export function __wbg_get_08fb71f38ce7f5cc() { return handleError(function (arg0
4934
4944
  }
4935
4945
  }, arguments) };
4936
4946
 
4937
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
4938
- const ret = getObject(arg0)[arg1 >>> 0];
4939
- return addHeapObject(ret);
4940
- };
4941
-
4942
- export function __wbg_get_access_token_47172f4bf5df2de9(arg0) {
4943
- const ret = getObject(arg0).get_access_token();
4944
- return addHeapObject(ret);
4945
- };
4946
-
4947
- export function __wbg_get_e72f85b07893eec3() { return handleError(function (arg0, arg1, arg2) {
4947
+ export function __wbg_get_eecade45714aba08() { return handleError(function (arg0, arg1, arg2) {
4948
4948
  let deferred0_0;
4949
4949
  let deferred0_1;
4950
4950
  try {
@@ -5145,12 +5145,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5145
5145
  return ret;
5146
5146
  };
5147
5147
 
5148
- export function __wbg_list_5ddd2abddb83153d() { return handleError(function (arg0) {
5148
+ export function __wbg_list_85121a3542cb05b1() { return handleError(function (arg0) {
5149
5149
  const ret = getObject(arg0).list();
5150
5150
  return addHeapObject(ret);
5151
5151
  }, arguments) };
5152
5152
 
5153
- export function __wbg_list_cdb60cc3b491a89e() { return handleError(function (arg0) {
5153
+ export function __wbg_list_ca3aaff2a7cb1640() { return handleError(function (arg0) {
5154
5154
  const ret = getObject(arg0).list();
5155
5155
  return addHeapObject(ret);
5156
5156
  }, arguments) };
@@ -5372,7 +5372,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
5372
5372
  getObject(arg0).randomFillSync(takeObject(arg1));
5373
5373
  }, arguments) };
5374
5374
 
5375
- export function __wbg_remove_a7df4f756f0938a1() { return handleError(function (arg0, arg1, arg2) {
5375
+ export function __wbg_remove_a62b6083405c4250() { return handleError(function (arg0, arg1, arg2) {
5376
5376
  let deferred0_0;
5377
5377
  let deferred0_1;
5378
5378
  try {
@@ -5385,7 +5385,7 @@ export function __wbg_remove_a7df4f756f0938a1() { return handleError(function (a
5385
5385
  }
5386
5386
  }, arguments) };
5387
5387
 
5388
- export function __wbg_remove_e45a09adfe94403e() { return handleError(function (arg0, arg1, arg2) {
5388
+ export function __wbg_remove_d95cb01abb300f7b() { return handleError(function (arg0, arg1, arg2) {
5389
5389
  let deferred0_0;
5390
5390
  let deferred0_1;
5391
5391
  try {
@@ -5423,7 +5423,7 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
5423
5423
  return addHeapObject(ret);
5424
5424
  };
5425
5425
 
5426
- export function __wbg_set_2deb0a8e5bd64b17() { return handleError(function (arg0, arg1, arg2, arg3) {
5426
+ export function __wbg_set_14d5a11c374267ee() { return handleError(function (arg0, arg1, arg2, arg3) {
5427
5427
  let deferred0_0;
5428
5428
  let deferred0_1;
5429
5429
  try {
@@ -5440,19 +5440,6 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5440
5440
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5441
5441
  };
5442
5442
 
5443
- export function __wbg_set_4a5b468756cc3b22() { return handleError(function (arg0, arg1, arg2, arg3) {
5444
- let deferred0_0;
5445
- let deferred0_1;
5446
- try {
5447
- deferred0_0 = arg1;
5448
- deferred0_1 = arg2;
5449
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5450
- return addHeapObject(ret);
5451
- } finally {
5452
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5453
- }
5454
- }, arguments) };
5455
-
5456
5443
  export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5457
5444
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5458
5445
  return addHeapObject(ret);
@@ -5475,6 +5462,19 @@ export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5475
5462
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5476
5463
  };
5477
5464
 
5465
+ export function __wbg_set_e2fe9ac3109696fb() { return handleError(function (arg0, arg1, arg2, arg3) {
5466
+ let deferred0_0;
5467
+ let deferred0_1;
5468
+ try {
5469
+ deferred0_0 = arg1;
5470
+ deferred0_1 = arg2;
5471
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5472
+ return addHeapObject(ret);
5473
+ } finally {
5474
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5475
+ }
5476
+ }, arguments) };
5477
+
5478
5478
  export function __wbg_set_headers_6926da238cd32ee4(arg0, arg1) {
5479
5479
  getObject(arg0).headers = getObject(arg1);
5480
5480
  };
@@ -5640,21 +5640,21 @@ export function __wbg_warn_8f5b5437666d0885(arg0, arg1, arg2, arg3) {
5640
5640
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5641
5641
  };
5642
5642
 
5643
- export function __wbindgen_cast_040237b82ce31ec9(arg0, arg1) {
5644
- // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5645
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5643
+ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5644
+ // Cast intrinsic for `Ref(String) -> Externref`.
5645
+ const ret = getStringFromWasm0(arg0, arg1);
5646
5646
  return addHeapObject(ret);
5647
5647
  };
5648
5648
 
5649
- export function __wbindgen_cast_1e9dc1058b799ead(arg0, arg1) {
5650
- // 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`.
5651
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1d5e70ff7d1cc2b9, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5649
+ export function __wbindgen_cast_22b4944821d4b7c9(arg0, arg1) {
5650
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 333, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5651
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc71695a401114797, wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df);
5652
5652
  return addHeapObject(ret);
5653
5653
  };
5654
5654
 
5655
- export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
5656
- // Cast intrinsic for `Ref(String) -> Externref`.
5657
- const ret = getStringFromWasm0(arg0, arg1);
5655
+ export function __wbindgen_cast_4042b341512ce63a(arg0, arg1) {
5656
+ // 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`.
5657
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hcdeece46b5bdeb9b, wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df);
5658
5658
  return addHeapObject(ret);
5659
5659
  };
5660
5660
 
@@ -5678,6 +5678,12 @@ export function __wbindgen_cast_73a0930a4562bf7d(arg0, arg1) {
5678
5678
  return addHeapObject(ret);
5679
5679
  };
5680
5680
 
5681
+ export function __wbindgen_cast_74e55181dcd20690(arg0, arg1) {
5682
+ // 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`.
5683
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df);
5684
+ return addHeapObject(ret);
5685
+ };
5686
+
5681
5687
  export function __wbindgen_cast_7a6d185652cd8149(arg0, arg1) {
5682
5688
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5683
5689
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5704,15 +5710,15 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
5704
5710
  return addHeapObject(ret);
5705
5711
  };
5706
5712
 
5707
- export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
5708
- // Cast intrinsic for `F64 -> Externref`.
5709
- const ret = arg0;
5713
+ export function __wbindgen_cast_d49c305f67640cb1(arg0, arg1) {
5714
+ // 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`.
5715
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hcdeece46b5bdeb9b, wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e);
5710
5716
  return addHeapObject(ret);
5711
5717
  };
5712
5718
 
5713
- export function __wbindgen_cast_daac1d8e48fc3ba0(arg0, arg1) {
5714
- // 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`.
5715
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1d5e70ff7d1cc2b9, wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3);
5719
+ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
5720
+ // Cast intrinsic for `F64 -> Externref`.
5721
+ const ret = arg0;
5716
5722
  return addHeapObject(ret);
5717
5723
  };
5718
5724
 
@@ -5724,12 +5730,6 @@ export function __wbindgen_cast_ef90a087adb7475d(arg0, arg1) {
5724
5730
  return addHeapObject(ret);
5725
5731
  };
5726
5732
 
5727
- export function __wbindgen_cast_faabdb593332903b(arg0, arg1) {
5728
- // 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`.
5729
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd9661b26d463effa, wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f);
5730
- return addHeapObject(ret);
5731
- };
5732
-
5733
5733
  export function __wbindgen_object_clone_ref(arg0) {
5734
5734
  const ret = getObject(arg0);
5735
5735
  return addHeapObject(ret);
Binary file
@@ -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__ha638740cca0ef77d: (
517
+ export const wasm_bindgen__convert__closures_____invoke__h1d9a39bdc7a082df: (
518
518
  a: number,
519
519
  b: number,
520
+ c: number,
520
521
  ) => void;
521
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
522
- export const wasm_bindgen__convert__closures_____invoke__hbe1b1141e23123c3: (
522
+ export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
523
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
523
524
  a: number,
524
525
  b: number,
525
- c: number,
526
- d: number,
527
526
  ) => void;
528
- export const wasm_bindgen__closure__destroy__h1d5e70ff7d1cc2b9: (a: number, b: number) => void;
529
- export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
527
+ export const wasm_bindgen__closure__destroy__hcdeece46b5bdeb9b: (a: number, b: number) => void;
528
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
529
+ export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
530
+ export const wasm_bindgen__convert__closures_____invoke__h44e6e85d8d03077e: (
530
531
  a: number,
531
532
  b: number,
532
533
  c: number,
534
+ d: number,
533
535
  ) => void;
534
- export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
535
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
536
536
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
537
537
  a: number,
538
538
  b: number,