@camstack/addon-provider-homematic 1.2.114 → 1.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
@@ -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-GU_us3DG.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,118 @@ 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. The device page is
28983
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
28984
+ * and this cap carries its section the way `recording` does, by RETURNING it
28985
+ * from `getDeviceSettingsContribution`.
28986
+ *
28987
+ * Seven other widgets are still declared the other way, through a
28988
+ * `deviceConfig.ui` block the framework derives a section from. That route
28989
+ * gives the addon no say in where its own panel lands and no way to decline
28990
+ * for a device the panel does not suit, which is why this one does not use it.
28991
+ *
28992
+ * ## Why one addon may implement it
28993
+ *
28994
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28995
+ * itself. Nothing else declares a composite camera, so nothing else has a
28996
+ * layout — and the device-scoped route means the widget asks THE camera, not
28997
+ * "the camera-grid addon", which is what let the old custom-action pair be
28998
+ * reached only by a caller that already knew the addon id.
28999
+ *
29000
+ * ## The tab
29001
+ *
29002
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29003
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29004
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29005
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29006
+ * next to "PTZ").
29007
+ */
29008
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29009
+ var GridNormalizedRectSchema = object({
29010
+ x: number().min(0).max(1),
29011
+ y: number().min(0).max(1),
29012
+ width: number().gt(0).max(1),
29013
+ height: number().gt(0).max(1)
29014
+ });
29015
+ /**
29016
+ * One source camera, the part of its picture taken, and where that part lands.
29017
+ *
29018
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29019
+ * — a profile switch, a firmware update, a substream that comes back different
29020
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29021
+ * which is the class of bug nobody files.
29022
+ */
29023
+ var GridLayoutCellSchema = object({
29024
+ deviceId: number().int().positive(),
29025
+ /** The part of the SOURCE taken, normalized against the source. */
29026
+ source: GridNormalizedRectSchema,
29027
+ /** Where it lands, normalized against the CANVAS. */
29028
+ cell: GridNormalizedRectSchema
29029
+ });
29030
+ /**
29031
+ * Which profiles this grid can actually compose, and why not.
29032
+ *
29033
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29034
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29035
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29036
+ * low" is, and it is the one an operator can act on.
29037
+ */
29038
+ var GridProfileOfferSchema = object({
29039
+ profile: _enum([
29040
+ "high",
29041
+ "mid",
29042
+ "low"
29043
+ ]),
29044
+ offered: boolean(),
29045
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29046
+ missingSources: array(number().int().positive())
29047
+ });
29048
+ var GridLayoutViewSchema = object({
29049
+ /** The persisted grid row this camera was declared from. */
29050
+ instanceId: string(),
29051
+ deviceId: number().int().nonnegative(),
29052
+ name: string(),
29053
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29054
+ width: number().int(),
29055
+ height: number().int(),
29056
+ fps: number().int(),
29057
+ cells: array(GridLayoutCellSchema),
29058
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29059
+ profiles: array(GridProfileOfferSchema)
29060
+ });
29061
+ var GridLayoutPatchSchema = object({
29062
+ deviceId: number().int().nonnegative(),
29063
+ name: string().min(1).max(160).optional(),
29064
+ width: number().int().min(160).max(7680).optional(),
29065
+ height: number().int().min(120).max(4320).optional(),
29066
+ fps: number().int().min(1).max(60).optional(),
29067
+ /**
29068
+ * The whole cell list at once. A per-cell patch would need an ordering the
29069
+ * editor does not have, and a half-applied layout is a picture nobody asked
29070
+ * for.
29071
+ */
29072
+ cells: array(GridLayoutCellSchema).max(16)
29073
+ });
29074
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29075
+ kind: "mutation",
29076
+ auth: "admin"
29077
+ });
29078
+ /**
28949
29079
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28950
29080
  * on-camera motion-detection mask is a single `grid` region (a row-major
28951
29081
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36672,6 +36802,18 @@ Object.freeze({
36672
36802
  addonId: null,
36673
36803
  access: "view"
36674
36804
  },
36805
+ "cameraGridLayout.getLayout": {
36806
+ capName: "camera-grid-layout",
36807
+ capScope: "device",
36808
+ addonId: null,
36809
+ access: "view"
36810
+ },
36811
+ "cameraGridLayout.saveLayout": {
36812
+ capName: "camera-grid-layout",
36813
+ capScope: "device",
36814
+ addonId: null,
36815
+ access: "create"
36816
+ },
36675
36817
  "cameraStreams.getBrokerStreams": {
36676
36818
  capName: "camera-streams",
36677
36819
  capScope: "device",
@@ -42371,6 +42513,21 @@ Object.freeze({
42371
42513
  form: "single",
42372
42514
  optional: false
42373
42515
  }],
42516
+ "cameraGridLayout.getLayout": [{
42517
+ name: "deviceId",
42518
+ form: "single",
42519
+ optional: false
42520
+ }],
42521
+ "cameraGridLayout.saveLayout": [{
42522
+ name: "cells",
42523
+ form: "object-array",
42524
+ optional: false,
42525
+ itemField: "deviceId"
42526
+ }, {
42527
+ name: "deviceId",
42528
+ form: "single",
42529
+ optional: false
42530
+ }],
42374
42531
  "cameraStreams.getBrokerStreams": [{
42375
42532
  name: "deviceId",
42376
42533
  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-GU_us3DG.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,118 @@ 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. The device page is
28984
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
28985
+ * and this cap carries its section the way `recording` does, by RETURNING it
28986
+ * from `getDeviceSettingsContribution`.
28987
+ *
28988
+ * Seven other widgets are still declared the other way, through a
28989
+ * `deviceConfig.ui` block the framework derives a section from. That route
28990
+ * gives the addon no say in where its own panel lands and no way to decline
28991
+ * for a device the panel does not suit, which is why this one does not use it.
28992
+ *
28993
+ * ## Why one addon may implement it
28994
+ *
28995
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28996
+ * itself. Nothing else declares a composite camera, so nothing else has a
28997
+ * layout — and the device-scoped route means the widget asks THE camera, not
28998
+ * "the camera-grid addon", which is what let the old custom-action pair be
28999
+ * reached only by a caller that already knew the addon id.
29000
+ *
29001
+ * ## The tab
29002
+ *
29003
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29004
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29005
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29006
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29007
+ * next to "PTZ").
29008
+ */
29009
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29010
+ var GridNormalizedRectSchema = object({
29011
+ x: number().min(0).max(1),
29012
+ y: number().min(0).max(1),
29013
+ width: number().gt(0).max(1),
29014
+ height: number().gt(0).max(1)
29015
+ });
29016
+ /**
29017
+ * One source camera, the part of its picture taken, and where that part lands.
29018
+ *
29019
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29020
+ * — a profile switch, a firmware update, a substream that comes back different
29021
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29022
+ * which is the class of bug nobody files.
29023
+ */
29024
+ var GridLayoutCellSchema = object({
29025
+ deviceId: number().int().positive(),
29026
+ /** The part of the SOURCE taken, normalized against the source. */
29027
+ source: GridNormalizedRectSchema,
29028
+ /** Where it lands, normalized against the CANVAS. */
29029
+ cell: GridNormalizedRectSchema
29030
+ });
29031
+ /**
29032
+ * Which profiles this grid can actually compose, and why not.
29033
+ *
29034
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29035
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29036
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29037
+ * low" is, and it is the one an operator can act on.
29038
+ */
29039
+ var GridProfileOfferSchema = object({
29040
+ profile: _enum([
29041
+ "high",
29042
+ "mid",
29043
+ "low"
29044
+ ]),
29045
+ offered: boolean(),
29046
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29047
+ missingSources: array(number().int().positive())
29048
+ });
29049
+ var GridLayoutViewSchema = object({
29050
+ /** The persisted grid row this camera was declared from. */
29051
+ instanceId: string(),
29052
+ deviceId: number().int().nonnegative(),
29053
+ name: string(),
29054
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29055
+ width: number().int(),
29056
+ height: number().int(),
29057
+ fps: number().int(),
29058
+ cells: array(GridLayoutCellSchema),
29059
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29060
+ profiles: array(GridProfileOfferSchema)
29061
+ });
29062
+ var GridLayoutPatchSchema = object({
29063
+ deviceId: number().int().nonnegative(),
29064
+ name: string().min(1).max(160).optional(),
29065
+ width: number().int().min(160).max(7680).optional(),
29066
+ height: number().int().min(120).max(4320).optional(),
29067
+ fps: number().int().min(1).max(60).optional(),
29068
+ /**
29069
+ * The whole cell list at once. A per-cell patch would need an ordering the
29070
+ * editor does not have, and a half-applied layout is a picture nobody asked
29071
+ * for.
29072
+ */
29073
+ cells: array(GridLayoutCellSchema).max(16)
29074
+ });
29075
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29076
+ kind: "mutation",
29077
+ auth: "admin"
29078
+ });
29079
+ /**
28950
29080
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28951
29081
  * on-camera motion-detection mask is a single `grid` region (a row-major
28952
29082
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36673,6 +36803,18 @@ Object.freeze({
36673
36803
  addonId: null,
36674
36804
  access: "view"
36675
36805
  },
36806
+ "cameraGridLayout.getLayout": {
36807
+ capName: "camera-grid-layout",
36808
+ capScope: "device",
36809
+ addonId: null,
36810
+ access: "view"
36811
+ },
36812
+ "cameraGridLayout.saveLayout": {
36813
+ capName: "camera-grid-layout",
36814
+ capScope: "device",
36815
+ addonId: null,
36816
+ access: "create"
36817
+ },
36676
36818
  "cameraStreams.getBrokerStreams": {
36677
36819
  capName: "camera-streams",
36678
36820
  capScope: "device",
@@ -42372,6 +42514,21 @@ Object.freeze({
42372
42514
  form: "single",
42373
42515
  optional: false
42374
42516
  }],
42517
+ "cameraGridLayout.getLayout": [{
42518
+ name: "deviceId",
42519
+ form: "single",
42520
+ optional: false
42521
+ }],
42522
+ "cameraGridLayout.saveLayout": [{
42523
+ name: "cells",
42524
+ form: "object-array",
42525
+ optional: false,
42526
+ itemField: "deviceId"
42527
+ }, {
42528
+ name: "deviceId",
42529
+ form: "single",
42530
+ optional: false
42531
+ }],
42375
42532
  "cameraStreams.getBrokerStreams": [{
42376
42533
  name: "deviceId",
42377
42534
  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.116",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",