@homebridge-eufy-security/eufy-security-client 3.7.2-dev.6 → 3.8.0-dev.8

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 (40) hide show
  1. package/README.md +27 -0
  2. package/build/eufysecurity.d.ts +2 -0
  3. package/build/eufysecurity.js +27 -0
  4. package/build/eufysecurity.js.map +1 -1
  5. package/build/http/api.d.ts +2 -0
  6. package/build/http/api.js +39 -6
  7. package/build/http/api.js.map +1 -1
  8. package/build/http/device.d.ts +16 -1
  9. package/build/http/device.js +79 -13
  10. package/build/http/device.js.map +1 -1
  11. package/build/http/interfaces.d.ts +1 -0
  12. package/build/http/models.d.ts +1 -0
  13. package/build/http/station.d.ts +9 -1
  14. package/build/http/station.js +39 -12
  15. package/build/http/station.js.map +1 -1
  16. package/build/http/types.d.ts +6 -0
  17. package/build/http/types.js +386 -6
  18. package/build/http/types.js.map +1 -1
  19. package/build/p2p/adts.d.ts +12 -0
  20. package/build/p2p/adts.js +185 -0
  21. package/build/p2p/adts.js.map +1 -0
  22. package/build/p2p/interfaces.d.ts +10 -0
  23. package/build/p2p/session.d.ts +3 -1
  24. package/build/p2p/session.js +121 -29
  25. package/build/p2p/session.js.map +1 -1
  26. package/build/p2p/types.d.ts +1 -0
  27. package/build/p2p/types.js +1 -0
  28. package/build/p2p/types.js.map +1 -1
  29. package/build/p2p/utils.d.ts +10 -0
  30. package/build/p2p/utils.js +64 -2
  31. package/build/p2p/utils.js.map +1 -1
  32. package/build/push/service.js +1 -1
  33. package/build/push/service.js.map +1 -1
  34. package/coverage/clover.xml +10961 -10772
  35. package/coverage/coverage-final.json +27 -26
  36. package/coverage/lcov-report/index.html +59 -59
  37. package/coverage/lcov.info +18960 -18612
  38. package/package.json +5 -1
  39. package/scripts/cut_release.sh +2 -0
  40. package/scripts/generate_changelog.sh +93 -0
@@ -1740,12 +1740,15 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1740
1740
  type == types_1.DeviceType.CAMERA_GARAGE_T8453 ||
1741
1741
  type == types_1.DeviceType.CAMERA_GARAGE_T8452 ||
1742
1742
  type == types_1.DeviceType.CAMERA_FG ||
1743
+ type == types_1.DeviceType.CAMERA_4G_S330 ||
1743
1744
  type == types_1.DeviceType.INDOOR_PT_CAMERA_S350 ||
1744
1745
  type == types_1.DeviceType.INDOOR_PT_CAMERA_E30 ||
1745
1746
  type == types_1.DeviceType.INDOOR_PT_CAMERA_C210 ||
1746
1747
  type == types_1.DeviceType.INDOOR_PT_CAMERA_C220 ||
1747
1748
  type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2 ||
1748
- type == types_1.DeviceType.SMART_DROP);
1749
+ type == types_1.DeviceType.SOLOCAM_E42 ||
1750
+ type == types_1.DeviceType.SMART_DROP ||
1751
+ type == types_1.DeviceType.CAMERA_POE_S4);
1749
1752
  }
1750
1753
  static hasBattery(type) {
1751
1754
  return (type == types_1.DeviceType.CAMERA ||
@@ -1792,16 +1795,19 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1792
1795
  type == types_1.DeviceType.SMART_SAFE_7402 ||
1793
1796
  type == types_1.DeviceType.SMART_SAFE_7403 ||
1794
1797
  type == types_1.DeviceType.CAMERA_FG ||
1798
+ type == types_1.DeviceType.CAMERA_4G_S330 ||
1795
1799
  type == types_1.DeviceType.WALL_LIGHT_CAM_81A0 ||
1796
1800
  type == types_1.DeviceType.SMART_DROP ||
1797
1801
  type == types_1.DeviceType.OUTDOOR_PT_CAMERA ||
1802
+ type == types_1.DeviceType.SOLOCAM_E42 ||
1798
1803
  type == types_1.DeviceType.ENTRY_SENSOR_E20);
1799
1804
  }
