@keeper-security/keeperapi 16.0.3 → 16.0.4
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/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/9eb60cc6282da763987e9a366716c57e69db7cbc → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/4939a895ecf4daac58b0d73bccd49876515d41b8} +1 -1
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/592d89407340c5ec6ad006df327e588b3f442eca} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/61937b699b545d77d9bb72af5e7182c1803ae24c → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/77aced5528ce05fe900fdf7634042ec3c0f18255} +1 -1
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/c05be8364ff56aba0298689783666ddb97a31285} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/9eb60cc6282da763987e9a366716c57e69db7cbc → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/9eb60cc6282da763987e9a366716c57e69db7cbc → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/24fbc0427075baf3ac3fee2ada4ddd2fdd6804a6 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/3050043c8485297b366404c9b699f00a98a44b3c → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/4dffa8599530c3200ba2fa8029fa291435ba7cf7 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/6a0bc58668c059b99bff8dba6f0246cb049f0db9 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/7351d2ef4cb3d5388301a3ad1d1f7e3a0782c0bd → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/8d7296121e0007eebc1b0eabcfcc2a262d6bbc22 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/8fe39fe93705cfe38c1944a307c3fd64e5985d1e → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/9f92f7bfd4bd0aa870a95101ec02f2a32337ff1f → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/a6e317ef3069e9a270811fbc729535be3c405f41 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/ac8bef3228680d10f4db046facede43040f41854 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/afe32918d3a600939f39f4fcfb6852fe43f8ada9 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/bbe22fc71946abdfc667c2388606bfe83397ec81 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/d7bc52f98e9a008b81c621d963e9d4a276c80ee3 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/ddcd4d72185f8c85750f6f2f755c1152fddafdf4 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf} +0 -0
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/types/cache/df632d4bb144fc3001f92ea2a2678baeb386dcc4 → rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/f2e98088f53c88114a0a5322154f96a639246440 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/05d17f791979143cbce20e3e3e811aa19ed8b492} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/624184538e182d7e8888620f356c12b51bbcc6ca → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c} +1 -1
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/bcfb396489824911797b349d7388000f2b3a3298 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4ee978699d6de2a60214b16c42d87f8e9309636b} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/8378bbd69de2cb8546f7e5f380a4ca34a2b252ac → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/50f4a014d14ada987c125e6ea55d4e6e75605313} +1 -1
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/592d89407340c5ec6ad006df327e588b3f442eca} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1} +1 -1
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/c05be8364ff56aba0298689783666ddb97a31285} +1 -1
- package/.rpt2_cache/{rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e} +1 -1
- package/.rpt2_cache/{rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056} +1 -1
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/a282f7f4f34b6e0f7604a1e31cac2d2efbc0304c → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d → rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/a282f7f4f34b6e0f7604a1e31cac2d2efbc0304c → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d → rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/24fbc0427075baf3ac3fee2ada4ddd2fdd6804a6 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/3050043c8485297b366404c9b699f00a98a44b3c → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/4dffa8599530c3200ba2fa8029fa291435ba7cf7 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/603166e7191a1eb2b59e6dc3a0c5060e83e42bf5 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/6a0bc58668c059b99bff8dba6f0246cb049f0db9 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/7351d2ef4cb3d5388301a3ad1d1f7e3a0782c0bd → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/8d7296121e0007eebc1b0eabcfcc2a262d6bbc22 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/8fe39fe93705cfe38c1944a307c3fd64e5985d1e → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/9f92f7bfd4bd0aa870a95101ec02f2a32337ff1f → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/a6e317ef3069e9a270811fbc729535be3c405f41 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/ac8bef3228680d10f4db046facede43040f41854 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/afe32918d3a600939f39f4fcfb6852fe43f8ada9 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/bbe22fc71946abdfc667c2388606bfe83397ec81 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/d7bc52f98e9a008b81c621d963e9d4a276c80ee3 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf} +0 -0
- package/.rpt2_cache/{rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/ddcd4d72185f8c85750f6f2f755c1152fddafdf4 → rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258} +0 -0
- package/package.json +1 -1
- package/.idea/keeperapi.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d +0 -1
- package/.rpt2_cache/rpt2_02b50c05ca0c5f1826efd221b9443199179ac6f1/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/4af634b56884c8fd08ba3107422b0108644ee513 +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/624184538e182d7e8888620f356c12b51bbcc6ca +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/a282f7f4f34b6e0f7604a1e31cac2d2efbc0304c +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +0 -1
- package/.rpt2_cache/rpt2_3297a01a1b62f1695764463c584003ad1da34817/types/cache/df632d4bb144fc3001f92ea2a2678baeb386dcc4 +0 -0
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/bcfb396489824911797b349d7388000f2b3a3298 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/code/cache/f2e98088f53c88114a0a5322154f96a639246440 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/8378bbd69de2cb8546f7e5f380a4ca34a2b252ac +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/09a21931f2a982e751cd2b7ce45fa6df0bfdbfc6 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/5e18f43a9b613f6f6f2302b3a4e5176f6bc92fc5 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/624184538e182d7e8888620f356c12b51bbcc6ca +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/7fbbd271f2a6fe2a55d7ee5e3ad7716e7cf051ba +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/8378bbd69de2cb8546f7e5f380a4ca34a2b252ac +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/85bbe002887f4018a0fe647b8b05194dbc048f66 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/8f851753b53908ad3f972c31696dbdeeed9b4661 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/b5f1f1702282c76ceff0f0ff97a3ba80b5adeccc +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/bcfb396489824911797b349d7388000f2b3a3298 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/dc4d6f4549ac6f4017ff017e35d2349480068cdf +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/e4d5be0687b96b93a032d9922fa511f04ed27deb +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/f2e98088f53c88114a0a5322154f96a639246440 +0 -1
- package/.rpt2_cache/rpt2_695cfcfdb8ad5fdc842bebc6c6523fff84b97236/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +0 -1
- 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 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/1c87a75f7bda91e438f008e21dafe531c949031d +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/4af634b56884c8fd08ba3107422b0108644ee513 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/651b0423c46988097da560167e3f6f432e8fbfc8 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/code/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/651b0423c46988097da560167e3f6f432e8fbfc8 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/semanticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/0155dc333b076ed1526d900b68620ead8c8d8b6b +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/0bd8fcd9e5871476984908e9d214bc12244a56c7 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/1c87a75f7bda91e438f008e21dafe531c949031d +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/4af634b56884c8fd08ba3107422b0108644ee513 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/55ab809efdb0061fba3df7fa2029e2706a361534 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/61937b699b545d77d9bb72af5e7182c1803ae24c +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/651b0423c46988097da560167e3f6f432e8fbfc8 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/67074a8d808b8e4a0c15d67f36f13664fcff8143 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/6eb75399e6e0179b01b9d8cb1afc01f5068ef4f0 +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/7c0e3c33301dea7e674a558fac5e4f028dbaa3ad +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/934e86e88e5eef117e7f7c7e98bb7b13ee83e8af +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/b1af8b4bca5d49b190d355a5d7186b277280db7e +0 -1
- package/.rpt2_cache/rpt2_91c74d821d2604d85061209debacd53e1a896747/syntacticDiagnostics/cache/f385a84342a7d9131d8da13c2546cde25fa23f1d +0 -1
- 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/dist/proto.d.ts +0 -50992
|
@@ -1 +1 @@
|
|
|
1
|
-
{"code":"import { __awaiter } from \"tslib\";\r\nimport { DeleteCommand, FolderAddCommand, PreDeleteCommand, PublicKeysCommand, PurgeDeletedRecordsCommand, RecordAddCommand, RecordShareUpdateCommand, RequestUploadCommand, SharedFolderUpdateCommand, SyncDownCommand, RecordUpdateCommand } from './commands';\r\nimport { platform } from './platform';\r\nimport { decryptFromStorage, decryptFromStorageGcm, decryptKey, encryptForStorage, encryptObjectForStorage, encryptObjectForStorageGCM, generateEncryptionKey, generateUid, normal64, normal64Bytes, shareKey, shareKeyEC, webSafe64FromBytes } from './utils';\r\nimport { applicationAddMessage, fileAddMessage, fileDownloadMessage, getEnterprisePublicKeyMessage, recordsAddMessage, recordsUpdateMessage } from './restMessages';\r\nimport { Records } from './proto';\r\nvar RecordFolderType = Records.RecordFolderType;\r\nvar FileAddResult = Records.FileAddResult;\r\nfunction decryptRecord(record) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n try {\r\n const dataBytes = record.recordData.version < 3\r\n ? yield decryptFromStorage(record.recordData.data, record.key)\r\n : yield decryptFromStorageGcm(record.recordData.data, record.key);\r\n record.data = JSON.parse(platform.bytesToString(dataBytes));\r\n if (record.recordData.extra) {\r\n record.extra = JSON.parse(platform.bytesToString(yield decryptFromStorage(record.recordData.extra, record.key)));\r\n }\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n });\r\n}\r\nexport class Vault {\r\n constructor(auth) {\r\n this.auth = auth;\r\n this._includes = ['folders', 'non_shared_data', 'record', 'shared_folder', 'sfheaders', 'sfrecords', 'sfusers'];\r\n this._records = {};\r\n this._sharedFolders = {};\r\n this._revision = 0;\r\n this.noTypedRecords = false;\r\n }\r\n getRecord(recordUid) {\r\n let record = this._records[recordUid];\r\n let isNew = false;\r\n if (!record) {\r\n record = {};\r\n this._records[recordUid] = record;\r\n isNew = true;\r\n }\r\n return { record, isNew };\r\n }\r\n get includes() {\r\n return this._includes;\r\n }\r\n get revision() {\r\n return this._revision;\r\n }\r\n get records() {\r\n return Object.values(this._records);\r\n }\r\n get sharedFolders() {\r\n return Object.values(this._sharedFolders);\r\n }\r\n get recordUids() {\r\n return Object.keys(this._records);\r\n }\r\n get sharedFolderUids() {\r\n return Object.keys(this._sharedFolders);\r\n }\r\n recordByUid(record_uid) {\r\n return this._records[record_uid];\r\n }\r\n recordByUidBytes(record_uid) {\r\n return this.recordByUid(webSafe64FromBytes(record_uid));\r\n }\r\n decryptKey(encryptedKey, keyType) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n switch (keyType) {\r\n case 1:\r\n return decryptFromStorage(encryptedKey, this.auth.dataKey);\r\n case 2:\r\n return platform.privateDecrypt(normal64Bytes(encryptedKey), this.auth.privateKey);\r\n case 3:\r\n return decryptKey(encryptedKey, this.auth.dataKey);\r\n case 4:\r\n return platform.privateDecryptEC(normal64Bytes(encryptedKey), this.auth.eccPrivateKey);\r\n default:\r\n throw new Error(`Unknown key type: ${keyType}`);\r\n }\r\n });\r\n }\r\n setIncludes(includes) {\r\n this._includes = includes;\r\n }\r\n // todo: remove logResponse in favor of a unified log levels solution\r\n syncDown(revision, logResponse) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (typeof revision === 'number') {\r\n this._revision = revision;\r\n }\r\n console.log(`syncing revision ${this._revision} for ${this.auth.username}`);\r\n let syncDownCommand = new SyncDownCommand(this._revision);\r\n syncDownCommand.include = [...this._includes];\r\n if (!this.noTypedRecords) {\r\n syncDownCommand.include.push('typed_record', 'app_record');\r\n }\r\n let syncDownResponse = yield this.auth.executeCommand(syncDownCommand);\r\n if (logResponse) {\r\n console.log(syncDownResponse);\r\n // console.log(syncDownResponse.shared_folders[0].records)\r\n }\r\n this._revision = syncDownResponse.revision;\r\n if (syncDownResponse.full_sync) {\r\n this._records = {};\r\n }\r\n let added = 0;\r\n let updated = 0;\r\n let removed = 0;\r\n for (let recordData of syncDownResponse.records || []) {\r\n let { record, isNew } = this.getRecord(recordData.record_uid);\r\n record.recordData = recordData;\r\n if (isNew) {\r\n added++;\r\n }\r\n else {\r\n updated++;\r\n }\r\n }\r\n for (let meta of syncDownResponse.record_meta_data || []) {\r\n let { record } = this.getRecord(meta.record_uid);\r\n record.metaData = meta;\r\n try {\r\n record.key = yield this.decryptKey(meta.record_key, meta.record_key_type);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n yield decryptRecord(record);\r\n }\r\n for (let sharedFolder of syncDownResponse.shared_folders || []) {\r\n let vaultFolder = {\r\n sharedFolder: sharedFolder\r\n };\r\n this._sharedFolders[sharedFolder.shared_folder_uid] = vaultFolder;\r\n if (!(sharedFolder.shared_folder_key && sharedFolder.key_type)) {\r\n continue;\r\n }\r\n try {\r\n vaultFolder.key = yield this.decryptKey(sharedFolder.shared_folder_key, sharedFolder.key_type);\r\n for (let sfRecord of sharedFolder.records || []) {\r\n let recordKey;\r\n try {\r\n recordKey = sfRecord.record_key.length === 80\r\n ? yield decryptKey(sfRecord.record_key, vaultFolder.key) // GCM\r\n : decryptFromStorage(sfRecord.record_key, vaultFolder.key); // CBC\r\n let { record } = this.getRecord(sfRecord.record_uid);\r\n record.key = recordKey;\r\n record.sharedFolderUid = sharedFolder.shared_folder_uid;\r\n yield decryptRecord(record);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n }\r\n for (let team of syncDownResponse.teams || []) {\r\n const teamKey = yield this.decryptKey(team.team_key, team.team_key_type);\r\n for (let folderKey of team.shared_folder_keys || []) {\r\n let decryptedFolderKey;\r\n switch (folderKey.key_type) {\r\n case 1:\r\n decryptedFolderKey = decryptFromStorage(folderKey.shared_folder_key, teamKey);\r\n break;\r\n case 2:\r\n const teamPrivateKey = yield decryptFromStorage(team.team_private_key, teamKey);\r\n decryptedFolderKey = platform.privateDecrypt(normal64Bytes(folderKey.shared_folder_key), teamPrivateKey);\r\n break;\r\n default:\r\n throw new Error(`Unknown key type: ${folderKey.key_type}`);\r\n }\r\n this._sharedFolders[folderKey.shared_folder_uid].key = decryptedFolderKey;\r\n }\r\n }\r\n for (let sffRecord of syncDownResponse.shared_folder_folder_records || []) {\r\n let { record } = this.getRecord(sffRecord.record_uid);\r\n record.sharedFolderFolderUid = sffRecord.folder_uid;\r\n }\r\n for (let uid of syncDownResponse.removed_records || []) {\r\n if (this.records[uid]) {\r\n removed++;\r\n delete this.records[uid];\r\n }\r\n }\r\n for (let non_shared_data of syncDownResponse.non_shared_data || []) {\r\n let { record } = this.getRecord(non_shared_data.record_uid);\r\n try {\r\n const nonSharedData = record.recordData.version > 2\r\n ? yield decryptFromStorageGcm(non_shared_data.data, this.auth.dataKey)\r\n : yield decryptFromStorage(non_shared_data.data, this.auth.dataKey);\r\n record.nonSharedData = JSON.parse(platform.bytesToString(nonSharedData));\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n }\r\n for (let record of this.records.filter(x => { var _a; return !!((_a = x.recordData) === null || _a === void 0 ? void 0 : _a.owner_uid); })) {\r\n const owner = this._records[record.recordData.owner_uid];\r\n if (!owner.links) {\r\n owner.links = [];\r\n }\r\n owner.links.push(record.recordData.record_uid);\r\n record.key = yield decryptKey(record.recordData.link_key, owner.key);\r\n yield decryptRecord(record);\r\n }\r\n if (added > 0)\r\n console.log(`${added} records added.`);\r\n if (updated > 0)\r\n console.log(`${updated} records updated.`);\r\n if (removed > 0)\r\n console.log(`${removed} records removed.`);\r\n console.log(`Synced to the revision ${syncDownResponse.revision}`);\r\n console.log(`${Object.keys(this._records).length} records are in the vault.`);\r\n });\r\n }\r\n addRecord(recordData, sharedFolderUid, files) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let recordAddCommand = new RecordAddCommand();\r\n recordAddCommand.record_uid = generateUid();\r\n let recordKey = generateEncryptionKey();\r\n recordAddCommand.record_key = yield encryptForStorage(recordKey, this.auth.dataKey);\r\n recordAddCommand.record_type = 'password';\r\n recordAddCommand.data = yield encryptForStorage(platform.stringToBytes(JSON.stringify(recordData)), recordKey);\r\n recordAddCommand.how_long_ago = 0;\r\n if (sharedFolderUid) {\r\n recordAddCommand.folder_type = 'shared_folder';\r\n recordAddCommand.folder_uid = sharedFolderUid;\r\n recordAddCommand.folder_key = yield encryptForStorage(recordKey, this._sharedFolders[sharedFolderUid].key);\r\n }\r\n else {\r\n recordAddCommand.folder_type = 'user_folder';\r\n }\r\n if (files) {\r\n let extra = {\r\n fields: [],\r\n files: files\r\n };\r\n recordAddCommand.extra = yield encryptForStorage(platform.stringToBytes(JSON.stringify(extra)), recordKey);\r\n recordAddCommand.file_ids = files.map(x => x.id);\r\n }\r\n yield this.auth.executeCommand(recordAddCommand);\r\n return recordAddCommand.record_uid;\r\n });\r\n }\r\n addRecordNew(recordData, sharedFolderUid, linkedRecords) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(recordData, recordKey);\r\n let recordAdd = {\r\n recordUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n clientModifiedTime: new Date().getTime()\r\n };\r\n if (sharedFolderUid) {\r\n recordAdd.folderType = RecordFolderType.shared_folder;\r\n recordAdd.folderUid = normal64Bytes(sharedFolderUid);\r\n recordAdd.folderKey = yield platform.aesGcmEncrypt(recordKey, this._sharedFolders[sharedFolderUid].key);\r\n }\r\n if (linkedRecords) {\r\n let links = [];\r\n for (const linkedRecord of linkedRecords) {\r\n const linkedRecordKey = generateEncryptionKey();\r\n // const linkedRecordKey = await platform.aesGcmEncrypt(this._records[linkedRecord].key, recordKey)\r\n links.push({\r\n recordUid: normal64Bytes(linkedRecord),\r\n recordKey: linkedRecordKey\r\n });\r\n }\r\n recordAdd.recordLinks = links;\r\n }\r\n const recordAddResponse = yield this.auth.executeRest(recordsAddMessage({\r\n clientTime: new Date().getTime(),\r\n records: [recordAdd]\r\n }));\r\n const recordUid = webSafe64FromBytes(recordAdd.recordUid);\r\n this._records[recordUid] = {\r\n recordData: {\r\n record_uid: recordUid,\r\n version: 3\r\n },\r\n key: recordKey\r\n };\r\n return recordAddResponse;\r\n });\r\n }\r\n addRecordsNew(recordsData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const now = new Date().getTime();\r\n let records = [];\r\n let keys = {};\r\n for (const recordData of recordsData) {\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(recordData, recordKey);\r\n let recordAdd = {\r\n recordUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n clientModifiedTime: now\r\n };\r\n records.push(recordAdd);\r\n keys[webSafe64FromBytes(recordAdd.recordUid)] = recordKey;\r\n }\r\n const recordsAddResponse = yield this.auth.executeRest(recordsAddMessage({\r\n clientTime: now,\r\n records: records\r\n }));\r\n for (const recordResponse of recordsAddResponse.records) {\r\n const recordUid = webSafe64FromBytes(recordResponse.recordUid);\r\n this._records[recordUid] = {\r\n recordData: {\r\n record_uid: recordUid,\r\n version: 3\r\n },\r\n key: keys[recordUid]\r\n };\r\n }\r\n return recordsAddResponse;\r\n });\r\n }\r\n uploadFile(fileName, fileData, thumbnailData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const fileMetaData = {\r\n name: fileName,\r\n hasThumbnail: !!thumbnailData\r\n };\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(fileMetaData, recordKey);\r\n const encryptedFile = yield platform.aesGcmEncrypt(fileData, recordKey);\r\n const encryptedThumbnail = thumbnailData\r\n ? yield platform.aesGcmEncrypt(thumbnailData, recordKey)\r\n : undefined;\r\n const fileRequest = {\r\n clientTime: new Date().getTime(),\r\n files: [\r\n {\r\n recordUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n fileSize: encryptedFile.length,\r\n thumbSize: encryptedThumbnail ? encryptedThumbnail.length : undefined\r\n }\r\n ]\r\n };\r\n console.log(fileRequest);\r\n const rq = fileAddMessage(fileRequest);\r\n const fileAddResponse = yield this.auth.executeRest(rq);\r\n const file = fileAddResponse.files[0];\r\n if (file.status !== FileAddResult.FA_SUCCESS)\r\n throw new Error(`Error adding a file record for ${fileName}`);\r\n console.log(file.url);\r\n yield this.uploadFileData(file.url, file.parameters, file.successStatusCode, encryptedFile);\r\n if (encryptedThumbnail) {\r\n yield this.uploadFileData(file.url, file.thumbnailParameters, file.successStatusCode, encryptedThumbnail);\r\n }\r\n const fileUid = webSafe64FromBytes(file.recordUid);\r\n this._records[fileUid] = {\r\n recordData: {\r\n record_uid: fileUid,\r\n version: 4\r\n },\r\n key: recordKey\r\n };\r\n return fileUid;\r\n });\r\n }\r\n uploadFileData(url, parameters, successStatusCode, encryptedData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const res = yield platform.fileUpload(url, JSON.parse(parameters), encryptedData);\r\n if (res.statusCode !== successStatusCode) {\r\n throw new Error(`Upload failed (${res.statusMessage}), code ${res.statusCode}`);\r\n }\r\n });\r\n }\r\n downloadFile(recordUid, thumbNail) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const rq = fileDownloadMessage({\r\n recordUids: [\r\n normal64Bytes(recordUid)\r\n ],\r\n forThumbnails: thumbNail\r\n });\r\n let resp = yield this.auth.executeRest(rq);\r\n let file = resp.files[0];\r\n console.log(resp);\r\n console.log(file);\r\n const fileResponse = yield platform.get(file.url, {});\r\n console.log(fileResponse);\r\n switch (file.fileKeyType) {\r\n case Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY:\r\n return platform.aesCbcDecrypt(fileResponse.data, this._records[recordUid].key, false);\r\n case Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM:\r\n return platform.aesGcmDecrypt(fileResponse.data, this._records[recordUid].key);\r\n default:\r\n throw Error(`Unsupported kile key type: ${file.fileKeyType}`);\r\n }\r\n });\r\n }\r\n addApplication(appData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(appData, recordKey);\r\n let applicationAdd = {\r\n appUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n clientModifiedTime: new Date().getTime()\r\n };\r\n yield this.auth.executeRest(applicationAddMessage(applicationAdd));\r\n return webSafe64FromBytes(applicationAdd.appUid);\r\n });\r\n }\r\n updateRecordV2(update) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const record = this._records[update.record_uid];\r\n const encryptedData = update.data\r\n ? yield encryptObjectForStorage(update.data, record.key)\r\n : undefined;\r\n const encryptedExtra = yield encryptObjectForStorage(record.extra, record.key);\r\n let nonSharedData = undefined;\r\n if (update.nonSharedData || update.nonSharedData === null) {\r\n if (update.nonSharedData == null) {\r\n nonSharedData = Uint8Array.of(0);\r\n }\r\n else {\r\n nonSharedData = encryptObjectForStorage(update.nonSharedData, this.auth.dataKey);\r\n }\r\n }\r\n const updateCommand = new RecordUpdateCommand();\r\n updateCommand.client_time = new Date().getTime();\r\n updateCommand.update_records = [\r\n {\r\n record_uid: update.record_uid,\r\n client_modified_time: new Date().getTime(),\r\n data: encryptedData,\r\n extra: encryptedExtra,\r\n non_shared_data: nonSharedData,\r\n revision: record.recordData.revision,\r\n version: 2,\r\n udata: update.udata,\r\n }\r\n ];\r\n const resp = yield this.auth.executeCommand(updateCommand);\r\n console.log(resp);\r\n });\r\n }\r\n updateRecord(update) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.updateRecords([update]);\r\n });\r\n }\r\n updateRecords(updates) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const request = {\r\n clientTime: new Date().getTime(),\r\n records: []\r\n };\r\n for (const update of updates) {\r\n const record = this._records[update.record_uid];\r\n const encryptedData = update.data\r\n ? yield encryptObjectForStorageGCM(update.data, record.key)\r\n : undefined;\r\n let nonSharedData = undefined;\r\n if (update.nonSharedData || update.nonSharedData === null) {\r\n if (update.nonSharedData == null) {\r\n nonSharedData = Uint8Array.of(0);\r\n }\r\n else {\r\n nonSharedData = yield encryptObjectForStorageGCM(update.nonSharedData, this.auth.dataKey, false);\r\n }\r\n }\r\n let recordAudit = undefined;\r\n if (update.audit) {\r\n const pubKeyResponse = yield this.auth.executeRest(getEnterprisePublicKeyMessage());\r\n const auditBytes = platform.stringToBytes(JSON.stringify(update.audit.data));\r\n const auditData = yield platform.publicEncryptEC(auditBytes, pubKeyResponse.enterpriseECCPublicKey);\r\n recordAudit = {\r\n version: update.audit.version,\r\n data: auditData\r\n };\r\n }\r\n let addedLinks = undefined;\r\n if (update.add_links) {\r\n addedLinks = [];\r\n for (const linkedRecord of update.add_links) {\r\n const linkedRecordKey = yield platform.aesGcmEncrypt(this._records[linkedRecord].key, record.key);\r\n addedLinks.push({\r\n recordUid: normal64Bytes(linkedRecord),\r\n recordKey: linkedRecordKey\r\n });\r\n }\r\n }\r\n let removedLinks = update.remove_links\r\n ? update.remove_links.map(x => normal64Bytes(x))\r\n : undefined;\r\n request.records.push({\r\n recordUid: normal64Bytes(update.record_uid),\r\n data: encryptedData,\r\n nonSharedData: nonSharedData,\r\n audit: recordAudit,\r\n recordLinksAdd: addedLinks,\r\n recordLinksRemove: removedLinks,\r\n clientModifiedTime: new Date().getTime(),\r\n revision: record.recordData.revision\r\n });\r\n console.log(`Updating record ${update.record_uid} revision ${record.recordData.revision}`);\r\n }\r\n const updateMsg = recordsUpdateMessage(request);\r\n const response = yield this.auth.executeRest(updateMsg);\r\n const revision = response.revision;\r\n for (const record of response.records) {\r\n this._records[webSafe64FromBytes(record.recordUid)].recordData.revision = revision;\r\n }\r\n return response;\r\n });\r\n }\r\n deleteRecords(recordUids) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const preDeleteCommand = new PreDeleteCommand();\r\n preDeleteCommand.objects = recordUids.map(x => {\r\n return {\r\n object_uid: x,\r\n object_type: 'record',\r\n from_type: 'user_folder',\r\n delete_resolution: 'unlink'\r\n };\r\n });\r\n const preDeleteResult = yield this.auth.executeCommand(preDeleteCommand);\r\n const deleteCommand = new DeleteCommand();\r\n deleteCommand.pre_delete_token = preDeleteResult.pre_delete_response.pre_delete_token;\r\n return this.auth.executeCommand(deleteCommand);\r\n });\r\n }\r\n cleanTrash() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n yield this.auth.executeCommand(new PurgeDeletedRecordsCommand());\r\n });\r\n }\r\n createSharedFolder(folderName) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let folderKey = generateEncryptionKey();\r\n let folderUid = generateUid();\r\n const faCommand = new FolderAddCommand();\r\n faCommand.name = yield encryptForStorage(platform.stringToBytes(folderName), folderKey);\r\n faCommand.folder_uid = folderUid;\r\n faCommand.folder_type = 'shared_folder';\r\n faCommand.key = yield encryptForStorage(folderKey, this.auth.dataKey);\r\n faCommand.data = yield encryptObjectForStorage({ name: folderName + '1', color: '#FF0000' }, folderKey);\r\n const addFolderResponse = yield this.auth.executeCommand(faCommand);\r\n this._revision = addFolderResponse.revision;\r\n this._sharedFolders[folderUid] = {\r\n key: folderKey\r\n };\r\n return folderUid;\r\n });\r\n }\r\n addUserToSharedFolder(sharedFolderUid, user) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const sharedFolder = this._sharedFolders[sharedFolderUid];\r\n const userPublicKey = yield this.fetchUserPublicKey(user);\r\n const sfuCommand = new SharedFolderUpdateCommand();\r\n sfuCommand.operation = 'update';\r\n sfuCommand.name = yield encryptForStorage(platform.stringToBytes('sftest2'), sharedFolder.key);\r\n sfuCommand.shared_folder_uid = sharedFolderUid;\r\n sfuCommand.revision = this._revision;\r\n sfuCommand.add_users = [{\r\n username: user,\r\n manage_records: false,\r\n manage_users: false,\r\n shared_folder_key: shareKey(sharedFolder.key, userPublicKey)\r\n }];\r\n yield this.auth.executeCommand(sfuCommand);\r\n });\r\n }\r\n deleteSharedFolders(sharedFolderUids) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n for (let sharedFolderUid of sharedFolderUids) {\r\n const sfuCommand = new SharedFolderUpdateCommand();\r\n sfuCommand.operation = 'delete';\r\n sfuCommand.shared_folder_uid = sharedFolderUid;\r\n yield this.auth.executeCommand(sfuCommand);\r\n }\r\n // only can leave shared folders if not the owner\r\n // {\"command\":\"shared_folder_update\",\"pt\":\"-n4s_eSHBZzOMRZQtX0gDg\",\"operation\":\"update\",\"shared_folder_uid\":\"PFe3TzKS6wq3YtXivxR6oA\",\"revision\":944012,\r\n // \"remove_users\":[{\"username\":\"saldoukhov@gmail.com\"}],\"locale\":\"en_US\",\"username\":\"saldoukhov@gmail.com\",\"session_token\":\"6X8lJLgDecS2IKTwErliMX0UKYkhznDWS59asu4kVeN3GMidq--T1kyBJ1YSJ9hxm67qsMkXeG5egEGaAQ_YjVc6CrhyFJovS4mOIZ3APLVdiylEroLQbsttCgkF\",\"client_version\":\"w14.13.0\"}\r\n });\r\n }\r\n fetchUserPublicKey(user) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const publicKeysCommand = new PublicKeysCommand();\r\n publicKeysCommand.key_owners = [user];\r\n const publicKeys = yield this.auth.executeCommand(publicKeysCommand);\r\n if (!publicKeys.public_keys[0].public_key) {\r\n throw new Error(publicKeys.public_keys[0].message);\r\n }\r\n return normal64(publicKeys.public_keys[0].public_key);\r\n });\r\n }\r\n fetchUserPublicKeyEC(user) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const publicKeysCommand = new PublicKeysCommand();\r\n publicKeysCommand.key_owners = [user];\r\n const publicKeys = yield this.auth.executeCommand(publicKeysCommand);\r\n if (!publicKeys.public_keys[0].public_key) {\r\n throw new Error(publicKeys.public_keys[0].message);\r\n }\r\n return null;\r\n // return normal64(publicKeys.public_keys[0].public_key)\r\n });\r\n }\r\n shareRecords(recordUids, share) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const userPublicKey = yield this.fetchUserPublicKey(share.to_user);\r\n const shareCommand = new RecordShareUpdateCommand();\r\n let shareObjects = [];\r\n for (const recordUid of recordUids) {\r\n const recordKey = shareKey(this._records[recordUid].key, userPublicKey);\r\n const so = {\r\n record_uid: recordUid,\r\n record_key: recordKey,\r\n to_username: share.to_user,\r\n shareable: share.shareable,\r\n editable: share.editable\r\n };\r\n shareObjects.push(so);\r\n }\r\n shareCommand.add_shares = shareObjects;\r\n return this.auth.executeCommand(shareCommand);\r\n });\r\n }\r\n shareRecordsEC(recordUids, share) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const userPublicKey = yield this.fetchUserPublicKeyEC(share.to_user);\r\n const shareCommand = new RecordShareUpdateCommand();\r\n let shareObjects = [];\r\n for (const recordUid of recordUids) {\r\n const recordKey = yield shareKeyEC(this._records[recordUid].key, userPublicKey);\r\n const so = {\r\n record_uid: recordUid,\r\n record_key: recordKey,\r\n to_username: share.to_user,\r\n shareable: share.shareable,\r\n editable: share.editable\r\n };\r\n shareObjects.push(so);\r\n }\r\n shareCommand.add_shares = shareObjects;\r\n return this.auth.executeCommand(shareCommand);\r\n });\r\n }\r\n uploadFileOld(fileName, fileData, thumbnailData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const uploadCommand = new RequestUploadCommand();\r\n uploadCommand.file_count = 1;\r\n uploadCommand.thumbnail_count = thumbnailData ? 1 : 0;\r\n const resp = yield this.auth.executeCommand(uploadCommand);\r\n const uploadInfo = resp.file_uploads[0];\r\n console.log(uploadInfo);\r\n const fileKey = generateEncryptionKey();\r\n // const encryptedFile = await platform.aesGcmEncrypt(fileData, fileKey)\r\n const encryptedFile = yield platform.aesCbcEncrypt(fileData, fileKey, true);\r\n const res = yield platform.fileUpload(uploadInfo.url, uploadInfo.parameters, encryptedFile);\r\n if (res.statusCode !== uploadInfo.success_status_code) {\r\n throw new Error(`Upload failed (${res.statusMessage}), code ${res.statusCode}`);\r\n }\r\n return {\r\n id: uploadInfo.file_id,\r\n name: fileName,\r\n title: fileName,\r\n key: webSafe64FromBytes(fileKey),\r\n lastModified: new Date().getTime(),\r\n size: encryptedFile.length,\r\n type: '',\r\n };\r\n });\r\n }\r\n}\r\n//# sourceMappingURL=vault.js.map","references":["/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/auth.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/commands.ts","/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/src/platform.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\":\"vault.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/vault.ts\"],\"names\":[],\"mappings\":\";AACA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAGhB,wBAAwB,EAExB,oBAAoB,EAEpB,yBAAyB,EAEzB,eAAe,EACkB,mBAAmB,EACvD,MAAM,YAAY,CAAA;AACnB,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACnC,OAAO,EACH,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACvB,0BAA0B,EAC1B,qB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aAAa,CAAC,UAAU,GAAG,CAAC,CAAA;YAC5B,aAAa,CAAC,eAAe,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YACrD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAA;YAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YACvC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;YACvB,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAA;YACvC,wEAAwE;YACxE,MAAM,aAAa,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;YAC3E,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,UAAU,EAAE,aAAa,CAAC,CAAA;YAC3F,IAAI,GAAG,CAAC,UAAU,KAAK,UAAU,CAAC,mBAAmB,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,CAAC,aAAa,WAAW,GAAG,CAAC,UAAU,EAAE,CAAC,CAAA;aAClF;YACD,OAAO;gBACH,EAAE,EAAE,UAAU,CAAC,OAAO;gBACtB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,GAAG,EAAE,kBAAkB,CAAC,OAAO,CAAC;gBAChC,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;gBAClC,IAAI,EAAE,aAAa,CAAC,MAAM;gBAC1B,IAAI,EAAE,EAAE;aACX,CAAA;QACL,CAAC;KAAA;CACJ\"}","dts":{"name":"/Users/saldoukhov/Documents/Code/Keeper/keeper-sdk-javascript/keeperapi/vault.d.ts","writeByteOrderMark":false,"text":"import { Auth } from './auth';\r\nimport { RecordData, RecordMetaData, RecordShareUpdateResponse, SharedFolder, SyncDataInclude, DeleteResponse } from './commands';\r\nimport { Records } from './proto';\r\nexport declare class Vault {\r\n private auth;\r\n private _includes;\r\n private _records;\r\n private _sharedFolders;\r\n private _revision;\r\n noTypedRecords: boolean;\r\n constructor(auth: Auth);\r\n private getRecord;\r\n get includes(): SyncDataInclude[];\r\n get revision(): number;\r\n get records(): VaultRecord[];\r\n get sharedFolders(): VaultSharedFolder[];\r\n get recordUids(): string[];\r\n get sharedFolderUids(): string[];\r\n recordByUid(record_uid: string): VaultRecord;\r\n recordByUidBytes(record_uid: Uint8Array): VaultRecord;\r\n decryptKey(encryptedKey: string, keyType: number): Promise<Uint8Array>;\r\n setIncludes(includes: SyncDataInclude[]): void;\r\n syncDown(revision?: number, logResponse?: boolean): Promise<void>;\r\n addRecord(recordData: KeeperRecordData, sharedFolderUid?: string, files?: [ExtraFile]): Promise<string>;\r\n addRecordNew(recordData: any, sharedFolderUid?: string, linkedRecords?: string[]): Promise<Records.IRecordsModifyResponse>;\r\n addRecordsNew(recordsData: any[]): Promise<Records.IRecordsModifyResponse>;\r\n uploadFile(fileName: string, fileData: Uint8Array, thumbnailData?: Uint8Array): Promise<string>;\r\n uploadFileData(url: string, parameters: string, successStatusCode: number, encryptedData: Uint8Array): Promise<void>;\r\n downloadFile(recordUid: string, thumbNail: boolean): Promise<Uint8Array>;\r\n addApplication(appData: any): Promise<string>;\r\n updateRecordV2(update: RecordUpdateV2): Promise<void>;\r\n updateRecord(update: RecordUpdate): Promise<Records.IRecordsModifyResponse>;\r\n updateRecords(updates: RecordUpdate[]): Promise<Records.IRecordsModifyResponse>;\r\n deleteRecords(recordUids: string[]): Promise<DeleteResponse>;\r\n cleanTrash(): Promise<void>;\r\n createSharedFolder(folderName: string): Promise<string>;\r\n addUserToSharedFolder(sharedFolderUid: string, user: string): Promise<void>;\r\n deleteSharedFolders(sharedFolderUids: string[]): Promise<void>;\r\n fetchUserPublicKey(user: string): Promise<string>;\r\n fetchUserPublicKeyEC(user: string): Promise<Uint8Array>;\r\n shareRecords(recordUids: string[], share: RecordShare): Promise<RecordShareUpdateResponse>;\r\n shareRecordsEC(recordUids: string[], share: RecordShare): Promise<RecordShareUpdateResponse>;\r\n uploadFileOld(fileName: string, fileData: Uint8Array, thumbnailData?: Uint8Array): Promise<ExtraFile>;\r\n}\r\nexport interface VaultRecord {\r\n recordData?: RecordData;\r\n metaData?: RecordMetaData;\r\n key?: Uint8Array;\r\n data?: KeeperRecordData;\r\n extra?: KeeperRecordExtra;\r\n sharedFolderUid?: string;\r\n sharedFolderFolderUid?: string;\r\n nonSharedData?: any;\r\n audit?: KeeperRecordAudit;\r\n links?: string[];\r\n}\r\nexport interface VaultSharedFolder {\r\n sharedFolder?: SharedFolder;\r\n key?: Uint8Array;\r\n}\r\nexport interface KeeperRecordData {\r\n title?: string;\r\n secret1?: string;\r\n secret2?: string;\r\n link?: string;\r\n notes?: string;\r\n custom?: {\r\n name?: string;\r\n value?: string;\r\n }[];\r\n}\r\nexport interface KeeperRecordExtra {\r\n fields: ExtraField[];\r\n files: ExtraFile[];\r\n}\r\nexport interface KeeperRecordAudit {\r\n version: number;\r\n data: any;\r\n}\r\nexport interface RecordShare {\r\n to_user: string;\r\n shareable: boolean;\r\n editable: boolean;\r\n}\r\nexport interface RecordUpdateV2 {\r\n record_uid: string;\r\n data?: KeeperRecordData;\r\n nonSharedData?: any;\r\n udata?: {\r\n file_ids: string[];\r\n };\r\n}\r\nexport interface RecordUpdate {\r\n record_uid: string;\r\n data?: KeeperRecordData;\r\n nonSharedData?: any;\r\n audit?: KeeperRecordAudit;\r\n add_links?: string[];\r\n remove_links?: string[];\r\n}\r\nexport interface ExtraField {\r\n id: string;\r\n field_type: 'totp';\r\n field_title: string;\r\n type: number;\r\n data: string;\r\n}\r\nexport interface ExtraFile {\r\n id: string;\r\n name?: string;\r\n lastModified?: number;\r\n size?: number;\r\n type?: string;\r\n title?: string;\r\n key?: string;\r\n thumbs?: FileThumb[];\r\n}\r\nexport interface FileThumb {\r\n id: string;\r\n size: number;\r\n type: 'image/jpg';\r\n}\r\n"}}
|
|
1
|
+
{"code":"import { __awaiter } from \"tslib\";\r\nimport { DeleteCommand, FolderAddCommand, PreDeleteCommand, PublicKeysCommand, PurgeDeletedRecordsCommand, RecordAddCommand, RecordShareUpdateCommand, RequestUploadCommand, SharedFolderUpdateCommand, SyncDownCommand, RecordUpdateCommand } from './commands';\r\nimport { platform } from './platform';\r\nimport { decryptFromStorage, decryptFromStorageGcm, decryptKey, encryptForStorage, encryptObjectForStorage, encryptObjectForStorageGCM, generateEncryptionKey, generateUid, normal64, normal64Bytes, shareKey, shareKeyEC, webSafe64FromBytes } from './utils';\r\nimport { applicationAddMessage, fileAddMessage, fileDownloadMessage, getEnterprisePublicKeyMessage, recordsAddMessage, recordsUpdateMessage } from './restMessages';\r\nimport { Records } from './proto';\r\nvar RecordFolderType = Records.RecordFolderType;\r\nvar FileAddResult = Records.FileAddResult;\r\nfunction decryptRecord(record) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n try {\r\n const dataBytes = record.recordData.version < 3\r\n ? yield decryptFromStorage(record.recordData.data, record.key)\r\n : yield decryptFromStorageGcm(record.recordData.data, record.key);\r\n record.data = JSON.parse(platform.bytesToString(dataBytes));\r\n if (record.recordData.extra) {\r\n record.extra = JSON.parse(platform.bytesToString(yield decryptFromStorage(record.recordData.extra, record.key)));\r\n }\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n });\r\n}\r\nexport class Vault {\r\n constructor(auth) {\r\n this.auth = auth;\r\n this._includes = ['folders', 'non_shared_data', 'record', 'shared_folder', 'sfheaders', 'sfrecords', 'sfusers'];\r\n this._records = {};\r\n this._sharedFolders = {};\r\n this._revision = 0;\r\n this.noTypedRecords = false;\r\n }\r\n getRecord(recordUid) {\r\n let record = this._records[recordUid];\r\n let isNew = false;\r\n if (!record) {\r\n record = {};\r\n this._records[recordUid] = record;\r\n isNew = true;\r\n }\r\n return { record, isNew };\r\n }\r\n get includes() {\r\n return this._includes;\r\n }\r\n get revision() {\r\n return this._revision;\r\n }\r\n get records() {\r\n return Object.values(this._records);\r\n }\r\n get sharedFolders() {\r\n return Object.values(this._sharedFolders);\r\n }\r\n get recordUids() {\r\n return Object.keys(this._records);\r\n }\r\n get sharedFolderUids() {\r\n return Object.keys(this._sharedFolders);\r\n }\r\n recordByUid(record_uid) {\r\n return this._records[record_uid];\r\n }\r\n recordByUidBytes(record_uid) {\r\n return this.recordByUid(webSafe64FromBytes(record_uid));\r\n }\r\n decryptKey(encryptedKey, keyType) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n switch (keyType) {\r\n case 1:\r\n return decryptFromStorage(encryptedKey, this.auth.dataKey);\r\n case 2:\r\n return platform.privateDecrypt(normal64Bytes(encryptedKey), this.auth.privateKey);\r\n case 3:\r\n return decryptKey(encryptedKey, this.auth.dataKey);\r\n case 4:\r\n return platform.privateDecryptEC(normal64Bytes(encryptedKey), this.auth.eccPrivateKey);\r\n default:\r\n throw new Error(`Unknown key type: ${keyType}`);\r\n }\r\n });\r\n }\r\n setIncludes(includes) {\r\n this._includes = includes;\r\n }\r\n // todo: remove logResponse in favor of a unified log levels solution\r\n syncDown(revision, logResponse) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (typeof revision === 'number') {\r\n this._revision = revision;\r\n }\r\n console.log(`syncing revision ${this._revision} for ${this.auth.username}`);\r\n let syncDownCommand = new SyncDownCommand(this._revision);\r\n syncDownCommand.include = [...this._includes];\r\n if (!this.noTypedRecords) {\r\n syncDownCommand.include.push('typed_record', 'app_record');\r\n }\r\n let syncDownResponse = yield this.auth.executeCommand(syncDownCommand);\r\n if (logResponse) {\r\n console.log(syncDownResponse);\r\n // console.log(syncDownResponse.shared_folders[0].records)\r\n }\r\n this._revision = syncDownResponse.revision;\r\n if (syncDownResponse.full_sync) {\r\n this._records = {};\r\n }\r\n let added = 0;\r\n let updated = 0;\r\n let removed = 0;\r\n for (let recordData of syncDownResponse.records || []) {\r\n let { record, isNew } = this.getRecord(recordData.record_uid);\r\n record.recordData = recordData;\r\n if (isNew) {\r\n added++;\r\n }\r\n else {\r\n updated++;\r\n }\r\n }\r\n for (let meta of syncDownResponse.record_meta_data || []) {\r\n let { record } = this.getRecord(meta.record_uid);\r\n record.metaData = meta;\r\n try {\r\n record.key = yield this.decryptKey(meta.record_key, meta.record_key_type);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n yield decryptRecord(record);\r\n }\r\n for (let sharedFolder of syncDownResponse.shared_folders || []) {\r\n let vaultFolder = {\r\n sharedFolder: sharedFolder\r\n };\r\n this._sharedFolders[sharedFolder.shared_folder_uid] = vaultFolder;\r\n if (!(sharedFolder.shared_folder_key && sharedFolder.key_type)) {\r\n continue;\r\n }\r\n try {\r\n vaultFolder.key = yield this.decryptKey(sharedFolder.shared_folder_key, sharedFolder.key_type);\r\n for (let sfRecord of sharedFolder.records || []) {\r\n let recordKey;\r\n try {\r\n recordKey = sfRecord.record_key.length === 80\r\n ? yield decryptKey(sfRecord.record_key, vaultFolder.key) // GCM\r\n : decryptFromStorage(sfRecord.record_key, vaultFolder.key); // CBC\r\n let { record } = this.getRecord(sfRecord.record_uid);\r\n record.key = recordKey;\r\n record.sharedFolderUid = sharedFolder.shared_folder_uid;\r\n yield decryptRecord(record);\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n }\r\n for (let team of syncDownResponse.teams || []) {\r\n const teamKey = yield this.decryptKey(team.team_key, team.team_key_type);\r\n for (let folderKey of team.shared_folder_keys || []) {\r\n let decryptedFolderKey;\r\n switch (folderKey.key_type) {\r\n case 1:\r\n decryptedFolderKey = decryptFromStorage(folderKey.shared_folder_key, teamKey);\r\n break;\r\n case 2:\r\n const teamPrivateKey = yield decryptFromStorage(team.team_private_key, teamKey);\r\n decryptedFolderKey = platform.privateDecrypt(normal64Bytes(folderKey.shared_folder_key), teamPrivateKey);\r\n break;\r\n default:\r\n throw new Error(`Unknown key type: ${folderKey.key_type}`);\r\n }\r\n this._sharedFolders[folderKey.shared_folder_uid].key = decryptedFolderKey;\r\n }\r\n }\r\n for (let sffRecord of syncDownResponse.shared_folder_folder_records || []) {\r\n let { record } = this.getRecord(sffRecord.record_uid);\r\n record.sharedFolderFolderUid = sffRecord.folder_uid;\r\n }\r\n for (let uid of syncDownResponse.removed_records || []) {\r\n if (this.records[uid]) {\r\n removed++;\r\n delete this.records[uid];\r\n }\r\n }\r\n for (let non_shared_data of syncDownResponse.non_shared_data || []) {\r\n let { record } = this.getRecord(non_shared_data.record_uid);\r\n try {\r\n const nonSharedData = record.recordData.version > 2\r\n ? yield decryptFromStorageGcm(non_shared_data.data, this.auth.dataKey)\r\n : yield decryptFromStorage(non_shared_data.data, this.auth.dataKey);\r\n record.nonSharedData = JSON.parse(platform.bytesToString(nonSharedData));\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n }\r\n for (let record of this.records.filter(x => { var _a; return !!((_a = x.recordData) === null || _a === void 0 ? void 0 : _a.owner_uid); })) {\r\n const owner = this._records[record.recordData.owner_uid];\r\n if (!owner.links) {\r\n owner.links = [];\r\n }\r\n owner.links.push(record.recordData.record_uid);\r\n record.key = yield decryptKey(record.recordData.link_key, owner.key);\r\n yield decryptRecord(record);\r\n }\r\n if (added > 0)\r\n console.log(`${added} records added.`);\r\n if (updated > 0)\r\n console.log(`${updated} records updated.`);\r\n if (removed > 0)\r\n console.log(`${removed} records removed.`);\r\n console.log(`Synced to the revision ${syncDownResponse.revision}`);\r\n console.log(`${Object.keys(this._records).length} records are in the vault.`);\r\n });\r\n }\r\n addRecord(recordData, sharedFolderUid, files) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let recordAddCommand = new RecordAddCommand();\r\n recordAddCommand.record_uid = generateUid();\r\n let recordKey = generateEncryptionKey();\r\n recordAddCommand.record_key = yield encryptForStorage(recordKey, this.auth.dataKey);\r\n recordAddCommand.record_type = 'password';\r\n recordAddCommand.data = yield encryptForStorage(platform.stringToBytes(JSON.stringify(recordData)), recordKey);\r\n recordAddCommand.how_long_ago = 0;\r\n if (sharedFolderUid) {\r\n recordAddCommand.folder_type = 'shared_folder';\r\n recordAddCommand.folder_uid = sharedFolderUid;\r\n recordAddCommand.folder_key = yield encryptForStorage(recordKey, this._sharedFolders[sharedFolderUid].key);\r\n }\r\n else {\r\n recordAddCommand.folder_type = 'user_folder';\r\n }\r\n if (files) {\r\n let extra = {\r\n fields: [],\r\n files: files\r\n };\r\n recordAddCommand.extra = yield encryptForStorage(platform.stringToBytes(JSON.stringify(extra)), recordKey);\r\n recordAddCommand.file_ids = files.map(x => x.id);\r\n }\r\n yield this.auth.executeCommand(recordAddCommand);\r\n return recordAddCommand.record_uid;\r\n });\r\n }\r\n addRecordNew(recordData, sharedFolderUid, linkedRecords) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(recordData, recordKey);\r\n let recordAdd = {\r\n recordUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n clientModifiedTime: new Date().getTime()\r\n };\r\n if (sharedFolderUid) {\r\n recordAdd.folderType = RecordFolderType.shared_folder;\r\n recordAdd.folderUid = normal64Bytes(sharedFolderUid);\r\n recordAdd.folderKey = yield platform.aesGcmEncrypt(recordKey, this._sharedFolders[sharedFolderUid].key);\r\n }\r\n if (linkedRecords) {\r\n let links = [];\r\n for (const linkedRecord of linkedRecords) {\r\n const linkedRecordKey = generateEncryptionKey();\r\n // const linkedRecordKey = await platform.aesGcmEncrypt(this._records[linkedRecord].key, recordKey)\r\n links.push({\r\n recordUid: normal64Bytes(linkedRecord),\r\n recordKey: linkedRecordKey\r\n });\r\n }\r\n recordAdd.recordLinks = links;\r\n }\r\n const recordAddResponse = yield this.auth.executeRest(recordsAddMessage({\r\n clientTime: new Date().getTime(),\r\n records: [recordAdd]\r\n }));\r\n const recordUid = webSafe64FromBytes(recordAdd.recordUid);\r\n this._records[recordUid] = {\r\n recordData: {\r\n record_uid: recordUid,\r\n version: 3\r\n },\r\n key: recordKey\r\n };\r\n return recordAddResponse;\r\n });\r\n }\r\n addRecordsNew(recordsData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const now = new Date().getTime();\r\n let records = [];\r\n let keys = {};\r\n for (const recordData of recordsData) {\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(recordData, recordKey);\r\n let recordAdd = {\r\n recordUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n clientModifiedTime: now\r\n };\r\n records.push(recordAdd);\r\n keys[webSafe64FromBytes(recordAdd.recordUid)] = recordKey;\r\n }\r\n const recordsAddResponse = yield this.auth.executeRest(recordsAddMessage({\r\n clientTime: now,\r\n records: records\r\n }));\r\n for (const recordResponse of recordsAddResponse.records) {\r\n const recordUid = webSafe64FromBytes(recordResponse.recordUid);\r\n this._records[recordUid] = {\r\n recordData: {\r\n record_uid: recordUid,\r\n version: 3\r\n },\r\n key: keys[recordUid]\r\n };\r\n }\r\n return recordsAddResponse;\r\n });\r\n }\r\n uploadFile(fileName, fileData, thumbnailData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const fileMetaData = {\r\n name: fileName,\r\n hasThumbnail: !!thumbnailData\r\n };\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(fileMetaData, recordKey);\r\n const encryptedFile = yield platform.aesGcmEncrypt(fileData, recordKey);\r\n const encryptedThumbnail = thumbnailData\r\n ? yield platform.aesGcmEncrypt(thumbnailData, recordKey)\r\n : undefined;\r\n const fileRequest = {\r\n clientTime: new Date().getTime(),\r\n files: [\r\n {\r\n recordUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n fileSize: encryptedFile.length,\r\n thumbSize: encryptedThumbnail ? encryptedThumbnail.length : undefined\r\n }\r\n ]\r\n };\r\n console.log(fileRequest);\r\n const rq = fileAddMessage(fileRequest);\r\n const fileAddResponse = yield this.auth.executeRest(rq);\r\n const file = fileAddResponse.files[0];\r\n if (file.status !== FileAddResult.FA_SUCCESS)\r\n throw new Error(`Error adding a file record for ${fileName}`);\r\n console.log(file.url);\r\n yield this.uploadFileData(file.url, file.parameters, file.successStatusCode, encryptedFile);\r\n if (encryptedThumbnail) {\r\n yield this.uploadFileData(file.url, file.thumbnailParameters, file.successStatusCode, encryptedThumbnail);\r\n }\r\n const fileUid = webSafe64FromBytes(file.recordUid);\r\n this._records[fileUid] = {\r\n recordData: {\r\n record_uid: fileUid,\r\n version: 4\r\n },\r\n key: recordKey\r\n };\r\n return fileUid;\r\n });\r\n }\r\n uploadFileData(url, parameters, successStatusCode, encryptedData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const res = yield platform.fileUpload(url, JSON.parse(parameters), encryptedData);\r\n if (res.statusCode !== successStatusCode) {\r\n throw new Error(`Upload failed (${res.statusMessage}), code ${res.statusCode}`);\r\n }\r\n });\r\n }\r\n downloadFile(recordUid, thumbNail) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const rq = fileDownloadMessage({\r\n recordUids: [\r\n normal64Bytes(recordUid)\r\n ],\r\n forThumbnails: thumbNail\r\n });\r\n let resp = yield this.auth.executeRest(rq);\r\n let file = resp.files[0];\r\n console.log(resp);\r\n console.log(file);\r\n const fileResponse = yield platform.get(file.url, {});\r\n console.log(fileResponse);\r\n switch (file.fileKeyType) {\r\n case Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY:\r\n return platform.aesCbcDecrypt(fileResponse.data, this._records[recordUid].key, false);\r\n case Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM:\r\n return platform.aesGcmDecrypt(fileResponse.data, this._records[recordUid].key);\r\n default:\r\n throw Error(`Unsupported kile key type: ${file.fileKeyType}`);\r\n }\r\n });\r\n }\r\n addApplication(appData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const recordKey = generateEncryptionKey();\r\n const encryptedKey = yield platform.aesGcmEncrypt(recordKey, this.auth.dataKey);\r\n const encryptedData = yield encryptObjectForStorageGCM(appData, recordKey);\r\n let applicationAdd = {\r\n appUid: platform.getRandomBytes(16),\r\n recordKey: encryptedKey,\r\n data: encryptedData,\r\n clientModifiedTime: new Date().getTime()\r\n };\r\n yield this.auth.executeRest(applicationAddMessage(applicationAdd));\r\n return webSafe64FromBytes(applicationAdd.appUid);\r\n });\r\n }\r\n updateRecordV2(update) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const record = this._records[update.record_uid];\r\n const encryptedData = update.data\r\n ? yield encryptObjectForStorage(update.data, record.key)\r\n : undefined;\r\n const encryptedExtra = yield encryptObjectForStorage(record.extra, record.key);\r\n let nonSharedData = undefined;\r\n if (update.nonSharedData || update.nonSharedData === null) {\r\n if (update.nonSharedData == null) {\r\n nonSharedData = Uint8Array.of(0);\r\n }\r\n else {\r\n nonSharedData = encryptObjectForStorage(update.nonSharedData, this.auth.dataKey);\r\n }\r\n }\r\n const updateCommand = new RecordUpdateCommand();\r\n updateCommand.client_time = new Date().getTime();\r\n updateCommand.update_records = [\r\n {\r\n record_uid: update.record_uid,\r\n client_modified_time: new Date().getTime(),\r\n data: encryptedData,\r\n extra: encryptedExtra,\r\n non_shared_data: nonSharedData,\r\n revision: record.recordData.revision,\r\n version: 2,\r\n udata: update.udata,\r\n }\r\n ];\r\n const resp = yield this.auth.executeCommand(updateCommand);\r\n console.log(resp);\r\n });\r\n }\r\n updateRecord(update) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.updateRecords([update]);\r\n });\r\n }\r\n updateRecords(updates) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const request = {\r\n clientTime: new Date().getTime(),\r\n records: []\r\n };\r\n for (const update of updates) {\r\n const record = this._records[update.record_uid];\r\n const encryptedData = update.data\r\n ? yield encryptObjectForStorageGCM(update.data, record.key)\r\n : undefined;\r\n let nonSharedData = undefined;\r\n if (update.nonSharedData || update.nonSharedData === null) {\r\n if (update.nonSharedData == null) {\r\n nonSharedData = Uint8Array.of(0);\r\n }\r\n else {\r\n nonSharedData = yield encryptObjectForStorageGCM(update.nonSharedData, this.auth.dataKey, false);\r\n }\r\n }\r\n let recordAudit = undefined;\r\n if (update.audit) {\r\n const pubKeyResponse = yield this.auth.executeRest(getEnterprisePublicKeyMessage());\r\n const auditBytes = platform.stringToBytes(JSON.stringify(update.audit.data));\r\n const auditData = yield platform.publicEncryptEC(auditBytes, pubKeyResponse.enterpriseECCPublicKey);\r\n recordAudit = {\r\n version: update.audit.version,\r\n data: auditData\r\n };\r\n }\r\n let addedLinks = undefined;\r\n if (update.add_links) {\r\n addedLinks = [];\r\n for (const linkedRecord of update.add_links) {\r\n const linkedRecordKey = yield platform.aesGcmEncrypt(this._records[linkedRecord].key, record.key);\r\n addedLinks.push({\r\n recordUid: normal64Bytes(linkedRecord),\r\n recordKey: linkedRecordKey\r\n });\r\n }\r\n }\r\n let removedLinks = update.remove_links\r\n ? update.remove_links.map(x => normal64Bytes(x))\r\n : undefined;\r\n request.records.push({\r\n recordUid: normal64Bytes(update.record_uid),\r\n data: encryptedData,\r\n nonSharedData: nonSharedData,\r\n audit: recordAudit,\r\n recordLinksAdd: addedLinks,\r\n recordLinksRemove: removedLinks,\r\n clientModifiedTime: new Date().getTime(),\r\n revision: record.recordData.revision\r\n });\r\n console.log(`Updating record ${update.record_uid} revision ${record.recordData.revision}`);\r\n }\r\n const updateMsg = recordsUpdateMessage(request);\r\n const response = yield this.auth.executeRest(updateMsg);\r\n const revision = response.revision;\r\n for (const record of response.records) {\r\n this._records[webSafe64FromBytes(record.recordUid)].recordData.revision = revision;\r\n }\r\n return response;\r\n });\r\n }\r\n deleteRecords(recordUids) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const preDeleteCommand = new PreDeleteCommand();\r\n preDeleteCommand.objects = recordUids.map(x => {\r\n return {\r\n object_uid: x,\r\n object_type: 'record',\r\n from_type: 'user_folder',\r\n delete_resolution: 'unlink'\r\n };\r\n });\r\n const preDeleteResult = yield this.auth.executeCommand(preDeleteCommand);\r\n const deleteCommand = new DeleteCommand();\r\n deleteCommand.pre_delete_token = preDeleteResult.pre_delete_response.pre_delete_token;\r\n return this.auth.executeCommand(deleteCommand);\r\n });\r\n }\r\n cleanTrash() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n yield this.auth.executeCommand(new PurgeDeletedRecordsCommand());\r\n });\r\n }\r\n createSharedFolder(folderName) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let folderKey = generateEncryptionKey();\r\n let folderUid = generateUid();\r\n const faCommand = new FolderAddCommand();\r\n faCommand.name = yield encryptForStorage(platform.stringToBytes(folderName), folderKey);\r\n faCommand.folder_uid = folderUid;\r\n faCommand.folder_type = 'shared_folder';\r\n faCommand.key = yield encryptForStorage(folderKey, this.auth.dataKey);\r\n faCommand.data = yield encryptObjectForStorage({ name: folderName + '1', color: '#FF0000' }, folderKey);\r\n const addFolderResponse = yield this.auth.executeCommand(faCommand);\r\n this._revision = addFolderResponse.revision;\r\n this._sharedFolders[folderUid] = {\r\n key: folderKey\r\n };\r\n return folderUid;\r\n });\r\n }\r\n addUserToSharedFolder(sharedFolderUid, user) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const sharedFolder = this._sharedFolders[sharedFolderUid];\r\n const userPublicKey = yield this.fetchUserPublicKey(user);\r\n const sfuCommand = new SharedFolderUpdateCommand();\r\n sfuCommand.operation = 'update';\r\n sfuCommand.name = yield encryptForStorage(platform.stringToBytes('sftest2'), sharedFolder.key);\r\n sfuCommand.shared_folder_uid = sharedFolderUid;\r\n sfuCommand.revision = this._revision;\r\n sfuCommand.add_users = [{\r\n username: user,\r\n manage_records: false,\r\n manage_users: false,\r\n shared_folder_key: shareKey(sharedFolder.key, userPublicKey)\r\n }];\r\n yield this.auth.executeCommand(sfuCommand);\r\n });\r\n }\r\n deleteSharedFolders(sharedFolderUids) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n for (let sharedFolderUid of sharedFolderUids) {\r\n const sfuCommand = new SharedFolderUpdateCommand();\r\n sfuCommand.operation = 'delete';\r\n sfuCommand.shared_folder_uid = sharedFolderUid;\r\n yield this.auth.executeCommand(sfuCommand);\r\n }\r\n // only can leave shared folders if not the owner\r\n // {\"command\":\"shared_folder_update\",\"pt\":\"-n4s_eSHBZzOMRZQtX0gDg\",\"operation\":\"update\",\"shared_folder_uid\":\"PFe3TzKS6wq3YtXivxR6oA\",\"revision\":944012,\r\n // \"remove_users\":[{\"username\":\"saldoukhov@gmail.com\"}],\"locale\":\"en_US\",\"username\":\"saldoukhov@gmail.com\",\"session_token\":\"6X8lJLgDecS2IKTwErliMX0UKYkhznDWS59asu4kVeN3GMidq--T1kyBJ1YSJ9hxm67qsMkXeG5egEGaAQ_YjVc6CrhyFJovS4mOIZ3APLVdiylEroLQbsttCgkF\",\"client_version\":\"w14.13.0\"}\r\n });\r\n }\r\n fetchUserPublicKey(user) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const publicKeysCommand = new PublicKeysCommand();\r\n publicKeysCommand.key_owners = [user];\r\n const publicKeys = yield this.auth.executeCommand(publicKeysCommand);\r\n if (!publicKeys.public_keys[0].public_key) {\r\n throw new Error(publicKeys.public_keys[0].message);\r\n }\r\n return normal64(publicKeys.public_keys[0].public_key);\r\n });\r\n }\r\n fetchUserPublicKeyEC(user) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const publicKeysCommand = new PublicKeysCommand();\r\n publicKeysCommand.key_owners = [user];\r\n const publicKeys = yield this.auth.executeCommand(publicKeysCommand);\r\n if (!publicKeys.public_keys[0].public_key) {\r\n throw new Error(publicKeys.public_keys[0].message);\r\n }\r\n return null;\r\n // return normal64(publicKeys.public_keys[0].public_key)\r\n });\r\n }\r\n shareRecords(recordUids, share) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const userPublicKey = yield this.fetchUserPublicKey(share.to_user);\r\n const shareCommand = new RecordShareUpdateCommand();\r\n let shareObjects = [];\r\n for (const recordUid of recordUids) {\r\n const recordKey = shareKey(this._records[recordUid].key, userPublicKey);\r\n const so = {\r\n record_uid: recordUid,\r\n record_key: recordKey,\r\n to_username: share.to_user,\r\n shareable: share.shareable,\r\n editable: share.editable\r\n };\r\n shareObjects.push(so);\r\n }\r\n shareCommand.add_shares = shareObjects;\r\n return this.auth.executeCommand(shareCommand);\r\n });\r\n }\r\n shareRecordsEC(recordUids, share) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const userPublicKey = yield this.fetchUserPublicKeyEC(share.to_user);\r\n const shareCommand = new RecordShareUpdateCommand();\r\n let shareObjects = [];\r\n for (const recordUid of recordUids) {\r\n const recordKey = yield shareKeyEC(this._records[recordUid].key, userPublicKey);\r\n const so = {\r\n record_uid: recordUid,\r\n record_key: recordKey,\r\n to_username: share.to_user,\r\n shareable: share.shareable,\r\n editable: share.editable\r\n };\r\n shareObjects.push(so);\r\n }\r\n shareCommand.add_shares = shareObjects;\r\n return this.auth.executeCommand(shareCommand);\r\n });\r\n }\r\n uploadFileOld(fileName, fileData, thumbnailData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const uploadCommand = new RequestUploadCommand();\r\n uploadCommand.file_count = 1;\r\n uploadCommand.thumbnail_count = thumbnailData ? 1 : 0;\r\n const resp = yield this.auth.executeCommand(uploadCommand);\r\n const uploadInfo = resp.file_uploads[0];\r\n console.log(uploadInfo);\r\n const fileKey = generateEncryptionKey();\r\n // const encryptedFile = await platform.aesGcmEncrypt(fileData, fileKey)\r\n const encryptedFile = yield platform.aesCbcEncrypt(fileData, fileKey, true);\r\n const res = yield platform.fileUpload(uploadInfo.url, uploadInfo.parameters, encryptedFile);\r\n if (res.statusCode !== uploadInfo.success_status_code) {\r\n throw new Error(`Upload failed (${res.statusMessage}), code ${res.statusCode}`);\r\n }\r\n return {\r\n id: uploadInfo.file_id,\r\n name: fileName,\r\n title: fileName,\r\n key: webSafe64FromBytes(fileKey),\r\n lastModified: new Date().getTime(),\r\n size: encryptedFile.length,\r\n type: '',\r\n };\r\n });\r\n }\r\n}\r\n//# sourceMappingURL=vault.js.map","references":["/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/auth.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/commands.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/platform.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/utils.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/restMessages.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/proto.d.ts"],"map":"{\"version\":3,\"file\":\"vault.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/vault.ts\"],\"names\":[],\"mappings\":\";AACA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAGhB,wBAAwB,EAExB,oBAAoB,EAEpB,yBAAyB,EAEzB,eAAe,EACkB,mBAAmB,EACvD,MAAM,YAAY,CAAA;AACnB,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACnC,OAAO,EACH,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,EACrB,WAAW,EACX,QAAQ,EACR,aAAa,EACb,QAAQ,EAAE,UAAU,EACpB,kBAAkB,EACrB,MAAM,SAAS,CAAA;AAChB,OAAO,EACH,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,iBAAiB,EACjB,oBAAoB,EACvB,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,CAAA;YAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;YACvC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;YACvB,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAA;YACvC,wEAAwE;YACxE,MAAM,aAAa,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;YAC3E,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,UAAU,EAAE,aAAa,CAAC,CAAA;YAC3F,IAAI,GAAG,CAAC,UAAU,KAAK,UAAU,CAAC,mBAAmB,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,CAAC,aAAa,WAAW,GAAG,CAAC,UAAU,EAAE,CAAC,CAAA;aAClF;YACD,OAAO;gBACH,EAAE,EAAE,UAAU,CAAC,OAAO;gBACtB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,GAAG,EAAE,kBAAkB,CAAC,OAAO,CAAC;gBAChC,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;gBAClC,IAAI,EAAE,aAAa,CAAC,MAAM;gBAC1B,IAAI,EAAE,EAAE;aACX,CAAA;QACL,CAAC;KAAA;CACJ\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/vault.d.ts","writeByteOrderMark":false,"text":"import { Auth } from './auth';\r\nimport { RecordData, RecordMetaData, RecordShareUpdateResponse, SharedFolder, SyncDataInclude, DeleteResponse } from './commands';\r\nimport { Records } from './proto';\r\nexport declare class Vault {\r\n private auth;\r\n private _includes;\r\n private _records;\r\n private _sharedFolders;\r\n private _revision;\r\n noTypedRecords: boolean;\r\n constructor(auth: Auth);\r\n private getRecord;\r\n get includes(): SyncDataInclude[];\r\n get revision(): number;\r\n get records(): VaultRecord[];\r\n get sharedFolders(): VaultSharedFolder[];\r\n get recordUids(): string[];\r\n get sharedFolderUids(): string[];\r\n recordByUid(record_uid: string): VaultRecord;\r\n recordByUidBytes(record_uid: Uint8Array): VaultRecord;\r\n decryptKey(encryptedKey: string, keyType: number): Promise<Uint8Array>;\r\n setIncludes(includes: SyncDataInclude[]): void;\r\n syncDown(revision?: number, logResponse?: boolean): Promise<void>;\r\n addRecord(recordData: KeeperRecordData, sharedFolderUid?: string, files?: [ExtraFile]): Promise<string>;\r\n addRecordNew(recordData: any, sharedFolderUid?: string, linkedRecords?: string[]): Promise<Records.IRecordsModifyResponse>;\r\n addRecordsNew(recordsData: any[]): Promise<Records.IRecordsModifyResponse>;\r\n uploadFile(fileName: string, fileData: Uint8Array, thumbnailData?: Uint8Array): Promise<string>;\r\n uploadFileData(url: string, parameters: string, successStatusCode: number, encryptedData: Uint8Array): Promise<void>;\r\n downloadFile(recordUid: string, thumbNail: boolean): Promise<Uint8Array>;\r\n addApplication(appData: any): Promise<string>;\r\n updateRecordV2(update: RecordUpdateV2): Promise<void>;\r\n updateRecord(update: RecordUpdate): Promise<Records.IRecordsModifyResponse>;\r\n updateRecords(updates: RecordUpdate[]): Promise<Records.IRecordsModifyResponse>;\r\n deleteRecords(recordUids: string[]): Promise<DeleteResponse>;\r\n cleanTrash(): Promise<void>;\r\n createSharedFolder(folderName: string): Promise<string>;\r\n addUserToSharedFolder(sharedFolderUid: string, user: string): Promise<void>;\r\n deleteSharedFolders(sharedFolderUids: string[]): Promise<void>;\r\n fetchUserPublicKey(user: string): Promise<string>;\r\n fetchUserPublicKeyEC(user: string): Promise<Uint8Array>;\r\n shareRecords(recordUids: string[], share: RecordShare): Promise<RecordShareUpdateResponse>;\r\n shareRecordsEC(recordUids: string[], share: RecordShare): Promise<RecordShareUpdateResponse>;\r\n uploadFileOld(fileName: string, fileData: Uint8Array, thumbnailData?: Uint8Array): Promise<ExtraFile>;\r\n}\r\nexport interface VaultRecord {\r\n recordData?: RecordData;\r\n metaData?: RecordMetaData;\r\n key?: Uint8Array;\r\n data?: KeeperRecordData;\r\n extra?: KeeperRecordExtra;\r\n sharedFolderUid?: string;\r\n sharedFolderFolderUid?: string;\r\n nonSharedData?: any;\r\n audit?: KeeperRecordAudit;\r\n links?: string[];\r\n}\r\nexport interface VaultSharedFolder {\r\n sharedFolder?: SharedFolder;\r\n key?: Uint8Array;\r\n}\r\nexport interface KeeperRecordData {\r\n title?: string;\r\n secret1?: string;\r\n secret2?: string;\r\n link?: string;\r\n notes?: string;\r\n custom?: {\r\n name?: string;\r\n value?: string;\r\n }[];\r\n}\r\nexport interface KeeperRecordExtra {\r\n fields: ExtraField[];\r\n files: ExtraFile[];\r\n}\r\nexport interface KeeperRecordAudit {\r\n version: number;\r\n data: any;\r\n}\r\nexport interface RecordShare {\r\n to_user: string;\r\n shareable: boolean;\r\n editable: boolean;\r\n}\r\nexport interface RecordUpdateV2 {\r\n record_uid: string;\r\n data?: KeeperRecordData;\r\n nonSharedData?: any;\r\n udata?: {\r\n file_ids: string[];\r\n };\r\n}\r\nexport interface RecordUpdate {\r\n record_uid: string;\r\n data?: KeeperRecordData;\r\n nonSharedData?: any;\r\n audit?: KeeperRecordAudit;\r\n add_links?: string[];\r\n remove_links?: string[];\r\n}\r\nexport interface ExtraField {\r\n id: string;\r\n field_type: 'totp';\r\n field_title: string;\r\n type: number;\r\n data: string;\r\n}\r\nexport interface ExtraFile {\r\n id: string;\r\n name?: string;\r\n lastModified?: number;\r\n size?: number;\r\n type?: string;\r\n title?: string;\r\n key?: string;\r\n thumbs?: FileThumb[];\r\n}\r\nexport interface FileThumb {\r\n id: string;\r\n size: number;\r\n type: 'image/jpg';\r\n}\r\n"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"code":"import { __awaiter } from \"tslib\";\r\nimport { platform } from './platform';\r\nimport { generateTransmissionKey, getKeeperUrl } from './utils';\r\nexport class VendorContext {\r\n constructor(configuration) {\r\n this.configuration = configuration;\r\n this.updateTransmissionKey(1);\r\n }\r\n updateTransmissionKey(keyNumber) {\r\n this.transmissionKey = generateTransmissionKey(keyNumber);\r\n }\r\n getEnterprise(enterpriseID) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.executeVendorRequest(`${this.configuration.vendorId}/enterprise/${enterpriseID}`, this.configuration.privateKey);\r\n });\r\n }\r\n postEnterprise(enterprise) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.executeVendorRequest(`${this.configuration.vendorId}/enterprise/`, this.configuration.privateKey, enterprise);\r\n });\r\n }\r\n postLicenseAdjustment(enterpriseID, adjustment) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.executeVendorRequest(`${this.configuration.vendorId}/license/${enterpriseID}`, this.configuration.privateKey, adjustment);\r\n });\r\n }\r\n executeVendorRequest(vendorPath, privateKey, payload) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let url = getKeeperUrl(this.configuration.host, `msp/v1/${vendorPath}`);\r\n let urlBytes = platform.stringToBytes(url.slice(url.indexOf('/rest/msp/v1/')));\r\n while (true) {\r\n let encryptedPayloadBytes = payload\r\n ? yield platform.aesGcmEncrypt(Buffer.from(JSON.stringify(payload)), this.transmissionKey.key)\r\n : new Uint8Array();\r\n let signatureBase = Uint8Array.of(...urlBytes, ...this.transmissionKey.encryptedKey, ...encryptedPayloadBytes);\r\n let signature = yield platform.privateSign(signatureBase, privateKey);\r\n let response;\r\n try {\r\n let headers = {\r\n Authorization: `Signature ${platform.bytesToBase64(signature)}`,\r\n TransmissionKey: platform.bytesToBase64(this.transmissionKey.encryptedKey),\r\n PublicKeyId: this.transmissionKey.publicKeyId,\r\n };\r\n response = payload\r\n ? yield platform.post(url, encryptedPayloadBytes, headers)\r\n : yield platform.get(url, headers);\r\n }\r\n catch (e) {\r\n console.log('ERR:' + e);\r\n }\r\n let decrypted;\r\n try {\r\n decrypted = yield platform.aesGcmDecrypt(response.data, this.transmissionKey.key);\r\n let json = JSON.parse(platform.bytesToString(decrypted));\r\n return json;\r\n }\r\n catch (e) {\r\n let error = platform.bytesToString(response.data);\r\n let errorObj = JSON.parse(error);\r\n if (errorObj.error === 'key') {\r\n this.updateTransmissionKey(errorObj.key_id);\r\n }\r\n else {\r\n throw (`Unable to decrypt response: ${error}`);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n}\r\n//# sourceMappingURL=vendorContext.js.map","references":["/
|
|
1
|
+
{"code":"import { __awaiter } from \"tslib\";\r\nimport { platform } from './platform';\r\nimport { generateTransmissionKey, getKeeperUrl } from './utils';\r\nexport class VendorContext {\r\n constructor(configuration) {\r\n this.configuration = configuration;\r\n this.updateTransmissionKey(1);\r\n }\r\n updateTransmissionKey(keyNumber) {\r\n this.transmissionKey = generateTransmissionKey(keyNumber);\r\n }\r\n getEnterprise(enterpriseID) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.executeVendorRequest(`${this.configuration.vendorId}/enterprise/${enterpriseID}`, this.configuration.privateKey);\r\n });\r\n }\r\n postEnterprise(enterprise) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.executeVendorRequest(`${this.configuration.vendorId}/enterprise/`, this.configuration.privateKey, enterprise);\r\n });\r\n }\r\n postLicenseAdjustment(enterpriseID, adjustment) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.executeVendorRequest(`${this.configuration.vendorId}/license/${enterpriseID}`, this.configuration.privateKey, adjustment);\r\n });\r\n }\r\n executeVendorRequest(vendorPath, privateKey, payload) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let url = getKeeperUrl(this.configuration.host, `msp/v1/${vendorPath}`);\r\n let urlBytes = platform.stringToBytes(url.slice(url.indexOf('/rest/msp/v1/')));\r\n while (true) {\r\n let encryptedPayloadBytes = payload\r\n ? yield platform.aesGcmEncrypt(Buffer.from(JSON.stringify(payload)), this.transmissionKey.key)\r\n : new Uint8Array();\r\n let signatureBase = Uint8Array.of(...urlBytes, ...this.transmissionKey.encryptedKey, ...encryptedPayloadBytes);\r\n let signature = yield platform.privateSign(signatureBase, privateKey);\r\n let response;\r\n try {\r\n let headers = {\r\n Authorization: `Signature ${platform.bytesToBase64(signature)}`,\r\n TransmissionKey: platform.bytesToBase64(this.transmissionKey.encryptedKey),\r\n PublicKeyId: this.transmissionKey.publicKeyId,\r\n };\r\n response = payload\r\n ? yield platform.post(url, encryptedPayloadBytes, headers)\r\n : yield platform.get(url, headers);\r\n }\r\n catch (e) {\r\n console.log('ERR:' + e);\r\n }\r\n let decrypted;\r\n try {\r\n decrypted = yield platform.aesGcmDecrypt(response.data, this.transmissionKey.key);\r\n let json = JSON.parse(platform.bytesToString(decrypted));\r\n return json;\r\n }\r\n catch (e) {\r\n let error = platform.bytesToString(response.data);\r\n let errorObj = JSON.parse(error);\r\n if (errorObj.error === 'key') {\r\n this.updateTransmissionKey(errorObj.key_id);\r\n }\r\n else {\r\n throw (`Unable to decrypt response: ${error}`);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n}\r\n//# sourceMappingURL=vendorContext.js.map","references":["/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/endpoint.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/vendorModel.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/configuration.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/platform.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/utils.ts"],"map":"{\"version\":3,\"file\":\"vendorContext.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/vendorContext.ts\"],\"names\":[],\"mappings\":\";AAGA,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,uBAAuB,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAE9D,MAAM,OAAO,aAAa;IAItB,YAAoB,aAAkC;QAAlC,kBAAa,GAAb,aAAa,CAAqB;QAClD,IAAI,CAAC,qBAA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,CAAC,CAAA;oBACjD,IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;oBAChC,IAAI,QAAQ,CAAC,KAAK,KAAK,KAAK,EAAE;wBAC1B,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;qBAC9C;yBAAM;wBACH,MAAK,CAAC,+BAA+B,KAAK,EAAE,CAAC,CAAA;qBAChD;iBACJ;aACJ;QACL,CAAC;KAAA;CACJ\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/vendorContext.d.ts","writeByteOrderMark":false,"text":"import { MSPEnterprise, EnterpriseBase, LicenseAdjustment } from \"./vendorModel\";\r\nimport { VendorConfiguration } from \"./configuration\";\r\nexport declare class VendorContext {\r\n private configuration;\r\n private transmissionKey;\r\n constructor(configuration: VendorConfiguration);\r\n private updateTransmissionKey;\r\n getEnterprise(enterpriseID: number): Promise<MSPEnterprise>;\r\n postEnterprise(enterprise: EnterpriseBase): Promise<MSPEnterprise>;\r\n postLicenseAdjustment(enterpriseID: number, adjustment: LicenseAdjustment): Promise<MSPEnterprise>;\r\n executeVendorRequest<T>(vendorPath: string, privateKey: string, payload?: any): Promise<T>;\r\n}\r\n"}}
|
|
@@ -1 +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,gCAAgC,GA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AM,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"}}
|
|
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":["/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/node_modules/protobufjs/index.d.ts","/home/runner/work/keeper-sdk-javascript/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,EAA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AAE,SAAS,CAAC,aAAa,CAAC,CAAC;AAE7F,MAAM,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":"/home/runner/work/keeper-sdk-javascript/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"}}
|