@camstack/addon-provider-reolink 1.2.141 → 1.2.143

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
@@ -5386,7 +5386,7 @@ var ZodIssueCode = {
5386
5386
  var ZodFirstPartyTypeKind;
5387
5387
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5388
5388
  //#endregion
5389
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5389
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5390
5390
  /**
5391
5391
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5392
5392
  * window to float samples (D455).
@@ -12454,6 +12454,24 @@ var GetStreamWithCodecInputSchema = object({
12454
12454
  });
12455
12455
  var RtpSourceSchema = object({
12456
12456
  url: string(),
12457
+ /**
12458
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12459
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12460
+ *
12461
+ * The broker answers it because the broker is the only thing that can:
12462
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12463
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12464
+ * cap bindings would be a second authority, and two authorities on the same
12465
+ * question is how a composite camera ends up dialling a sleeping camera
12466
+ * because its own copy of the rule was a release behind.
12467
+ *
12468
+ * `null` is a real answer and is never a live url in disguise: a consumer
12469
+ * that silently fell back to {@link url} would perform exactly the wake this
12470
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12471
+ * transcode hands back an egress the broker is feeding itself, which has no
12472
+ * sentry counterpart.
12473
+ */
12474
+ sentryUrl: string().nullable().optional(),
12457
12475
  videoCodec: _enum(["H264", "H265"]),
12458
12476
  audioCodec: string(),
12459
12477
  resolution: object({
@@ -29619,6 +29637,118 @@ var motionTriggerCapability = {
29619
29637
  durability: "session"
29620
29638
  };
29621
29639
  /**
29640
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29641
+ * page.
29642
+ *
29643
+ * ## Why this is a capability and not an addon settings schema
29644
+ *
29645
+ * It was one, and it did not render. The addon declared the editor as a
29646
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29647
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29648
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29649
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29650
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29651
+ * not on it "falls off silently".
29652
+ *
29653
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29654
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29655
+ * beside PTZ and motion zones on the camera itself. The device page is
29656
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29657
+ * and this cap carries its section the way `recording` does, by RETURNING it
29658
+ * from `getDeviceSettingsContribution`.
29659
+ *
29660
+ * Seven other widgets are still declared the other way, through a
29661
+ * `deviceConfig.ui` block the framework derives a section from. That route
29662
+ * gives the addon no say in where its own panel lands and no way to decline
29663
+ * for a device the panel does not suit, which is why this one does not use it.
29664
+ *
29665
+ * ## Why one addon may implement it
29666
+ *
29667
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29668
+ * itself. Nothing else declares a composite camera, so nothing else has a
29669
+ * layout — and the device-scoped route means the widget asks THE camera, not
29670
+ * "the camera-grid addon", which is what let the old custom-action pair be
29671
+ * reached only by a caller that already knew the addon id.
29672
+ *
29673
+ * ## The tab
29674
+ *
29675
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29676
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29677
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29678
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29679
+ * next to "PTZ").
29680
+ */
29681
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29682
+ var GridNormalizedRectSchema = object({
29683
+ x: number().min(0).max(1),
29684
+ y: number().min(0).max(1),
29685
+ width: number().gt(0).max(1),
29686
+ height: number().gt(0).max(1)
29687
+ });
29688
+ /**
29689
+ * One source camera, the part of its picture taken, and where that part lands.
29690
+ *
29691
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29692
+ * — a profile switch, a firmware update, a substream that comes back different
29693
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29694
+ * which is the class of bug nobody files.
29695
+ */
29696
+ var GridLayoutCellSchema = object({
29697
+ deviceId: number().int().positive(),
29698
+ /** The part of the SOURCE taken, normalized against the source. */
29699
+ source: GridNormalizedRectSchema,
29700
+ /** Where it lands, normalized against the CANVAS. */
29701
+ cell: GridNormalizedRectSchema
29702
+ });
29703
+ /**
29704
+ * Which profiles this grid can actually compose, and why not.
29705
+ *
29706
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29707
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29708
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29709
+ * low" is, and it is the one an operator can act on.
29710
+ */
29711
+ var GridProfileOfferSchema = object({
29712
+ profile: _enum([
29713
+ "high",
29714
+ "mid",
29715
+ "low"
29716
+ ]),
29717
+ offered: boolean(),
29718
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29719
+ missingSources: array(number().int().positive())
29720
+ });
29721
+ var GridLayoutViewSchema = object({
29722
+ /** The persisted grid row this camera was declared from. */
29723
+ instanceId: string(),
29724
+ deviceId: number().int().nonnegative(),
29725
+ name: string(),
29726
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29727
+ width: number().int(),
29728
+ height: number().int(),
29729
+ fps: number().int(),
29730
+ cells: array(GridLayoutCellSchema),
29731
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29732
+ profiles: array(GridProfileOfferSchema)
29733
+ });
29734
+ var GridLayoutPatchSchema = object({
29735
+ deviceId: number().int().nonnegative(),
29736
+ name: string().min(1).max(160).optional(),
29737
+ width: number().int().min(160).max(7680).optional(),
29738
+ height: number().int().min(120).max(4320).optional(),
29739
+ fps: number().int().min(1).max(60).optional(),
29740
+ /**
29741
+ * The whole cell list at once. A per-cell patch would need an ordering the
29742
+ * editor does not have, and a half-applied layout is a picture nobody asked
29743
+ * for.
29744
+ */
29745
+ cells: array(GridLayoutCellSchema).max(16)
29746
+ });
29747
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29748
+ kind: "mutation",
29749
+ auth: "admin"
29750
+ });
29751
+ /**
29622
29752
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29623
29753
  * on-camera motion-detection mask is a single `grid` region (a row-major
29624
29754
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37878,6 +38008,18 @@ Object.freeze({
37878
38008
  addonId: null,
37879
38009
  access: "view"
37880
38010
  },
38011
+ "cameraGridLayout.getLayout": {
38012
+ capName: "camera-grid-layout",
38013
+ capScope: "device",
38014
+ addonId: null,
38015
+ access: "view"
38016
+ },
38017
+ "cameraGridLayout.saveLayout": {
38018
+ capName: "camera-grid-layout",
38019
+ capScope: "device",
38020
+ addonId: null,
38021
+ access: "create"
38022
+ },
37881
38023
  "cameraStreams.getBrokerStreams": {
37882
38024
  capName: "camera-streams",
37883
38025
  capScope: "device",
@@ -43577,6 +43719,21 @@ Object.freeze({
43577
43719
  form: "single",
43578
43720
  optional: false
43579
43721
  }],
43722
+ "cameraGridLayout.getLayout": [{
43723
+ name: "deviceId",
43724
+ form: "single",
43725
+ optional: false
43726
+ }],
43727
+ "cameraGridLayout.saveLayout": [{
43728
+ name: "cells",
43729
+ form: "object-array",
43730
+ optional: false,
43731
+ itemField: "deviceId"
43732
+ }, {
43733
+ name: "deviceId",
43734
+ form: "single",
43735
+ optional: false
43736
+ }],
43580
43737
  "cameraStreams.getBrokerStreams": [{
43581
43738
  name: "deviceId",
43582
43739
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5381,7 +5381,7 @@ var ZodIssueCode = {
5381
5381
  var ZodFirstPartyTypeKind;
5382
5382
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5383
5383
  //#endregion
5384
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5384
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5385
5385
  /**
5386
5386
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5387
5387
  * window to float samples (D455).
@@ -12449,6 +12449,24 @@ var GetStreamWithCodecInputSchema = object({
12449
12449
  });
12450
12450
  var RtpSourceSchema = object({
12451
12451
  url: string(),
12452
+ /**
12453
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12454
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12455
+ *
12456
+ * The broker answers it because the broker is the only thing that can:
12457
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12458
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12459
+ * cap bindings would be a second authority, and two authorities on the same
12460
+ * question is how a composite camera ends up dialling a sleeping camera
12461
+ * because its own copy of the rule was a release behind.
12462
+ *
12463
+ * `null` is a real answer and is never a live url in disguise: a consumer
12464
+ * that silently fell back to {@link url} would perform exactly the wake this
12465
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12466
+ * transcode hands back an egress the broker is feeding itself, which has no
12467
+ * sentry counterpart.
12468
+ */
12469
+ sentryUrl: string().nullable().optional(),
12452
12470
  videoCodec: _enum(["H264", "H265"]),
12453
12471
  audioCodec: string(),
12454
12472
  resolution: object({
@@ -29614,6 +29632,118 @@ var motionTriggerCapability = {
29614
29632
  durability: "session"
29615
29633
  };
29616
29634
  /**
29635
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29636
+ * page.
29637
+ *
29638
+ * ## Why this is a capability and not an addon settings schema
29639
+ *
29640
+ * It was one, and it did not render. The addon declared the editor as a
29641
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29642
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29643
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29644
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29645
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29646
+ * not on it "falls off silently".
29647
+ *
29648
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29649
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29650
+ * beside PTZ and motion zones on the camera itself. The device page is
29651
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29652
+ * and this cap carries its section the way `recording` does, by RETURNING it
29653
+ * from `getDeviceSettingsContribution`.
29654
+ *
29655
+ * Seven other widgets are still declared the other way, through a
29656
+ * `deviceConfig.ui` block the framework derives a section from. That route
29657
+ * gives the addon no say in where its own panel lands and no way to decline
29658
+ * for a device the panel does not suit, which is why this one does not use it.
29659
+ *
29660
+ * ## Why one addon may implement it
29661
+ *
29662
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29663
+ * itself. Nothing else declares a composite camera, so nothing else has a
29664
+ * layout — and the device-scoped route means the widget asks THE camera, not
29665
+ * "the camera-grid addon", which is what let the old custom-action pair be
29666
+ * reached only by a caller that already knew the addon id.
29667
+ *
29668
+ * ## The tab
29669
+ *
29670
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29671
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29672
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29673
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29674
+ * next to "PTZ").
29675
+ */
29676
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29677
+ var GridNormalizedRectSchema = object({
29678
+ x: number().min(0).max(1),
29679
+ y: number().min(0).max(1),
29680
+ width: number().gt(0).max(1),
29681
+ height: number().gt(0).max(1)
29682
+ });
29683
+ /**
29684
+ * One source camera, the part of its picture taken, and where that part lands.
29685
+ *
29686
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29687
+ * — a profile switch, a firmware update, a substream that comes back different
29688
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29689
+ * which is the class of bug nobody files.
29690
+ */
29691
+ var GridLayoutCellSchema = object({
29692
+ deviceId: number().int().positive(),
29693
+ /** The part of the SOURCE taken, normalized against the source. */
29694
+ source: GridNormalizedRectSchema,
29695
+ /** Where it lands, normalized against the CANVAS. */
29696
+ cell: GridNormalizedRectSchema
29697
+ });
29698
+ /**
29699
+ * Which profiles this grid can actually compose, and why not.
29700
+ *
29701
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29702
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29703
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29704
+ * low" is, and it is the one an operator can act on.
29705
+ */
29706
+ var GridProfileOfferSchema = object({
29707
+ profile: _enum([
29708
+ "high",
29709
+ "mid",
29710
+ "low"
29711
+ ]),
29712
+ offered: boolean(),
29713
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29714
+ missingSources: array(number().int().positive())
29715
+ });
29716
+ var GridLayoutViewSchema = object({
29717
+ /** The persisted grid row this camera was declared from. */
29718
+ instanceId: string(),
29719
+ deviceId: number().int().nonnegative(),
29720
+ name: string(),
29721
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29722
+ width: number().int(),
29723
+ height: number().int(),
29724
+ fps: number().int(),
29725
+ cells: array(GridLayoutCellSchema),
29726
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29727
+ profiles: array(GridProfileOfferSchema)
29728
+ });
29729
+ var GridLayoutPatchSchema = object({
29730
+ deviceId: number().int().nonnegative(),
29731
+ name: string().min(1).max(160).optional(),
29732
+ width: number().int().min(160).max(7680).optional(),
29733
+ height: number().int().min(120).max(4320).optional(),
29734
+ fps: number().int().min(1).max(60).optional(),
29735
+ /**
29736
+ * The whole cell list at once. A per-cell patch would need an ordering the
29737
+ * editor does not have, and a half-applied layout is a picture nobody asked
29738
+ * for.
29739
+ */
29740
+ cells: array(GridLayoutCellSchema).max(16)
29741
+ });
29742
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29743
+ kind: "mutation",
29744
+ auth: "admin"
29745
+ });
29746
+ /**
29617
29747
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29618
29748
  * on-camera motion-detection mask is a single `grid` region (a row-major
29619
29749
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37873,6 +38003,18 @@ Object.freeze({
37873
38003
  addonId: null,
37874
38004
  access: "view"
37875
38005
  },
38006
+ "cameraGridLayout.getLayout": {
38007
+ capName: "camera-grid-layout",
38008
+ capScope: "device",
38009
+ addonId: null,
38010
+ access: "view"
38011
+ },
38012
+ "cameraGridLayout.saveLayout": {
38013
+ capName: "camera-grid-layout",
38014
+ capScope: "device",
38015
+ addonId: null,
38016
+ access: "create"
38017
+ },
37876
38018
  "cameraStreams.getBrokerStreams": {
37877
38019
  capName: "camera-streams",
37878
38020
  capScope: "device",
@@ -43572,6 +43714,21 @@ Object.freeze({
43572
43714
  form: "single",
43573
43715
  optional: false
43574
43716
  }],
43717
+ "cameraGridLayout.getLayout": [{
43718
+ name: "deviceId",
43719
+ form: "single",
43720
+ optional: false
43721
+ }],
43722
+ "cameraGridLayout.saveLayout": [{
43723
+ name: "cells",
43724
+ form: "object-array",
43725
+ optional: false,
43726
+ itemField: "deviceId"
43727
+ }, {
43728
+ name: "deviceId",
43729
+ form: "single",
43730
+ optional: false
43731
+ }],
43575
43732
  "cameraStreams.getBrokerStreams": [{
43576
43733
  name: "deviceId",
43577
43734
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.141",
3
+ "version": "1.2.143",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",