eufy-security-client 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +15 -1
- package/build/eufysecurity.d.ts +2 -0
- package/build/eufysecurity.js +22 -3
- package/build/eufysecurity.js.map +1 -1
- package/build/http/api.d.ts +1 -1
- package/build/http/api.js +42 -28
- package/build/http/api.js.map +1 -1
- package/build/http/interfaces.d.ts +1 -0
- package/build/http/parameter.js +3 -2
- package/build/http/parameter.js.map +1 -1
- package/build/http/station.d.ts +4 -3
- package/build/http/station.js +10 -6
- package/build/http/station.js.map +1 -1
- package/build/http/types.d.ts +7 -1
- package/build/http/types.js +43 -1
- package/build/http/types.js.map +1 -1
- package/build/interfaces.d.ts +4 -0
- package/build/p2p/interfaces.d.ts +1 -0
- package/build/p2p/session.d.ts +3 -1
- package/build/p2p/session.js +203 -186
- package/build/p2p/session.js.map +1 -1
- package/build/p2p/types.d.ts +28 -0
- package/build/p2p/types.js +30 -1
- package/build/p2p/types.js.map +1 -1
- package/build/p2p/utils.d.ts +0 -4
- package/build/p2p/utils.js +1 -36
- package/build/p2p/utils.js.map +1 -1
- package/build/push/client.js +2 -1
- package/build/push/client.js.map +1 -1
- package/build/push/service.js +21 -19
- package/build/push/service.js.map +1 -1
- package/build/utils.d.ts +1 -0
- package/build/utils.js +11 -1
- package/build/utils.js.map +1 -1
- package/package.json +11 -12
package/build/http/types.d.ts
CHANGED
|
@@ -571,7 +571,10 @@ export declare enum PropertyName {
|
|
|
571
571
|
StationAlarmArmed = "alarmArmed",
|
|
572
572
|
StationAlarmArmDelay = "alarmArmDelay",
|
|
573
573
|
StationAlarmDelay = "alarmDelay",
|
|
574
|
-
StationAlarmDelayType = "alarmDelayType"
|
|
574
|
+
StationAlarmDelayType = "alarmDelayType",
|
|
575
|
+
StationSdStatus = "sdStatus",
|
|
576
|
+
StationSdCapacity = "sdCapacity",
|
|
577
|
+
StationSdCapacityAvailable = "sdCapacityAvailable"
|
|
575
578
|
}
|
|
576
579
|
export declare const DeviceNameProperty: PropertyMetadataString;
|
|
577
580
|
export declare const DeviceModelProperty: PropertyMetadataString;
|
|
@@ -907,6 +910,9 @@ export declare const StationAlarmArmedProperty: PropertyMetadataBoolean;
|
|
|
907
910
|
export declare const StationAlarmArmDelayProperty: PropertyMetadataNumeric;
|
|
908
911
|
export declare const StationAlarmDelayProperty: PropertyMetadataNumeric;
|
|
909
912
|
export declare const StationAlarmDelayTypeProperty: PropertyMetadataNumeric;
|
|
913
|
+
export declare const StationSdStatusProperty: PropertyMetadataNumeric;
|
|
914
|
+
export declare const StationSdCapacityProperty: PropertyMetadataNumeric;
|
|
915
|
+
export declare const StationSdAvailableCapacityProperty: PropertyMetadataNumeric;
|
|
910
916
|
export declare const StationProperties: Properties;
|
|
911
917
|
export declare enum CommandName {
|
|
912
918
|
DeviceStartLivestream = "deviceStartLivestream",
|
package/build/http/types.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.DeviceMotionDetectionRangeStandardSensitivityProperty = exports.DeviceMo
|
|
|
7
7
|
exports.DeviceLoiteringCustomResponseHomeBaseNotificationProperty = exports.DeviceLoiteringCustomResponseAutoVoiceResponseVoiceProperty = exports.DeviceLoiteringCustomResponseAutoVoiceResponseProperty = exports.DeviceLoiteringCustomResponsePhoneNotificationProperty = exports.DeviceMotionDetectionSensitivityAdvancedHProperty = exports.DeviceMotionDetectionSensitivityAdvancedGProperty = exports.DeviceMotionDetectionSensitivityAdvancedFProperty = exports.DeviceMotionDetectionSensitivityAdvancedEProperty = exports.DeviceMotionDetectionSensitivityAdvancedDProperty = exports.DeviceMotionDetectionSensitivityAdvancedCProperty = exports.DeviceMotionDetectionSensitivityAdvancedBProperty = exports.DeviceMotionDetectionSensitivityAdvancedAProperty = exports.DeviceMotionDetectionSensitivityStandardProperty = exports.DeviceMotionDetectionSensitivityModeProperty = exports.DeviceLoiteringDetectionLengthProperty = exports.DeviceLoiteringDetectionRangeProperty = exports.DeviceLoiteringDetectionProperty = exports.DeviceNotificationLockedProperty = exports.DeviceNotificationUnlockedProperty = exports.DeviceNotificationProperty = exports.DeviceSoundSimpleProperty = exports.DeviceSoundProperty = exports.DeviceScramblePasscodeSmartSafeProperty = exports.DeviceScramblePasscodeProperty = exports.DeviceWrongTryAttemptsSmartSafeProperty = exports.DeviceWrongTryAttemptsProperty = exports.DeviceWrongTryLockdownTimeSmartSafeProperty = exports.DeviceWrongTryLockdownTimeProperty = exports.DeviceWrongTryProtectionSmartSafeProperty = exports.DeviceWrongTryProtectionProperty = exports.DeviceOneTouchLockingProperty = exports.DeviceAutoLockScheduleEndTimeProperty = exports.DeviceAutoLockScheduleStartTimeProperty = exports.DeviceAutoLockScheduleProperty = exports.DeviceAutoLockTimerProperty = exports.DeviceAutoLockProperty = exports.DeviceAutoCalibrationProperty = exports.DeviceVideoColorNightvisionProperty = exports.DeviceVideoNightvisionImageAdjustmentProperty = exports.DeviceLightSettingsMotionActivationModeProperty = exports.DeviceLightSettingsColorTemperatureScheduleProperty = exports.DeviceLightSettingsColorTemperatureMotionProperty = exports.DeviceLightSettingsColorTemperatureManualProperty = exports.DeviceMotionOutOfViewDetectionProperty = exports.DeviceMotionAutoCruiseProperty = exports.DeviceMotionTrackingSensitivityProperty = exports.DeviceMotionDetectionTestModeProperty = exports.DeviceMotionDetectionRangeAdvancedRightSensitivityProperty = exports.DeviceMotionDetectionRangeAdvancedMiddleSensitivityProperty = exports.DeviceMotionDetectionRangeAdvancedLeftSensitivityProperty = void 0;
|
|
8
8
|
exports.DeviceNotificationDualLockProperty = exports.DeviceNotificationDualUnlockProperty = exports.DeviceNotificationUnlockByAppProperty = exports.DeviceNotificationUnlockByFingerprintProperty = exports.DeviceNotificationUnlockByPINProperty = exports.DeviceNotificationUnlockByKeyProperty = exports.DeviceAlarmVolumeProperty = exports.DevicePromptVolumeProperty = exports.DeviceRemoteUnlockMasterPINProperty = exports.DeviceRemoteUnlockProperty = exports.DeviceTamperAlarmProperty = exports.DeviceInteriorBrightnessDurationProperty = exports.DeviceInteriorBrightnessProperty = exports.DevicePowerSaveProperty = exports.DeviceDualUnlockProperty = exports.DeviceLeftOpenAlarmDurationProperty = exports.DeviceLeftOpenAlarmProperty = exports.DeviceRadarMotionDetectedProperty = exports.DeviceSomeoneLoiteringProperty = exports.DevicePackageTakenProperty = exports.DevicePackageStrandedProperty = exports.DevicePackageDeliveredProperty = exports.StationOffSecuritySettings = exports.StationCustom3SecuritySettings = exports.StationCustom2SecuritySettings = exports.StationCustom1SecuritySettings = exports.StationAwaySecuritySettings = exports.StationHomeSecuritySettings = exports.DeviceSoundDetectionRoundLookProperty = exports.DeviceNotificationIntervalTimeProperty = exports.DeviceDefaultAngleIdleTimeProperty = exports.DeviceDefaultAngleProperty = exports.DeviceContinuousRecordingTypeProperty = exports.DeviceContinuousRecordingProperty = exports.DeviceRingAutoResponseTimeToProperty = exports.DeviceRingAutoResponseTimeFromProperty = exports.DeviceRingAutoResponseVoiceResponseVoiceProperty = exports.DeviceRingAutoResponseVoiceResponseProperty = exports.DeviceRingAutoResponseProperty = exports.DeviceDualCamWatchViewModeProperty = exports.DeviceDeliveryGuardPackageLiveCheckAssistanceProperty = exports.DeviceDeliveryGuardUncollectedPackageAlertTimeToCheckProperty = exports.DeviceDeliveryGuardUncollectedPackageAlertProperty = exports.DeviceDeliveryGuardPackageGuardingActivatedTimeToProperty = exports.DeviceDeliveryGuardPackageGuardingActivatedTimeFromProperty = exports.DeviceDeliveryGuardPackageGuardingVoiceResponseVoiceProperty = exports.DeviceDeliveryGuardPackageGuardingProperty = exports.DeviceDeliveryGuardProperty = exports.DeviceLoiteringCustomResponseTimeToProperty = exports.DeviceLoiteringCustomResponseTimeFromProperty = void 0;
|
|
9
9
|
exports.StationNotificationStartAlarmDelayProperty = exports.StationNotificationSwitchModeKeypadProperty = exports.StationNotificationSwitchModeAppProperty = exports.StationNotificationSwitchModeGeofenceProperty = exports.StationNotificationSwitchModeScheduleProperty = exports.StationAlarmToneProperty = exports.StationPromptVolumeProperty = exports.StationAlarmVolumeProperty = exports.StationMacAddressProperty = exports.StationLanIpAddressStandaloneProperty = exports.StationLanIpAddressProperty = exports.StationCurrentModeKeyPadProperty = exports.StationCurrentModeProperty = exports.StationGuardModeKeyPadProperty = exports.StationGuardModeProperty = exports.BaseStationProperties = exports.StationSerialNumberProperty = exports.StationModelProperty = exports.StationNameProperty = exports.DeviceProperties = exports.WiredDoorbellT8200XDeviceProperties = exports.FloodlightT8420XDeviceProperties = exports.DeviceDetectionStatisticsRecordedEventsProperty = exports.DeviceDetectionStatisticsDetectedEventsProperty = exports.DeviceDetectionStatisticsWorkingDaysProperty = exports.DeviceDogPoopDetectedProperty = exports.DeviceDogLickDetectedProperty = exports.DeviceDogDetectedProperty = exports.DeviceVehicleDetectedProperty = exports.DeviceStrangerPersonDetectedProperty = exports.DeviceIdentityPersonDetectedProperty = exports.DevicePersonNameProperty = exports.DeviceSnoozeChimeProperty = exports.DeviceSnoozeMotionProperty = exports.DeviceSnoozeHomebaseProperty = exports.DeviceSnoozeStartTimeWiredDoorbellProperty = exports.DeviceSnoozeStartTimeProperty = exports.DeviceSnoozeTimeProperty = exports.DeviceSnoozeProperty = exports.DeviceVideoTypeStoreToNASProperty = exports.DeviceWrongTryProtectAlertProperty = exports.DeviceLongTimeNotCloseAlertProperty = exports.DeviceLowBatteryAlertProperty = exports.DeviceShakeAlertEventProperty = exports.DeviceShakeAlertProperty = exports.Device911AlertEventProperty = exports.Device911AlertProperty = exports.DeviceJammedAlertProperty = exports.DeviceNotificationJammedProperty = exports.DeviceNotificationWrongTryProtectProperty = void 0;
|
|
10
|
-
exports.StationCommands = exports.DeviceCommands = exports.CommandName = exports.StationProperties = exports.StationAlarmDelayTypeProperty = exports.StationAlarmDelayProperty = exports.StationAlarmArmDelayProperty = exports.StationAlarmArmedProperty = exports.StationAlarmTypeProperty = exports.StationAlarmProperty = exports.StationTurnOffAlarmWithButtonProperty = exports.StationAutoEndAlarmProperty = exports.StationSwitchModeWithAccessCodeProperty = exports.StationTimeFormatProperty = void 0;
|
|
10
|
+
exports.StationCommands = exports.DeviceCommands = exports.CommandName = exports.StationProperties = exports.StationSdAvailableCapacityProperty = exports.StationSdCapacityProperty = exports.StationSdStatusProperty = exports.StationAlarmDelayTypeProperty = exports.StationAlarmDelayProperty = exports.StationAlarmArmDelayProperty = exports.StationAlarmArmedProperty = exports.StationAlarmTypeProperty = exports.StationAlarmProperty = exports.StationTurnOffAlarmWithButtonProperty = exports.StationAutoEndAlarmProperty = exports.StationSwitchModeWithAccessCodeProperty = exports.StationTimeFormatProperty = void 0;
|
|
11
11
|
const types_1 = require("../p2p/types");
|
|
12
12
|
var DeviceType;
|
|
13
13
|
(function (DeviceType) {
|
|
@@ -609,6 +609,9 @@ var PropertyName;
|
|
|
609
609
|
PropertyName["StationAlarmArmDelay"] = "alarmArmDelay";
|
|
610
610
|
PropertyName["StationAlarmDelay"] = "alarmDelay";
|
|
611
611
|
PropertyName["StationAlarmDelayType"] = "alarmDelayType";
|
|
612
|
+
PropertyName["StationSdStatus"] = "sdStatus";
|
|
613
|
+
PropertyName["StationSdCapacity"] = "sdCapacity";
|
|
614
|
+
PropertyName["StationSdCapacityAvailable"] = "sdCapacityAvailable";
|
|
612
615
|
})(PropertyName = exports.PropertyName || (exports.PropertyName = {}));
|
|
613
616
|
exports.DeviceNameProperty = {
|
|
614
617
|
key: "device_name",
|
|
@@ -3986,6 +3989,7 @@ exports.DeviceProperties = {
|
|
|
3986
3989
|
[PropertyName.DeviceMotionDetection]: exports.DeviceMotionDetectionIndoorSoloFloodProperty,
|
|
3987
3990
|
[PropertyName.DeviceWatermark]: exports.DeviceWatermarkIndoorFloodProperty,
|
|
3988
3991
|
[PropertyName.DeviceMotionDetected]: exports.DeviceMotionDetectionIndoorSoloFloodProperty,
|
|
3992
|
+
[PropertyName.DevicePersonDetected]: exports.DevicePersonDetectedProperty,
|
|
3989
3993
|
[PropertyName.DeviceStatusLed]: exports.DeviceStatusLedIndoorFloodProperty,
|
|
3990
3994
|
[PropertyName.DevicePictureUrl]: exports.DevicePictureUrlProperty,
|
|
3991
3995
|
[PropertyName.DeviceLight]: exports.DeviceFloodlightLightProperty,
|
|
@@ -4021,6 +4025,7 @@ exports.DeviceProperties = {
|
|
|
4021
4025
|
[PropertyName.DeviceMotionDetection]: exports.DeviceMotionDetectionIndoorSoloFloodProperty,
|
|
4022
4026
|
[PropertyName.DeviceWatermark]: exports.DeviceWatermarkSoloWiredDoorbellProperty,
|
|
4023
4027
|
[PropertyName.DeviceMotionDetected]: exports.DeviceMotionDetectionIndoorSoloFloodProperty,
|
|
4028
|
+
[PropertyName.DevicePersonDetected]: exports.DevicePersonDetectedProperty,
|
|
4024
4029
|
[PropertyName.DeviceStatusLed]: exports.DeviceStatusLedProperty,
|
|
4025
4030
|
[PropertyName.DevicePictureUrl]: exports.DevicePictureUrlProperty,
|
|
4026
4031
|
[PropertyName.DeviceLight]: exports.DeviceFloodlightLightProperty,
|
|
@@ -4071,6 +4076,7 @@ exports.DeviceProperties = {
|
|
|
4071
4076
|
[PropertyName.DeviceMotionDetection]: exports.DeviceMotionDetectionIndoorSoloFloodProperty,
|
|
4072
4077
|
[PropertyName.DeviceWatermark]: exports.DeviceWatermarkIndoorFloodProperty,
|
|
4073
4078
|
[PropertyName.DeviceMotionDetected]: exports.DeviceMotionDetectionIndoorSoloFloodProperty,
|
|
4079
|
+
[PropertyName.DevicePersonDetected]: exports.DevicePersonDetectedProperty,
|
|
4074
4080
|
[PropertyName.DeviceStatusLed]: exports.DeviceStatusLedIndoorFloodProperty,
|
|
4075
4081
|
[PropertyName.DevicePictureUrl]: exports.DevicePictureUrlProperty,
|
|
4076
4082
|
[PropertyName.DeviceLight]: exports.DeviceFloodlightLightProperty,
|
|
@@ -5266,6 +5272,33 @@ exports.StationAlarmDelayTypeProperty = {
|
|
|
5266
5272
|
},
|
|
5267
5273
|
default: 0,
|
|
5268
5274
|
};
|
|
5275
|
+
exports.StationSdStatusProperty = {
|
|
5276
|
+
key: "sd_status",
|
|
5277
|
+
name: PropertyName.StationSdStatus,
|
|
5278
|
+
label: "SD Status",
|
|
5279
|
+
readable: true,
|
|
5280
|
+
writeable: false,
|
|
5281
|
+
type: "number",
|
|
5282
|
+
default: undefined,
|
|
5283
|
+
};
|
|
5284
|
+
exports.StationSdCapacityProperty = {
|
|
5285
|
+
key: "sd_capacity",
|
|
5286
|
+
name: PropertyName.StationSdCapacity,
|
|
5287
|
+
label: "SD Capacity",
|
|
5288
|
+
readable: true,
|
|
5289
|
+
writeable: false,
|
|
5290
|
+
type: "number",
|
|
5291
|
+
default: undefined,
|
|
5292
|
+
};
|
|
5293
|
+
exports.StationSdAvailableCapacityProperty = {
|
|
5294
|
+
key: "sd_capacity_available",
|
|
5295
|
+
name: PropertyName.StationSdCapacityAvailable,
|
|
5296
|
+
label: "SD Capacity Available",
|
|
5297
|
+
readable: true,
|
|
5298
|
+
writeable: false,
|
|
5299
|
+
type: "number",
|
|
5300
|
+
default: undefined,
|
|
5301
|
+
};
|
|
5269
5302
|
exports.StationProperties = {
|
|
5270
5303
|
[DeviceType.STATION]: {
|
|
5271
5304
|
...exports.BaseStationProperties,
|
|
@@ -5294,6 +5327,9 @@ exports.StationProperties = {
|
|
|
5294
5327
|
[PropertyName.StationAlarmArmDelay]: exports.StationAlarmArmDelayProperty,
|
|
5295
5328
|
[PropertyName.StationAlarmDelay]: exports.StationAlarmDelayProperty,
|
|
5296
5329
|
[PropertyName.StationAlarmDelayType]: exports.StationAlarmDelayTypeProperty,
|
|
5330
|
+
[PropertyName.StationSdStatus]: exports.StationSdStatusProperty,
|
|
5331
|
+
[PropertyName.StationSdCapacity]: exports.StationSdCapacityProperty,
|
|
5332
|
+
[PropertyName.StationSdCapacityAvailable]: exports.StationSdAvailableCapacityProperty,
|
|
5297
5333
|
},
|
|
5298
5334
|
[DeviceType.HB3]: {
|
|
5299
5335
|
...exports.BaseStationProperties,
|
|
@@ -5322,6 +5358,9 @@ exports.StationProperties = {
|
|
|
5322
5358
|
[PropertyName.StationAlarmArmDelay]: exports.StationAlarmArmDelayProperty,
|
|
5323
5359
|
[PropertyName.StationAlarmDelay]: exports.StationAlarmDelayProperty,
|
|
5324
5360
|
[PropertyName.StationAlarmDelayType]: exports.StationAlarmDelayTypeProperty,
|
|
5361
|
+
[PropertyName.StationSdStatus]: exports.StationSdStatusProperty,
|
|
5362
|
+
[PropertyName.StationSdCapacity]: exports.StationSdCapacityProperty,
|
|
5363
|
+
[PropertyName.StationSdCapacityAvailable]: exports.StationSdAvailableCapacityProperty,
|
|
5325
5364
|
},
|
|
5326
5365
|
[DeviceType.INDOOR_CAMERA]: {
|
|
5327
5366
|
...exports.BaseStationProperties,
|
|
@@ -5352,6 +5391,9 @@ exports.StationProperties = {
|
|
|
5352
5391
|
[PropertyName.StationTimeFormat]: exports.StationTimeFormatProperty,
|
|
5353
5392
|
[PropertyName.StationAlarm]: exports.StationAlarmProperty,
|
|
5354
5393
|
[PropertyName.StationAlarmType]: exports.StationAlarmTypeProperty,
|
|
5394
|
+
[PropertyName.StationSdStatus]: exports.StationSdStatusProperty,
|
|
5395
|
+
[PropertyName.StationSdCapacity]: exports.StationSdCapacityProperty,
|
|
5396
|
+
[PropertyName.StationSdCapacityAvailable]: exports.StationSdAvailableCapacityProperty,
|
|
5355
5397
|
},
|
|
5356
5398
|
[DeviceType.INDOOR_COST_DOWN_CAMERA]: {
|
|
5357
5399
|
...exports.BaseStationProperties,
|