@camstack/addon-provider-hikvision 1.2.120 → 1.2.122

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 (3) hide show
  1. package/dist/addon.js +192 -12
  2. package/dist/addon.mjs +192 -12
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5367,7 +5367,7 @@ var ZodIssueCode = {
5367
5367
  var ZodFirstPartyTypeKind;
5368
5368
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5369
5369
  //#endregion
5370
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5370
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5371
5371
  /**
5372
5372
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5373
5373
  * window to float samples (D455).
@@ -12138,6 +12138,24 @@ var GetStreamWithCodecInputSchema = object({
12138
12138
  });
12139
12139
  var RtpSourceSchema = object({
12140
12140
  url: string(),
12141
+ /**
12142
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12143
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12144
+ *
12145
+ * The broker answers it because the broker is the only thing that can:
12146
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12147
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12148
+ * cap bindings would be a second authority, and two authorities on the same
12149
+ * question is how a composite camera ends up dialling a sleeping camera
12150
+ * because its own copy of the rule was a release behind.
12151
+ *
12152
+ * `null` is a real answer and is never a live url in disguise: a consumer
12153
+ * that silently fell back to {@link url} would perform exactly the wake this
12154
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12155
+ * transcode hands back an egress the broker is feeding itself, which has no
12156
+ * sentry counterpart.
12157
+ */
12158
+ sentryUrl: string().nullable().optional(),
12141
12159
  videoCodec: _enum(["H264", "H265"]),
12142
12160
  audioCodec: string(),
12143
12161
  resolution: object({
@@ -29307,6 +29325,114 @@ var motionTriggerCapability = {
29307
29325
  durability: "session"
29308
29326
  };
29309
29327
  /**
29328
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29329
+ * page.
29330
+ *
29331
+ * ## Why this is a capability and not an addon settings schema
29332
+ *
29333
+ * It was one, and it did not render. The addon declared the editor as a
29334
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29335
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29336
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29337
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29338
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29339
+ * not on it "falls off silently".
29340
+ *
29341
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29342
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29343
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
29344
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29345
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29346
+ * all use it): the framework emits the structural section and the widget
29347
+ * self-persists through the cap's own mutations.
29348
+ *
29349
+ * ## Why one addon may implement it
29350
+ *
29351
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29352
+ * itself. Nothing else declares a composite camera, so nothing else has a
29353
+ * layout — and the device-scoped route means the widget asks THE camera, not
29354
+ * "the camera-grid addon", which is what let the old custom-action pair be
29355
+ * reached only by a caller that already knew the addon id.
29356
+ *
29357
+ * ## The tab
29358
+ *
29359
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29360
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29361
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29362
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29363
+ * next to "PTZ").
29364
+ */
29365
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29366
+ var GridNormalizedRectSchema = object({
29367
+ x: number().min(0).max(1),
29368
+ y: number().min(0).max(1),
29369
+ width: number().gt(0).max(1),
29370
+ height: number().gt(0).max(1)
29371
+ });
29372
+ /**
29373
+ * One source camera, the part of its picture taken, and where that part lands.
29374
+ *
29375
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29376
+ * — a profile switch, a firmware update, a substream that comes back different
29377
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29378
+ * which is the class of bug nobody files.
29379
+ */
29380
+ var GridLayoutCellSchema = object({
29381
+ deviceId: number().int().positive(),
29382
+ /** The part of the SOURCE taken, normalized against the source. */
29383
+ source: GridNormalizedRectSchema,
29384
+ /** Where it lands, normalized against the CANVAS. */
29385
+ cell: GridNormalizedRectSchema
29386
+ });
29387
+ /**
29388
+ * Which profiles this grid can actually compose, and why not.
29389
+ *
29390
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29391
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29392
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29393
+ * low" is, and it is the one an operator can act on.
29394
+ */
29395
+ var GridProfileOfferSchema = object({
29396
+ profile: _enum([
29397
+ "high",
29398
+ "mid",
29399
+ "low"
29400
+ ]),
29401
+ offered: boolean(),
29402
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29403
+ missingSources: array(number().int().positive())
29404
+ });
29405
+ var GridLayoutViewSchema = object({
29406
+ /** The persisted grid row this camera was declared from. */
29407
+ instanceId: string(),
29408
+ deviceId: number().int().nonnegative(),
29409
+ name: string(),
29410
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29411
+ width: number().int(),
29412
+ height: number().int(),
29413
+ fps: number().int(),
29414
+ cells: array(GridLayoutCellSchema),
29415
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29416
+ profiles: array(GridProfileOfferSchema)
29417
+ });
29418
+ var GridLayoutPatchSchema = object({
29419
+ deviceId: number().int().nonnegative(),
29420
+ name: string().min(1).max(160).optional(),
29421
+ width: number().int().min(160).max(7680).optional(),
29422
+ height: number().int().min(120).max(4320).optional(),
29423
+ fps: number().int().min(1).max(60).optional(),
29424
+ /**
29425
+ * The whole cell list at once. A per-cell patch would need an ordering the
29426
+ * editor does not have, and a half-applied layout is a picture nobody asked
29427
+ * for.
29428
+ */
29429
+ cells: array(GridLayoutCellSchema).max(16)
29430
+ });
29431
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29432
+ kind: "mutation",
29433
+ auth: "admin"
29434
+ });
29435
+ /**
29310
29436
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29311
29437
  * on-camera motion-detection mask is a single `grid` region (a row-major
29312
29438
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -31534,6 +31660,26 @@ var PtzHomePresetSchema = object({
31534
31660
  "none"
31535
31661
  ])
31536
31662
  });
31663
+ /**
31664
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31665
+ * after how long.
31666
+ *
31667
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31668
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31669
+ * written by the same command. Reading them apart means two round-trips that
31670
+ * can disagree.
31671
+ *
31672
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31673
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31674
+ * you turn the guard point off without clearing it. The first version of this
31675
+ * cap reported only the delay, so that state was invisible — a camera could be
31676
+ * configured to return after 68 seconds with no way to say whether it should
31677
+ * return at all.
31678
+ */
31679
+ var PtzHomeReturnSchema = object({
31680
+ enabled: boolean(),
31681
+ seconds: number().int()
31682
+ });
31537
31683
  var ptzCapability = {
31538
31684
  name: "ptz",
31539
31685
  scope: "device",
@@ -31616,18 +31762,25 @@ var ptzCapability = {
31616
31762
  auth: "admin"
31617
31763
  }),
31618
31764
  /**
31619
- * How long the camera waits, idle, before returning home on its own --
31620
- * `null` when it has no such behaviour.
31765
+ * Whether the camera returns home on its own when left idle, and after how
31766
+ * long. `null` when it has no such behaviour at all.
31621
31767
  *
31622
31768
  * Reolink's guard point carries one (`timeout`, freely settable in
31623
31769
  * seconds). It is a real function of the camera that we did not expose at
31624
31770
  * all, and it belongs next to the home it governs rather than in a vendor
31625
31771
  * settings page nobody associates with Home.
31626
31772
  */
31627
- getHomeReturnSeconds: method(object({ deviceId: number() }), number().int().nullable()),
31628
- /** Set the idle-return delay. Refused by a camera that has no such timer. */
31629
- setHomeReturnSeconds: method(object({
31773
+ getHomeReturn: method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()),
31774
+ /**
31775
+ * Set both together. Refused by a camera with no idle-return behaviour.
31776
+ *
31777
+ * They travel together for the same reason they are read together: the
31778
+ * underlying write carries both, so setting one alone means reading the
31779
+ * other back first and racing whoever else is writing.
31780
+ */
31781
+ setHomeReturn: method(object({
31630
31782
  deviceId: number(),
31783
+ enabled: boolean(),
31631
31784
  seconds: number().int().min(0).max(3600)
31632
31785
  }), _void(), {
31633
31786
  kind: "mutation",
@@ -37620,6 +37773,18 @@ Object.freeze({
37620
37773
  addonId: null,
37621
37774
  access: "view"
37622
37775
  },
37776
+ "cameraGridLayout.getLayout": {
37777
+ capName: "camera-grid-layout",
37778
+ capScope: "device",
37779
+ addonId: null,
37780
+ access: "view"
37781
+ },
37782
+ "cameraGridLayout.saveLayout": {
37783
+ capName: "camera-grid-layout",
37784
+ capScope: "device",
37785
+ addonId: null,
37786
+ access: "create"
37787
+ },
37623
37788
  "cameraStreams.getBrokerStreams": {
37624
37789
  capName: "camera-streams",
37625
37790
  capScope: "device",
@@ -41370,7 +41535,7 @@ Object.freeze({
41370
41535
  addonId: null,
41371
41536
  access: "view"
41372
41537
  },
41373
- "ptz.getHomeReturnSeconds": {
41538
+ "ptz.getHomeReturn": {
41374
41539
  capName: "ptz",
41375
41540
  capScope: "device",
41376
41541
  addonId: null,
@@ -41430,7 +41595,7 @@ Object.freeze({
41430
41595
  addonId: null,
41431
41596
  access: "create"
41432
41597
  },
41433
- "ptz.setHomeReturnSeconds": {
41598
+ "ptz.setHomeReturn": {
41434
41599
  capName: "ptz",
41435
41600
  capScope: "device",
41436
41601
  addonId: null,
@@ -43319,6 +43484,21 @@ Object.freeze({
43319
43484
  form: "single",
43320
43485
  optional: false
43321
43486
  }],
43487
+ "cameraGridLayout.getLayout": [{
43488
+ name: "deviceId",
43489
+ form: "single",
43490
+ optional: false
43491
+ }],
43492
+ "cameraGridLayout.saveLayout": [{
43493
+ name: "cells",
43494
+ form: "object-array",
43495
+ optional: false,
43496
+ itemField: "deviceId"
43497
+ }, {
43498
+ name: "deviceId",
43499
+ form: "single",
43500
+ optional: false
43501
+ }],
43322
43502
  "cameraStreams.getBrokerStreams": [{
43323
43503
  name: "deviceId",
43324
43504
  form: "single",
@@ -44619,7 +44799,7 @@ Object.freeze({
44619
44799
  form: "single",
44620
44800
  optional: false
44621
44801
  }],
44622
- "ptz.getHomeReturnSeconds": [{
44802
+ "ptz.getHomeReturn": [{
44623
44803
  name: "deviceId",
44624
44804
  form: "single",
44625
44805
  optional: false
@@ -44669,7 +44849,7 @@ Object.freeze({
44669
44849
  form: "single",
44670
44850
  optional: false
44671
44851
  }],
44672
- "ptz.setHomeReturnSeconds": [{
44852
+ "ptz.setHomeReturn": [{
44673
44853
  name: "deviceId",
44674
44854
  form: "single",
44675
44855
  optional: false
@@ -51876,10 +52056,10 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
51876
52056
  meta: { presetId: slot }
51877
52057
  });
51878
52058
  },
51879
- getHomeReturnSeconds: async () => {
52059
+ getHomeReturn: async () => {
51880
52060
  return null;
51881
52061
  },
51882
- setHomeReturnSeconds: async () => {
52062
+ setHomeReturn: async () => {
51883
52063
  throw new Error("Hikvision: the idle-return timer is not wired on this driver");
51884
52064
  },
51885
52065
  setHomePreset: async ({ deviceId, presetId }) => {
package/dist/addon.mjs CHANGED
@@ -5368,7 +5368,7 @@ var ZodIssueCode = {
5368
5368
  var ZodFirstPartyTypeKind;
5369
5369
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5370
5370
  //#endregion
5371
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5371
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5372
5372
  /**
5373
5373
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5374
5374
  * window to float samples (D455).
@@ -12139,6 +12139,24 @@ var GetStreamWithCodecInputSchema = object({
12139
12139
  });
12140
12140
  var RtpSourceSchema = object({
12141
12141
  url: string(),
12142
+ /**
12143
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12144
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12145
+ *
12146
+ * The broker answers it because the broker is the only thing that can:
12147
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12148
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12149
+ * cap bindings would be a second authority, and two authorities on the same
12150
+ * question is how a composite camera ends up dialling a sleeping camera
12151
+ * because its own copy of the rule was a release behind.
12152
+ *
12153
+ * `null` is a real answer and is never a live url in disguise: a consumer
12154
+ * that silently fell back to {@link url} would perform exactly the wake this
12155
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12156
+ * transcode hands back an egress the broker is feeding itself, which has no
12157
+ * sentry counterpart.
12158
+ */
12159
+ sentryUrl: string().nullable().optional(),
12142
12160
  videoCodec: _enum(["H264", "H265"]),
12143
12161
  audioCodec: string(),
12144
12162
  resolution: object({
@@ -29308,6 +29326,114 @@ var motionTriggerCapability = {
29308
29326
  durability: "session"
29309
29327
  };
29310
29328
  /**
29329
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29330
+ * page.
29331
+ *
29332
+ * ## Why this is a capability and not an addon settings schema
29333
+ *
29334
+ * It was one, and it did not render. The addon declared the editor as a
29335
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29336
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29337
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29338
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29339
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29340
+ * not on it "falls off silently".
29341
+ *
29342
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29343
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29344
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
29345
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29346
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29347
+ * all use it): the framework emits the structural section and the widget
29348
+ * self-persists through the cap's own mutations.
29349
+ *
29350
+ * ## Why one addon may implement it
29351
+ *
29352
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29353
+ * itself. Nothing else declares a composite camera, so nothing else has a
29354
+ * layout — and the device-scoped route means the widget asks THE camera, not
29355
+ * "the camera-grid addon", which is what let the old custom-action pair be
29356
+ * reached only by a caller that already knew the addon id.
29357
+ *
29358
+ * ## The tab
29359
+ *
29360
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29361
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29362
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29363
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29364
+ * next to "PTZ").
29365
+ */
29366
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29367
+ var GridNormalizedRectSchema = object({
29368
+ x: number().min(0).max(1),
29369
+ y: number().min(0).max(1),
29370
+ width: number().gt(0).max(1),
29371
+ height: number().gt(0).max(1)
29372
+ });
29373
+ /**
29374
+ * One source camera, the part of its picture taken, and where that part lands.
29375
+ *
29376
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29377
+ * — a profile switch, a firmware update, a substream that comes back different
29378
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29379
+ * which is the class of bug nobody files.
29380
+ */
29381
+ var GridLayoutCellSchema = object({
29382
+ deviceId: number().int().positive(),
29383
+ /** The part of the SOURCE taken, normalized against the source. */
29384
+ source: GridNormalizedRectSchema,
29385
+ /** Where it lands, normalized against the CANVAS. */
29386
+ cell: GridNormalizedRectSchema
29387
+ });
29388
+ /**
29389
+ * Which profiles this grid can actually compose, and why not.
29390
+ *
29391
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29392
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29393
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29394
+ * low" is, and it is the one an operator can act on.
29395
+ */
29396
+ var GridProfileOfferSchema = object({
29397
+ profile: _enum([
29398
+ "high",
29399
+ "mid",
29400
+ "low"
29401
+ ]),
29402
+ offered: boolean(),
29403
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29404
+ missingSources: array(number().int().positive())
29405
+ });
29406
+ var GridLayoutViewSchema = object({
29407
+ /** The persisted grid row this camera was declared from. */
29408
+ instanceId: string(),
29409
+ deviceId: number().int().nonnegative(),
29410
+ name: string(),
29411
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29412
+ width: number().int(),
29413
+ height: number().int(),
29414
+ fps: number().int(),
29415
+ cells: array(GridLayoutCellSchema),
29416
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29417
+ profiles: array(GridProfileOfferSchema)
29418
+ });
29419
+ var GridLayoutPatchSchema = object({
29420
+ deviceId: number().int().nonnegative(),
29421
+ name: string().min(1).max(160).optional(),
29422
+ width: number().int().min(160).max(7680).optional(),
29423
+ height: number().int().min(120).max(4320).optional(),
29424
+ fps: number().int().min(1).max(60).optional(),
29425
+ /**
29426
+ * The whole cell list at once. A per-cell patch would need an ordering the
29427
+ * editor does not have, and a half-applied layout is a picture nobody asked
29428
+ * for.
29429
+ */
29430
+ cells: array(GridLayoutCellSchema).max(16)
29431
+ });
29432
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29433
+ kind: "mutation",
29434
+ auth: "admin"
29435
+ });
29436
+ /**
29311
29437
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29312
29438
  * on-camera motion-detection mask is a single `grid` region (a row-major
29313
29439
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -31535,6 +31661,26 @@ var PtzHomePresetSchema = object({
31535
31661
  "none"
31536
31662
  ])
31537
31663
  });
31664
+ /**
31665
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
31666
+ * after how long.
31667
+ *
31668
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
31669
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
31670
+ * written by the same command. Reading them apart means two round-trips that
31671
+ * can disagree.
31672
+ *
31673
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
31674
+ * the behaviour switched off, which is exactly what the vendor app leaves when
31675
+ * you turn the guard point off without clearing it. The first version of this
31676
+ * cap reported only the delay, so that state was invisible — a camera could be
31677
+ * configured to return after 68 seconds with no way to say whether it should
31678
+ * return at all.
31679
+ */
31680
+ var PtzHomeReturnSchema = object({
31681
+ enabled: boolean(),
31682
+ seconds: number().int()
31683
+ });
31538
31684
  var ptzCapability = {
31539
31685
  name: "ptz",
31540
31686
  scope: "device",
@@ -31617,18 +31763,25 @@ var ptzCapability = {
31617
31763
  auth: "admin"
31618
31764
  }),
31619
31765
  /**
31620
- * How long the camera waits, idle, before returning home on its own --
31621
- * `null` when it has no such behaviour.
31766
+ * Whether the camera returns home on its own when left idle, and after how
31767
+ * long. `null` when it has no such behaviour at all.
31622
31768
  *
31623
31769
  * Reolink's guard point carries one (`timeout`, freely settable in
31624
31770
  * seconds). It is a real function of the camera that we did not expose at
31625
31771
  * all, and it belongs next to the home it governs rather than in a vendor
31626
31772
  * settings page nobody associates with Home.
31627
31773
  */
31628
- getHomeReturnSeconds: method(object({ deviceId: number() }), number().int().nullable()),
31629
- /** Set the idle-return delay. Refused by a camera that has no such timer. */
31630
- setHomeReturnSeconds: method(object({
31774
+ getHomeReturn: method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()),
31775
+ /**
31776
+ * Set both together. Refused by a camera with no idle-return behaviour.
31777
+ *
31778
+ * They travel together for the same reason they are read together: the
31779
+ * underlying write carries both, so setting one alone means reading the
31780
+ * other back first and racing whoever else is writing.
31781
+ */
31782
+ setHomeReturn: method(object({
31631
31783
  deviceId: number(),
31784
+ enabled: boolean(),
31632
31785
  seconds: number().int().min(0).max(3600)
31633
31786
  }), _void(), {
31634
31787
  kind: "mutation",
@@ -37621,6 +37774,18 @@ Object.freeze({
37621
37774
  addonId: null,
37622
37775
  access: "view"
37623
37776
  },
37777
+ "cameraGridLayout.getLayout": {
37778
+ capName: "camera-grid-layout",
37779
+ capScope: "device",
37780
+ addonId: null,
37781
+ access: "view"
37782
+ },
37783
+ "cameraGridLayout.saveLayout": {
37784
+ capName: "camera-grid-layout",
37785
+ capScope: "device",
37786
+ addonId: null,
37787
+ access: "create"
37788
+ },
37624
37789
  "cameraStreams.getBrokerStreams": {
37625
37790
  capName: "camera-streams",
37626
37791
  capScope: "device",
@@ -41371,7 +41536,7 @@ Object.freeze({
41371
41536
  addonId: null,
41372
41537
  access: "view"
41373
41538
  },
41374
- "ptz.getHomeReturnSeconds": {
41539
+ "ptz.getHomeReturn": {
41375
41540
  capName: "ptz",
41376
41541
  capScope: "device",
41377
41542
  addonId: null,
@@ -41431,7 +41596,7 @@ Object.freeze({
41431
41596
  addonId: null,
41432
41597
  access: "create"
41433
41598
  },
41434
- "ptz.setHomeReturnSeconds": {
41599
+ "ptz.setHomeReturn": {
41435
41600
  capName: "ptz",
41436
41601
  capScope: "device",
41437
41602
  addonId: null,
@@ -43320,6 +43485,21 @@ Object.freeze({
43320
43485
  form: "single",
43321
43486
  optional: false
43322
43487
  }],
43488
+ "cameraGridLayout.getLayout": [{
43489
+ name: "deviceId",
43490
+ form: "single",
43491
+ optional: false
43492
+ }],
43493
+ "cameraGridLayout.saveLayout": [{
43494
+ name: "cells",
43495
+ form: "object-array",
43496
+ optional: false,
43497
+ itemField: "deviceId"
43498
+ }, {
43499
+ name: "deviceId",
43500
+ form: "single",
43501
+ optional: false
43502
+ }],
43323
43503
  "cameraStreams.getBrokerStreams": [{
43324
43504
  name: "deviceId",
43325
43505
  form: "single",
@@ -44620,7 +44800,7 @@ Object.freeze({
44620
44800
  form: "single",
44621
44801
  optional: false
44622
44802
  }],
44623
- "ptz.getHomeReturnSeconds": [{
44803
+ "ptz.getHomeReturn": [{
44624
44804
  name: "deviceId",
44625
44805
  form: "single",
44626
44806
  optional: false
@@ -44670,7 +44850,7 @@ Object.freeze({
44670
44850
  form: "single",
44671
44851
  optional: false
44672
44852
  }],
44673
- "ptz.setHomeReturnSeconds": [{
44853
+ "ptz.setHomeReturn": [{
44674
44854
  name: "deviceId",
44675
44855
  form: "single",
44676
44856
  optional: false
@@ -51877,10 +52057,10 @@ var HikvisionCamera = class HikvisionCamera extends BaseDevice {
51877
52057
  meta: { presetId: slot }
51878
52058
  });
51879
52059
  },
51880
- getHomeReturnSeconds: async () => {
52060
+ getHomeReturn: async () => {
51881
52061
  return null;
51882
52062
  },
51883
- setHomeReturnSeconds: async () => {
52063
+ setHomeReturn: async () => {
51884
52064
  throw new Error("Hikvision: the idle-return timer is not wired on this driver");
51885
52065
  },
51886
52066
  setHomePreset: async ({ deviceId, presetId }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.120",
3
+ "version": "1.2.122",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",