@bitwarden/sdk-internal 0.2.0-main.491 → 0.2.0-main.493

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.
@@ -674,7 +674,12 @@ export type InitUserCryptoMethod =
674
674
 
675
675
  export interface CryptoClientError extends Error {
676
676
  name: "CryptoClientError";
677
- variant: "NotAuthenticated" | "Crypto" | "InvalidKdfSettings" | "PasswordProtectedKeyEnvelope";
677
+ variant:
678
+ | "NotAuthenticated"
679
+ | "Crypto"
680
+ | "InvalidKdfSettings"
681
+ | "PasswordProtectedKeyEnvelope"
682
+ | "InvalidPrfInput";
678
683
  }
679
684
 
680
685
  export function isCryptoClientError(error: any): error is CryptoClientError;
@@ -1876,6 +1881,10 @@ export interface CipherView {
1876
1881
  viewPassword: boolean;
1877
1882
  localData: LocalDataView | undefined;
1878
1883
  attachments: AttachmentView[] | undefined;
1884
+ /**
1885
+ * Attachments that failed to decrypt. Only present when there are decryption failures.
1886
+ */
1887
+ attachmentDecryptionFailures?: AttachmentView[];
1879
1888
  fields: FieldView[] | undefined;
1880
1889
  passwordHistory: PasswordHistoryView[] | undefined;
1881
1890
  creationDate: DateTime<Utc>;
@@ -989,10 +989,6 @@ exports.isGetFolderError = function(error) {
989
989
  }
990
990
  };
991
991
 
992
- function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
993
- wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
994
- }
995
-
996
992
  function wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5(arg0, arg1, arg2) {
997
993
  try {
998
994
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -1007,6 +1003,10 @@ function wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5(arg0, arg
1007
1003
  }
1008
1004
  }
1009
1005
 
1006
+ function wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1) {
1007
+ wasm.wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d(arg0, arg1);
1008
+ }
1009
+
1010
1010
  function wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, arg2) {
1011
1011
  wasm.wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f(arg0, arg1, addHeapObject(arg2));
1012
1012
  }
@@ -4765,7 +4765,7 @@ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (
4765
4765
  return addHeapObject(ret);
4766
4766
  }, arguments) };
4767
4767
 
4768
- exports.__wbg_cipher_a367995e78088dd2 = function(arg0) {
4768
+ exports.__wbg_cipher_1fdd8ab39596be00 = function(arg0) {
4769
4769
  const ret = getObject(arg0).cipher;
4770
4770
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4771
4771
  };
@@ -4857,7 +4857,7 @@ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
4857
4857
  return addHeapObject(ret);
4858
4858
  };
4859
4859
 
4860
- exports.__wbg_folder_492036bdef9a9af5 = function(arg0) {
4860
+ exports.__wbg_folder_6830222ac7627b88 = function(arg0) {
4861
4861
  const ret = getObject(arg0).folder;
4862
4862
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4863
4863
  };
@@ -4889,7 +4889,7 @@ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
4889
4889
  return ret;
4890
4890
  };
4891
4891
 
