eufy-security-client 2.4.2 → 2.4.3

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 (85) hide show
  1. package/README.md +6 -0
  2. package/build/error.d.ts +57 -57
  3. package/build/error.js +155 -155
  4. package/build/eufysecurity.d.ts +161 -161
  5. package/build/eufysecurity.js +2091 -2091
  6. package/build/http/api.d.ts +90 -90
  7. package/build/http/api.js +1407 -1407
  8. package/build/http/api.js.map +1 -1
  9. package/build/http/cache.d.ts +8 -8
  10. package/build/http/cache.js +33 -33
  11. package/build/http/const.d.ts +3 -3
  12. package/build/http/const.js +8545 -8545
  13. package/build/http/device.d.ts +360 -360
  14. package/build/http/device.js +2793 -2793
  15. package/build/http/device.js.map +1 -1
  16. package/build/http/error.d.ts +28 -28
  17. package/build/http/error.js +76 -76
  18. package/build/http/index.d.ts +10 -10
  19. package/build/http/index.js +29 -29
  20. package/build/http/interfaces.d.ts +202 -202
  21. package/build/http/interfaces.js +2 -2
  22. package/build/http/models.d.ts +561 -561
  23. package/build/http/models.js +2 -2
  24. package/build/http/parameter.d.ts +5 -5
  25. package/build/http/parameter.js +75 -75
  26. package/build/http/station.d.ts +292 -292
  27. package/build/http/station.js +6780 -6780
  28. package/build/http/station.js.map +1 -1
  29. package/build/http/types.d.ts +945 -945
  30. package/build/http/types.js +6070 -6070
  31. package/build/http/utils.d.ts +37 -37
  32. package/build/http/utils.js +370 -370
  33. package/build/index.d.ts +7 -7
  34. package/build/index.js +25 -25
  35. package/build/interfaces.d.ts +113 -113
  36. package/build/interfaces.js +2 -2
  37. package/build/mqtt/interface.d.ts +6 -6
  38. package/build/mqtt/interface.js +2 -2
  39. package/build/mqtt/model.d.ts +24 -24
  40. package/build/mqtt/model.js +2 -2
  41. package/build/mqtt/service.d.ts +30 -30
  42. package/build/mqtt/service.js +168 -168
  43. package/build/mqtt/service.js.map +1 -1
  44. package/build/p2p/ble.d.ts +47 -47
  45. package/build/p2p/ble.js +188 -188
  46. package/build/p2p/ble.js.map +1 -1
  47. package/build/p2p/error.d.ts +24 -24
  48. package/build/p2p/error.js +67 -67
  49. package/build/p2p/index.d.ts +8 -8
  50. package/build/p2p/index.js +27 -27
  51. package/build/p2p/interfaces.d.ts +162 -162
  52. package/build/p2p/interfaces.js +2 -2
  53. package/build/p2p/models.d.ts +146 -146
  54. package/build/p2p/models.js +2 -2
  55. package/build/p2p/session.d.ts +168 -168
  56. package/build/p2p/session.js +2087 -2087
  57. package/build/p2p/session.js.map +1 -1
  58. package/build/p2p/talkback.d.ts +10 -10
  59. package/build/p2p/talkback.js +22 -22
  60. package/build/p2p/types.d.ts +923 -923
  61. package/build/p2p/types.js +957 -957
  62. package/build/p2p/utils.d.ts +56 -56
  63. package/build/p2p/utils.js +653 -653
  64. package/build/push/client.d.ts +51 -51
  65. package/build/push/client.js +311 -311
  66. package/build/push/client.js.map +1 -1
  67. package/build/push/index.d.ts +5 -5
  68. package/build/push/index.js +24 -24
  69. package/build/push/interfaces.d.ts +19 -19
  70. package/build/push/interfaces.js +2 -2
  71. package/build/push/models.d.ts +292 -292
  72. package/build/push/models.js +30 -30
  73. package/build/push/parser.d.ts +28 -28
  74. package/build/push/parser.js +215 -215
  75. package/build/push/parser.js.map +1 -1
  76. package/build/push/service.d.ts +45 -45
  77. package/build/push/service.js +643 -643
  78. package/build/push/service.js.map +1 -1
  79. package/build/push/types.d.ts +176 -176
  80. package/build/push/types.js +192 -192
  81. package/build/push/utils.d.ts +7 -7
  82. package/build/push/utils.js +102 -102
  83. package/build/utils.d.ts +13 -13
  84. package/build/utils.js +191 -191
  85. package/package.json +9 -9
