@camstack/addon-provider-tuya 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
@@ -6180,7 +6180,7 @@ var ZodIssueCode = {
6180
6180
  var ZodFirstPartyTypeKind;
6181
6181
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6182
6182
  //#endregion
6183
- //#region ../types/dist/sleep-vl6nBE8d.mjs
6183
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
6184
6184
  /**
6185
6185
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6186
6186
  * window to float samples (D455).
@@ -31874,6 +31874,26 @@ var PtzHomePresetSchema = object({
31874
31874
  "none"
31875
31875
  ])
31876
31876
  });
31877
+ /**
31878
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31879
+ * after how long.
31880
+ *
31881
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31882
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31883
+ * written by the same command. Reading them apart means two round-trips that
31884
+ * can disagree.
31885
+ *
31886
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31887
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31888
+ * you turn the guard point off without clearing it. The first version of this
31889
+ * cap reported only the delay, so that state was invisible — a camera could be
31890
+ * configured to return after 68 seconds with no way to say whether it should
31891
+ * return at all.
31892
+ */
31893
+ var PtzHomeReturnSchema = object({
31894
+ enabled: boolean(),
31895
+ seconds: number().int()
31896
+ });
31877
31897
  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({
31878
31898
  deviceId: number(),
31879
31899
  presetId: string()
@@ -31899,8 +31919,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31899
31919
  }), method(object({ deviceId: number() }), _void(), {
31900
31920
  kind: "mutation",
31901
31921
  auth: "admin"
31902
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31922
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31903
31923
  deviceId: number(),
31924
+ enabled: boolean(),
31904
31925
  seconds: number().int().min(0).max(3600)
31905
31926
  }), _void(), {
31906
31927
  kind: "mutation",
@@ -41171,7 +41192,7 @@ Object.freeze({
41171
41192
  addonId: null,
41172
41193
  access: "view"
41173
41194
  },
41174
- "ptz.getHomeReturnSeconds": {
41195
+ "ptz.getHomeReturn": {
41175
41196
  capName: "ptz",
41176
41197
  capScope: "device",
41177
41198
  addonId: null,
@@ -41231,7 +41252,7 @@ Object.freeze({
41231
41252
  addonId: null,
41232
41253
  access: "create"
41233
41254
  },
41234
- "ptz.setHomeReturnSeconds": {
41255
+ "ptz.setHomeReturn": {
41235
41256
  capName: "ptz",
41236
41257
  capScope: "device",
41237
41258
  addonId: null,
@@ -44420,7 +44441,7 @@ Object.freeze({
44420
44441
  form: "single",
44421
44442
  optional: false
44422
44443
  }],
44423
- "ptz.getHomeReturnSeconds": [{
44444
+ "ptz.getHomeReturn": [{
44424
44445
  name: "deviceId",
44425
44446
  form: "single",
44426
44447
  optional: false
@@ -44470,7 +44491,7 @@ Object.freeze({
44470
44491
  form: "single",
44471
44492
  optional: false
44472
44493
  }],
44473
- "ptz.setHomeReturnSeconds": [{
44494
+ "ptz.setHomeReturn": [{
44474
44495
  name: "deviceId",
44475
44496
  form: "single",
44476
44497
  optional: false
package/dist/addon.mjs CHANGED
@@ -6179,7 +6179,7 @@ var ZodIssueCode = {
6179
6179
  var ZodFirstPartyTypeKind;
6180
6180
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6181
6181
  //#endregion
6182
- //#region ../types/dist/sleep-vl6nBE8d.mjs
6182
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
6183
6183
  /**
6184
6184
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6185
6185
  * window to float samples (D455).
@@ -31873,6 +31873,26 @@ var PtzHomePresetSchema = object({
31873
31873
  "none"
31874
31874
  ])
31875
31875
  });
31876
+ /**
31877
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31878
+ * after how long.
31879
+ *
31880
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31881
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31882
+ * written by the same command. Reading them apart means two round-trips that
31883
+ * can disagree.
31884
+ *
31885
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31886
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31887
+ * you turn the guard point off without clearing it. The first version of this
31888
+ * cap reported only the delay, so that state was invisible — a camera could be
31889
+ * configured to return after 68 seconds with no way to say whether it should
31890
+ * return at all.
31891
+ */
31892
+ var PtzHomeReturnSchema = object({
31893
+ enabled: boolean(),
31894
+ seconds: number().int()
31895
+ });
31876
31896
  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({
31877
31897
  deviceId: number(),
31878
31898
  presetId: string()
@@ -31898,8 +31918,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31898
31918
  }), method(object({ deviceId: number() }), _void(), {
31899
31919
  kind: "mutation",
31900
31920
  auth: "admin"
31901
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31921
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31902
31922
  deviceId: number(),
31923
+ enabled: boolean(),
31903
31924
  seconds: number().int().min(0).max(3600)
31904
31925
  }), _void(), {
31905
31926
  kind: "mutation",
@@ -41170,7 +41191,7 @@ Object.freeze({
41170
41191
  addonId: null,
41171
41192
  access: "view"
41172
41193
  },
41173
- "ptz.getHomeReturnSeconds": {
41194
+ "ptz.getHomeReturn": {
41174
41195
  capName: "ptz",
41175
41196
  capScope: "device",
41176
41197
  addonId: null,
@@ -41230,7 +41251,7 @@ Object.freeze({
41230
41251
  addonId: null,
41231
41252
  access: "create"
41232
41253
  },
41233
- "ptz.setHomeReturnSeconds": {
41254
+ "ptz.setHomeReturn": {
41234
41255
  capName: "ptz",
41235
41256
  capScope: "device",
41236
41257
  addonId: null,
@@ -44419,7 +44440,7 @@ Object.freeze({
44419
44440
  form: "single",
44420
44441
  optional: false
44421
44442
  }],
44422
- "ptz.getHomeReturnSeconds": [{
44443
+ "ptz.getHomeReturn": [{
44423
44444
  name: "deviceId",
44424
44445
  form: "single",
44425
44446
  optional: false
@@ -44469,7 +44490,7 @@ Object.freeze({
44469
44490
  form: "single",
44470
44491
  optional: false
44471
44492
  }],
44472
- "ptz.setHomeReturnSeconds": [{
44493
+ "ptz.setHomeReturn": [{
44473
44494
  name: "deviceId",
44474
44495
  form: "single",
44475
44496
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.112",
3
+ "version": "0.2.113",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",