@camstack/addon-provider-dreo 0.2.113 → 0.2.114

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
@@ -5396,7 +5396,7 @@ var ZodIssueCode = {
5396
5396
  var ZodFirstPartyTypeKind;
5397
5397
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5398
5398
  //#endregion
5399
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5399
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5400
5400
  /**
5401
5401
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5402
5402
  * window to float samples (D455).
@@ -11886,6 +11886,24 @@ var GetStreamWithCodecInputSchema = object({
11886
11886
  });
11887
11887
  var RtpSourceSchema = object({
11888
11888
  url: string(),
11889
+ /**
11890
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11891
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11892
+ *
11893
+ * The broker answers it because the broker is the only thing that can:
11894
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11895
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11896
+ * cap bindings would be a second authority, and two authorities on the same
11897
+ * question is how a composite camera ends up dialling a sleeping camera
11898
+ * because its own copy of the rule was a release behind.
11899
+ *
11900
+ * `null` is a real answer and is never a live url in disguise: a consumer
11901
+ * that silently fell back to {@link url} would perform exactly the wake this
11902
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11903
+ * transcode hands back an egress the broker is feeding itself, which has no
11904
+ * sentry counterpart.
11905
+ */
11906
+ sentryUrl: string().nullable().optional(),
11889
11907
  videoCodec: _enum(["H264", "H265"]),
11890
11908
  audioCodec: string(),
11891
11909
  resolution: object({
@@ -28932,6 +28950,114 @@ var motionTriggerCapability = {
28932
28950
  durability: "session"
28933
28951
  };
28934
28952
  /**
28953
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28954
+ * page.
28955
+ *
28956
+ * ## Why this is a capability and not an addon settings schema
28957
+ *
28958
+ * It was one, and it did not render. The addon declared the editor as a
28959
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28960
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28961
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28962
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28963
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
28964
+ * not on it "falls off silently".
28965
+ *
28966
+ * Adding a fifth name to that list would have been the wrong fix twice over:
28967
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
28968
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
28969
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
28970
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
28971
+ * all use it): the framework emits the structural section and the widget
28972
+ * self-persists through the cap's own mutations.
28973
+ *
28974
+ * ## Why one addon may implement it
28975
+ *
28976
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28977
+ * itself. Nothing else declares a composite camera, so nothing else has a
28978
+ * layout — and the device-scoped route means the widget asks THE camera, not
28979
+ * "the camera-grid addon", which is what let the old custom-action pair be
28980
+ * reached only by a caller that already knew the addon id.
28981
+ *
28982
+ * ## The tab
28983
+ *
28984
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28985
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28986
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28987
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28988
+ * next to "PTZ").
28989
+ */
28990
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28991
+ var GridNormalizedRectSchema = object({
28992
+ x: number().min(0).max(1),
28993
+ y: number().min(0).max(1),
28994
+ width: number().gt(0).max(1),
28995
+ height: number().gt(0).max(1)
28996
+ });
28997
+ /**
28998
+ * One source camera, the part of its picture taken, and where that part lands.
28999
+ *
29000
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29001
+ * — a profile switch, a firmware update, a substream that comes back different
29002
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29003
+ * which is the class of bug nobody files.
29004
+ */
29005
+ var GridLayoutCellSchema = object({
29006
+ deviceId: number().int().positive(),
29007
+ /** The part of the SOURCE taken, normalized against the source. */
29008
+ source: GridNormalizedRectSchema,
29009
+ /** Where it lands, normalized against the CANVAS. */
29010
+ cell: GridNormalizedRectSchema
29011
+ });
29012
+ /**
29013
+ * Which profiles this grid can actually compose, and why not.
29014
+ *
29015
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29016
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29017
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29018
+ * low" is, and it is the one an operator can act on.
29019
+ */
29020
+ var GridProfileOfferSchema = object({
29021
+ profile: _enum([
29022
+ "high",
29023
+ "mid",
29024
+ "low"
29025
+ ]),
29026
+ offered: boolean(),
29027
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29028
+ missingSources: array(number().int().positive())
29029
+ });
29030
+ var GridLayoutViewSchema = object({
29031
+ /** The persisted grid row this camera was declared from. */
29032
+ instanceId: string(),
29033
+ deviceId: number().int().nonnegative(),
29034
+ name: string(),
29035
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29036
+ width: number().int(),
29037
+ height: number().int(),
29038
+ fps: number().int(),
29039
+ cells: array(GridLayoutCellSchema),
29040
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29041
+ profiles: array(GridProfileOfferSchema)
29042
+ });
29043
+ var GridLayoutPatchSchema = object({
29044
+ deviceId: number().int().nonnegative(),
29045
+ name: string().min(1).max(160).optional(),
29046
+ width: number().int().min(160).max(7680).optional(),
29047
+ height: number().int().min(120).max(4320).optional(),
29048
+ fps: number().int().min(1).max(60).optional(),
29049
+ /**
29050
+ * The whole cell list at once. A per-cell patch would need an ordering the
29051
+ * editor does not have, and a half-applied layout is a picture nobody asked
29052
+ * for.
29053
+ */
29054
+ cells: array(GridLayoutCellSchema).max(16)
29055
+ });
29056
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29057
+ kind: "mutation",
29058
+ auth: "admin"
29059
+ });
29060
+ /**
28935
29061
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28936
29062
  * on-camera motion-detection mask is a single `grid` region (a row-major
28937
29063
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36658,6 +36784,18 @@ Object.freeze({
36658
36784
  addonId: null,
36659
36785
  access: "view"
36660
36786
  },
36787
+ "cameraGridLayout.getLayout": {
36788
+ capName: "camera-grid-layout",
36789
+ capScope: "device",
36790
+ addonId: null,
36791
+ access: "view"
36792
+ },
36793
+ "cameraGridLayout.saveLayout": {
36794
+ capName: "camera-grid-layout",
36795
+ capScope: "device",
36796
+ addonId: null,
36797
+ access: "create"
36798
+ },
36661
36799
  "cameraStreams.getBrokerStreams": {
36662
36800
  capName: "camera-streams",
36663
36801
  capScope: "device",
@@ -42357,6 +42495,21 @@ Object.freeze({
42357
42495
  form: "single",
42358
42496
  optional: false
42359
42497
  }],
42498
+ "cameraGridLayout.getLayout": [{
42499
+ name: "deviceId",
42500
+ form: "single",
42501
+ optional: false
42502
+ }],
42503
+ "cameraGridLayout.saveLayout": [{
42504
+ name: "cells",
42505
+ form: "object-array",
42506
+ optional: false,
42507
+ itemField: "deviceId"
42508
+ }, {
42509
+ name: "deviceId",
42510
+ form: "single",
42511
+ optional: false
42512
+ }],
42360
42513
  "cameraStreams.getBrokerStreams": [{
42361
42514
  name: "deviceId",
42362
42515
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5397,7 +5397,7 @@ var ZodIssueCode = {
5397
5397
  var ZodFirstPartyTypeKind;
5398
5398
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5399
5399
  //#endregion
5400
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5400
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5401
5401
  /**
5402
5402
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5403
5403
  * window to float samples (D455).
@@ -11887,6 +11887,24 @@ var GetStreamWithCodecInputSchema = object({
11887
11887
  });
11888
11888
  var RtpSourceSchema = object({
11889
11889
  url: string(),
11890
+ /**
11891
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11892
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11893
+ *
11894
+ * The broker answers it because the broker is the only thing that can:
11895
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11896
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11897
+ * cap bindings would be a second authority, and two authorities on the same
11898
+ * question is how a composite camera ends up dialling a sleeping camera
11899
+ * because its own copy of the rule was a release behind.
11900
+ *
11901
+ * `null` is a real answer and is never a live url in disguise: a consumer
11902
+ * that silently fell back to {@link url} would perform exactly the wake this
11903
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11904
+ * transcode hands back an egress the broker is feeding itself, which has no
11905
+ * sentry counterpart.
11906
+ */
11907
+ sentryUrl: string().nullable().optional(),
11890
11908
  videoCodec: _enum(["H264", "H265"]),
11891
11909
  audioCodec: string(),
11892
11910
  resolution: object({
@@ -28933,6 +28951,114 @@ var motionTriggerCapability = {
28933
28951
  durability: "session"
28934
28952
  };
28935
28953
  /**
28954
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28955
+ * page.
28956
+ *
28957
+ * ## Why this is a capability and not an addon settings schema
28958
+ *
28959
+ * It was one, and it did not render. The addon declared the editor as a
28960
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28961
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28962
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28963
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28964
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
28965
+ * not on it "falls off silently".
28966
+ *
28967
+ * Adding a fifth name to that list would have been the wrong fix twice over:
28968
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
28969
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
28970
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
28971
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
28972
+ * all use it): the framework emits the structural section and the widget
28973
+ * self-persists through the cap's own mutations.
28974
+ *
28975
+ * ## Why one addon may implement it
28976
+ *
28977
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28978
+ * itself. Nothing else declares a composite camera, so nothing else has a
28979
+ * layout — and the device-scoped route means the widget asks THE camera, not
28980
+ * "the camera-grid addon", which is what let the old custom-action pair be
28981
+ * reached only by a caller that already knew the addon id.
28982
+ *
28983
+ * ## The tab
28984
+ *
28985
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28986
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28987
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28988
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28989
+ * next to "PTZ").
28990
+ */
28991
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28992
+ var GridNormalizedRectSchema = object({
28993
+ x: number().min(0).max(1),
28994
+ y: number().min(0).max(1),
28995
+ width: number().gt(0).max(1),
28996
+ height: number().gt(0).max(1)
28997
+ });
28998
+ /**
28999
+ * One source camera, the part of its picture taken, and where that part lands.
29000
+ *
29001
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29002
+ * — a profile switch, a firmware update, a substream that comes back different
29003
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29004
+ * which is the class of bug nobody files.
29005
+ */
29006
+ var GridLayoutCellSchema = object({
29007
+ deviceId: number().int().positive(),
29008
+ /** The part of the SOURCE taken, normalized against the source. */
29009
+ source: GridNormalizedRectSchema,
29010
+ /** Where it lands, normalized against the CANVAS. */
29011
+ cell: GridNormalizedRectSchema
29012
+ });
29013
+ /**
29014
+ * Which profiles this grid can actually compose, and why not.
29015
+ *
29016
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29017
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29018
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29019
+ * low" is, and it is the one an operator can act on.
29020
+ */
29021
+ var GridProfileOfferSchema = object({
29022
+ profile: _enum([
29023
+ "high",
29024
+ "mid",
29025
+ "low"
29026
+ ]),
29027
+ offered: boolean(),
29028
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29029
+ missingSources: array(number().int().positive())
29030
+ });
29031
+ var GridLayoutViewSchema = object({
29032
+ /** The persisted grid row this camera was declared from. */
29033
+ instanceId: string(),
29034
+ deviceId: number().int().nonnegative(),
29035
+ name: string(),
29036
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29037
+ width: number().int(),
29038
+ height: number().int(),
29039
+ fps: number().int(),
29040
+ cells: array(GridLayoutCellSchema),
29041
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29042
+ profiles: array(GridProfileOfferSchema)
29043
+ });
29044
+ var GridLayoutPatchSchema = object({
29045
+ deviceId: number().int().nonnegative(),
29046
+ name: string().min(1).max(160).optional(),
29047
+ width: number().int().min(160).max(7680).optional(),
29048
+ height: number().int().min(120).max(4320).optional(),
29049
+ fps: number().int().min(1).max(60).optional(),
29050
+ /**
29051
+ * The whole cell list at once. A per-cell patch would need an ordering the
29052
+ * editor does not have, and a half-applied layout is a picture nobody asked
29053
+ * for.
29054
+ */
29055
+ cells: array(GridLayoutCellSchema).max(16)
29056
+ });
29057
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29058
+ kind: "mutation",
29059
+ auth: "admin"
29060
+ });
29061
+ /**
28936
29062
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28937
29063
  * on-camera motion-detection mask is a single `grid` region (a row-major
28938
29064
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36659,6 +36785,18 @@ Object.freeze({
36659
36785
  addonId: null,
36660
36786
  access: "view"
36661
36787
  },
36788
+ "cameraGridLayout.getLayout": {
36789
+ capName: "camera-grid-layout",
36790
+ capScope: "device",
36791
+ addonId: null,
36792
+ access: "view"
36793
+ },
36794
+ "cameraGridLayout.saveLayout": {
36795
+ capName: "camera-grid-layout",
36796
+ capScope: "device",
36797
+ addonId: null,
36798
+ access: "create"
36799
+ },
36662
36800
  "cameraStreams.getBrokerStreams": {
36663
36801
  capName: "camera-streams",
36664
36802
  capScope: "device",
@@ -42358,6 +42496,21 @@ Object.freeze({
42358
42496
  form: "single",
42359
42497
  optional: false
42360
42498
  }],
42499
+ "cameraGridLayout.getLayout": [{
42500
+ name: "deviceId",
42501
+ form: "single",
42502
+ optional: false
42503
+ }],
42504
+ "cameraGridLayout.saveLayout": [{
42505
+ name: "cells",
42506
+ form: "object-array",
42507
+ optional: false,
42508
+ itemField: "deviceId"
42509
+ }, {
42510
+ name: "deviceId",
42511
+ form: "single",
42512
+ optional: false
42513
+ }],
42361
42514
  "cameraStreams.getBrokerStreams": [{
42362
42515
  name: "deviceId",
42363
42516
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.113",
3
+ "version": "0.2.114",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",