@mega-yfue/eufy-sdk 0.6.0-beta.22 → 0.6.0-beta.23

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
@@ -7207,7 +7207,7 @@ var PtzDirection = {
7207
7207
  /** Tilt down (one step). */
7208
7208
  down: "down"
7209
7209
  };
7210
- var PTZ_ROTATE = { left: 1, right: 2, up: 3, down: 4 };
7210
+ var PTZ_ROTATE = { sweep: 0, left: 1, right: 2, up: 3, down: 4 };
7211
7211
  var ZOOM_EVIDENCE_PARAMS = [6204, 6205];
7212
7212
  var ZOOM_MODEL_HINT = /^T8170\b|^T8425\b|S340/i;
7213
7213
  function hasZoomEvidence(ctx) {
@@ -7215,6 +7215,7 @@ function hasZoomEvidence(ctx) {
7215
7215
  }
7216
7216
  var PRESET_EVIDENCE_PARAMS = [1029, 6090, 6091, 6092, 6210];
7217
7217
  var FIXED_LENS_MODELS = /* @__PURE__ */ new Set(["T8134"]);
7218
+ var ROTATE360_MODELS = /* @__PURE__ */ new Set(["T8410", "T8170", "T8E00"]);
7218
7219
  function rotateCommand(direction, ctx, zoom = 1) {
7219
7220
  return setJson(PTZ_CMD.PTZ_ROTATE, { cmd_type: 1, rotate_type: PTZ_ROTATE[direction], zoom }, ctx);
7220
7221
  }
@@ -7313,6 +7314,8 @@ var PTZ_MEMBERS = {
7313
7314
  up: method(({ ctx, sink }) => () => sink.dispatch(rotateCommand("up", ctx)), "Rotate up."),
7314
7315
  /** Rotate one step down. */
7315
7316
  down: method(({ ctx, sink }) => () => sink.dispatch(rotateCommand("down", ctx)), "Rotate down."),
7317
+ /** Pan a full 360° (room scan). */
7318
+ rotate360: method(({ ctx, sink }) => () => sink.dispatch(rotateCommand("sweep", ctx)), "Pan a full 360\xB0 (room scan).", (ctx) => ROTATE360_MODELS.has(ctx.model ?? "")),
7316
7319
  /**
7317
7320
  * Zoom rides a SECOND (telephoto) lens, so it is offered only where the device shows zoom evidence —
7318
7321
  * otherwise `dev.ptz()?.zoom` would be a silent no-op on a single-lens pan-tilt camera.