@keeper-security/keeperapi 16.0.0 → 16.0.3
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/.idea/keeperapi.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/9eb60cc6282da763987e9a366716c57e69db7cbc +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/9eb60cc6282da763987e9a366716c57e69db7cbc +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/9eb60cc6282da763987e9a366716c57e69db7cbc +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/24fbc0427075baf3ac3fee2ada4ddd2fdd6804a6 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/3050043c8485297b366404c9b699f00a98a44b3c +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/4dffa8599530c3200ba2fa8029fa291435ba7cf7 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/6a0bc58668c059b99bff8dba6f0246cb049f0db9 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/7351d2ef4cb3d5388301a3ad1d1f7e3a0782c0bd +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/8d7296121e0007eebc1b0eabcfcc2a262d6bbc22 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/8fe39fe93705cfe38c1944a307c3fd64e5985d1e +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/9f92f7bfd4bd0aa870a95101ec02f2a32337ff1f +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/a6e317ef3069e9a270811fbc729535be3c405f41 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/ac8bef3228680d10f4db046facede43040f41854 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/afe32918d3a600939f39f4fcfb6852fe43f8ada9 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/bbe22fc71946abdfc667c2388606bfe83397ec81 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/d7bc52f98e9a008b81c621d963e9d4a276c80ee3 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/ddcd4d72185f8c85750f6f2f755c1152fddafdf4 +0 -0
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/df632d4bb144fc3001f92ea2a2678baeb386dcc4 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/4af634b56884c8fd08ba3107422b0108644ee513 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/624184538e182d7e8888620f356c12b51bbcc6ca +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/a282f7f4f34b6e0f7604a1e31cac2d2efbc0304c +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/bcfb396489824911797b349d7388000f2b3a3298 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/f2e98088f53c88114a0a5322154f96a639246440 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/a282f7f4f34b6e0f7604a1e31cac2d2efbc0304c +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/a282f7f4f34b6e0f7604a1e31cac2d2efbc0304c +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/24fbc0427075baf3ac3fee2ada4ddd2fdd6804a6 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/3050043c8485297b366404c9b699f00a98a44b3c +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/4dffa8599530c3200ba2fa8029fa291435ba7cf7 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/603166e7191a1eb2b59e6dc3a0c5060e83e42bf5 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/6a0bc58668c059b99bff8dba6f0246cb049f0db9 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/7351d2ef4cb3d5388301a3ad1d1f7e3a0782c0bd +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/8d7296121e0007eebc1b0eabcfcc2a262d6bbc22 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/8fe39fe93705cfe38c1944a307c3fd64e5985d1e +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/9f92f7bfd4bd0aa870a95101ec02f2a32337ff1f +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/a6e317ef3069e9a270811fbc729535be3c405f41 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/ac8bef3228680d10f4db046facede43040f41854 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/afe32918d3a600939f39f4fcfb6852fe43f8ada9 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/bbe22fc71946abdfc667c2388606bfe83397ec81 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/d7bc52f98e9a008b81c621d963e9d4a276c80ee3 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/ddcd4d72185f8c85750f6f2f755c1152fddafdf4 +0 -0
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/df632d4bb144fc3001f92ea2a2678baeb386dcc4 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/624184538e182d7e8888620f356c12b51bbcc6ca +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/8378bbd69de2cb8546f7e5f380a4ca34a2b252ac +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/bcfb396489824911797b349d7388000f2b3a3298 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/f2e98088f53c88114a0a5322154f96a639246440 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/8378bbd69de2cb8546f7e5f380a4ca34a2b252ac +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/8378bbd69de2cb8546f7e5f380a4ca34a2b252ac +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/24fbc0427075baf3ac3fee2ada4ddd2fdd6804a6 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/3050043c8485297b366404c9b699f00a98a44b3c +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/4dffa8599530c3200ba2fa8029fa291435ba7cf7 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/6a0bc58668c059b99bff8dba6f0246cb049f0db9 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/7351d2ef4cb3d5388301a3ad1d1f7e3a0782c0bd +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/8d7296121e0007eebc1b0eabcfcc2a262d6bbc22 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/8fe39fe93705cfe38c1944a307c3fd64e5985d1e +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/9f92f7bfd4bd0aa870a95101ec02f2a32337ff1f +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/a6e317ef3069e9a270811fbc729535be3c405f41 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/ac8bef3228680d10f4db046facede43040f41854 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/afe32918d3a600939f39f4fcfb6852fe43f8ada9 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/bbe22fc71946abdfc667c2388606bfe83397ec81 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/d7bc52f98e9a008b81c621d963e9d4a276c80ee3 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/ddcd4d72185f8c85750f6f2f755c1152fddafdf4 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/types/cache/df632d4bb144fc3001f92ea2a2678baeb386dcc4 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/4af634b56884c8fd08ba3107422b0108644ee513 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/651b0423c46988097da560167e3f6f432e8fbfc8 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/651b0423c46988097da560167e3f6f432e8fbfc8 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/651b0423c46988097da560167e3f6f432e8fbfc8 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +1 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/24fbc0427075baf3ac3fee2ada4ddd2fdd6804a6 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/3050043c8485297b366404c9b699f00a98a44b3c +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/4dffa8599530c3200ba2fa8029fa291435ba7cf7 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/603166e7191a1eb2b59e6dc3a0c5060e83e42bf5 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/6a0bc58668c059b99bff8dba6f0246cb049f0db9 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/7351d2ef4cb3d5388301a3ad1d1f7e3a0782c0bd +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/8d7296121e0007eebc1b0eabcfcc2a262d6bbc22 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/8fe39fe93705cfe38c1944a307c3fd64e5985d1e +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/9f92f7bfd4bd0aa870a95101ec02f2a32337ff1f +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/a6e317ef3069e9a270811fbc729535be3c405f41 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/ac8bef3228680d10f4db046facede43040f41854 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/afe32918d3a600939f39f4fcfb6852fe43f8ada9 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/bbe22fc71946abdfc667c2388606bfe83397ec81 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/d7bc52f98e9a008b81c621d963e9d4a276c80ee3 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/ddcd4d72185f8c85750f6f2f755c1152fddafdf4 +0 -0
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/types/cache/df632d4bb144fc3001f92ea2a2678baeb386dcc4 +0 -0
- package/babel.config.js +6 -0
- package/package.json +7 -10
- package/rollup.config.js +50 -0
- package/scripts/cleanDistFolder.js +9 -0
- package/src/__tests__/utils.test.js +13 -0
- package/src/auth.ts +1514 -0
- package/src/browser/asn1hex.ts +296 -0
- package/src/browser/index.ts +17 -0
- package/src/browser/jsbn.ts +1213 -0
- package/src/browser/platform.ts +434 -0
- package/src/browser/rng.ts +15 -0
- package/src/browser/rsa.ts +262 -0
- package/src/commands.ts +1378 -0
- package/src/company.ts +244 -0
- package/src/configuration.ts +125 -0
- package/src/endpoint.ts +350 -0
- package/src/node/index.ts +17 -0
- package/src/node/platform.ts +283 -0
- package/src/platform.ts +76 -0
- package/src/proto.d.ts +50992 -0
- package/src/proto.js +136564 -0
- package/src/restMessages.ts +311 -0
- package/src/utils.ts +169 -0
- package/src/vault.ts +844 -0
- package/src/vendorContext.ts +69 -0
- package/src/vendorModel.ts +36 -0
- package/tsconfig.json +14 -0
- package/tsconfig.rollup.json +14 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"code":"import { AccountSummary, Authentication, BreachWatch, Automator, Enterprise, Records, ServiceLogger, SsoCloud } from './proto';\r\nfunction createMessage(data, path, encoder, decoder) {\r\n return {\r\n path: path,\r\n toBytes() {\r\n return encoder ? encoder.encode(data).finish() : null;\r\n },\r\n fromBytes(data) {\r\n return decoder.decode(data);\r\n }\r\n };\r\n}\r\n// new login\r\nexport const registerDeviceMessage = (data) => createMessage(data, 'authentication/register_device', Authentication.DeviceRegistrationRequest, Authentication.Device);\r\nexport const registerDeviceInRegionMessage = (data) => createMessage(data, 'authentication/register_device_in_region', Authentication.RegisterDeviceInRegionRequest, null);\r\nexport const updateDeviceMessage = (data) => createMessage(data, 'authentication/update_device', Authentication.DeviceUpdateRequest, null);\r\nexport const requestDeviceVerificationMessage = (data) => createMessage(data, 'authentication/request_device_verification', Authentication.DeviceVerificationRequest, null);\r\nexport const requestCreateUserMessage = (data, isSso) => createMessage(data, isSso ? 'authentication/create_user_sso' : 'authentication/request_create_user', Authentication.CreateUserRequest, null);\r\nexport const startLoginMessage = (data) => createMessage(data, 'authentication/start_login', Authentication.StartLoginRequest, Authentication.LoginResponse);\r\nexport const validateAuthHashMessage = (data) => createMessage(data, 'authentication/validate_auth_hash', Authentication.ValidateAuthHashRequest, Authentication.LoginResponse);\r\nexport const twoFactorValidateMessage = (data) => createMessage(data, 'authentication/2fa_validate', Authentication.TwoFactorValidateRequest, Authentication.TwoFactorValidateResponse);\r\nexport const twoFactorSend2FAPushMessage = (data) => createMessage(data, 'authentication/2fa_send_push', Authentication.TwoFactorSendPushRequest, null);\r\nexport const twoFactorAdd = (data) => createMessage(data, 'authentication/2fa_add', Authentication.TwoFactorAddRequest, Authentication.TwoFactorAddResponse);\r\nexport const twoFactorAddValidate = (data) => createMessage(data, 'authentication/2fa_add_validate', Authentication.TwoFactorValidateRequest, Authentication.TwoFactorAddResponse);\r\nexport const twoFactorList = (data) => createMessage(data, 'authentication/2fa_list', Authentication.TwoFactorChannelInfo, Authentication.TwoFactorListResponse);\r\nexport const twoFactorRename = (data) => createMessage(data, 'authentication/2fa_rename', Authentication.TwoFactorRenameRequest, null);\r\nexport const twoFactorDelete = (data) => createMessage(data, 'authentication/2fa_delete', Authentication.TwoFactorDeleteRequest, null);\r\nexport const twoFactorDuoStatus = (data) => createMessage(data, 'authentication/2fa_duo_status', Authentication.TwoFactorDuoStatus, null);\r\nexport const approveDeviceMessage = (data) => createMessage(data, 'authentication/approve_device', Authentication.ApproveDeviceRequest, null);\r\nexport const approveDeviceInstantMessage = (data) => createMessage(data, 'authentication/approve_device_instant', Authentication.ApproveDeviceRequest, null);\r\nexport const validateDeviceVerificationCodeMessage = (data) => createMessage(data, 'authentication/validate_device_verification_code', Authentication.ValidateDeviceVerificationCodeRequest, null);\r\nexport const validateCreateUserVerificationCodeMessage = (data) => createMessage(data, 'authentication/validate_create_user_verification_code', Authentication.ValidateCreateUserVerificationCodeRequest, null);\r\nexport const approveUserDevicesMessage = (data) => createMessage(data, 'enterprise/approve_user_devices', Enterprise.ApproveUserDevicesRequest, Enterprise.ApproveUserDevicesResponse);\r\nexport const registerEncryptedDataKeyForDeviceMessage = (data) => createMessage(data, 'authentication/register_encrypted_data_key_for_device', Authentication.RegisterDeviceDataKeyRequest, null);\r\nexport const setUserSettingMessage = (data) => createMessage(data, 'setting/set_user_setting', Authentication.UserSettingRequest, null);\r\nexport const requestDeviceAdminApprovalMessage = (data) => createMessage(data, 'authentication/request_device_admin_approval', Authentication.DeviceVerificationRequest, null);\r\nexport const requestSaltAndIterations = () => createMessage({}, 'authentication/get_salt_and_iterations', null, Authentication.Salt);\r\nexport const validateMasterPasswordMessage = (data) => createMessage(data, 'authentication/validate_master_password', Authentication.MasterPasswordReentryRequest, null);\r\nexport const startLoginMessageFromSessionToken = (data) => createMessage(data, 'authentication/login_from_existing_session_token', Authentication.StartLoginRequest, Authentication.LoginResponse);\r\nexport const keepAliveMessage = () => createMessage({}, 'keep_alive', null, null);\r\nexport const logoutV3Message = () => createMessage({}, 'vault/logout_v3', null, null);\r\n// end new login\r\nexport const deviceMessage = (data) => createMessage(data, 'authentication/get_device_token', Authentication.DeviceRequest, Authentication.DeviceResponse);\r\nexport const preLoginMessage = (data) => createMessage(data, 'authentication/pre_login', Authentication.PreLoginRequest, Authentication.PreLoginResponse);\r\nexport const securityReportMessage = (data) => createMessage(data, 'enterprise/get_security_report_data', Authentication.SecurityReportRequest, Authentication.SecurityReportResponse);\r\nexport const enterpriseNodeToManagedCompanyMessage = (data) => createMessage(data, 'enterprise/node_to_managed_company', Enterprise.NodeToManagedCompanyRequest, null);\r\nexport const recordTypesGetMessage = (data) => createMessage(data, 'vault/get_record_types', Records.RecordTypesRequest, Records.RecordTypesResponse);\r\nexport const recordTypeAddMessage = (data) => createMessage(data, 'vault/record_type_add', Records.RecordType, Records.RecordTypeModifyResponse);\r\nexport const recordTypeUpdateMessage = (data) => createMessage(data, 'vault/record_type_update', Records.RecordType, Records.RecordTypeModifyResponse);\r\nexport const recordTypeDeleteMessage = (data) => createMessage(data, 'vault/record_type_delete', Records.RecordType, Records.RecordTypeModifyResponse);\r\nexport const recordsGetMessage = (data) => createMessage(data, 'vault/records_get', Records.RecordsGetRequest, Records.RecordsGetResponse);\r\nexport const recordsAddMessage = (data) => createMessage(data, 'vault/records_add', Records.RecordsAddRequest, Records.RecordsModifyResponse);\r\nexport const recordsUpdateMessage = (data) => createMessage(data, 'vault/records_update', Records.RecordsUpdateRequest, Records.RecordsModifyResponse);\r\nexport const fileDownloadMessage = (data) => createMessage(data, 'vault/files_download', Records.FilesGetRequest, Records.FilesGetResponse);\r\nexport const fileAddMessage = (data) => createMessage(data, 'vault/files_add', Records.FilesAddRequest, Records.FilesAddResponse);\r\nexport const recordsConvert3Message = (data) => createMessage(data, 'vault/records_convert3', Records.RecordsConvertToV3Request, Records.RecordsModifyResponse);\r\nexport const recordAddAuditData = (data) => createMessage(data, 'vault/record_add_audit_data', Records.AddAuditDataRequest, null);\r\nexport const accountSummaryMessage = (data) => createMessage(data, 'login/account_summary', AccountSummary.AccountSummaryRequest, AccountSummary.AccountSummaryElements);\r\nexport const sendSessionMessage = (data) => createMessage(data, 'pushserver/send_session_message', Authentication.SendSessionMessageRequest, null);\r\nexport const setEncryptedTeamKeyMessage = (data) => createMessage(data, 'enterprise/set_encrypted_team_key', Enterprise.EncryptedTeamKeyRequest, null);\r\nexport const getBackupMessage = (data) => createMessage(data, 'enterprise/get_backup', Enterprise.BackupRequest, Enterprise.BackupResponse);\r\nexport const getEnterprisePublicKeyMessage = () => createMessage({}, 'enterprise/get_enterprise_public_key', null, BreachWatch.EnterprisePublicKeyResponse);\r\nexport const getEnterpriseDataForUserMessage = (data) => createMessage(data, 'enterprise/get_enterprise_data_for_user', Enterprise.EnterpriseDataRequest, Enterprise.EnterpriseDataResponse);\r\nexport const setEnterpriseDataKeyMessage = (data) => createMessage(data, 'enterprise/set_enterprise_user_data_key', Enterprise.EnterpriseUserDataKey, null);\r\nexport const setV2AlternatePasswordMessage = (data) => createMessage(data, 'authentication/set_v2_alternate_password', Authentication.UserAuthRequest, null);\r\nexport const getMasterPasswordSaltMessage = () => createMessage({}, 'setting/get_master_password_salt', null, Authentication.Salt);\r\nexport const getPublicKeysMessage = (data) => createMessage(data, 'vault/get_public_keys', Authentication.GetPublicKeysRequest, Authentication.GetPublicKeysResponse);\r\nexport const setEccKeyPairMessage = (data) => createMessage(data, 'vault/set_ecc_key_pair', Authentication.SetEccKeyPairRequest, null);\r\nexport const applicationAddMessage = (data) => createMessage(data, 'vault/application_add', Records.ApplicationAddRequest, null);\r\nexport const addAppShareMessage = (data) => createMessage(data, 'vault/app_share_add', Authentication.AddAppSharesRequest, null);\r\nexport const removeAppShareMessage = (data) => createMessage(data, 'vault/app_share_remove', Authentication.RemoveAppSharesRequest, null);\r\nexport const addAppClientMessage = (data) => createMessage(data, 'vault/app_client_add', Authentication.AddAppClientRequest, Authentication.Device);\r\nexport const addExternalShareMessage = (data) => createMessage(data, 'vault/external_share_add', Authentication.AddExternalShareRequest, Authentication.Device);\r\nexport const removeExternalShareMessage = (data) => createMessage(data, 'vault/external_share_remove', Authentication.RemoveAppClientsRequest, null);\r\nexport const removeAppClientMessage = (data) => createMessage(data, 'vault/app_client_remove', Authentication.RemoveAppClientsRequest, null);\r\nexport const getAppInfoMessage = (data) => createMessage(data, 'vault/get_app_info', Authentication.GetAppInfoRequest, Authentication.GetAppInfoResponse);\r\nexport const getApplicationsSummaryMessage = () => createMessage({}, 'vault/get_applications_summary', null, Authentication.GetApplicationsSummaryResponse);\r\nexport const sendShareInviteMessage = (data) => createMessage(data, 'vault/send_share_invite', Authentication.SendShareInviteRequest, null);\r\nexport const updateSecurityData = (data) => createMessage(data, 'enterprise/update_security_data', Authentication.SecurityDataRequest, Authentication.RevisionResponse);\r\nexport const setReusedPasswords = (data) => createMessage(data, 'enterprise/set_reused_passwords', Authentication.ReusedPasswordsRequest, null);\r\n/* -- SERVICE LOGGER -- */\r\nexport const serviceLoggerGetMessage = (data) => createMessage(data, 'logger/get', ServiceLogger.ServiceLogGetRequest, ServiceLogger.ServiceLogResponse);\r\n/* -- Cloud SSO Connect -- */\r\nexport const ssoSamlMessage = (endpoint) => createMessage(null, 'sso/saml/' + endpoint, null, null);\r\nexport const ssoConfigMessage = (endpoint) => createMessage(null, 'sso/config/' + endpoint, null, null);\r\nexport const ssoLoginMessageWithUrl = (url) => createMessage(null, url, null, null);\r\nexport const ssoLogoutMessage = (serviceProviderId, data) => createMessage(null, 'sso/saml/logout/' + serviceProviderId, null, null);\r\nexport const ssoGetMetadataMessage = (serviceProviderId) => createMessage(null, 'sso/saml/metadata/' + serviceProviderId, null, null);\r\nexport const ssoUploadIdpMetadataMessage = (data) => createMessage(data, 'sso/config/sso_cloud_upload_idp_metadata', SsoCloud.SsoCloudIdpMetadataRequest, SsoCloud.SsoCloudConfigurationValidationResponse);\r\nexport const ssoCloudServiceProviderUpdateRequestMessage = (data) => createMessage(data, 'sso/config/sso_cloud_sp_configuration_set', SsoCloud.SsoCloudServiceProviderUpdateRequest, SsoCloud.SsoCloudConfigurationResponse);\r\nexport const ssoCloudConfigurationRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudConfigurationRequest, SsoCloud.SsoCloudConfigurationResponse);\r\nexport const ssoCloudLogRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudLogRequest, ServiceLogger.ServiceLogResponse);\r\nexport const ssoCloudSAMLLogRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudSAMLLogRequest, SsoCloud.SsoCloudSAMLLogResponse);\r\nexport const ssoCloudServiceProviderConfigurationListRequestMessage = (data) => createMessage(data, 'sso/config/sso_cloud_sp_configuration_get', SsoCloud.SsoCloudServiceProviderConfigurationListRequest, SsoCloud.SsoCloudServiceProviderConfigurationListResponse);\r\nexport const ssoServiceProviderRequestMessage = (data) => createMessage(data, 'enterprise/get_sso_service_provider', Authentication.SsoServiceProviderRequest, Authentication.SsoServiceProviderResponse);\r\nexport const ssoCloudRequestMessage = (data) => createMessage(data, null, SsoCloud.SsoCloudRequest, null);\r\nexport const ssoCloudValidationRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudConfigurationValidationRequest, SsoCloud.SsoCloudConfigurationValidationResponse);\r\n/* -- Keeper Automator -- */\r\nexport const automatorApproveDeviceMessage = (data, url) => createMessage(data, url, Automator.ApproveDeviceRequest, Automator.AutomatorResponse);\r\nexport const automatorAdminCreateMessage = (data, url) => createMessage(data, url, Automator.AdminCreateAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminDeleteMessage = (data, url) => createMessage(data, url, Automator.AdminDeleteAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminEditMessage = (data, url) => createMessage(data, url, Automator.AdminEditAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminEnableMessage = (data, url) => createMessage(data, url, Automator.AdminEnableAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminGetMessage = (data, url) => createMessage(data, url, Automator.AdminGetAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminGetAllOnNodeMessage = (data, url) => createMessage(data, url, Automator.AdminGetAutomatorsOnNodeRequest, Automator.AdminResponse);\r\nexport const automatorAdminGetAllForEnterpriseMessage = (data, url) => createMessage(data, url, Automator.AdminGetAutomatorsForEnterpriseRequest, Automator.AdminResponse);\r\nexport const automatorAdminInitializeMessage = (data, url) => createMessage(data, url, Automator.AdminInitializeAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminResetMessage = (data, url) => createMessage(data, url, Automator.AdminResetAutomatorRequest, Automator.AdminResponse);\r\n//# sourceMappingURL=restMessages.js.map","references":["/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/node_modules/protobufjs/index.d.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/proto.d.ts"],"map":"{\"version\":3,\"file\":\"restMessages.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/restMessages.ts\"],\"names\":[],\"mappings\":\"AACA,OAAO,EAAC,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAA;AAgB5H,SAAS,aAAa,CAAY,IAAS,EAAE,IAAY,EAAE,OAA0B,EAAE,OAA2B;IAC9G,OAAO;QACH,IAAI,EAAE,IAAI;QACV,OAAO;YACH,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;QACzD,CAAC;QACD,SAAS,CAAC,IAAgB;YACtB,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAC/B,CAAC;KACJ,CAAA;AACL,CAAC;AAED,YAAY;AAEZ,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAA+C,EAAkF,EAAE,CACrK,aAAa,CAAC,IAAI,EAAE,gCAAgC,EAAE,cAAc,CAAC,yBAAyB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;AAE1H,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,IAAmD,EAAkE,EAAE,CACjK,aAAa,CAAC,IAAI,EAAE,0CAA0C,EAAE,cAAc,CAAC,6BAA6B,EAAE,IAAI,CAAC,CAAA;AAEvH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAyC,EAAwD,EAAE,CACnI,aAAa,CAAC,IAAI,EAAE,8BAA8B,EAAE,cAAc,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;AAEjG,MAAM,CAAC,MAAM,g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,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAwC,EAAE,GAAU,EAA8E,EAAE,CACzK,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,wBAAwB,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;AAE1F,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,IAA+C,EAAE,GAAU,EAAqF,EAAE,CAChM,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,+BAA+B,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,IAAsD,EAAE,GAAU,EAA4F,EAAE,CACrN,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,sCAAsC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,IAA+C,EAAE,GAAU,EAAqF,EAAE,CAC9L,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,+BAA+B,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,IAA0C,EAAE,GAAU,EAAgF,EAAE,CAC/K,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,0BAA0B,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC\"}","dts":{"name":"/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/restMessages.d.ts","writeByteOrderMark":false,"text":"import { AccountSummary, Authentication, BreachWatch, Automator, Enterprise, Records, ServiceLogger, SsoCloud } from './proto';\r\nexport interface RestMessage<TIn, TOut> {\r\n path: string;\r\n toBytes(): Uint8Array;\r\n fromBytes(data: Uint8Array): TOut;\r\n}\r\nexport declare const registerDeviceMessage: (data: Authentication.IDeviceRegistrationRequest) => RestMessage<Authentication.IDeviceRegistrationRequest, Authentication.IDevice>;\r\nexport declare const registerDeviceInRegionMessage: (data: Authentication.IRegisterDeviceInRegionRequest) => RestMessage<Authentication.IRegisterDeviceInRegionRequest, {}>;\r\nexport declare const updateDeviceMessage: (data: Authentication.IDeviceUpdateRequest) => RestMessage<Authentication.IDeviceUpdateRequest, {}>;\r\nexport declare const requestDeviceVerificationMessage: (data: Authentication.IDeviceVerificationRequest) => RestMessage<Authentication.IDeviceVerificationRequest, {}>;\r\nexport declare const requestCreateUserMessage: (data: Authentication.ICreateUserRequest, isSso: boolean) => RestMessage<Authentication.ICreateUserRequest, {}>;\r\nexport declare const startLoginMessage: (data: Authentication.IStartLoginRequest) => RestMessage<Authentication.IStartLoginRequest, Authentication.ILoginResponse>;\r\nexport declare const validateAuthHashMessage: (data: Authentication.IValidateAuthHashRequest) => RestMessage<Authentication.IValidateAuthHashRequest, Authentication.ILoginResponse>;\r\nexport declare const twoFactorValidateMessage: (data: Authentication.ITwoFactorValidateRequest) => RestMessage<Authentication.ITwoFactorValidateRequest, Authentication.ITwoFactorValidateResponse>;\r\nexport declare const twoFactorSend2FAPushMessage: (data: Authentication.ITwoFactorSendPushRequest) => RestMessage<Authentication.ITwoFactorSendPushRequest, {}>;\r\nexport declare const twoFactorAdd: (data: Authentication.ITwoFactorAddRequest) => RestMessage<Authentication.ITwoFactorAddRequest, Authentication.ITwoFactorAddResponse>;\r\nexport declare const twoFactorAddValidate: (data: Authentication.ITwoFactorValidateRequest) => RestMessage<Authentication.ITwoFactorValidateRequest, Authentication.ITwoFactorAddResponse>;\r\nexport declare const twoFactorList: (data: Authentication.ITwoFactorChannelInfo) => RestMessage<Authentication.ITwoFactorChannelInfo, Authentication.ITwoFactorListResponse>;\r\nexport declare const twoFactorRename: (data: Authentication.ITwoFactorRenameRequest) => RestMessage<Authentication.ITwoFactorRenameRequest, {}>;\r\nexport declare const twoFactorDelete: (data: Authentication.ITwoFactorDeleteRequest) => RestMessage<Authentication.ITwoFactorDeleteRequest, {}>;\r\nexport declare const twoFactorDuoStatus: (data: Authentication.ITwoFactorDuoStatus) => RestMessage<Authentication.ITwoFactorDuoStatus, {}>;\r\nexport declare const approveDeviceMessage: (data: Authentication.IApproveDeviceRequest) => RestMessage<Authentication.IApproveDeviceRequest, {}>;\r\nexport declare const approveDeviceInstantMessage: (data: Authentication.IApproveDeviceRequest) => RestMessage<Authentication.IApproveDeviceRequest, {}>;\r\nexport declare const validateDeviceVerificationCodeMessage: (data: Authentication.IValidateDeviceVerificationCodeRequest) => RestMessage<Authentication.IValidateDeviceVerificationCodeRequest, {}>;\r\nexport declare const validateCreateUserVerificationCodeMessage: (data: Authentication.IValidateCreateUserVerificationCodeRequest) => RestMessage<Authentication.IValidateCreateUserVerificationCodeRequest, {}>;\r\nexport declare const approveUserDevicesMessage: (data: Enterprise.IApproveUserDevicesRequest) => RestMessage<Enterprise.IApproveUserDevicesRequest, Enterprise.IApproveUserDevicesResponse>;\r\nexport declare const registerEncryptedDataKeyForDeviceMessage: (data: Authentication.IRegisterDeviceDataKeyRequest) => RestMessage<Authentication.IRegisterDeviceDataKeyRequest, {}>;\r\nexport declare const setUserSettingMessage: (data: Authentication.IUserSettingRequest) => RestMessage<Authentication.IUserSettingRequest, {}>;\r\nexport declare const requestDeviceAdminApprovalMessage: (data: Authentication.IDeviceVerificationRequest) => RestMessage<Authentication.IDeviceVerificationRequest, {}>;\r\nexport declare const requestSaltAndIterations: () => RestMessage<{}, Authentication.Salt>;\r\nexport declare const validateMasterPasswordMessage: (data: Authentication.IMasterPasswordReentryRequest) => RestMessage<Authentication.IMasterPasswordReentryRequest, {}>;\r\nexport declare const startLoginMessageFromSessionToken: (data: Authentication.IStartLoginRequest) => RestMessage<Authentication.IStartLoginRequest, Authentication.ILoginResponse>;\r\nexport declare const keepAliveMessage: () => RestMessage<{}, {}>;\r\nexport declare const logoutV3Message: () => RestMessage<{}, {}>;\r\nexport declare const deviceMessage: (data: Authentication.IDeviceRequest) => RestMessage<Authentication.IDeviceRequest, Authentication.IDeviceResponse>;\r\nexport declare const preLoginMessage: (data: Authentication.IPreLoginRequest) => RestMessage<Authentication.IPreLoginRequest, Authentication.IPreLoginResponse>;\r\nexport declare const securityReportMessage: (data: Authentication.ISecurityReportRequest) => RestMessage<Authentication.ISecurityReportRequest, Authentication.ISecurityReportResponse>;\r\nexport declare const enterpriseNodeToManagedCompanyMessage: (data: Enterprise.INodeToManagedCompanyRequest) => RestMessage<Enterprise.INodeToManagedCompanyRequest, {}>;\r\nexport declare const recordTypesGetMessage: (data: Records.IRecordTypesRequest) => RestMessage<Records.IRecordTypesRequest, Records.IRecordTypesResponse>;\r\nexport declare const recordTypeAddMessage: (data: Records.IRecordType) => RestMessage<Records.IRecordType, Records.IRecordTypeModifyResponse>;\r\nexport declare const recordTypeUpdateMessage: (data: Records.IRecordType) => RestMessage<Records.IRecordType, Records.IRecordTypeModifyResponse>;\r\nexport declare const recordTypeDeleteMessage: (data: Records.IRecordType) => RestMessage<Records.IRecordType, Records.IRecordTypeModifyResponse>;\r\nexport declare const recordsGetMessage: (data: Records.IRecordsGetRequest) => RestMessage<Records.IRecordsGetRequest, Records.IRecordsGetResponse>;\r\nexport declare const recordsAddMessage: (data: Records.IRecordsAddRequest) => RestMessage<Records.IRecordsAddRequest, Records.IRecordsModifyResponse>;\r\nexport declare const recordsUpdateMessage: (data: Records.IRecordsUpdateRequest) => RestMessage<Records.IRecordsUpdateRequest, Records.IRecordsModifyResponse>;\r\nexport declare const fileDownloadMessage: (data: Records.IFilesGetRequest) => RestMessage<Records.IFilesGetRequest, Records.IFilesGetResponse>;\r\nexport declare const fileAddMessage: (data: Records.IFilesAddRequest) => RestMessage<Records.IFilesAddRequest, Records.IFilesAddResponse>;\r\nexport declare const recordsConvert3Message: (data: Records.RecordsConvertToV3Request) => RestMessage<Records.IRecordsConvertToV3Request, Records.RecordsModifyResponse>;\r\nexport declare const recordAddAuditData: (data: Records.AddAuditDataRequest) => RestMessage<Records.IAddAuditDataRequest, {}>;\r\nexport declare const accountSummaryMessage: (data: AccountSummary.IAccountSummaryRequest) => RestMessage<AccountSummary.IAccountSummaryRequest, AccountSummary.IAccountSummaryElements>;\r\nexport declare const sendSessionMessage: (data: Authentication.ISendSessionMessageRequest) => RestMessage<Authentication.ISendSessionMessageRequest, {}>;\r\nexport declare const setEncryptedTeamKeyMessage: (data: Enterprise.IEncryptedTeamKeyRequest) => RestMessage<Enterprise.IEncryptedTeamKeyRequest, {}>;\r\nexport declare const getBackupMessage: (data: Enterprise.IBackupRequest) => RestMessage<Enterprise.IBackupRequest, Enterprise.IBackupResponse>;\r\nexport declare const getEnterprisePublicKeyMessage: () => RestMessage<{}, BreachWatch.IEnterprisePublicKeyResponse>;\r\nexport declare const getEnterpriseDataForUserMessage: (data: Enterprise.IEnterpriseDataRequest) => RestMessage<Enterprise.IEnterpriseDataRequest, Enterprise.IEnterpriseDataResponse>;\r\nexport declare const setEnterpriseDataKeyMessage: (data: Enterprise.IEnterpriseUserDataKey) => RestMessage<Enterprise.IEnterpriseUserDataKey, {}>;\r\nexport declare const setV2AlternatePasswordMessage: (data: Authentication.IUserAuthRequest) => RestMessage<Authentication.IUserAuthRequest, {}>;\r\nexport declare const getMasterPasswordSaltMessage: () => RestMessage<{}, Authentication.ISalt>;\r\nexport declare const getPublicKeysMessage: (data: Authentication.IGetPublicKeysRequest) => RestMessage<Authentication.IGetPublicKeysRequest, Authentication.IGetPublicKeysResponse>;\r\nexport declare const setEccKeyPairMessage: (data: Authentication.ISetEccKeyPairRequest) => RestMessage<Authentication.ISetEccKeyPairRequest, {}>;\r\nexport declare const applicationAddMessage: (data: Records.IApplicationAddRequest) => RestMessage<Records.IApplicationAddRequest, {}>;\r\nexport declare const addAppShareMessage: (data: Authentication.IAddAppSharesRequest) => RestMessage<Authentication.IAddAppSharesRequest, {}>;\r\nexport declare const removeAppShareMessage: (data: Authentication.IRemoveAppSharesRequest) => RestMessage<Authentication.IRemoveAppSharesRequest, {}>;\r\nexport declare const addAppClientMessage: (data: Authentication.IAddAppClientRequest) => RestMessage<Authentication.IAddAppClientRequest, Authentication.IDevice>;\r\nexport declare const addExternalShareMessage: (data: Authentication.IAddExternalShareRequest) => RestMessage<Authentication.IAddExternalShareRequest, Authentication.IDevice>;\r\nexport declare const removeExternalShareMessage: (data: Authentication.IRemoveAppClientsRequest) => RestMessage<Authentication.IRemoveAppClientsRequest, {}>;\r\nexport declare const removeAppClientMessage: (data: Authentication.IRemoveAppClientsRequest) => RestMessage<Authentication.IRemoveAppClientsRequest, {}>;\r\nexport declare const getAppInfoMessage: (data: Authentication.IGetAppInfoRequest) => RestMessage<Authentication.IGetAppInfoRequest, Authentication.IGetAppInfoResponse>;\r\nexport declare const getApplicationsSummaryMessage: () => RestMessage<{}, Authentication.IGetApplicationsSummaryResponse>;\r\nexport declare const sendShareInviteMessage: (data: Authentication.ISendShareInviteRequest) => RestMessage<Authentication.ISendShareInviteRequest, {}>;\r\nexport declare const updateSecurityData: (data: Authentication.ISecurityDataRequest) => RestMessage<Authentication.ISecurityDataRequest, Authentication.RevisionResponse>;\r\nexport declare const setReusedPasswords: (data: Authentication.IReusedPasswordsRequest) => RestMessage<Authentication.IReusedPasswordsRequest, {}>;\r\nexport declare const serviceLoggerGetMessage: (data: ServiceLogger.IServiceLogGetRequest) => RestMessage<ServiceLogger.IServiceLogGetRequest, ServiceLogger.IServiceLogResponse>;\r\nexport declare const ssoSamlMessage: (endpoint: string) => RestMessage<null, null>;\r\nexport declare const ssoConfigMessage: (endpoint: string) => RestMessage<null, null>;\r\nexport declare const ssoLoginMessageWithUrl: (url: any) => RestMessage<null, null>;\r\nexport declare const ssoLogoutMessage: (serviceProviderId: any, data: any) => RestMessage<null, null>;\r\nexport declare const ssoGetMetadataMessage: (serviceProviderId: any) => RestMessage<null, null>;\r\nexport declare const ssoUploadIdpMetadataMessage: (data: SsoCloud.ISsoCloudIdpMetadataRequest) => RestMessage<SsoCloud.ISsoCloudIdpMetadataRequest, SsoCloud.ISsoCloudConfigurationValidationResponse>;\r\nexport declare const ssoCloudServiceProviderUpdateRequestMessage: (data: SsoCloud.ISsoCloudServiceProviderUpdateRequest) => RestMessage<SsoCloud.ISsoCloudServiceProviderUpdateRequest, SsoCloud.ISsoCloudConfigurationResponse>;\r\nexport declare const ssoCloudConfigurationRequestMessage: (data: SsoCloud.ISsoCloudConfigurationRequest, url: string) => RestMessage<SsoCloud.ISsoCloudConfigurationRequest, SsoCloud.ISsoCloudConfigurationResponse>;\r\nexport declare const ssoCloudLogRequestMessage: (data: SsoCloud.ISsoCloudLogRequest, url: string) => RestMessage<SsoCloud.ISsoCloudLogRequest, ServiceLogger.IServiceLogResponse>;\r\nexport declare const ssoCloudSAMLLogRequestMessage: (data: SsoCloud.ISsoCloudSAMLLogRequest, url: string) => RestMessage<SsoCloud.ISsoCloudSAMLLogRequest, SsoCloud.ISsoCloudSAMLLogResponse>;\r\nexport declare const ssoCloudServiceProviderConfigurationListRequestMessage: (data: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest) => RestMessage<SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, SsoCloud.ISsoCloudServiceProviderConfigurationListResponse>;\r\nexport declare const ssoServiceProviderRequestMessage: (data: Authentication.ISsoServiceProviderRequest) => RestMessage<Authentication.ISsoServiceProviderRequest, Authentication.ISsoServiceProviderResponse>;\r\nexport declare const ssoCloudRequestMessage: (data: SsoCloud.ISsoCloudRequest) => RestMessage<SsoCloud.ISsoCloudRequest, null>;\r\nexport declare const ssoCloudValidationRequestMessage: (data: SsoCloud.ISsoCloudConfigurationValidationRequest, url: string) => RestMessage<SsoCloud.ISsoCloudConfigurationValidationRequest, SsoCloud.ISsoCloudConfigurationValidationResponse>;\r\nexport declare const automatorApproveDeviceMessage: (data: Automator.ApproveDeviceRequest, url: string) => RestMessage<Automator.IApproveDeviceRequest, Automator.IAutomatorResponse>;\r\nexport declare const automatorAdminCreateMessage: (data: Automator.AdminCreateAutomatorRequest, url: string) => RestMessage<Automator.IAdminCreateAutomatorRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminDeleteMessage: (data: Automator.AdminDeleteAutomatorRequest, url: string) => RestMessage<Automator.IAdminDeleteAutomatorRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminEditMessage: (data: Automator.AdminEditAutomatorRequest, url: string) => RestMessage<Automator.IAdminEditAutomatorRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminEnableMessage: (data: Automator.AdminEnableAutomatorRequest, url: string) => RestMessage<Automator.IAdminEnableAutomatorRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminGetMessage: (data: Automator.AdminGetAutomatorRequest, url: string) => RestMessage<Automator.IAdminGetAutomatorRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminGetAllOnNodeMessage: (data: Automator.AdminGetAutomatorsOnNodeRequest, url: string) => RestMessage<Automator.IAdminGetAutomatorsOnNodeRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminGetAllForEnterpriseMessage: (data: Automator.AdminGetAutomatorsForEnterpriseRequest, url: string) => RestMessage<Automator.IAdminGetAutomatorsForEnterpriseRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminInitializeMessage: (data: Automator.AdminInitializeAutomatorRequest, url: string) => RestMessage<Automator.IAdminInitializeAutomatorRequest, Automator.IAdminResponse>;\r\nexport declare const automatorAdminResetMessage: (data: Automator.AdminResetAutomatorRequest, url: string) => RestMessage<Automator.IAdminResetAutomatorRequest, Automator.IAdminResponse>;\r\n"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"code":"export class KeeperCommand {\r\n}\r\nexport class LoginCommand extends KeeperCommand {\r\n}\r\nexport class RegisterCommand extends KeeperCommand {\r\n constructor() {\r\n super();\r\n this.command = \"register\";\r\n }\r\n}\r\nexport class AuthorizedCommand extends KeeperCommand {\r\n}\r\nexport class AccountSummaryCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"account_summary\";\r\n }\r\n}\r\nexport class SyncDownCommand extends AuthorizedCommand {\r\n constructor(revision) {\r\n super();\r\n this.command = 'sync_down';\r\n this.revision = revision;\r\n this.client_time = new Date().getTime();\r\n }\r\n}\r\nexport class RecordAddCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"record_add\";\r\n }\r\n}\r\nexport class RecordUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"record_update\";\r\n }\r\n}\r\nexport class RequestDownloadCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'request_download';\r\n }\r\n}\r\nexport class RequestUploadCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'request_upload';\r\n }\r\n}\r\nexport class PreDeleteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'pre_delete';\r\n }\r\n}\r\nexport class DeleteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'delete';\r\n }\r\n}\r\nexport class UndeleteRecordCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'undelete_record';\r\n }\r\n}\r\nexport class GetDeletedRecordsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'get_deleted_records';\r\n this.client_time = new Date().getTime();\r\n }\r\n}\r\nexport class PurgeDeletedRecordsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'purge_deleted_records';\r\n }\r\n}\r\nexport class RecordShareUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'record_share_update';\r\n }\r\n}\r\nexport class FolderAddCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'folder_add';\r\n }\r\n}\r\nexport class SharedFolderUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'shared_folder_update';\r\n }\r\n}\r\nexport class MoveCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'move';\r\n }\r\n}\r\nexport class PublicKeysCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'public_keys';\r\n }\r\n}\r\nexport class GetRecordsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'get_records';\r\n }\r\n}\r\nexport class EditUserCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'edit_user';\r\n }\r\n}\r\nexport class ShareAccountCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'share_account';\r\n }\r\n}\r\nexport class SendKeyVerificationCodeCommand extends KeeperCommand {\r\n constructor() {\r\n super();\r\n this.command = 'send_key_verification_code';\r\n }\r\n}\r\nexport class SetTwoFactorAuthCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'set_two_factor_auth';\r\n }\r\n}\r\nexport class TwoFactorSettingsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'two_factor_settings';\r\n }\r\n}\r\nexport class GetPushInfoCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'get_push_info';\r\n }\r\n}\r\nexport class VerifyUserCommand extends KeeperCommand {\r\n constructor() {\r\n super();\r\n this.command = 'verify_user';\r\n }\r\n}\r\nexport class GetEnterpriseDataCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"get_enterprise_data\";\r\n }\r\n}\r\nexport class GetEnterpriseSettingCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"get_enterprise_setting\";\r\n }\r\n}\r\nexport class PutEnterpriseSettingCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"put_enterprise_setting\";\r\n }\r\n}\r\nexport class EnterpriseUserLockCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"enterprise_user_lock\";\r\n }\r\n}\r\nexport class EnterpriseNodeToManagedCompanyCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"enterprise_node_to_managed_company\";\r\n }\r\n}\r\nexport class EnterpriseAllocateIdsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.number_requested = 1;\r\n this.command = \"enterprise_allocate_ids\";\r\n }\r\n}\r\nexport class NodeAddCommand extends AuthorizedCommand {\r\n constructor(nodeId, parentId, encryptedData) {\r\n super();\r\n this.command = \"node_add\";\r\n this.node_id = nodeId;\r\n this.parent_id = parentId;\r\n this.encrypted_data = encryptedData;\r\n }\r\n}\r\nexport class RoleAddCommand extends AuthorizedCommand {\r\n constructor(roleId, nodeId, encryptedData) {\r\n super();\r\n this.command = \"role_add\";\r\n this.role_id = roleId;\r\n this.node_id = nodeId;\r\n this.encrypted_data = encryptedData;\r\n }\r\n}\r\nexport class TeamAddCommand extends AuthorizedCommand {\r\n constructor(team_uid, team_name, node_id, public_key, private_key, team_key, encrypted_team_key) {\r\n super();\r\n this.restrict_edit = false;\r\n this.restrict_share = false;\r\n this.restrict_view = false;\r\n this.manage_only = true;\r\n this.command = \"team_add\";\r\n this.team_uid = team_uid;\r\n this.team_name = team_name;\r\n this.node_id = node_id;\r\n this.public_key = public_key;\r\n this.private_key = private_key;\r\n this.team_key = team_key;\r\n this.encrypted_team_key = encrypted_team_key;\r\n }\r\n}\r\nexport class EnterpriseUserAddCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id, email, nodeId, encryptedData) {\r\n super();\r\n this.command = \"enterprise_user_add\";\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.enterprise_user_username = email;\r\n this.node_id = nodeId;\r\n this.encrypted_data = encryptedData;\r\n }\r\n}\r\nexport class TeamEnterpriseUserAddCommand extends AuthorizedCommand {\r\n constructor(user_type, enterprise_user_id, team_uid, team_key) {\r\n super();\r\n this.command = \"team_enterprise_user_add\";\r\n this.user_type = user_type;\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.team_uid = team_uid;\r\n this.team_key = team_key;\r\n }\r\n}\r\nexport class TeamEnterpriseUserRemoveCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id, team_uid) {\r\n super();\r\n this.command = \"team_enterprise_user_remove\";\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.team_uid = team_uid;\r\n }\r\n}\r\nexport class TeamQueueUserCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id, team_uid) {\r\n super();\r\n this.command = \"team_queue_user\";\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.team_uid = team_uid;\r\n }\r\n}\r\nexport class EnterpriseRegistrationByMspCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"enterprise_registration_by_msp\";\r\n }\r\n}\r\nexport class SendInviteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"send_invite\";\r\n }\r\n}\r\nexport class AcceptEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"accept_enterprise_invite\";\r\n }\r\n}\r\nexport class ResendEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"resend_enterprise_invite\";\r\n }\r\n}\r\nexport class SsoServiceProviderAddCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"sso_service_provider_add\";\r\n }\r\n}\r\nexport class SsoServiceProviderUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"sso_service_provider_update\";\r\n }\r\n}\r\nexport class SsoServiceProviderDeleteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"sso_service_provider_delete\";\r\n }\r\n}\r\nexport class GetAuditEventReportsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"get_audit_event_reports\";\r\n }\r\n}\r\nexport var LoginResponseResultCode;\r\n(function (LoginResponseResultCode) {\r\n LoginResponseResultCode[\"Success\"] = \"auth_success\";\r\n LoginResponseResultCode[\"AuthExpired\"] = \"auth_expired\";\r\n LoginResponseResultCode[\"AuthExpiredTransfer\"] = \"auth_expired_transfer\";\r\n LoginResponseResultCode[\"AuthFailed\"] = \"auth_failed\";\r\n LoginResponseResultCode[\"RegionRedirect\"] = \"region_redirect\";\r\n LoginResponseResultCode[\"NeedTOTP\"] = \"need_totp\";\r\n LoginResponseResultCode[\"InvalidTOTP\"] = \"invalid_totp\";\r\n LoginResponseResultCode[\"InvalidDeviceToken\"] = \"invalid_device_token\";\r\n LoginResponseResultCode[\"InvalidBackupCode\"] = \"invalid_backup_code\";\r\n LoginResponseResultCode[\"FailedSending\"] = \"failed_sending\";\r\n LoginResponseResultCode[\"NotEnrolled\"] = \"not_enrolled\";\r\n LoginResponseResultCode[\"Throttled\"] = \"throttled\";\r\n LoginResponseResultCode[\"AccountLocked\"] = \"account_locked\";\r\n LoginResponseResultCode[\"NotAuthorized\"] = \"not_authorized\";\r\n LoginResponseResultCode[\"VersionIncompatible\"] = \"version_incompatible\";\r\n LoginResponseResultCode[\"IPAddressNotAllowed\"] = \"ip_address_not_allowed\";\r\n LoginResponseResultCode[\"RestrictedClientType\"] = \"restricted_client_type\";\r\n // there are a few more obscure ones, see https://keeper.atlassian.net/wiki/spaces/KA/pages/8028335/login\r\n})(LoginResponseResultCode || (LoginResponseResultCode = {}));\r\n//# sourceMappingURL=commands.js.map","references":[],"map":"{\"version\":3,\"file\":\"commands.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/commands.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,OAAO,aAAa;CAKzB;AAeD,MAAM,OAAO,YAAa,SAAQ,aAA4B;CAS7D;AAED,MAAM,OAAO,eAAgB,SAAQ,aAA4B;IAE7D;QACI,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,UAAU,CAAA;IAC7B,CAAC;CAOJ;AAED,MAAM,OAAO,iBAAoE,SAAQ,aAAuB;CAG/G;AAED,MAAM,OAAO,qBAAsB,SAAQ,iBAAiC;IAExE;QACI,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,iBAAiB,CAAA;IACpC,CAAC;CAGJ;AAsBD,MAAM,OAAO,eAAgB,SAAQ,iBAA+B;IAMhE,YAAY,QAAgB;Q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,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,6BAA6B,CAAC;IACjD,CAAC;CAGJ;AAED,MAAM,OAAO,2BAA4B,SAAQ,iBAA+C;IAE5F;QACI,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAC7C,CAAC;CAWJ;AAkGD,MAAM,CAAN,IAAY,uBAmBX;AAnBD,WAAY,uBAAuB;IAC/B,mDAAwB,CAAA;IACxB,uDAA4B,CAAA;IAC5B,wEAA6C,CAAA;IAC7C,qDAA0B,CAAA;IAC1B,6DAAkC,CAAA;IAClC,iDAAsB,CAAA;IACtB,uDAA4B,CAAA;IAC5B,sEAA2C,CAAA;IAC3C,oEAAyC,CAAA;IACzC,2DAAgC,CAAA;IAChC,uDAA4B,CAAA;IAC5B,kDAAuB,CAAA;IACvB,2DAAgC,CAAA;IAChC,2DAAgC,CAAA;IAChC,uEAA4C,CAAA;IAC5C,yEAA8C,CAAA;IAC9C,0EAA+C,CAAA;IAC/C,yGAAyG;AAC7G,CAAC,EAnBW,uBAAuB,KAAvB,uBAAuB,QAmBlC\"}","dts":{"name":"/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/commands.d.ts","writeByteOrderMark":false,"text":"export declare class KeeperCommand<Response extends KeeperResponse = KeeperResponse> {\r\n command: string;\r\n username: string;\r\n client_version: string;\r\n response: Response;\r\n}\r\nexport declare type AccountDataInclude = \"license\" | \"settings\" | \"group\" | \"sync_log\" | \"keys\" | \"enforcements\" | \"client_key\" | \"images\" | \"is_enterprise_admin\" | \"security_keys\" | \"personal_license\";\r\nexport declare class LoginCommand extends KeeperCommand<LoginResponse> {\r\n version: number;\r\n auth_response: string;\r\n include: AccountDataInclude[];\r\n enterprise_id?: number;\r\n platform_device_token: string;\r\n \"2fa_type\": \"device_token\" | \"one_time\" | \"backup\" | \"u2f\";\r\n \"2fa_mode\": \"auto\" | \"passcode\" | \"phone\" | \"push\" | \"sms\";\r\n \"2fa_token\": string;\r\n}\r\nexport declare class RegisterCommand extends KeeperCommand<LoginResponse> {\r\n constructor();\r\n email: string;\r\n auth_verifier: string;\r\n encryption_params: string;\r\n public_key: string;\r\n encrypted_private_key: string;\r\n}\r\nexport declare class AuthorizedCommand<Response extends KeeperResponse = KeeperResponse> extends KeeperCommand<Response> {\r\n session_token: string;\r\n device_id: string;\r\n}\r\nexport declare class AccountSummaryCommand extends AuthorizedCommand<KeeperResponse> {\r\n constructor();\r\n include: AccountDataInclude[];\r\n}\r\nexport declare type SyncDataInclude = \"record\" | \"typed_record\" | \"app_record\" | \"shared_folder\" | \"sfheaders\" | \"sfusers\" | \"sfrecords\" | \"folders\" | \"teams\" | \"sharing_changes\" | \"non_shared_data\" | \"pending_shares\" | \"profile\" | \"pending_team_users\" | \"user_auth\" | \"reused_passwords\" | \"explicit\";\r\nexport declare class SyncDownCommand extends AuthorizedCommand<SyncResponse> {\r\n private revision;\r\n private client_time;\r\n include: SyncDataInclude[];\r\n constructor(revision: number);\r\n}\r\nexport declare class RecordAddCommand extends AuthorizedCommand {\r\n constructor();\r\n record_uid: string;\r\n record_key: string;\r\n record_type: string;\r\n folder_type: string;\r\n how_long_ago: number;\r\n folder_uid: string;\r\n folder_key: string;\r\n data: string;\r\n extra: string;\r\n non_shared_data: string;\r\n file_ids: string[];\r\n}\r\nexport declare class RecordUpdateCommand extends AuthorizedCommand {\r\n constructor();\r\n pt: string;\r\n client_time: number;\r\n add_records: RecordUpdateRecord[];\r\n update_records: RecordUpdateRecord[];\r\n remove_records: string[];\r\n delete_records: string[];\r\n}\r\nexport interface RecordUpdateRecord {\r\n record_uid: string;\r\n record_key?: string;\r\n data: string;\r\n extra?: string;\r\n udata?: any;\r\n non_shared_data?: any;\r\n revision: number;\r\n version: number;\r\n client_modified_time: number;\r\n shared_folder_id?: string;\r\n team_uid?: string;\r\n}\r\nexport declare class RequestDownloadCommand extends AuthorizedCommand<RequestDownloadResponse> {\r\n constructor();\r\n record_uid: string;\r\n file_ids: string[];\r\n shared_folder_uid: string;\r\n team_uid: string;\r\n}\r\nexport interface RequestDownloadResponse extends KeeperResponse {\r\n downloads: {\r\n success_status_code: number;\r\n url: string;\r\n }[];\r\n}\r\nexport declare class RequestUploadCommand extends AuthorizedCommand<RequestUploadResponse> {\r\n constructor();\r\n file_count: number;\r\n thumbnail_count: number;\r\n}\r\nexport interface RequestUploadResponse extends KeeperResponse {\r\n file_uploads: FileUpload[];\r\n thumbnail_uploads: FileUpload[];\r\n}\r\nexport interface FileUpload {\r\n file_parameter: 'file';\r\n file_id: string;\r\n success_status_code: number;\r\n parameters: {\r\n signature: string;\r\n success_action_status: number;\r\n AWSAccessKeyId: string;\r\n acl: 'private';\r\n 'x-amz-security-token': string;\r\n key: string;\r\n policy: string;\r\n };\r\n max_size: number;\r\n url: string;\r\n}\r\nexport declare class PreDeleteCommand extends AuthorizedCommand<PreDeleteResponse> {\r\n constructor();\r\n objects: DeleteObject[];\r\n}\r\nexport interface DeleteObject {\r\n object_uid: string;\r\n object_type: 'record' | 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n from_uid?: string;\r\n from_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n delete_resolution: 'unlink';\r\n}\r\nexport interface PreDeleteResponse extends KeeperResponse {\r\n pre_delete_response: {\r\n pre_delete_token: string;\r\n would_delete: {\r\n deletion_summary: string[];\r\n };\r\n };\r\n}\r\nexport declare class DeleteCommand extends AuthorizedCommand<DeleteResponse> {\r\n constructor();\r\n pre_delete_token: string;\r\n}\r\nexport interface DeleteResponse extends KeeperResponse {\r\n revision: number;\r\n}\r\nexport declare class UndeleteRecordCommand extends AuthorizedCommand {\r\n constructor();\r\n record_uid: string;\r\n revision: number;\r\n}\r\nexport declare class GetDeletedRecordsCommand extends AuthorizedCommand<GetDeletedRecordsResponse> {\r\n private client_time;\r\n constructor();\r\n}\r\nexport interface DeletedRecord {\r\n record_uid: string;\r\n revision: number;\r\n client_modified_time: number;\r\n data: string;\r\n record_key: string;\r\n record_key_type: number;\r\n date_deleted: number;\r\n breach_watch_data?: string;\r\n}\r\nexport interface GetDeletedRecordsResponse extends KeeperResponse {\r\n records: DeletedRecord[];\r\n}\r\nexport declare class PurgeDeletedRecordsCommand extends AuthorizedCommand {\r\n constructor();\r\n}\r\nexport declare class RecordShareUpdateCommand extends AuthorizedCommand<RecordShareUpdateResponse> {\r\n constructor();\r\n pt: string;\r\n add_shares: ShareObject[];\r\n update_shares: ShareObject[];\r\n remove_shares: ShareObject[];\r\n}\r\nexport interface ShareObject {\r\n record_uid: string;\r\n to_username?: string;\r\n record_key?: string;\r\n use_ecc_key?: boolean;\r\n editable?: boolean;\r\n shareable?: boolean;\r\n transfer?: boolean;\r\n shared_folder_uid?: string;\r\n team_uid?: string;\r\n}\r\nexport interface RecordShareUpdateResponse extends KeeperResponse {\r\n add_statuses: ShareStatus[];\r\n update_statuses: ShareStatus[];\r\n remove_statuses: ShareStatus[];\r\n}\r\nexport interface ShareStatus {\r\n record_uid: string;\r\n status: 'success' | 'pending_accept' | 'user_not_found' | 'already_shared' | 'not_allowed_to_share' | 'access_denied' | 'not_allowed_to_set_permission';\r\n message: string;\r\n username: string;\r\n}\r\nexport declare class FolderAddCommand extends AuthorizedCommand<FolderAddResponse> {\r\n constructor();\r\n folder_uid: string;\r\n folder_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n key: string;\r\n parent_uid: string;\r\n shared_folder_uid: string;\r\n name: string;\r\n data: string;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n can_edit: boolean;\r\n can_share: boolean;\r\n link: boolean;\r\n}\r\nexport interface FolderAddResponse extends KeeperResponse {\r\n revision: number;\r\n}\r\nexport declare class SharedFolderUpdateCommand extends AuthorizedCommand<SharedFolderUpdateResponse> {\r\n constructor();\r\n pt: string;\r\n operation: 'add' | 'delete' | 'update';\r\n shared_folder_uid: string;\r\n from_team_uid: string;\r\n name: string;\r\n revision: number;\r\n add_users: UserObject[];\r\n add_teams: TeamObject[];\r\n add_records: RecordObject[];\r\n update_users: UserObject[];\r\n update_teams: TeamObject[];\r\n update_records: RecordObject[];\r\n remove_users: UserObject[];\r\n remove_teams: TeamObject[];\r\n remove_records: RecordObject[];\r\n force_update: boolean;\r\n default_manage_users: boolean;\r\n default_manage_records: boolean;\r\n default_can_edit: boolean;\r\n default_can_share: boolean;\r\n}\r\nexport interface UserObject {\r\n username: string;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n shared_folder_key: string;\r\n}\r\nexport interface TeamObject {\r\n team_uid: string;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n shared_folder_key: string;\r\n}\r\nexport interface RecordObject {\r\n record_uid: string;\r\n shared_folder_uid: string;\r\n team_uid: string;\r\n can_edit: boolean;\r\n can_share_boolean: any;\r\n}\r\nexport interface SharedFolderUpdateResponse extends KeeperResponse {\r\n add_users: SharedFolderUpdateUserStatus[];\r\n update_users: SharedFolderUpdateUserStatus[];\r\n remove_users: SharedFolderUpdateUserStatus[];\r\n add_records: SharedFolderUpdateRecordStatus[];\r\n update_records: SharedFolderUpdateRecordStatus[];\r\n remove_records: SharedFolderUpdateRecordStatus[];\r\n}\r\nexport interface SharedFolderUpdateUserStatus {\r\n username: string;\r\n status: 'success' | 'invited' | 'invalid_user' | 'non_group_member';\r\n}\r\nexport interface SharedFolderUpdateRecordStatus {\r\n username: string;\r\n status: 'success' | 'access_denied';\r\n}\r\nexport declare class MoveCommand extends AuthorizedCommand {\r\n constructor();\r\n to_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n to_uid?: string;\r\n link: boolean;\r\n move: MoveObject[];\r\n transition_keys: TransitionKeyObject[];\r\n}\r\nexport interface MoveObject {\r\n type: 'record' | 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n uid: string;\r\n from_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n from_uid?: string;\r\n can_edit?: boolean;\r\n can_reshare?: boolean;\r\n cascade: boolean;\r\n}\r\nexport interface TransitionKeyObject {\r\n uid: string;\r\n key: string;\r\n}\r\nexport declare class PublicKeysCommand extends AuthorizedCommand<PublicKeysResponse> {\r\n constructor();\r\n key_owners: string[];\r\n}\r\nexport interface PublicKeysResponse extends KeeperResponse {\r\n public_keys: {\r\n key_owner: string;\r\n public_key: string;\r\n result_code?: 'bad_inputs_key_owners' | 'Email_not_valid' | 'Failed_to_find_user' | 'missing_public_key' | 'cross_region_sharing_error';\r\n message: string;\r\n }[];\r\n}\r\nexport declare class GetRecordsCommand extends AuthorizedCommand<GetRecordsResponse> {\r\n constructor();\r\n include: GetRecordsInclude[];\r\n records: GetRecordsRecord[];\r\n client_time: number;\r\n}\r\nexport declare type GetRecordsInclude = 'data' | 'shares';\r\nexport declare type GetRecordsRecord = {\r\n record_uid?: string;\r\n shared_folder_uid?: string;\r\n team_uid?: string;\r\n};\r\nexport interface GetRecordsResponse extends KeeperResponse {\r\n records: RecordData[];\r\n}\r\nexport declare class EditUserCommand extends AuthorizedCommand {\r\n constructor();\r\n email: string;\r\n}\r\nexport declare class ShareAccountCommand extends AuthorizedCommand {\r\n constructor();\r\n to_role_id: number;\r\n transfer_key: string;\r\n}\r\nexport declare class SendKeyVerificationCodeCommand extends KeeperCommand {\r\n constructor();\r\n device_id: string;\r\n email: string;\r\n}\r\nexport declare class SetTwoFactorAuthCommand extends AuthorizedCommand<SetTwoFactorAuthResponse> {\r\n constructor();\r\n version: number;\r\n channel: TwoFactorChannel;\r\n channel_value: string;\r\n device_token_expire_days: number;\r\n}\r\nexport interface SetTwoFactorAuthResponse extends KeeperResponse {\r\n device_token: string;\r\n backup_codes: string[];\r\n dt_scope: string;\r\n}\r\nexport declare class TwoFactorSettingsCommand extends AuthorizedCommand {\r\n constructor();\r\n}\r\nexport declare class GetPushInfoCommand extends AuthorizedCommand<GetPushInfoResponse> {\r\n constructor();\r\n type: 'USER' | 'DNA' | 'CHAT';\r\n}\r\nexport interface GetPushInfoResponse extends KeeperResponse {\r\n urk: string;\r\n}\r\nexport declare class VerifyUserCommand extends KeeperCommand {\r\n constructor();\r\n username: string;\r\n code: string;\r\n requestor: string;\r\n}\r\nexport declare type EnterpriseDataInclude = \"nodes\" | \"users\" | \"roles\" | \"role_enforcements\" | \"role_privileges\" | \"role_users\" | \"managed_nodes\" | \"managed_companies\" | \"licenses\" | \"team_users\" | \"teams\" | \"role_keys\" | \"role_keys2\" | \"queued_teams\" | \"queued_team_users\" | \"bridges\" | \"scims\" | \"email_provision\" | \"sso_services\" | \"user_privileges\";\r\nexport declare type KeyType = \"encrypted_by_data_key\" | \"encrypted_by_public_key\" | \"no_key\";\r\nexport declare class GetEnterpriseDataCommand extends AuthorizedCommand<GetEnterpriseDataResponse> {\r\n constructor();\r\n include: EnterpriseDataInclude[];\r\n}\r\nexport declare type EnterpriseSettingInclude = \"AuditSyncConfig\" | \"AuditSyncContext\" | \"AuditAlertsConfig\" | \"BackupConfig\" | \"AuditReportFilter\" | \"AuditAlertFilter\" | \"AuditAlertContext\" | \"RDControllerConfig\";\r\nexport declare class GetEnterpriseSettingCommand extends AuthorizedCommand<GetEnterpriseSettingsResponse> {\r\n constructor();\r\n include: EnterpriseSettingInclude[];\r\n}\r\nexport interface GetEnterpriseSettingsResponse extends KeeperResponse {\r\n AuditSyncConfig: any[];\r\n AuditSyncContext: any[];\r\n AuditAlertsConfig: any[];\r\n BackupConfig: any[];\r\n AuditReportFilter: any[];\r\n AuditAlertFilter: any[];\r\n AuditAlertContext: any[];\r\n}\r\nexport declare class PutEnterpriseSettingCommand extends AuthorizedCommand {\r\n constructor();\r\n type: EnterpriseSettingInclude;\r\n settings: any;\r\n}\r\nexport declare class EnterpriseUserLockCommand extends AuthorizedCommand {\r\n constructor();\r\n enterprise_user_id: number;\r\n lock: \"locked\" | \"disabled\" | \"unlocked\";\r\n}\r\nexport declare class EnterpriseNodeToManagedCompanyCommand extends AuthorizedCommand {\r\n constructor();\r\n managed_company_id: number;\r\n nodes: Pick<Node, \"encrypted_data\" | \"node_id\" | \"displayName\">[];\r\n roles: Pick<Role, \"encrypted_data\" | \"role_id\" | \"displayName\">[];\r\n users: Pick<User, \"encrypted_data\" | \"enterprise_user_id\" | \"displayName\">[];\r\n}\r\nexport declare class EnterpriseAllocateIdsCommand extends AuthorizedCommand<EnterpriseAllocateIdsResponse> {\r\n constructor();\r\n number_requested: number;\r\n}\r\nexport interface EnterpriseAllocateIdsResponse extends KeeperResponse {\r\n base_id: number;\r\n number_allocated: number;\r\n}\r\nexport declare class NodeAddCommand extends AuthorizedCommand {\r\n constructor(nodeId: number, parentId: number, encryptedData: string);\r\n private node_id;\r\n private parent_id;\r\n private encrypted_data;\r\n}\r\nexport declare class RoleAddCommand extends AuthorizedCommand {\r\n constructor(roleId: number, nodeId: number, encryptedData: string);\r\n private role_id;\r\n private node_id;\r\n private encrypted_data;\r\n visible_below: boolean;\r\n new_user_inherit: boolean;\r\n}\r\nexport declare class TeamAddCommand extends AuthorizedCommand {\r\n constructor(team_uid: string, team_name: string, node_id: number, public_key: string, private_key: string, team_key: string, encrypted_team_key: string);\r\n team_uid: string;\r\n team_name: string;\r\n node_id: number;\r\n public_key: string;\r\n private_key: string;\r\n team_key: string;\r\n encrypted_team_key: string;\r\n restrict_edit: boolean;\r\n restrict_share: boolean;\r\n restrict_view: boolean;\r\n manage_only: boolean;\r\n}\r\nexport declare class EnterpriseUserAddCommand extends AuthorizedCommand<EnterpriseUserAddResponse> {\r\n constructor(enterprise_user_id: number, email: string, nodeId: number, encryptedData: string);\r\n private enterprise_user_id;\r\n private node_id;\r\n private encrypted_data;\r\n private enterprise_user_username;\r\n}\r\nexport interface EnterpriseUserAddResponse extends KeeperResponse {\r\n verification_code: string;\r\n}\r\nexport declare class TeamEnterpriseUserAddCommand extends AuthorizedCommand {\r\n constructor(user_type: number, enterprise_user_id: number, team_uid: string, team_key: string);\r\n private user_type;\r\n private enterprise_user_id;\r\n private team_uid;\r\n private team_key;\r\n}\r\nexport declare class TeamEnterpriseUserRemoveCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id: number, team_uid: string);\r\n private enterprise_user_id;\r\n private team_uid;\r\n}\r\nexport declare class TeamQueueUserCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id: number, team_uid: string);\r\n private enterprise_user_id;\r\n private team_uid;\r\n}\r\nexport declare class EnterpriseRegistrationByMspCommand extends AuthorizedCommand<EnterpriseRegistrationByMspResponse> {\r\n constructor();\r\n root_node: string;\r\n role_data: string;\r\n product_id: string;\r\n enterprise_name: string;\r\n node_id: number;\r\n seats: number;\r\n encrypted_tree_key: string;\r\n}\r\nexport interface EnterpriseRegistrationByMspResponse extends KeeperResponse {\r\n enterprise_id: number;\r\n}\r\nexport declare class SendInviteCommand extends AuthorizedCommand {\r\n constructor();\r\n to_email: string[];\r\n}\r\nexport declare class AcceptEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor();\r\n verification_code: string;\r\n}\r\nexport declare class ResendEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor();\r\n enterprise_user_id: number;\r\n}\r\nexport declare class SsoServiceProviderAddCommand extends AuthorizedCommand {\r\n constructor();\r\n sso_service_provider_id: number;\r\n node_id: number;\r\n sp_data_key: string;\r\n name: string;\r\n invite_new_users: true;\r\n is_cloud: true;\r\n}\r\nexport declare class SsoServiceProviderUpdateCommand extends AuthorizedCommand {\r\n constructor();\r\n sso_service_provider_id: number;\r\n node_id: number;\r\n sp_data_key: string;\r\n name: string;\r\n invite_new_users: true;\r\n is_cloud: true;\r\n}\r\nexport declare class SsoServiceProviderDeleteCommand extends AuthorizedCommand {\r\n constructor();\r\n sso_service_provider_id: number;\r\n}\r\nexport declare class GetAuditEventReportsCommand extends AuthorizedCommand<GetAuditEventReportsResponse> {\r\n constructor();\r\n filter: {\r\n created?: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'month_to_date' | 'last_month' | 'year_to_date' | 'last_year';\r\n audit_event_type?: string[];\r\n };\r\n limit: number;\r\n order: 'descending' | 'ascending';\r\n report_type: 'raw' | 'hour' | 'day' | 'week' | 'month' | 'span';\r\n scope: 'enterprise' | 'user';\r\n timezone: string;\r\n}\r\nexport interface GetAuditEventReportsResponse extends KeeperResponse {\r\n timezone: string;\r\n audit_event_overview_report_rows: AuditEventOverviewReportRow[];\r\n}\r\ninterface AuditEventOverviewReportRow {\r\n geo_location: string;\r\n keeper_version_category: string;\r\n audit_event_type: string;\r\n created: number;\r\n keeper_version: string;\r\n id: number;\r\n ip_address?: string;\r\n username: string;\r\n node_id: number;\r\n node?: string;\r\n role_id?: string;\r\n enforcement?: string;\r\n value?: string;\r\n}\r\nexport interface KeeperHttpResponse {\r\n statusCode: number;\r\n headers: any;\r\n data: Uint8Array;\r\n}\r\nexport interface KeeperResponse {\r\n command: string;\r\n result: string;\r\n result_code: string;\r\n message: string;\r\n}\r\nexport interface SyncLog {\r\n countryCode: string;\r\n ipAddress: string;\r\n deviceUID: string;\r\n countryName: string;\r\n secondsAgo: number;\r\n deviceName: string;\r\n}\r\nexport interface Keys {\r\n data_key_backup_date: number;\r\n encrypted_private_key: string;\r\n encryption_params: string;\r\n encrypted_data_key: string;\r\n}\r\nexport interface License {\r\n breach_watch_date_created: number;\r\n account_type: number;\r\n seconds_until_storage_expiration: number;\r\n storage_expiration_date: string;\r\n breach_watch_enabled: boolean;\r\n breach_watch_scanned: boolean;\r\n chat_enabled: boolean;\r\n product_type_id: number;\r\n bytes_total: number;\r\n expiration_date: string;\r\n breach_watch_expiration: number;\r\n audit_and_reporting_enabled: boolean;\r\n subscription_code: string;\r\n breach_watch_feature_disable: boolean;\r\n max_devices: number;\r\n bytes_used: number;\r\n product_type_name: string;\r\n file_plan_type: number;\r\n seconds_until_expiration: number;\r\n has_auto_renewable_appstore_subscriptions: boolean;\r\n}\r\nexport interface PasswordRule {\r\n rule_type: string;\r\n match: boolean;\r\n pattern: string;\r\n description: string;\r\n minimum: number;\r\n}\r\nexport interface Settings {\r\n security_keys: any[];\r\n rsa_configured: boolean;\r\n audit: boolean;\r\n password_rules: PasswordRule[];\r\n password_rules_intro: string;\r\n channel: string;\r\n theme: string;\r\n master_password_last_modified: number;\r\n}\r\nexport declare enum LoginResponseResultCode {\r\n Success = \"auth_success\",\r\n AuthExpired = \"auth_expired\",\r\n AuthExpiredTransfer = \"auth_expired_transfer\",\r\n AuthFailed = \"auth_failed\",\r\n RegionRedirect = \"region_redirect\",\r\n NeedTOTP = \"need_totp\",\r\n InvalidTOTP = \"invalid_totp\",\r\n InvalidDeviceToken = \"invalid_device_token\",\r\n InvalidBackupCode = \"invalid_backup_code\",\r\n FailedSending = \"failed_sending\",\r\n NotEnrolled = \"not_enrolled\",\r\n Throttled = \"throttled\",\r\n AccountLocked = \"account_locked\",\r\n NotAuthorized = \"not_authorized\",\r\n VersionIncompatible = \"version_incompatible\",\r\n IPAddressNotAllowed = \"ip_address_not_allowed\",\r\n RestrictedClientType = \"restricted_client_type\"\r\n}\r\ndeclare type TwoFactorChannel = \"two_factor_disabled\" | \"two_factor_channel_sms\" | \"two_factor_channel_voice\" | \"two_factor_channel_email\" | \"two_factor_channel_google\" | \"two_factor_channel_rsa\" | \"two_factor_channel_push\" | \"two_factor_channel_duo\" | \"two_factor_channel_u2f\" | \"two_factor_channel_security_keys\";\r\nexport interface LoginResponse extends KeeperResponse {\r\n session_token: string;\r\n client_key: string;\r\n settings: Settings;\r\n is_enterprise_admin: boolean;\r\n license: License;\r\n result_code: LoginResponseResultCode;\r\n region_host?: string;\r\n keys: Keys;\r\n sync_log: SyncLog[];\r\n enforcements: any;\r\n capabilities: string[];\r\n phone: string;\r\n channel: TwoFactorChannel;\r\n url: string;\r\n u2f_challenge?: string | U2FChallenge;\r\n}\r\nexport interface U2FChallenge {\r\n authenticateRequests: AuthenticateRequest[];\r\n}\r\nexport interface AuthenticateRequest {\r\n challenge: string;\r\n appId: string;\r\n keyHandle: string;\r\n version: string;\r\n}\r\nexport interface SharedFolder {\r\n default_can_edit: boolean;\r\n full_sync: boolean;\r\n name: string;\r\n data: string;\r\n key_type: number;\r\n records: SharedFolderRecord[];\r\n default_can_share: boolean;\r\n default_manage_records: boolean;\r\n default_manage_users: boolean;\r\n shared_folder_uid: string;\r\n revision: number;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n shared_folder_key: string;\r\n}\r\nexport interface SharedFolderRecord {\r\n record_uid: string;\r\n record_key: string;\r\n can_share: boolean;\r\n can_edit: boolean;\r\n}\r\nexport interface Team {\r\n restrict_edit: boolean;\r\n team_private_key: string;\r\n name: string;\r\n team_key_type: number;\r\n restrict_view: boolean;\r\n team_key: string;\r\n shared_folder_keys: TeamSharedFolderKey[];\r\n team_uid: string;\r\n restrict_share: boolean;\r\n}\r\nexport interface TeamSharedFolderKey {\r\n key_type: number;\r\n shared_folder_key: string;\r\n shared_folder_uid: string;\r\n}\r\nexport interface RecordData {\r\n record_uid: string;\r\n version: number;\r\n revision?: number;\r\n client_modified_time?: number;\r\n data?: string;\r\n extra?: string;\r\n udata?: {\r\n file_ids: string[];\r\n };\r\n shared?: boolean;\r\n user_permissions?: UserPermission[];\r\n owner_uid?: string;\r\n link_key?: string;\r\n}\r\nexport interface UserPermission {\r\n owner: boolean;\r\n shareable: boolean;\r\n editable: boolean;\r\n awaiting_approval: boolean;\r\n username: string;\r\n}\r\nexport interface RecordMetaData {\r\n record_uid: string;\r\n owner: boolean;\r\n record_key: string;\r\n can_share: boolean;\r\n can_edit: boolean;\r\n record_key_type: number;\r\n}\r\nexport interface NonSharedData {\r\n record_uid: string;\r\n data: string;\r\n}\r\nexport interface SyncResponse extends KeeperResponse {\r\n full_sync: boolean;\r\n non_shared_data: NonSharedData[];\r\n records: RecordData[];\r\n record_meta_data: RecordMetaData[];\r\n removed_records: string[];\r\n result_code: string;\r\n revision: number;\r\n shared_folders: SharedFolder[];\r\n shared_folder_folder_records: {\r\n record_uid: string;\r\n folder_uid: string;\r\n shared_folder_uid: string;\r\n revision: number;\r\n }[];\r\n teams: Team[];\r\n user_folder_shared_folders: {\r\n shared_folder_uid: string;\r\n revision: number;\r\n }[];\r\n}\r\nexport interface GetEnterpriseDataResponse extends KeeperResponse {\r\n enterprise_name: string;\r\n tree_key: string;\r\n key_type_id: number;\r\n nodes: Node[];\r\n roles: Role[];\r\n users: User[];\r\n teams: CompanyTeam[];\r\n team_users: TeamUser[];\r\n role_users: RoleUser[];\r\n managed_nodes: ManagedNode[];\r\n role_privileges: RolePrivilege[];\r\n user_privileges: UserPrivileges;\r\n role_enforcements: RoleEnforcement[];\r\n licenses: EnterpriseLicense[];\r\n role_keys: RoleKey[];\r\n role_keys2: RoleKeys2[];\r\n sso_services: SsoService[];\r\n queued_team_users: QueuedTeamUser[];\r\n bridges: Bridge[];\r\n scims?: SCIM[];\r\n email_provision?: EmailProvision[];\r\n msp_key?: MSPKey;\r\n managed_companies?: ManagedCompany[];\r\n}\r\nexport interface UserPrivileges {\r\n enterprise_user_id: number;\r\n managed_nodes: ManagedNode[];\r\n encrypted_data: string;\r\n}\r\nexport interface ManagedNode {\r\n node: number;\r\n privileges: string[];\r\n cascade_management: boolean;\r\n role_id: number;\r\n cascade_node_management: boolean;\r\n managed_node_id: number;\r\n}\r\nexport interface User {\r\n displayName?: string;\r\n key_type: KeyType;\r\n user_id?: number;\r\n lock: number;\r\n enterprise_user_id: number;\r\n node_id: number;\r\n encrypted_data: string;\r\n username: string;\r\n status: \"active\" | \"invited\";\r\n account_share_expiration?: number;\r\n roles?: Role[];\r\n teams?: CompanyTeam[];\r\n}\r\nexport interface Role {\r\n displayName?: string;\r\n visible_below: boolean;\r\n new_user_inherit: boolean;\r\n role_id: number;\r\n node_id: number;\r\n encrypted_data: string;\r\n key_type: KeyType;\r\n role_type: \"pool_manager\" | undefined;\r\n}\r\nexport interface Node {\r\n rsa_enabled: boolean;\r\n duo_enabled: boolean;\r\n license_id: number;\r\n node_id: number;\r\n encrypted_data: string;\r\n parent_id?: number;\r\n sso_service_provider_id?: number;\r\n scim_id?: number;\r\n displayName?: string;\r\n nodes?: Node[];\r\n roles?: Role[];\r\n teams?: CompanyTeam[];\r\n users?: User[];\r\n}\r\nexport interface ManagedCompany {\r\n mc_enterprise_name: string;\r\n mc_enterprise_id: number;\r\n msp_node_id: number;\r\n tree_key: string;\r\n product_id: string;\r\n number_of_users: number;\r\n number_of_seats: number;\r\n paused: boolean;\r\n}\r\nexport interface RolePrivilege {\r\n role_id: number;\r\n managed_node_id: number;\r\n privilege: string;\r\n}\r\nexport interface RoleEnforcement {\r\n enforcements: Enforcements;\r\n role_id: number;\r\n}\r\nexport interface Enforcements {\r\n restrict_two_factor_channel_dna?: boolean;\r\n master_password_minimum_lower?: number;\r\n master_password_minimum_upper?: number;\r\n restrict_android_fingerprint?: boolean;\r\n restrict_two_factor_channel_text?: boolean;\r\n require_account_share?: number;\r\n master_password_minimum_length: number;\r\n master_password_minimum_special?: number;\r\n master_password_minimum_digits?: number;\r\n}\r\nexport interface RoleUser {\r\n role_id: number;\r\n enterprise_user_id: number;\r\n}\r\nexport interface RoleKey {\r\n key_type: KeyType;\r\n role_id: number;\r\n encrypted_key: string;\r\n}\r\nexport interface EnterpriseLicense {\r\n file_plan: number;\r\n storage_expiration_date: string;\r\n product_type_id: number;\r\n license_key_id: number;\r\n tier: number;\r\n lic_status: 'business' | 'business_trial' | 'enterprise' | 'msp' | 'msp_trial' | 'mc_business' | 'mc_business_plus' | 'mc_enterprise' | 'mc_enterprise_plus';\r\n paid: boolean;\r\n name: string;\r\n seats_pending: number;\r\n max_gb: number;\r\n add_ons: AddOn[];\r\n expiration: string;\r\n seats_allocated: number;\r\n number_of_seats: number;\r\n enterprise_license_id: number;\r\n msp_pool?: MSPProductLicense[];\r\n}\r\nexport interface MSPProductLicense {\r\n product_id: \"business\" | \"businessPlus\" | \"enterprise\" | \"enterprisePlus\";\r\n seats: number;\r\n availableSeats: number;\r\n}\r\nexport interface AddOn {\r\n chat_isTrial?: boolean;\r\n chat_enabled?: boolean;\r\n chat_expiration?: number;\r\n chat_created?: number;\r\n enterprise_audit_and_reporting_isTrial?: boolean;\r\n enterprise_audit_and_reporting_expiration?: number;\r\n enterprise_audit_and_reporting_created?: number;\r\n enterprise_audit_and_reporting_enabled?: boolean;\r\n onboarding_and_certificate_isTrial?: boolean;\r\n onboarding_and_certificate_created?: number;\r\n onboarding_and_certificate_expiration?: number;\r\n onboarding_and_certificate_enabled?: boolean;\r\n}\r\nexport interface TeamUser {\r\n user_type: number;\r\n enterprise_user_id: number;\r\n team_uid: string;\r\n}\r\nexport interface CompanyTeam {\r\n restrict_sharing: boolean;\r\n restrict_edit: boolean;\r\n name: string;\r\n encrypted_team_key: string;\r\n restrict_view: boolean;\r\n team_uid: string;\r\n node_id: number;\r\n encrypted_data?: string;\r\n}\r\nexport interface Bridge {\r\n bridge_id: number;\r\n node_id: number;\r\n status: string;\r\n}\r\nexport interface SCIM {\r\n scim_id: number;\r\n node_id: number;\r\n status: string;\r\n last_synced: number;\r\n}\r\nexport interface EmailProvision {\r\n id: number;\r\n node_id: number;\r\n domain: string;\r\n method: string;\r\n}\r\nexport interface QueuedTeamUser {\r\n team_uid: string;\r\n users: number[];\r\n}\r\nexport interface SsoService {\r\n invite_new_users: boolean;\r\n sso_service_provider_id: number;\r\n name: string;\r\n sp_url: string;\r\n active: boolean;\r\n node_id: number;\r\n}\r\nexport interface RoleKeys2 {\r\n role_id: number;\r\n role_key: string;\r\n}\r\nexport interface MSPKey {\r\n encrypted_msp_tree_key: string;\r\n encrypted_msp_tree_key_type: KeyType;\r\n}\r\nexport {};\r\n"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"code":"import { __awaiter } from \"tslib\";\r\nimport { DeviceVerificationMethods } from './configuration';\r\nimport { KeeperEndpoint } from \"./endpoint\";\r\nimport { platform } from \"./platform\";\r\nimport { AuthorizedCommand, LoginCommand, LoginResponseResultCode } from \"./commands\";\r\nimport { chooseErrorMessage, decryptFromStorage, generateEncryptionKey, wrapPassword, generateUidBytes, isTwoFactorResultCode, normal64, normal64Bytes, resolvablePromise, webSafe64, webSafe64FromBytes } from \"./utils\";\r\nimport { accountSummaryMessage, getEnterprisePublicKeyMessage, logoutV3Message, requestCreateUserMessage, requestDeviceAdminApprovalMessage, requestDeviceVerificationMessage, ssoServiceProviderRequestMessage, startLoginMessage, startLoginMessageFromSessionToken, twoFactorSend2FAPushMessage, twoFactorValidateMessage, validateAuthHashMessage, validateDeviceVerificationCodeMessage } from './restMessages';\r\nimport { Authentication } from './proto';\r\nvar TwoFactorExpiration = Authentication.TwoFactorExpiration;\r\nvar TwoFactorPushType = Authentication.TwoFactorPushType;\r\nvar TwoFactorChannelType = Authentication.TwoFactorChannelType;\r\nvar LoginType = Authentication.LoginType;\r\nvar LoginMethod = Authentication.LoginMethod;\r\nfunction unifyLoginError(e) {\r\n if (e instanceof Error) {\r\n try {\r\n return JSON.parse(e.message);\r\n }\r\n catch (jsonError) {\r\n return {\r\n error: \"unknown\",\r\n message: e.message\r\n };\r\n }\r\n }\r\n else {\r\n return {\r\n error: e.result_code,\r\n message: e.result_code\r\n };\r\n }\r\n}\r\nvar CloseReasonCode;\r\n(function (CloseReasonCode) {\r\n CloseReasonCode[CloseReasonCode[\"CANNOT_ACCEPT\"] = 1003] = \"CANNOT_ACCEPT\";\r\n CloseReasonCode[CloseReasonCode[\"NOT_CONSISTENT\"] = 1007] = \"NOT_CONSISTENT\";\r\n CloseReasonCode[CloseReasonCode[\"VIOLATED_POLICY\"] = 1008] = \"VIOLATED_POLICY\";\r\n CloseReasonCode[CloseReasonCode[\"TRY_AGAIN_LATER\"] = 1013] = \"TRY_AGAIN_LATER\";\r\n})(CloseReasonCode || (CloseReasonCode = {}));\r\nexport class SocketListener {\r\n constructor(url, messageSessionUid, getConnectionRequest) {\r\n console.log('Connecting to ' + url);\r\n this.url = url;\r\n this.closeListeners = [];\r\n this.singleCloseListeners = [];\r\n this.messageListeners = [];\r\n this.singleMessageListeners = [];\r\n this.onOpenListeners = [];\r\n this.currentBackoffSeconds = SocketListener.getBaseReconnectionInterval();\r\n this.isClosedByClient = false;\r\n this.isConnected = false;\r\n if (getConnectionRequest)\r\n this.getConnectionRequest = getConnectionRequest;\r\n if (messageSessionUid) {\r\n this.messageSessionUid = messageSessionUid;\r\n this.createWebsocket(this.messageSessionUid);\r\n }\r\n else {\r\n this.createWebsocket();\r\n }\r\n }\r\n createWebsocket(messageSessionUid) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (this.getConnectionRequest && messageSessionUid) {\r\n const connectionRequest = yield this.getConnectionRequest(messageSessionUid);\r\n this.socket = platform.createWebsocket(`${this.url}/${connectionRequest}`);\r\n }\r\n else {\r\n this.socket = platform.createWebsocket(this.url);\r\n }\r\n this.socket.onOpen(() => {\r\n console.log('socket opened');\r\n clearTimeout(this.reconnectTimeout);\r\n this.currentBackoffSeconds = SocketListener.getBaseReconnectionInterval();\r\n this.handleOnOpen();\r\n });\r\n this.socket.onClose((event) => __awaiter(this, void 0, void 0, function* () {\r\n console.log('socket closed because: ', event);\r\n let reason;\r\n this.isConnected = false;\r\n try {\r\n reason = JSON.parse(event.reason);\r\n }\r\n catch (error) {\r\n console.log('No close reason. Error message is: ', error);\r\n if (!this.isClosedByClient) {\r\n this.reconnect();\r\n }\r\n return;\r\n }\r\n switch (event.code) {\r\n case CloseReasonCode.CANNOT_ACCEPT:\r\n // Exact messages that can come from CANNOT_ACCEPT:\r\n // - Push server is in progress of shutting down\r\n // - Push server is not registered with KA\r\n // - Cannot process encrypted message.xxxx\r\n if (reason && reason.close_reason.includes('Push server')) {\r\n // Tell User to try again\r\n this.handleClose({ code: event.code, reason });\r\n }\r\n else {\r\n // this would be an internal error and shouldnt reach here in production\r\n console.error('Incorrect internal error: ', reason.close_reason);\r\n }\r\n break;\r\n case CloseReasonCode.NOT_CONSISTENT:\r\n // Error Message: device timestamp: {time} is off by {off_time}\r\n //Tell User to adjust their system clock\r\n this.handleClose({ code: event.code, reason });\r\n break;\r\n case CloseReasonCode.VIOLATED_POLICY:\r\n // Error Message: duplicate messageSessionUid=${messageSessionUid}\r\n // Relogin if this happens\r\n this.handleClose({ code: event.code, reason });\r\n break;\r\n case CloseReasonCode.TRY_AGAIN_LATER:\r\n // Error Message: throttled messageSessionUid=${messageSessionUid}\r\n //Tell User to try again in 1 minute\r\n this.handleClose({ code: event.code, reason });\r\n break;\r\n default:\r\n if (!this.isClosedByClient) {\r\n this.reconnect();\r\n }\r\n }\r\n }));\r\n this.socket.onError((e) => {\r\n console.log('socket error: ' + e);\r\n });\r\n this.socket.onMessage(e => {\r\n this.handleMessage(e);\r\n });\r\n this.isConnected = true;\r\n });\r\n }\r\n registerLogin(sessionToken) {\r\n if (!this.socket)\r\n throw new Error('Socket not available');\r\n this.socket.send(sessionToken);\r\n }\r\n onOpen(callback) {\r\n this.onOpenListeners.push(callback);\r\n }\r\n onClose(callback) {\r\n if (!this.socket)\r\n throw new Error('Socket not available');\r\n this.socket.onClose(callback);\r\n }\r\n onError(callback) {\r\n if (!this.socket)\r\n throw new Error('Socket not available');\r\n this.socket.onError(callback);\r\n }\r\n handleOnOpen() {\r\n for (let callback of this.onOpenListeners) {\r\n callback();\r\n }\r\n }\r\n handleMessage(messageData) {\r\n for (let callback of this.messageListeners) {\r\n callback(messageData);\r\n }\r\n for (let { resolve } of this.singleMessageListeners) {\r\n resolve(messageData);\r\n }\r\n this.singleMessageListeners.length = 0;\r\n }\r\n handleClose(messageData) {\r\n for (let callback of this.closeListeners) {\r\n callback(messageData);\r\n }\r\n for (let { resolve } of this.singleCloseListeners) {\r\n resolve(messageData);\r\n }\r\n this.singleCloseListeners.length = 0;\r\n }\r\n onPushMessage(callback) {\r\n this.messageListeners.push(callback);\r\n }\r\n onCloseMessage(callback) {\r\n this.closeListeners.push(callback);\r\n }\r\n getPushMessage() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n console.log('Awaiting web socket message...');\r\n return new Promise((resolve, reject) => {\r\n this.singleMessageListeners.push({ resolve, reject });\r\n });\r\n });\r\n }\r\n static getBaseReconnectionInterval() {\r\n return Math.random() * 5;\r\n }\r\n reconnect() {\r\n console.log(`Reconnecting websocket in ${this.currentBackoffSeconds.toFixed(2)} seconds...`);\r\n // schedule next reconnect attempt\r\n clearTimeout(this.reconnectTimeout);\r\n this.reconnectTimeout = setTimeout(() => {\r\n this.createWebsocket(this.messageSessionUid);\r\n }, this.currentBackoffSeconds * 1000);\r\n this.currentBackoffSeconds = Math.min(this.currentBackoffSeconds * 2, 60); // Cap at 1 min, as suggested by docs\r\n }\r\n disconnect() {\r\n this.isClosedByClient = true;\r\n this.socket = null;\r\n this.messageListeners.length = 0;\r\n this.currentBackoffSeconds = Math.random() * 5;\r\n clearTimeout(this.reconnectTimeout);\r\n this.singleMessageListeners.length = 0;\r\n }\r\n getIsConnected() {\r\n return this.isConnected;\r\n }\r\n}\r\nexport function socketSendMessage(message, socket, createdSocket) {\r\n switch (socket.readyState) {\r\n case 0: // CONNECTING\r\n if (createdSocket.messageQueue.indexOf(message) === -1)\r\n createdSocket.messageQueue.push(message);\r\n break;\r\n case 1: // OPEN\r\n if (createdSocket.messageQueue.indexOf(message) === -1)\r\n createdSocket.messageQueue.push(message);\r\n if (createdSocket.messageQueue.length > 0) {\r\n for (let counter = 0; counter < createdSocket.messageQueue.length; counter++) {\r\n socket.send(createdSocket.messageQueue[counter]);\r\n }\r\n }\r\n createdSocket.messageQueue.length = 0;\r\n break;\r\n case 2: // CLOSING\r\n case 3: // CLOSED\r\n createdSocket.messageQueue.length = 0;\r\n console.error('Trying to send a message while in the CLOSING or CLOSED state');\r\n break;\r\n }\r\n}\r\nexport var UserType;\r\n(function (UserType) {\r\n UserType[\"normal\"] = \"normal\";\r\n UserType[\"onsiteSso\"] = \"onsite_sso\";\r\n UserType[\"cloudSso\"] = \"cloud_sso\";\r\n})(UserType || (UserType = {}));\r\nexport class Auth {\r\n constructor(options) {\r\n this.ssoLogoutUrl = '';\r\n this.userType = UserType.normal;\r\n this.ssoSessionId = '';\r\n this._sessionToken = '';\r\n this._username = '';\r\n if (options.deviceConfig && options.deviceToken) {\r\n throw new Error('Both loginV2 and loginV3 token strategies supplied');\r\n }\r\n this.options = options;\r\n if (!this.options.deviceConfig) {\r\n this.options.deviceConfig = {\r\n deviceName: null,\r\n deviceToken: null,\r\n privateKey: null,\r\n publicKey: null,\r\n transmissionKeyId: null,\r\n };\r\n }\r\n if (!this.options.sessionStorage) {\r\n this.options.sessionStorage = {\r\n lastUsername: null,\r\n getCloneCode: () => null,\r\n saveCloneCode: () => new Promise((res, rej) => { }),\r\n getSessionParameters: () => Promise.resolve(null),\r\n saveSessionParameters: () => Promise.resolve()\r\n };\r\n }\r\n this.endpoint = new KeeperEndpoint(this.options);\r\n this.endpoint.clientVersion = this.options.clientVersion || \"c14.0.0\";\r\n this.messageSessionUid = generateUidBytes();\r\n }\r\n get _endpoint() {\r\n return this.endpoint;\r\n }\r\n get accountUid() {\r\n return this._accountUid;\r\n }\r\n get clientVersion() {\r\n return this.endpoint.clientVersion;\r\n }\r\n get sessionToken() {\r\n return this._sessionToken;\r\n }\r\n get sessionTokenType() {\r\n return this._sessionTokenType;\r\n }\r\n get username() {\r\n return this._username;\r\n }\r\n getMessageSessionUid() {\r\n return this.messageSessionUid;\r\n }\r\n idpLogout() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (this.userType == UserType.cloudSso) {\r\n const payload = yield this.endpoint.prepareSsoPayload(this.messageSessionUid, this.username, this.ssoSessionId);\r\n const params = new URLSearchParams({\r\n 'payload': payload,\r\n });\r\n const url = `${this.ssoLogoutUrl}?${String(params)}`;\r\n try {\r\n yield this.options.authUI3.idpLogout(url);\r\n }\r\n catch (e) {\r\n console.log('Logout errored out: ' + e);\r\n }\r\n }\r\n else if (this.userType == UserType.onsiteSso) {\r\n const params = new URLSearchParams({\r\n 'embedded': 'true',\r\n 'username': this.username,\r\n 'session_id': this.ssoSessionId,\r\n 'dest': 'vault'\r\n });\r\n const url = `${this.ssoLogoutUrl}?${String(params)}`;\r\n try {\r\n yield this.options.authUI3.idpLogout(url);\r\n }\r\n catch (e) {\r\n console.log('Logout errored out: ' + e);\r\n }\r\n }\r\n });\r\n }\r\n logout() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n yield this.executeRest(logoutV3Message());\r\n yield this.idpLogout();\r\n });\r\n }\r\n connect() {\r\n // When connecting to govcloud, remove the govcloud subdomain. There is no list of urls that do/don't require the govcloud subdomain, so for now do this.\r\n const url = `wss://push.services.${this.options.host.replace('govcloud.', '')}/wss_open_connection`;\r\n const getConnectionRequest = (messageSessionUid) => this.endpoint.getPushConnectionRequest(messageSessionUid);\r\n this.socket = new SocketListener(url, this.messageSessionUid, getConnectionRequest);\r\n console.log(\"Socket connected\");\r\n this.onCloseMessage((closeReason) => {\r\n if (this.options.onCommandFailure) {\r\n this.options.onCommandFailure({\r\n result_code: closeReason.code.toString(),\r\n message: closeReason.reason.close_reason\r\n });\r\n }\r\n });\r\n }\r\n disconnect() {\r\n if (this.socket) {\r\n this.socket.disconnect();\r\n delete this.socket;\r\n }\r\n }\r\n /**\r\n * useAlternate is to pass to the next function to use an alternate method, for testing a different path.\r\n */\r\n loginV3({ username = '', password = null, loginToken = null, loginType = Authentication.LoginType.NORMAL, loginMethod = Authentication.LoginMethod.EXISTING_ACCOUNT, v2TwoFactorToken = null, resumeSessionOnly = false, givenSessionToken = null, }) {\r\n var _a, _b;\r\n return __awaiter(this, void 0, void 0, function* () {\r\n this._username = username || this.options.sessionStorage.lastUsername;\r\n let wrappedPassword;\r\n if (password) {\r\n if (typeof password === 'string') {\r\n wrappedPassword = wrapPassword(password);\r\n }\r\n else\r\n wrappedPassword = password;\r\n }\r\n let needUserName;\r\n let isAlternate = false;\r\n const handleError = (resultCode, loginResponse, error) => {\r\n const errorMessage = chooseErrorMessage(loginResponse.loginState);\r\n if (this.options.onCommandFailure) {\r\n this.options.onCommandFailure({\r\n result_code: resultCode,\r\n message: errorMessage,\r\n error: error.message,\r\n });\r\n }\r\n else {\r\n throw error;\r\n }\r\n };\r\n while (true) {\r\n if (!this.options.deviceConfig.deviceToken) {\r\n yield this.endpoint.registerDevice();\r\n }\r\n if (!this.socket || !this.socket.getIsConnected()) {\r\n this.connect();\r\n }\r\n const startLoginRequest = {\r\n clientVersion: this.endpoint.clientVersion,\r\n encryptedDeviceToken: (_a = this.options.deviceConfig.deviceToken) !== null && _a !== void 0 ? _a : null,\r\n messageSessionUid: this.messageSessionUid,\r\n loginMethod: loginMethod,\r\n cloneCode: yield this.options.sessionStorage.getCloneCode(this.options.host, this._username),\r\n v2TwoFactorToken: v2TwoFactorToken\r\n };\r\n if (loginType !== LoginType.NORMAL && !!loginType) {\r\n startLoginRequest.loginType = loginType;\r\n loginType = undefined;\r\n if (startLoginRequest.loginType == LoginType.ALTERNATE) {\r\n isAlternate = true;\r\n }\r\n }\r\n if (loginToken) {\r\n startLoginRequest.encryptedLoginToken = loginToken;\r\n }\r\n if (needUserName || !this.options.useSessionResumption || isAlternate) {\r\n startLoginRequest.username = this._username;\r\n needUserName = false;\r\n }\r\n var loginResponse;\r\n if (givenSessionToken) {\r\n this._sessionToken = givenSessionToken;\r\n try {\r\n loginResponse = yield this.executeRest(startLoginMessageFromSessionToken(startLoginRequest));\r\n }\r\n catch (e) {\r\n if (this.options.onCommandFailure) {\r\n this.options.onCommandFailure({\r\n result_code: 'failed_login_from_existing_session_token',\r\n message: e.message,\r\n });\r\n }\r\n }\r\n }\r\n else {\r\n loginResponse = yield this.executeRest(startLoginMessage(startLoginRequest));\r\n }\r\n if (loginResponse.cloneCode && loginResponse.cloneCode.length > 0) {\r\n this.options.sessionStorage.saveCloneCode(this.options.host, this._username, loginResponse.cloneCode);\r\n }\r\n if (resumeSessionOnly && loginResponse && (loginResponse.loginState != Authentication.LoginState.LOGGED_IN)) {\r\n return {\r\n result: 'notLoggedin'\r\n };\r\n }\r\n console.log(loginResponse);\r\n console.log(\"login state =\", loginResponse.loginState);\r\n switch (loginResponse.loginState) {\r\n case Authentication.LoginState.ACCOUNT_LOCKED:\r\n case Authentication.LoginState.INVALID_LOGINSTATE:\r\n case Authentication.LoginState.LOGGED_OUT:\r\n case Authentication.LoginState.AFTER_CLOUD_SSO_LOGIN:\r\n case Authentication.LoginState.LOGIN_TOKEN_EXPIRED:\r\n case Authentication.LoginState.DEVICE_ACCOUNT_LOCKED:\r\n case Authentication.LoginState.DEVICE_LOCKED:\r\n handleError('generic_error', loginResponse, new Error(`Unable to login, login state = ${loginResponse.loginState}`));\r\n return;\r\n case Authentication.LoginState.REQUIRES_ACCOUNT_CREATION:\r\n if (this.userType === UserType.cloudSso) {\r\n yield this.createSsoUser(loginResponse.encryptedLoginToken);\r\n }\r\n else {\r\n yield this.createUser(this._username, wrappedPassword);\r\n }\r\n break;\r\n case Authentication.LoginState.UPGRADE:\r\n handleError('generic_error', loginResponse, new Error(`Unable to login, login state = ${loginResponse.loginState}`));\r\n return;\r\n case Authentication.LoginState.REQUIRES_USERNAME:\r\n if (!this._username) {\r\n handleError('generic_error', loginResponse, new Error(`No username supplied, login state = ${loginResponse.loginState}`));\r\n return;\r\n }\r\n needUserName = true;\r\n break;\r\n case Authentication.LoginState.DEVICE_APPROVAL_REQUIRED:\r\n case Authentication.LoginState.REQUIRES_DEVICE_ENCRYPTED_DATA_KEY:\r\n if (!loginResponse.encryptedLoginToken) {\r\n throw new Error('Login token missing from API response');\r\n }\r\n if (givenSessionToken)\r\n return { result: 'notLoggedin' };\r\n try {\r\n loginToken = yield this.verifyDevice(username, loginResponse.encryptedLoginToken, loginResponse.loginState == Authentication.LoginState.REQUIRES_DEVICE_ENCRYPTED_DATA_KEY);\r\n }\r\n catch (e) {\r\n handleError('auth_failed', loginResponse, e);\r\n return;\r\n }\r\n break;\r\n case Authentication.LoginState.LICENSE_EXPIRED:\r\n handleError('license_expired', loginResponse, new Error(loginResponse.message));\r\n return;\r\n case Authentication.LoginState.REGION_REDIRECT:\r\n // TODO: put region_redirect in its own loop since\r\n // its unique to the other states.\r\n this.options.host = loginResponse.stateSpecificValue;\r\n loginToken = undefined;\r\n if (this.options.onRegionChanged) {\r\n this.options.onRegionChanged(loginResponse.stateSpecificValue);\r\n }\r\n // Current socket no longer pointing to the right region\r\n this.disconnect();\r\n break;\r\n case Authentication.LoginState.REDIRECT_CLOUD_SSO:\r\n console.log(\"Cloud SSO Connect login\");\r\n if (!loginResponse.url) {\r\n throw new Error('URL missing from API response');\r\n }\r\n this.ssoLogoutUrl = loginResponse.url.replace('login', 'logout');\r\n this.userType = UserType.cloudSso;\r\n let payload = yield this._endpoint.prepareSsoPayload(this.messageSessionUid);\r\n let cloudSsoLoginUrl = loginResponse.url + \"?payload=\" + payload;\r\n if (this.options.authUI3.redirectCallback) {\r\n this.options.authUI3.redirectCallback(cloudSsoLoginUrl);\r\n return;\r\n }\r\n else if (this.options.authUI3.ssoLogin) {\r\n const token = yield this.options.authUI3.ssoLogin(cloudSsoLoginUrl);\r\n const cloudResp = yield this.endpoint.decryptCloudSsoResponse(token);\r\n console.log(cloudResp);\r\n this._username = cloudResp.email;\r\n loginToken = cloudResp.encryptedLoginToken;\r\n break;\r\n }\r\n case Authentication.LoginState.REDIRECT_ONSITE_SSO:\r\n console.log(\"SSO Connect login\");\r\n if (!loginResponse.url) {\r\n throw new Error('URL missing from API response');\r\n }\r\n this.ssoLogoutUrl = loginResponse.url.replace('login', 'logout');\r\n this.userType = UserType.onsiteSso;\r\n let onsitePublicKey = yield this._endpoint.getOnsitePublicKey();\r\n let onsiteSsoLoginUrl = loginResponse.url + '?embedded&key=' + onsitePublicKey;\r\n if (this.options.authUI3.redirectCallback) {\r\n this.options.authUI3.redirectCallback(onsiteSsoLoginUrl);\r\n return;\r\n }\r\n else if (this.options.authUI3.ssoLogin) {\r\n const onsiteResp = yield this.options.authUI3.ssoLogin(onsiteSsoLoginUrl);\r\n console.log(onsiteResp);\r\n this._username = onsiteResp.email;\r\n wrappedPassword = wrapPassword(onsiteResp.password);\r\n loginType = LoginType.SSO;\r\n loginMethod = LoginMethod.AFTER_SSO;\r\n break;\r\n }\r\n case Authentication.LoginState.REQUIRES_2FA:\r\n try {\r\n loginToken = yield this.handleTwoFactor(loginResponse);\r\n }\r\n catch (e) {\r\n if ((e === null || e === void 0 ? void 0 : e.message) && e.message == 'push_declined') {\r\n handleError(e.message, loginResponse, e);\r\n }\r\n }\r\n break;\r\n case Authentication.LoginState.REQUIRES_AUTH_HASH:\r\n // TODO: loop in authHashLogin until successful or get into\r\n // some other state other than Authentication.LoginState.REQUIRES_AUTH_HASH\r\n if (!wrappedPassword && ((_b = this.options.authUI3) === null || _b === void 0 ? void 0 : _b.getPassword)) {\r\n password = yield this.options.authUI3.getPassword();\r\n if (password) {\r\n if (typeof password === 'string') {\r\n wrappedPassword = wrapPassword(password);\r\n }\r\n else\r\n wrappedPassword = password;\r\n }\r\n }\r\n if (!wrappedPassword) {\r\n throw new Error('User password required and not provided');\r\n }\r\n try {\r\n yield this.authHashLogin(loginResponse, username, wrappedPassword, isAlternate);\r\n return;\r\n }\r\n catch (e) {\r\n wrappedPassword = null;\r\n handleError('auth_failed', loginResponse, e);\r\n break;\r\n }\r\n case Authentication.LoginState.LOGGED_IN:\r\n try {\r\n yield this.loginSuccess(loginResponse, null);\r\n console.log(\"Exiting on loginState = LOGGED_IN\");\r\n return;\r\n }\r\n catch (e) {\r\n console.log('Error in Authentication.LoginState.LOGGED_IN: ', e);\r\n return;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n /**\r\n * The MV3 browser extension runs in a service worker that shuts down every 5 minutes.\r\n * This rehydrates the Auth class and re-opens our socket with the session parameters.\r\n */\r\n continueSession() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (!this.options.sessionStorage) {\r\n throw new Error('Missing configuration option to get session parameters');\r\n }\r\n const sessionParams = yield this.options.sessionStorage.getSessionParameters();\r\n if (!sessionParams) {\r\n throw new Error('No session to resume');\r\n }\r\n this.messageSessionUid = sessionParams.messageSessionUid;\r\n this._username = sessionParams.username;\r\n this.dataKey = sessionParams.dataKey;\r\n this.clientKey = sessionParams.clientKey;\r\n this.privateKey = sessionParams.privateKey;\r\n this.eccPrivateKey = sessionParams.eccPrivateKey;\r\n this.eccPublicKey = sessionParams.eccPublicKey;\r\n this.enterpriseEccPublicKey = sessionParams.enterpriseEccPublicKey;\r\n this.ssoLogoutUrl = sessionParams.ssoLogoutUrl;\r\n this.ssoSessionId = sessionParams.ssoSessionId;\r\n this.userType = sessionParams.userType;\r\n if (!this.socket || !this.socket.getIsConnected()) {\r\n this.connect();\r\n }\r\n this.setLoginParameters(sessionParams.sessionToken, sessionParams.sessionTokenType, sessionParams.accountUid);\r\n });\r\n }\r\n getSessionParameters() {\r\n return {\r\n accountUid: this._accountUid,\r\n username: this._username,\r\n sessionToken: this._sessionToken,\r\n sessionTokenType: this._sessionTokenType,\r\n dataKey: this.dataKey,\r\n privateKey: this.privateKey,\r\n eccPrivateKey: this.eccPrivateKey,\r\n eccPublicKey: this.eccPublicKey,\r\n enterpriseEccPublicKey: this.enterpriseEccPublicKey,\r\n clientKey: this.clientKey,\r\n userType: this.userType,\r\n ssoLogoutUrl: this.ssoLogoutUrl,\r\n ssoSessionId: this.ssoSessionId,\r\n messageSessionUid: this.messageSessionUid\r\n };\r\n }\r\n getSsoProvider(ssoDomain, locale) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let domainRequest = {\r\n name: ssoDomain.trim(),\r\n locale: locale,\r\n clientVersion: this.endpoint.clientVersion,\r\n };\r\n const domainResponse = yield this.executeRest(ssoServiceProviderRequestMessage(domainRequest));\r\n const params = domainResponse.isCloud\r\n ? '?payload=' + (yield this._endpoint.prepareSsoPayload(this.messageSessionUid))\r\n : '?embedded&key=' + (yield this._endpoint.getOnsitePublicKey());\r\n this.userType = domainResponse.isCloud ? UserType.cloudSso : UserType.onsiteSso;\r\n this.ssoLogoutUrl = domainResponse.spUrl.replace('login', 'logout');\r\n return {\r\n url: domainResponse.spUrl + params,\r\n name: domainResponse.name,\r\n };\r\n });\r\n }\r\n verifyDevice(username, loginToken, isCloud = false) {\r\n return new Promise((resolve, reject) => {\r\n if (!this.options.authUI3) {\r\n reject(new Error('No authUI3 provided. authUI3 required to verify devices'));\r\n return;\r\n }\r\n let emailSent = false;\r\n let tfaExpiration = TwoFactorExpiration.TWO_FA_EXP_IMMEDIATELY;\r\n const deviceConfig = this.options.deviceConfig;\r\n let channels;\r\n if (!isCloud) {\r\n channels = [\r\n {\r\n channel: DeviceVerificationMethods.Email,\r\n sendApprovalRequest: () => __awaiter(this, void 0, void 0, function* () {\r\n yield this.executeRest(requestDeviceVerificationMessage({\r\n username: username,\r\n verificationChannel: emailSent ? 'email_resend' : 'email',\r\n encryptedDeviceToken: deviceConfig.deviceToken,\r\n clientVersion: this.endpoint.clientVersion,\r\n messageSessionUid: this.messageSessionUid\r\n }));\r\n emailSent = true;\r\n }),\r\n validateCode: (code) => __awaiter(this, void 0, void 0, function* () {\r\n yield this.executeRest(validateDeviceVerificationCodeMessage({\r\n verificationCode: code,\r\n username: username,\r\n }));\r\n resumeWithToken(loginToken);\r\n })\r\n },\r\n {\r\n channel: DeviceVerificationMethods.KeeperPush,\r\n sendApprovalRequest: () => __awaiter(this, void 0, void 0, function* () {\r\n yield this.executeRest(twoFactorSend2FAPushMessage({\r\n encryptedLoginToken: loginToken,\r\n pushType: TwoFactorPushType.TWO_FA_PUSH_KEEPER\r\n }));\r\n })\r\n },\r\n {\r\n channel: DeviceVerificationMethods.TFA,\r\n sendApprovalRequest: () => __awaiter(this, void 0, void 0, function* () {\r\n yield this.executeRest(twoFactorSend2FAPushMessage({\r\n encryptedLoginToken: loginToken,\r\n }));\r\n }),\r\n validateCode: (code) => __awaiter(this, void 0, void 0, function* () {\r\n const twoFactorValidateMsg = twoFactorValidateMessage({\r\n encryptedLoginToken: loginToken,\r\n value: code,\r\n expireIn: tfaExpiration\r\n });\r\n const twoFactorValidateResp = yield this.executeRest(twoFactorValidateMsg);\r\n if (twoFactorValidateResp.encryptedLoginToken) {\r\n const wssRs = {\r\n event: 'received_totp',\r\n encryptedLoginToken: platform.bytesToBase64(twoFactorValidateResp.encryptedLoginToken)\r\n };\r\n processPushNotification(wssRs);\r\n }\r\n }),\r\n setExpiration: expiration => {\r\n tfaExpiration = expiration;\r\n }\r\n }\r\n ];\r\n }\r\n else {\r\n channels = [\r\n {\r\n channel: DeviceVerificationMethods.KeeperPush,\r\n sendApprovalRequest: () => __awaiter(this, void 0, void 0, function* () {\r\n yield this.executeRest(twoFactorSend2FAPushMessage({\r\n encryptedLoginToken: loginToken,\r\n pushType: TwoFactorPushType.TWO_FA_PUSH_KEEPER\r\n }));\r\n })\r\n },\r\n {\r\n channel: DeviceVerificationMethods.AdminApproval,\r\n sendApprovalRequest: () => __awaiter(this, void 0, void 0, function* () {\r\n yield this.executeRest(requestDeviceAdminApprovalMessage({\r\n username: username,\r\n verificationChannel: emailSent ? 'email_resend' : 'email',\r\n encryptedDeviceToken: deviceConfig.deviceToken,\r\n clientVersion: this.endpoint.clientVersion,\r\n messageSessionUid: this.messageSessionUid\r\n }));\r\n })\r\n }\r\n ];\r\n }\r\n let done = false;\r\n const resumeWithToken = (token) => {\r\n done = true;\r\n resolve(token);\r\n };\r\n const rejectWithError = (error) => {\r\n done = true;\r\n reject(error);\r\n };\r\n const processPushNotification = (wssRs) => {\r\n if (wssRs.event === 'received_totp') {\r\n const token = wssRs.encryptedLoginToken ? normal64Bytes(wssRs.encryptedLoginToken) : loginToken;\r\n resumeWithToken(token);\r\n }\r\n else if (wssRs.message === 'device_approved') {\r\n if (wssRs.approved) {\r\n resumeWithToken(loginToken);\r\n }\r\n else {\r\n rejectWithError(new Error('Rejected'));\r\n }\r\n }\r\n else if (wssRs.command === 'device_verified') {\r\n if (this.options.onDeviceVerified) {\r\n this.options.onDeviceVerified(true);\r\n }\r\n resumeWithToken(loginToken);\r\n }\r\n };\r\n // response from the client true - try again, false - cancel\r\n this.options.authUI3.waitForDeviceApproval(channels, isCloud)\r\n .then((ok) => {\r\n if (ok) {\r\n resumeWithToken(loginToken);\r\n }\r\n else {\r\n rejectWithError(new Error('Canceled'));\r\n }\r\n })\r\n .catch(reason => rejectWithError(reason));\r\n (() => __awaiter(this, void 0, void 0, function* () {\r\n while (!done) {\r\n const pushMessage = yield this.socket.getPushMessage();\r\n const wssClientResponse = yield this.endpoint.decryptPushMessage(pushMessage);\r\n if (!done) {\r\n const wssRs = JSON.parse(wssClientResponse.message);\r\n console.log(wssRs);\r\n processPushNotification(wssRs);\r\n }\r\n }\r\n }))();\r\n });\r\n }\r\n handleTwoFactor(loginResponse) {\r\n return new Promise((resolve, reject) => {\r\n if (!loginResponse.channels) {\r\n reject(new Error('Channels not provided by API'));\r\n return;\r\n }\r\n const loginToken = loginResponse.encryptedLoginToken;\r\n let done = false;\r\n let twoFactorWaitCancel = resolvablePromise();\r\n const resumeWithToken = (token) => {\r\n done = true;\r\n twoFactorWaitCancel.resolve();\r\n resolve(token);\r\n };\r\n const rejectWithError = (error) => {\r\n done = true;\r\n twoFactorWaitCancel.resolve();\r\n reject(error);\r\n };\r\n let tfaExpiration = TwoFactorExpiration.TWO_FA_EXP_IMMEDIATELY;\r\n const submitCode = (channel, code) => __awaiter(this, void 0, void 0, function* () {\r\n const channelInfo = loginResponse.channels.find(x => x.channelType === channel);\r\n let valueType;\r\n switch (channelInfo.channelType) {\r\n case Authentication.TwoFactorChannelType.TWO_FA_CT_DNA:\r\n valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_DNA;\r\n break;\r\n case Authentication.TwoFactorChannelType.TWO_FA_CT_DUO:\r\n valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_DUO;\r\n break;\r\n case Authentication.TwoFactorChannelType.TWO_FA_CT_SMS:\r\n valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_SMS;\r\n break;\r\n case Authentication.TwoFactorChannelType.TWO_FA_CT_TOTP:\r\n valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_TOTP;\r\n break;\r\n case Authentication.TwoFactorChannelType.TWO_FA_CT_RSA:\r\n valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_RSA;\r\n break;\r\n case Authentication.TwoFactorChannelType.TWO_FA_CT_U2F:\r\n valueType = Authentication.TwoFactorValueType.TWO_FA_RESP_U2F;\r\n break;\r\n case Authentication.TwoFactorChannelType.TWO_FA_CT_WEBAUTHN:\r\n valueType = Authentication.TwoFactorValueType.TWO_FA_RESP_WEBAUTHN;\r\n break;\r\n default:\r\n valueType = undefined;\r\n break;\r\n }\r\n const twoFactorValidateMsg = twoFactorValidateMessage({\r\n channelUid: channelInfo ? channelInfo.channelUid : undefined,\r\n encryptedLoginToken: loginToken,\r\n value: code,\r\n expireIn: tfaExpiration,\r\n valueType: valueType,\r\n });\r\n const twoFactorValidateResp = yield this.executeRest(twoFactorValidateMsg);\r\n if (twoFactorValidateResp.encryptedLoginToken) {\r\n resumeWithToken(twoFactorValidateResp.encryptedLoginToken);\r\n }\r\n });\r\n let lastPushChannel = TwoFactorChannelType.TWO_FA_CT_NONE;\r\n const submitPush = (channel, pushType) => __awaiter(this, void 0, void 0, function* () {\r\n const sendPushRequest = {\r\n encryptedLoginToken: loginResponse.encryptedLoginToken,\r\n pushType: pushType,\r\n expireIn: tfaExpiration\r\n };\r\n yield this.executeRest(twoFactorSend2FAPushMessage(sendPushRequest));\r\n lastPushChannel = channel;\r\n });\r\n const channels = loginResponse.channels\r\n .map((ch) => {\r\n const tfachannelData = {\r\n channel: ch,\r\n setExpiration: (exp) => {\r\n tfaExpiration = exp;\r\n },\r\n sendCode: (code) => __awaiter(this, void 0, void 0, function* () {\r\n yield submitCode(ch.channelType, code);\r\n })\r\n };\r\n switch (ch.channelType) {\r\n case TwoFactorChannelType.TWO_FA_CT_U2F:\r\n case TwoFactorChannelType.TWO_FA_CT_WEBAUTHN:\r\n // add support for security key as push\r\n break;\r\n case TwoFactorChannelType.TWO_FA_CT_TOTP:\r\n case TwoFactorChannelType.TWO_FA_CT_RSA:\r\n break;\r\n case TwoFactorChannelType.TWO_FA_CT_SMS:\r\n tfachannelData.availablePushes = [TwoFactorPushType.TWO_FA_PUSH_SMS];\r\n break;\r\n case TwoFactorChannelType.TWO_FA_CT_DNA:\r\n tfachannelData.availablePushes = [TwoFactorPushType.TWO_FA_PUSH_DNA];\r\n break;\r\n case TwoFactorChannelType.TWO_FA_CT_KEEPER:\r\n case TwoFactorChannelType.TWO_FA_CT_DUO:\r\n if (ch.capabilities) {\r\n tfachannelData.availablePushes = ch.capabilities\r\n .map(cap => {\r\n switch (cap) {\r\n case 'push':\r\n return TwoFactorPushType.TWO_FA_PUSH_DUO_PUSH;\r\n case 'sms':\r\n return TwoFactorPushType.TWO_FA_PUSH_DUO_TEXT;\r\n case 'phone':\r\n return TwoFactorPushType.TWO_FA_PUSH_DUO_CALL;\r\n default:\r\n return undefined;\r\n }\r\n }).filter(cap => !!cap).map(cap => cap);\r\n }\r\n break;\r\n }\r\n if (tfachannelData.availablePushes) {\r\n tfachannelData.sendPush = (pushType) => __awaiter(this, void 0, void 0, function* () {\r\n submitPush(ch.channelType, pushType);\r\n });\r\n }\r\n return tfachannelData;\r\n }).filter((chd) => !!chd).map(chd => chd);\r\n const processPushNotification = (wssRs) => {\r\n if (wssRs.event === 'received_totp') {\r\n if (wssRs.encryptedLoginToken) {\r\n const token = normal64Bytes(wssRs.encryptedLoginToken);\r\n resumeWithToken(token);\r\n }\r\n else if (wssRs.passcode) {\r\n (() => __awaiter(this, void 0, void 0, function* () {\r\n yield submitCode(lastPushChannel, wssRs.passcode);\r\n }))();\r\n }\r\n else {\r\n rejectWithError(new Error('push_declined'));\r\n }\r\n }\r\n };\r\n this.options.authUI3.waitForTwoFactorCode(channels, twoFactorWaitCancel.promise)\r\n .then(ok => {\r\n if (ok) {\r\n resumeWithToken(loginToken);\r\n }\r\n else {\r\n rejectWithError(new Error('Canceled'));\r\n }\r\n })\r\n .catch(reason => rejectWithError(reason));\r\n (() => __awaiter(this, void 0, void 0, function* () {\r\n while (!done) {\r\n const pushMessage = yield this.socket.getPushMessage();\r\n const wssClientResponse = yield this.endpoint.decryptPushMessage(pushMessage);\r\n if (!done) {\r\n const wssRs = JSON.parse(wssClientResponse.message);\r\n console.log(wssRs);\r\n processPushNotification(wssRs);\r\n }\r\n }\r\n }))();\r\n });\r\n }\r\n authHashLogin(loginResponse, username, password, useAlternate = false) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n // TODO test for account transfer and account recovery\r\n if (!loginResponse.salt) {\r\n throw new Error('Salt missing from API response');\r\n }\r\n const salt = useAlternate ? loginResponse.salt.find(s => s.name === 'alternate') : loginResponse.salt[0];\r\n if (!salt.salt || !salt.iterations) {\r\n throw new Error('Salt missing from API response');\r\n }\r\n this.options.salt = salt.salt;\r\n this.options.iterations = salt.iterations;\r\n const authHashKey = yield platform.deriveKey(password, salt.salt, salt.iterations);\r\n let authHash = yield platform.calcAuthVerifier(authHashKey);\r\n const loginMsg = validateAuthHashMessage({\r\n authResponse: authHash,\r\n encryptedLoginToken: loginResponse.encryptedLoginToken\r\n });\r\n const loginResp = yield this.executeRest(loginMsg);\r\n console.log(loginResp);\r\n if (loginResp.cloneCode && loginResp.cloneCode.length > 0) {\r\n this.options.sessionStorage.saveCloneCode(this.options.host, this._username, loginResp.cloneCode);\r\n }\r\n yield this.loginSuccess(loginResp, password, salt);\r\n });\r\n }\r\n loginSuccess(loginResponse, password, salt = undefined) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n this._username = loginResponse.primaryUsername || this._username;\r\n if (!loginResponse.encryptedSessionToken || !loginResponse.encryptedDataKey || !loginResponse.accountUid) {\r\n return;\r\n }\r\n this.setLoginParameters(webSafe64FromBytes(loginResponse.encryptedSessionToken), loginResponse.sessionTokenType, loginResponse.accountUid);\r\n switch (loginResponse.encryptedDataKeyType) {\r\n case Authentication.EncryptedDataKeyType.BY_DEVICE_PUBLIC_KEY:\r\n this.dataKey = yield platform.privateDecryptEC(loginResponse.encryptedDataKey, this.options.deviceConfig.privateKey, this.options.deviceConfig.publicKey);\r\n break;\r\n case Authentication.EncryptedDataKeyType.BY_PASSWORD:\r\n this.dataKey = yield decryptEncryptionParams(password, loginResponse.encryptedDataKey);\r\n break;\r\n case Authentication.EncryptedDataKeyType.BY_ALTERNATE:\r\n if (salt) {\r\n const encKey = yield platform.deriveKeyV2('data_key', password, salt.salt, salt.iterations);\r\n this.dataKey = yield platform.aesGcmDecrypt(loginResponse.encryptedDataKey, encKey);\r\n }\r\n break;\r\n case Authentication.EncryptedDataKeyType.NO_KEY:\r\n case Authentication.EncryptedDataKeyType.BY_BIO:\r\n throw new Error(`Data Key type ${loginResponse.encryptedDataKeyType} decryption not implemented`);\r\n }\r\n yield this.loadAccountSummary();\r\n let encryptedPrivateKey;\r\n let encryptedEccPrivateKey;\r\n if (this.options.kvs) {\r\n const encryptedPrivateKeyString = this.options.kvs.getValue(`${this._username}/private_key`);\r\n if (encryptedPrivateKeyString) {\r\n encryptedPrivateKey = platform.base64ToBytes(encryptedPrivateKeyString);\r\n }\r\n const encryptedEccPrivateKeyString = this.options.kvs.getValue(`${this._username}/ecc_private_key`);\r\n if (encryptedEccPrivateKey) {\r\n encryptedEccPrivateKey = platform.base64ToBytes(encryptedEccPrivateKeyString);\r\n }\r\n }\r\n if (!encryptedPrivateKey || !encryptedEccPrivateKey) {\r\n encryptedPrivateKey = this.accountSummary.keysInfo.encryptedPrivateKey;\r\n encryptedEccPrivateKey = this.accountSummary.keysInfo.encryptedEccPrivateKey;\r\n if (this.options.kvs) {\r\n this.options.kvs.saveValue(`${this._username}/private_key`, platform.bytesToBase64(encryptedPrivateKey));\r\n if (encryptedEccPrivateKey) {\r\n this.options.kvs.saveValue(`${this._username}/ecc_private_key`, platform.bytesToBase64(encryptedEccPrivateKey));\r\n }\r\n }\r\n }\r\n this.privateKey = yield platform.aesCbcDecrypt(encryptedPrivateKey, this.dataKey, true);\r\n if (encryptedEccPrivateKey === null || encryptedEccPrivateKey === void 0 ? void 0 : encryptedEccPrivateKey.length) {\r\n this.eccPrivateKey = yield platform.aesGcmDecrypt(encryptedEccPrivateKey, this.dataKey);\r\n this.eccPublicKey = this.accountSummary.keysInfo.eccPublicKey;\r\n }\r\n this.clientKey = yield platform.aesCbcDecrypt(this.accountSummary.clientKey, this.dataKey, true);\r\n if (this.options.sessionStorage) {\r\n this.options.sessionStorage.saveSessionParameters(this.getSessionParameters());\r\n }\r\n });\r\n }\r\n loadAccountSummary() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n this.accountSummary = yield this.executeRest(accountSummaryMessage({\r\n summaryVersion: 1\r\n }));\r\n });\r\n }\r\n login(username, password) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n try {\r\n let preLoginResponse = yield this.endpoint.getPreLogin(username);\r\n if (!preLoginResponse.salt) {\r\n throw new Error('Salt missing from API response');\r\n }\r\n let salt = preLoginResponse.salt[0];\r\n if (!salt.salt || !salt.iterations) {\r\n throw new Error('Salt missing from API response');\r\n }\r\n let authHashKey = yield platform.deriveKey(password, salt.salt, salt.iterations);\r\n let authHash = platform.bytesToBase64(yield platform.calcAuthVerifier(authHashKey));\r\n let loginCommand = new LoginCommand();\r\n loginCommand.command = \"login\";\r\n loginCommand.username = username;\r\n loginCommand.version = 2;\r\n loginCommand.auth_response = webSafe64(authHash);\r\n loginCommand.platform_device_token = webSafe64FromBytes(this.endpoint.deviceToken);\r\n loginCommand.include = [\"keys\"]; //[\"license\",\"settings\",\"group\",\"sync_log\",\"keys\",\"enforcements\",\"client_key\",\"images\",\"is_enterprise_admin\",\"security_keys\"]\r\n if (this.managedCompanyId) {\r\n loginCommand.enterprise_id = this.managedCompanyId;\r\n }\r\n let loginResponse;\r\n let socketListener = null;\r\n while (true) {\r\n loginResponse = yield this.endpoint.executeV2Command(loginCommand);\r\n if (loginResponse.result_code === \"auth_success\")\r\n break;\r\n console.log(loginResponse);\r\n if (isTwoFactorResultCode(loginResponse.result_code)) {\r\n if (!!loginResponse.u2f_challenge) {\r\n loginResponse.u2f_challenge = JSON.parse(loginResponse.u2f_challenge);\r\n }\r\n if (!this.options.authUI)\r\n break;\r\n let errorMessage = loginResponse.result_code === LoginResponseResultCode.InvalidTOTP\r\n ? loginResponse.message\r\n : undefined;\r\n if (loginResponse.channel === 'two_factor_channel_duo' && loginResponse.url) {\r\n loginCommand['2fa_mode'] = 'push';\r\n socketListener = new SocketListener(loginResponse.url);\r\n }\r\n else {\r\n let token;\r\n if (socketListener) {\r\n const pushMessage = JSON.parse(yield socketListener.getPushMessage());\r\n socketListener.disconnect();\r\n console.log(pushMessage);\r\n token = pushMessage.passcode;\r\n }\r\n else {\r\n token = yield this.options.authUI.getTwoFactorCode(errorMessage);\r\n }\r\n if (!token)\r\n break;\r\n loginCommand[\"2fa_token\"] = token;\r\n }\r\n loginCommand['2fa_type'] = 'one_time';\r\n loginCommand[\"device_token_expire_days\"] = 9999;\r\n }\r\n }\r\n this._sessionToken = loginResponse.session_token;\r\n this._username = username;\r\n this.dataKey = yield decryptEncryptionParamsString(password, loginResponse.keys.encryption_params);\r\n if (loginResponse.keys.encrypted_private_key) {\r\n this.privateKey = yield decryptFromStorage(loginResponse.keys.encrypted_private_key, this.dataKey);\r\n }\r\n }\r\n catch (e) {\r\n throw unifyLoginError(e);\r\n }\r\n });\r\n }\r\n managedCompanyLogin(username, password, companyId) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n this.managedCompanyId = companyId;\r\n yield this.login(username, password);\r\n });\r\n }\r\n executeCommand(command) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (!command.username) {\r\n command.username = this._username;\r\n }\r\n if (command instanceof AuthorizedCommand) {\r\n command.device_id = \"JS Keeper API\";\r\n command.session_token = this._sessionToken;\r\n }\r\n return this.endpoint.executeV2Command(command);\r\n });\r\n }\r\n executeRest(message) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.endpoint.executeRest(message, this._sessionToken);\r\n });\r\n }\r\n get(path) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.endpoint.get(path);\r\n });\r\n }\r\n setLoginParameters(sessionToken, sessionTokenType, accountUid) {\r\n this._sessionToken = sessionToken;\r\n this._sessionTokenType = sessionTokenType;\r\n this._accountUid = accountUid;\r\n if (!this.socket) {\r\n throw new Error('No socket available');\r\n }\r\n if (this.socket.getIsConnected()) {\r\n this.socket.registerLogin(this._sessionToken);\r\n }\r\n this.socket.onOpen(() => {\r\n this.socket.registerLogin(this._sessionToken);\r\n });\r\n }\r\n registerDevice() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n yield this.endpoint.registerDevice();\r\n });\r\n }\r\n onClose(callback) {\r\n if (!this.socket) {\r\n throw new Error('No socket available');\r\n }\r\n this.socket.onClose(callback);\r\n }\r\n onError(callback) {\r\n if (!this.socket) {\r\n throw new Error('No socket available');\r\n }\r\n this.socket.onError(callback);\r\n }\r\n onPushMessage(callback) {\r\n if (!this.socket) {\r\n throw new Error('No socket available');\r\n }\r\n this.socket.onPushMessage(callback);\r\n }\r\n onCloseMessage(callback) {\r\n if (!this.socket) {\r\n throw new Error('No socket available');\r\n }\r\n this.socket.onCloseMessage(callback);\r\n }\r\n getPushMessage() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (!this.socket) {\r\n throw new Error('No socket available');\r\n }\r\n const pushMessage = yield this.socket.getPushMessage();\r\n const wssClientResponse = yield this.endpoint.decryptPushMessage(pushMessage);\r\n console.log(wssClientResponse.message);\r\n return JSON.parse(wssClientResponse.message);\r\n });\r\n }\r\n createUserRequest(dataKey) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const rsaKeys = yield platform.generateRSAKeyPair();\r\n const rsaEncryptedPrivateKey = yield platform.aesCbcEncrypt(rsaKeys.privateKey, dataKey, true);\r\n const ecKeys = yield platform.generateECKeyPair();\r\n const eccEncryptedPrivateKey = yield platform.aesGcmEncrypt(ecKeys.privateKey, dataKey);\r\n const encryptedClientKey = yield platform.aesCbcEncrypt(generateEncryptionKey(), dataKey, true);\r\n return {\r\n rsaPublicKey: rsaKeys.publicKey,\r\n rsaEncryptedPrivateKey: rsaEncryptedPrivateKey,\r\n eccPublicKey: ecKeys.publicKey,\r\n eccEncryptedPrivateKey: eccEncryptedPrivateKey,\r\n encryptedDeviceToken: this.options.deviceConfig.deviceToken,\r\n encryptedClientKey: encryptedClientKey,\r\n clientVersion: this.options.clientVersion,\r\n };\r\n });\r\n }\r\n createUser(username, password) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const iterations = 100000;\r\n const dataKey = generateEncryptionKey();\r\n const authVerifier = yield createAuthVerifier(password, iterations);\r\n const encryptionParams = yield createEncryptionParams(password, dataKey, iterations);\r\n const request = yield this.createUserRequest(dataKey);\r\n const regUserMsg = requestCreateUserMessage(Object.assign(Object.assign({}, request), { username: username, authVerifier: authVerifier, encryptionParams: encryptionParams }), false);\r\n yield this.executeRest(regUserMsg);\r\n });\r\n }\r\n createSsoUser(loginToken) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const dataKey = generateEncryptionKey();\r\n const encryptedDeviceDataKey = yield platform.publicEncryptEC(dataKey, this.options.deviceConfig.publicKey);\r\n const request = yield this.createUserRequest(dataKey);\r\n const regUserMsg = requestCreateUserMessage(Object.assign(Object.assign({}, request), { username: this._username, encryptedLoginToken: loginToken, encryptedDeviceDataKey: encryptedDeviceDataKey }), true);\r\n yield this.executeRest(regUserMsg);\r\n });\r\n }\r\n getEnterpriseECCPublicKey() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const resp = yield this.executeRest(getEnterprisePublicKeyMessage());\r\n if (resp.enterpriseECCPublicKey) {\r\n this.enterpriseEccPublicKey = resp.enterpriseECCPublicKey;\r\n }\r\n });\r\n }\r\n}\r\nconst iterationsToBytes = (iterations) => {\r\n const iterationBytes = new ArrayBuffer(4);\r\n new DataView(iterationBytes).setUint32(0, iterations);\r\n const bytes = new Uint8Array(iterationBytes);\r\n bytes[0] = 1; // version\r\n return bytes;\r\n};\r\nexport function createAuthVerifier(password, iterations) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const salt = platform.getRandomBytes(16);\r\n const authHashKey = yield platform.deriveKey(password, salt, iterations);\r\n return Uint8Array.of(...iterationsToBytes(iterations), ...salt, ...authHashKey);\r\n });\r\n}\r\nexport function createEncryptionParams(password, dataKey, iterations) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const salt = platform.getRandomBytes(16);\r\n const authHashKey = yield platform.deriveKey(password, salt, iterations);\r\n const doubledDataKey = Uint8Array.of(...dataKey, ...dataKey);\r\n const encryptedDoubledKey = yield platform.aesCbcEncrypt(doubledDataKey, authHashKey, false);\r\n return Uint8Array.of(...iterationsToBytes(iterations), ...salt, ...encryptedDoubledKey);\r\n });\r\n}\r\nfunction decryptEncryptionParamsString(password, encryptionParams) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return decryptEncryptionParams(password, platform.base64ToBytes(normal64(encryptionParams)));\r\n });\r\n}\r\nexport function decryptEncryptionParams(password, encryptionParams) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let corruptedEncryptionParametersMessage = \"Corrupted encryption parameters\";\r\n if (encryptionParams[0] !== 1)\r\n throw new Error(corruptedEncryptionParametersMessage);\r\n let iterations = (encryptionParams[1] << 16) + (encryptionParams[2] << 8) + encryptionParams[3];\r\n let saltBytes = encryptionParams.subarray(4, 20);\r\n let masterKey = yield platform.deriveKey(password, saltBytes, iterations);\r\n let encryptedDoubledDataKey = encryptionParams.subarray(20);\r\n let doubledDataKey = yield platform.aesCbcDecrypt(encryptedDoubledDataKey, masterKey, false);\r\n for (let i = 0; i < 32; i++) {\r\n if (doubledDataKey[i] !== doubledDataKey[i + 32]) {\r\n throw new Error(corruptedEncryptionParametersMessage);\r\n }\r\n }\r\n return doubledDataKey.slice(0, 32);\r\n });\r\n}\r\n//# sourceMappingURL=auth.js.map","references":["/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/configuration.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/endpoint.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/platform.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/commands.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/utils.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/restMessages.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/proto.d.ts"],"map":"{\"version\":3,\"file\":\"auth.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/auth.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,EAIH,yBAAyB,EAI5B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAC,cAAc,EAAoB,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAa,QAAQ,EAAC,MAAM,YAAY,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAiB,YAAY,EAAiB,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAClH,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EAAE,YAAY,EACnC,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EACf,wBAAwB,EACxB,iCAAiC,EACjC,gCAAgC,EAEhC,gCAAgC,EAChC,iBAAiB,EACjB,iCAAiC,EACjC,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,qCAAqC,EACxC,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAiB,cAAc,EAAC,MAAM,SAAS,CAAC;AAGvD,IAAO,mBAAmB,GAAG,cAAc,CAAC,mBAAmB,CAAC;AAChE,IAAO,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,CAAC;AAC5D,IAAO,oBAAoB,GAAG,cAAc,CAAC,oBAAoB,CAAC;AAElE,IAAO,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC;A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C,CAAC,CAAC;QAC1D,IAAI,UAAU,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAChG,IAAI,SAAS,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,SAAS,GAAG,MAAM,QAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;QAC1E,IAAI,uBAAuB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC5D,IAAI,cAAc,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,uBAAuB,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAC7F,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YACzB,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;SACJ;QACD,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;CAAA\"}","dts":{"name":"/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/auth.d.ts","writeByteOrderMark":false,"text":"import { ClientConfiguration, ClientConfigurationInternal } from './configuration';\r\nimport { KeeperEndpoint } from \"./endpoint\";\r\nimport { KeyWrapper } from \"./platform\";\r\nimport { KeeperCommand } from \"./commands\";\r\nimport { RestMessage } from './restMessages';\r\nimport { Authentication } from './proto';\r\nexport declare type SocketProxy = {\r\n onOpen: (callback: () => void) => void;\r\n close: () => void;\r\n onClose: (callback: (e: Event) => void) => void;\r\n onError: (callback: (e: Event | Error) => void) => void;\r\n onMessage: (callback: (e: Uint8Array) => void) => void;\r\n send: (message: any) => void;\r\n messageQueue: any[];\r\n};\r\nexport declare class SocketListener {\r\n private socket;\r\n private url;\r\n private getConnectionRequest?;\r\n private messageListeners;\r\n private singleMessageListeners;\r\n private closeListeners;\r\n private singleCloseListeners;\r\n private onOpenListeners;\r\n private messageSessionUid;\r\n private isConnected;\r\n private reconnectTimeout;\r\n private currentBackoffSeconds;\r\n private isClosedByClient;\r\n constructor(url: string, messageSessionUid?: Uint8Array, getConnectionRequest?: (messageSessionUid: Uint8Array) => Promise<string>);\r\n createWebsocket(messageSessionUid?: Uint8Array): Promise<void>;\r\n registerLogin(sessionToken: string): void;\r\n onOpen(callback: () => void): void;\r\n onClose(callback: () => void): void;\r\n onError(callback: () => void): void;\r\n private handleOnOpen;\r\n private handleMessage;\r\n private handleClose;\r\n onPushMessage(callback: (data: any) => void): void;\r\n onCloseMessage(callback: (data: any) => void): void;\r\n getPushMessage(): Promise<any>;\r\n private static getBaseReconnectionInterval;\r\n private reconnect;\r\n disconnect(): void;\r\n getIsConnected(): boolean;\r\n}\r\nexport declare function socketSendMessage(message: any, socket: WebSocket, createdSocket: any): void;\r\nexport declare type LoginPayload = {\r\n username: string;\r\n password?: string | KeyWrapper;\r\n loginToken?: Uint8Array;\r\n loginType?: Authentication.LoginType;\r\n loginMethod?: Authentication.LoginMethod;\r\n v2TwoFactorToken?: string;\r\n resumeSessionOnly?: boolean;\r\n givenSessionToken?: string;\r\n};\r\nexport declare enum UserType {\r\n normal = \"normal\",\r\n onsiteSso = \"onsite_sso\",\r\n cloudSso = \"cloud_sso\"\r\n}\r\nexport declare type SessionParams = {\r\n accountUid: Uint8Array;\r\n username: string;\r\n sessionToken: string;\r\n sessionTokenType: Authentication.SessionTokenType;\r\n dataKey: Uint8Array;\r\n privateKey: Uint8Array;\r\n eccPrivateKey?: Uint8Array;\r\n eccPublicKey?: Uint8Array;\r\n enterpriseEccPublicKey?: Uint8Array;\r\n clientKey: Uint8Array;\r\n userType: UserType;\r\n ssoLogoutUrl: string;\r\n ssoSessionId: string;\r\n messageSessionUid: Uint8Array;\r\n};\r\nexport declare class Auth {\r\n ssoLogoutUrl: string;\r\n userType: UserType;\r\n ssoSessionId: string;\r\n dataKey: Uint8Array;\r\n privateKey: Uint8Array;\r\n eccPrivateKey: Uint8Array;\r\n eccPublicKey: Uint8Array;\r\n enterpriseEccPublicKey: Uint8Array;\r\n private _accountUid;\r\n private _sessionToken;\r\n private _sessionTokenType;\r\n private _username;\r\n private endpoint;\r\n private managedCompanyId?;\r\n private messageSessionUid;\r\n options: ClientConfigurationInternal;\r\n private socket;\r\n clientKey: Uint8Array;\r\n private accountSummary;\r\n constructor(options: ClientConfiguration);\r\n get _endpoint(): KeeperEndpoint;\r\n get accountUid(): Uint8Array;\r\n get clientVersion(): string;\r\n get sessionToken(): string;\r\n get sessionTokenType(): Authentication.SessionTokenType | null;\r\n get username(): string;\r\n getMessageSessionUid(): Uint8Array;\r\n idpLogout(): Promise<void>;\r\n logout(): Promise<void>;\r\n connect(): void;\r\n disconnect(): void;\r\n /**\r\n * useAlternate is to pass to the next function to use an alternate method, for testing a different path.\r\n */\r\n loginV3({ username, password, loginToken, loginType, loginMethod, v2TwoFactorToken, resumeSessionOnly, givenSessionToken, }: LoginPayload): Promise<{\r\n result: string;\r\n }>;\r\n /**\r\n * The MV3 browser extension runs in a service worker that shuts down every 5 minutes.\r\n * This rehydrates the Auth class and re-opens our socket with the session parameters.\r\n */\r\n continueSession(): Promise<void>;\r\n private getSessionParameters;\r\n getSsoProvider(ssoDomain: string, locale?: string): Promise<{\r\n url: string;\r\n name: string;\r\n }>;\r\n verifyDevice(username: string, loginToken: Uint8Array, isCloud?: boolean): Promise<Uint8Array>;\r\n private handleTwoFactor;\r\n authHashLogin(loginResponse: Authentication.ILoginResponse, username: string, password: KeyWrapper, useAlternate?: boolean): Promise<void>;\r\n loginSuccess(loginResponse: Authentication.ILoginResponse, password: KeyWrapper, salt?: Authentication.ISalt | undefined): Promise<void>;\r\n loadAccountSummary(): Promise<void>;\r\n login(username: string, password: KeyWrapper): Promise<void>;\r\n managedCompanyLogin(username: string, password: KeyWrapper, companyId: number): Promise<void>;\r\n executeCommand<Command extends KeeperCommand>(command: Command): Promise<Command[\"response\"]>;\r\n executeRest<TIn, TOut>(message: RestMessage<TIn, TOut>): Promise<TOut>;\r\n get(path: string): Promise<import(\"./commands\").KeeperHttpResponse>;\r\n setLoginParameters(sessionToken: string, sessionTokenType: Authentication.SessionTokenType, accountUid: Uint8Array): void;\r\n registerDevice(): Promise<void>;\r\n onClose(callback: () => void): void;\r\n onError(callback: () => void): void;\r\n onPushMessage(callback: (data: any) => void): void;\r\n onCloseMessage(callback: (data: any) => void): void;\r\n getPushMessage(): Promise<any>;\r\n private createUserRequest;\r\n createUser(username: string, password: KeyWrapper): Promise<void>;\r\n private createSsoUser;\r\n getEnterpriseECCPublicKey(): Promise<void>;\r\n}\r\nexport declare function createAuthVerifier(password: KeyWrapper, iterations: number): Promise<Uint8Array>;\r\nexport declare function createEncryptionParams(password: KeyWrapper, dataKey: Uint8Array, iterations: number): Promise<Uint8Array>;\r\nexport declare function decryptEncryptionParams(password: KeyWrapper, encryptionParams: Uint8Array): Promise<Uint8Array>;\r\n"}}
|