@keeper-security/keeperapi 16.0.1 → 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_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258 +0 -0
- package/babel.config.js +6 -0
- package/package.json +7 -10
- package/rollup.config.js +50 -0
- package/scripts/cleanDistFolder.js +9 -0
- package/src/__tests__/utils.test.js +13 -0
- package/src/auth.ts +1514 -0
- package/src/browser/asn1hex.ts +296 -0
- package/src/browser/index.ts +17 -0
- package/src/browser/jsbn.ts +1213 -0
- package/src/browser/platform.ts +434 -0
- package/src/browser/rng.ts +15 -0
- package/src/browser/rsa.ts +262 -0
- package/src/commands.ts +1378 -0
- package/src/company.ts +244 -0
- package/src/configuration.ts +125 -0
- package/src/endpoint.ts +350 -0
- package/src/node/index.ts +17 -0
- package/src/node/platform.ts +283 -0
- package/src/platform.ts +76 -0
- package/{dist → src}/proto.d.ts +0 -0
- package/src/proto.js +136564 -0
- package/src/restMessages.ts +311 -0
- package/src/utils.ts +169 -0
- package/src/vault.ts +844 -0
- package/src/vendorContext.ts +69 -0
- package/src/vendorModel.ts +36 -0
- package/tsconfig.json +14 -0
- package/tsconfig.rollup.json +14 -0
package/src/company.ts
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import {Auth} from "./auth";
|
|
2
|
+
import {
|
|
3
|
+
EnterpriseAllocateIdsCommand,
|
|
4
|
+
EnterpriseDataInclude,
|
|
5
|
+
GetEnterpriseDataCommand,
|
|
6
|
+
GetEnterpriseDataResponse,
|
|
7
|
+
NodeAddCommand,
|
|
8
|
+
RoleAddCommand,
|
|
9
|
+
TeamAddCommand,
|
|
10
|
+
EnterpriseUserAddCommand
|
|
11
|
+
} from "./commands";
|
|
12
|
+
import {
|
|
13
|
+
decryptFromStorage,
|
|
14
|
+
decryptObjectFromStorage,
|
|
15
|
+
encryptForStorage,
|
|
16
|
+
encryptObjectForStorage,
|
|
17
|
+
encryptKey,
|
|
18
|
+
decryptKey,
|
|
19
|
+
generateUid,
|
|
20
|
+
generateEncryptionKey,
|
|
21
|
+
webSafe64FromBytes, normal64Bytes
|
|
22
|
+
} from "./utils";
|
|
23
|
+
import {platform} from "./platform";
|
|
24
|
+
|
|
25
|
+
export class Company {
|
|
26
|
+
|
|
27
|
+
private _data: GetEnterpriseDataResponse;
|
|
28
|
+
private treeKey: Uint8Array;
|
|
29
|
+
|
|
30
|
+
constructor(private auth: Auth) {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async load(include: EnterpriseDataInclude[]) {
|
|
34
|
+
let getEnterpriseDataCommand = new GetEnterpriseDataCommand();
|
|
35
|
+
getEnterpriseDataCommand.include = include;
|
|
36
|
+
|
|
37
|
+
this._data = await this.auth.executeCommand(getEnterpriseDataCommand);
|
|
38
|
+
|
|
39
|
+
if (this._data.msp_key) {
|
|
40
|
+
let key4TreeKey
|
|
41
|
+
switch (this._data.msp_key.encrypted_msp_tree_key_type) {
|
|
42
|
+
case 'encrypted_by_data_key':
|
|
43
|
+
key4TreeKey = decryptFromStorage(this._data.msp_key.encrypted_msp_tree_key, this.auth.dataKey);
|
|
44
|
+
break;
|
|
45
|
+
case 'encrypted_by_public_key':
|
|
46
|
+
key4TreeKey = platform.privateDecrypt(normal64Bytes(this._data.msp_key.encrypted_msp_tree_key), this.auth.privateKey)
|
|
47
|
+
break;
|
|
48
|
+
case 'no_key':
|
|
49
|
+
throw new Error('invalid value for encrypted_msp_tree_key_type')
|
|
50
|
+
}
|
|
51
|
+
this.treeKey = await decryptKey(this._data.tree_key, key4TreeKey);
|
|
52
|
+
} else {
|
|
53
|
+
if (this._data.key_type_id === 1) {
|
|
54
|
+
this.treeKey = await decryptFromStorage(this._data.tree_key, this.auth.dataKey);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.treeKey = platform.privateDecrypt(normal64Bytes(this._data.tree_key), this.auth.privateKey)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!this._data.roles)
|
|
62
|
+
this._data.roles = [];
|
|
63
|
+
if (!this._data.teams)
|
|
64
|
+
this._data.teams = [];
|
|
65
|
+
if (!this._data.users)
|
|
66
|
+
this._data.users = [];
|
|
67
|
+
|
|
68
|
+
for (let node of this._data.nodes) {
|
|
69
|
+
node.displayName = (await decryptObjectFromStorage<EncryptedData>(node.encrypted_data, this.treeKey)).displayname;
|
|
70
|
+
if (node.parent_id) {
|
|
71
|
+
let parent = this._data.nodes.find(x => x.node_id == node.parent_id);
|
|
72
|
+
if (!parent) {
|
|
73
|
+
throw new Error(`Unable to find parent for node:${node.parent_id}`)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (!parent.nodes) {
|
|
77
|
+
parent.nodes = []
|
|
78
|
+
}
|
|
79
|
+
parent.nodes.push(node);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
for (let role of this._data.roles) {
|
|
84
|
+
|
|
85
|
+
if (role.role_type === "pool_manager") {
|
|
86
|
+
role.displayName = "License Purchaser"
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
switch (role.key_type) {
|
|
90
|
+
case "encrypted_by_data_key":
|
|
91
|
+
role.displayName = (await decryptObjectFromStorage<EncryptedData>(role.encrypted_data, this.treeKey)).displayname;
|
|
92
|
+
break;
|
|
93
|
+
case "encrypted_by_public_key":
|
|
94
|
+
throw "Not Implemented";
|
|
95
|
+
case "no_key":
|
|
96
|
+
role.displayName = role.encrypted_data;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
let node = this._data.nodes.find(x => x.node_id == role.node_id);
|
|
102
|
+
if (!node) {
|
|
103
|
+
throw new Error(`Unable to find node for role:${role.node_id}`)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (!node.roles) {
|
|
107
|
+
node.roles = []
|
|
108
|
+
}
|
|
109
|
+
node.roles.push(role);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
for (let team of this._data.teams) {
|
|
113
|
+
let node = this._data.nodes.find(x => x.node_id == team.node_id);
|
|
114
|
+
if (!node) {
|
|
115
|
+
throw new Error(`Unable to find node for team:${team.node_id}`)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!node.teams) {
|
|
119
|
+
node.teams = []
|
|
120
|
+
}
|
|
121
|
+
node.teams.push(team);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
for (let user of this._data.users) {
|
|
125
|
+
switch (user.key_type) {
|
|
126
|
+
case "encrypted_by_data_key":
|
|
127
|
+
user.displayName = (await decryptObjectFromStorage<EncryptedData>(user.encrypted_data, this.treeKey)).displayname;
|
|
128
|
+
break;
|
|
129
|
+
case "encrypted_by_public_key":
|
|
130
|
+
throw "Not Implemented";
|
|
131
|
+
case "no_key":
|
|
132
|
+
user.displayName = user.encrypted_data;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
let node = this._data.nodes.find(x => x.node_id == user.node_id);
|
|
137
|
+
if (!node) {
|
|
138
|
+
throw new Error(`Unable to find node for user:${user.node_id}`)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (!node.users) {
|
|
142
|
+
node.users = []
|
|
143
|
+
}
|
|
144
|
+
for (let user_role of this._data.role_users || []) {
|
|
145
|
+
if (user_role.enterprise_user_id == user.enterprise_user_id) {
|
|
146
|
+
if (!user.roles) {
|
|
147
|
+
user.roles = []
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const role = this._data.roles.find(x => x.role_id === user_role.role_id)
|
|
151
|
+
if (!role) {
|
|
152
|
+
throw new Error(`Unable to find role for user_role:${user_role.role_id}`)
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
user.roles.push(role)
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
for (let user_team of this._data.team_users || []) {
|
|
159
|
+
if (user_team.enterprise_user_id == user.enterprise_user_id) {
|
|
160
|
+
if (!user.teams) {
|
|
161
|
+
user.teams = []
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const team = this._data.teams.find(x => x.team_uid === user_team.team_uid)
|
|
165
|
+
if (!team) {
|
|
166
|
+
throw new Error(`Unable to find team for user_team:${user_team.team_uid}`)
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
user.teams.push(team)
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
node.users.push(user);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
get data(): GetEnterpriseDataResponse {
|
|
177
|
+
return this._data;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
encryptDisplayName(displayName: string): Promise<string> {
|
|
181
|
+
return encryptObjectForStorage<EncryptedData>({
|
|
182
|
+
displayname: displayName
|
|
183
|
+
}, this.treeKey);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
encryptForStorage(data: Uint8Array): Promise<string> {
|
|
187
|
+
return encryptForStorage(data, this.treeKey);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
async encryptKey(key: Uint8Array): Promise<string> {
|
|
191
|
+
return encryptKey(key, this.treeKey);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
async encryptKeyAsBytes(key: Uint8Array): Promise<Uint8Array> {
|
|
195
|
+
return platform.aesGcmEncrypt(key, this.treeKey)
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
async decryptKey(encryptedKey: string): Promise<Uint8Array> {
|
|
199
|
+
return decryptKey(encryptedKey, this.treeKey);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
async allocateIDs(count: number): Promise<number> {
|
|
203
|
+
let allocateCommand = new EnterpriseAllocateIdsCommand();
|
|
204
|
+
allocateCommand.number_requested = count;
|
|
205
|
+
let response = await this.auth.executeCommand(allocateCommand);
|
|
206
|
+
return response.base_id;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
async addNode(parentNodeId: number, nodeName: string): Promise<number> {
|
|
210
|
+
let nodeId = await this.allocateIDs(1);
|
|
211
|
+
let nodeAddCommand = new NodeAddCommand(nodeId, parentNodeId, await this.encryptDisplayName(nodeName));
|
|
212
|
+
let response = await this.auth.executeCommand(nodeAddCommand);
|
|
213
|
+
return nodeId;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
async addRole(nodeId: number, roleName: string): Promise<number> {
|
|
217
|
+
let roleId = await this.allocateIDs(1);
|
|
218
|
+
let roleAddCommand = new RoleAddCommand(roleId, nodeId, await this.encryptDisplayName(roleName));
|
|
219
|
+
let response = await this.auth.executeCommand(roleAddCommand);
|
|
220
|
+
return roleId;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
async addTeam(nodeId: number, teamName: string) {
|
|
224
|
+
let teamUid = generateUid();
|
|
225
|
+
let teamKeyBytes = generateEncryptionKey();
|
|
226
|
+
let {privateKey, publicKey} = await platform.generateRSAKeyPair();
|
|
227
|
+
let publicKey64 = webSafe64FromBytes(publicKey);
|
|
228
|
+
let encryptedPrivateKey = encryptForStorage(privateKey, teamKeyBytes);
|
|
229
|
+
let teamKey = await encryptForStorage(teamKeyBytes, this.auth.dataKey);
|
|
230
|
+
let encryptedTeamKey = await this.encryptKey(teamKeyBytes);
|
|
231
|
+
let teamAddCommand = new TeamAddCommand(teamUid, teamName, nodeId, publicKey64, await encryptedPrivateKey, teamKey, encryptedTeamKey);
|
|
232
|
+
let response = await this.auth.executeCommand(teamAddCommand);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
async addUser(nodeId: number, email: string, userName: string): Promise<{userId: number; verification_code: string}> {
|
|
236
|
+
let userId = await this.allocateIDs(1);
|
|
237
|
+
let userAddCommand = new EnterpriseUserAddCommand(userId, email, nodeId, await this.encryptDisplayName(userName));
|
|
238
|
+
let response = await this.auth.executeCommand(userAddCommand);
|
|
239
|
+
let verification_code = response.verification_code;
|
|
240
|
+
return {userId, verification_code};
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export type EncryptedData = {displayname: string}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import {KeeperEnvironment} from "./endpoint";
|
|
2
|
+
import {Authentication} from './proto';
|
|
3
|
+
import TwoFactorExpiration = Authentication.TwoFactorExpiration;
|
|
4
|
+
import TwoFactorPushType = Authentication.TwoFactorPushType;
|
|
5
|
+
import TwoFactorChannelType = Authentication.TwoFactorChannelType;
|
|
6
|
+
import {KeyWrapper} from './platform';
|
|
7
|
+
import {SessionParams} from "./auth";
|
|
8
|
+
|
|
9
|
+
export type KeeperHost = KeeperEnvironment | string
|
|
10
|
+
|
|
11
|
+
export interface ClientConfiguration {
|
|
12
|
+
authUI?: AuthUI
|
|
13
|
+
authUI3?: AuthUI3
|
|
14
|
+
clientVersion?: string
|
|
15
|
+
deviceConfig?: DeviceConfig // v15+ device config
|
|
16
|
+
deviceToken?: Uint8Array // pre - v15 device token
|
|
17
|
+
host: KeeperHost,
|
|
18
|
+
onCommandFailure?: (error: KeeperError) => void,
|
|
19
|
+
onDeviceConfig?: (deviceConfig: DeviceConfig, host: KeeperHost) => void // event to store device config
|
|
20
|
+
onDeviceToken?: (deviceToken: Uint8Array) => void // event to store device token
|
|
21
|
+
onRegionChanged?: (newRegion: string) => void,
|
|
22
|
+
onDeviceVerified?: (isDeviceVerified: boolean) => void
|
|
23
|
+
sessionStorage?: SessionStorage
|
|
24
|
+
kvs?: KeyValueStorage;
|
|
25
|
+
useSessionResumption?: boolean
|
|
26
|
+
iterations?: number
|
|
27
|
+
salt?: Uint8Array
|
|
28
|
+
}
|
|
29
|
+
export interface ClientConfigurationInternal extends ClientConfiguration {
|
|
30
|
+
deviceConfig: DeviceConfig // v15+ device config
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type KeeperError = {
|
|
34
|
+
additional_info?: string
|
|
35
|
+
error?: string
|
|
36
|
+
location?: string
|
|
37
|
+
message?: string
|
|
38
|
+
path?: string
|
|
39
|
+
result_code?: string
|
|
40
|
+
key_id?: number
|
|
41
|
+
region_host?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface DeviceConfig {
|
|
45
|
+
deviceName: string | null
|
|
46
|
+
deviceToken: Uint8Array | null
|
|
47
|
+
privateKey: Uint8Array | null
|
|
48
|
+
publicKey: Uint8Array | null
|
|
49
|
+
transmissionKeyId: number | null
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface SessionStorage {
|
|
53
|
+
lastUsername: string;
|
|
54
|
+
getCloneCode(host: KeeperEnvironment, username: string): Promise<Uint8Array | null>;
|
|
55
|
+
saveCloneCode(host: KeeperEnvironment, username: string, cloneCode: Uint8Array): Promise<void>;
|
|
56
|
+
getSessionParameters(): Promise<SessionParams | null>;
|
|
57
|
+
/**
|
|
58
|
+
* Important: implementation of this function should retain these values in memory only, never to disk.
|
|
59
|
+
*/
|
|
60
|
+
saveSessionParameters(sessionParams: SessionParams): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface KeyValueStorage {
|
|
64
|
+
getValue(key: string): string | null;
|
|
65
|
+
saveValue(key: string, value: string): void;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface VendorConfiguration {
|
|
69
|
+
host: KeeperHost;
|
|
70
|
+
vendorId: string;
|
|
71
|
+
privateKey: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface TransmissionKey {
|
|
75
|
+
key: Uint8Array
|
|
76
|
+
publicKeyId: number
|
|
77
|
+
encryptedKey: Uint8Array
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface AuthUI {
|
|
81
|
+
getTwoFactorCode(errorMessage?: string): Promise<string>;
|
|
82
|
+
displayDialog(): Promise<boolean>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface AuthUI3 {
|
|
86
|
+
waitForDeviceApproval(channels: DeviceApprovalChannel[], isCloud: boolean): Promise<boolean>
|
|
87
|
+
waitForTwoFactorCode(channels: TwoFactorChannelData[], cancel: Promise<void>): Promise<boolean>
|
|
88
|
+
getPassword?(): Promise<string | KeyWrapper>
|
|
89
|
+
getSSOToken?(redirectUrl: string): Promise<Uint8Array>
|
|
90
|
+
redirectCallback?(url: string): void
|
|
91
|
+
ssoLogin?(url: string): Promise<any>
|
|
92
|
+
idpLogout?(url: string): Promise<void>
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type TwoFactorInput = {
|
|
96
|
+
twoFactorCode: string
|
|
97
|
+
desiredExpiration: TwoFactorExpiration
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export enum DeviceVerificationMethods {
|
|
101
|
+
Email,
|
|
102
|
+
KeeperPush,
|
|
103
|
+
TFA,
|
|
104
|
+
AdminApproval,
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type DeviceApprovalChannel = {
|
|
108
|
+
channel: DeviceVerificationMethods
|
|
109
|
+
sendApprovalRequest: () => Promise<void>
|
|
110
|
+
validateCode?: (code: string) => Promise<void>
|
|
111
|
+
setExpiration?: (expiration: TwoFactorExpiration) => void
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type TwoFactorChannelData = {
|
|
115
|
+
availablePushes?: TwoFactorPushType[],
|
|
116
|
+
channel: Authentication.ITwoFactorChannelInfo
|
|
117
|
+
sendPush?: (type: TwoFactorPushType) => void
|
|
118
|
+
sendCode: (code: string) => void
|
|
119
|
+
setExpiration: (expiration: TwoFactorExpiration) => void
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type LoginError = {
|
|
123
|
+
error: string;
|
|
124
|
+
message: string;
|
|
125
|
+
}
|