@camstack/addon-provider-hikvision 1.2.121 → 1.2.123

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-GU_us3DG.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,118 @@ 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. The device page is
29344
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29345
+ * and this cap carries its section the way `recording` does, by RETURNING it
29346
+ * from `getDeviceSettingsContribution`.
29347
+ *
29348
+ * Seven other widgets are still declared the other way, through a
29349
+ * `deviceConfig.ui` block the framework derives a section from. That route
29350
+ * gives the addon no say in where its own panel lands and no way to decline
29351
+ * for a device the panel does not suit, which is why this one does not use it.
29352
+ *
29353
+ * ## Why one addon may implement it
29354
+ *
29355
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29356
+ * itself. Nothing else declares a composite camera, so nothing else has a
29357
+ * layout — and the device-scoped route means the widget asks THE camera, not
29358
+ * "the camera-grid addon", which is what let the old custom-action pair be
29359
+ * reached only by a caller that already knew the addon id.
29360
+ *
29361
+ * ## The tab
29362
+ *
29363
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29364
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29365
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29366
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29367
+ * next to "PTZ").
29368
+ */
29369
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29370
+ var GridNormalizedRectSchema = object({
29371
+ x: number().min(0).max(1),
29372
+ y: number().min(0).max(1),
29373
+ width: number().gt(0).max(1),
29374
+ height: number().gt(0).max(1)
29375
+ });
29376
+ /**
29377
+ * One source camera, the part of its picture taken, and where that part lands.
29378
+ *
29379
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29380
+ * — a profile switch, a firmware update, a substream that comes back different
29381
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29382
+ * which is the class of bug nobody files.
29383
+ */
29384
+ var GridLayoutCellSchema = object({
29385
+ deviceId: number().int().positive(),
29386
+ /** The part of the SOURCE taken, normalized against the source. */
29387
+ source: GridNormalizedRectSchema,
29388
+ /** Where it lands, normalized against the CANVAS. */
29389
+ cell: GridNormalizedRectSchema
29390
+ });
29391
+ /**
29392
+ * Which profiles this grid can actually compose, and why not.
29393
+ *
29394
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29395
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29396
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29397
+ * low" is, and it is the one an operator can act on.
29398
+ */
29399
+ var GridProfileOfferSchema = object({
29400
+ profile: _enum([
29401
+ "high",
29402
+ "mid",
29403
+ "low"
29404
+ ]),
29405
+ offered: boolean(),
29406
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29407
+ missingSources: array(number().int().positive())
29408
+ });
29409
+ var GridLayoutViewSchema = object({
29410
+ /** The persisted grid row this camera was declared from. */
29411
+ instanceId: string(),
29412
+ deviceId: number().int().nonnegative(),
29413
+ name: string(),
29414
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29415
+ width: number().int(),
29416
+ height: number().int(),
29417
+ fps: number().int(),
29418
+ cells: array(GridLayoutCellSchema),
29419
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29420
+ profiles: array(GridProfileOfferSchema)
29421
+ });
29422
+ var GridLayoutPatchSchema = object({
29423
+ deviceId: number().int().nonnegative(),
29424
+ name: string().min(1).max(160).optional(),
29425
+ width: number().int().min(160).max(7680).optional(),
29426
+ height: number().int().min(120).max(4320).optional(),
29427
+ fps: number().int().min(1).max(60).optional(),
29428
+ /**
29429
+ * The whole cell list at once. A per-cell patch would need an ordering the
29430
+ * editor does not have, and a half-applied layout is a picture nobody asked
29431
+ * for.
29432
+ */
29433
+ cells: array(GridLayoutCellSchema).max(16)
29434
+ });
29435
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29436
+ kind: "mutation",
29437
+ auth: "admin"
29438
+ });
29439
+ /**
29310
29440
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29311
29441
  * on-camera motion-detection mask is a single `grid` region (a row-major
29312
29442
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37647,6 +37777,18 @@ Object.freeze({
37647
37777
  addonId: null,
37648
37778
  access: "view"
37649
37779
  },
37780
+ "cameraGridLayout.getLayout": {
37781
+ capName: "camera-grid-layout",
37782
+ capScope: "device",
37783
+ addonId: null,
37784
+ access: "view"
37785
+ },
37786
+ "cameraGridLayout.saveLayout": {
37787
+ capName: "camera-grid-layout",
37788
+ capScope: "device",
37789
+ addonId: null,
37790
+ access: "create"
37791
+ },
37650
37792
  "cameraStreams.getBrokerStreams": {
37651
37793
  capName: "camera-streams",
37652
37794
  capScope: "device",
@@ -43346,6 +43488,21 @@ Object.freeze({
43346
43488
  form: "single",
43347
43489
  optional: false
43348
43490
  }],
43491
+ "cameraGridLayout.getLayout": [{
43492
+ name: "deviceId",
43493
+ form: "single",
43494
+ optional: false
43495
+ }],
43496
+ "cameraGridLayout.saveLayout": [{
43497
+ name: "cells",
43498
+ form: "object-array",
43499
+ optional: false,
43500
+ itemField: "deviceId"
43501
+ }, {
43502
+ name: "deviceId",
43503
+ form: "single",
43504
+ optional: false
43505
+ }],
43349
43506
  "cameraStreams.getBrokerStreams": [{
43350
43507
  name: "deviceId",
43351
43508
  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-GU_us3DG.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,118 @@ 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. The device page is
29345
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29346
+ * and this cap carries its section the way `recording` does, by RETURNING it
29347
+ * from `getDeviceSettingsContribution`.
29348
+ *
29349
+ * Seven other widgets are still declared the other way, through a
29350
+ * `deviceConfig.ui` block the framework derives a section from. That route
29351
+ * gives the addon no say in where its own panel lands and no way to decline
29352
+ * for a device the panel does not suit, which is why this one does not use it.
29353
+ *
29354
+ * ## Why one addon may implement it
29355
+ *
29356
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29357
+ * itself. Nothing else declares a composite camera, so nothing else has a
29358
+ * layout — and the device-scoped route means the widget asks THE camera, not
29359
+ * "the camera-grid addon", which is what let the old custom-action pair be
29360
+ * reached only by a caller that already knew the addon id.
29361
+ *
29362
+ * ## The tab
29363
+ *
29364
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29365
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29366
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29367
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29368
+ * next to "PTZ").
29369
+ */
29370
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29371
+ var GridNormalizedRectSchema = object({
29372
+ x: number().min(0).max(1),
29373
+ y: number().min(0).max(1),
29374
+ width: number().gt(0).max(1),
29375
+ height: number().gt(0).max(1)
29376
+ });
29377
+ /**
29378
+ * One source camera, the part of its picture taken, and where that part lands.
29379
+ *
29380
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29381
+ * — a profile switch, a firmware update, a substream that comes back different
29382
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29383
+ * which is the class of bug nobody files.
29384
+ */
29385
+ var GridLayoutCellSchema = object({
29386
+ deviceId: number().int().positive(),
29387
+ /** The part of the SOURCE taken, normalized against the source. */
29388
+ source: GridNormalizedRectSchema,
29389
+ /** Where it lands, normalized against the CANVAS. */
29390
+ cell: GridNormalizedRectSchema
29391
+ });
29392
+ /**
29393
+ * Which profiles this grid can actually compose, and why not.
29394
+ *
29395
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29396
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29397
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29398
+ * low" is, and it is the one an operator can act on.
29399
+ */
29400
+ var GridProfileOfferSchema = object({
29401
+ profile: _enum([
29402
+ "high",
29403
+ "mid",
29404
+ "low"
29405
+ ]),
29406
+ offered: boolean(),
29407
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29408
+ missingSources: array(number().int().positive())
29409
+ });
29410
+ var GridLayoutViewSchema = object({
29411
+ /** The persisted grid row this camera was declared from. */
29412
+ instanceId: string(),
29413
+ deviceId: number().int().nonnegative(),
29414
+ name: string(),
29415
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29416
+ width: number().int(),
29417
+ height: number().int(),
29418
+ fps: number().int(),
29419
+ cells: array(GridLayoutCellSchema),
29420
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29421
+ profiles: array(GridProfileOfferSchema)
29422
+ });
29423
+ var GridLayoutPatchSchema = object({
29424
+ deviceId: number().int().nonnegative(),
29425
+ name: string().min(1).max(160).optional(),
29426
+ width: number().int().min(160).max(7680).optional(),
29427
+ height: number().int().min(120).max(4320).optional(),
29428
+ fps: number().int().min(1).max(60).optional(),
29429
+ /**
29430
+ * The whole cell list at once. A per-cell patch would need an ordering the
29431
+ * editor does not have, and a half-applied layout is a picture nobody asked
29432
+ * for.
29433
+ */
29434
+ cells: array(GridLayoutCellSchema).max(16)
29435
+ });
29436
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29437
+ kind: "mutation",
29438
+ auth: "admin"
29439
+ });
29440
+ /**
29311
29441
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29312
29442
  * on-camera motion-detection mask is a single `grid` region (a row-major
29313
29443
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37648,6 +37778,18 @@ Object.freeze({
37648
37778
  addonId: null,
37649
37779
  access: "view"
37650
37780
  },
37781
+ "cameraGridLayout.getLayout": {
37782
+ capName: "camera-grid-layout",
37783
+ capScope: "device",
37784
+ addonId: null,
37785
+ access: "view"
37786
+ },
37787
+ "cameraGridLayout.saveLayout": {
37788
+ capName: "camera-grid-layout",
37789
+ capScope: "device",
37790
+ addonId: null,
37791
+ access: "create"
37792
+ },
37651
37793
  "cameraStreams.getBrokerStreams": {
37652
37794
  capName: "camera-streams",
37653
37795
  capScope: "device",
@@ -43347,6 +43489,21 @@ Object.freeze({
43347
43489
  form: "single",
43348
43490
  optional: false
43349
43491
  }],
43492
+ "cameraGridLayout.getLayout": [{
43493
+ name: "deviceId",
43494
+ form: "single",
43495
+ optional: false
43496
+ }],
43497
+ "cameraGridLayout.saveLayout": [{
43498
+ name: "cells",
43499
+ form: "object-array",
43500
+ optional: false,
43501
+ itemField: "deviceId"
43502
+ }, {
43503
+ name: "deviceId",
43504
+ form: "single",
43505
+ optional: false
43506
+ }],
43350
43507
  "cameraStreams.getBrokerStreams": [{
43351
43508
  name: "deviceId",
43352
43509
  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.123",
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",