@mega-yfue/eufy-sdk 0.3.0-beta.8 → 0.3.0-beta.9

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.
@@ -90,6 +90,11 @@ export type BatteryActions = Surface<typeof BATTERY_MEMBERS>;
90
90
  * The richer raw `APP_CMD_SET_POWER_SOURCE` blob is a separate param, surfaced as `powerSourceInfo`.
91
91
  */
92
92
  declare function decodePowerSource(raw: string | number | boolean): number | string;
93
+ /**
94
+ * Power tier of a camera for its live-media budget and standalone P2P session: `"battery"` only when it
95
+ * resolved the `battery` capability AND is not a listed mains-only model, else `"wired"`.
96
+ */
97
+ export declare function cameraPowerTier(model: string | undefined, capabilities: ReadonlySet<string>): "wired" | "battery";
93
98
  /**
94
99
  * The params whose subject IS the physical cell — so every member reading one must carry
95
100
  * {@link notMainsCamera}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mega-yfue/eufy-sdk",
3
- "version": "0.3.0-beta.8",
3
+ "version": "0.3.0-beta.9",
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",