@camstack/addon-provider-dreame 0.2.114 → 0.2.115

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
@@ -58137,7 +58137,7 @@ var ZodIssueCode = {
58137
58137
  var ZodFirstPartyTypeKind;
58138
58138
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
58139
58139
  //#endregion
58140
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
58140
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
58141
58141
  /**
58142
58142
  * The audio chunk plane's byte format, and the ONE expansion from a coded
58143
58143
  * window to float samples (D455).
@@ -64627,6 +64627,24 @@ var GetStreamWithCodecInputSchema = object({
64627
64627
  });
64628
64628
  var RtpSourceSchema = object({
64629
64629
  url: string(),
64630
+ /**
64631
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
64632
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
64633
+ *
64634
+ * The broker answers it because the broker is the only thing that can:
64635
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
64636
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
64637
+ * cap bindings would be a second authority, and two authorities on the same
64638
+ * question is how a composite camera ends up dialling a sleeping camera
64639
+ * because its own copy of the rule was a release behind.
64640
+ *
64641
+ * `null` is a real answer and is never a live url in disguise: a consumer
64642
+ * that silently fell back to {@link url} would perform exactly the wake this
64643
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
64644
+ * transcode hands back an egress the broker is feeding itself, which has no
64645
+ * sentry counterpart.
64646
+ */
64647
+ sentryUrl: string().nullable().optional(),
64630
64648
  videoCodec: _enum(["H264", "H265"]),
64631
64649
  audioCodec: string(),
64632
64650
  resolution: object({
@@ -81690,6 +81708,114 @@ var motionTriggerCapability = {
81690
81708
  durability: "session"
81691
81709
  };
81692
81710
  /**
81711
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
81712
+ * page.
81713
+ *
81714
+ * ## Why this is a capability and not an addon settings schema
81715
+ *
81716
+ * It was one, and it did not render. The addon declared the editor as a
81717
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
81718
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
81719
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
81720
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
81721
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
81722
+ * not on it "falls off silently".
81723
+ *
81724
+ * Adding a fifth name to that list would have been the wrong fix twice over:
81725
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
81726
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
81727
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
81728
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
81729
+ * all use it): the framework emits the structural section and the widget
81730
+ * self-persists through the cap's own mutations.
81731
+ *
81732
+ * ## Why one addon may implement it
81733
+ *
81734
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
81735
+ * itself. Nothing else declares a composite camera, so nothing else has a
81736
+ * layout — and the device-scoped route means the widget asks THE camera, not
81737
+ * "the camera-grid addon", which is what let the old custom-action pair be
81738
+ * reached only by a caller that already knew the addon id.
81739
+ *
81740
+ * ## The tab
81741
+ *
81742
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
81743
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
81744
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
81745
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
81746
+ * next to "PTZ").
81747
+ */
81748
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
81749
+ var GridNormalizedRectSchema = object({
81750
+ x: number().min(0).max(1),
81751
+ y: number().min(0).max(1),
81752
+ width: number().gt(0).max(1),
81753
+ height: number().gt(0).max(1)
81754
+ });
81755
+ /**
81756
+ * One source camera, the part of its picture taken, and where that part lands.
81757
+ *
81758
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
81759
+ * — a profile switch, a firmware update, a substream that comes back different
81760
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
81761
+ * which is the class of bug nobody files.
81762
+ */
81763
+ var GridLayoutCellSchema = object({
81764
+ deviceId: number().int().positive(),
81765
+ /** The part of the SOURCE taken, normalized against the source. */
81766
+ source: GridNormalizedRectSchema,
81767
+ /** Where it lands, normalized against the CANVAS. */
81768
+ cell: GridNormalizedRectSchema
81769
+ });
81770
+ /**
81771
+ * Which profiles this grid can actually compose, and why not.
81772
+ *
81773
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
81774
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
81775
+ * the sources, because "this grid has no low" is not a finding — "615 has no
81776
+ * low" is, and it is the one an operator can act on.
81777
+ */
81778
+ var GridProfileOfferSchema = object({
81779
+ profile: _enum([
81780
+ "high",
81781
+ "mid",
81782
+ "low"
81783
+ ]),
81784
+ offered: boolean(),
81785
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
81786
+ missingSources: array(number().int().positive())
81787
+ });
81788
+ var GridLayoutViewSchema = object({
81789
+ /** The persisted grid row this camera was declared from. */
81790
+ instanceId: string(),
81791
+ deviceId: number().int().nonnegative(),
81792
+ name: string(),
81793
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
81794
+ width: number().int(),
81795
+ height: number().int(),
81796
+ fps: number().int(),
81797
+ cells: array(GridLayoutCellSchema),
81798
+ /** What the catalog will publish, and what it refuses to. Read-only. */
81799
+ profiles: array(GridProfileOfferSchema)
81800
+ });
81801
+ var GridLayoutPatchSchema = object({
81802
+ deviceId: number().int().nonnegative(),
81803
+ name: string().min(1).max(160).optional(),
81804
+ width: number().int().min(160).max(7680).optional(),
81805
+ height: number().int().min(120).max(4320).optional(),
81806
+ fps: number().int().min(1).max(60).optional(),
81807
+ /**
81808
+ * The whole cell list at once. A per-cell patch would need an ordering the
81809
+ * editor does not have, and a half-applied layout is a picture nobody asked
81810
+ * for.
81811
+ */
81812
+ cells: array(GridLayoutCellSchema).max(16)
81813
+ });
81814
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
81815
+ kind: "mutation",
81816
+ auth: "admin"
81817
+ });
81818
+ /**
81693
81819
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
81694
81820
  * on-camera motion-detection mask is a single `grid` region (a row-major
81695
81821
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -89564,6 +89690,18 @@ Object.freeze({
89564
89690
  addonId: null,
89565
89691
  access: "view"
89566
89692
  },
89693
+ "cameraGridLayout.getLayout": {
89694
+ capName: "camera-grid-layout",
89695
+ capScope: "device",
89696
+ addonId: null,
89697
+ access: "view"
89698
+ },
89699
+ "cameraGridLayout.saveLayout": {
89700
+ capName: "camera-grid-layout",
89701
+ capScope: "device",
89702
+ addonId: null,
89703
+ access: "create"
89704
+ },
89567
89705
  "cameraStreams.getBrokerStreams": {
89568
89706
  capName: "camera-streams",
89569
89707
  capScope: "device",
@@ -95263,6 +95401,21 @@ Object.freeze({
95263
95401
  form: "single",
95264
95402
  optional: false
95265
95403
  }],
95404
+ "cameraGridLayout.getLayout": [{
95405
+ name: "deviceId",
95406
+ form: "single",
95407
+ optional: false
95408
+ }],
95409
+ "cameraGridLayout.saveLayout": [{
95410
+ name: "cells",
95411
+ form: "object-array",
95412
+ optional: false,
95413
+ itemField: "deviceId"
95414
+ }, {
95415
+ name: "deviceId",
95416
+ form: "single",
95417
+ optional: false
95418
+ }],
95266
95419
  "cameraStreams.getBrokerStreams": [{
95267
95420
  name: "deviceId",
95268
95421
  form: "single",
package/dist/addon.mjs CHANGED
@@ -58134,7 +58134,7 @@ var ZodIssueCode = {
58134
58134
  var ZodFirstPartyTypeKind;
58135
58135
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
58136
58136
  //#endregion
58137
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
58137
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
58138
58138
  /**
58139
58139
  * The audio chunk plane's byte format, and the ONE expansion from a coded
58140
58140
  * window to float samples (D455).
@@ -64624,6 +64624,24 @@ var GetStreamWithCodecInputSchema = object({
64624
64624
  });
64625
64625
  var RtpSourceSchema = object({
64626
64626
  url: string(),
64627
+ /**
64628
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
64629
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
64630
+ *
64631
+ * The broker answers it because the broker is the only thing that can:
64632
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
64633
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
64634
+ * cap bindings would be a second authority, and two authorities on the same
64635
+ * question is how a composite camera ends up dialling a sleeping camera
64636
+ * because its own copy of the rule was a release behind.
64637
+ *
64638
+ * `null` is a real answer and is never a live url in disguise: a consumer
64639
+ * that silently fell back to {@link url} would perform exactly the wake this
64640
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
64641
+ * transcode hands back an egress the broker is feeding itself, which has no
64642
+ * sentry counterpart.
64643
+ */
64644
+ sentryUrl: string().nullable().optional(),
64627
64645
  videoCodec: _enum(["H264", "H265"]),
64628
64646
  audioCodec: string(),
64629
64647
  resolution: object({
@@ -81687,6 +81705,114 @@ var motionTriggerCapability = {
81687
81705
  durability: "session"
81688
81706
  };
81689
81707
  /**
81708
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
81709
+ * page.
81710
+ *
81711
+ * ## Why this is a capability and not an addon settings schema
81712
+ *
81713
+ * It was one, and it did not render. The addon declared the editor as a
81714
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
81715
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
81716
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
81717
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
81718
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
81719
+ * not on it "falls off silently".
81720
+ *
81721
+ * Adding a fifth name to that list would have been the wrong fix twice over:
81722
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
81723
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
81724
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
81725
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
81726
+ * all use it): the framework emits the structural section and the widget
81727
+ * self-persists through the cap's own mutations.
81728
+ *
81729
+ * ## Why one addon may implement it
81730
+ *
81731
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
81732
+ * itself. Nothing else declares a composite camera, so nothing else has a
81733
+ * layout — and the device-scoped route means the widget asks THE camera, not
81734
+ * "the camera-grid addon", which is what let the old custom-action pair be
81735
+ * reached only by a caller that already knew the addon id.
81736
+ *
81737
+ * ## The tab
81738
+ *
81739
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
81740
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
81741
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
81742
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
81743
+ * next to "PTZ").
81744
+ */
81745
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
81746
+ var GridNormalizedRectSchema = object({
81747
+ x: number().min(0).max(1),
81748
+ y: number().min(0).max(1),
81749
+ width: number().gt(0).max(1),
81750
+ height: number().gt(0).max(1)
81751
+ });
81752
+ /**
81753
+ * One source camera, the part of its picture taken, and where that part lands.
81754
+ *
81755
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
81756
+ * — a profile switch, a firmware update, a substream that comes back different
81757
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
81758
+ * which is the class of bug nobody files.
81759
+ */
81760
+ var GridLayoutCellSchema = object({
81761
+ deviceId: number().int().positive(),
81762
+ /** The part of the SOURCE taken, normalized against the source. */
81763
+ source: GridNormalizedRectSchema,
81764
+ /** Where it lands, normalized against the CANVAS. */
81765
+ cell: GridNormalizedRectSchema
81766
+ });
81767
+ /**
81768
+ * Which profiles this grid can actually compose, and why not.
81769
+ *
81770
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
81771
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
81772
+ * the sources, because "this grid has no low" is not a finding — "615 has no
81773
+ * low" is, and it is the one an operator can act on.
81774
+ */
81775
+ var GridProfileOfferSchema = object({
81776
+ profile: _enum([
81777
+ "high",
81778
+ "mid",
81779
+ "low"
81780
+ ]),
81781
+ offered: boolean(),
81782
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
81783
+ missingSources: array(number().int().positive())
81784
+ });
81785
+ var GridLayoutViewSchema = object({
81786
+ /** The persisted grid row this camera was declared from. */
81787
+ instanceId: string(),
81788
+ deviceId: number().int().nonnegative(),
81789
+ name: string(),
81790
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
81791
+ width: number().int(),
81792
+ height: number().int(),
81793
+ fps: number().int(),
81794
+ cells: array(GridLayoutCellSchema),
81795
+ /** What the catalog will publish, and what it refuses to. Read-only. */
81796
+ profiles: array(GridProfileOfferSchema)
81797
+ });
81798
+ var GridLayoutPatchSchema = object({
81799
+ deviceId: number().int().nonnegative(),
81800
+ name: string().min(1).max(160).optional(),
81801
+ width: number().int().min(160).max(7680).optional(),
81802
+ height: number().int().min(120).max(4320).optional(),
81803
+ fps: number().int().min(1).max(60).optional(),
81804
+ /**
81805
+ * The whole cell list at once. A per-cell patch would need an ordering the
81806
+ * editor does not have, and a half-applied layout is a picture nobody asked
81807
+ * for.
81808
+ */
81809
+ cells: array(GridLayoutCellSchema).max(16)
81810
+ });
81811
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
81812
+ kind: "mutation",
81813
+ auth: "admin"
81814
+ });
81815
+ /**
81690
81816
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
81691
81817
  * on-camera motion-detection mask is a single `grid` region (a row-major
81692
81818
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -89561,6 +89687,18 @@ Object.freeze({
89561
89687
  addonId: null,
89562
89688
  access: "view"
89563
89689
  },
89690
+ "cameraGridLayout.getLayout": {
89691
+ capName: "camera-grid-layout",
89692
+ capScope: "device",
89693
+ addonId: null,
89694
+ access: "view"
89695
+ },
89696
+ "cameraGridLayout.saveLayout": {
89697
+ capName: "camera-grid-layout",
89698
+ capScope: "device",
89699
+ addonId: null,
89700
+ access: "create"
89701
+ },
89564
89702
  "cameraStreams.getBrokerStreams": {
89565
89703
  capName: "camera-streams",
89566
89704
  capScope: "device",
@@ -95260,6 +95398,21 @@ Object.freeze({
95260
95398
  form: "single",
95261
95399
  optional: false
95262
95400
  }],
95401
+ "cameraGridLayout.getLayout": [{
95402
+ name: "deviceId",
95403
+ form: "single",
95404
+ optional: false
95405
+ }],
95406
+ "cameraGridLayout.saveLayout": [{
95407
+ name: "cells",
95408
+ form: "object-array",
95409
+ optional: false,
95410
+ itemField: "deviceId"
95411
+ }, {
95412
+ name: "deviceId",
95413
+ form: "single",
95414
+ optional: false
95415
+ }],
95263
95416
  "cameraStreams.getBrokerStreams": [{
95264
95417
  name: "deviceId",
95265
95418
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreame",
3
- "version": "0.2.114",
3
+ "version": "0.2.115",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",