@bitwarden/sdk-internal 0.2.0-main.403 → 0.2.0-main.405

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.
@@ -2432,18 +2432,22 @@ export class PureCrypto {
2432
2432
  /**
2433
2433
  * Given a decrypted private RSA key PKCS8 DER this
2434
2434
  * returns the corresponding public RSA key in DER format.
2435
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
2435
2436
  */
2436
2437
  static rsa_extract_public_key(private_key: Uint8Array): Uint8Array;
2437
2438
  /**
2438
2439
  * Generates a new RSA key pair and returns the private key
2440
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
2439
2441
  */
2440
2442
  static rsa_generate_keypair(): Uint8Array;
2441
2443
  /**
2442
2444
  * Decrypts data using RSAES-OAEP with SHA-1
2445
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
2443
2446
  */
2444
2447
  static rsa_decrypt_data(encrypted_data: Uint8Array, private_key: Uint8Array): Uint8Array;
2445
2448
  /**
2446
2449
  * Encrypts data using RSAES-OAEP with SHA-1
2450
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
2447
2451
  */
2448
2452
  static rsa_encrypt_data(plain_data: Uint8Array, public_key: Uint8Array): Uint8Array;
2449
2453
  }
@@ -858,22 +858,10 @@ exports.isEncryptFileError = function (error) {
858
858
  }
859
859
  };
860
860
 
