@mega-yfue/eufy-sdk 0.6.0-beta.3 → 0.6.0-beta.31
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/client/device-registry.d.ts +6 -0
- package/dist/client/eufy-mega.d.ts +98 -14
- package/dist/client/types.d.ts +12 -9
- package/dist/core/contracts.d.ts +17 -10
- package/dist/core/store.d.ts +12 -1
- package/dist/core/types.d.ts +4 -2
- package/dist/index.js +2853 -2175
- package/dist/index.js.map +4 -4
- package/dist/model/capabilities/access.d.ts +3 -2
- package/dist/model/capabilities/arming.d.ts +2 -1
- package/dist/model/capabilities/battery.d.ts +5 -1
- package/dist/model/capabilities/camera.d.ts +8 -1
- package/dist/model/capabilities/index.d.ts +1 -1
- package/dist/model/capabilities/members.d.ts +3 -1
- package/dist/model/capabilities/mower.d.ts +3 -2
- package/dist/model/capabilities/ptz.d.ts +11 -5
- package/dist/model/capabilities/vacuum-clean.d.ts +23 -0
- package/dist/model/device-family.d.ts +1 -1
- package/dist/model/device-types.d.ts +1 -0
- package/dist/transport/http/mega-client.d.ts +3 -2
- package/dist/transport/mqtt/biz-stream.d.ts +22 -25
- package/dist/transport/p2p/audio-frame.d.ts +13 -0
- package/dist/transport/p2p/codec.d.ts +2 -2
- package/dist/transport/p2p/command-router.d.ts +45 -13
- package/dist/transport/p2p/database-wire.d.ts +30 -0
- package/dist/transport/p2p/level2-settle.d.ts +9 -0
- package/dist/transport/p2p/live-stream.d.ts +34 -7
- package/dist/transport/p2p/live-trace.d.ts +6 -4
- package/dist/transport/p2p/p2p-session.d.ts +99 -15
- package/dist/transport/p2p/readable-egress.d.ts +3 -1
- package/dist/transport/p2p/recording-download.d.ts +95 -12
- package/dist/transport/p2p/shared-live-source.d.ts +9 -3
- package/dist/transport/p2p/video.d.ts +11 -5
- package/dist/transport/push/store.d.ts +7 -6
- package/dist/transport/rtc/command-router.d.ts +63 -3
- package/dist/transport/rtc/portal-packet.d.ts +3 -13
- package/dist/transport/rtc/session.d.ts +4 -2
- package/dist/transport/stored-image-cache.d.ts +14 -0
- package/package.json +1 -1
|
@@ -9,6 +9,12 @@ export declare class StoredImageCache {
|
|
|
9
9
|
private readonly activeDevices;
|
|
10
10
|
private activeDownloads;
|
|
11
11
|
private generation;
|
|
12
|
+
/**
|
|
13
|
+
* Bumped by {@link clearLifecycleErrors}. A lifecycle failure from a download started under an older
|
|
14
|
+
* count is not recorded; the candidate is queued again, unless a newer one is already queued, so the
|
|
15
|
+
* current session fetches it.
|
|
16
|
+
*/
|
|
17
|
+
private lifecycle;
|
|
12
18
|
constructor(downloader: (url: string, deviceKey: string) => Promise<Buffer>, logger: Logger, clock?: () => number, isLifecycleError?: (error: unknown) => boolean);
|
|
13
19
|
/**
|
|
14
20
|
* Observe a normalized thumbnail URL and start acquisition eagerly.
|
|
@@ -20,6 +26,14 @@ export declare class StoredImageCache {
|
|
|
20
26
|
observe(deviceKey: string, url: string): void;
|
|
21
27
|
/** Return retained bytes without starting or awaiting network work. */
|
|
22
28
|
snapshotStored(deviceKey: string): Promise<Buffer>;
|
|
29
|
+
/**
|
|
30
|
+
* Forget every device's recorded lifecycle failure, keeping retained bytes and candidate state.
|
|
31
|
+
*
|
|
32
|
+
* A lifecycle failure describes the session that was current when the download ran, so it no longer
|
|
33
|
+
* holds once a login succeeds again; {@link snapshotStored} then answers from the retained image, or
|
|
34
|
+
* with the reason a stored image is absent. A download in flight across the call cannot record one.
|
|
35
|
+
*/
|
|
36
|
+
clearLifecycleErrors(): void;
|
|
23
37
|
/** Invalidate all retained and candidate state. */
|
|
24
38
|
clear(): void;
|
|
25
39
|
private pump;
|
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.31",
|
|
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",
|