@camstack/addon-provider-dreo 0.2.112 → 0.2.113

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/addon.js CHANGED
@@ -5396,7 +5396,7 @@ var ZodIssueCode = {
5396
5396
  var ZodFirstPartyTypeKind;
5397
5397
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5398
5398
  //#endregion
5399
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5399
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5400
5400
  /**
5401
5401
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5402
5402
  * window to float samples (D455).
@@ -31090,6 +31090,26 @@ var PtzHomePresetSchema = object({
31090
31090
  "none"
31091
31091
  ])
31092
31092
  });
31093
+ /**
31094
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31095
+ * after how long.
31096
+ *
31097
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31098
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31099
+ * written by the same command. Reading them apart means two round-trips that
31100
+ * can disagree.
31101
+ *
31102
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31103
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31104
+ * you turn the guard point off without clearing it. The first version of this
31105
+ * cap reported only the delay, so that state was invisible — a camera could be
31106
+ * configured to return after 68 seconds with no way to say whether it should
31107
+ * return at all.
31108
+ */
31109
+ var PtzHomeReturnSchema = object({
31110
+ enabled: boolean(),
31111
+ seconds: number().int()
31112
+ });
31093
31113
  DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
31094
31114
  deviceId: number(),
31095
31115
  presetId: string()
@@ -31115,8 +31135,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31115
31135
  }), method(object({ deviceId: number() }), _void(), {
31116
31136
  kind: "mutation",
31117
31137
  auth: "admin"
31118
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31138
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31119
31139
  deviceId: number(),
31140
+ enabled: boolean(),
31120
31141
  seconds: number().int().min(0).max(3600)
31121
31142
  }), _void(), {
31122
31143
  kind: "mutation",
@@ -40387,7 +40408,7 @@ Object.freeze({
40387
40408
  addonId: null,
40388
40409
  access: "view"
40389
40410
  },
40390
- "ptz.getHomeReturnSeconds": {
40411
+ "ptz.getHomeReturn": {
40391
40412
  capName: "ptz",
40392
40413
  capScope: "device",
40393
40414
  addonId: null,
@@ -40447,7 +40468,7 @@ Object.freeze({
40447
40468
  addonId: null,
40448
40469
  access: "create"
40449
40470
  },
40450
- "ptz.setHomeReturnSeconds": {
40471
+ "ptz.setHomeReturn": {
40451
40472
  capName: "ptz",
40452
40473
  capScope: "device",
40453
40474
  addonId: null,
@@ -43636,7 +43657,7 @@ Object.freeze({
43636
43657
  form: "single",
43637
43658
  optional: false
43638
43659
  }],
43639
- "ptz.getHomeReturnSeconds": [{
43660
+ "ptz.getHomeReturn": [{
43640
43661
  name: "deviceId",
43641
43662
  form: "single",
43642
43663
  optional: false
@@ -43686,7 +43707,7 @@ Object.freeze({
43686
43707
  form: "single",
43687
43708
  optional: false
43688
43709
  }],
43689
- "ptz.setHomeReturnSeconds": [{
43710
+ "ptz.setHomeReturn": [{
43690
43711
  name: "deviceId",
43691
43712
  form: "single",
43692
43713
  optional: false
package/dist/addon.mjs CHANGED
@@ -5397,7 +5397,7 @@ var ZodIssueCode = {
5397
5397
  var ZodFirstPartyTypeKind;
5398
5398
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5399
5399
  //#endregion
5400
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5400
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5401
5401
  /**
5402
5402
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5403
5403
  * window to float samples (D455).
@@ -31091,6 +31091,26 @@ var PtzHomePresetSchema = object({
31091
31091
  "none"
31092
31092
  ])
31093
31093
  });
31094
+ /**
31095
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31096
+ * after how long.
31097
+ *
31098
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31099
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31100
+ * written by the same command. Reading them apart means two round-trips that
31101
+ * can disagree.
31102
+ *
31103
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31104
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31105
+ * you turn the guard point off without clearing it. The first version of this
31106
+ * cap reported only the delay, so that state was invisible — a camera could be
31107
+ * configured to return after 68 seconds with no way to say whether it should
31108
+ * return at all.
31109
+ */
31110
+ var PtzHomeReturnSchema = object({
31111
+ enabled: boolean(),
31112
+ seconds: number().int()
31113
+ });
31094
31114
  DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
31095
31115
  deviceId: number(),
31096
31116
  presetId: string()
@@ -31116,8 +31136,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31116
31136
  }), method(object({ deviceId: number() }), _void(), {
31117
31137
  kind: "mutation",
31118
31138
  auth: "admin"
31119
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31139
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31120
31140
  deviceId: number(),
31141
+ enabled: boolean(),
31121
31142
  seconds: number().int().min(0).max(3600)
31122
31143
  }), _void(), {
31123
31144
  kind: "mutation",
@@ -40388,7 +40409,7 @@ Object.freeze({
40388
40409
  addonId: null,
40389
40410
  access: "view"
40390
40411
  },
40391
- "ptz.getHomeReturnSeconds": {
40412
+ "ptz.getHomeReturn": {
40392
40413
  capName: "ptz",
40393
40414
  capScope: "device",
40394
40415
  addonId: null,
@@ -40448,7 +40469,7 @@ Object.freeze({
40448
40469
  addonId: null,
40449
40470
  access: "create"
40450
40471
  },
40451
- "ptz.setHomeReturnSeconds": {
40472
+ "ptz.setHomeReturn": {
40452
40473
  capName: "ptz",
40453
40474
  capScope: "device",
40454
40475
  addonId: null,
@@ -43637,7 +43658,7 @@ Object.freeze({
43637
43658
  form: "single",
43638
43659
  optional: false
43639
43660
  }],
43640
- "ptz.getHomeReturnSeconds": [{
43661
+ "ptz.getHomeReturn": [{
43641
43662
  name: "deviceId",
43642
43663
  form: "single",
43643
43664
  optional: false
@@ -43687,7 +43708,7 @@ Object.freeze({
43687
43708
  form: "single",
43688
43709
  optional: false
43689
43710
  }],
43690
- "ptz.setHomeReturnSeconds": [{
43711
+ "ptz.setHomeReturn": [{
43691
43712
  name: "deviceId",
43692
43713
  form: "single",
43693
43714
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.112",
3
+ "version": "0.2.113",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",