@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.
Files changed (148) hide show
  1. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
  2. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
  3. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
  4. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
  5. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
  6. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
  7. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
  8. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
  9. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
  10. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
  11. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
  12. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
  13. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
  14. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
  15. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
  16. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
  17. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
  18. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
  19. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
  20. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
  21. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
  22. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
  23. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
  24. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
  25. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
  26. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
  27. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
  28. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
  29. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
  30. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
  31. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
  32. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
  33. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
  34. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
  35. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
  36. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
  37. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
  38. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
  39. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
  40. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b +0 -0
  41. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa +0 -0
  42. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3 +0 -0
  43. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa +0 -0
  44. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3 +0 -0
  45. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140 +0 -0
  46. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d +0 -0
  47. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9 +0 -0
  48. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738 +0 -0
  49. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741 +0 -0
  50. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a +0 -0
  51. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d +0 -0
  52. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a +0 -0
  53. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf +0 -0
  54. package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258 +0 -0
  55. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
  56. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
  57. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
  58. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
  59. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
  60. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
  61. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
  62. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
  63. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
  64. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
  65. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
  66. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
  67. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
  68. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
  69. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
  70. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
  71. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
  72. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
  73. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
  74. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
  75. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
  76. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
  77. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
  78. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
  79. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
  80. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
  81. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
  82. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
  83. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
  84. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
  85. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
  86. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
  87. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
  88. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
  89. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
  90. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
  91. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
  92. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
  93. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
  94. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
  95. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
  96. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
  97. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
  98. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
  99. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
  100. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
  101. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
  102. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
  103. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
  104. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
  105. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
  106. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b +0 -0
  107. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa +0 -0
  108. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3 +0 -0
  109. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa +0 -0
  110. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3 +0 -0
  111. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140 +0 -0
  112. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d +0 -0
  113. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9 +0 -0
  114. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738 +0 -0
  115. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741 +0 -0
  116. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a +0 -0
  117. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d +0 -0
  118. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a +0 -0
  119. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf +0 -0
  120. package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258 +0 -0
  121. package/babel.config.js +6 -0
  122. package/package.json +7 -10
  123. package/rollup.config.js +50 -0
  124. package/scripts/cleanDistFolder.js +9 -0
  125. package/src/__tests__/utils.test.js +13 -0
  126. package/src/auth.ts +1514 -0
  127. package/src/browser/asn1hex.ts +296 -0
  128. package/src/browser/index.ts +17 -0
  129. package/src/browser/jsbn.ts +1213 -0
  130. package/src/browser/platform.ts +434 -0
  131. package/src/browser/rng.ts +15 -0
  132. package/src/browser/rsa.ts +262 -0
  133. package/src/commands.ts +1378 -0
  134. package/src/company.ts +244 -0
  135. package/src/configuration.ts +125 -0
  136. package/src/endpoint.ts +350 -0
  137. package/src/node/index.ts +17 -0
  138. package/src/node/platform.ts +283 -0
  139. package/src/platform.ts +76 -0
  140. package/{dist → src}/proto.d.ts +0 -0
  141. package/src/proto.js +136564 -0
  142. package/src/restMessages.ts +311 -0
  143. package/src/utils.ts +169 -0
  144. package/src/vault.ts +844 -0
  145. package/src/vendorContext.ts +69 -0
  146. package/src/vendorModel.ts +36 -0
  147. package/tsconfig.json +14 -0
  148. package/tsconfig.rollup.json +14 -0