1800
1805
  static isStation(type) {
1801
1806
  return (type === types_1.DeviceType.STATION ||
1802
1807
  type === types_1.DeviceType.HB3 ||
1803
1808
  type === types_1.DeviceType.HOMEBASE_MINI ||
1804
- type === types_1.DeviceType.MINIBASE_CHIME);
1809
+ type === types_1.DeviceType.MINIBASE_CHIME ||
1810
+ type === types_1.DeviceType.NVR_S4_MAX);
1805
1811
  }
1806
1812
  static isCamera1(type) {
1807
1813
  return types_1.DeviceType.CAMERA == type;
@@ -1809,6 +1815,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1809
1815
  static isCameraE(type) {
1810
1816
  return types_1.DeviceType.CAMERA_E == type;
1811
1817
  }
1818
+ static isIndoorCameraBase(type) {
1819
+ return types_1.DeviceType.INDOOR_CAMERA == type;
1820
+ }
1812
1821
  static isSensor(type) {
1813
1822
  if (type == types_1.DeviceType.SENSOR || type == types_1.DeviceType.MOTION_SENSOR || type == types_1.DeviceType.ENTRY_SENSOR_E20)
1814
1823
  return true;
@@ -1877,16 +1886,23 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1877
1886
  type == types_1.DeviceType.INDOOR_COST_DOWN_CAMERA ||
1878
1887
  type == types_1.DeviceType.OUTDOOR_PT_CAMERA ||
1879
1888
  type == types_1.DeviceType.CAMERA_S4 ||
1889
+ type == types_1.DeviceType.SOLOCAM_E42 ||
1890
+ type == types_1.DeviceType.CAMERA_4G_S330 ||
1880
1891
  type == types_1.DeviceType.INDOOR_PT_CAMERA_S350 ||
1881
1892
  type == types_1.DeviceType.INDOOR_PT_CAMERA_E30 ||
1882
1893
  type == types_1.DeviceType.INDOOR_PT_CAMERA_C210 ||
1883
1894
  type == types_1.DeviceType.INDOOR_PT_CAMERA_C220 ||
1884
- type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2)
1895
+ type == types_1.DeviceType.INDOOR_PT_CAMERA_C220_V2 ||
1896
+ type == types_1.DeviceType.CAMERA_POE_S4)
1885
1897
  return true;
1886
1898
  return false;
1887
1899
  }
1888
1900
  static isOutdoorPanAndTiltCamera(type) {
1889
- if (type == types_1.DeviceType.OUTDOOR_PT_CAMERA || type == types_1.DeviceType.SOLO_CAMERA_E30 || type == types_1.DeviceType.CAMERA_S4)
1901
+ if (type == types_1.DeviceType.OUTDOOR_PT_CAMERA ||
1902
+ type == types_1.DeviceType.SOLO_CAMERA_E30 ||
1903
+ type == types_1.DeviceType.CAMERA_S4 ||
1904
+ type == types_1.DeviceType.SOLOCAM_E42 ||
1905
+ type == types_1.DeviceType.CAMERA_4G_S330)
1890
1906
  return true;
1891
1907
  return false;
1892
1908
  }
@@ -1922,6 +1938,11 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1922
1938
  return true;
1923
1939
  return false;
1924
1940
  }
1941
+ static isFloodLightT8424(type) {
1942
+ if (type == types_1.DeviceType.FLOODLIGHT_CAMERA_8424)
1943
+ return true;
1944
+ return false;
1945
+ }
1925
1946
  static isFloodLightT8425(type) {
1926
1947
  if (type == types_1.DeviceType.FLOODLIGHT_CAMERA_8425)
1927
1948
  return true;
@@ -1944,7 +1965,7 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
1944
1965
  Device.isLockWifiR20(type) ||
1945
1966
  Device.isLockWifiVideo(type) ||
1946
1967
  Device.isLockWifiT8506(type) ||
1947
- Device.isLockWifiT85V0(type, "") ||
1968
+ Device.isLockWifiT85V0(type) ||
1948
1969
  Device.isLockWifiT8502(type) ||
1949
1970
  Device.isLockWifiT85L0(type) ||
1950
1971
  Device.isLockWifiT8531(type) ||
@@ -2011,13 +2032,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2011
2032
  return true;
2012
2033
  return false;
2013
2034
  }
