@bitwarden/sdk-internal 0.2.0-main.539 → 0.2.0-main.540

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
- 794a7352a6bcd602cd893c22976baea4b67fe979
1
+ 507254927b4832be41a4073cac72e8a35c214aa1
@@ -1438,6 +1438,20 @@ export interface CallError extends Error {
1438
1438
 
1439
1439
  export function isCallError(error: any): error is CallError;
1440
1440
 
1441
+ export interface SyncError extends Error {
1442
+ name: "SyncError";
1443
+ variant: "NetworkError" | "DataError";
1444
+ }
1445
+
1446
+ export function isSyncError(error: any): error is SyncError;
1447
+
1448
+ export interface PrivateKeysParsingError extends Error {
1449
+ name: "PrivateKeysParsingError";
1450
+ variant: "MissingField" | "InvalidFormat";
1451
+ }
1452
+
1453
+ export function isPrivateKeysParsingError(error: any): error is PrivateKeysParsingError;
1454
+
1441
1455
  /**
1442
1456
  * The data necessary to re-share the user-key to a V1 emergency access membership. Note: The
1443
1457
  * Public-key must be verified/trusted. Further, there is no sender authentication possible here.
@@ -765,6 +765,32 @@ export function isCallError(error) {
765
765
  }
766
766
  }
767
767
 
768
+ /**
769
+ * @param {any} error
770
+ * @returns {boolean}
771
+ */
772
+ export function isSyncError(error) {
773
+ try {
774
+ const ret = wasm.isSyncError(addBorrowedObject(error));
775
+ return ret !== 0;
776
+ } finally {
777
+ heap[stack_pointer++] = undefined;
778
+ }
779
+ }
780
+
781
+ /**
782
+ * @param {any} error
783
+ * @returns {boolean}
784
+ */
785
+ export function isPrivateKeysParsingError(error) {
786
+ try {
787
+ const ret = wasm.isPrivateKeysParsingError(addBorrowedObject(error));
788
+ return ret !== 0;
789
+ } finally {
790
+ heap[stack_pointer++] = undefined;
791
+ }
792
+ }
793
+
768
794
  /**
769
795
  * @param {any} error
770
796
  * @returns {boolean}
@@ -1025,14 +1051,6 @@ export function isGetFolderError(error) {
1025
1051
  }
1026
1052
  }
1027
1053
 
1028
- function wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9(arg0, arg1, arg2) {
1029
- wasm.wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9(arg0, arg1, addHeapObject(arg2));
1030
- }
1031
-
1032
- function wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1) {
1033
- wasm.wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1);
1034
- }
1035
-
1036
1054
  function wasm_bindgen__convert__closures_____invoke__hf245910ad5d68b6c(arg0, arg1, arg2) {
1037
1055
  try {
1038
1056
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -1047,6 +1065,14 @@ function wasm_bindgen__convert__closures_____invoke__hf245910ad5d68b6c(arg0, arg
1047
1065
  }
1048
1066
  }
1049
1067
 
1068
+ function wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9(arg0, arg1, arg2) {
1069
+ wasm.wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9(arg0, arg1, addHeapObject(arg2));
1070
+ }
1071
+
1072
+ function wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1) {
1073
+ wasm.wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1);
1074
+ }
1075
+
1050
1076
  function wasm_bindgen__convert__closures_____invoke__hc4d57ad329cc6f58(arg0, arg1, arg2, arg3) {
1051
1077
  wasm.wasm_bindgen__convert__closures_____invoke__hc4d57ad329cc6f58(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1052
1078
  }
@@ -4994,7 +5020,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
4994
5020
  return addHeapObject(ret);
4995
5021
  }, arguments) };
4996
5022
 
4997
- export function __wbg_cipher_2b3634727708534f(arg0) {
5023
+ export function __wbg_cipher_70dc367b55cc45a2(arg0) {
4998
5024
  const ret = getObject(arg0).cipher;
4999
5025
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5000
5026
  };
@@ -5081,7 +5107,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
5081
5107
  return addHeapObject(ret);
5082
5108
  };
5083
5109
 
5084
- export function __wbg_folder_7698678be31f61ac(arg0) {
5110
+ export function __wbg_folder_65602b374e3109f8(arg0) {
5085
5111
  const ret = getObject(arg0).folder;
5086
5112
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5087
5113
  };
@@ -5113,20 +5139,7 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
5113
5139
  return ret;
5114
5140
  };
5115
5141
 
5116
- export function __wbg_get_1eb8994f1fdc189e() { return handleError(function (arg0, arg1, arg2) {
5117
- let deferred0_0;
5118
- let deferred0_1;
5119
- try {
5120
- deferred0_0 = arg1;
5121
- deferred0_1 = arg2;
5122
- const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
5123
- return addHeapObject(ret);
5124
- } finally {
5125
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5126
- }
5127
- }, arguments) };
5128
-
5129
- export function __wbg_get_4fc925d1158f5a93() { return handleError(function (arg0, arg1, arg2) {
5142
+ export function __wbg_get_3d48604563fd62cd() { return handleError(function (arg0, arg1, arg2) {
5130
5143
  let deferred0_0;
5131
5144
  let deferred0_1;
5132
5145
  try {
@@ -5144,7 +5157,7 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
5144
5157
  return addHeapObject(ret);
5145
5158
  };
5146
5159
 
5147
- export function __wbg_get_access_token_0e4268fa96c3fcd9(arg0) {
5160
+ export function __wbg_get_access_token_32753f22c89d5961(arg0) {
5148
5161
  const ret = getObject(arg0).get_access_token();
5149
5162
  return addHeapObject(ret);
5150
5163
  };
@@ -5167,6 +5180,19 @@ export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0
5167
5180
  return addHeapObject(ret);
5168
5181
  }, arguments) };
5169
5182
 
5183
+ export function __wbg_get_f97fc0b9f7ef07fe() { return handleError(function (arg0, arg1, arg2) {
5184
+ let deferred0_0;
5185
+ let deferred0_1;
5186
+ try {
5187
+ deferred0_0 = arg1;
5188
+ deferred0_1 = arg2;
5189
+ const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
5190
+ return addHeapObject(ret);
5191
+ } finally {
5192
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5193
+ }
5194
+ }, arguments) };
5195
+
5170
5196
  export function __wbg_get_fb1fa70beb44a754() { return handleError(function (arg0, arg1) {
5171
5197
  const ret = getObject(arg0).get(getObject(arg1));
5172
5198
  return addHeapObject(ret);
@@ -5350,12 +5376,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5350
5376
  return ret;
5351
5377
  };
5352
5378
 
5353
- export function __wbg_list_7ab893e468ec64e7() { return handleError(function (arg0) {
5379
+ export function __wbg_list_1c59672d6573920d() { return handleError(function (arg0) {
5354
5380
  const ret = getObject(arg0).list();
5355
5381
  return addHeapObject(ret);
5356
5382
  }, arguments) };
5357
5383
 
5358
- export function __wbg_list_f64dee81767ff9ff() { return handleError(function (arg0) {
5384
+ export function __wbg_list_9491893c67e86f68() { return handleError(function (arg0) {
5359
5385
  const ret = getObject(arg0).list();
5360
5386
  return addHeapObject(ret);
5361
5387
  }, arguments) };
@@ -5556,7 +5582,7 @@ export function __wbg_randomFillSync_f8c153b79f285817() { return handleError(fun
5556
5582
  getObject(arg0).randomFillSync(takeObject(arg1));
5557
5583
  }, arguments) };
5558
5584
 
5559
- export function __wbg_remove_1021e726b3a804b7() { return handleError(function (arg0, arg1, arg2) {
5585
+ export function __wbg_remove_691de1f9dc698df8() { return handleError(function (arg0, arg1, arg2) {
5560
5586
  let deferred0_0;
5561
5587
  let deferred0_1;
5562
5588
  try {
@@ -5569,7 +5595,7 @@ export function __wbg_remove_1021e726b3a804b7() { return handleError(function (a
5569
5595
  }
5570
5596
  }, arguments) };
5571
5597
 
5572
- export function __wbg_remove_83f35028aaeeef20() { return handleError(function (arg0, arg1, arg2) {
5598
+ export function __wbg_remove_fc5afef369aa7bb5() { return handleError(function (arg0, arg1, arg2) {
5573
5599
  let deferred0_0;
5574
5600
  let deferred0_1;
5575
5601
  try {
@@ -5620,7 +5646,7 @@ export function __wbg_setTimeout_4ec014681668a581(arg0, arg1) {
5620
5646
  return addHeapObject(ret);
5621
5647
  };
5622
5648
 
5623
- export function __wbg_set_0e6998c82e85bfe3() { return handleError(function (arg0, arg1, arg2, arg3) {
5649
+ export function __wbg_set_3b0df601d756b056() { return handleError(function (arg0, arg1, arg2, arg3) {
5624
5650
  let deferred0_0;
5625
5651
  let deferred0_1;
5626
5652
  try {
@@ -5633,7 +5659,11 @@ export function __wbg_set_0e6998c82e85bfe3() { return handleError(function (arg0
5633
5659
  }
5634
5660
  }, arguments) };
5635
5661
 
5636
- export function __wbg_set_121cb724fd9c2cc3() { return handleError(function (arg0, arg1, arg2, arg3) {
5662
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5663
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5664
+ };
5665
+
5666
+ export function __wbg_set_7015863a01452557() { return handleError(function (arg0, arg1, arg2, arg3) {
5637
5667
  let deferred0_0;
5638
5668
  let deferred0_1;
5639
5669
  try {
@@ -5646,10 +5676,6 @@ export function __wbg_set_121cb724fd9c2cc3() { return handleError(function (arg0
5646
5676
  }
5647
5677
  }, arguments) };
5648
5678
 
5649
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5650
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5651
- };
5652
-
5653
5679
  export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5654
5680
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5655
5681
  return addHeapObject(ret);
Binary file
@@ -373,6 +373,8 @@ export const isDatabaseError: (a: number) => number;
373
373
  export const isStateRegistryError: (a: number) => number;
374
374
  export const isCallError: (a: number) => number;
375
375
  export const __wbg_usercryptomanagementclient_free: (a: number, b: number) => void;
376
+ export const isPrivateKeysParsingError: (a: number) => number;
377
+ export const isSyncError: (a: number) => number;
376
378
  export const __wbg_attachmentsclient_free: (a: number, b: number) => void;
377
379
  export const __wbg_collectionviewnodeitem_free: (a: number, b: number) => void;
378
380
  export const __wbg_collectionviewtree_free: (a: number, b: number) => void;
@@ -540,25 +542,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
540
542
  export const vaultclient_attachments: (a: number) => number;
541
543
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
542
544
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
543
- export const wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9: (
545
+ export const wasm_bindgen__convert__closures_____invoke__hf245910ad5d68b6c: (
544
546
  a: number,
545
547
  b: number,
546
548
  c: number,
549
+ d: number,
547
550
  ) => void;
548
551
  export const wasm_bindgen__closure__destroy__h0d309ba826c21d2e: (a: number, b: number) => void;
549
- export const wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743: (
552
+ export const wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9: (
550
553
  a: number,
551
554
  b: number,
555
+ c: number,
552
556
  ) => void;
553
- export const wasm_bindgen__closure__destroy__h14b8abadf056d28e: (a: number, b: number) => void;
554
- export const wasm_bindgen__closure__destroy__h2b9785764fab287c: (a: number, b: number) => void;
555
- export const wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9: (a: number, b: number) => void;
556
- export const wasm_bindgen__convert__closures_____invoke__hf245910ad5d68b6c: (
557
+ export const wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743: (
557
558
  a: number,
558
559
  b: number,
559
- c: number,
560
- d: number,
561
560
  ) => void;
561
+ export const wasm_bindgen__closure__destroy__h14b8abadf056d28e: (a: number, b: number) => void;
562
+ export const wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9: (a: number, b: number) => void;
563
+ export const wasm_bindgen__closure__destroy__h2b9785764fab287c: (a: number, b: number) => void;
562
564
  export const wasm_bindgen__convert__closures_____invoke__hc4d57ad329cc6f58: (
563
565
  a: number,
564
566
  b: number,