861
- function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
862
- wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
863
- }
864
-
865
- function wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559(arg0, arg1, arg2) {
866
- wasm.wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559(
867
- arg0,
868
- arg1,
869
- addHeapObject(arg2),
870
- );
871
- }
872
-
873
- function wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1(arg0, arg1, arg2) {
861
+ function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(arg0, arg1, arg2) {
874
862
  try {
875
863
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
876
- wasm.wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1(
864
+ wasm.wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(
877
865
  retptr,
878
866
  arg0,
879
867
  arg1,
@@ -889,6 +877,18 @@ function wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1(arg0, arg
889
877
  }
890
878
  }
891
879
 
880
+ function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
881
+ wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
882
+ arg0,
883
+ arg1,
884
+ addHeapObject(arg2),
885
+ );
886
+ }
887
+
888
+ function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
889
+ wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
890
+ }
891
+
892
892
  function wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(arg0, arg1, arg2, arg3) {
893
893
  wasm.wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f(
894
894
  arg0,
@@ -4055,6 +4055,7 @@ class PureCrypto {
4055
4055
  /**
4056
4056
  * Given a decrypted private RSA key PKCS8 DER this
4057
4057
  * returns the corresponding public RSA key in DER format.
4058
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
4058
4059
  * @param {Uint8Array} private_key
4059
4060
  * @returns {Uint8Array}
4060
4061
  */
@@ -4080,6 +4081,7 @@ class PureCrypto {
4080
4081
  }
4081
4082
  /**
4082
4083
  * Generates a new RSA key pair and returns the private key
4084
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
4083
4085
  * @returns {Uint8Array}
4084
4086
  */
4085
4087
  static rsa_generate_keypair() {
@@ -4102,6 +4104,7 @@ class PureCrypto {
4102
4104
  }
4103
4105
  /**
4104
4106
  * Decrypts data using RSAES-OAEP with SHA-1
4107
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
4105
4108
  * @param {Uint8Array} encrypted_data
4106
4109
  * @param {Uint8Array} private_key
4107
4110
  * @returns {Uint8Array}
@@ -4130,6 +4133,7 @@ class PureCrypto {
4130
4133
  }
4131
4134
  /**
4132
4135
  * Encrypts data using RSAES-OAEP with SHA-1
4136
+ * HAZMAT WARNING: Do not use outside of implementing cryptofunctionservice
4133
4137
  * @param {Uint8Array} plain_data
4134
4138
  * @param {Uint8Array} public_key
4135
4139
  * @returns {Uint8Array}
@@ -4583,7 +4587,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function () {
4583
4587
  }, arguments);
4584
4588
  };
4585
4589
 
4586
- exports.__wbg_cipher_1cdb0d79866a6837 = function (arg0) {
4590
+ exports.__wbg_cipher_54d9031d60850622 = function (arg0) {
4587
4591
  const ret = getObject(arg0).cipher;
4588
4592
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4589
4593
  };
@@ -4676,7 +4680,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function (arg0, arg1) {
4676
4680
  return addHeapObject(ret);
4677
4681
  };
4678
4682
 
4679
- exports.__wbg_folder_bf0beccb0458352a = function (arg0) {
4683
+ exports.__wbg_folder_2d6703d18bcf6b5f = function (arg0) {
4680
4684
  const ret = getObject(arg0).folder;
4681
4685
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4682
4686
  };
@@ -4692,6 +4696,12 @@ exports.__wbg_getRandomValues_38097e921c2494c3 = function () {
4692
4696
  }, arguments);
4693
4697
  };
4694
4698
 
4699
+ exports.__wbg_getRandomValues_3c9c0d586e575a16 = function () {
4700
+ return handleError(function (arg0, arg1) {
4701
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
4702
+ }, arguments);
4703
+ };
4704
+
4695
4705
  exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function () {
4696
4706
  return handleError(function (arg0, arg1) {
4697
4707
  getObject(arg0).getRandomValues(getObject(arg1));
@@ -4703,7 +4713,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4703
4713
  return ret;
4704
4714
  };
4705
4715
 
4706
- exports.__wbg_get_1b7efe6c2c00e86d = function () {
4716
+ exports.__wbg_get_7a7b765d166b78eb = function () {
4707
4717
  return handleError(function (arg0, arg1, arg2) {
4708
4718
  let deferred0_0;
4709
4719
  let deferred0_1;
@@ -4723,7 +4733,12 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4723
4733
  return addHeapObject(ret);
4724
4734
  };
4725
4735
 
4726
- exports.__wbg_get_ab3c82eecdf4bc91 = function () {
4736
+ exports.__wbg_get_access_token_16ca6a078a16a9e6 = function (arg0) {
4737
+ const ret = getObject(arg0).get_access_token();
4738
+ return addHeapObject(ret);
4739
+ };
4740
+
4741
+ exports.__wbg_get_d7c03a2a1838f895 = function () {
4727
4742
  return handleError(function (arg0, arg1, arg2) {
4728
4743
  let deferred0_0;
4729
4744
  let deferred0_1;
@@ -4738,11 +4753,6 @@ exports.__wbg_get_ab3c82eecdf4bc91 = function () {
4738
4753
  }, arguments);
4739
4754
  };
4740
4755
 
4741
- exports.__wbg_get_access_token_418fcb38cdc8413d = function (arg0) {
4742
- const ret = getObject(arg0).get_access_token();
4743
- return addHeapObject(ret);
4744
- };
4745
-
4746
4756
  exports.__wbg_get_efcb449f58ec27c2 = function () {
4747
4757
  return handleError(function (arg0, arg1) {
4748
4758
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
@@ -4934,14 +4944,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
4934
4944
  return ret;
4935
4945
  };
4936
4946
 
4937
- exports.__wbg_list_056c98609a1fb3ef = function () {
4947
+ exports.__wbg_list_29517841961e05e3 = function () {
4938
4948
  return handleError(function (arg0) {
4939
4949
  const ret = getObject(arg0).list();
4940
4950
  return addHeapObject(ret);
4941
4951
  }, arguments);
4942
4952
  };
4943
4953
 
4944
- exports.__wbg_list_78accfdd0a91ad5f = function () {
4954
+ exports.__wbg_list_935b546af2d9b6de = function () {
4945
4955
  return handleError(function (arg0) {
4946
4956
  const ret = getObject(arg0).list();
4947
4957
  return addHeapObject(ret);
@@ -5185,7 +5195,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5185
5195
  }, arguments);
5186
5196
  };
5187
5197
 
5188
- exports.__wbg_remove_2d6d9bd3eaac392b = function () {
5198
+ exports.__wbg_remove_610f7f30b398d771 = function () {
5189
5199
  return handleError(function (arg0, arg1, arg2) {
5190
5200
  let deferred0_0;
5191
5201
  let deferred0_1;
@@ -5200,7 +5210,7 @@ exports.__wbg_remove_2d6d9bd3eaac392b = function () {
5200
5210
  }, arguments);
5201
5211
  };
5202
5212
 
5203
- exports.__wbg_remove_7648970db543e157 = function () {
5213
+ exports.__wbg_remove_d592b4ab55fa372d = function () {
5204
5214
  return handleError(function (arg0, arg1, arg2) {
5205
5215
  let deferred0_0;
5206
5216
  let deferred0_1;
@@ -5246,11 +5256,7 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5246
5256
  return addHeapObject(ret);
5247
5257
  };
5248
5258
 
5249
- exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5250
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5251
- };
5252
-
5253
- exports.__wbg_set_5235cc0f26ed539b = function () {
5259
+ exports.__wbg_set_16779e1c12161eee = function () {
5254
5260
  return handleError(function (arg0, arg1, arg2, arg3) {
5255
5261
  let deferred0_0;
5256
5262
  let deferred0_1;
@@ -5265,7 +5271,11 @@ exports.__wbg_set_5235cc0f26ed539b = function () {
5265
5271
  }, arguments);
5266
5272
  };
5267
5273
 
5268
- exports.__wbg_set_7f395f02ecd2904e = function () {
5274
+ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5275
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5276
+ };
5277
+
5278
+ exports.__wbg_set_6d45f26bc45340a7 = function () {
5269
5279
  return handleError(function (arg0, arg1, arg2, arg3) {
5270
5280
  let deferred0_0;
5271
5281
  let deferred0_1;
@@ -5468,17 +5478,6 @@ exports.__wbg_warn_8f5b5437666d0885 = function (arg0, arg1, arg2, arg3) {
5468
5478
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
5469
5479
  };
5470
5480
 
5471
- exports.__wbindgen_cast_1dc3b0d4f0abedd3 = function (arg0, arg1) {
5472
- // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5473
- const ret = makeMutClosure(
5474
- arg0,
5475
- arg1,
5476
- wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5477
- wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559,
5478
- );
5479
- return addHeapObject(ret);
5480
- };
5481
-
5482
5481
  exports.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
5483
5482
  // Cast intrinsic for `Ref(String) -> Externref`.
5484
5483
  const ret = getStringFromWasm0(arg0, arg1);
@@ -5490,8 +5489,8 @@ exports.__wbindgen_cast_4042b341512ce63a = function (arg0, arg1) {
5490
5489
  const ret = makeMutClosure(
5491
5490
  arg0,
5492
5491
  arg1,
5493
- wasm.wasm_bindgen__closure__destroy__h03de969722544a39,
5494
- wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559,
5492
+ wasm.wasm_bindgen__closure__destroy__h09d4e676b918dc23,
5493
+ wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa,
5495
5494
  );
5496
5495
  return addHeapObject(ret);
5497
5496
  };
@@ -5502,6 +5501,17 @@ exports.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
5502
5501
  return addHeapObject(ret);
5503
5502
  };
5504
5503
 
5504
+ exports.__wbindgen_cast_567ce6425eb96825 = function (arg0, arg1) {
5505
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 551, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5506
+ const ret = makeMutClosure(
5507
+ arg0,
5508
+ arg1,
5509
+ wasm.wasm_bindgen__closure__destroy__hfcb631b72e5e985c,
5510
+ wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
5511
+ );
5512
+ return addHeapObject(ret);
5513
+ };
5514
+
5505
5515
  exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
5506
5516
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5507
5517
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -5510,22 +5520,33 @@ exports.__wbindgen_cast_5fea77eff9dd275c = function (arg0, arg1) {
5510
5520
  return addHeapObject(ret);
5511
5521
  };
5512
5522
 
5513
- exports.__wbindgen_cast_6b441f2e42512d6e = function (arg0, arg1) {
5514
- // Cast intrinsic for `Closure(Closure { dtor_idx: 545, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5523
+ exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
5524
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5525
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
5526
+ // Cast intrinsic for `Vector(NamedExternref("Cipher")) -> Externref`.
5527
+ const ret = v0;
5528
+ return addHeapObject(ret);
5529
+ };
5530
+
5531
+ exports.__wbindgen_cast_8340b5b160d85933 = function (arg0, arg1) {
5532
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [], shim_idx: 305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5515
5533
  const ret = makeMutClosure(
5516
5534
  arg0,
5517
5535
  arg1,
5518
- wasm.wasm_bindgen__closure__destroy__hfcb631b72e5e985c,
5536
+ wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5519
5537
  wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
5520
5538
  );
5521
5539
  return addHeapObject(ret);
5522
5540
  };
5523
5541
 
5524
- exports.__wbindgen_cast_7a6d185652cd8149 = function (arg0, arg1) {
5525
- var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5526
- wasm.__wbindgen_free(arg0, arg1 * 4, 4);
5527
- // Cast intrinsic for `Vector(NamedExternref("Cipher")) -> Externref`.
5528
- const ret = v0;
5542
+ exports.__wbindgen_cast_9654b59eb60e619d = function (arg0, arg1) {
5543
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 304, function: Function { arguments: [Externref], shim_idx: 44, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5544
+ const ret = makeMutClosure(
5545
+ arg0,
5546
+ arg1,
5547
+ wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5548
+ wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa,
5549
+ );
5529
5550
  return addHeapObject(ret);
5530
5551
  };
5531
5552
 
@@ -5546,8 +5567,8 @@ exports.__wbindgen_cast_d49c305f67640cb1 = function (arg0, arg1) {
5546
5567
  const ret = makeMutClosure(
5547
5568
  arg0,
5548
5569
  arg1,
5549
- wasm.wasm_bindgen__closure__destroy__h03de969722544a39,
5550
- wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1,
5570
+ wasm.wasm_bindgen__closure__destroy__h09d4e676b918dc23,
5571
+ wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf,
5551
5572
  );
5552
5573
  return addHeapObject(ret);
5553
5574
  };
@@ -5558,17 +5579,6 @@ exports.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
5558
5579
  return addHeapObject(ret);
5559
5580
  };
5560
5581
 
5561
- exports.__wbindgen_cast_d87bfd09ab1288e4 = function (arg0, arg1) {
5562
- // Cast intrinsic for `Closure(Closure { dtor_idx: 298, function: Function { arguments: [], shim_idx: 299, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5563
- const ret = makeMutClosure(
5564
- arg0,
5565
- arg1,
5566
- wasm.wasm_bindgen__closure__destroy__h5bf455f3385c4f71,
5567
- wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e,
5568
- );
5569
- return addHeapObject(ret);
5570
- };
5571
-
5572
5582
  exports.__wbindgen_cast_ef90a087adb7475d = function (arg0, arg1) {
5573
5583
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
5574
5584
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -447,24 +447,24 @@ export const __wbg_totpclient_free: (a: number, b: number) => void;
447
447
  export const __wbg_get_outgoingmessage_destination: (a: number) => number;
448
448
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
449
449
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
450
- export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
450
+ export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
451
451
  a: number,
452
452
  b: number,
453
+ c: number,
454
+ d: number,
453
455
  ) => void;
454
- export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
455
- export const wasm_bindgen__convert__closures_____invoke__h3bed1aa0e3f56559: (
456
+ export const wasm_bindgen__closure__destroy__h09d4e676b918dc23: (a: number, b: number) => void;
457
+ export const wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa: (
456
458
  a: number,
457
459
  b: number,
458
460
  c: number,
459
461
  ) => void;
460
462
  export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
461
- export const wasm_bindgen__closure__destroy__h03de969722544a39: (a: number, b: number) => void;
462
- export const wasm_bindgen__convert__closures_____invoke__hf2aaabd14a684be1: (
463
+ export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
463
464
  a: number,
464
465
  b: number,
465
- c: number,
466
- d: number,
467
466
  ) => void;
467
+ export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
468
468
  export const wasm_bindgen__convert__closures_____invoke__h43dfd80678632d6f: (
469
469
  a: number,
470
470
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.403",
3
+ "version": "0.2.0-main.405",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",