@bitwarden/sdk-internal 0.2.0-main.197 → 0.2.0-main.198

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.
@@ -495,6 +495,27 @@ export interface DeserializeError extends Error {
495
495
 
496
496
  export function isDeserializeError(error: any): error is DeserializeError;
497
497
 
498
+ export interface TypedReceiveError extends Error {
499
+ name: "TypedReceiveError";
500
+ variant: "Channel" | "Timeout" | "Cancelled" | "Typing";
501
+ }
502
+
503
+ export function isTypedReceiveError(error: any): error is TypedReceiveError;
504
+
505
+ export interface ReceiveError extends Error {
506
+ name: "ReceiveError";
507
+ variant: "Channel" | "Timeout" | "Cancelled";
508
+ }
509
+
510
+ export function isReceiveError(error: any): error is ReceiveError;
511
+
512
+ export interface SubscribeError extends Error {
513
+ name: "SubscribeError";
514
+ variant: "NotStarted";
515
+ }
516
+
517
+ export function isSubscribeError(error: any): error is SubscribeError;
518
+
498
519
  export type KeyAlgorithm = "Ed25519" | "Rsa3072" | "Rsa4096";
499
520
 
500
521
  export interface SshKeyExportError extends Error {
@@ -518,6 +539,12 @@ export interface KeyGenerationError extends Error {
518
539
 
519
540
  export function isKeyGenerationError(error: any): error is KeyGenerationError;
520
541
 
542
+ export interface CallError extends Error {
543
+ name: "CallError";
544
+ }
545
+
546
+ export function isCallError(error: any): error is CallError;
547
+
521
548
  export interface EncryptionContext {
522
549
  /**
523
550
  * The Id of the user that encrypted the cipher. It should always represent a UserId, even for
@@ -1172,24 +1199,40 @@ export class IncomingMessage {
1172
1199
  get topic(): string | undefined;
1173
1200
  set topic(value: string | null | undefined);
1174
1201
  }
1202
+ /**
1203
+ * JavaScript wrapper around the IPC client. For more information, see the
1204
+ * [IpcClient] documentation.
1205
+ */
1175
1206
  export class IpcClient {
1176
1207
  free(): void;
1177
1208
  constructor(communication_provider: IpcCommunicationBackend);
1209
+ start(): Promise<void>;
1210
+ isRunning(): Promise<boolean>;
1178
1211
  send(message: OutgoingMessage): Promise<void>;
1179
1212
  subscribe(): Promise<IpcClientSubscription>;
1180
1213
  }
1214
+ /**
1215
+ * JavaScript wrapper around the IPC client subscription. For more information, see the
1216
+ * [IpcClientSubscription](crate::IpcClientSubscription) documentation.
1217
+ */
1181
1218
  export class IpcClientSubscription {
1182
1219
  private constructor();
1183
1220
  free(): void;
1184
- receive(): Promise<IncomingMessage>;
1221
+ receive(abort_signal?: any | null): Promise<IncomingMessage>;
1185
1222
  }
1223
+ /**
1224
+ * JavaScript implementation of the `CommunicationBackend` trait for IPC communication.
1225
+ */
1186
1226
  export class IpcCommunicationBackend {
1187
1227
  free(): void;
1228
+ /**
1229
+ * Creates a new instance of the JavaScript communication backend.
1230
+ */
1188
1231
  constructor(sender: IpcCommunicationBackendSender);
1189
1232
  /**
1190
- * JavaScript function to provide a received message to the backend/IPC framework.
1233
+ * Used by JavaScript to provide an incoming message to the IPC framework.
1191
1234
  */
1192
- deliver_message(message: IncomingMessage): void;
1235
+ receive(message: IncomingMessage): void;
1193
1236
  }
1194
1237
  export class OutgoingMessage {
1195
1238
  free(): void;
@@ -1295,19 +1338,6 @@ export class PureCrypto {
1295
1338
  decapsulation_key: Uint8Array,
1296
1339
  ): Uint8Array;
1297
1340
  }
1298
- export class ReceiveError {
1299
- private constructor();
1300
- free(): void;
1301
- timeout: boolean;
1302
- crypto: any;
1303
- communication: any;
1304
- }
1305
- export class SendError {
1306
- private constructor();
1307
- free(): void;
1308
- crypto: any;
1309
- communication: any;
1310
- }
1311
1341
  export class TotpClient {
1312
1342
  private constructor();
1313
1343
  free(): void;
@@ -380,6 +380,45 @@ module.exports.isDeserializeError = function (error) {
380
380
  }
381
381
  };
382
382
 
383
+ /**
384
+ * @param {any} error
385
+ * @returns {boolean}
386
+ */
387
+ module.exports.isTypedReceiveError = function (error) {
388
+ try {
389
+ const ret = wasm.isTypedReceiveError(addBorrowedObject(error));
390
+ return ret !== 0;
391
+ } finally {
392
+ heap[stack_pointer++] = undefined;
393
+ }
394
+ };
395
+
396
+ /**
397
+ * @param {any} error
398
+ * @returns {boolean}
399
+ */
400
+ module.exports.isReceiveError = function (error) {
401
+ try {
402
+ const ret = wasm.isReceiveError(addBorrowedObject(error));
403
+ return ret !== 0;
404
+ } finally {
405
+ heap[stack_pointer++] = undefined;
406
+ }
407
+ };
408
+
409
+ /**
410
+ * @param {any} error
411
+ * @returns {boolean}
412
+ */
413
+ module.exports.isSubscribeError = function (error) {
414
+ try {
415
+ const ret = wasm.isSubscribeError(addBorrowedObject(error));
416
+ return ret !== 0;
417
+ } finally {
418
+ heap[stack_pointer++] = undefined;
419
+ }
420
+ };
421
+
383
422
  /**
384
423
  * @param {any} error
385
424
  * @returns {boolean}
@@ -419,6 +458,19 @@ module.exports.isKeyGenerationError = function (error) {
419
458
  }
420
459
  };
421
460
 
461
+ /**
462
+ * @param {any} error
463
+ * @returns {boolean}
464
+ */
465
+ module.exports.isCallError = function (error) {
466
+ try {
467
+ const ret = wasm.isCallError(addBorrowedObject(error));
468
+ return ret !== 0;
469
+ } finally {
470
+ heap[stack_pointer++] = undefined;
471
+ }
472
+ };
473
+
422
474
  /**
423
475
  * @param {any} error
424
476
  * @returns {boolean}
@@ -593,13 +645,20 @@ module.exports.isTestError = function (error) {
593
645
  };
594
646
 
595
647
  function __wbg_adapter_50(arg0, arg1) {
596
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7fea53fbe563cc8(
648
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcf47463d0c774ef2(
649
+ arg0,
650
+ arg1,
651
+ );
652
+ }
653
+
654
+ function __wbg_adapter_53(arg0, arg1) {
655
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h07b1ac521b96b202(
597
656
  arg0,
598
657
  arg1,
599
658
  );
600
659
  }
601
660
 
602
- function __wbg_adapter_53(arg0, arg1, arg2) {
661
+ function __wbg_adapter_56(arg0, arg1, arg2) {
603
662
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2fd3ee122b42f580(
604
663
  arg0,
605
664
  arg1,
@@ -607,7 +666,7 @@ function __wbg_adapter_53(arg0, arg1, arg2) {
607
666
  );
608
667
  }
609
668
 
610
- function __wbg_adapter_256(arg0, arg1, arg2, arg3) {
669
+ function __wbg_adapter_253(arg0, arg1, arg2, arg3) {
611
670
  wasm.wasm_bindgen__convert__closures__invoke2_mut__hd44d4ce5021e369c(
612
671
  arg0,
613
672
  arg1,
@@ -1771,7 +1830,10 @@ const IpcClientFinalization =
1771
1830
  typeof FinalizationRegistry === "undefined"
1772
1831
  ? { register: () => {}, unregister: () => {} }
1773
1832
  : new FinalizationRegistry((ptr) => wasm.__wbg_ipcclient_free(ptr >>> 0, 1));
1774
-
1833
+ /**
1834
+ * JavaScript wrapper around the IPC client. For more information, see the
1835
+ * [IpcClient] documentation.
1836
+ */
1775
1837
  class IpcClient {
1776
1838
  __destroy_into_raw() {
1777
1839
  const ptr = this.__wbg_ptr;
@@ -1789,12 +1851,25 @@ class IpcClient {
1789
1851
  */
1790
1852
  constructor(communication_provider) {
1791
1853
  _assertClass(communication_provider, IpcCommunicationBackend);
1792
- var ptr0 = communication_provider.__destroy_into_raw();
1793
- const ret = wasm.ipcclient_new(ptr0);
1854
+ const ret = wasm.ipcclient_new(communication_provider.__wbg_ptr);
1794
1855
  this.__wbg_ptr = ret >>> 0;
1795
1856
  IpcClientFinalization.register(this, this.__wbg_ptr, this);
1796
1857
  return this;
1797
1858
  }
1859
+ /**
1860
+ * @returns {Promise<void>}
1861
+ */
1862
+ start() {
1863
+ const ret = wasm.ipcclient_start(this.__wbg_ptr);
1864
+ return takeObject(ret);
1865
+ }
1866
+ /**
1867
+ * @returns {Promise<boolean>}
1868
+ */
1869
+ isRunning() {
1870
+ const ret = wasm.ipcclient_isRunning(this.__wbg_ptr);
1871
+ return takeObject(ret);
1872
+ }
1798
1873
  /**
1799
1874
  * @param {OutgoingMessage} message
1800
1875
  * @returns {Promise<void>}
@@ -1819,7 +1894,10 @@ const IpcClientSubscriptionFinalization =
1819
1894
  typeof FinalizationRegistry === "undefined"
1820
1895
  ? { register: () => {}, unregister: () => {} }
1821
1896
  : new FinalizationRegistry((ptr) => wasm.__wbg_ipcclientsubscription_free(ptr >>> 0, 1));
1822
-
1897
+ /**
1898
+ * JavaScript wrapper around the IPC client subscription. For more information, see the
1899
+ * [IpcClientSubscription](crate::IpcClientSubscription) documentation.
1900
+ */
1823
1901
  class IpcClientSubscription {
1824
1902
  static __wrap(ptr) {
1825
1903
  ptr = ptr >>> 0;
@@ -1841,10 +1919,14 @@ class IpcClientSubscription {
1841
1919
  wasm.__wbg_ipcclientsubscription_free(ptr, 0);
1842
1920
  }
1843
1921
  /**
1922
+ * @param {any | null} [abort_signal]
1844
1923
  * @returns {Promise<IncomingMessage>}
1845
1924
  */
1846
- receive() {
1847
- const ret = wasm.ipcclientsubscription_receive(this.__wbg_ptr);
1925
+ receive(abort_signal) {
1926
+ const ret = wasm.ipcclientsubscription_receive(
1927
+ this.__wbg_ptr,
1928
+ isLikeNone(abort_signal) ? 0 : addHeapObject(abort_signal),
1929
+ );
1848
1930
  return takeObject(ret);
1849
1931
  }
1850
1932
  }
@@ -1854,7 +1936,9 @@ const IpcCommunicationBackendFinalization =
1854
1936
  typeof FinalizationRegistry === "undefined"
1855
1937
  ? { register: () => {}, unregister: () => {} }
1856
1938
  : new FinalizationRegistry((ptr) => wasm.__wbg_ipccommunicationbackend_free(ptr >>> 0, 1));
1857
-
1939
+ /**
1940
+ * JavaScript implementation of the `CommunicationBackend` trait for IPC communication.
1941
+ */
1858
1942
  class IpcCommunicationBackend {
1859
1943
  __destroy_into_raw() {
1860
1944
  const ptr = this.__wbg_ptr;
@@ -1868,6 +1952,7 @@ class IpcCommunicationBackend {
1868
1952
  wasm.__wbg_ipccommunicationbackend_free(ptr, 0);
1869
1953
  }
1870
1954
  /**
1955
+ * Creates a new instance of the JavaScript communication backend.
1871
1956
  * @param {IpcCommunicationBackendSender} sender
1872
1957
  */
1873
1958
  constructor(sender) {
@@ -1877,15 +1962,15 @@ class IpcCommunicationBackend {
1877
1962
  return this;
1878
1963
  }
1879
1964
  /**
1880
- * JavaScript function to provide a received message to the backend/IPC framework.
1965
+ * Used by JavaScript to provide an incoming message to the IPC framework.
1881
1966
  * @param {IncomingMessage} message
1882
1967
  */
1883
- deliver_message(message) {
1968
+ receive(message) {
1884
1969
  try {
1885
1970
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1886
1971
  _assertClass(message, IncomingMessage);
1887
1972
  var ptr0 = message.__destroy_into_raw();
1888
- wasm.ipccommunicationbackend_deliver_message(retptr, this.__wbg_ptr, ptr0);
1973
+ wasm.ipccommunicationbackend_receive(retptr, this.__wbg_ptr, ptr0);
1889
1974
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1890
1975
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1891
1976
  if (r1) {
@@ -2714,127 +2799,6 @@ class PureCrypto {
2714
2799
  }
2715
2800
  module.exports.PureCrypto = PureCrypto;
2716
2801
 
2717
- const ReceiveErrorFinalization =
2718
- typeof FinalizationRegistry === "undefined"
2719
- ? { register: () => {}, unregister: () => {} }
2720
- : new FinalizationRegistry((ptr) => wasm.__wbg_receiveerror_free(ptr >>> 0, 1));
2721
-
2722
- class ReceiveError {
2723
- static __wrap(ptr) {
2724
- ptr = ptr >>> 0;
2725
- const obj = Object.create(ReceiveError.prototype);
2726
- obj.__wbg_ptr = ptr;
2727
- ReceiveErrorFinalization.register(obj, obj.__wbg_ptr, obj);
2728
- return obj;
2729
- }
2730
-
2731
- __destroy_into_raw() {
2732
- const ptr = this.__wbg_ptr;
2733
- this.__wbg_ptr = 0;
2734
- ReceiveErrorFinalization.unregister(this);
2735
- return ptr;
2736
- }
2737
-
2738
- free() {
2739
- const ptr = this.__destroy_into_raw();
2740
- wasm.__wbg_receiveerror_free(ptr, 0);
2741
- }
2742
- /**
2743
- * @returns {boolean}
2744
- */
2745
- get timeout() {
2746
- const ret = wasm.__wbg_get_receiveerror_timeout(this.__wbg_ptr);
2747
- return ret !== 0;
2748
- }
2749
- /**
2750
- * @param {boolean} arg0
2751
- */
2752
- set timeout(arg0) {
2753
- wasm.__wbg_set_receiveerror_timeout(this.__wbg_ptr, arg0);
2754
- }
2755
- /**
2756
- * @returns {any}
2757
- */
2758
- get crypto() {
2759
- const ret = wasm.__wbg_get_receiveerror_crypto(this.__wbg_ptr);
2760
- return takeObject(ret);
2761
- }
2762
- /**
2763
- * @param {any} arg0
2764
- */
2765
- set crypto(arg0) {
2766
- wasm.__wbg_set_receiveerror_crypto(this.__wbg_ptr, addHeapObject(arg0));
2767
- }
2768
- /**
2769
- * @returns {any}
2770
- */
2771
- get communication() {
2772
- const ret = wasm.__wbg_get_receiveerror_communication(this.__wbg_ptr);
2773
- return takeObject(ret);
2774
- }
2775
- /**
2776
- * @param {any} arg0
2777
- */
2778
- set communication(arg0) {
2779
- wasm.__wbg_set_receiveerror_communication(this.__wbg_ptr, addHeapObject(arg0));
2780
- }
2781
- }
2782
- module.exports.ReceiveError = ReceiveError;
2783
-
2784
- const SendErrorFinalization =
2785
- typeof FinalizationRegistry === "undefined"
2786
- ? { register: () => {}, unregister: () => {} }
2787
- : new FinalizationRegistry((ptr) => wasm.__wbg_senderror_free(ptr >>> 0, 1));
2788
-
2789
- class SendError {
2790
- static __wrap(ptr) {
2791
- ptr = ptr >>> 0;
2792
- const obj = Object.create(SendError.prototype);
2793
- obj.__wbg_ptr = ptr;
2794
- SendErrorFinalization.register(obj, obj.__wbg_ptr, obj);
2795
- return obj;
2796
- }
2797
-
2798
- __destroy_into_raw() {
2799
- const ptr = this.__wbg_ptr;
2800
- this.__wbg_ptr = 0;
2801
- SendErrorFinalization.unregister(this);
2802
- return ptr;
2803
- }
2804
-
2805
- free() {
2806
- const ptr = this.__destroy_into_raw();
2807
- wasm.__wbg_senderror_free(ptr, 0);
2808
- }
2809
- /**
2810
- * @returns {any}
2811
- */
2812
- get crypto() {
2813
- const ret = wasm.__wbg_get_receiveerror_crypto(this.__wbg_ptr);
2814
- return takeObject(ret);
2815
- }
2816
- /**
2817
- * @param {any} arg0
2818
- */
2819
- set crypto(arg0) {
2820
- wasm.__wbg_set_receiveerror_crypto(this.__wbg_ptr, addHeapObject(arg0));
2821
- }
2822
- /**
2823
- * @returns {any}
2824
- */
2825
- get communication() {
2826
- const ret = wasm.__wbg_get_receiveerror_communication(this.__wbg_ptr);
2827
- return takeObject(ret);
2828
- }
2829
- /**
2830
- * @param {any} arg0
2831
- */
2832
- set communication(arg0) {
2833
- wasm.__wbg_set_receiveerror_communication(this.__wbg_ptr, addHeapObject(arg0));
2834
- }
2835
- }
2836
- module.exports.SendError = SendError;
2837
-
2838
2802
  const TotpClientFinalization =
2839
2803
  typeof FinalizationRegistry === "undefined"
2840
2804
  ? { register: () => {}, unregister: () => {} }
@@ -2976,6 +2940,10 @@ module.exports.__wbg_abort_775ef1d17fc65868 = function (arg0) {
2976
2940
  getObject(arg0).abort();
2977
2941
  };
2978
2942
 
2943
+ module.exports.__wbg_addEventListener_dc3da056b615f634 = function (arg0, arg1, arg2, arg3) {
2944
+ getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
2945
+ };
2946
+
2979
2947
  module.exports.__wbg_append_299d5d48292c0495 = function () {
2980
2948
  return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2981
2949
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
@@ -3230,7 +3198,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
3230
3198
  const a = state0.a;
3231
3199
  state0.a = 0;
3232
3200
  try {
3233
- return __wbg_adapter_256(a, state0.b, arg0, arg1);
3201
+ return __wbg_adapter_253(a, state0.b, arg0, arg1);
3234
3202
  } finally {
3235
3203
  state0.a = a;
3236
3204
  }
@@ -3372,11 +3340,6 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
3372
3340
  }, arguments);
3373
3341
  };
3374
3342
 
3375
- module.exports.__wbg_receiveerror_new = function (arg0) {
3376
- const ret = ReceiveError.__wrap(arg0);
3377
- return addHeapObject(ret);
3378
- };
3379
-
3380
3343
  module.exports.__wbg_require_60cc747a6bc5215a = function () {
3381
3344
  return handleError(function () {
3382
3345
  const ret = module.require;
@@ -3396,11 +3359,6 @@ module.exports.__wbg_send_9b8fc6bb517867dd = function () {
3396
3359
  }, arguments);
3397
3360
  };
3398
3361
 
3399
- module.exports.__wbg_senderror_new = function (arg0) {
3400
- const ret = SendError.__wrap(arg0);
3401
- return addHeapObject(ret);
3402
- };
3403
-
3404
3362
  module.exports.__wbg_setTimeout_2e707715f8cc9497 = function (arg0, arg1) {
3405
3363
  const ret = setTimeout(getObject(arg0), arg1);
3406
3364
  return addHeapObject(ret);
@@ -3597,13 +3555,18 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
3597
3555
  return ret;
3598
3556
  };
3599
3557
 
3600
- module.exports.__wbindgen_closure_wrapper3139 = function (arg0, arg1, arg2) {
3601
- const ret = makeMutClosure(arg0, arg1, 727, __wbg_adapter_50);
3558
+ module.exports.__wbindgen_closure_wrapper2367 = function (arg0, arg1, arg2) {
3559
+ const ret = makeMutClosure(arg0, arg1, 674, __wbg_adapter_50);
3560
+ return addHeapObject(ret);
3561
+ };
3562
+
3563
+ module.exports.__wbindgen_closure_wrapper3198 = function (arg0, arg1, arg2) {
3564
+ const ret = makeMutClosure(arg0, arg1, 758, __wbg_adapter_53);
3602
3565
  return addHeapObject(ret);
3603
3566
  };
3604
3567
 
3605
- module.exports.__wbindgen_closure_wrapper3537 = function (arg0, arg1, arg2) {
3606
- const ret = makeMutClosure(arg0, arg1, 849, __wbg_adapter_53);
3568
+ module.exports.__wbindgen_closure_wrapper3609 = function (arg0, arg1, arg2) {
3569
+ const ret = makeMutClosure(arg0, arg1, 880, __wbg_adapter_56);
3607
3570
  return addHeapObject(ret);
3608
3571
  };
3609
3572
 
@@ -53,19 +53,13 @@ export const __wbg_get_incomingmessage_topic: (a: number, b: number) => void;
53
53
  export const __wbg_set_incomingmessage_topic: (a: number, b: number, c: number) => void;
54
54
  export const __wbg_ipccommunicationbackend_free: (a: number, b: number) => void;
55
55
  export const ipccommunicationbackend_new: (a: number) => number;
56
- export const ipccommunicationbackend_deliver_message: (a: number, b: number, c: number) => void;
57
- export const __wbg_senderror_free: (a: number, b: number) => void;
58
- export const __wbg_receiveerror_free: (a: number, b: number) => void;
59
- export const __wbg_get_receiveerror_timeout: (a: number) => number;
60
- export const __wbg_set_receiveerror_timeout: (a: number, b: number) => void;
61
- export const __wbg_get_receiveerror_crypto: (a: number) => number;
62
- export const __wbg_set_receiveerror_crypto: (a: number, b: number) => void;
63
- export const __wbg_get_receiveerror_communication: (a: number) => number;
64
- export const __wbg_set_receiveerror_communication: (a: number, b: number) => void;
56
+ export const ipccommunicationbackend_receive: (a: number, b: number, c: number) => void;
65
57
  export const __wbg_ipcclient_free: (a: number, b: number) => void;
66
58
  export const __wbg_ipcclientsubscription_free: (a: number, b: number) => void;
67
- export const ipcclientsubscription_receive: (a: number) => number;
59
+ export const ipcclientsubscription_receive: (a: number, b: number) => number;
68
60
  export const ipcclient_new: (a: number) => number;
61
+ export const ipcclient_start: (a: number) => number;
62
+ export const ipcclient_isRunning: (a: number) => number;
69
63
  export const ipcclient_send: (a: number, b: number) => number;
70
64
  export const ipcclient_subscribe: (a: number) => number;
71
65
  export const outgoingmessage_new: (a: number, b: number, c: number, d: number, e: number) => number;
@@ -87,15 +81,15 @@ export const incomingmessage_new: (
87
81
  export const incomingmessage_parse_payload_as_json: (a: number) => number;
88
82
  export const isChannelError: (a: number) => number;
89
83
  export const isDeserializeError: (a: number) => number;
90
- export const __wbg_set_senderror_crypto: (a: number, b: number) => void;
91
- export const __wbg_set_senderror_communication: (a: number, b: number) => void;
92
- export const __wbg_get_senderror_crypto: (a: number) => number;
93
- export const __wbg_get_senderror_communication: (a: number) => number;
84
+ export const isTypedReceiveError: (a: number) => number;
85
+ export const isReceiveError: (a: number) => number;
86
+ export const isSubscribeError: (a: number) => number;
94
87
  export const __wbg_get_outgoingmessage_destination: (a: number) => number;
95
88
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
96
89
  export const isSshKeyExportError: (a: number) => number;
97
90
  export const isSshKeyImportError: (a: number) => number;
98
91
  export const isKeyGenerationError: (a: number) => number;
92
+ export const isCallError: (a: number) => number;
99
93
  export const __wbg_attachmentsclient_free: (a: number, b: number) => void;
100
94
  export const attachmentsclient_decrypt_buffer: (
101
95
  a: number,
@@ -137,10 +131,10 @@ export const isEncryptFileError: (a: number) => number;
137
131
  export const vaultclient_ciphers: (a: number) => number;
138
132
  export const vaultclient_folders: (a: number) => number;
139
133
  export const vaultclient_totp: (a: number) => number;
140
- export const __wbg_foldersclient_free: (a: number, b: number) => void;
141
- export const __wbg_ciphersclient_free: (a: number, b: number) => void;
142
134
  export const __wbg_totpclient_free: (a: number, b: number) => void;
143
135
  export const __wbg_vaultclient_free: (a: number, b: number) => void;
136
+ export const __wbg_ciphersclient_free: (a: number, b: number) => void;
137
+ export const __wbg_foldersclient_free: (a: number, b: number) => void;
144
138
  export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
145
139
  export const bitwardenclient_new: (a: number) => number;
146
140
  export const bitwardenclient_echo: (a: number, b: number, c: number, d: number) => void;
@@ -302,7 +296,11 @@ export const __wbindgen_exn_store: (a: number) => void;
302
296
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
303
297
  export const __wbindgen_export_4: WebAssembly.Table;
304
298
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
305
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7fea53fbe563cc8: (
299
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcf47463d0c774ef2: (
300
+ a: number,
301
+ b: number,
302
+ ) => void;
303
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h07b1ac521b96b202: (
306
304
  a: number,
307
305
  b: number,
308
306
  ) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitwarden/sdk-internal",
3
- "version": "0.2.0-main.197",
3
+ "version": "0.2.0-main.198",
4
4
  "license": "GPL-3.0",
5
5
  "files": [
6
6
  "bitwarden_wasm_internal_bg.js",