@bitwarden/sdk-internal 0.2.0-main.485 → 0.2.0-main.486

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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 73d8892908913e0be6240cf3b0cf97eae18593e0
1
+ c830ffa65804bb630a945611570b0d8e5bf4b9fe
@@ -569,6 +569,13 @@ export type WrappedAccountCryptographicState =
569
569
  };
570
570
  };
571
571
 
572
+ export interface RotateCryptographyStateError extends Error {
573
+ name: "RotateCryptographyStateError";
574
+ variant: "KeyMissing" | "InvalidData";
575
+ }
576
+
577
+ export function isRotateCryptographyStateError(error: any): error is RotateCryptographyStateError;
578
+
572
579
  /**
573
580
  * Response from the `make_update_password` function
574
581
  */
@@ -401,6 +401,19 @@ export function isAccountCryptographyInitializationError(error) {
401
401
  }
402
402
  }
403
403
 
404
+ /**
405
+ * @param {any} error
406
+ * @returns {boolean}
407
+ */
408
+ export function isRotateCryptographyStateError(error) {
409
+ try {
410
+ const ret = wasm.isRotateCryptographyStateError(addBorrowedObject(error));
411
+ return ret !== 0;
412
+ } finally {
413
+ heap[stack_pointer++] = undefined;
414
+ }
415
+ }
416
+
404
417
  /**
405
418
  * @param {any} error
406
419
  * @returns {boolean}
@@ -986,14 +999,14 @@ export function isGetFolderError(error) {
986
999
  }
987
1000
  }
988
1001
 
989
- function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
990
- wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
991
- }
992
-
993
1002
  function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
994
1003
  wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
995
1004
  }
996
1005
 
1006
+ function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
1007
+ wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
1008
+ }
1009
+
997
1010
  function wasm_bindgen__convert__closures_____invoke__h693de69d229f304a(arg0, arg1, arg2) {
998
1011
  try {
999
1012
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -4710,7 +4723,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
4710
4723
  return addHeapObject(ret);
4711
4724
  }, arguments) };
4712
4725
 
4713
- export function __wbg_cipher_8d1909ce281f4a10(arg0) {
4726
+ export function __wbg_cipher_d687be99ff3a914d(arg0) {
4714
4727
  const ret = getObject(arg0).cipher;
4715
4728
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4716
4729
  };
@@ -4802,7 +4815,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4802
4815
  return addHeapObject(ret);
4803
4816
  };
4804
4817
 
4805
- export function __wbg_folder_c85463bfa8e87036(arg0) {
4818
+ export function __wbg_folder_9e294147a7313385(arg0) {
4806
4819
  const ret = getObject(arg0).folder;
4807
4820
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4808
4821
  };
@@ -4834,7 +4847,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4834
4847
  return ret;
4835
4848
  };
4836
4849
 
4837
- export function __wbg_get_61cef8fcf59a1887() { return handleError(function (arg0, arg1, arg2) {
4850
+ export function __wbg_get_5e6e196b7e315352() { return handleError(function (arg0, arg1, arg2) {
4838
4851
  let deferred0_0;
4839
4852
  let deferred0_1;
4840
4853
  try {
@@ -4852,12 +4865,12 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
4852
4865
  return addHeapObject(ret);
4853
4866
  };
4854
4867
 
4855
- export function __wbg_get_access_token_69f0eef2738fa0a6(arg0) {
4868
+ export function __wbg_get_access_token_e2760ab93692a550(arg0) {
4856
4869
  const ret = getObject(arg0).get_access_token();
4857
4870
  return addHeapObject(ret);
4858
4871
  };
4859
4872
 
4860
- export function __wbg_get_af210d83b309a3db() { return handleError(function (arg0, arg1, arg2) {
4873
+ export function __wbg_get_e6ec424f9032b35c() { return handleError(function (arg0, arg1, arg2) {
4861
4874
  let deferred0_0;
4862
4875
  let deferred0_1;
4863
4876
  try {
@@ -5058,12 +5071,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5058
5071
  return ret;
5059
5072
  };
5060
5073
 
5061
- export function __wbg_list_86659d3ee0306c83() { return handleError(function (arg0) {
5074
+ export function __wbg_list_42bf62b33a13ad31() { return handleError(function (arg0) {
5062
5075
  const ret = getObject(arg0).list();
5063
5076
  return addHeapObject(ret);
5064
5077
  }, arguments) };
5065
5078
 
5066
- export function __wbg_list_fd54b98318942b4b() { return handleError(function (arg0) {
5079
+ export function __wbg_list_611d82206bdbf704() { return handleError(function (arg0) {
5067
5080
  const ret = getObject(arg0).list();
5068
5081
  return addHeapObject(ret);
5069
5082
  }, arguments) };
@@ -5285,7 +5298,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
5285
5298
  getObject(arg0).randomFillSync(takeObject(arg1));
5286
5299
  }, arguments) };
5287
5300
 
5288
- export function __wbg_remove_3c9eb11764be0edc() { return handleError(function (arg0, arg1, arg2) {
5301
+ export function __wbg_remove_9ed247eaa9631247() { return handleError(function (arg0, arg1, arg2) {
5289
5302
  let deferred0_0;
5290
5303
  let deferred0_1;
5291
5304
  try {
@@ -5298,7 +5311,7 @@ export function __wbg_remove_3c9eb11764be0edc() { return handleError(function (a
5298
5311
  }
5299
5312
  }, arguments) };
5300
5313
 
5301
- export function __wbg_remove_a1e671f9b551dcf0() { return handleError(function (arg0, arg1, arg2) {
5314
+ export function __wbg_remove_b68697fa6d2cf125() { return handleError(function (arg0, arg1, arg2) {
5302
5315
  let deferred0_0;
5303
5316
  let deferred0_1;
5304
5317
  try {
@@ -5340,7 +5353,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5340
5353
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5341
5354
  };
5342
5355
 
5343
- export function __wbg_set_617055d565da34c1() { return handleError(function (arg0, arg1, arg2, arg3) {
5356
+ export function __wbg_set_4d43dc4720dadd8e() { return handleError(function (arg0, arg1, arg2, arg3) {
5344
5357
  let deferred0_0;
5345
5358
  let deferred0_1;
5346
5359
  try {
@@ -5353,7 +5366,12 @@ export function __wbg_set_617055d565da34c1() { return handleError(function (arg0
5353
5366
  }
5354
5367
  }, arguments) };
5355
5368
 
5356
- export function __wbg_set_62159450a5dcdf4b() { return handleError(function (arg0, arg1, arg2, arg3) {
5369
+ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5370
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5371
+ return addHeapObject(ret);
5372
+ };
5373
+
5374
+ export function __wbg_set_a460475c1b17b076() { return handleError(function (arg0, arg1, arg2, arg3) {
5357
5375
  let deferred0_0;
5358
5376
  let deferred0_1;
5359
5377
  try {
@@ -5366,11 +5384,6 @@ export function __wbg_set_62159450a5dcdf4b() { return handleError(function (arg0
5366
5384
  }
5367
5385
  }, arguments) };
5368
5386
 
5369
- export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5370
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5371
- return addHeapObject(ret);
5372
- };
5373
-
5374
5387
  export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5375
5388
  getObject(arg0).body = getObject(arg1);
5376
5389
  };
Binary file
@@ -257,6 +257,7 @@ export const isEncryptionSettingsError: (a: number) => number;
257
257
  export const isEnrollAdminPasswordResetError: (a: number) => number;
258
258
  export const isMakeKeysError: (a: number) => number;
259
259
  export const isMasterPasswordError: (a: number) => number;
260
+ export const isRotateCryptographyStateError: (a: number) => number;
260
261
  export const isStatefulCryptoError: (a: number) => number;
261
262
  export const isCryptoError: (a: number) => number;
262
263
  export const __wbg_exporterclient_free: (a: number, b: number) => void;
@@ -509,16 +510,18 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
509
510
  export const vaultclient_attachments: (a: number) => number;
510
511
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
511
512
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
512
- export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
513
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
513
514
  a: number,
514
515
  b: number,
515
- c: number,
516
516
  ) => void;
517
517
  export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
518
- export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
518
+ export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
519
519
  a: number,
520
520
  b: number,
521
+ c: number,
521
522
  ) => void;
523
+ export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
524
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
522
525
  export const wasm_bindgen__convert__closures_____invoke__h693de69d229f304a: (
523
526
  a: number,
524
527
  b: number,
@@ -526,8 +529,6 @@ export const wasm_bindgen__convert__closures_____invoke__h693de69d229f304a: (
526
529
  d: number,
527
530
  ) => void;
528
531
  export const wasm_bindgen__closure__destroy__h0d4ec2bbb1b6536b: (a: number, b: number) => void;
529
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
530
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
531
532
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
532
533
  a: number,
533
534
  b: number,