@camstack/addon-provider-hikvision 1.2.121 → 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.
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-Dk-BdnBf.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
@@ -37647,6 +37773,18 @@ Object.freeze({
37647
37773
  addonId: null,
37648
37774
  access: "view"
37649
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
+ },
37650
37788
  "cameraStreams.getBrokerStreams": {
37651
37789
  capName: "camera-streams",
37652
37790
  capScope: "device",
@@ -43346,6 +43484,21 @@ Object.freeze({
43346
43484
  form: "single",
43347
43485
  optional: false
43348
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
+ }],
43349
43502
  "cameraStreams.getBrokerStreams": [{
43350
43503
  name: "deviceId",
43351
43504
  form: "single",
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-Dk-BdnBf.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
@@ -37648,6 +37774,18 @@ Object.freeze({
37648
37774
  addonId: null,
37649
37775
  access: "view"
37650
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
+ },
37651
37789
  "cameraStreams.getBrokerStreams": {
37652
37790
  capName: "camera-streams",
37653
37791
  capScope: "device",
@@ -43347,6 +43485,21 @@ Object.freeze({
43347
43485
  form: "single",
43348
43486
  optional: false
43349
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
+ }],
43350
43503
  "cameraStreams.getBrokerStreams": [{
43351
43504
  name: "deviceId",
43352
43505
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.121",
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",