@@ -1,37 +1,37 @@
1
- /// <reference types="node" />
2
- import { Device } from "./device";
3
- import { Schedule } from "./interfaces";
4
- import { NotificationSwitchMode, SignalLevel, HB3DetectionTypes } from "./types";
5
- export declare const isGreaterEqualMinVersion: (minimal_version: string, current_version: string) => boolean;
6
- export declare const pad: (num: number) => string;
7
- export declare const getTimezoneGMTString: () => string;
8
- export declare const getAbsoluteFilePath: (device_type: number, channel: number, filename: string) => string;
9
- export declare const isNotificationSwitchMode: (value: number, mode: NotificationSwitchMode) => boolean;
10
- export declare const switchNotificationMode: (currentValue: number, mode: NotificationSwitchMode, enable: boolean) => number;
11
- export declare const calculateWifiSignalLevel: (device: Device, rssi: number) => SignalLevel;
12
- export declare const calculateCellularSignalLevel: (rssi: number) => SignalLevel;
13
- export declare const encryptAPIData: (data: string, key: Buffer) => string;
14
- export declare const decryptAPIData: (data: string, key: Buffer) => Buffer;
15
- export declare const getBlocklist: (directions: Array<number>) => Array<number>;
16
- export declare const getDistances: (blocklist: Array<number>) => Array<number>;
17
- export declare const isHB3DetectionModeEnabled: (value: number, type: HB3DetectionTypes) => boolean;
18
- export declare const getHB3DetectionMode: (value: number, type: HB3DetectionTypes, enable: boolean) => number;
19
- export interface EufyTimezone {
20
- timeZoneName: string;
21
- timeId: string;
22
- timeSn: string;
23
- timeZoneGMT: string;
24
- }
25
- export declare const getEufyTimezone: () => EufyTimezone | undefined;
26
- export declare const getAdvancedLockTimezone: (stationSN: string) => string;
27
- export declare class SmartSafeByteWriter {
28
- private split_byte;
29
- private data;
30
- write(bytes: Buffer): void;
31
- getData(): Buffer;
32
- }
33
- export declare const encodePasscode: (pass: string) => string;
34
- export declare const hexDate: (date: Date) => string;
35
- export declare const hexTime: (date: Date) => string;
36
- export declare const hexWeek: (schedule: Schedule) => string;
37
- export declare const randomNumber: (min: number, max: number) => number;
1
+ /// <reference types="node" />
2
+ import { Device } from "./device";
3
+ import { Schedule } from "./interfaces";
4
+ import { NotificationSwitchMode, SignalLevel, HB3DetectionTypes } from "./types";
5
+ export declare const isGreaterEqualMinVersion: (minimal_version: string, current_version: string) => boolean;
6
+ export declare const pad: (num: number) => string;
7
+ export declare const getTimezoneGMTString: () => string;
8
+ export declare const getAbsoluteFilePath: (device_type: number, channel: number, filename: string) => string;
9
+ export declare const isNotificationSwitchMode: (value: number, mode: NotificationSwitchMode) => boolean;
10
+ export declare const switchNotificationMode: (currentValue: number, mode: NotificationSwitchMode, enable: boolean) => number;
11
+ export declare const calculateWifiSignalLevel: (device: Device, rssi: number) => SignalLevel;
12
+ export declare const calculateCellularSignalLevel: (rssi: number) => SignalLevel;
13
+ export declare const encryptAPIData: (data: string, key: Buffer) => string;
14
+ export declare const decryptAPIData: (data: string, key: Buffer) => Buffer;
15
+ export declare const getBlocklist: (directions: Array<number>) => Array<number>;
16
+ export declare const getDistances: (blocklist: Array<number>) => Array<number>;
17
+ export declare const isHB3DetectionModeEnabled: (value: number, type: HB3DetectionTypes) => boolean;
18
+ export declare const getHB3DetectionMode: (value: number, type: HB3DetectionTypes, enable: boolean) => number;
19
+ export interface EufyTimezone {
20
+ timeZoneName: string;
21
+ timeId: string;
22
+ timeSn: string;
23
+ timeZoneGMT: string;
24
+ }
25
+ export declare const getEufyTimezone: () => EufyTimezone | undefined;
26
+ export declare const getAdvancedLockTimezone: (stationSN: string) => string;
27
+ export declare class SmartSafeByteWriter {
28
+ private split_byte;
29
+ private data;
30
+ write(bytes: Buffer): void;
31
+ getData(): Buffer;
32
+ }
33
+ export declare const encodePasscode: (pass: string) => string;
34
+ export declare const hexDate: (date: Date) => string;
35
+ export declare const hexTime: (date: Date) => string;
36
+ export declare const hexWeek: (schedule: Schedule) => string;
37
+ export declare const randomNumber: (min: number, max: number) => number;