@camstack/addon-provider-reolink 1.2.141 → 1.2.142

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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29656
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29657
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29658
+ * all use it): the framework emits the structural section and the widget
29659
+ * self-persists through the cap's own mutations.
29660
+ *
29661
+ * ## Why one addon may implement it
29662
+ *
29663
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29664
+ * itself. Nothing else declares a composite camera, so nothing else has a
29665
+ * layout — and the device-scoped route means the widget asks THE camera, not
29666
+ * "the camera-grid addon", which is what let the old custom-action pair be
29667
+ * reached only by a caller that already knew the addon id.
29668
+ *
29669
+ * ## The tab
29670
+ *
29671
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29672
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29673
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29674
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29675
+ * next to "PTZ").
29676
+ */
29677
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29678
+ var GridNormalizedRectSchema = object({
29679
+ x: number().min(0).max(1),
29680
+ y: number().min(0).max(1),
29681
+ width: number().gt(0).max(1),
29682
+ height: number().gt(0).max(1)
29683
+ });
29684
+ /**
29685
+ * One source camera, the part of its picture taken, and where that part lands.
29686
+ *
29687
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29688
+ * — a profile switch, a firmware update, a substream that comes back different
29689
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29690
+ * which is the class of bug nobody files.
29691
+ */
29692
+ var GridLayoutCellSchema = object({
29693
+ deviceId: number().int().positive(),
29694
+ /** The part of the SOURCE taken, normalized against the source. */
29695
+ source: GridNormalizedRectSchema,
29696
+ /** Where it lands, normalized against the CANVAS. */
29697
+ cell: GridNormalizedRectSchema
29698
+ });
29699
+ /**
29700
+ * Which profiles this grid can actually compose, and why not.
29701
+ *
29702
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29703
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29704
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29705
+ * low" is, and it is the one an operator can act on.
29706
+ */
29707
+ var GridProfileOfferSchema = object({
29708
+ profile: _enum([
29709
+ "high",
29710
+ "mid",
29711
+ "low"
29712
+ ]),
29713
+ offered: boolean(),
29714
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29715
+ missingSources: array(number().int().positive())
29716
+ });
29717
+ var GridLayoutViewSchema = object({
29718
+ /** The persisted grid row this camera was declared from. */
29719
+ instanceId: string(),
29720
+ deviceId: number().int().nonnegative(),
29721
+ name: string(),
29722
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29723
+ width: number().int(),
29724
+ height: number().int(),
29725
+ fps: number().int(),
29726
+ cells: array(GridLayoutCellSchema),
29727
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29728
+ profiles: array(GridProfileOfferSchema)
29729
+ });
29730
+ var GridLayoutPatchSchema = object({
29731
+ deviceId: number().int().nonnegative(),
29732
+ name: string().min(1).max(160).optional(),
29733
+ width: number().int().min(160).max(7680).optional(),
29734
+ height: number().int().min(120).max(4320).optional(),
29735
+ fps: number().int().min(1).max(60).optional(),
29736
+ /**
29737
+ * The whole cell list at once. A per-cell patch would need an ordering the
29738
+ * editor does not have, and a half-applied layout is a picture nobody asked
29739
+ * for.
29740
+ */
29741
+ cells: array(GridLayoutCellSchema).max(16)
29742
+ });
29743
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29744
+ kind: "mutation",
29745
+ auth: "admin"
29746
+ });
29747
+ /**
29622
29748
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29623
29749
  * on-camera motion-detection mask is a single `grid` region (a row-major
29624
29750
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37878,6 +38004,18 @@ Object.freeze({
37878
38004
  addonId: null,
37879
38005
  access: "view"
37880
38006
  },
38007
+ "cameraGridLayout.getLayout": {
38008
+ capName: "camera-grid-layout",
38009
+ capScope: "device",
38010
+ addonId: null,
38011
+ access: "view"
38012
+ },
38013
+ "cameraGridLayout.saveLayout": {
38014
+ capName: "camera-grid-layout",
38015
+ capScope: "device",
38016
+ addonId: null,
38017
+ access: "create"
38018
+ },
37881
38019
  "cameraStreams.getBrokerStreams": {
37882
38020
  capName: "camera-streams",
37883
38021
  capScope: "device",
@@ -43577,6 +43715,21 @@ Object.freeze({
43577
43715
  form: "single",
43578
43716
  optional: false
43579
43717
  }],
43718
+ "cameraGridLayout.getLayout": [{
43719
+ name: "deviceId",
43720
+ form: "single",
43721
+ optional: false
43722
+ }],
43723
+ "cameraGridLayout.saveLayout": [{
43724
+ name: "cells",
43725
+ form: "object-array",
43726
+ optional: false,
43727
+ itemField: "deviceId"
43728
+ }, {
43729
+ name: "deviceId",
43730
+ form: "single",
43731
+ optional: false
43732
+ }],
43580
43733
  "cameraStreams.getBrokerStreams": [{
43581
43734
  name: "deviceId",
43582
43735
  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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29651
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29652
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29653
+ * all use it): the framework emits the structural section and the widget
29654
+ * self-persists through the cap's own mutations.
29655
+ *
29656
+ * ## Why one addon may implement it
29657
+ *
29658
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29659
+ * itself. Nothing else declares a composite camera, so nothing else has a
29660
+ * layout — and the device-scoped route means the widget asks THE camera, not
29661
+ * "the camera-grid addon", which is what let the old custom-action pair be
29662
+ * reached only by a caller that already knew the addon id.
29663
+ *
29664
+ * ## The tab
29665
+ *
29666
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29667
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29668
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29669
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29670
+ * next to "PTZ").
29671
+ */
29672
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29673
+ var GridNormalizedRectSchema = object({
29674
+ x: number().min(0).max(1),
29675
+ y: number().min(0).max(1),
29676
+ width: number().gt(0).max(1),
29677
+ height: number().gt(0).max(1)
29678
+ });
29679
+ /**
29680
+ * One source camera, the part of its picture taken, and where that part lands.
29681
+ *
29682
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29683
+ * — a profile switch, a firmware update, a substream that comes back different
29684
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29685
+ * which is the class of bug nobody files.
29686
+ */
29687
+ var GridLayoutCellSchema = object({
29688
+ deviceId: number().int().positive(),
29689
+ /** The part of the SOURCE taken, normalized against the source. */
29690
+ source: GridNormalizedRectSchema,
29691
+ /** Where it lands, normalized against the CANVAS. */
29692
+ cell: GridNormalizedRectSchema
29693
+ });
29694
+ /**
29695
+ * Which profiles this grid can actually compose, and why not.
29696
+ *
29697
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29698
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29699
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29700
+ * low" is, and it is the one an operator can act on.
29701
+ */
29702
+ var GridProfileOfferSchema = object({
29703
+ profile: _enum([
29704
+ "high",
29705
+ "mid",
29706
+ "low"
29707
+ ]),
29708
+ offered: boolean(),
29709
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29710
+ missingSources: array(number().int().positive())
29711
+ });
29712
+ var GridLayoutViewSchema = object({
29713
+ /** The persisted grid row this camera was declared from. */
29714
+ instanceId: string(),
29715
+ deviceId: number().int().nonnegative(),
29716
+ name: string(),
29717
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29718
+ width: number().int(),
29719
+ height: number().int(),
29720
+ fps: number().int(),
29721
+ cells: array(GridLayoutCellSchema),
29722
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29723
+ profiles: array(GridProfileOfferSchema)
29724
+ });
29725
+ var GridLayoutPatchSchema = object({
29726
+ deviceId: number().int().nonnegative(),
29727
+ name: string().min(1).max(160).optional(),
29728
+ width: number().int().min(160).max(7680).optional(),
29729
+ height: number().int().min(120).max(4320).optional(),
29730
+ fps: number().int().min(1).max(60).optional(),
29731
+ /**
29732
+ * The whole cell list at once. A per-cell patch would need an ordering the
29733
+ * editor does not have, and a half-applied layout is a picture nobody asked
29734
+ * for.
29735
+ */
29736
+ cells: array(GridLayoutCellSchema).max(16)
29737
+ });
29738
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29739
+ kind: "mutation",
29740
+ auth: "admin"
29741
+ });
29742
+ /**
29617
29743
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29618
29744
  * on-camera motion-detection mask is a single `grid` region (a row-major
29619
29745
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37873,6 +37999,18 @@ Object.freeze({
37873
37999
  addonId: null,
37874
38000
  access: "view"
37875
38001
  },
38002
+ "cameraGridLayout.getLayout": {
38003
+ capName: "camera-grid-layout",
38004
+ capScope: "device",
38005
+ addonId: null,
38006
+ access: "view"
38007
+ },
38008
+ "cameraGridLayout.saveLayout": {
38009
+ capName: "camera-grid-layout",
38010
+ capScope: "device",
38011
+ addonId: null,
38012
+ access: "create"
38013
+ },
37876
38014
  "cameraStreams.getBrokerStreams": {
37877
38015
  capName: "camera-streams",
37878
38016
  capScope: "device",
@@ -43572,6 +43710,21 @@ Object.freeze({
43572
43710
  form: "single",
43573
43711
  optional: false
43574
43712
  }],
43713
+ "cameraGridLayout.getLayout": [{
43714
+ name: "deviceId",
43715
+ form: "single",
43716
+ optional: false
43717
+ }],
43718
+ "cameraGridLayout.saveLayout": [{
43719
+ name: "cells",
43720
+ form: "object-array",
43721
+ optional: false,
43722
+ itemField: "deviceId"
43723
+ }, {
43724
+ name: "deviceId",
43725
+ form: "single",
43726
+ optional: false
43727
+ }],
43575
43728
  "cameraStreams.getBrokerStreams": [{
43576
43729
  name: "deviceId",
43577
43730
  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.142",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",