@camstack/addon-provider-onvif 1.2.111 → 1.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).
@@ -29049,6 +29049,26 @@ var PtzHomePresetSchema = object({
29049
29049
  "none"
29050
29050
  ])
29051
29051
  });
29052
+ /**
29053
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29054
+ * after how long.
29055
+ *
29056
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29057
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29058
+ * written by the same command. Reading them apart means two round-trips that
29059
+ * can disagree.
29060
+ *
29061
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29062
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29063
+ * you turn the guard point off without clearing it. The first version of this
29064
+ * cap reported only the delay, so that state was invisible — a camera could be
29065
+ * configured to return after 68 seconds with no way to say whether it should
29066
+ * return at all.
29067
+ */
29068
+ var PtzHomeReturnSchema = object({
29069
+ enabled: boolean(),
29070
+ seconds: number().int()
29071
+ });
29052
29072
  var ptzCapability = {
29053
29073
  name: "ptz",
29054
29074
  scope: "device",
@@ -29131,18 +29151,25 @@ var ptzCapability = {
29131
29151
  auth: "admin"
29132
29152
  }),
29133
29153
  /**
29134
- * How long the camera waits, idle, before returning home on its own --
29135
- * `null` when it has no such behaviour.
29154
+ * Whether the camera returns home on its own when left idle, and after how
29155
+ * long. `null` when it has no such behaviour at all.
29136
29156
  *
29137
29157
  * Reolink's guard point carries one (`timeout`, freely settable in
29138
29158
  * seconds). It is a real function of the camera that we did not expose at
29139
29159
  * all, and it belongs next to the home it governs rather than in a vendor
29140
29160
  * settings page nobody associates with Home.
29141
29161
  */