@@ -0,0 +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":["/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,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAA;AAC/B,IAAO,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;AACnD,IAAO,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;AAE7C,SAAe,aAAa,CAAC,MAAmB;;QAC5C,IAAI;YACA,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,GAAG,CAAC;gBAC3C,CAAC,CAAC,MAAM,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC;gBAC9D,CAAC,CAAC,MAAM,qBAAqB,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AG,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"}}
@@ -0,0 +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":["/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,qBAAqB,CAAC,CAAC,CAAC,CAAA;IACjC,CAAC;IAEO,qBAAqB,CAAC,SAAiB;QAC3C,IAAI,CAAC,eAAe,GAAG,uBAAuB,CAAC,SAAS,CAAC,CAAA;IAC7D,CAAC;IAEK,aAAa,CAAC,YAAoB;;YACpC,OAAO,IAAI,CAAC,oBAAoB,CAAgB,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,eAAe,YAAY,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAChJ,CAAC;KAAA;IAEK,cAAc,CAAC,UAA0B;;YAC3C,OAAO,IAAI,CAAC,oBAAoB,CAAgB,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC7I,CAAC;KAAA;IAEK,qBAAqB,CAAC,YAAoB,EAAE,UAA6B;;YAC3E,OAAO,IAAI,CAAC,oBAAoB,CAAgB,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,YAAY,YAAY,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACzJ,CAAC;KAAA;IAEK,oBAAoB,CAAI,UAAkB,EAAE,UAAkB,EAAE,OAAa;;YAC/E,IAAI,GAAG,GAAG,YA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GAAG,CAAC,CAAC,CAAA;iBAC1B;gBACD,IAAI,SAAS,CAAA;gBACb,IAAI;oBACA,SAAS,GAAG,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;oBACjF,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAA;oBACxD,OAAO,IAAS,CAAA;iBACnB;gBAAC,OAAO,CAAC,EAAE;oBACR,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,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"}}
@@ -0,0 +1 @@
1
+ {"code":"import { AccountSummary, Authentication, BreachWatch, Automator, Enterprise, Records, ServiceLogger, SsoCloud } from './proto';\r\nfunction createMessage(data, path, encoder, decoder) {\r\n return {\r\n path: path,\r\n toBytes() {\r\n return encoder ? encoder.encode(data).finish() : null;\r\n },\r\n fromBytes(data) {\r\n return decoder.decode(data);\r\n }\r\n };\r\n}\r\n// new login\r\nexport const registerDeviceMessage = (data) => createMessage(data, 'authentication/register_device', Authentication.DeviceRegistrationRequest, Authentication.Device);\r\nexport const registerDeviceInRegionMessage = (data) => createMessage(data, 'authentication/register_device_in_region', Authentication.RegisterDeviceInRegionRequest, null);\r\nexport const updateDeviceMessage = (data) => createMessage(data, 'authentication/update_device', Authentication.DeviceUpdateRequest, null);\r\nexport const requestDeviceVerificationMessage = (data) => createMessage(data, 'authentication/request_device_verification', Authentication.DeviceVerificationRequest, null);\r\nexport const requestCreateUserMessage = (data, isSso) => createMessage(data, isSso ? 'authentication/create_user_sso' : 'authentication/request_create_user', Authentication.CreateUserRequest, null);\r\nexport const startLoginMessage = (data) => createMessage(data, 'authentication/start_login', Authentication.StartLoginRequest, Authentication.LoginResponse);\r\nexport const validateAuthHashMessage = (data) => createMessage(data, 'authentication/validate_auth_hash', Authentication.ValidateAuthHashRequest, Authentication.LoginResponse);\r\nexport const twoFactorValidateMessage = (data) => createMessage(data, 'authentication/2fa_validate', Authentication.TwoFactorValidateRequest, Authentication.TwoFactorValidateResponse);\r\nexport const twoFactorSend2FAPushMessage = (data) => createMessage(data, 'authentication/2fa_send_push', Authentication.TwoFactorSendPushRequest, null);\r\nexport const twoFactorAdd = (data) => createMessage(data, 'authentication/2fa_add', Authentication.TwoFactorAddRequest, Authentication.TwoFactorAddResponse);\r\nexport const twoFactorAddValidate = (data) => createMessage(data, 'authentication/2fa_add_validate', Authentication.TwoFactorValidateRequest, Authentication.TwoFactorAddResponse);\r\nexport const twoFactorList = (data) => createMessage(data, 'authentication/2fa_list', Authentication.TwoFactorChannelInfo, Authentication.TwoFactorListResponse);\r\nexport const twoFactorRename = (data) => createMessage(data, 'authentication/2fa_rename', Authentication.TwoFactorRenameRequest, null);\r\nexport const twoFactorDelete = (data) => createMessage(data, 'authentication/2fa_delete', Authentication.TwoFactorDeleteRequest, null);\r\nexport const twoFactorDuoStatus = (data) => createMessage(data, 'authentication/2fa_duo_status', Authentication.TwoFactorDuoStatus, null);\r\nexport const approveDeviceMessage = (data) => createMessage(data, 'authentication/approve_device', Authentication.ApproveDeviceRequest, null);\r\nexport const approveDeviceInstantMessage = (data) => createMessage(data, 'authentication/approve_device_instant', Authentication.ApproveDeviceRequest, null);\r\nexport const validateDeviceVerificationCodeMessage = (data) => createMessage(data, 'authentication/validate_device_verification_code', Authentication.ValidateDeviceVerificationCodeRequest, null);\r\nexport const validateCreateUserVerificationCodeMessage = (data) => createMessage(data, 'authentication/validate_create_user_verification_code', Authentication.ValidateCreateUserVerificationCodeRequest, null);\r\nexport const approveUserDevicesMessage = (data) => createMessage(data, 'enterprise/approve_user_devices', Enterprise.ApproveUserDevicesRequest, Enterprise.ApproveUserDevicesResponse);\r\nexport const registerEncryptedDataKeyForDeviceMessage = (data) => createMessage(data, 'authentication/register_encrypted_data_key_for_device', Authentication.RegisterDeviceDataKeyRequest, null);\r\nexport const setUserSettingMessage = (data) => createMessage(data, 'setting/set_user_setting', Authentication.UserSettingRequest, null);\r\nexport const requestDeviceAdminApprovalMessage = (data) => createMessage(data, 'authentication/request_device_admin_approval', Authentication.DeviceVerificationRequest, null);\r\nexport const requestSaltAndIterations = () => createMessage({}, 'authentication/get_salt_and_iterations', null, Authentication.Salt);\r\nexport const validateMasterPasswordMessage = (data) => createMessage(data, 'authentication/validate_master_password', Authentication.MasterPasswordReentryRequest, null);\r\nexport const startLoginMessageFromSessionToken = (data) => createMessage(data, 'authentication/login_from_existing_session_token', Authentication.StartLoginRequest, Authentication.LoginResponse);\r\nexport const keepAliveMessage = () => createMessage({}, 'keep_alive', null, null);\r\nexport const logoutV3Message = () => createMessage({}, 'vault/logout_v3', null, null);\r\n// end new login\r\nexport const deviceMessage = (data) => createMessage(data, 'authentication/get_device_token', Authentication.DeviceRequest, Authentication.DeviceResponse);\r\nexport const preLoginMessage = (data) => createMessage(data, 'authentication/pre_login', Authentication.PreLoginRequest, Authentication.PreLoginResponse);\r\nexport const securityReportMessage = (data) => createMessage(data, 'enterprise/get_security_report_data', Authentication.SecurityReportRequest, Authentication.SecurityReportResponse);\r\nexport const enterpriseNodeToManagedCompanyMessage = (data) => createMessage(data, 'enterprise/node_to_managed_company', Enterprise.NodeToManagedCompanyRequest, null);\r\nexport const recordTypesGetMessage = (data) => createMessage(data, 'vault/get_record_types', Records.RecordTypesRequest, Records.RecordTypesResponse);\r\nexport const recordTypeAddMessage = (data) => createMessage(data, 'vault/record_type_add', Records.RecordType, Records.RecordTypeModifyResponse);\r\nexport const recordTypeUpdateMessage = (data) => createMessage(data, 'vault/record_type_update', Records.RecordType, Records.RecordTypeModifyResponse);\r\nexport const recordTypeDeleteMessage = (data) => createMessage(data, 'vault/record_type_delete', Records.RecordType, Records.RecordTypeModifyResponse);\r\nexport const recordsGetMessage = (data) => createMessage(data, 'vault/records_get', Records.RecordsGetRequest, Records.RecordsGetResponse);\r\nexport const recordsAddMessage = (data) => createMessage(data, 'vault/records_add', Records.RecordsAddRequest, Records.RecordsModifyResponse);\r\nexport const recordsUpdateMessage = (data) => createMessage(data, 'vault/records_update', Records.RecordsUpdateRequest, Records.RecordsModifyResponse);\r\nexport const fileDownloadMessage = (data) => createMessage(data, 'vault/files_download', Records.FilesGetRequest, Records.FilesGetResponse);\r\nexport const fileAddMessage = (data) => createMessage(data, 'vault/files_add', Records.FilesAddRequest, Records.FilesAddResponse);\r\nexport const recordsConvert3Message = (data) => createMessage(data, 'vault/records_convert3', Records.RecordsConvertToV3Request, Records.RecordsModifyResponse);\r\nexport const recordAddAuditData = (data) => createMessage(data, 'vault/record_add_audit_data', Records.AddAuditDataRequest, null);\r\nexport const accountSummaryMessage = (data) => createMessage(data, 'login/account_summary', AccountSummary.AccountSummaryRequest, AccountSummary.AccountSummaryElements);\r\nexport const sendSessionMessage = (data) => createMessage(data, 'pushserver/send_session_message', Authentication.SendSessionMessageRequest, null);\r\nexport const setEncryptedTeamKeyMessage = (data) => createMessage(data, 'enterprise/set_encrypted_team_key', Enterprise.EncryptedTeamKeyRequest, null);\r\nexport const getBackupMessage = (data) => createMessage(data, 'enterprise/get_backup', Enterprise.BackupRequest, Enterprise.BackupResponse);\r\nexport const getEnterprisePublicKeyMessage = () => createMessage({}, 'enterprise/get_enterprise_public_key', null, BreachWatch.EnterprisePublicKeyResponse);\r\nexport const getEnterpriseDataForUserMessage = (data) => createMessage(data, 'enterprise/get_enterprise_data_for_user', Enterprise.EnterpriseDataRequest, Enterprise.EnterpriseDataResponse);\r\nexport const setEnterpriseDataKeyMessage = (data) => createMessage(data, 'enterprise/set_enterprise_user_data_key', Enterprise.EnterpriseUserDataKey, null);\r\nexport const setV2AlternatePasswordMessage = (data) => createMessage(data, 'authentication/set_v2_alternate_password', Authentication.UserAuthRequest, null);\r\nexport const getMasterPasswordSaltMessage = () => createMessage({}, 'setting/get_master_password_salt', null, Authentication.Salt);\r\nexport const getPublicKeysMessage = (data) => createMessage(data, 'vault/get_public_keys', Authentication.GetPublicKeysRequest, Authentication.GetPublicKeysResponse);\r\nexport const setEccKeyPairMessage = (data) => createMessage(data, 'vault/set_ecc_key_pair', Authentication.SetEccKeyPairRequest, null);\r\nexport const applicationAddMessage = (data) => createMessage(data, 'vault/application_add', Records.ApplicationAddRequest, null);\r\nexport const addAppShareMessage = (data) => createMessage(data, 'vault/app_share_add', Authentication.AddAppSharesRequest, null);\r\nexport const removeAppShareMessage = (data) => createMessage(data, 'vault/app_share_remove', Authentication.RemoveAppSharesRequest, null);\r\nexport const addAppClientMessage = (data) => createMessage(data, 'vault/app_client_add', Authentication.AddAppClientRequest, Authentication.Device);\r\nexport const addExternalShareMessage = (data) => createMessage(data, 'vault/external_share_add', Authentication.AddExternalShareRequest, Authentication.Device);\r\nexport const removeExternalShareMessage = (data) => createMessage(data, 'vault/external_share_remove', Authentication.RemoveAppClientsRequest, null);\r\nexport const removeAppClientMessage = (data) => createMessage(data, 'vault/app_client_remove', Authentication.RemoveAppClientsRequest, null);\r\nexport const getAppInfoMessage = (data) => createMessage(data, 'vault/get_app_info', Authentication.GetAppInfoRequest, Authentication.GetAppInfoResponse);\r\nexport const getApplicationsSummaryMessage = () => createMessage({}, 'vault/get_applications_summary', null, Authentication.GetApplicationsSummaryResponse);\r\nexport const sendShareInviteMessage = (data) => createMessage(data, 'vault/send_share_invite', Authentication.SendShareInviteRequest, null);\r\nexport const updateSecurityData = (data) => createMessage(data, 'enterprise/update_security_data', Authentication.SecurityDataRequest, Authentication.RevisionResponse);\r\nexport const setReusedPasswords = (data) => createMessage(data, 'enterprise/set_reused_passwords', Authentication.ReusedPasswordsRequest, null);\r\n/* -- SERVICE LOGGER -- */\r\nexport const serviceLoggerGetMessage = (data) => createMessage(data, 'logger/get', ServiceLogger.ServiceLogGetRequest, ServiceLogger.ServiceLogResponse);\r\n/* -- Cloud SSO Connect -- */\r\nexport const ssoSamlMessage = (endpoint) => createMessage(null, 'sso/saml/' + endpoint, null, null);\r\nexport const ssoConfigMessage = (endpoint) => createMessage(null, 'sso/config/' + endpoint, null, null);\r\nexport const ssoLoginMessageWithUrl = (url) => createMessage(null, url, null, null);\r\nexport const ssoLogoutMessage = (serviceProviderId, data) => createMessage(null, 'sso/saml/logout/' + serviceProviderId, null, null);\r\nexport const ssoGetMetadataMessage = (serviceProviderId) => createMessage(null, 'sso/saml/metadata/' + serviceProviderId, null, null);\r\nexport const ssoUploadIdpMetadataMessage = (data) => createMessage(data, 'sso/config/sso_cloud_upload_idp_metadata', SsoCloud.SsoCloudIdpMetadataRequest, SsoCloud.SsoCloudConfigurationValidationResponse);\r\nexport const ssoCloudServiceProviderUpdateRequestMessage = (data) => createMessage(data, 'sso/config/sso_cloud_sp_configuration_set', SsoCloud.SsoCloudServiceProviderUpdateRequest, SsoCloud.SsoCloudConfigurationResponse);\r\nexport const ssoCloudConfigurationRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudConfigurationRequest, SsoCloud.SsoCloudConfigurationResponse);\r\nexport const ssoCloudLogRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudLogRequest, ServiceLogger.ServiceLogResponse);\r\nexport const ssoCloudSAMLLogRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudSAMLLogRequest, SsoCloud.SsoCloudSAMLLogResponse);\r\nexport const ssoCloudServiceProviderConfigurationListRequestMessage = (data) => createMessage(data, 'sso/config/sso_cloud_sp_configuration_get', SsoCloud.SsoCloudServiceProviderConfigurationListRequest, SsoCloud.SsoCloudServiceProviderConfigurationListResponse);\r\nexport const ssoServiceProviderRequestMessage = (data) => createMessage(data, 'enterprise/get_sso_service_provider', Authentication.SsoServiceProviderRequest, Authentication.SsoServiceProviderResponse);\r\nexport const ssoCloudRequestMessage = (data) => createMessage(data, null, SsoCloud.SsoCloudRequest, null);\r\nexport const ssoCloudValidationRequestMessage = (data, url) => createMessage(data, url, SsoCloud.SsoCloudConfigurationValidationRequest, SsoCloud.SsoCloudConfigurationValidationResponse);\r\n/* -- Keeper Automator -- */\r\nexport const automatorApproveDeviceMessage = (data, url) => createMessage(data, url, Automator.ApproveDeviceRequest, Automator.AutomatorResponse);\r\nexport const automatorAdminCreateMessage = (data, url) => createMessage(data, url, Automator.AdminCreateAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminDeleteMessage = (data, url) => createMessage(data, url, Automator.AdminDeleteAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminEditMessage = (data, url) => createMessage(data, url, Automator.AdminEditAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminEnableMessage = (data, url) => createMessage(data, url, Automator.AdminEnableAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminGetMessage = (data, url) => createMessage(data, url, Automator.AdminGetAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminGetAllOnNodeMessage = (data, url) => createMessage(data, url, Automator.AdminGetAutomatorsOnNodeRequest, Automator.AdminResponse);\r\nexport const automatorAdminGetAllForEnterpriseMessage = (data, url) => createMessage(data, url, Automator.AdminGetAutomatorsForEnterpriseRequest, Automator.AdminResponse);\r\nexport const automatorAdminInitializeMessage = (data, url) => createMessage(data, url, Automator.AdminInitializeAutomatorRequest, Automator.AdminResponse);\r\nexport const automatorAdminResetMessage = (data, url) => createMessage(data, url, Automator.AdminResetAutomatorRequest, Automator.AdminResponse);\r\n//# sourceMappingURL=restMessages.js.map","references":["/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,y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AC,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"}}
@@ -0,0 +1 @@
1
+ {"code":"export class KeeperCommand {\r\n}\r\nexport class LoginCommand extends KeeperCommand {\r\n}\r\nexport class RegisterCommand extends KeeperCommand {\r\n constructor() {\r\n super();\r\n this.command = \"register\";\r\n }\r\n}\r\nexport class AuthorizedCommand extends KeeperCommand {\r\n}\r\nexport class AccountSummaryCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"account_summary\";\r\n }\r\n}\r\nexport class SyncDownCommand extends AuthorizedCommand {\r\n constructor(revision) {\r\n super();\r\n this.command = 'sync_down';\r\n this.revision = revision;\r\n this.client_time = new Date().getTime();\r\n }\r\n}\r\nexport class RecordAddCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"record_add\";\r\n }\r\n}\r\nexport class RecordUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"record_update\";\r\n }\r\n}\r\nexport class RequestDownloadCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'request_download';\r\n }\r\n}\r\nexport class RequestUploadCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'request_upload';\r\n }\r\n}\r\nexport class PreDeleteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'pre_delete';\r\n }\r\n}\r\nexport class DeleteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'delete';\r\n }\r\n}\r\nexport class UndeleteRecordCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'undelete_record';\r\n }\r\n}\r\nexport class GetDeletedRecordsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'get_deleted_records';\r\n this.client_time = new Date().getTime();\r\n }\r\n}\r\nexport class PurgeDeletedRecordsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'purge_deleted_records';\r\n }\r\n}\r\nexport class RecordShareUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'record_share_update';\r\n }\r\n}\r\nexport class FolderAddCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'folder_add';\r\n }\r\n}\r\nexport class SharedFolderUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'shared_folder_update';\r\n }\r\n}\r\nexport class MoveCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'move';\r\n }\r\n}\r\nexport class PublicKeysCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'public_keys';\r\n }\r\n}\r\nexport class GetRecordsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'get_records';\r\n }\r\n}\r\nexport class EditUserCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'edit_user';\r\n }\r\n}\r\nexport class ShareAccountCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'share_account';\r\n }\r\n}\r\nexport class SendKeyVerificationCodeCommand extends KeeperCommand {\r\n constructor() {\r\n super();\r\n this.command = 'send_key_verification_code';\r\n }\r\n}\r\nexport class SetTwoFactorAuthCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'set_two_factor_auth';\r\n }\r\n}\r\nexport class TwoFactorSettingsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'two_factor_settings';\r\n }\r\n}\r\nexport class GetPushInfoCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = 'get_push_info';\r\n }\r\n}\r\nexport class VerifyUserCommand extends KeeperCommand {\r\n constructor() {\r\n super();\r\n this.command = 'verify_user';\r\n }\r\n}\r\nexport class GetEnterpriseDataCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"get_enterprise_data\";\r\n }\r\n}\r\nexport class GetEnterpriseSettingCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"get_enterprise_setting\";\r\n }\r\n}\r\nexport class PutEnterpriseSettingCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"put_enterprise_setting\";\r\n }\r\n}\r\nexport class EnterpriseUserLockCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"enterprise_user_lock\";\r\n }\r\n}\r\nexport class EnterpriseNodeToManagedCompanyCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"enterprise_node_to_managed_company\";\r\n }\r\n}\r\nexport class EnterpriseAllocateIdsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.number_requested = 1;\r\n this.command = \"enterprise_allocate_ids\";\r\n }\r\n}\r\nexport class NodeAddCommand extends AuthorizedCommand {\r\n constructor(nodeId, parentId, encryptedData) {\r\n super();\r\n this.command = \"node_add\";\r\n this.node_id = nodeId;\r\n this.parent_id = parentId;\r\n this.encrypted_data = encryptedData;\r\n }\r\n}\r\nexport class RoleAddCommand extends AuthorizedCommand {\r\n constructor(roleId, nodeId, encryptedData) {\r\n super();\r\n this.command = \"role_add\";\r\n this.role_id = roleId;\r\n this.node_id = nodeId;\r\n this.encrypted_data = encryptedData;\r\n }\r\n}\r\nexport class TeamAddCommand extends AuthorizedCommand {\r\n constructor(team_uid, team_name, node_id, public_key, private_key, team_key, encrypted_team_key) {\r\n super();\r\n this.restrict_edit = false;\r\n this.restrict_share = false;\r\n this.restrict_view = false;\r\n this.manage_only = true;\r\n this.command = \"team_add\";\r\n this.team_uid = team_uid;\r\n this.team_name = team_name;\r\n this.node_id = node_id;\r\n this.public_key = public_key;\r\n this.private_key = private_key;\r\n this.team_key = team_key;\r\n this.encrypted_team_key = encrypted_team_key;\r\n }\r\n}\r\nexport class EnterpriseUserAddCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id, email, nodeId, encryptedData) {\r\n super();\r\n this.command = \"enterprise_user_add\";\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.enterprise_user_username = email;\r\n this.node_id = nodeId;\r\n this.encrypted_data = encryptedData;\r\n }\r\n}\r\nexport class TeamEnterpriseUserAddCommand extends AuthorizedCommand {\r\n constructor(user_type, enterprise_user_id, team_uid, team_key) {\r\n super();\r\n this.command = \"team_enterprise_user_add\";\r\n this.user_type = user_type;\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.team_uid = team_uid;\r\n this.team_key = team_key;\r\n }\r\n}\r\nexport class TeamEnterpriseUserRemoveCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id, team_uid) {\r\n super();\r\n this.command = \"team_enterprise_user_remove\";\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.team_uid = team_uid;\r\n }\r\n}\r\nexport class TeamQueueUserCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id, team_uid) {\r\n super();\r\n this.command = \"team_queue_user\";\r\n this.enterprise_user_id = enterprise_user_id;\r\n this.team_uid = team_uid;\r\n }\r\n}\r\nexport class EnterpriseRegistrationByMspCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"enterprise_registration_by_msp\";\r\n }\r\n}\r\nexport class SendInviteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"send_invite\";\r\n }\r\n}\r\nexport class AcceptEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"accept_enterprise_invite\";\r\n }\r\n}\r\nexport class ResendEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"resend_enterprise_invite\";\r\n }\r\n}\r\nexport class SsoServiceProviderAddCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"sso_service_provider_add\";\r\n }\r\n}\r\nexport class SsoServiceProviderUpdateCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"sso_service_provider_update\";\r\n }\r\n}\r\nexport class SsoServiceProviderDeleteCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"sso_service_provider_delete\";\r\n }\r\n}\r\nexport class GetAuditEventReportsCommand extends AuthorizedCommand {\r\n constructor() {\r\n super();\r\n this.command = \"get_audit_event_reports\";\r\n }\r\n}\r\nexport var LoginResponseResultCode;\r\n(function (LoginResponseResultCode) {\r\n LoginResponseResultCode[\"Success\"] = \"auth_success\";\r\n LoginResponseResultCode[\"AuthExpired\"] = \"auth_expired\";\r\n LoginResponseResultCode[\"AuthExpiredTransfer\"] = \"auth_expired_transfer\";\r\n LoginResponseResultCode[\"AuthFailed\"] = \"auth_failed\";\r\n LoginResponseResultCode[\"RegionRedirect\"] = \"region_redirect\";\r\n LoginResponseResultCode[\"NeedTOTP\"] = \"need_totp\";\r\n LoginResponseResultCode[\"InvalidTOTP\"] = \"invalid_totp\";\r\n LoginResponseResultCode[\"InvalidDeviceToken\"] = \"invalid_device_token\";\r\n LoginResponseResultCode[\"InvalidBackupCode\"] = \"invalid_backup_code\";\r\n LoginResponseResultCode[\"FailedSending\"] = \"failed_sending\";\r\n LoginResponseResultCode[\"NotEnrolled\"] = \"not_enrolled\";\r\n LoginResponseResultCode[\"Throttled\"] = \"throttled\";\r\n LoginResponseResultCode[\"AccountLocked\"] = \"account_locked\";\r\n LoginResponseResultCode[\"NotAuthorized\"] = \"not_authorized\";\r\n LoginResponseResultCode[\"VersionIncompatible\"] = \"version_incompatible\";\r\n LoginResponseResultCode[\"IPAddressNotAllowed\"] = \"ip_address_not_allowed\";\r\n LoginResponseResultCode[\"RestrictedClientType\"] = \"restricted_client_type\";\r\n // there are a few more obscure ones, see https://keeper.atlassian.net/wiki/spaces/KA/pages/8028335/login\r\n})(LoginResponseResultCode || (LoginResponseResultCode = {}));\r\n//# sourceMappingURL=commands.js.map","references":[],"map":"{\"version\":3,\"file\":\"commands.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/commands.ts\"],\"names\":[],\"mappings\":\"AAAA,MAAM,OAAO,aAAa;CAKzB;AAeD,MAAM,OAAO,YAAa,SAAQ,aAA4B;CAS7D;AAED,MAAM,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AG,0BAA0B,CAAA;IAC7C,CAAC;CAGJ;AAED,MAAM,OAAO,4BAA6B,SAAQ,iBAAiB;IAE/D;QACI,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,0BAA0B,CAAC;IAC9C,CAAC;CAQJ;AAED,MAAM,OAAO,+BAAgC,SAAQ,iBAAiB;IAElE;QACI,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,6BAA6B,CAAC;IACjD,CAAC;CAQJ;AAED,MAAM,OAAO,+BAAgC,SAAQ,iBAAiB;IAElE;QACI,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,6BAA6B,CAAC;IACjD,CAAC;CAGJ;AAED,MAAM,OAAO,2BAA4B,SAAQ,iBAA+C;IAE5F;QACI,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAC7C,CAAC;CAWJ;AAkGD,MAAM,CAAN,IAAY,uBAmBX;AAnBD,WAAY,uBAAuB;IAC/B,mDAAwB,CAAA;IACxB,uDAA4B,CAAA;IAC5B,wEAA6C,CAAA;IAC7C,qDAA0B,CAAA;IAC1B,6DAAkC,CAAA;IAClC,iDAAsB,CAAA;IACtB,uDAA4B,CAAA;IAC5B,sEAA2C,CAAA;IAC3C,oEAAyC,CAAA;IACzC,2DAAgC,CAAA;IAChC,uDAA4B,CAAA;IAC5B,kDAAuB,CAAA;IACvB,2DAAgC,CAAA;IAChC,2DAAgC,CAAA;IAChC,uEAA4C,CAAA;IAC5C,yEAA8C,CAAA;IAC9C,0EAA+C,CAAA;IAC/C,yGAAyG;AAC7G,CAAC,EAnBW,uBAAuB,KAAvB,uBAAuB,QAmBlC\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/commands.d.ts","writeByteOrderMark":false,"text":"export declare class KeeperCommand<Response extends KeeperResponse = KeeperResponse> {\r\n command: string;\r\n username: string;\r\n client_version: string;\r\n response: Response;\r\n}\r\nexport declare type AccountDataInclude = \"license\" | \"settings\" | \"group\" | \"sync_log\" | \"keys\" | \"enforcements\" | \"client_key\" | \"images\" | \"is_enterprise_admin\" | \"security_keys\" | \"personal_license\";\r\nexport declare class LoginCommand extends KeeperCommand<LoginResponse> {\r\n version: number;\r\n auth_response: string;\r\n include: AccountDataInclude[];\r\n enterprise_id?: number;\r\n platform_device_token: string;\r\n \"2fa_type\": \"device_token\" | \"one_time\" | \"backup\" | \"u2f\";\r\n \"2fa_mode\": \"auto\" | \"passcode\" | \"phone\" | \"push\" | \"sms\";\r\n \"2fa_token\": string;\r\n}\r\nexport declare class RegisterCommand extends KeeperCommand<LoginResponse> {\r\n constructor();\r\n email: string;\r\n auth_verifier: string;\r\n encryption_params: string;\r\n public_key: string;\r\n encrypted_private_key: string;\r\n}\r\nexport declare class AuthorizedCommand<Response extends KeeperResponse = KeeperResponse> extends KeeperCommand<Response> {\r\n session_token: string;\r\n device_id: string;\r\n}\r\nexport declare class AccountSummaryCommand extends AuthorizedCommand<KeeperResponse> {\r\n constructor();\r\n include: AccountDataInclude[];\r\n}\r\nexport declare type SyncDataInclude = \"record\" | \"typed_record\" | \"app_record\" | \"shared_folder\" | \"sfheaders\" | \"sfusers\" | \"sfrecords\" | \"folders\" | \"teams\" | \"sharing_changes\" | \"non_shared_data\" | \"pending_shares\" | \"profile\" | \"pending_team_users\" | \"user_auth\" | \"reused_passwords\" | \"explicit\";\r\nexport declare class SyncDownCommand extends AuthorizedCommand<SyncResponse> {\r\n private revision;\r\n private client_time;\r\n include: SyncDataInclude[];\r\n constructor(revision: number);\r\n}\r\nexport declare class RecordAddCommand extends AuthorizedCommand {\r\n constructor();\r\n record_uid: string;\r\n record_key: string;\r\n record_type: string;\r\n folder_type: string;\r\n how_long_ago: number;\r\n folder_uid: string;\r\n folder_key: string;\r\n data: string;\r\n extra: string;\r\n non_shared_data: string;\r\n file_ids: string[];\r\n}\r\nexport declare class RecordUpdateCommand extends AuthorizedCommand {\r\n constructor();\r\n pt: string;\r\n client_time: number;\r\n add_records: RecordUpdateRecord[];\r\n update_records: RecordUpdateRecord[];\r\n remove_records: string[];\r\n delete_records: string[];\r\n}\r\nexport interface RecordUpdateRecord {\r\n record_uid: string;\r\n record_key?: string;\r\n data: string;\r\n extra?: string;\r\n udata?: any;\r\n non_shared_data?: any;\r\n revision: number;\r\n version: number;\r\n client_modified_time: number;\r\n shared_folder_id?: string;\r\n team_uid?: string;\r\n}\r\nexport declare class RequestDownloadCommand extends AuthorizedCommand<RequestDownloadResponse> {\r\n constructor();\r\n record_uid: string;\r\n file_ids: string[];\r\n shared_folder_uid: string;\r\n team_uid: string;\r\n}\r\nexport interface RequestDownloadResponse extends KeeperResponse {\r\n downloads: {\r\n success_status_code: number;\r\n url: string;\r\n }[];\r\n}\r\nexport declare class RequestUploadCommand extends AuthorizedCommand<RequestUploadResponse> {\r\n constructor();\r\n file_count: number;\r\n thumbnail_count: number;\r\n}\r\nexport interface RequestUploadResponse extends KeeperResponse {\r\n file_uploads: FileUpload[];\r\n thumbnail_uploads: FileUpload[];\r\n}\r\nexport interface FileUpload {\r\n file_parameter: 'file';\r\n file_id: string;\r\n success_status_code: number;\r\n parameters: {\r\n signature: string;\r\n success_action_status: number;\r\n AWSAccessKeyId: string;\r\n acl: 'private';\r\n 'x-amz-security-token': string;\r\n key: string;\r\n policy: string;\r\n };\r\n max_size: number;\r\n url: string;\r\n}\r\nexport declare class PreDeleteCommand extends AuthorizedCommand<PreDeleteResponse> {\r\n constructor();\r\n objects: DeleteObject[];\r\n}\r\nexport interface DeleteObject {\r\n object_uid: string;\r\n object_type: 'record' | 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n from_uid?: string;\r\n from_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n delete_resolution: 'unlink';\r\n}\r\nexport interface PreDeleteResponse extends KeeperResponse {\r\n pre_delete_response: {\r\n pre_delete_token: string;\r\n would_delete: {\r\n deletion_summary: string[];\r\n };\r\n };\r\n}\r\nexport declare class DeleteCommand extends AuthorizedCommand<DeleteResponse> {\r\n constructor();\r\n pre_delete_token: string;\r\n}\r\nexport interface DeleteResponse extends KeeperResponse {\r\n revision: number;\r\n}\r\nexport declare class UndeleteRecordCommand extends AuthorizedCommand {\r\n constructor();\r\n record_uid: string;\r\n revision: number;\r\n}\r\nexport declare class GetDeletedRecordsCommand extends AuthorizedCommand<GetDeletedRecordsResponse> {\r\n private client_time;\r\n constructor();\r\n}\r\nexport interface DeletedRecord {\r\n record_uid: string;\r\n revision: number;\r\n client_modified_time: number;\r\n data: string;\r\n record_key: string;\r\n record_key_type: number;\r\n date_deleted: number;\r\n breach_watch_data?: string;\r\n}\r\nexport interface GetDeletedRecordsResponse extends KeeperResponse {\r\n records: DeletedRecord[];\r\n}\r\nexport declare class PurgeDeletedRecordsCommand extends AuthorizedCommand {\r\n constructor();\r\n}\r\nexport declare class RecordShareUpdateCommand extends AuthorizedCommand<RecordShareUpdateResponse> {\r\n constructor();\r\n pt: string;\r\n add_shares: ShareObject[];\r\n update_shares: ShareObject[];\r\n remove_shares: ShareObject[];\r\n}\r\nexport interface ShareObject {\r\n record_uid: string;\r\n to_username?: string;\r\n record_key?: string;\r\n use_ecc_key?: boolean;\r\n editable?: boolean;\r\n shareable?: boolean;\r\n transfer?: boolean;\r\n shared_folder_uid?: string;\r\n team_uid?: string;\r\n}\r\nexport interface RecordShareUpdateResponse extends KeeperResponse {\r\n add_statuses: ShareStatus[];\r\n update_statuses: ShareStatus[];\r\n remove_statuses: ShareStatus[];\r\n}\r\nexport interface ShareStatus {\r\n record_uid: string;\r\n status: 'success' | 'pending_accept' | 'user_not_found' | 'already_shared' | 'not_allowed_to_share' | 'access_denied' | 'not_allowed_to_set_permission';\r\n message: string;\r\n username: string;\r\n}\r\nexport declare class FolderAddCommand extends AuthorizedCommand<FolderAddResponse> {\r\n constructor();\r\n folder_uid: string;\r\n folder_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n key: string;\r\n parent_uid: string;\r\n shared_folder_uid: string;\r\n name: string;\r\n data: string;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n can_edit: boolean;\r\n can_share: boolean;\r\n link: boolean;\r\n}\r\nexport interface FolderAddResponse extends KeeperResponse {\r\n revision: number;\r\n}\r\nexport declare class SharedFolderUpdateCommand extends AuthorizedCommand<SharedFolderUpdateResponse> {\r\n constructor();\r\n pt: string;\r\n operation: 'add' | 'delete' | 'update';\r\n shared_folder_uid: string;\r\n from_team_uid: string;\r\n name: string;\r\n revision: number;\r\n add_users: UserObject[];\r\n add_teams: TeamObject[];\r\n add_records: RecordObject[];\r\n update_users: UserObject[];\r\n update_teams: TeamObject[];\r\n update_records: RecordObject[];\r\n remove_users: UserObject[];\r\n remove_teams: TeamObject[];\r\n remove_records: RecordObject[];\r\n force_update: boolean;\r\n default_manage_users: boolean;\r\n default_manage_records: boolean;\r\n default_can_edit: boolean;\r\n default_can_share: boolean;\r\n}\r\nexport interface UserObject {\r\n username: string;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n shared_folder_key: string;\r\n}\r\nexport interface TeamObject {\r\n team_uid: string;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n shared_folder_key: string;\r\n}\r\nexport interface RecordObject {\r\n record_uid: string;\r\n shared_folder_uid: string;\r\n team_uid: string;\r\n can_edit: boolean;\r\n can_share_boolean: any;\r\n}\r\nexport interface SharedFolderUpdateResponse extends KeeperResponse {\r\n add_users: SharedFolderUpdateUserStatus[];\r\n update_users: SharedFolderUpdateUserStatus[];\r\n remove_users: SharedFolderUpdateUserStatus[];\r\n add_records: SharedFolderUpdateRecordStatus[];\r\n update_records: SharedFolderUpdateRecordStatus[];\r\n remove_records: SharedFolderUpdateRecordStatus[];\r\n}\r\nexport interface SharedFolderUpdateUserStatus {\r\n username: string;\r\n status: 'success' | 'invited' | 'invalid_user' | 'non_group_member';\r\n}\r\nexport interface SharedFolderUpdateRecordStatus {\r\n username: string;\r\n status: 'success' | 'access_denied';\r\n}\r\nexport declare class MoveCommand extends AuthorizedCommand {\r\n constructor();\r\n to_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n to_uid?: string;\r\n link: boolean;\r\n move: MoveObject[];\r\n transition_keys: TransitionKeyObject[];\r\n}\r\nexport interface MoveObject {\r\n type: 'record' | 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n uid: string;\r\n from_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder';\r\n from_uid?: string;\r\n can_edit?: boolean;\r\n can_reshare?: boolean;\r\n cascade: boolean;\r\n}\r\nexport interface TransitionKeyObject {\r\n uid: string;\r\n key: string;\r\n}\r\nexport declare class PublicKeysCommand extends AuthorizedCommand<PublicKeysResponse> {\r\n constructor();\r\n key_owners: string[];\r\n}\r\nexport interface PublicKeysResponse extends KeeperResponse {\r\n public_keys: {\r\n key_owner: string;\r\n public_key: string;\r\n result_code?: 'bad_inputs_key_owners' | 'Email_not_valid' | 'Failed_to_find_user' | 'missing_public_key' | 'cross_region_sharing_error';\r\n message: string;\r\n }[];\r\n}\r\nexport declare class GetRecordsCommand extends AuthorizedCommand<GetRecordsResponse> {\r\n constructor();\r\n include: GetRecordsInclude[];\r\n records: GetRecordsRecord[];\r\n client_time: number;\r\n}\r\nexport declare type GetRecordsInclude = 'data' | 'shares';\r\nexport declare type GetRecordsRecord = {\r\n record_uid?: string;\r\n shared_folder_uid?: string;\r\n team_uid?: string;\r\n};\r\nexport interface GetRecordsResponse extends KeeperResponse {\r\n records: RecordData[];\r\n}\r\nexport declare class EditUserCommand extends AuthorizedCommand {\r\n constructor();\r\n email: string;\r\n}\r\nexport declare class ShareAccountCommand extends AuthorizedCommand {\r\n constructor();\r\n to_role_id: number;\r\n transfer_key: string;\r\n}\r\nexport declare class SendKeyVerificationCodeCommand extends KeeperCommand {\r\n constructor();\r\n device_id: string;\r\n email: string;\r\n}\r\nexport declare class SetTwoFactorAuthCommand extends AuthorizedCommand<SetTwoFactorAuthResponse> {\r\n constructor();\r\n version: number;\r\n channel: TwoFactorChannel;\r\n channel_value: string;\r\n device_token_expire_days: number;\r\n}\r\nexport interface SetTwoFactorAuthResponse extends KeeperResponse {\r\n device_token: string;\r\n backup_codes: string[];\r\n dt_scope: string;\r\n}\r\nexport declare class TwoFactorSettingsCommand extends AuthorizedCommand {\r\n constructor();\r\n}\r\nexport declare class GetPushInfoCommand extends AuthorizedCommand<GetPushInfoResponse> {\r\n constructor();\r\n type: 'USER' | 'DNA' | 'CHAT';\r\n}\r\nexport interface GetPushInfoResponse extends KeeperResponse {\r\n urk: string;\r\n}\r\nexport declare class VerifyUserCommand extends KeeperCommand {\r\n constructor();\r\n username: string;\r\n code: string;\r\n requestor: string;\r\n}\r\nexport declare type EnterpriseDataInclude = \"nodes\" | \"users\" | \"roles\" | \"role_enforcements\" | \"role_privileges\" | \"role_users\" | \"managed_nodes\" | \"managed_companies\" | \"licenses\" | \"team_users\" | \"teams\" | \"role_keys\" | \"role_keys2\" | \"queued_teams\" | \"queued_team_users\" | \"bridges\" | \"scims\" | \"email_provision\" | \"sso_services\" | \"user_privileges\";\r\nexport declare type KeyType = \"encrypted_by_data_key\" | \"encrypted_by_public_key\" | \"no_key\";\r\nexport declare class GetEnterpriseDataCommand extends AuthorizedCommand<GetEnterpriseDataResponse> {\r\n constructor();\r\n include: EnterpriseDataInclude[];\r\n}\r\nexport declare type EnterpriseSettingInclude = \"AuditSyncConfig\" | \"AuditSyncContext\" | \"AuditAlertsConfig\" | \"BackupConfig\" | \"AuditReportFilter\" | \"AuditAlertFilter\" | \"AuditAlertContext\" | \"RDControllerConfig\";\r\nexport declare class GetEnterpriseSettingCommand extends AuthorizedCommand<GetEnterpriseSettingsResponse> {\r\n constructor();\r\n include: EnterpriseSettingInclude[];\r\n}\r\nexport interface GetEnterpriseSettingsResponse extends KeeperResponse {\r\n AuditSyncConfig: any[];\r\n AuditSyncContext: any[];\r\n AuditAlertsConfig: any[];\r\n BackupConfig: any[];\r\n AuditReportFilter: any[];\r\n AuditAlertFilter: any[];\r\n AuditAlertContext: any[];\r\n}\r\nexport declare class PutEnterpriseSettingCommand extends AuthorizedCommand {\r\n constructor();\r\n type: EnterpriseSettingInclude;\r\n settings: any;\r\n}\r\nexport declare class EnterpriseUserLockCommand extends AuthorizedCommand {\r\n constructor();\r\n enterprise_user_id: number;\r\n lock: \"locked\" | \"disabled\" | \"unlocked\";\r\n}\r\nexport declare class EnterpriseNodeToManagedCompanyCommand extends AuthorizedCommand {\r\n constructor();\r\n managed_company_id: number;\r\n nodes: Pick<Node, \"encrypted_data\" | \"node_id\" | \"displayName\">[];\r\n roles: Pick<Role, \"encrypted_data\" | \"role_id\" | \"displayName\">[];\r\n users: Pick<User, \"encrypted_data\" | \"enterprise_user_id\" | \"displayName\">[];\r\n}\r\nexport declare class EnterpriseAllocateIdsCommand extends AuthorizedCommand<EnterpriseAllocateIdsResponse> {\r\n constructor();\r\n number_requested: number;\r\n}\r\nexport interface EnterpriseAllocateIdsResponse extends KeeperResponse {\r\n base_id: number;\r\n number_allocated: number;\r\n}\r\nexport declare class NodeAddCommand extends AuthorizedCommand {\r\n constructor(nodeId: number, parentId: number, encryptedData: string);\r\n private node_id;\r\n private parent_id;\r\n private encrypted_data;\r\n}\r\nexport declare class RoleAddCommand extends AuthorizedCommand {\r\n constructor(roleId: number, nodeId: number, encryptedData: string);\r\n private role_id;\r\n private node_id;\r\n private encrypted_data;\r\n visible_below: boolean;\r\n new_user_inherit: boolean;\r\n}\r\nexport declare class TeamAddCommand extends AuthorizedCommand {\r\n constructor(team_uid: string, team_name: string, node_id: number, public_key: string, private_key: string, team_key: string, encrypted_team_key: string);\r\n team_uid: string;\r\n team_name: string;\r\n node_id: number;\r\n public_key: string;\r\n private_key: string;\r\n team_key: string;\r\n encrypted_team_key: string;\r\n restrict_edit: boolean;\r\n restrict_share: boolean;\r\n restrict_view: boolean;\r\n manage_only: boolean;\r\n}\r\nexport declare class EnterpriseUserAddCommand extends AuthorizedCommand<EnterpriseUserAddResponse> {\r\n constructor(enterprise_user_id: number, email: string, nodeId: number, encryptedData: string);\r\n private enterprise_user_id;\r\n private node_id;\r\n private encrypted_data;\r\n private enterprise_user_username;\r\n}\r\nexport interface EnterpriseUserAddResponse extends KeeperResponse {\r\n verification_code: string;\r\n}\r\nexport declare class TeamEnterpriseUserAddCommand extends AuthorizedCommand {\r\n constructor(user_type: number, enterprise_user_id: number, team_uid: string, team_key: string);\r\n private user_type;\r\n private enterprise_user_id;\r\n private team_uid;\r\n private team_key;\r\n}\r\nexport declare class TeamEnterpriseUserRemoveCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id: number, team_uid: string);\r\n private enterprise_user_id;\r\n private team_uid;\r\n}\r\nexport declare class TeamQueueUserCommand extends AuthorizedCommand {\r\n constructor(enterprise_user_id: number, team_uid: string);\r\n private enterprise_user_id;\r\n private team_uid;\r\n}\r\nexport declare class EnterpriseRegistrationByMspCommand extends AuthorizedCommand<EnterpriseRegistrationByMspResponse> {\r\n constructor();\r\n root_node: string;\r\n role_data: string;\r\n product_id: string;\r\n enterprise_name: string;\r\n node_id: number;\r\n seats: number;\r\n encrypted_tree_key: string;\r\n}\r\nexport interface EnterpriseRegistrationByMspResponse extends KeeperResponse {\r\n enterprise_id: number;\r\n}\r\nexport declare class SendInviteCommand extends AuthorizedCommand {\r\n constructor();\r\n to_email: string[];\r\n}\r\nexport declare class AcceptEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor();\r\n verification_code: string;\r\n}\r\nexport declare class ResendEnterpriseInviteCommand extends AuthorizedCommand {\r\n constructor();\r\n enterprise_user_id: number;\r\n}\r\nexport declare class SsoServiceProviderAddCommand extends AuthorizedCommand {\r\n constructor();\r\n sso_service_provider_id: number;\r\n node_id: number;\r\n sp_data_key: string;\r\n name: string;\r\n invite_new_users: true;\r\n is_cloud: true;\r\n}\r\nexport declare class SsoServiceProviderUpdateCommand extends AuthorizedCommand {\r\n constructor();\r\n sso_service_provider_id: number;\r\n node_id: number;\r\n sp_data_key: string;\r\n name: string;\r\n invite_new_users: true;\r\n is_cloud: true;\r\n}\r\nexport declare class SsoServiceProviderDeleteCommand extends AuthorizedCommand {\r\n constructor();\r\n sso_service_provider_id: number;\r\n}\r\nexport declare class GetAuditEventReportsCommand extends AuthorizedCommand<GetAuditEventReportsResponse> {\r\n constructor();\r\n filter: {\r\n created?: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'month_to_date' | 'last_month' | 'year_to_date' | 'last_year';\r\n audit_event_type?: string[];\r\n };\r\n limit: number;\r\n order: 'descending' | 'ascending';\r\n report_type: 'raw' | 'hour' | 'day' | 'week' | 'month' | 'span';\r\n scope: 'enterprise' | 'user';\r\n timezone: string;\r\n}\r\nexport interface GetAuditEventReportsResponse extends KeeperResponse {\r\n timezone: string;\r\n audit_event_overview_report_rows: AuditEventOverviewReportRow[];\r\n}\r\ninterface AuditEventOverviewReportRow {\r\n geo_location: string;\r\n keeper_version_category: string;\r\n audit_event_type: string;\r\n created: number;\r\n keeper_version: string;\r\n id: number;\r\n ip_address?: string;\r\n username: string;\r\n node_id: number;\r\n node?: string;\r\n role_id?: string;\r\n enforcement?: string;\r\n value?: string;\r\n}\r\nexport interface KeeperHttpResponse {\r\n statusCode: number;\r\n headers: any;\r\n data: Uint8Array;\r\n}\r\nexport interface KeeperResponse {\r\n command: string;\r\n result: string;\r\n result_code: string;\r\n message: string;\r\n}\r\nexport interface SyncLog {\r\n countryCode: string;\r\n ipAddress: string;\r\n deviceUID: string;\r\n countryName: string;\r\n secondsAgo: number;\r\n deviceName: string;\r\n}\r\nexport interface Keys {\r\n data_key_backup_date: number;\r\n encrypted_private_key: string;\r\n encryption_params: string;\r\n encrypted_data_key: string;\r\n}\r\nexport interface License {\r\n breach_watch_date_created: number;\r\n account_type: number;\r\n seconds_until_storage_expiration: number;\r\n storage_expiration_date: string;\r\n breach_watch_enabled: boolean;\r\n breach_watch_scanned: boolean;\r\n chat_enabled: boolean;\r\n product_type_id: number;\r\n bytes_total: number;\r\n expiration_date: string;\r\n breach_watch_expiration: number;\r\n audit_and_reporting_enabled: boolean;\r\n subscription_code: string;\r\n breach_watch_feature_disable: boolean;\r\n max_devices: number;\r\n bytes_used: number;\r\n product_type_name: string;\r\n file_plan_type: number;\r\n seconds_until_expiration: number;\r\n has_auto_renewable_appstore_subscriptions: boolean;\r\n}\r\nexport interface PasswordRule {\r\n rule_type: string;\r\n match: boolean;\r\n pattern: string;\r\n description: string;\r\n minimum: number;\r\n}\r\nexport interface Settings {\r\n security_keys: any[];\r\n rsa_configured: boolean;\r\n audit: boolean;\r\n password_rules: PasswordRule[];\r\n password_rules_intro: string;\r\n channel: string;\r\n theme: string;\r\n master_password_last_modified: number;\r\n}\r\nexport declare enum LoginResponseResultCode {\r\n Success = \"auth_success\",\r\n AuthExpired = \"auth_expired\",\r\n AuthExpiredTransfer = \"auth_expired_transfer\",\r\n AuthFailed = \"auth_failed\",\r\n RegionRedirect = \"region_redirect\",\r\n NeedTOTP = \"need_totp\",\r\n InvalidTOTP = \"invalid_totp\",\r\n InvalidDeviceToken = \"invalid_device_token\",\r\n InvalidBackupCode = \"invalid_backup_code\",\r\n FailedSending = \"failed_sending\",\r\n NotEnrolled = \"not_enrolled\",\r\n Throttled = \"throttled\",\r\n AccountLocked = \"account_locked\",\r\n NotAuthorized = \"not_authorized\",\r\n VersionIncompatible = \"version_incompatible\",\r\n IPAddressNotAllowed = \"ip_address_not_allowed\",\r\n RestrictedClientType = \"restricted_client_type\"\r\n}\r\ndeclare type TwoFactorChannel = \"two_factor_disabled\" | \"two_factor_channel_sms\" | \"two_factor_channel_voice\" | \"two_factor_channel_email\" | \"two_factor_channel_google\" | \"two_factor_channel_rsa\" | \"two_factor_channel_push\" | \"two_factor_channel_duo\" | \"two_factor_channel_u2f\" | \"two_factor_channel_security_keys\";\r\nexport interface LoginResponse extends KeeperResponse {\r\n session_token: string;\r\n client_key: string;\r\n settings: Settings;\r\n is_enterprise_admin: boolean;\r\n license: License;\r\n result_code: LoginResponseResultCode;\r\n region_host?: string;\r\n keys: Keys;\r\n sync_log: SyncLog[];\r\n enforcements: any;\r\n capabilities: string[];\r\n phone: string;\r\n channel: TwoFactorChannel;\r\n url: string;\r\n u2f_challenge?: string | U2FChallenge;\r\n}\r\nexport interface U2FChallenge {\r\n authenticateRequests: AuthenticateRequest[];\r\n}\r\nexport interface AuthenticateRequest {\r\n challenge: string;\r\n appId: string;\r\n keyHandle: string;\r\n version: string;\r\n}\r\nexport interface SharedFolder {\r\n default_can_edit: boolean;\r\n full_sync: boolean;\r\n name: string;\r\n data: string;\r\n key_type: number;\r\n records: SharedFolderRecord[];\r\n default_can_share: boolean;\r\n default_manage_records: boolean;\r\n default_manage_users: boolean;\r\n shared_folder_uid: string;\r\n revision: number;\r\n manage_users: boolean;\r\n manage_records: boolean;\r\n shared_folder_key: string;\r\n}\r\nexport interface SharedFolderRecord {\r\n record_uid: string;\r\n record_key: string;\r\n can_share: boolean;\r\n can_edit: boolean;\r\n}\r\nexport interface Team {\r\n restrict_edit: boolean;\r\n team_private_key: string;\r\n name: string;\r\n team_key_type: number;\r\n restrict_view: boolean;\r\n team_key: string;\r\n shared_folder_keys: TeamSharedFolderKey[];\r\n team_uid: string;\r\n restrict_share: boolean;\r\n}\r\nexport interface TeamSharedFolderKey {\r\n key_type: number;\r\n shared_folder_key: string;\r\n shared_folder_uid: string;\r\n}\r\nexport interface RecordData {\r\n record_uid: string;\r\n version: number;\r\n revision?: number;\r\n client_modified_time?: number;\r\n data?: string;\r\n extra?: string;\r\n udata?: {\r\n file_ids: string[];\r\n };\r\n shared?: boolean;\r\n user_permissions?: UserPermission[];\r\n owner_uid?: string;\r\n link_key?: string;\r\n}\r\nexport interface UserPermission {\r\n owner: boolean;\r\n shareable: boolean;\r\n editable: boolean;\r\n awaiting_approval: boolean;\r\n username: string;\r\n}\r\nexport interface RecordMetaData {\r\n record_uid: string;\r\n owner: boolean;\r\n record_key: string;\r\n can_share: boolean;\r\n can_edit: boolean;\r\n record_key_type: number;\r\n}\r\nexport interface NonSharedData {\r\n record_uid: string;\r\n data: string;\r\n}\r\nexport interface SyncResponse extends KeeperResponse {\r\n full_sync: boolean;\r\n non_shared_data: NonSharedData[];\r\n records: RecordData[];\r\n record_meta_data: RecordMetaData[];\r\n removed_records: string[];\r\n result_code: string;\r\n revision: number;\r\n shared_folders: SharedFolder[];\r\n shared_folder_folder_records: {\r\n record_uid: string;\r\n folder_uid: string;\r\n shared_folder_uid: string;\r\n revision: number;\r\n }[];\r\n teams: Team[];\r\n user_folder_shared_folders: {\r\n shared_folder_uid: string;\r\n revision: number;\r\n }[];\r\n}\r\nexport interface GetEnterpriseDataResponse extends KeeperResponse {\r\n enterprise_name: string;\r\n tree_key: string;\r\n key_type_id: number;\r\n nodes: Node[];\r\n roles: Role[];\r\n users: User[];\r\n teams: CompanyTeam[];\r\n team_users: TeamUser[];\r\n role_users: RoleUser[];\r\n managed_nodes: ManagedNode[];\r\n role_privileges: RolePrivilege[];\r\n user_privileges: UserPrivileges;\r\n role_enforcements: RoleEnforcement[];\r\n licenses: EnterpriseLicense[];\r\n role_keys: RoleKey[];\r\n role_keys2: RoleKeys2[];\r\n sso_services: SsoService[];\r\n queued_team_users: QueuedTeamUser[];\r\n bridges: Bridge[];\r\n scims?: SCIM[];\r\n email_provision?: EmailProvision[];\r\n msp_key?: MSPKey;\r\n managed_companies?: ManagedCompany[];\r\n}\r\nexport interface UserPrivileges {\r\n enterprise_user_id: number;\r\n managed_nodes: ManagedNode[];\r\n encrypted_data: string;\r\n}\r\nexport interface ManagedNode {\r\n node: number;\r\n privileges: string[];\r\n cascade_management: boolean;\r\n role_id: number;\r\n cascade_node_management: boolean;\r\n managed_node_id: number;\r\n}\r\nexport interface User {\r\n displayName?: string;\r\n key_type: KeyType;\r\n user_id?: number;\r\n lock: number;\r\n enterprise_user_id: number;\r\n node_id: number;\r\n encrypted_data: string;\r\n username: string;\r\n status: \"active\" | \"invited\";\r\n account_share_expiration?: number;\r\n roles?: Role[];\r\n teams?: CompanyTeam[];\r\n}\r\nexport interface Role {\r\n displayName?: string;\r\n visible_below: boolean;\r\n new_user_inherit: boolean;\r\n role_id: number;\r\n node_id: number;\r\n encrypted_data: string;\r\n key_type: KeyType;\r\n role_type: \"pool_manager\" | undefined;\r\n}\r\nexport interface Node {\r\n rsa_enabled: boolean;\r\n duo_enabled: boolean;\r\n license_id: number;\r\n node_id: number;\r\n encrypted_data: string;\r\n parent_id?: number;\r\n sso_service_provider_id?: number;\r\n scim_id?: number;\r\n displayName?: string;\r\n nodes?: Node[];\r\n roles?: Role[];\r\n teams?: CompanyTeam[];\r\n users?: User[];\r\n}\r\nexport interface ManagedCompany {\r\n mc_enterprise_name: string;\r\n mc_enterprise_id: number;\r\n msp_node_id: number;\r\n tree_key: string;\r\n product_id: string;\r\n number_of_users: number;\r\n number_of_seats: number;\r\n paused: boolean;\r\n}\r\nexport interface RolePrivilege {\r\n role_id: number;\r\n managed_node_id: number;\r\n privilege: string;\r\n}\r\nexport interface RoleEnforcement {\r\n enforcements: Enforcements;\r\n role_id: number;\r\n}\r\nexport interface Enforcements {\r\n restrict_two_factor_channel_dna?: boolean;\r\n master_password_minimum_lower?: number;\r\n master_password_minimum_upper?: number;\r\n restrict_android_fingerprint?: boolean;\r\n restrict_two_factor_channel_text?: boolean;\r\n require_account_share?: number;\r\n master_password_minimum_length: number;\r\n master_password_minimum_special?: number;\r\n master_password_minimum_digits?: number;\r\n}\r\nexport interface RoleUser {\r\n role_id: number;\r\n enterprise_user_id: number;\r\n}\r\nexport interface RoleKey {\r\n key_type: KeyType;\r\n role_id: number;\r\n encrypted_key: string;\r\n}\r\nexport interface EnterpriseLicense {\r\n file_plan: number;\r\n storage_expiration_date: string;\r\n product_type_id: number;\r\n license_key_id: number;\r\n tier: number;\r\n lic_status: 'business' | 'business_trial' | 'enterprise' | 'msp' | 'msp_trial' | 'mc_business' | 'mc_business_plus' | 'mc_enterprise' | 'mc_enterprise_plus';\r\n paid: boolean;\r\n name: string;\r\n seats_pending: number;\r\n max_gb: number;\r\n add_ons: AddOn[];\r\n expiration: string;\r\n seats_allocated: number;\r\n number_of_seats: number;\r\n enterprise_license_id: number;\r\n msp_pool?: MSPProductLicense[];\r\n}\r\nexport interface MSPProductLicense {\r\n product_id: \"business\" | \"businessPlus\" | \"enterprise\" | \"enterprisePlus\";\r\n seats: number;\r\n availableSeats: number;\r\n}\r\nexport interface AddOn {\r\n chat_isTrial?: boolean;\r\n chat_enabled?: boolean;\r\n chat_expiration?: number;\r\n chat_created?: number;\r\n enterprise_audit_and_reporting_isTrial?: boolean;\r\n enterprise_audit_and_reporting_expiration?: number;\r\n enterprise_audit_and_reporting_created?: number;\r\n enterprise_audit_and_reporting_enabled?: boolean;\r\n onboarding_and_certificate_isTrial?: boolean;\r\n onboarding_and_certificate_created?: number;\r\n onboarding_and_certificate_expiration?: number;\r\n onboarding_and_certificate_enabled?: boolean;\r\n}\r\nexport interface TeamUser {\r\n user_type: number;\r\n enterprise_user_id: number;\r\n team_uid: string;\r\n}\r\nexport interface CompanyTeam {\r\n restrict_sharing: boolean;\r\n restrict_edit: boolean;\r\n name: string;\r\n encrypted_team_key: string;\r\n restrict_view: boolean;\r\n team_uid: string;\r\n node_id: number;\r\n encrypted_data?: string;\r\n}\r\nexport interface Bridge {\r\n bridge_id: number;\r\n node_id: number;\r\n status: string;\r\n}\r\nexport interface SCIM {\r\n scim_id: number;\r\n node_id: number;\r\n status: string;\r\n last_synced: number;\r\n}\r\nexport interface EmailProvision {\r\n id: number;\r\n node_id: number;\r\n domain: string;\r\n method: string;\r\n}\r\nexport interface QueuedTeamUser {\r\n team_uid: string;\r\n users: number[];\r\n}\r\nexport interface SsoService {\r\n invite_new_users: boolean;\r\n sso_service_provider_id: number;\r\n name: string;\r\n sp_url: string;\r\n active: boolean;\r\n node_id: number;\r\n}\r\nexport interface RoleKeys2 {\r\n role_id: number;\r\n role_key: string;\r\n}\r\nexport interface MSPKey {\r\n encrypted_msp_tree_key: string;\r\n encrypted_msp_tree_key_type: KeyType;\r\n}\r\nexport {};\r\n"}}
@@ -0,0 +1 @@
1
+ {"code":"var _a;\r\nimport { __awaiter } from \"tslib\";\r\nimport * as crypto from \"crypto\";\r\nimport { createECDH } from \"crypto\";\r\nimport * as https from \"https\";\r\nimport * as FormData from \"form-data\";\r\nimport * as NodeRSA from 'node-rsa';\r\nimport * as WebSocket from 'faye-websocket';\r\nimport { KeyWrapper } from \"../platform\";\r\nimport { RSA_PKCS1_PADDING } from \"constants\";\r\nimport { keeperKeys } from \"../endpoint\";\r\nimport { socketSendMessage } from '../auth';\r\nexport const nodePlatform = (_a = class {\r\n static getRandomBytes(length) {\r\n return crypto.randomBytes(length);\r\n }\r\n static bytesToBase64(data) {\r\n return Buffer.from(data).toString(\"base64\");\r\n }\r\n static base64ToBytes(data) {\r\n return Buffer.from(data, \"base64\");\r\n }\r\n static bytesToString(data) {\r\n return Buffer.from(data).toString();\r\n }\r\n static stringToBytes(data) {\r\n return Buffer.from(data);\r\n }\r\n static wrapPassword(password) {\r\n return KeyWrapper.create(password);\r\n }\r\n static unWrapPassword(password) {\r\n return password.getKey();\r\n }\r\n static generateRSAKeyPair() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const rsaKeys = new NodeRSA({ b: 2048 });\r\n const rsaPublicKey = rsaKeys.exportKey('public-der');\r\n const rsaPrivateKey = rsaKeys.exportKey('private-der');\r\n return Promise.resolve({\r\n privateKey: rsaPrivateKey,\r\n publicKey: rsaPublicKey\r\n });\r\n });\r\n }\r\n static generateECKeyPair() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const ecdh = createECDH('prime256v1');\r\n ecdh.generateKeys();\r\n return Promise.resolve({\r\n privateKey: ecdh.getPrivateKey(),\r\n publicKey: ecdh.getPublicKey()\r\n });\r\n });\r\n }\r\n static publicEncrypt(data, key) {\r\n let publicKey = key[0] === '-' // PEM or DER?\r\n ? key\r\n : crypto.createPublicKey({\r\n key: Buffer.from(key, 'base64'),\r\n type: 'pkcs1',\r\n format: 'der'\r\n });\r\n return crypto.publicEncrypt({\r\n key: publicKey,\r\n padding: RSA_PKCS1_PADDING\r\n }, data);\r\n }\r\n static publicEncryptEC(data, key, id) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const ecdh = createECDH('prime256v1');\r\n ecdh.generateKeys();\r\n const ephemeralPublicKey = ecdh.getPublicKey();\r\n const sharedSecret = ecdh.computeSecret(key);\r\n const sharedSecretCombined = Buffer.concat([sharedSecret, id || new Uint8Array()]);\r\n const symmetricKey = crypto.createHash(\"SHA256\").update(sharedSecretCombined).digest();\r\n const encryptedData = yield this.aesGcmEncrypt(data, symmetricKey);\r\n return Buffer.concat([ephemeralPublicKey, encryptedData]);\r\n });\r\n }\r\n static privateDecrypt(data, key) {\r\n return crypto.privateDecrypt({\r\n key: crypto.createPrivateKey({\r\n key: Buffer.from(key),\r\n type: 'pkcs1',\r\n format: 'der',\r\n }),\r\n padding: RSA_PKCS1_PADDING\r\n }, data);\r\n }\r\n static privateDecryptEC(data, privateKey, publicKey, id) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const ecdh = createECDH('prime256v1');\r\n ecdh.setPrivateKey(privateKey);\r\n const publicKeyLength = 65;\r\n const ephemeralPublicKey = data.slice(0, publicKeyLength);\r\n const sharedSecret = ecdh.computeSecret(ephemeralPublicKey);\r\n const sharedSecretCombined = Buffer.concat([sharedSecret, id || new Uint8Array()]);\r\n const symmetricKey = crypto.createHash(\"SHA256\").update(sharedSecretCombined).digest();\r\n const encryptedData = data.slice(publicKeyLength);\r\n return yield this.aesGcmDecrypt(encryptedData, symmetricKey);\r\n });\r\n }\r\n static privateSign(data, key) {\r\n return Promise.resolve(crypto\r\n .createSign(\"SHA256\")\r\n .update(data)\r\n .sign(key));\r\n }\r\n static aesGcmEncrypt(data, key) {\r\n let iv = crypto.randomBytes(12);\r\n let cipher = crypto.createCipheriv(\"aes-256-gcm\", key, iv);\r\n let encrypted = Buffer.concat([cipher.update(data), cipher.final()]);\r\n const tag = cipher.getAuthTag();\r\n let result = Buffer.concat([iv, encrypted, tag]);\r\n return Promise.resolve(result);\r\n }\r\n static aesGcmDecrypt(data, key) {\r\n let iv = data.subarray(0, 12);\r\n let encrypted = data.subarray(12, data.length - 16);\r\n let tag = data.subarray(data.length - 16);\r\n let cipher = crypto.createDecipheriv(\"aes-256-gcm\", key, iv);\r\n cipher.setAuthTag(tag);\r\n return Promise.resolve(Buffer.concat([cipher.update(encrypted), cipher.final()]));\r\n }\r\n static aesCbcEncrypt(data, key, usePadding) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let iv = crypto.randomBytes(16);\r\n let cipher = crypto\r\n .createCipheriv(\"aes-256-cbc\", key, iv)\r\n .setAutoPadding(usePadding);\r\n let encrypted = Buffer.concat([cipher.update(data), cipher.final()]);\r\n return Buffer.concat([iv, encrypted]);\r\n });\r\n }\r\n static aesCbcDecrypt(data, key, usePadding) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let iv = data.subarray(0, 16);\r\n let encrypted = data.subarray(16);\r\n let cipher = crypto\r\n .createDecipheriv(\"aes-256-cbc\", key, iv)\r\n .setAutoPadding(usePadding);\r\n return Buffer.concat([cipher.update(encrypted), cipher.final()]);\r\n });\r\n }\r\n static deriveKey(password, saltBytes, iterations) {\r\n return Promise.resolve(crypto.pbkdf2Sync(password.getKey(), saltBytes, iterations, 32, 'SHA256'));\r\n }\r\n static deriveKeyV2(domain, password, saltBytes, iterations) {\r\n const bytes = crypto.pbkdf2Sync(Buffer.of(...Buffer.from(domain), ...nodePlatform.unWrapPassword(password.getKey())), saltBytes, iterations, 64, 'SHA512');\r\n const reducedBytes = crypto.createHmac(\"SHA256\", bytes).update(Buffer.from(domain)).digest();\r\n return Promise.resolve(reducedBytes);\r\n }\r\n static calcAuthVerifier(key) {\r\n return Promise.resolve(crypto.createHash(\"SHA256\").update(key).digest());\r\n }\r\n static get(url, headers) {\r\n return new Promise((resolve, reject) => {\r\n let get = https.request(url, {\r\n method: \"get\",\r\n headers: Object.assign({ \"User-Agent\": `Node/${process.version}` }, headers)\r\n }, (res) => {\r\n this.fetchData(res, resolve);\r\n });\r\n get.on('error', reject);\r\n get.end();\r\n });\r\n }\r\n static post(url, request, headers) {\r\n return new Promise((resolve, reject) => {\r\n let post = https.request(url, {\r\n method: \"post\",\r\n headers: Object.assign({ \"Content-Type\": \"application/octet-stream\", \"Content-Length\": request.length, \"User-Agent\": `Node/${process.version}` }, headers),\r\n }, (res) => {\r\n this.fetchData(res, resolve);\r\n });\r\n post.on('error', reject);\r\n post.write(request);\r\n post.end();\r\n });\r\n }\r\n static fileUpload(url, uploadParameters, data) {\r\n return new Promise((resolve, reject) => {\r\n const form = new FormData();\r\n for (const key in uploadParameters) {\r\n form.append(key, uploadParameters[key]);\r\n }\r\n form.append('file', data);\r\n let post = https.request(url, {\r\n method: \"post\",\r\n headers: form.getHeaders()\r\n });\r\n form.pipe(post);\r\n post.on('error', reject);\r\n post.on('response', function (res) {\r\n resolve({\r\n headers: res.headers,\r\n statusCode: res.statusCode,\r\n statusMessage: res.statusMessage\r\n });\r\n });\r\n });\r\n }\r\n static fetchData(res, resolve) {\r\n let retVal = {\r\n statusCode: res.statusCode,\r\n headers: res.headers,\r\n data: null\r\n };\r\n res.on(\"data\", data => {\r\n retVal.data = retVal.data\r\n ? Buffer.concat([retVal.data, data])\r\n : data;\r\n });\r\n res.on(\"end\", () => {\r\n resolve(retVal);\r\n });\r\n }\r\n static createWebsocket(url) {\r\n const socket = new WebSocket.Client(url);\r\n let createdSocket;\r\n return createdSocket = {\r\n onOpen: (callback) => {\r\n socket.on('open', callback);\r\n },\r\n close: () => {\r\n socket.close();\r\n },\r\n onClose: (callback) => {\r\n socket.on('close', callback);\r\n },\r\n onError: (callback) => {\r\n socket.on('error', callback);\r\n },\r\n onMessage: (callback) => {\r\n socket.on('message', (e) => {\r\n callback(e.data);\r\n });\r\n },\r\n send: (message => {\r\n socketSendMessage(message, socket, createdSocket);\r\n }),\r\n messageQueue: [],\r\n };\r\n }\r\n },\r\n _a.keys = keeperKeys.pem,\r\n _a);\r\n//# sourceMappingURL=platform.js.map","references":["/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/node_modules/form-data/index.d.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/node_modules/node-rsa/src/NodeRSA.js","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/node_modules/faye-websocket/lib/faye/websocket.js","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/platform.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/endpoint.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/auth.ts"],"map":"{\"version\":3,\"file\":\"platform.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/node/platform.ts\"],\"names\":[],\"mappings\":\";;AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAC,UAAU,EAAW,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAc,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAEtD,MAAM,CAAC,MAAM,YAAY,SAAa;QAGlC,MAAM,CAAC,cAAc,CAAC,MAAc;YAChC,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;QAED,MAAM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AAC;gBACD,KAAK,EAAE,GAAG,EAAE;oBACR,MAAM,CAAC,KAAK,EAAE,CAAA;gBAClB,CAAC;gBACD,OAAO,EAAE,CAAC,QAA2B,EAAE,EAAE;oBACrC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;gBAChC,CAAC;gBACD,OAAO,EAAE,CAAC,QAA8B,EAAE,EAAE;oBACxC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;gBAChC,CAAC;gBACD,SAAS,EAAE,CAAC,QAAiC,EAAE,EAAE;oBAC7C,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,CAAe,EAAE,EAAE;wBACrC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;oBACpB,CAAC,CAAC,CAAA;gBACN,CAAC;gBACD,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;oBACb,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,CAAA;gBACrD,CAAC,CAAC;gBACF,YAAY,EAAE,EAAE;aACnB,CAAA;QACL,CAAC;KACJ;IA5QU,OAAI,GAAG,UAAU,CAAC,GAAI;OA4QhC,CAAC\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/node/platform.d.ts","writeByteOrderMark":false,"text":"import { Platform } from \"../platform\";\r\nexport declare const nodePlatform: Platform;\r\n"}}
@@ -0,0 +1 @@
1
+ {"code":"export {};\r\n//# sourceMappingURL=vendorModel.js.map","references":[],"map":"{\"version\":3,\"file\":\"vendorModel.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/vendorModel.ts\"],\"names\":[],\"mappings\":\"\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/vendorModel.d.ts","writeByteOrderMark":false,"text":"export interface EnterpriseBase {\r\n name: string;\r\n region: string;\r\n email: string;\r\n license: MSPLicense;\r\n}\r\nexport interface MSPEnterprise extends EnterpriseBase {\r\n enterprise_id: number;\r\n customers: Customer[];\r\n}\r\nexport interface MSPLicense {\r\n is_trial: boolean;\r\n seats: number;\r\n products: Product[];\r\n}\r\nexport interface Product {\r\n product_id: string;\r\n seats: number;\r\n}\r\nexport interface Customer {\r\n enterprise_id: number;\r\n name: string;\r\n product_id: string;\r\n seats: number;\r\n users: number;\r\n}\r\nexport interface LicenseAdjustment {\r\n seats?: number;\r\n products: Product[];\r\n}\r\n"}}
@@ -0,0 +1 @@
1
+ {"code":"import { __awaiter } from \"tslib\";\r\nimport { Authentication, Push, SsoCloud } from './proto';\r\nimport { platform } from './platform';\r\nimport { generateTransmissionKey, getKeeperUrl, isTwoFactorResultCode, normal64, normal64Bytes, webSafe64FromBytes } from './utils';\r\nimport { deviceMessage, preLoginMessage, registerDeviceMessage, registerDeviceInRegionMessage, ssoCloudRequestMessage, updateDeviceMessage } from './restMessages';\r\nvar ApiRequestPayload = Authentication.ApiRequestPayload;\r\nvar ApiRequest = Authentication.ApiRequest;\r\nvar WssClientResponse = Push.WssClientResponse;\r\nvar WssConnectionRequest = Push.WssConnectionRequest;\r\nvar SsoCloudResponse = SsoCloud.SsoCloudResponse;\r\nexport class KeeperEndpoint {\r\n constructor(options) {\r\n this.options = options;\r\n this.onsitePrivateKey = null;\r\n this.onsitePublicKey = null;\r\n if (options.deviceToken) {\r\n this.deviceToken = options.deviceToken;\r\n this.transmissionKey = generateTransmissionKey(1);\r\n }\r\n else {\r\n this.transmissionKey = generateTransmissionKey(options.deviceConfig.transmissionKeyId || 1);\r\n }\r\n }\r\n getUrl(forPath) {\r\n return getKeeperUrl(this.options.host, forPath);\r\n }\r\n getDeviceToken() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return this.executeRest(deviceMessage({\r\n clientVersion: this.clientVersion,\r\n deviceName: 'JS Keeper API'\r\n }));\r\n });\r\n }\r\n getPreLogin(username) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (!this.deviceToken) {\r\n console.log('Obtaining device token...');\r\n let deviceResponse = yield this.getDeviceToken();\r\n this.deviceToken = deviceResponse.encryptedDeviceToken;\r\n if (this.options.onDeviceToken) {\r\n this.options.onDeviceToken(this.deviceToken);\r\n }\r\n }\r\n while (true) {\r\n try {\r\n return yield this.executeRest(preLoginMessage({\r\n authRequest: {\r\n clientVersion: this.clientVersion,\r\n username: username,\r\n encryptedDeviceToken: this.deviceToken\r\n },\r\n loginType: Authentication.LoginType.NORMAL\r\n }));\r\n }\r\n catch (e) {\r\n if (!(e instanceof Error))\r\n throw (e);\r\n let errorObj = JSON.parse(e.message);\r\n if (errorObj.error === 'region_redirect') {\r\n this.options.host = errorObj.region_host;\r\n console.log(`Redirecting to ${this.options.host}`);\r\n }\r\n else {\r\n throw (e);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n registerDevice() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n // Case 1 new device, no edt no keys - call registration with pub key\r\n // Case 2 existing device on 14, edt but no keys - call device update\r\n // Case 3 existing device on 15+, has edt and keys - skip registration\r\n const deviceConfig = this.options.deviceConfig;\r\n if (deviceConfig.deviceToken && deviceConfig.privateKey && deviceConfig.publicKey) { // Case 1\r\n return;\r\n }\r\n const ecdh = yield platform.generateECKeyPair();\r\n deviceConfig.publicKey = ecdh.publicKey;\r\n deviceConfig.privateKey = ecdh.privateKey;\r\n if (deviceConfig.deviceToken) {\r\n const devUpdMsg = updateDeviceMessage({\r\n encryptedDeviceToken: deviceConfig.deviceToken,\r\n clientVersion: this.options.clientVersion,\r\n deviceName: deviceConfig.deviceName,\r\n devicePublicKey: deviceConfig.publicKey,\r\n });\r\n yield this.executeRest(devUpdMsg);\r\n }\r\n else {\r\n const devRegMsg = registerDeviceMessage({\r\n clientVersion: this.options.clientVersion,\r\n deviceName: deviceConfig.deviceName,\r\n devicePublicKey: deviceConfig.publicKey,\r\n });\r\n const devRegResp = yield this.executeRest(devRegMsg);\r\n console.log(devRegResp);\r\n deviceConfig.deviceToken = devRegResp.encryptedDeviceToken || null;\r\n }\r\n if (this.options.onDeviceConfig) {\r\n this.options.onDeviceConfig(deviceConfig, this.options.host);\r\n }\r\n });\r\n }\r\n executeRest(message, sessionToken) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n while (true) {\r\n let request = yield this.prepareRequest(message.toBytes(), sessionToken);\r\n console.log(\"Calling REST URL:\", this.getUrl(message.path));\r\n let response = yield platform.post(this.getUrl(message.path), request);\r\n if (!response.data || response.data.length === 0 && response.statusCode === 200) {\r\n return;\r\n }\r\n console.log(\"Response code:\", response.statusCode);\r\n try {\r\n let decrypted = yield platform.aesGcmDecrypt(response.data, this.transmissionKey.key);\r\n return message.fromBytes(decrypted);\r\n }\r\n catch (_a) {\r\n const errorMessage = platform.bytesToString(response.data.slice(0, 1000));\r\n try {\r\n const errorObj = JSON.parse(errorMessage);\r\n switch (errorObj.error) {\r\n case 'key':\r\n this.updateTransmissionKey(errorObj.key_id);\r\n continue;\r\n case 'region_redirect':\r\n this.options.host = errorObj.region_host;\r\n if (this.options.onRegionChanged) {\r\n this.options.onRegionChanged(this.options.host);\r\n }\r\n continue;\r\n case 'device_not_registered': {\r\n if (this.options.deviceConfig.deviceToken) {\r\n yield this.executeRest(registerDeviceInRegionMessage({\r\n clientVersion: this.options.clientVersion,\r\n deviceName: this.options.deviceConfig.deviceName,\r\n devicePublicKey: this.options.deviceConfig.publicKey,\r\n encryptedDeviceToken: this.options.deviceConfig.deviceToken\r\n }));\r\n continue;\r\n }\r\n }\r\n }\r\n if (this.options.onCommandFailure) {\r\n this.options.onCommandFailure(Object.assign(Object.assign({}, errorObj), { path: message.path }));\r\n }\r\n }\r\n catch (_b) {\r\n }\r\n throw (new Error(errorMessage));\r\n }\r\n }\r\n });\r\n }\r\n executeV2Command(command) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n command.client_version = this.clientVersion;\r\n let requestBytes = yield this.prepareRequest(command);\r\n let response = yield platform.post(this.getUrl('vault/execute_v2_command'), requestBytes);\r\n let decrypted;\r\n try {\r\n decrypted = yield platform.aesGcmDecrypt(response.data, this.transmissionKey.key);\r\n }\r\n catch (e) {\r\n let error = platform.bytesToString(response.data);\r\n throw (`Unable to decrypt response: ${error}`);\r\n }\r\n let json = JSON.parse(platform.bytesToString(decrypted));\r\n if (json.result !== 'success' && !isTwoFactorResultCode(json.result_code)) {\r\n throw (json);\r\n }\r\n return json;\r\n });\r\n }\r\n get(path) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return platform.get(this.getUrl(path), {});\r\n });\r\n }\r\n updateTransmissionKey(keyNumber) {\r\n this.transmissionKey = generateTransmissionKey(keyNumber);\r\n this.options.deviceConfig.transmissionKeyId = keyNumber;\r\n if (this.options.onDeviceConfig) {\r\n this.options.onDeviceConfig(this.options.deviceConfig, this.options.host);\r\n }\r\n }\r\n prepareRequest(payload, sessionToken) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return prepareApiRequest(payload, this.transmissionKey, sessionToken);\r\n });\r\n }\r\n decryptPushMessage(pushMessageData) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const decryptedPushMessage = yield platform.aesGcmDecrypt(pushMessageData, this.transmissionKey.key);\r\n return WssClientResponse.decode(decryptedPushMessage);\r\n });\r\n }\r\n getPushConnectionRequest(messageSessionUid) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return getPushConnectionRequest(messageSessionUid, this.options.deviceConfig.deviceToken, this.transmissionKey);\r\n });\r\n }\r\n getTransmissionKey() {\r\n return this.transmissionKey;\r\n }\r\n prepareSsoPayload(messageSessionUid, username = '', idpSessionId = '') {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const payload = ssoCloudRequestMessage({\r\n \"embedded\": true,\r\n \"clientVersion\": this.clientVersion,\r\n \"dest\": \"vault\",\r\n \"forceLogin\": false,\r\n \"messageSessionUid\": messageSessionUid,\r\n \"idpSessionId\": idpSessionId,\r\n \"username\": username\r\n }).toBytes();\r\n const request = yield prepareApiRequest(payload, this.transmissionKey);\r\n return webSafe64FromBytes(request);\r\n });\r\n }\r\n decryptCloudSsoResponse(token) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n return decryptCloudSsoResponse(token, this.getTransmissionKey().key);\r\n });\r\n }\r\n getOnsitePublicKey() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (!this.onsitePublicKey || !this.onsitePrivateKey) {\r\n const { privateKey, publicKey } = yield platform.generateRSAKeyPair();\r\n this.onsitePrivateKey = privateKey;\r\n this.onsitePublicKey = publicKey;\r\n }\r\n return webSafe64FromBytes(this.onsitePublicKey);\r\n });\r\n }\r\n decryptOnsiteSsoPassword(password) {\r\n const encryptedPasswordBytes = normal64Bytes(password);\r\n const decryptedPassword = platform.privateDecrypt(encryptedPasswordBytes, this.onsitePrivateKey);\r\n return platform.bytesToString(decryptedPassword);\r\n }\r\n}\r\nexport function getPushConnectionRequest(messageSessionUid, encryptedDeviceToken, transmissionKey) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const connectionRequest = WssConnectionRequest.create({\r\n messageSessionUid: messageSessionUid,\r\n encryptedDeviceToken: encryptedDeviceToken,\r\n deviceTimeStamp: new Date().getTime()\r\n });\r\n const connectionRequestBytes = WssConnectionRequest.encode(connectionRequest).finish();\r\n const apiRequest = yield prepareApiRequest(connectionRequestBytes, transmissionKey);\r\n return webSafe64FromBytes(apiRequest);\r\n });\r\n}\r\nexport function prepareApiRequest(payload, transmissionKey, sessionToken) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const requestPayload = ApiRequestPayload.create();\r\n if (payload) {\r\n requestPayload.payload = payload instanceof Uint8Array\r\n ? payload\r\n : Buffer.from(JSON.stringify(payload));\r\n }\r\n if (sessionToken) {\r\n requestPayload.encryptedSessionToken = normal64Bytes(sessionToken);\r\n }\r\n let requestPayloadBytes = ApiRequestPayload.encode(requestPayload).finish();\r\n let encryptedRequestPayload = yield platform.aesGcmEncrypt(requestPayloadBytes, transmissionKey.key);\r\n let apiRequest = ApiRequest.create({\r\n encryptedTransmissionKey: transmissionKey.encryptedKey,\r\n encryptedPayload: encryptedRequestPayload,\r\n publicKeyId: transmissionKey.publicKeyId,\r\n locale: 'en_US'\r\n });\r\n return ApiRequest.encode(apiRequest).finish();\r\n });\r\n}\r\nexport function decryptCloudSsoResponse(cloudResponseToken, key) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n const decryptedData = yield platform.aesGcmDecrypt(normal64Bytes(cloudResponseToken), key);\r\n return SsoCloudResponse.decode(decryptedData);\r\n });\r\n}\r\nexport var KeeperEnvironment;\r\n(function (KeeperEnvironment) {\r\n KeeperEnvironment[\"Prod\"] = \"keepersecurity.com\";\r\n KeeperEnvironment[\"QA\"] = \"qa.keepersecurity.com\";\r\n KeeperEnvironment[\"DEV\"] = \"dev.keepersecurity.com\";\r\n KeeperEnvironment[\"DEV2\"] = \"dev2.keepersecurity.com\";\r\n KeeperEnvironment[\"LOCAL\"] = \"local.keepersecurity.com\";\r\n KeeperEnvironment[\"Prod_EU\"] = \"keepersecurity.eu\";\r\n KeeperEnvironment[\"QA_EU\"] = \"qa.keepersecurity.eu\";\r\n KeeperEnvironment[\"DEV_EU\"] = \"dev.keepersecurity.eu\";\r\n})(KeeperEnvironment || (KeeperEnvironment = {}));\r\nlet keys = {\r\n der: {\r\n key1: 'MIIBCgKCAQEA9Z/CZzxiNUz8+npqI4V10+zW3AL7+M4UQDdd/17759Xzm0MOEfHOOsOgZxxNK1DEsbyCTCE05fd3Hz1mn1uGjXvm5HnN2mL/3TOVxyLU6VwH9EDInnj4DNMFifs69il3KlviT3llRgPCcjF4xrF8d4SR0/N3eqS1f9CBJPNEKEH+am5Xb/FqAlOUoXkILF0UYxA/jNLoWBSq+1W58e4xDI0p0GuP0lN8f97HBtfB7ijbtF+VxIXtxRy+4jA49zK+CQrGmWqIm5DzZcBvUtVGZ3UXd6LeMXMJOifvuCneGC2T2uB6G2g5yD54+onmKIETyNX0LtpR1MsZmKLgru5ugwIDAQAB',\r\n key2: 'MIIBCg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N8f97HBtfB7ijbtF+VxIXtxRy+4jA49zK+CQrGmWqIm5DzZcBvUtVG\\nZ3UXd6LeMXMJOifvuCneGC2T2uB6G2g5yD54+onmKIETyNX0LtpR1MsZmKLgru5u\\ngwIDAQAB\\n-----END PUBLIC KEY-----\\n',\r\n key2: '-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkOpym7xC3sSysw5DAidL\\noVF7JUgnvXejbieDWmEiD+DQOKxzfQqYHoFfeeix//bx3wMW3I8cAc8zwZ1JO8hy\\nB2ON732JE2Zp301GAUMnAK/rBhQWmYKP/+uXSKeTJPiuaW9PVG0oRJ4MEdS+t1vI\\nA4eDPhI1EexHaY3P2wHKoV8twcGvdWUZB5gxEpMbx5CuvEXptnXEJlxKou3TZu9u\\nwJIo0pgqVLUgRpW1RSRipgutpUslBnQ72Bdbsry0KKVTlcPsudAnnWUtsMJNgmyQ\\nbESPm+aVv+GzdVUFvWKpKkAxDpNArPMf0xt8VL2frw2LDe5/n9IMFogUiSYt156/\\nmQIDAQAB\\n-----END PUBLIC KEY-----\\n',\r\n key3: '-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyvxCWbLvtMRmq57oFg3m\\nY4DWfkb1dir7b29E8UcwcKDcCsGTqoIhubU2pO46TVUXmFgC4E+Zlxt+9F+YA+MY\\n7i/5GrDvySwAy4nbDhRL6Z0kz+rqUirgm9WWsP9v+X/BwzARqq83HNBuzAjf3UHg\\nYDsKmCCarVAzRplZdT3Q5rnNiYPYSHzwfUhKEAyXk71UdtleD+bsMAmwnuYHLhDH\\niT279An/Ta93c9MTqa/Tq2Eirl/NXn1RdtbNohmMXldAH+C8uIh3Sz8erS4hZFSd\\nUG1WlDsKpyRouNPQ3diorbO88wEAgpHjXkOLj63d1fYJBFG0yfu73U80aEZehQkS\\nawIDAQAB\\n-----END PUBLIC KEY-----\\n',\r\n key4: '-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0TVoXLpgluaqw3P011zF\\nPSIzWhUMBqXT+Ocjy8NKjJbdrbs53eRFKk1waeB3hNn5JEKNVSNbUIe+MjacB9P3\\n4iCfKtdnrdDB8JXx0nIbIPzLtcJC4HCYASpjX/TVXrU9BgeCE3NUtnIxjHDy8PCb\\nJyAS/Pv299Q/wpLWnkkjq70ZJ2/fX+ObbQaZHwsWKbRZ/5sD6rLfxNACTGI/jo9+\\nvVug6AdNq96J7nUdYV1cG+INQwJJKMcAbKQcLrml8CMPc2mmf0KQ5MbS/KSbLXHU\\nF+81AsZVHfQRSuigOStQKxgSGL5osY4NrEcODbEXtkuDrKNMsZYhijKiUHBj9vvg\\nKwIDAQAB\\n-----END PUBLIC KEY-----\\n',\r\n key5: '-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAueOWC26w+HlOLW7s88We\\nWkXpjxK4mkjqngIzwbjnsU9145R51HvsILvjXJNdAuueVDHj3OOtQjfUM6eMMLr+\\n3kaPv68y4FNusvB49uKc5ETI0HtHmHFSn9qAZvC7dQHSpYqC2TeCus+xKeUciQ5A\\nmSfwpNtwzM6Oh2TO45zAqSA+QBSk/uv9TJu0e1W1AlNmizQtHX6je+mvqZCVHkzG\\nFSQWQ8DBL9dHjviI2mmWfL/egAVVhBgTFXRHg5OmJbbPoHj217Yh+kHYA8IWEAHy\\nlboH6CVBdrNL4Na0fracQVTm+nOWdM95dKk3fH+KJYk/SmwB47ndWACLLi5epLl9\\nvwIDAQAB\\n-----END PUBLIC KEY-----\\n',\r\n key6: '-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2PJRM7+4R97rHwY/zCkF\\nA8B3llawb6gF7oAZCpxprl6KB5z2cqLAvUfEOBtnr7RIturX04p3ThnwaFnAR7AD\\nVZWBGOYuAyaLzGHDI5mvs8D+NewG9vw8qRkTT7Mb8fuOHC6+/lTp9AF2OA2H4QYi\\nT1vt43KbuD0Y2CCVrOTKzDMXG8msl/JvAKt4axY9RGUtBbv0NmpkBCjLZri5AaTM\\ngjLdu8XBXCqoLx7qZL+Bwiv4njw+ZAI4jIszJTdGzMtoQ0zL7LBj/TDUBI4Qhf2b\\nZTZlUSL3xeDWOKmd8Frksw3oKyJ17oCQK+EGau6EaJRGyasBXl8uOEWmYYgqOWir\\nNwIDAQAB\\n-----END PUBLIC KEY-----\\n'\r\n }\r\n};\r\nlet _keeperKeys = {\r\n der: [], pem: []\r\n};\r\nfor (let key in keys.der) {\r\n _keeperKeys.der.push(normal64(keys.der[key]));\r\n}\r\nfor (let key in keys.pem) {\r\n _keeperKeys.pem.push(keys.pem[key]);\r\n}\r\nexport const keeperKeys = _keeperKeys;\r\n//# sourceMappingURL=endpoint.js.map","references":["/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/commands.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/proto.d.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/configuration.ts"],"map":"{\"version\":3,\"file\":\"endpoint.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/endpoint.ts\"],\"names\":[],\"mappings\":\";AAEA,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAA;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACnC,OAAO,EACH,uBAAuB,EAC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AAI,EAAE,8cAA8c;QACpd,IAAI,EAAE,8cAA8c;QACpd,IAAI,EAAE,8cAA8c;QACpd,IAAI,EAAE,8cAA8c;QACpd,IAAI,EAAE,8cAA8c;QACpd,IAAI,EAAE,8cAA8c;KACvd;CACJ,CAAA;AAEL,IAAI,WAAW,GAAe;IAC1B,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE;CACnB,CAAA;AAED,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE;IACtB,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;CAChD;AACD,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE;IACtB,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;CACtC;AAED,MAAM,CAAC,MAAM,UAAU,GAAe,WAAW,CAAA\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/endpoint.d.ts","writeByteOrderMark":false,"text":"import { KeeperCommand, KeeperHttpResponse } from './commands';\r\nimport { Authentication, Push, SsoCloud } from './proto';\r\nimport { RestMessage } from './restMessages';\r\nimport { ClientConfigurationInternal, TransmissionKey } from './configuration';\r\nimport IDeviceResponse = Authentication.IDeviceResponse;\r\nimport IPreLoginResponse = Authentication.IPreLoginResponse;\r\nimport WssClientResponse = Push.WssClientResponse;\r\nimport SsoCloudResponse = SsoCloud.SsoCloudResponse;\r\nexport declare class KeeperEndpoint {\r\n private options;\r\n private transmissionKey;\r\n deviceToken: Uint8Array;\r\n clientVersion: any;\r\n private onsitePrivateKey;\r\n private onsitePublicKey;\r\n constructor(options: ClientConfigurationInternal);\r\n private getUrl;\r\n getDeviceToken(): Promise<IDeviceResponse>;\r\n getPreLogin(username: string): Promise<IPreLoginResponse>;\r\n registerDevice(): Promise<void>;\r\n executeRest<TIn, TOut>(message: RestMessage<TIn, TOut>, sessionToken?: string): Promise<TOut>;\r\n executeV2Command<T>(command: KeeperCommand): Promise<T>;\r\n get(path: string): Promise<KeeperHttpResponse>;\r\n updateTransmissionKey(keyNumber: number): void;\r\n prepareRequest(payload: Uint8Array | KeeperCommand, sessionToken?: string): Promise<Uint8Array>;\r\n decryptPushMessage(pushMessageData: Uint8Array): Promise<WssClientResponse>;\r\n getPushConnectionRequest(messageSessionUid: Uint8Array): Promise<string>;\r\n getTransmissionKey(): TransmissionKey;\r\n prepareSsoPayload(messageSessionUid: Uint8Array, username?: string, idpSessionId?: string): Promise<string>;\r\n decryptCloudSsoResponse(token: string): Promise<SsoCloudResponse>;\r\n getOnsitePublicKey(): Promise<string>;\r\n decryptOnsiteSsoPassword(password: string): string;\r\n}\r\nexport declare function getPushConnectionRequest(messageSessionUid: Uint8Array, encryptedDeviceToken: Uint8Array, transmissionKey: TransmissionKey): Promise<string>;\r\nexport declare function prepareApiRequest(payload: Uint8Array | KeeperCommand, transmissionKey: TransmissionKey, sessionToken?: string): Promise<Uint8Array>;\r\nexport declare function decryptCloudSsoResponse(cloudResponseToken: string, key: Uint8Array): Promise<SsoCloudResponse>;\r\nexport declare enum KeeperEnvironment {\r\n Prod = \"keepersecurity.com\",\r\n QA = \"qa.keepersecurity.com\",\r\n DEV = \"dev.keepersecurity.com\",\r\n DEV2 = \"dev2.keepersecurity.com\",\r\n LOCAL = \"local.keepersecurity.com\",\r\n Prod_EU = \"keepersecurity.eu\",\r\n QA_EU = \"qa.keepersecurity.eu\",\r\n DEV_EU = \"dev.keepersecurity.eu\"\r\n}\r\ninterface KeeperKeys {\r\n der: string[];\r\n pem: string[];\r\n}\r\nexport declare const keeperKeys: KeeperKeys;\r\nexport {};\r\n"}}
@@ -0,0 +1 @@
1
+ {"code":"export class KeyWrapper {\r\n static create(key) {\r\n const wrapper = new KeyWrapper();\r\n wrapper.key = key;\r\n return wrapper;\r\n }\r\n getKey() {\r\n return this.key;\r\n }\r\n}\r\nexport function connectPlatform(p) {\r\n platform = p;\r\n}\r\nexport let platform;\r\n//# sourceMappingURL=platform.js.map","references":["/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/commands.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/auth.ts"],"map":"{\"version\":3,\"file\":\"platform.js\",\"sourceRoot\":\"\",\"sources\":[\"../../src/platform.ts\"],\"names\":[],\"mappings\":\"AAyDA,MAAM,OAAO,UAAU;IAGnB,MAAM,CAAC,MAAM,CAAC,GAAqB;QAC/B,MAAM,OAAO,GAAG,IAAI,UAAU,EAAE,CAAA;QAChC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAA;QACjB,OAAO,OAAO,CAAA;IAClB,CAAC;IAEM,MAAM;QACT,OAAO,IAAI,CAAC,GAAG,CAAA;IACnB,CAAC;CACJ;AAED,MAAM,UAAU,eAAe,CAAC,CAAW;IACvC,QAAQ,GAAG,CAAC,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,IAAI,QAAkB,CAAC\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/platform.d.ts","writeByteOrderMark":false,"text":"import { KeeperHttpResponse } from \"./commands\";\r\nimport { SocketProxy } from './auth';\r\nexport interface Platform {\r\n keys: string[];\r\n getRandomBytes(length: number): Uint8Array;\r\n bytesToBase64(data: Uint8Array): string;\r\n base64ToBytes(data: string): Uint8Array;\r\n bytesToString(data: Uint8Array): string;\r\n stringToBytes(data: string): Uint8Array;\r\n wrapPassword(password: Uint8Array): KeyWrapper;\r\n unWrapPassword(password: KeyWrapper): Uint8Array;\r\n generateRSAKeyPair(): Promise<{\r\n privateKey: Uint8Array;\r\n publicKey: Uint8Array;\r\n }>;\r\n generateECKeyPair(): Promise<{\r\n privateKey: Uint8Array;\r\n publicKey: Uint8Array;\r\n }>;\r\n publicEncrypt(data: Uint8Array, key: string): Uint8Array;\r\n publicEncryptEC(data: Uint8Array, key: Uint8Array, id?: Uint8Array): Promise<Uint8Array>;\r\n privateDecrypt(data: Uint8Array, key: Uint8Array): Uint8Array;\r\n privateDecryptEC(data: Uint8Array, privateKey: Uint8Array, publicKey?: Uint8Array, id?: Uint8Array): Promise<Uint8Array>;\r\n privateSign(data: Uint8Array, key: string): Promise<Uint8Array>;\r\n aesGcmEncrypt(data: Uint8Array, key: Uint8Array): Promise<Uint8Array>;\r\n aesGcmDecrypt(data: Uint8Array, key: Uint8Array): Promise<Uint8Array>;\r\n aesCbcEncrypt(data: Uint8Array, key: Uint8Array, usePadding: boolean): Promise<Uint8Array>;\r\n aesCbcDecrypt(data: Uint8Array, key: Uint8Array, usePadding: boolean): Promise<Uint8Array>;\r\n deriveKey(password: KeyWrapper, saltBytes: Uint8Array, iterations: number): Promise<Uint8Array>;\r\n deriveKeyV2(domain: string, password: KeyWrapper, saltBytes: Uint8Array, iterations: number): Promise<Uint8Array>;\r\n calcAuthVerifier(key: Uint8Array): Promise<Uint8Array>;\r\n get(url: string, headers: any): Promise<KeeperHttpResponse>;\r\n post(url: string, request: Uint8Array, headers?: any): Promise<KeeperHttpResponse>;\r\n fileUpload(url: string, uploadParameters: any, data: Uint8Array | Blob): Promise<any>;\r\n createWebsocket(url: string): SocketProxy;\r\n}\r\nexport declare class KeyWrapper {\r\n private key;\r\n static create(key: Uint8Array | any): KeyWrapper;\r\n getKey(): any;\r\n}\r\nexport declare function connectPlatform(p: Platform): void;\r\nexport declare let platform: Platform;\r\n"}}
@@ -0,0 +1 @@
1
+ {"code":"export * from \"../endpoint\";\r\nexport * from \"../auth\";\r\nexport * from \"../vendorContext\";\r\nexport * from \"../vendorModel\";\r\nexport * from \"../vault\";\r\nexport * from \"../company\";\r\nexport * from \"../configuration\";\r\nexport * from \"../commands\";\r\nexport * from \"../restMessages\";\r\nexport * from \"../utils\";\r\nexport * from \"../platform\";\r\nexport * from \"../proto\";\r\nimport { connectPlatform } from \"../platform\";\r\nimport { nodePlatform } from \"./platform\";\r\nconnectPlatform(nodePlatform);\r\n//# sourceMappingURL=index.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/auth.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/vendorContext.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/vault.ts","/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/src/company.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/commands.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/utils.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/proto.d.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/node/platform.ts"],"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/node/index.ts\"],\"names\":[],\"mappings\":\"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AAExC,eAAe,CAAC,YAAY,CAAC,CAAC\"}","dts":{"name":"/home/runner/work/keeper-sdk-javascript/keeper-sdk-javascript/keeperapi/node/index.d.ts","writeByteOrderMark":false,"text":"export * from \"../endpoint\";\r\nexport * from \"../auth\";\r\nexport * from \"../vendorContext\";\r\nexport * from \"../vendorModel\";\r\nexport * from \"../vault\";\r\nexport * from \"../company\";\r\nexport * from \"../configuration\";\r\nexport * from \"../commands\";\r\nexport * from \"../restMessages\";\r\nexport * from \"../utils\";\r\nexport * from \"../platform\";\r\nexport * from \"../proto\";\r\n"}}