@bitwarden/commercial-sdk-internal 0.2.0-main.484 → 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.
@@ -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__h2d1acf2a4a5dec58(arg0, arg1, arg2) {
990
- wasm.wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(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__h2d1acf2a4a5dec58(arg0, arg1, arg2) {
1007
+ wasm.wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58(arg0, arg1, addHeapObject(arg2));
1008
+ }
1009
+
997
1010
  function wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6(arg0, arg1, arg2) {
998
1011
  try {
999
1012
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -4784,7 +4797,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
4784
4797
  return addHeapObject(ret);
4785
4798
  }, arguments) };
4786
4799
 
4787
- export function __wbg_cipher_8e8bd9af75e3c414(arg0) {
4800
+ export function __wbg_cipher_d687be99ff3a914d(arg0) {
4788
4801
  const ret = getObject(arg0).cipher;
4789
4802
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4790
4803
  };
@@ -4876,7 +4889,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
4876
4889
  return addHeapObject(ret);
4877
4890
  };
4878
4891
 
4879
- export function __wbg_folder_e39ef16bda24d499(arg0) {
4892
+ export function __wbg_folder_9e294147a7313385(arg0) {
4880
4893
  const ret = getObject(arg0).folder;
4881
4894
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4882
4895
  };
@@ -4908,7 +4921,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
4908
4921
  return ret;
4909
4922
  };
4910
4923
 
4911
- export function __wbg_get_662432aedd1d5d54() { return handleError(function (arg0, arg1, arg2) {
4924
+ export function __wbg_get_5e6e196b7e315352() { return handleError(function (arg0, arg1, arg2) {
4912
4925
  let deferred0_0;
4913
4926
  let deferred0_1;
4914
4927
  try {
@@ -4921,7 +4934,17 @@ export function __wbg_get_662432aedd1d5d54() { return handleError(function (arg0
4921
4934
  }
4922
4935
  }, arguments) };
4923
4936
 
4924
- export function __wbg_get_773fe44c83c042f4() { return handleError(function (arg0, arg1, arg2) {
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_e2760ab93692a550(arg0) {
4943
+ const ret = getObject(arg0).get_access_token();
4944
+ return addHeapObject(ret);
4945
+ };
4946
+
4947
+ export function __wbg_get_e6ec424f9032b35c() { return handleError(function (arg0, arg1, arg2) {
4925
4948
  let deferred0_0;
4926
4949
  let deferred0_1;
4927
4950
  try {
@@ -4934,16 +4957,6 @@ export function __wbg_get_773fe44c83c042f4() { return handleError(function (arg0
4934
4957
  }
4935
4958
  }, arguments) };
4936
4959
 
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_f609d123ab7233f5(arg0) {
4943
- const ret = getObject(arg0).get_access_token();
4944
- return addHeapObject(ret);
4945
- };
4946
-
4947
4960
  export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
4948
4961
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
4949
4962
  return addHeapObject(ret);
@@ -5132,12 +5145,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5132
5145
  return ret;
5133
5146
  };
5134
5147
 
5135
- export function __wbg_list_9d81db3d777d4e7b() { return handleError(function (arg0) {
5148
+ export function __wbg_list_42bf62b33a13ad31() { return handleError(function (arg0) {
5136
5149
  const ret = getObject(arg0).list();
5137
5150
  return addHeapObject(ret);
5138
5151
  }, arguments) };
5139
5152
 
5140
- export function __wbg_list_ae84358d3e9a5f19() { return handleError(function (arg0) {
5153
+ export function __wbg_list_611d82206bdbf704() { return handleError(function (arg0) {
5141
5154
  const ret = getObject(arg0).list();
5142
5155
  return addHeapObject(ret);
5143
5156
  }, arguments) };
@@ -5359,7 +5372,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
5359
5372
  getObject(arg0).randomFillSync(takeObject(arg1));
5360
5373
  }, arguments) };
5361
5374
 
5362
- export function __wbg_remove_03c2af5864a34328() { return handleError(function (arg0, arg1, arg2) {
5375
+ export function __wbg_remove_9ed247eaa9631247() { return handleError(function (arg0, arg1, arg2) {
5363
5376
  let deferred0_0;
5364
5377
  let deferred0_1;
5365
5378
  try {
@@ -5372,7 +5385,7 @@ export function __wbg_remove_03c2af5864a34328() { return handleError(function (a
5372
5385
  }
5373
5386
  }, arguments) };
5374
5387
 
5375
- export function __wbg_remove_a543b236d5a8007a() { return handleError(function (arg0, arg1, arg2) {
5388
+ export function __wbg_remove_b68697fa6d2cf125() { return handleError(function (arg0, arg1, arg2) {
5376
5389
  let deferred0_0;
5377
5390
  let deferred0_1;
5378
5391
  try {
@@ -5410,7 +5423,11 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
5410
5423
  return addHeapObject(ret);
5411
5424
  };
5412
5425
 
5413
- export function __wbg_set_12b1596d4539a662() { return handleError(function (arg0, arg1, arg2, arg3) {
5426
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5427
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5428
+ };
5429
+
5430
+ export function __wbg_set_4d43dc4720dadd8e() { return handleError(function (arg0, arg1, arg2, arg3) {
5414
5431
  let deferred0_0;
5415
5432
  let deferred0_1;
5416
5433
  try {
@@ -5423,15 +5440,24 @@ export function __wbg_set_12b1596d4539a662() { return handleError(function (arg0
5423
5440
  }
5424
5441
  }, arguments) };
5425
5442
 
5426
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5427
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5428
- };
5429
-
5430
5443
  export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5431
5444
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5432
5445
  return addHeapObject(ret);
5433
5446
  };
5434
5447
 
5448
+ export function __wbg_set_a460475c1b17b076() { return handleError(function (arg0, arg1, arg2, arg3) {
5449
+ let deferred0_0;
5450
+ let deferred0_1;
5451
+ try {
5452
+ deferred0_0 = arg1;
5453
+ deferred0_1 = arg2;
5454
+ const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5455
+ return addHeapObject(ret);
5456
+ } finally {
5457
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5458
+ }
5459
+ }, arguments) };
5460
+
5435
5461
  export function __wbg_set_body_3c365989753d61f4(arg0, arg1) {
5436
5462
  getObject(arg0).body = getObject(arg1);
5437
5463
  };
@@ -5445,19 +5471,6 @@ export function __wbg_set_c2abbebe8b9ebee1() { return handleError(function (arg0
5445
5471
  return ret;
5446
5472
  }, arguments) };
5447
5473
 
5448
- export function __wbg_set_c9990085080df8fc() { return handleError(function (arg0, arg1, arg2, arg3) {
5449
- let deferred0_0;
5450
- let deferred0_1;
5451
- try {
5452
- deferred0_0 = arg1;
5453
- deferred0_1 = arg2;
5454
- const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
5455
- return addHeapObject(ret);
5456
- } finally {
5457
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5458
- }
5459
- }, arguments) };
5460
-
5461
5474
  export function __wbg_set_credentials_f621cd2d85c0c228(arg0, arg1) {
5462
5475
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
5463
5476
  };
Binary file
@@ -259,6 +259,7 @@ export const isEncryptionSettingsError: (a: number) => number;
259
259
  export const isEnrollAdminPasswordResetError: (a: number) => number;
260
260
  export const isMakeKeysError: (a: number) => number;
261
261
  export const isMasterPasswordError: (a: number) => number;
262
+ export const isRotateCryptographyStateError: (a: number) => number;
262
263
  export const isStatefulCryptoError: (a: number) => number;
263
264
  export const isCryptoError: (a: number) => number;
264
265
  export const __wbg_exporterclient_free: (a: number, b: number) => void;
@@ -513,25 +514,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
513
514
  export const vaultclient_attachments: (a: number) => number;
514
515
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
515
516
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
516
- export const wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58: (
517
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
517
518
  a: number,
518
519
  b: number,
519
- c: number,
520
520
  ) => void;
521
- export const wasm_bindgen__closure__destroy__h607bdcca11c93892: (a: number, b: number) => void;
522
- export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
521
+ export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
522
+ export const wasm_bindgen__convert__closures_____invoke__h2d1acf2a4a5dec58: (
523
523
  a: number,
524
524
  b: number,
525
+ c: number,
525
526
  ) => void;
526
- export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
527
+ export const wasm_bindgen__closure__destroy__h607bdcca11c93892: (a: number, b: number) => void;
527
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;
528
530
  export const wasm_bindgen__convert__closures_____invoke__hb102ba9d71e761f6: (
529
531
  a: number,
530
532
  b: number,
531
533
  c: number,
532
534
  d: number,
533
535
  ) => void;
534
- export const wasm_bindgen__closure__destroy__hd9661b26d463effa: (a: number, b: number) => void;
535
536
  export const wasm_bindgen__convert__closures_____invoke__h0c62e4f019080f6a: (
536
537
  a: number,
537
538
  b: number,