4892
- exports.__wbg_get_574d43e5b57a3a28 = function() { return handleError(function (arg0, arg1, arg2) {
4892
+ exports.__wbg_get_48963211297a621e = function() { return handleError(function (arg0, arg1, arg2) {
4893
4893
  let deferred0_0;
4894
4894
  let deferred0_1;
4895
4895
  try {
@@ -4907,7 +4907,7 @@ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
4907
4907
  return addHeapObject(ret);
4908
4908
  };
4909
4909
 
4910
- exports.__wbg_get_8295a86e11a42df9 = function() { return handleError(function (arg0, arg1, arg2) {
4910
+ exports.__wbg_get_a92c3deae1964973 = function() { return handleError(function (arg0, arg1, arg2) {
4911
4911
  let deferred0_0;
4912
4912
  let deferred0_1;
4913
4913
  try {
@@ -4920,7 +4920,7 @@ exports.__wbg_get_8295a86e11a42df9 = function() { return handleError(function (a
4920
4920
  }
4921
4921
  }, arguments) };
4922
4922
 
4923
- exports.__wbg_get_access_token_4a742389ae3d3b37 = function(arg0) {
4923
+ exports.__wbg_get_access_token_000c87dad704aa98 = function(arg0) {
4924
4924
  const ret = getObject(arg0).get_access_token();
4925
4925
  return addHeapObject(ret);
4926
4926
  };
@@ -5113,12 +5113,12 @@ exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
5113
5113
  return ret;
5114
5114
  };
5115
5115
 
5116
- exports.__wbg_list_7ac36537ae6e3542 = function() { return handleError(function (arg0) {
5116
+ exports.__wbg_list_47a6ca2c87683226 = function() { return handleError(function (arg0) {
5117
5117
  const ret = getObject(arg0).list();
5118
5118
  return addHeapObject(ret);
5119
5119
  }, arguments) };
5120
5120
 
5121
- exports.__wbg_list_c928cfeea7d03982 = function() { return handleError(function (arg0) {
5121
+ exports.__wbg_list_570c27e97d357b55 = function() { return handleError(function (arg0) {
5122
5122
  const ret = getObject(arg0).list();
5123
5123
  return addHeapObject(ret);
5124
5124
  }, arguments) };
@@ -5340,7 +5340,7 @@ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(
5340
5340
  getObject(arg0).randomFillSync(takeObject(arg1));
5341
5341
  }, arguments) };
5342
5342
 
5343
- exports.__wbg_remove_ac7bc184e93fc640 = function() { return handleError(function (arg0, arg1, arg2) {
5343
+ exports.__wbg_remove_5e280e527e85a804 = function() { return handleError(function (arg0, arg1, arg2) {
5344
5344
  let deferred0_0;
5345
5345
  let deferred0_1;
5346
5346
  try {
@@ -5353,7 +5353,7 @@ exports.__wbg_remove_ac7bc184e93fc640 = function() { return handleError(function
5353
5353
  }
5354
5354
  }, arguments) };
5355
5355
 
5356
- exports.__wbg_remove_eae3af7425d97adc = function() { return handleError(function (arg0, arg1, arg2) {
5356
+ exports.__wbg_remove_bac6db33db35a182 = function() { return handleError(function (arg0, arg1, arg2) {
5357
5357
  let deferred0_0;
5358
5358
  let deferred0_1;
5359
5359
  try {
@@ -5395,7 +5395,7 @@ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
5395
5395
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5396
5396
  };
5397
5397
 
5398
- exports.__wbg_set_6075d541d698e0e5 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5398
+ exports.__wbg_set_8f306648943d1ded = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5399
5399
  let deferred0_0;
5400
5400
  let deferred0_1;
5401
5401
  try {
@@ -5426,7 +5426,7 @@ exports.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (a
5426
5426
  return ret;
5427
5427
  }, arguments) };
5428
5428
 
5429
- exports.__wbg_set_c42c6fd307fdf3ee = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5429
+ exports.__wbg_set_cefa8814cc3188ab = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5430
5430
  let deferred0_0;
5431
5431
  let deferred0_1;
5432
5432
  try {
@@ -510,12 +510,6 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
510
510
  export const vaultclient_attachments: (a: number) => number;
511
511
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
512
512
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
513
- export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
514
- a: number,
515
- b: number,
516
- ) => void;
517
- export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
518
- export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
519
513
  export const wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5: (
520
514
  a: number,
521
515
  b: number,
@@ -523,6 +517,12 @@ export const wasm_bindgen__convert__closures_____invoke__h15dc1a5ab679adb5: (
523
517
  d: number,
524
518
  ) => void;
525
519
  export const wasm_bindgen__closure__destroy__h8316b5ffc9c02e99: (a: number, b: number) => void;
520
+ export const wasm_bindgen__convert__closures_____invoke__ha638740cca0ef77d: (
521
+ a: number,
522
+ b: number,
523
+ ) => void;
524
+ export const wasm_bindgen__closure__destroy__hc71695a401114797: (a: number, b: number) => void;
525
+ export const wasm_bindgen__closure__destroy__h666c8569a46b7e11: (a: number, b: number) => void;
526
526
  export const wasm_bindgen__convert__closures_____invoke__h7e690d71e18a977f: (
527
527
  a: number,
528
528
  b: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.491",
3
+ "version": "0.2.0-main.493",
4
4
  "license": "GPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",