@bitwarden/sdk-internal 0.2.0-main.404 → 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,18 +858,6 @@ exports.isEncryptFileError = function (error) {
858
858
  }
859
859
  };
860
860
 
861
- function wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(arg0, arg1, arg2) {
862
- wasm.wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa(
863
- arg0,
864
- arg1,
865
- addHeapObject(arg2),
866
- );
867
- }
868
-
869
- function wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1) {
870
- wasm.wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e(arg0, arg1);
871
- }
872
-
873
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);
@@ -889,6 +877,18 @@ function wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf(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_a69755738b4a95e4 = 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_6ddccfa2359908cd = 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
  };
@@ -4709,7 +4713,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function (arg0) {
4709
4713
  return ret;
4710
4714
  };
4711
4715
 
4712
- exports.__wbg_get_63fc1a87cfa05664 = function () {
4716
+ exports.__wbg_get_7a7b765d166b78eb = function () {
4713
4717
  return handleError(function (arg0, arg1, arg2) {
4714
4718
  let deferred0_0;
4715
4719
  let deferred0_1;
@@ -4729,7 +4733,12 @@ exports.__wbg_get_7bed016f185add81 = function (arg0, arg1) {
4729
4733
  return addHeapObject(ret);
4730
4734
  };
4731
4735
 
4732
- exports.__wbg_get_7f59e4189b579885 = 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 () {
4733
4742
  return handleError(function (arg0, arg1, arg2) {
4734
4743
  let deferred0_0;
4735
4744
  let deferred0_1;
@@ -4744,11 +4753,6 @@ exports.__wbg_get_7f59e4189b579885 = function () {
4744
4753
  }, arguments);
4745
4754
  };
4746
4755
 
4747
- exports.__wbg_get_access_token_5d1676f62fd8cd77 = function (arg0) {
4748
- const ret = getObject(arg0).get_access_token();
4749
- return addHeapObject(ret);
4750
- };
4751
-
4752
4756
  exports.__wbg_get_efcb449f58ec27c2 = function () {
4753
4757
  return handleError(function (arg0, arg1) {
4754
4758
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
@@ -4940,14 +4944,14 @@ exports.__wbg_length_cdd215e10d9dd507 = function (arg0) {
4940
4944
  return ret;
4941
4945
  };
4942
4946
 
4943
- exports.__wbg_list_2aa62e3f6d399917 = function () {
4947
+ exports.__wbg_list_29517841961e05e3 = function () {
4944
4948
  return handleError(function (arg0) {
4945
4949
  const ret = getObject(arg0).list();
4946
4950
  return addHeapObject(ret);
4947
4951
  }, arguments);
4948
4952
  };
4949
4953
 
4950
- exports.__wbg_list_3b311a5af885ff76 = function () {
4954
+ exports.__wbg_list_935b546af2d9b6de = function () {
4951
4955
  return handleError(function (arg0) {
4952
4956
  const ret = getObject(arg0).list();
4953
4957
  return addHeapObject(ret);
@@ -5191,7 +5195,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
5191
5195
  }, arguments);
5192
5196
  };
5193
5197
 
5194
- exports.__wbg_remove_47756c4838416808 = function () {
5198
+ exports.__wbg_remove_610f7f30b398d771 = function () {
5195
5199
  return handleError(function (arg0, arg1, arg2) {
5196
5200
  let deferred0_0;
5197
5201
  let deferred0_1;
@@ -5206,7 +5210,7 @@ exports.__wbg_remove_47756c4838416808 = function () {
5206
5210
  }, arguments);
5207
5211
  };
5208
5212
 
5209
- exports.__wbg_remove_e8858f2fbc02dbd1 = function () {
5213
+ exports.__wbg_remove_d592b4ab55fa372d = function () {
5210
5214
  return handleError(function (arg0, arg1, arg2) {
5211
5215
  let deferred0_0;
5212
5216
  let deferred0_1;
@@ -5252,7 +5256,7 @@ exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
5252
5256
  return addHeapObject(ret);
5253
5257
  };
5254
5258
 
5255
- exports.__wbg_set_268d54f279c675e3 = function () {
5259
+ exports.__wbg_set_16779e1c12161eee = function () {
5256
5260
  return handleError(function (arg0, arg1, arg2, arg3) {
5257
5261
  let deferred0_0;
5258
5262
  let deferred0_1;
@@ -5271,7 +5275,7 @@ exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
5271
5275
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5272
5276
  };
5273
5277
 
5274
- exports.__wbg_set_6e08863f9db5b0dc = function () {
5278
+ exports.__wbg_set_6d45f26bc45340a7 = function () {
5275
5279
  return handleError(function (arg0, arg1, arg2, arg3) {
5276
5280
  let deferred0_0;
5277
5281
  let deferred0_1;
@@ -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__h5c75b123e343f7aa: (
450
+ export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
451
451
  a: number,
452
452
  b: number,
453
453
  c: number,
454
+ d: number,
454
455
  ) => void;
455
456
  export const wasm_bindgen__closure__destroy__h09d4e676b918dc23: (a: number, b: number) => void;
456
- export const wasm_bindgen__convert__closures_____invoke__h092300064b8afb1e: (
457
+ export const wasm_bindgen__convert__closures_____invoke__h5c75b123e343f7aa: (
457
458
  a: number,
458
459
  b: number,
460
+ c: number,
459
461
  ) => void;
460
- export const wasm_bindgen__closure__destroy__hfcb631b72e5e985c: (a: number, b: number) => void;
461
462
  export const wasm_bindgen__closure__destroy__h5bf455f3385c4f71: (a: number, b: number) => void;
462
- export const wasm_bindgen__convert__closures_____invoke__hb20fdca52a2a2cdf: (
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.404",
3
+ "version": "0.2.0-main.405",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",