@mega-yfue/eufy-sdk 0.5.0-beta.19 → 0.5.0-beta.20

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 CHANGED
@@ -5685,16 +5685,14 @@ var CAMERA_MEMBERS = {
5685
5685
  * Live-view quality, the pair to {@link CAMERA_MEMBERS.recordingQuality} and a different setting on a
5686
5686
  * different wire: changing one leaves the other's parameter untouched.
5687
5687
  *
5688
- * The READ is 1020, which reports the resolved tier as a plain integer. 1020 is also the name the
5689
- * param dictionary already gives that id, and `Device` keys state by NAME — a member claiming 2730
5690
- * under this name would collide with it on a device reporting both.
5688
+ * The READ is 1020, which reports the resolved tier as a plain integer, while the WRITE rides 2730's
5689
+ * `1350` payload. They are two ids for one setting because 2730 carries a per-mode config and 1020
5690
+ * carries the tier in force; the tier is what this property means. 1020 is also the name the param
5691
+ * dictionary already gives that id, and `Device` keys state by NAME — a member claiming 2730 under
5692
+ * this name would collide with it on a device reporting both.
5691
5693
  *
5692
- * `unverified: true` with no `write`: the app's 2730 frame is captured byte-exact, but replaying it
5693
- * from this SDK produced no observable change on a standalone T8171, where the recording sibling's
5694
- * 2731 write on the same envelope and the same session does land. The one difference the capture
5695
- * shows is that the app's frame carries no `mChannel`/`mValue3`, which this envelope always emits.
5696
- * Until a send is confirmed, the setter is absent — a control that silently does nothing is worse
5697
- * than none — and the read ships ahead of it, which verification per direction allows.
5694
+ * `transaction` is part of the frame that was captured, so it is sent. The recording sibling's own
5695
+ * confirmed frame carries no such field; neither is inferred from the other.
5698
5696
  */
5699
5697
  streamingQuality: {
5700
5698
  param: 1020,
@@ -5702,8 +5700,13 @@ var CAMERA_MEMBERS = {
5702
5700
  kind: "enum",
5703
5701
  enumValues: STREAMING_QUALITY_TIERS,
5704
5702
  provenance: "verified",
5705
- unverified: true,
5706
- description: "Live-view quality as a tier, 0 = Auto (1020). Distinct from recordingQuality, which is what gets stored. All four tiers confirmed on a T8170 and a T8171. The WRITE (2730) is unconfirmed from this SDK, so no setter is offered rather than one that reports success without acting \u2014 see CAMERA_CMD.STREAMING_QUALITY_SET."
5703
+ args: [{ name: "quality", kind: "enum", description: "A tier, or the name it maps to. 0 is Auto." }],
5704
+ ...accepts(),
5705
+ description: "Live-view quality as a tier, 0 = Auto (1020; the write rides 2730 APP_CMD_MULTI_CAM_SET_VIDEO_QUALITY). Distinct from recordingQuality, which is what gets stored. All four tiers wire-verified live on a T8170 and read back on 1020. Sent from this SDK to a standalone T8170 and T8171, tier 1 holds the live stream at 1280x720 and tier 0 restores the camera's own resolution ladder \u2014 see CAMERA_CMD.STREAMING_QUALITY_SET. A value outside the tier set is REJECTED, not clamped: every tier in range is a real quality, so a bad one would silently pick another.",
5706
+ write: (v, ctx) => {
5707
+ const q = resolveStreamingQualityTier(v);
5708
+ return q == null ? void 0 : setPayload(CAMERA_CMD.STREAMING_QUALITY_SET, { channel: 0, mode: 0, primary_view: 0, quality: q, transaction: String(Date.now()) }, ctx, 0, void 0, "auto");
5709
+ }
5707
5710
  },
5708
5711
  /**
5709
5712
  * `type` is how the value is STORED, and 2731 stores the whole config — the ACTIVE tier is lifted out