@camstack/addon-provider-gree 0.2.111 → 0.2.112

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
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
5363
5363
  var ZodFirstPartyTypeKind;
5364
5364
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5365
5365
  //#endregion
5366
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5366
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5367
5367
  /**
5368
5368
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5369
5369
  * window to float samples (D455).
@@ -31032,6 +31032,26 @@ var PtzHomePresetSchema = object({
31032
31032
  "none"
31033
31033
  ])
31034
31034
  });
31035
+ /**
31036
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31037
+ * after how long.
31038
+ *
31039
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31040
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31041
+ * written by the same command. Reading them apart means two round-trips that
31042
+ * can disagree.
31043
+ *
31044
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31045
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31046
+ * you turn the guard point off without clearing it. The first version of this
31047
+ * cap reported only the delay, so that state was invisible — a camera could be
31048
+ * configured to return after 68 seconds with no way to say whether it should
31049
+ * return at all.
31050
+ */
31051
+ var PtzHomeReturnSchema = object({
31052
+ enabled: boolean(),
31053
+ seconds: number().int()
31054
+ });
31035
31055
  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({
31036
31056
  deviceId: number(),
31037
31057
  presetId: string()
@@ -31057,8 +31077,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31057
31077
  }), method(object({ deviceId: number() }), _void(), {
31058
31078
  kind: "mutation",
31059
31079
  auth: "admin"
31060
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31080
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31061
31081
  deviceId: number(),
31082
+ enabled: boolean(),
31062
31083
  seconds: number().int().min(0).max(3600)
31063
31084
  }), _void(), {
31064
31085
  kind: "mutation",
@@ -40329,7 +40350,7 @@ Object.freeze({
40329
40350
  addonId: null,
40330
40351
  access: "view"
40331
40352
  },
40332
- "ptz.getHomeReturnSeconds": {
40353
+ "ptz.getHomeReturn": {
40333
40354
  capName: "ptz",
40334
40355
  capScope: "device",
40335
40356
  addonId: null,
@@ -40389,7 +40410,7 @@ Object.freeze({
40389
40410
  addonId: null,
40390
40411
  access: "create"
40391
40412
  },
40392
- "ptz.setHomeReturnSeconds": {
40413
+ "ptz.setHomeReturn": {
40393
40414
  capName: "ptz",
40394
40415
  capScope: "device",
40395
40416
  addonId: null,
@@ -43578,7 +43599,7 @@ Object.freeze({
43578
43599
  form: "single",
43579
43600
  optional: false
43580
43601
  }],
43581
- "ptz.getHomeReturnSeconds": [{
43602
+ "ptz.getHomeReturn": [{
43582
43603
  name: "deviceId",
43583
43604
  form: "single",
43584
43605
  optional: false
@@ -43628,7 +43649,7 @@ Object.freeze({
43628
43649
  form: "single",
43629
43650
  optional: false
43630
43651
  }],
43631
- "ptz.setHomeReturnSeconds": [{
43652
+ "ptz.setHomeReturn": [{
43632
43653
  name: "deviceId",
43633
43654
  form: "single",
43634
43655
  optional: false
package/dist/addon.mjs CHANGED
@@ -5362,7 +5362,7 @@ var ZodIssueCode = {
5362
5362
  var ZodFirstPartyTypeKind;
5363
5363
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5364
5364
  //#endregion
5365
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5365
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5366
5366
  /**
5367
5367
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5368
5368
  * window to float samples (D455).
@@ -31031,6 +31031,26 @@ var PtzHomePresetSchema = object({
31031
31031
  "none"
31032
31032
  ])
31033
31033
  });
31034
+ /**
31035
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31036
+ * after how long.
31037
+ *
31038
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31039
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31040
+ * written by the same command. Reading them apart means two round-trips that
31041
+ * can disagree.
31042
+ *
31043
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31044
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31045
+ * you turn the guard point off without clearing it. The first version of this
31046
+ * cap reported only the delay, so that state was invisible — a camera could be
31047
+ * configured to return after 68 seconds with no way to say whether it should
31048
+ * return at all.
31049
+ */
31050
+ var PtzHomeReturnSchema = object({
31051
+ enabled: boolean(),
31052
+ seconds: number().int()
31053
+ });
31034
31054
  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({
31035
31055
  deviceId: number(),
31036
31056
  presetId: string()
@@ -31056,8 +31076,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
31056
31076
  }), method(object({ deviceId: number() }), _void(), {
31057
31077
  kind: "mutation",
31058
31078
  auth: "admin"
31059
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
31079
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
31060
31080
  deviceId: number(),
31081
+ enabled: boolean(),
31061
31082
  seconds: number().int().min(0).max(3600)
31062
31083
  }), _void(), {
31063
31084
  kind: "mutation",
@@ -40328,7 +40349,7 @@ Object.freeze({
40328
40349
  addonId: null,
40329
40350
  access: "view"
40330
40351
  },
40331
- "ptz.getHomeReturnSeconds": {
40352
+ "ptz.getHomeReturn": {
40332
40353
  capName: "ptz",
40333
40354
  capScope: "device",
40334
40355
  addonId: null,
@@ -40388,7 +40409,7 @@ Object.freeze({
40388
40409
  addonId: null,
40389
40410
  access: "create"
40390
40411
  },
40391
- "ptz.setHomeReturnSeconds": {
40412
+ "ptz.setHomeReturn": {
40392
40413
  capName: "ptz",
40393
40414
  capScope: "device",
40394
40415
  addonId: null,
@@ -43577,7 +43598,7 @@ Object.freeze({
43577
43598
  form: "single",
43578
43599
  optional: false
43579
43600
  }],
43580
- "ptz.getHomeReturnSeconds": [{
43601
+ "ptz.getHomeReturn": [{
43581
43602
  name: "deviceId",
43582
43603
  form: "single",
43583
43604
  optional: false
@@ -43627,7 +43648,7 @@ Object.freeze({
43627
43648
  form: "single",
43628
43649
  optional: false
43629
43650
  }],
43630
- "ptz.setHomeReturnSeconds": [{
43651
+ "ptz.setHomeReturn": [{
43631
43652
  name: "deviceId",
43632
43653
  form: "single",
43633
43654
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-gree",
3
- "version": "0.2.111",
3
+ "version": "0.2.112",
4
4
  "description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
5
5
  "keywords": [
6
6
  "camstack",