@camstack/addon-export-hap 1.2.124 → 1.2.125

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.
@@ -5445,7 +5445,7 @@ var ZodIssueCode = {
5445
5445
  var ZodFirstPartyTypeKind;
5446
5446
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5447
5447
  //#endregion
5448
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5448
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5449
5449
  /**
5450
5450
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5451
5451
  * window to float samples (D455).
@@ -29813,6 +29813,26 @@ var PtzHomePresetSchema = object({
29813
29813
  "none"
29814
29814
  ])
29815
29815
  });
29816
+ /**
29817
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29818
+ * after how long.
29819
+ *
29820
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29821
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29822
+ * written by the same command. Reading them apart means two round-trips that
29823
+ * can disagree.
29824
+ *
29825
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29826
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29827
+ * you turn the guard point off without clearing it. The first version of this
29828
+ * cap reported only the delay, so that state was invisible — a camera could be
29829
+ * configured to return after 68 seconds with no way to say whether it should
29830
+ * return at all.
29831
+ */
29832
+ var PtzHomeReturnSchema = object({
29833
+ enabled: boolean(),
29834
+ seconds: number().int()
29835
+ });
29816
29836
  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({
29817
29837
  deviceId: number(),
29818
29838
  presetId: string()
@@ -29838,8 +29858,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
29838
29858
  }), method(object({ deviceId: number() }), _void(), {
29839
29859
  kind: "mutation",
29840
29860
  auth: "admin"
29841
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
29861
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
29842
29862
  deviceId: number(),
29863
+ enabled: boolean(),
29843
29864
  seconds: number().int().min(0).max(3600)
29844
29865
  }), _void(), {
29845
29866
  kind: "mutation",
@@ -36896,7 +36917,7 @@ Object.freeze({
36896
36917
  addonId: null,
36897
36918
  access: "view"
36898
36919
  },
36899
- "ptz.getHomeReturnSeconds": {
36920
+ "ptz.getHomeReturn": {
36900
36921
  capName: "ptz",
36901
36922
  capScope: "device",
36902
36923
  addonId: null,
@@ -36956,7 +36977,7 @@ Object.freeze({
36956
36977
  addonId: null,
36957
36978
  access: "create"
36958
36979
  },
36959
- "ptz.setHomeReturnSeconds": {
36980
+ "ptz.setHomeReturn": {
36960
36981
  capName: "ptz",
36961
36982
  capScope: "device",
36962
36983
  addonId: null,
@@ -40145,7 +40166,7 @@ Object.freeze({
40145
40166
  form: "single",
40146
40167
  optional: false
40147
40168
  }],
40148
- "ptz.getHomeReturnSeconds": [{
40169
+ "ptz.getHomeReturn": [{
40149
40170
  name: "deviceId",
40150
40171
  form: "single",
40151
40172
  optional: false
@@ -40195,7 +40216,7 @@ Object.freeze({
40195
40216
  form: "single",
40196
40217
  optional: false
40197
40218
  }],
40198
- "ptz.setHomeReturnSeconds": [{
40219
+ "ptz.setHomeReturn": [{
40199
40220
  name: "deviceId",
40200
40221
  form: "single",
40201
40222
  optional: false
@@ -5433,7 +5433,7 @@ var ZodIssueCode = {
5433
5433
  var ZodFirstPartyTypeKind;
5434
5434
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5435
5435
  //#endregion
5436
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5436
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5437
5437
  /**
5438
5438
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5439
5439
  * window to float samples (D455).
@@ -29801,6 +29801,26 @@ var PtzHomePresetSchema = object({
29801
29801
  "none"
29802
29802
  ])
29803
29803
  });
29804
+ /**
29805
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29806
+ * after how long.
29807
+ *
29808
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29809
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29810
+ * written by the same command. Reading them apart means two round-trips that
29811
+ * can disagree.
29812
+ *
29813
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29814
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29815
+ * you turn the guard point off without clearing it. The first version of this
29816
+ * cap reported only the delay, so that state was invisible — a camera could be
29817
+ * configured to return after 68 seconds with no way to say whether it should
29818
+ * return at all.
29819
+ */
29820
+ var PtzHomeReturnSchema = object({
29821
+ enabled: boolean(),
29822
+ seconds: number().int()
29823
+ });
29804
29824
  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({
29805
29825
  deviceId: number(),
29806
29826
  presetId: string()
@@ -29826,8 +29846,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
29826
29846
  }), method(object({ deviceId: number() }), _void(), {
29827
29847
  kind: "mutation",
29828
29848
  auth: "admin"
29829
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
29849
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
29830
29850
  deviceId: number(),
29851
+ enabled: boolean(),
29831
29852
  seconds: number().int().min(0).max(3600)
29832
29853
  }), _void(), {
29833
29854
  kind: "mutation",
@@ -36884,7 +36905,7 @@ Object.freeze({
36884
36905
  addonId: null,
36885
36906
  access: "view"
36886
36907
  },
36887
- "ptz.getHomeReturnSeconds": {
36908
+ "ptz.getHomeReturn": {
36888
36909
  capName: "ptz",
36889
36910
  capScope: "device",
36890
36911
  addonId: null,
@@ -36944,7 +36965,7 @@ Object.freeze({
36944
36965
  addonId: null,
36945
36966
  access: "create"
36946
36967
  },
36947
- "ptz.setHomeReturnSeconds": {
36968
+ "ptz.setHomeReturn": {
36948
36969
  capName: "ptz",
36949
36970
  capScope: "device",
36950
36971
  addonId: null,
@@ -40133,7 +40154,7 @@ Object.freeze({
40133
40154
  form: "single",
40134
40155
  optional: false
40135
40156
  }],
40136
- "ptz.getHomeReturnSeconds": [{
40157
+ "ptz.getHomeReturn": [{
40137
40158
  name: "deviceId",
40138
40159
  form: "single",
40139
40160
  optional: false
@@ -40183,7 +40204,7 @@ Object.freeze({
40183
40204
  form: "single",
40184
40205
  optional: false
40185
40206
  }],
40186
- "ptz.setHomeReturnSeconds": [{
40207
+ "ptz.setHomeReturn": [{
40187
40208
  name: "deviceId",
40188
40209
  form: "single",
40189
40210
  optional: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.124",
3
+ "version": "1.2.125",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",