eufy-security-client 4.0.0 → 4.1.0-dev.36

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 (53) hide show
  1. package/README.md +32 -0
  2. package/build/eufysecurity.d.ts +15 -0
  3. package/build/eufysecurity.js +58 -6
  4. package/build/eufysecurity.js.map +1 -1
  5. package/build/http/api.js +1 -1
  6. package/build/http/api.js.map +1 -1
  7. package/build/http/decodeImageV2.d.ts +12 -8
  8. package/build/http/decodeImageV2.js +17 -12
  9. package/build/http/decodeImageV2.js.map +1 -1
  10. package/build/http/index.d.ts +2 -0
  11. package/build/http/index.js +2 -0
  12. package/build/http/index.js.map +1 -1
  13. package/build/http/interfaces.d.ts +2 -0
  14. package/build/http/megaApi.d.ts +186 -0
  15. package/build/http/megaApi.js +513 -0
  16. package/build/http/megaApi.js.map +1 -0
  17. package/build/http/megaCrypto.d.ts +84 -0
  18. package/build/http/megaCrypto.js +129 -0
  19. package/build/http/megaCrypto.js.map +1 -0
  20. package/build/http/megaInterfaces.d.ts +83 -0
  21. package/build/http/megaInterfaces.js +3 -0
  22. package/build/http/megaInterfaces.js.map +1 -0
  23. package/build/http/megaTransition.d.ts +103 -0
  24. package/build/http/megaTransition.js +203 -0
  25. package/build/http/megaTransition.js.map +1 -0
  26. package/build/http/station.d.ts +1 -0
  27. package/build/http/station.js +4 -0
  28. package/build/http/station.js.map +1 -1
  29. package/build/http/types.d.ts +7 -1
  30. package/build/http/types.js +6 -0
  31. package/build/http/types.js.map +1 -1
  32. package/build/http/utils.d.ts +10 -0
  33. package/build/http/utils.js +34 -10
  34. package/build/http/utils.js.map +1 -1
  35. package/build/interfaces.d.ts +2 -0
  36. package/build/p2p/interfaces.d.ts +2 -0
  37. package/build/p2p/session.js +17 -0
  38. package/build/p2p/session.js.map +1 -1
  39. package/build/p2p/types.d.ts +1 -0
  40. package/build/p2p/types.js +1 -0
  41. package/build/p2p/types.js.map +1 -1
  42. package/coverage/clover.xml +15420 -0
  43. package/coverage/coverage-final.json +37 -0
  44. package/coverage/lcov-report/base.css +224 -0
  45. package/coverage/lcov-report/block-navigation.js +87 -0
  46. package/coverage/lcov-report/favicon.png +0 -0
  47. package/coverage/lcov-report/index.html +176 -0
  48. package/coverage/lcov-report/prettify.css +1 -0
  49. package/coverage/lcov-report/prettify.js +2 -0
  50. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  51. package/coverage/lcov-report/sorter.js +210 -0
  52. package/coverage/lcov.info +29542 -0
  53. package/package.json +1 -1
@@ -222,7 +222,13 @@ export declare enum ResponseErrorCode {
222
222
  MULTIPLE_INACTIVATED_ERROR = 26015,
223
223
  MULTIPLE_REGISTRATION_ERROR = 26000,
224
224
  RESP_ERROR_CODE_SESSION_TIMEOUT = 401,
225
- CODE_REQUEST_TOO_FAST = 250999
225
+ CODE_REQUEST_TOO_FAST = 250999,
226
+ CODE_PASSWORD_TOO_MANY_INCORRECT = 10019,
227
+ CODE_PASSWORD_WRONG_FIVE_TIMES = 100056,
228
+ CODE_EMAIL_OR_PASSWORD_INCORRECT = 26108,
229
+ CODE_NEED_EMAIL_VERIFICATION = 26105,
230
+ CODE_NEED_NEGOTIATE_KEY = 4404,
231
+ CODE_SIGNATURE_ERROR = 4416
226
232
  }
227
233
  export declare enum VerfyCodeTypes {
228
234
  TYPE_SMS = 0,
@@ -246,6 +246,12 @@ var ResponseErrorCode;
246
246
  ResponseErrorCode[ResponseErrorCode["MULTIPLE_REGISTRATION_ERROR"] = 26000] = "MULTIPLE_REGISTRATION_ERROR";
247
247
  ResponseErrorCode[ResponseErrorCode["RESP_ERROR_CODE_SESSION_TIMEOUT"] = 401] = "RESP_ERROR_CODE_SESSION_TIMEOUT";
248
248
  ResponseErrorCode[ResponseErrorCode["CODE_REQUEST_TOO_FAST"] = 250999] = "CODE_REQUEST_TOO_FAST";
249
+ ResponseErrorCode[ResponseErrorCode["CODE_PASSWORD_TOO_MANY_INCORRECT"] = 10019] = "CODE_PASSWORD_TOO_MANY_INCORRECT";
250
+ ResponseErrorCode[ResponseErrorCode["CODE_PASSWORD_WRONG_FIVE_TIMES"] = 100056] = "CODE_PASSWORD_WRONG_FIVE_TIMES";
251
+ ResponseErrorCode[ResponseErrorCode["CODE_EMAIL_OR_PASSWORD_INCORRECT"] = 26108] = "CODE_EMAIL_OR_PASSWORD_INCORRECT";
252
+ ResponseErrorCode[ResponseErrorCode["CODE_NEED_EMAIL_VERIFICATION"] = 26105] = "CODE_NEED_EMAIL_VERIFICATION";
253
+ ResponseErrorCode[ResponseErrorCode["CODE_NEED_NEGOTIATE_KEY"] = 4404] = "CODE_NEED_NEGOTIATE_KEY";
254
+ ResponseErrorCode[ResponseErrorCode["CODE_SIGNATURE_ERROR"] = 4416] = "CODE_SIGNATURE_ERROR";
249
255
  })(ResponseErrorCode || (exports.ResponseErrorCode = ResponseErrorCode = {}));
250
256
  var VerfyCodeTypes;
251
257
  (function (VerfyCodeTypes) {