@mega-yfue/eufy-sdk 0.6.0-beta.12 → 0.6.0-beta.14
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.
|
@@ -34,9 +34,9 @@ export declare const MOWER_DP: {
|
|
|
34
34
|
readonly SPARSE_LAWN_OPTIMIZATION: 141;
|
|
35
35
|
};
|
|
36
36
|
/** The `net_media_type` (DP 134) range, as the schema lists it. */
|
|
37
|
-
|
|
37
|
+
declare const MOWER_NETWORKS: readonly ["None", "Wifi", "Cellular"];
|
|
38
38
|
/** The mower's network link (DP 134). */
|
|
39
|
-
|
|
39
|
+
type MowerNetwork = (typeof MOWER_NETWORKS)[number];
|
|
40
40
|
/**
|
|
41
41
|
* Every `mower` read, declared once.
|
|
42
42
|
*
|
|
@@ -228,3 +228,4 @@ export declare const MOWER_MEMBERS: {
|
|
|
228
228
|
export type MowerActions = Surface<typeof MOWER_MEMBERS>;
|
|
229
229
|
/** `mower` — robot-mower state from its Tuya data points. */
|
|
230
230
|
export declare const MOWER: CapabilityModule;
|
|
231
|
+
export {};
|
|
@@ -394,8 +394,9 @@ export declare class P2PCommandRouter {
|
|
|
394
394
|
* {@link releaseLingeringSiblings}. A pull with consumers is never touched. The release runs before the
|
|
395
395
|
* reuse branch, so a reuse frees the station as a cold start does.
|
|
396
396
|
*
|
|
397
|
-
* `
|
|
398
|
-
* connection of its own for it
|
|
397
|
+
* `continuous` decides whether a camera that finds the station's own session claimed may open a
|
|
398
|
+
* connection of its own for it; on an {@link OWN_LIVE_SESSION_MODELS} station it always gets one, and an
|
|
399
|
+
* unwatched source left on the station's session is rebuilt there. Only the continuous-pull egresses pass it. A still must not: it wants one
|
|
399
400
|
* frame, and a socket plus a level-2 negotiation per thumbnail is a cost a tile refresh cannot justify —
|
|
400
401
|
* so a still asked for while a sibling is being watched contends as it always did, and the caller's
|
|
401
402
|
* retained image answers it. A live view still outranks a tile; what changed is that two live views no
|
|
@@ -404,7 +405,7 @@ export declare class P2PCommandRouter {
|
|
|
404
405
|
* The session goes into a {@link HeldSession} cell, so it can be replaced under a source that stays in
|
|
405
406
|
* place.
|
|
406
407
|
*/
|
|
407
|
-
sharedLiveSourceFor(sn: string, opts?: SharedLiveOpts,
|
|
408
|
+
sharedLiveSourceFor(sn: string, opts?: SharedLiveOpts, continuous?: boolean): Promise<SharedLiveSource>;
|
|
408
409
|
/**
|
|
409
410
|
* Tear down any pull on this station that is lingering for ANOTHER camera, before starting this one.
|
|
410
411
|
*
|
|
@@ -559,12 +560,17 @@ export declare class P2PCommandRouter {
|
|
|
559
560
|
* yield CMAF fragments (init segment first, then a `moof`+`mdat` per keyframe boundary) muxed by the
|
|
560
561
|
* dependency-free internal fMP4 muxer. The returned recording handle exposes battery-budget notices
|
|
561
562
|
* and detaches its consumer on `stop`, iterator return, or iterator throw. No ffmpeg.
|
|
563
|
+
*
|
|
564
|
+
* It is a continuous pull only on an {@link OWN_LIVE_SESSION_MODELS} station; elsewhere it never opens a
|
|
565
|
+
* connection of its own.
|
|
562
566
|
*/
|
|
563
567
|
recordFragments(sn: string, opts?: {
|
|
564
568
|
fragmentSeconds?: number;
|
|
565
569
|
eccPrivateKey?: Buffer;
|
|
566
570
|
keepAliveMs?: number;
|
|
567
571
|
} & SharedSourceHints): FragmentRecording;
|
|
572
|
+
/** Whether `stationSn` is an {@link OWN_LIVE_SESSION_MODELS} station. */
|
|
573
|
+
private ownsLiveSession;
|
|
568
574
|
/**
|
|
569
575
|
* **Generic P2P request/reply query.** Sends a `SET_PAYLOAD` (1350) wrapper carrying `subCmd` on the
|
|
570
576
|
* device channel, then resolves with the reply frame's `payload` — the `NOTIFY_PAYLOAD` (1351)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.14",
|
|
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",
|