2014
- static isLockWifiT85V0(type, serialnumber) {
2015
- if (type == types_1.DeviceType.LOCK_85V0 &&
2016
- serialnumber.startsWith("T85V0") &&
2017
- serialnumber.length > 6 &&
2018
- serialnumber.charAt(6) === "9")
2019
- return true;
2020
- return false;
2035
+ static isLockWifiT85V0(type) {
2036
+ return types_1.DeviceType.LOCK_85V0 == type;
2021
2037
  }
2022
2038
  static isLockWifiT85L0(type) {
2023
2039
  return types_1.DeviceType.LOCK_85L0 == type;
@@ -2078,9 +2094,16 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2078
2094
  static isCameraC35(type) {
2079
2095
  return types_1.DeviceType.CAMERA_C35 == type;
2080
2096
  }
2097
+ static isIndoorPTCameraE30(type) {
2098
+ return types_1.DeviceType.INDOOR_PT_CAMERA_E30 == type;
2099
+ }
2081
2100
  static isSoloCameraE30(type) {
2082
2101
  return types_1.DeviceType.SOLO_CAMERA_E30 == type;
2083
2102
  }
2103
+ static isSoloCamE42(type) {
2104
+ //T8173
2105
+ return types_1.DeviceType.SOLOCAM_E42 == type;
2106
+ }
2084
2107
  static isSoloCameras(type) {
2085
2108
  return (Device.isSoloCamera(type) ||
2086
2109
  Device.isSoloCameraPro(type) ||
@@ -2091,11 +2114,16 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2091
2114
  Device.isSoloCameraSolar(type) ||
2092
2115
  Device.isSoloCameraC210(type) ||
2093
2116
  Device.isSoloCameraE30(type) ||
2117
+ Device.isSoloCamE42(type) ||
2094
2118
  Device.isCameraC35(type));
2095
2119
  }
2096
2120
  static isStarlight4GLTE(type) {
2097
2121
  return types_1.DeviceType.CAMERA_FG == type;
2098
2122
  }
2123
+ static is4GLTECamS330(type) {
2124
+ //T86P2
2125
+ return types_1.DeviceType.CAMERA_4G_S330 == type;
2126
+ }
2099
2127
  static isIndoorOutdoorCamera1080p(type) {
2100
2128
  return types_1.DeviceType.INDOOR_OUTDOOR_CAMERA_1080P == type;
2101
2129
  }
@@ -2202,9 +2230,13 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2202
2230
  sn.startsWith("T8131") ||
2203
2231
  sn.startsWith("T8171") ||
2204
2232
  sn.startsWith("T8172") ||
2233
+ sn.startsWith("T8173") ||
2234
+ sn.startsWith("T86P2") ||
2235
+ sn.startsWith("T8214") ||
2205
2236
  sn.startsWith("T8422") ||
2206
2237
  sn.startsWith("T8423") ||
2207
2238
  sn.startsWith("T8424") ||
2239
+ sn.startsWith("T8425") ||
2208
2240
  sn.startsWith("T8426") ||
2209
2241
  sn.startsWith("T8440") ||
2210
2242
  sn.startsWith("T8441") ||
@@ -2217,6 +2249,8 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2217
2249
  sn.startsWith("T8123") ||
2218
2250
  sn.startsWith("T8124") ||
2219
2251
  sn.startsWith("T8171") ||
2252
+ sn.startsWith("T8173") ||
2253
+ sn.startsWith("T86P2") ||
2220
2254
  sn.startsWith("T8134"));
2221
2255
  }
2222
2256
  static isSmartDropBySn(sn) {
@@ -2277,9 +2311,20 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2277
2311
  return true;
2278
2312
  return false;
2279
2313
  }
