@mega-yfue/eufy-sdk 0.3.0-beta.0 → 0.3.0-beta.10
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/eufy-mega.d.ts +2 -1
- package/dist/client/types.d.ts +3 -2
- package/dist/index.js +291 -71
- package/dist/index.js.map +3 -3
- package/dist/model/capabilities/battery.d.ts +5 -0
- package/dist/transport/http/mega-client.d.ts +9 -4
- package/dist/transport/mqtt/secure-mqtt.d.ts +10 -1
- package/dist/transport/p2p/p2p-session.d.ts +37 -9
- package/dist/transport/push/push-client.d.ts +11 -0
- package/dist/transport/push/types.d.ts +8 -8
- package/package.json +1 -1
|
@@ -674,7 +674,8 @@ export declare class EufyMega extends EventEmitter {
|
|
|
674
674
|
private warmWiredP2P;
|
|
675
675
|
/**
|
|
676
676
|
* A station's power tier for the P2P lifecycle: a HomeBase/station is `"wired"` (persistent); a
|
|
677
|
-
* standalone device is `"battery"` iff its resolved capabilities include `battery
|
|
677
|
+
* standalone device is `"battery"` iff its resolved capabilities include `battery` and it is not a
|
|
678
|
+
* confirmed mains-only camera model, else `"wired"`.
|
|
678
679
|
* Keyed on the STATION's own power, never a child's (a battery cam attached to a wired HomeBase draws
|
|
679
680
|
* from the base's persistent session). Reads capabilities on the client side — no model type leaks to
|
|
680
681
|
* transport (the router only ever sees the `"wired"|"battery"` string).
|
package/dist/client/types.d.ts
CHANGED
|
@@ -377,8 +377,9 @@ export type EufyMegaEventMap = {
|
|
|
377
377
|
* on `error`.
|
|
378
378
|
*
|
|
379
379
|
* The error carries the rate: `err.retryAfterMs` is how long the next session replacement is barred
|
|
380
|
-
* for, and `err.contended` says
|
|
381
|
-
*
|
|
380
|
+
* for, and `err.contended` says the token was rejected again soon after being replaced, which is how
|
|
381
|
+
* displacement by another client looks and which a re-login does not answer. A login made before that
|
|
382
|
+
* wait elapses extends it.
|
|
382
383
|
*/
|
|
383
384
|
sessionExpired: [err: SessionExpiredError];
|
|
384
385
|
error: [err: Error];
|