29142
- getHomeReturnSeconds: method(object({ deviceId: number() }), number().int().nullable()),
29143
- /** Set the idle-return delay. Refused by a camera that has no such timer. */
29144
- setHomeReturnSeconds: method(object({
29162
+ getHomeReturn: method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()),
29163
+ /**
29164
+ * Set both together. Refused by a camera with no idle-return behaviour.
29165
+ *
29166
+ * They travel together for the same reason they are read together: the
29167
+ * underlying write carries both, so setting one alone means reading the
29168
+ * other back first and racing whoever else is writing.
29169
+ */
29170
+ setHomeReturn: method(object({
29145
29171
  deviceId: number(),
29172
+ enabled: boolean(),
29146
29173
  seconds: number().int().min(0).max(3600)
29147
29174
  }), _void(), {
29148
29175
  kind: "mutation",
@@ -37016,7 +37043,7 @@ Object.freeze({
37016
37043
  addonId: null,
37017
37044
  access: "view"
37018
37045
  },
37019
- "ptz.getHomeReturnSeconds": {
37046
+ "ptz.getHomeReturn": {
37020
37047
  capName: "ptz",
37021
37048
  capScope: "device",
37022
37049
  addonId: null,
@@ -37076,7 +37103,7 @@ Object.freeze({
37076
37103
  addonId: null,
37077
37104
  access: "create"
37078
37105
  },
37079
- "ptz.setHomeReturnSeconds": {
37106
+ "ptz.setHomeReturn": {
37080
37107
  capName: "ptz",
37081
37108
  capScope: "device",
37082
37109
  addonId: null,
@@ -40265,7 +40292,7 @@ Object.freeze({
40265
40292
  form: "single",
40266
40293
  optional: false
40267
40294
  }],
40268
- "ptz.getHomeReturnSeconds": [{
40295
+ "ptz.getHomeReturn": [{
40269
40296
  name: "deviceId",
40270
40297
  form: "single",
40271
40298
  optional: false
@@ -40315,7 +40342,7 @@ Object.freeze({
40315
40342
  form: "single",
40316
40343
  optional: false
40317
40344
  }],
40318
- "ptz.setHomeReturnSeconds": [{
40345
+ "ptz.setHomeReturn": [{
40319
40346
  name: "deviceId",
40320
40347
  form: "single",
40321
40348
  optional: false
@@ -50460,10 +50487,10 @@ var OnvifCamera = class {
50460
50487
  captureHomeHere: async () => {
50461
50488
  throw new Error("OnvifCamera: home is the PTZ origin on ONVIF and cannot be moved to the current position");
50462
50489
  },
50463
- getHomeReturnSeconds: async () => {
50490
+ getHomeReturn: async () => {
50464
50491
  return null;
50465
50492
  },
50466
- setHomeReturnSeconds: async () => {
50493
+ setHomeReturn: async () => {
50467
50494
  throw new Error("OnvifCamera: no idle-return timer on this driver");
50468
50495
  },
50469
50496
  setHomePreset: async () => {
package/dist/addon.mjs CHANGED
@@ -5364,7 +5364,7 @@ var ZodIssueCode = {
5364
5364
  var ZodFirstPartyTypeKind;
5365
5365
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5366
5366
  //#endregion
5367
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5367
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5368
5368
  /**
5369
5369
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5370
5370
  * window to float samples (D455).
@@ -29050,6 +29050,26 @@ var PtzHomePresetSchema = object({
29050
29050
  "none"
29051
29051
  ])
29052
29052
  });
29053
+ /**
29054
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29055
+ * after how long.
29056
+ *
29057
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29058
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29059
+ * written by the same command. Reading them apart means two round-trips that
29060
+ * can disagree.
29061
+ *
29062
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29063
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29064
+ * you turn the guard point off without clearing it. The first version of this
29065
+ * cap reported only the delay, so that state was invisible — a camera could be
29066
+ * configured to return after 68 seconds with no way to say whether it should
29067
+ * return at all.
29068
+ */
29069
+ var PtzHomeReturnSchema = object({
29070
+ enabled: boolean(),
29071
+ seconds: number().int()
29072
+ });
29053
29073
  var ptzCapability = {
29054
29074
  name: "ptz",
29055
29075
  scope: "device",
@@ -29132,18 +29152,25 @@ var ptzCapability = {
29132
29152
  auth: "admin"
29133
29153
  }),
29134
29154
  /**
29135
- * How long the camera waits, idle, before returning home on its own --
29136
- * `null` when it has no such behaviour.
29155
+ * Whether the camera returns home on its own when left idle, and after how
29156
+ * long. `null` when it has no such behaviour at all.
29137
29157
  *
29138
29158
  * Reolink's guard point carries one (`timeout`, freely settable in
29139
29159
  * seconds). It is a real function of the camera that we did not expose at
29140
29160
  * all, and it belongs next to the home it governs rather than in a vendor
29141
29161
  * settings page nobody associates with Home.
29142
29162
  */
29143
- getHomeReturnSeconds: method(object({ deviceId: number() }), number().int().nullable()),
29144
- /** Set the idle-return delay. Refused by a camera that has no such timer. */
29145
- setHomeReturnSeconds: method(object({
29163
+ getHomeReturn: method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()),
29164
+ /**
29165
+ * Set both together. Refused by a camera with no idle-return behaviour.
29166
+ *
29167
+ * They travel together for the same reason they are read together: the
29168
+ * underlying write carries both, so setting one alone means reading the
29169
+ * other back first and racing whoever else is writing.
29170
+ */
29171
+ setHomeReturn: method(object({
29146
29172
  deviceId: number(),
29173
+ enabled: boolean(),
29147
29174
  seconds: number().int().min(0).max(3600)
29148
29175
  }), _void(), {
29149
29176
  kind: "mutation",
@@ -37017,7 +37044,7 @@ Object.freeze({
37017
37044
  addonId: null,
37018
37045
  access: "view"
37019
37046
  },
37020
- "ptz.getHomeReturnSeconds": {
37047
+ "ptz.getHomeReturn": {
37021
37048
  capName: "ptz",
37022
37049
  capScope: "device",
37023
37050
  addonId: null,
@@ -37077,7 +37104,7 @@ Object.freeze({
37077
37104
  addonId: null,
37078
37105
  access: "create"
37079
37106
  },
37080
- "ptz.setHomeReturnSeconds": {
37107
+ "ptz.setHomeReturn": {
37081
37108
  capName: "ptz",
37082
37109
  capScope: "device",
37083
37110
  addonId: null,
@@ -40266,7 +40293,7 @@ Object.freeze({
40266
40293
  form: "single",
40267
40294
  optional: false
40268
40295
  }],
40269
- "ptz.getHomeReturnSeconds": [{
40296
+ "ptz.getHomeReturn": [{
40270
40297
  name: "deviceId",
40271
40298
  form: "single",
40272
40299
  optional: false
@@ -40316,7 +40343,7 @@ Object.freeze({
40316
40343
  form: "single",
40317
40344
  optional: false
40318
40345
  }],
40319
- "ptz.setHomeReturnSeconds": [{
40346
+ "ptz.setHomeReturn": [{
40320
40347
  name: "deviceId",
40321
40348
  form: "single",
40322
40349
  optional: false
@@ -50461,10 +50488,10 @@ var OnvifCamera = class {
50461
50488
  captureHomeHere: async () => {
50462
50489
  throw new Error("OnvifCamera: home is the PTZ origin on ONVIF and cannot be moved to the current position");
50463
50490
  },
50464
- getHomeReturnSeconds: async () => {
50491
+ getHomeReturn: async () => {
50465
50492
  return null;
50466
50493
  },
50467
- setHomeReturnSeconds: async () => {
50494
+ setHomeReturn: async () => {
50468
50495
  throw new Error("OnvifCamera: no idle-return timer on this driver");
50469
50496
  },
50470
50497
  setHomePreset: async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.111",
3
+ "version": "1.2.112",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",