@camstack/addon-provider-dreame 0.2.114 → 0.2.116

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-GU_us3DG.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,118 @@ 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. The device page is
81727
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
81728
+ * and this cap carries its section the way `recording` does, by RETURNING it
81729
+ * from `getDeviceSettingsContribution`.
81730
+ *
81731
+ * Seven other widgets are still declared the other way, through a
81732
+ * `deviceConfig.ui` block the framework derives a section from. That route
81733
+ * gives the addon no say in where its own panel lands and no way to decline
81734
+ * for a device the panel does not suit, which is why this one does not use it.
81735
+ *
81736
+ * ## Why one addon may implement it
81737
+ *
81738
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
81739
+ * itself. Nothing else declares a composite camera, so nothing else has a
81740
+ * layout — and the device-scoped route means the widget asks THE camera, not
81741
+ * "the camera-grid addon", which is what let the old custom-action pair be
81742
+ * reached only by a caller that already knew the addon id.
81743
+ *
81744
+ * ## The tab
81745
+ *
81746
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
81747
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
81748
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
81749
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
81750
+ * next to "PTZ").
81751
+ */
81752
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
81753
+ var GridNormalizedRectSchema = object({
81754
+ x: number().min(0).max(1),
81755
+ y: number().min(0).max(1),
81756
+ width: number().gt(0).max(1),
81757
+ height: number().gt(0).max(1)
81758
+ });
81759
+ /**
81760
+ * One source camera, the part of its picture taken, and where that part lands.
81761
+ *
81762
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
81763
+ * — a profile switch, a firmware update, a substream that comes back different
81764
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
81765
+ * which is the class of bug nobody files.
81766
+ */
81767
+ var GridLayoutCellSchema = object({
81768
+ deviceId: number().int().positive(),
81769
+ /** The part of the SOURCE taken, normalized against the source. */
81770
+ source: GridNormalizedRectSchema,
81771
+ /** Where it lands, normalized against the CANVAS. */
81772
+ cell: GridNormalizedRectSchema
81773
+ });
81774
+ /**
81775
+ * Which profiles this grid can actually compose, and why not.
81776
+ *
81777
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
81778
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
81779
+ * the sources, because "this grid has no low" is not a finding — "615 has no
81780
+ * low" is, and it is the one an operator can act on.
81781
+ */
81782
+ var GridProfileOfferSchema = object({
81783
+ profile: _enum([
81784
+ "high",
81785
+ "mid",
81786
+ "low"
81787
+ ]),
81788
+ offered: boolean(),
81789
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
81790
+ missingSources: array(number().int().positive())
81791
+ });
81792
+ var GridLayoutViewSchema = object({
81793
+ /** The persisted grid row this camera was declared from. */
81794
+ instanceId: string(),
81795
+ deviceId: number().int().nonnegative(),
81796
+ name: string(),
81797
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
81798
+ width: number().int(),
81799
+ height: number().int(),
81800
+ fps: number().int(),
81801
+ cells: array(GridLayoutCellSchema),
81802
+ /** What the catalog will publish, and what it refuses to. Read-only. */
81803
+ profiles: array(GridProfileOfferSchema)
81804
+ });
81805
+ var GridLayoutPatchSchema = object({
81806
+ deviceId: number().int().nonnegative(),
81807
+ name: string().min(1).max(160).optional(),
81808
+ width: number().int().min(160).max(7680).optional(),
81809
+ height: number().int().min(120).max(4320).optional(),
81810
+ fps: number().int().min(1).max(60).optional(),
81811
+ /**
81812
+ * The whole cell list at once. A per-cell patch would need an ordering the
81813
+ * editor does not have, and a half-applied layout is a picture nobody asked
81814
+ * for.
81815
+ */
81816
+ cells: array(GridLayoutCellSchema).max(16)
81817
+ });
81818
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
81819
+ kind: "mutation",
81820
+ auth: "admin"
81821
+ });
81822
+ /**
81693
81823
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
81694
81824
  * on-camera motion-detection mask is a single `grid` region (a row-major
81695
81825
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -89564,6 +89694,18 @@ Object.freeze({
89564
89694
  addonId: null,
89565
89695
  access: "view"
89566
89696
  },
89697
+ "cameraGridLayout.getLayout": {
89698
+ capName: "camera-grid-layout",
89699
+ capScope: "device",
89700
+ addonId: null,
89701
+ access: "view"
89702
+ },
89703
+ "cameraGridLayout.saveLayout": {
89704
+ capName: "camera-grid-layout",
89705
+ capScope: "device",
89706
+ addonId: null,
89707
+ access: "create"
89708
+ },
89567
89709
  "cameraStreams.getBrokerStreams": {
89568
89710
  capName: "camera-streams",
89569
89711
  capScope: "device",
@@ -95263,6 +95405,21 @@ Object.freeze({
95263
95405
  form: "single",
95264
95406
  optional: false
95265
95407
  }],
95408
+ "cameraGridLayout.getLayout": [{
95409
+ name: "deviceId",
95410
+ form: "single",
95411
+ optional: false
95412
+ }],
95413
+ "cameraGridLayout.saveLayout": [{
95414
+ name: "cells",
95415
+ form: "object-array",
95416
+ optional: false,
95417
+ itemField: "deviceId"
95418
+ }, {
95419
+ name: "deviceId",
95420
+ form: "single",
95421
+ optional: false
95422
+ }],
95266
95423
  "cameraStreams.getBrokerStreams": [{
95267
95424
  name: "deviceId",
95268
95425
  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-GU_us3DG.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,118 @@ 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. The device page is
81724
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
81725
+ * and this cap carries its section the way `recording` does, by RETURNING it
81726
+ * from `getDeviceSettingsContribution`.
81727
+ *
81728
+ * Seven other widgets are still declared the other way, through a
81729
+ * `deviceConfig.ui` block the framework derives a section from. That route
81730
+ * gives the addon no say in where its own panel lands and no way to decline
81731
+ * for a device the panel does not suit, which is why this one does not use it.
81732
+ *
81733
+ * ## Why one addon may implement it
81734
+ *
81735
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
81736
+ * itself. Nothing else declares a composite camera, so nothing else has a
81737
+ * layout — and the device-scoped route means the widget asks THE camera, not
81738
+ * "the camera-grid addon", which is what let the old custom-action pair be
81739
+ * reached only by a caller that already knew the addon id.
81740
+ *
81741
+ * ## The tab
81742
+ *
81743
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
81744
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
81745
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
81746
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
81747
+ * next to "PTZ").
81748
+ */
81749
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
81750
+ var GridNormalizedRectSchema = object({
81751
+ x: number().min(0).max(1),
81752
+ y: number().min(0).max(1),
81753
+ width: number().gt(0).max(1),
81754
+ height: number().gt(0).max(1)
81755
+ });
81756
+ /**
81757
+ * One source camera, the part of its picture taken, and where that part lands.
81758
+ *
81759
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
81760
+ * — a profile switch, a firmware update, a substream that comes back different
81761
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
81762
+ * which is the class of bug nobody files.
81763
+ */
81764
+ var GridLayoutCellSchema = object({
81765
+ deviceId: number().int().positive(),
81766
+ /** The part of the SOURCE taken, normalized against the source. */
81767
+ source: GridNormalizedRectSchema,
81768
+ /** Where it lands, normalized against the CANVAS. */
81769
+ cell: GridNormalizedRectSchema
81770
+ });
81771
+ /**
81772
+ * Which profiles this grid can actually compose, and why not.
81773
+ *
81774
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
81775
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
81776
+ * the sources, because "this grid has no low" is not a finding — "615 has no
81777
+ * low" is, and it is the one an operator can act on.
81778
+ */
81779
+ var GridProfileOfferSchema = object({
81780
+ profile: _enum([
81781
+ "high",
81782
+ "mid",
81783
+ "low"
81784
+ ]),
81785
+ offered: boolean(),
81786
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
81787
+ missingSources: array(number().int().positive())
81788
+ });
81789
+ var GridLayoutViewSchema = object({
81790
+ /** The persisted grid row this camera was declared from. */
81791
+ instanceId: string(),
81792
+ deviceId: number().int().nonnegative(),
81793
+ name: string(),
81794
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
81795
+ width: number().int(),
81796
+ height: number().int(),
81797
+ fps: number().int(),
81798
+ cells: array(GridLayoutCellSchema),
81799
+ /** What the catalog will publish, and what it refuses to. Read-only. */
81800
+ profiles: array(GridProfileOfferSchema)
81801
+ });
81802
+ var GridLayoutPatchSchema = object({
81803
+ deviceId: number().int().nonnegative(),
81804
+ name: string().min(1).max(160).optional(),
81805
+ width: number().int().min(160).max(7680).optional(),
81806
+ height: number().int().min(120).max(4320).optional(),
81807
+ fps: number().int().min(1).max(60).optional(),
81808
+ /**
81809
+ * The whole cell list at once. A per-cell patch would need an ordering the
81810
+ * editor does not have, and a half-applied layout is a picture nobody asked
81811
+ * for.
81812
+ */
81813
+ cells: array(GridLayoutCellSchema).max(16)
81814
+ });
81815
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
81816
+ kind: "mutation",
81817
+ auth: "admin"
81818
+ });
81819
+ /**
81690
81820
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
81691
81821
  * on-camera motion-detection mask is a single `grid` region (a row-major
81692
81822
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -89561,6 +89691,18 @@ Object.freeze({
89561
89691
  addonId: null,
89562
89692
  access: "view"
89563
89693
  },
89694
+ "cameraGridLayout.getLayout": {
89695
+ capName: "camera-grid-layout",
89696
+ capScope: "device",
89697
+ addonId: null,
89698
+ access: "view"
89699
+ },
89700
+ "cameraGridLayout.saveLayout": {
89701
+ capName: "camera-grid-layout",
89702
+ capScope: "device",
89703
+ addonId: null,
89704
+ access: "create"
89705
+ },
89564
89706
  "cameraStreams.getBrokerStreams": {
89565
89707
  capName: "camera-streams",
89566
89708
  capScope: "device",
@@ -95260,6 +95402,21 @@ Object.freeze({
95260
95402
  form: "single",
95261
95403
  optional: false
95262
95404
  }],
95405
+ "cameraGridLayout.getLayout": [{
95406
+ name: "deviceId",
95407
+ form: "single",
95408
+ optional: false
95409
+ }],
95410
+ "cameraGridLayout.saveLayout": [{
95411
+ name: "cells",
95412
+ form: "object-array",
95413
+ optional: false,
95414
+ itemField: "deviceId"
95415
+ }, {
95416
+ name: "deviceId",
95417
+ form: "single",
95418
+ optional: false
95419
+ }],
95263
95420
  "cameraStreams.getBrokerStreams": [{
95264
95421
  name: "deviceId",
95265
95422
  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.116",
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",