@camstack/addon-agent-ui 1.2.117 → 1.2.118

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.
Files changed (2) hide show
  1. package/dist/addon.js +28 -7
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5361,7 +5361,7 @@ var ZodIssueCode = {
5361
5361
  var ZodFirstPartyTypeKind;
5362
5362
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5363
5363
  //#endregion
5364
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5364
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5365
5365
  /**
5366
5366
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5367
5367
  * window to float samples (D455).
@@ -28865,6 +28865,26 @@ var PtzHomePresetSchema = object({
28865
28865
  "none"
28866
28866
  ])
28867
28867
  });
28868
+ /**
28869
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
28870
+ * after how long.
28871
+ *
28872
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
28873
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
28874
+ * written by the same command. Reading them apart means two round-trips that
28875
+ * can disagree.
28876
+ *
28877
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
28878
+ * the behaviour switched off, which is exactly what the vendor app leaves when
28879
+ * you turn the guard point off without clearing it. The first version of this
28880
+ * cap reported only the delay, so that state was invisible — a camera could be
28881
+ * configured to return after 68 seconds with no way to say whether it should
28882
+ * return at all.
28883
+ */
28884
+ var PtzHomeReturnSchema = object({
28885
+ enabled: boolean(),
28886
+ seconds: number().int()
28887
+ });
28868
28888
  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({
28869
28889
  deviceId: number(),
28870
28890
  presetId: string()
@@ -28890,8 +28910,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28890
28910
  }), method(object({ deviceId: number() }), _void(), {
28891
28911
  kind: "mutation",
28892
28912
  auth: "admin"
28893
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
28913
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
28894
28914
  deviceId: number(),
28915
+ enabled: boolean(),
28895
28916
  seconds: number().int().min(0).max(3600)
28896
28917
  }), _void(), {
28897
28918
  kind: "mutation",
@@ -35923,7 +35944,7 @@ Object.freeze({
35923
35944
  addonId: null,
35924
35945
  access: "view"
35925
35946
  },
35926
- "ptz.getHomeReturnSeconds": {
35947
+ "ptz.getHomeReturn": {
35927
35948
  capName: "ptz",
35928
35949
  capScope: "device",
35929
35950
  addonId: null,
@@ -35983,7 +36004,7 @@ Object.freeze({
35983
36004
  addonId: null,
35984
36005
  access: "create"
35985
36006
  },
35986
- "ptz.setHomeReturnSeconds": {
36007
+ "ptz.setHomeReturn": {
35987
36008
  capName: "ptz",
35988
36009
  capScope: "device",
35989
36010
  addonId: null,
@@ -39172,7 +39193,7 @@ Object.freeze({
39172
39193
  form: "single",
39173
39194
  optional: false
39174
39195
  }],
39175
- "ptz.getHomeReturnSeconds": [{
39196
+ "ptz.getHomeReturn": [{
39176
39197
  name: "deviceId",
39177
39198
  form: "single",
39178
39199
  optional: false
@@ -39222,7 +39243,7 @@ Object.freeze({
39222
39243
  form: "single",
39223
39244
  optional: false
39224
39245
  }],
39225
- "ptz.setHomeReturnSeconds": [{
39246
+ "ptz.setHomeReturn": [{
39226
39247
  name: "deviceId",
39227
39248
  form: "single",
39228
39249
  optional: false
@@ -40282,7 +40303,7 @@ var AgentUIAddon = class extends BaseAddon {
40282
40303
  capability: adminUiCapability,
40283
40304
  provider: {
40284
40305
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
40285
- getVersion: async () => ({ version: "1.2.117" })
40306
+ getVersion: async () => ({ version: "1.2.118" })
40286
40307
  }
40287
40308
  }];
40288
40309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.117",
3
+ "version": "1.2.118",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",