@camstack/addon-provider-homematic 1.2.114 → 1.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
@@ -5369,7 +5369,7 @@ var ZodIssueCode = {
5369
5369
  var ZodFirstPartyTypeKind;
5370
5370
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5371
5371
  //#endregion
5372
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5372
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5373
5373
  /**
5374
5374
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5375
5375
  * window to float samples (D455).
@@ -11908,6 +11908,24 @@ var GetStreamWithCodecInputSchema = object({
11908
11908
  });
11909
11909
  var RtpSourceSchema = object({
11910
11910
  url: string(),
11911
+ /**
11912
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11913
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11914
+ *
11915
+ * The broker answers it because the broker is the only thing that can:
11916
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11917
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11918
+ * cap bindings would be a second authority, and two authorities on the same
11919
+ * question is how a composite camera ends up dialling a sleeping camera
11920
+ * because its own copy of the rule was a release behind.
11921
+ *
11922
+ * `null` is a real answer and is never a live url in disguise: a consumer
11923
+ * that silently fell back to {@link url} would perform exactly the wake this
11924
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11925
+ * transcode hands back an egress the broker is feeding itself, which has no
11926
+ * sentry counterpart.
11927
+ */
11928
+ sentryUrl: string().nullable().optional(),
11911
11929
  videoCodec: _enum(["H264", "H265"]),
11912
11930
  audioCodec: string(),
11913
11931
  resolution: object({
@@ -28946,6 +28964,114 @@ var motionTriggerCapability = {
28946
28964
  durability: "session"
28947
28965
  };
28948
28966
  /**
28967
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28968
+ * page.
28969
+ *
28970
+ * ## Why this is a capability and not an addon settings schema
28971
+ *
28972
+ * It was one, and it did not render. The addon declared the editor as a
28973
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28974
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28975
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28976
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28977
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
28978
+ * not on it "falls off silently".
28979
+ *
28980
+ * Adding a fifth name to that list would have been the wrong fix twice over:
28981
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
28982
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
28983
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
28984
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
28985
+ * all use it): the framework emits the structural section and the widget
28986
+ * self-persists through the cap's own mutations.
28987
+ *
28988
+ * ## Why one addon may implement it
28989
+ *
28990
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28991
+ * itself. Nothing else declares a composite camera, so nothing else has a
28992
+ * layout — and the device-scoped route means the widget asks THE camera, not
28993
+ * "the camera-grid addon", which is what let the old custom-action pair be
28994
+ * reached only by a caller that already knew the addon id.
28995
+ *
28996
+ * ## The tab
28997
+ *
28998
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28999
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29000
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29001
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29002
+ * next to "PTZ").
29003
+ */
29004
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29005
+ var GridNormalizedRectSchema = object({
29006
+ x: number().min(0).max(1),
29007
+ y: number().min(0).max(1),
29008
+ width: number().gt(0).max(1),
29009
+ height: number().gt(0).max(1)
29010
+ });
29011
+ /**
29012
+ * One source camera, the part of its picture taken, and where that part lands.
29013
+ *
29014
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29015
+ * — a profile switch, a firmware update, a substream that comes back different
29016
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29017
+ * which is the class of bug nobody files.
29018
+ */
29019
+ var GridLayoutCellSchema = object({
29020
+ deviceId: number().int().positive(),
29021
+ /** The part of the SOURCE taken, normalized against the source. */
29022
+ source: GridNormalizedRectSchema,
29023
+ /** Where it lands, normalized against the CANVAS. */
29024
+ cell: GridNormalizedRectSchema
29025
+ });
29026
+ /**
29027
+ * Which profiles this grid can actually compose, and why not.
29028
+ *
29029
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29030
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29031
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29032
+ * low" is, and it is the one an operator can act on.
29033
+ */
29034
+ var GridProfileOfferSchema = object({
29035
+ profile: _enum([
29036
+ "high",
29037
+ "mid",
29038
+ "low"
29039
+ ]),
29040
+ offered: boolean(),
29041
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29042
+ missingSources: array(number().int().positive())
29043
+ });
29044
+ var GridLayoutViewSchema = object({
29045
+ /** The persisted grid row this camera was declared from. */
29046
+ instanceId: string(),
29047
+ deviceId: number().int().nonnegative(),
29048
+ name: string(),
29049
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29050
+ width: number().int(),
29051
+ height: number().int(),
29052
+ fps: number().int(),
29053
+ cells: array(GridLayoutCellSchema),
29054
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29055
+ profiles: array(GridProfileOfferSchema)
29056
+ });
29057
+ var GridLayoutPatchSchema = object({
29058
+ deviceId: number().int().nonnegative(),
29059
+ name: string().min(1).max(160).optional(),
29060
+ width: number().int().min(160).max(7680).optional(),
29061
+ height: number().int().min(120).max(4320).optional(),
29062
+ fps: number().int().min(1).max(60).optional(),
29063
+ /**
29064
+ * The whole cell list at once. A per-cell patch would need an ordering the
29065
+ * editor does not have, and a half-applied layout is a picture nobody asked
29066
+ * for.
29067
+ */
29068
+ cells: array(GridLayoutCellSchema).max(16)
29069
+ });
29070
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29071
+ kind: "mutation",
29072
+ auth: "admin"
29073
+ });
29074
+ /**
28949
29075
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28950
29076
  * on-camera motion-detection mask is a single `grid` region (a row-major
28951
29077
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36672,6 +36798,18 @@ Object.freeze({
36672
36798
  addonId: null,
36673
36799
  access: "view"
36674
36800
  },
36801
+ "cameraGridLayout.getLayout": {
36802
+ capName: "camera-grid-layout",
36803
+ capScope: "device",
36804
+ addonId: null,
36805
+ access: "view"
36806
+ },
36807
+ "cameraGridLayout.saveLayout": {
36808
+ capName: "camera-grid-layout",
36809
+ capScope: "device",
36810
+ addonId: null,
36811
+ access: "create"
36812
+ },
36675
36813
  "cameraStreams.getBrokerStreams": {
36676
36814
  capName: "camera-streams",
36677
36815
  capScope: "device",
@@ -42371,6 +42509,21 @@ Object.freeze({
42371
42509
  form: "single",
42372
42510
  optional: false
42373
42511
  }],
42512
+ "cameraGridLayout.getLayout": [{
42513
+ name: "deviceId",
42514
+ form: "single",
42515
+ optional: false
42516
+ }],
42517
+ "cameraGridLayout.saveLayout": [{
42518
+ name: "cells",
42519
+ form: "object-array",
42520
+ optional: false,
42521
+ itemField: "deviceId"
42522
+ }, {
42523
+ name: "deviceId",
42524
+ form: "single",
42525
+ optional: false
42526
+ }],
42374
42527
  "cameraStreams.getBrokerStreams": [{
42375
42528
  name: "deviceId",
42376
42529
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5370,7 +5370,7 @@ var ZodIssueCode = {
5370
5370
  var ZodFirstPartyTypeKind;
5371
5371
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5372
5372
  //#endregion
5373
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5373
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5374
5374
  /**
5375
5375
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5376
5376
  * window to float samples (D455).
@@ -11909,6 +11909,24 @@ var GetStreamWithCodecInputSchema = object({
11909
11909
  });
11910
11910
  var RtpSourceSchema = object({
11911
11911
  url: string(),
11912
+ /**
11913
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11914
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11915
+ *
11916
+ * The broker answers it because the broker is the only thing that can:
11917
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11918
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11919
+ * cap bindings would be a second authority, and two authorities on the same
11920
+ * question is how a composite camera ends up dialling a sleeping camera
11921
+ * because its own copy of the rule was a release behind.
11922
+ *
11923
+ * `null` is a real answer and is never a live url in disguise: a consumer
11924
+ * that silently fell back to {@link url} would perform exactly the wake this
11925
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11926
+ * transcode hands back an egress the broker is feeding itself, which has no
11927
+ * sentry counterpart.
11928
+ */
11929
+ sentryUrl: string().nullable().optional(),
11912
11930
  videoCodec: _enum(["H264", "H265"]),
11913
11931
  audioCodec: string(),
11914
11932
  resolution: object({
@@ -28947,6 +28965,114 @@ var motionTriggerCapability = {
28947
28965
  durability: "session"
28948
28966
  };
28949
28967
  /**
28968
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28969
+ * page.
28970
+ *
28971
+ * ## Why this is a capability and not an addon settings schema
28972
+ *
28973
+ * It was one, and it did not render. The addon declared the editor as a
28974
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28975
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28976
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28977
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28978
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
28979
+ * not on it "falls off silently".
28980
+ *
28981
+ * Adding a fifth name to that list would have been the wrong fix twice over:
28982
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
28983
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
28984
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
28985
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
28986
+ * all use it): the framework emits the structural section and the widget
28987
+ * self-persists through the cap's own mutations.
28988
+ *
28989
+ * ## Why one addon may implement it
28990
+ *
28991
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28992
+ * itself. Nothing else declares a composite camera, so nothing else has a
28993
+ * layout — and the device-scoped route means the widget asks THE camera, not
28994
+ * "the camera-grid addon", which is what let the old custom-action pair be
28995
+ * reached only by a caller that already knew the addon id.
28996
+ *
28997
+ * ## The tab
28998
+ *
28999
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29000
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29001
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29002
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29003
+ * next to "PTZ").
29004
+ */
29005
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29006
+ var GridNormalizedRectSchema = object({
29007
+ x: number().min(0).max(1),
29008
+ y: number().min(0).max(1),
29009
+ width: number().gt(0).max(1),
29010
+ height: number().gt(0).max(1)
29011
+ });
29012
+ /**
29013
+ * One source camera, the part of its picture taken, and where that part lands.
29014
+ *
29015
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29016
+ * — a profile switch, a firmware update, a substream that comes back different
29017
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29018
+ * which is the class of bug nobody files.
29019
+ */
29020
+ var GridLayoutCellSchema = object({
29021
+ deviceId: number().int().positive(),
29022
+ /** The part of the SOURCE taken, normalized against the source. */
29023
+ source: GridNormalizedRectSchema,
29024
+ /** Where it lands, normalized against the CANVAS. */
29025
+ cell: GridNormalizedRectSchema
29026
+ });
29027
+ /**
29028
+ * Which profiles this grid can actually compose, and why not.
29029
+ *
29030
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29031
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29032
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29033
+ * low" is, and it is the one an operator can act on.
29034
+ */
29035
+ var GridProfileOfferSchema = object({
29036
+ profile: _enum([
29037
+ "high",
29038
+ "mid",
29039
+ "low"
29040
+ ]),
29041
+ offered: boolean(),
29042
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29043
+ missingSources: array(number().int().positive())
29044
+ });
29045
+ var GridLayoutViewSchema = object({
29046
+ /** The persisted grid row this camera was declared from. */
29047
+ instanceId: string(),
29048
+ deviceId: number().int().nonnegative(),
29049
+ name: string(),
29050
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29051
+ width: number().int(),
29052
+ height: number().int(),
29053
+ fps: number().int(),
29054
+ cells: array(GridLayoutCellSchema),
29055
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29056
+ profiles: array(GridProfileOfferSchema)
29057
+ });
29058
+ var GridLayoutPatchSchema = object({
29059
+ deviceId: number().int().nonnegative(),
29060
+ name: string().min(1).max(160).optional(),
29061
+ width: number().int().min(160).max(7680).optional(),
29062
+ height: number().int().min(120).max(4320).optional(),
29063
+ fps: number().int().min(1).max(60).optional(),
29064
+ /**
29065
+ * The whole cell list at once. A per-cell patch would need an ordering the
29066
+ * editor does not have, and a half-applied layout is a picture nobody asked
29067
+ * for.
29068
+ */
29069
+ cells: array(GridLayoutCellSchema).max(16)
29070
+ });
29071
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29072
+ kind: "mutation",
29073
+ auth: "admin"
29074
+ });
29075
+ /**
28950
29076
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28951
29077
  * on-camera motion-detection mask is a single `grid` region (a row-major
28952
29078
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36673,6 +36799,18 @@ Object.freeze({
36673
36799
  addonId: null,
36674
36800
  access: "view"
36675
36801
  },
36802
+ "cameraGridLayout.getLayout": {
36803
+ capName: "camera-grid-layout",
36804
+ capScope: "device",
36805
+ addonId: null,
36806
+ access: "view"
36807
+ },
36808
+ "cameraGridLayout.saveLayout": {
36809
+ capName: "camera-grid-layout",
36810
+ capScope: "device",
36811
+ addonId: null,
36812
+ access: "create"
36813
+ },
36676
36814
  "cameraStreams.getBrokerStreams": {
36677
36815
  capName: "camera-streams",
36678
36816
  capScope: "device",
@@ -42372,6 +42510,21 @@ Object.freeze({
42372
42510
  form: "single",
42373
42511
  optional: false
42374
42512
  }],
42513
+ "cameraGridLayout.getLayout": [{
42514
+ name: "deviceId",
42515
+ form: "single",
42516
+ optional: false
42517
+ }],
42518
+ "cameraGridLayout.saveLayout": [{
42519
+ name: "cells",
42520
+ form: "object-array",
42521
+ optional: false,
42522
+ itemField: "deviceId"
42523
+ }, {
42524
+ name: "deviceId",
42525
+ form: "single",
42526
+ optional: false
42527
+ }],
42375
42528
  "cameraStreams.getBrokerStreams": [{
42376
42529
  name: "deviceId",
42377
42530
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.114",
3
+ "version": "1.2.115",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",