2314
+ static isNVR(type) {
2315
+ //T8N00
2316
+ return types_1.DeviceType.NVR_S4_MAX === type;
2317
+ }
2318
+ static isCameraPoE(type) {
2319
+ //T8E00
2320
+ return types_1.DeviceType.CAMERA_POE_S4 === type;
2321
+ }
2280
2322
  isCamera() {
2281
2323
  return Device.isCamera(this.rawDevice.device_type);
2282
2324
  }
2325
+ isIndoorCameraBase() {
2326
+ return Device.isIndoorCameraBase(this.rawDevice.device_type);
2327
+ }
2283
2328
  isFloodLight() {
2284
2329
  return Device.isFloodLight(this.rawDevice.device_type);
2285
2330
  }
@@ -2289,6 +2334,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2289
2334
  isFloodLightT8423() {
2290
2335
  return Device.isFloodLightT8423(this.rawDevice.device_type);
2291
2336
  }
2337
+ isFloodLightT8424() {
2338
+ return Device.isFloodLightT8424(this.rawDevice.device_type);
2339
+ }
2292
2340
  isFloodLightT8425() {
2293
2341
  return Device.isFloodLightT8425(this.rawDevice.device_type);
2294
2342
  }
@@ -2356,7 +2404,7 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2356
2404
  return Device.isLockWifiT8531(this.rawDevice.device_type);
2357
2405
  }
2358
2406
  isLockWifiT85V0() {
2359
- return Device.isLockWifiT85V0(this.rawDevice.device_type, this.rawDevice.device_sn);
2407
+ return Device.isLockWifiT85V0(this.rawDevice.device_type);
2360
2408
  }
2361
2409
  isLockWifiT85L0() {
2362
2410
  return Device.isLockWifiT85L0(this.rawDevice.device_type);
@@ -2409,12 +2457,21 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2409
2457
  isCameraC35() {
2410
2458
  return Device.isCameraC35(this.rawDevice.device_type);
2411
2459
  }
2460
+ isIndoorPTCameraE30() {
2461
+ return Device.isIndoorPTCameraE30(this.rawDevice.device_type);
2462
+ }
2412
2463
  isSoloCameraE30() {
2413
2464
  return Device.isSoloCameraE30(this.rawDevice.device_type);
2414
2465
  }
2466
+ isSoloCamE42() {
2467
+ return Device.isSoloCamE42(this.rawDevice.device_type);
2468
+ }
2415
2469
  isStarlight4GLTE() {
2416
2470
  return Device.isStarlight4GLTE(this.rawDevice.device_type);
2417
2471
  }
2472
+ is4GLTECamS330() {
2473
+ return Device.is4GLTECamS330(this.rawDevice.device_type);
2474
+ }
2418
2475
  isIndoorOutdoorCamera1080p() {
2419
2476
  return Device.isIndoorOutdoorCamera1080p(this.rawDevice.device_type);
2420
2477
  }
@@ -2445,6 +2502,9 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2445
2502
  isCamera2CPro() {
2446
2503
  return Device.isCamera2CPro(this.rawDevice.device_type);
2447
2504
  }
2505
+ isCameraE40() {
2506
+ return Device.isCameraE40(this.rawDevice.device_type);
2507
+ }
2448
2508
  isCamera2Product() {
2449
2509
  return Device.isCamera2Product(this.rawDevice.device_type);
2450
2510
  }
@@ -2516,6 +2576,12 @@ class Device extends tiny_typed_emitter_1.TypedEmitter {
2516
2576
  isSmartTrackLink() {
2517
2577
  return Device.isSmartTrackLink(this.rawDevice.device_type);
2518
2578
  }
2579
+ isNVR() {
2580
+ return Device.isNVR(this.rawDevice.device_type);
2581
+ }
2582
+ isCameraPoE() {
2583
+ return Device.isCameraPoE(this.rawDevice.device_type);
2584
+ }
2519
2585
  hasBattery() {
2520
2586
  return Device.hasBattery(this.rawDevice.device_type);
2521
2587
  }