@camstack/addon-provider-dreo 0.2.113 → 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
@@ -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-GU_us3DG.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,118 @@ 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. The device page is
28969
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
28970
+ * and this cap carries its section the way `recording` does, by RETURNING it
28971
+ * from `getDeviceSettingsContribution`.
28972
+ *
28973
+ * Seven other widgets are still declared the other way, through a
28974
+ * `deviceConfig.ui` block the framework derives a section from. That route
28975
+ * gives the addon no say in where its own panel lands and no way to decline
28976
+ * for a device the panel does not suit, which is why this one does not use it.
28977
+ *
28978
+ * ## Why one addon may implement it
28979
+ *
28980
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28981
+ * itself. Nothing else declares a composite camera, so nothing else has a
28982
+ * layout — and the device-scoped route means the widget asks THE camera, not
28983
+ * "the camera-grid addon", which is what let the old custom-action pair be
28984
+ * reached only by a caller that already knew the addon id.
28985
+ *
28986
+ * ## The tab
28987
+ *
28988
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28989
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28990
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28991
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28992
+ * next to "PTZ").
28993
+ */
28994
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28995
+ var GridNormalizedRectSchema = object({
28996
+ x: number().min(0).max(1),
28997
+ y: number().min(0).max(1),
28998
+ width: number().gt(0).max(1),
28999
+ height: number().gt(0).max(1)
29000
+ });
29001
+ /**
29002
+ * One source camera, the part of its picture taken, and where that part lands.
29003
+ *
29004
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29005
+ * — a profile switch, a firmware update, a substream that comes back different
29006
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29007
+ * which is the class of bug nobody files.
29008
+ */
29009
+ var GridLayoutCellSchema = object({
29010
+ deviceId: number().int().positive(),
29011
+ /** The part of the SOURCE taken, normalized against the source. */
29012
+ source: GridNormalizedRectSchema,
29013
+ /** Where it lands, normalized against the CANVAS. */
29014
+ cell: GridNormalizedRectSchema
29015
+ });
29016
+ /**
29017
+ * Which profiles this grid can actually compose, and why not.
29018
+ *
29019
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29020
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29021
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29022
+ * low" is, and it is the one an operator can act on.
29023
+ */
29024
+ var GridProfileOfferSchema = object({
29025
+ profile: _enum([
29026
+ "high",
29027
+ "mid",
29028
+ "low"
29029
+ ]),
29030
+ offered: boolean(),
29031
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29032
+ missingSources: array(number().int().positive())
29033
+ });
29034
+ var GridLayoutViewSchema = object({
29035
+ /** The persisted grid row this camera was declared from. */
29036
+ instanceId: string(),
29037
+ deviceId: number().int().nonnegative(),
29038
+ name: string(),
29039
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29040
+ width: number().int(),
29041
+ height: number().int(),
29042
+ fps: number().int(),
29043
+ cells: array(GridLayoutCellSchema),
29044
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29045
+ profiles: array(GridProfileOfferSchema)
29046
+ });
29047
+ var GridLayoutPatchSchema = object({
29048
+ deviceId: number().int().nonnegative(),
29049
+ name: string().min(1).max(160).optional(),
29050
+ width: number().int().min(160).max(7680).optional(),
29051
+ height: number().int().min(120).max(4320).optional(),
29052
+ fps: number().int().min(1).max(60).optional(),
29053
+ /**
29054
+ * The whole cell list at once. A per-cell patch would need an ordering the
29055
+ * editor does not have, and a half-applied layout is a picture nobody asked
29056
+ * for.
29057
+ */
29058
+ cells: array(GridLayoutCellSchema).max(16)
29059
+ });
29060
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29061
+ kind: "mutation",
29062
+ auth: "admin"
29063
+ });
29064
+ /**
28935
29065
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28936
29066
  * on-camera motion-detection mask is a single `grid` region (a row-major
28937
29067
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36658,6 +36788,18 @@ Object.freeze({
36658
36788
  addonId: null,
36659
36789
  access: "view"
36660
36790
  },
36791
+ "cameraGridLayout.getLayout": {
36792
+ capName: "camera-grid-layout",
36793
+ capScope: "device",
36794
+ addonId: null,
36795
+ access: "view"
36796
+ },
36797
+ "cameraGridLayout.saveLayout": {
36798
+ capName: "camera-grid-layout",
36799
+ capScope: "device",
36800
+ addonId: null,
36801
+ access: "create"
36802
+ },
36661
36803
  "cameraStreams.getBrokerStreams": {
36662
36804
  capName: "camera-streams",
36663
36805
  capScope: "device",
@@ -42357,6 +42499,21 @@ Object.freeze({
42357
42499
  form: "single",
42358
42500
  optional: false
42359
42501
  }],
42502
+ "cameraGridLayout.getLayout": [{
42503
+ name: "deviceId",
42504
+ form: "single",
42505
+ optional: false
42506
+ }],
42507
+ "cameraGridLayout.saveLayout": [{
42508
+ name: "cells",
42509
+ form: "object-array",
42510
+ optional: false,
42511
+ itemField: "deviceId"
42512
+ }, {
42513
+ name: "deviceId",
42514
+ form: "single",
42515
+ optional: false
42516
+ }],
42360
42517
  "cameraStreams.getBrokerStreams": [{
42361
42518
  name: "deviceId",
42362
42519
  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-GU_us3DG.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,118 @@ 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. The device page is
28970
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
28971
+ * and this cap carries its section the way `recording` does, by RETURNING it
28972
+ * from `getDeviceSettingsContribution`.
28973
+ *
28974
+ * Seven other widgets are still declared the other way, through a
28975
+ * `deviceConfig.ui` block the framework derives a section from. That route
28976
+ * gives the addon no say in where its own panel lands and no way to decline
28977
+ * for a device the panel does not suit, which is why this one does not use it.
28978
+ *
28979
+ * ## Why one addon may implement it
28980
+ *
28981
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28982
+ * itself. Nothing else declares a composite camera, so nothing else has a
28983
+ * layout — and the device-scoped route means the widget asks THE camera, not
28984
+ * "the camera-grid addon", which is what let the old custom-action pair be
28985
+ * reached only by a caller that already knew the addon id.
28986
+ *
28987
+ * ## The tab
28988
+ *
28989
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28990
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28991
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28992
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28993
+ * next to "PTZ").
28994
+ */
28995
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28996
+ var GridNormalizedRectSchema = object({
28997
+ x: number().min(0).max(1),
28998
+ y: number().min(0).max(1),
28999
+ width: number().gt(0).max(1),
29000
+ height: number().gt(0).max(1)
29001
+ });
29002
+ /**
29003
+ * One source camera, the part of its picture taken, and where that part lands.
29004
+ *
29005
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29006
+ * — a profile switch, a firmware update, a substream that comes back different
29007
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29008
+ * which is the class of bug nobody files.
29009
+ */
29010
+ var GridLayoutCellSchema = object({
29011
+ deviceId: number().int().positive(),
29012
+ /** The part of the SOURCE taken, normalized against the source. */
29013
+ source: GridNormalizedRectSchema,
29014
+ /** Where it lands, normalized against the CANVAS. */
29015
+ cell: GridNormalizedRectSchema
29016
+ });
29017
+ /**
29018
+ * Which profiles this grid can actually compose, and why not.
29019
+ *
29020
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29021
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29022
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29023
+ * low" is, and it is the one an operator can act on.
29024
+ */
29025
+ var GridProfileOfferSchema = object({
29026
+ profile: _enum([
29027
+ "high",
29028
+ "mid",
29029
+ "low"
29030
+ ]),
29031
+ offered: boolean(),
29032
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29033
+ missingSources: array(number().int().positive())
29034
+ });
29035
+ var GridLayoutViewSchema = object({
29036
+ /** The persisted grid row this camera was declared from. */
29037
+ instanceId: string(),
29038
+ deviceId: number().int().nonnegative(),
29039
+ name: string(),
29040
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29041
+ width: number().int(),
29042
+ height: number().int(),
29043
+ fps: number().int(),
29044
+ cells: array(GridLayoutCellSchema),
29045
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29046
+ profiles: array(GridProfileOfferSchema)
29047
+ });
29048
+ var GridLayoutPatchSchema = object({
29049
+ deviceId: number().int().nonnegative(),
29050
+ name: string().min(1).max(160).optional(),
29051
+ width: number().int().min(160).max(7680).optional(),
29052
+ height: number().int().min(120).max(4320).optional(),
29053
+ fps: number().int().min(1).max(60).optional(),
29054
+ /**
29055
+ * The whole cell list at once. A per-cell patch would need an ordering the
29056
+ * editor does not have, and a half-applied layout is a picture nobody asked
29057
+ * for.
29058
+ */
29059
+ cells: array(GridLayoutCellSchema).max(16)
29060
+ });
29061
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29062
+ kind: "mutation",
29063
+ auth: "admin"
29064
+ });
29065
+ /**
28936
29066
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28937
29067
  * on-camera motion-detection mask is a single `grid` region (a row-major
28938
29068
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36659,6 +36789,18 @@ Object.freeze({
36659
36789
  addonId: null,
36660
36790
  access: "view"
36661
36791
  },
36792
+ "cameraGridLayout.getLayout": {
36793
+ capName: "camera-grid-layout",
36794
+ capScope: "device",
36795
+ addonId: null,
36796
+ access: "view"
36797
+ },
36798
+ "cameraGridLayout.saveLayout": {
36799
+ capName: "camera-grid-layout",
36800
+ capScope: "device",
36801
+ addonId: null,
36802
+ access: "create"
36803
+ },
36662
36804
  "cameraStreams.getBrokerStreams": {
36663
36805
  capName: "camera-streams",
36664
36806
  capScope: "device",
@@ -42358,6 +42500,21 @@ Object.freeze({
42358
42500
  form: "single",
42359
42501
  optional: false
42360
42502
  }],
42503
+ "cameraGridLayout.getLayout": [{
42504
+ name: "deviceId",
42505
+ form: "single",
42506
+ optional: false
42507
+ }],
42508
+ "cameraGridLayout.saveLayout": [{
42509
+ name: "cells",
42510
+ form: "object-array",
42511
+ optional: false,
42512
+ itemField: "deviceId"
42513
+ }, {
42514
+ name: "deviceId",
42515
+ form: "single",
42516
+ optional: false
42517
+ }],
42361
42518
  "cameraStreams.getBrokerStreams": [{
42362
42519
  name: "deviceId",
42363
42520
  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.115",
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",