@mega-yfue/eufy-sdk 0.5.0-beta.43 → 0.5.0-beta.44
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/dist/index.js +14 -3
- package/dist/index.js.map +2 -2
- package/dist/model/capabilities/index.d.ts +7 -2
- package/package.json +1 -1
|
@@ -44,6 +44,7 @@ import type { DisplayActions } from "./display.js";
|
|
|
44
44
|
import type { SuctionActions } from "./suction.js";
|
|
45
45
|
import type { LocateActions } from "./locate.js";
|
|
46
46
|
import type { DeviceInfo } from "./info.js";
|
|
47
|
+
import type { CusPushAlarmType } from "../push-events.js";
|
|
47
48
|
/**
|
|
48
49
|
* Look up the {@link CapabilityModule} for a capability, or `undefined` if none is registered.
|
|
49
50
|
* @internal
|
|
@@ -296,9 +297,13 @@ export interface DeviceEventMap {
|
|
|
296
297
|
* can be known about a value nothing pushes.
|
|
297
298
|
*/
|
|
298
299
|
cameraEnabledChanged: PushSemanticEvent;
|
|
299
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Station alarm lifecycle; `phase` says whether it fired, is counting down, or was stopped. `type` is
|
|
302
|
+
* the push's alarm source or stop reason, absent when the push carried none.
|
|
303
|
+
*/
|
|
300
304
|
alarm: PushSemanticEvent & {
|
|
301
|
-
phase?: "triggered" | "delayed";
|
|
305
|
+
phase?: "triggered" | "delayed" | "stopped";
|
|
306
|
+
type?: CusPushAlarmType;
|
|
302
307
|
};
|
|
303
308
|
/** Lock (un)locked or a lock alarm fired. */
|
|
304
309
|
lockState: PushSemanticEvent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.44",
|
|
4
4
|
"description": "One typed TypeScript client for the Anker eufy v6 cloud — capability-driven devices, realtime events over P2P/MQTT/push, and live media",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "mega-yfue",
|