@camstack/addon-provider-velux 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
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
5360
5360
  var ZodFirstPartyTypeKind;
5361
5361
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5362
5362
  //#endregion
5363
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5363
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5364
5364
  /**
5365
5365
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5366
5366
  * window to float samples (D455).
@@ -11850,6 +11850,24 @@ var GetStreamWithCodecInputSchema = object({
11850
11850
  });
11851
11851
  var RtpSourceSchema = object({
11852
11852
  url: string(),
11853
+ /**
11854
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11855
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11856
+ *
11857
+ * The broker answers it because the broker is the only thing that can:
11858
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11859
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11860
+ * cap bindings would be a second authority, and two authorities on the same
11861
+ * question is how a composite camera ends up dialling a sleeping camera
11862
+ * because its own copy of the rule was a release behind.
11863
+ *
11864
+ * `null` is a real answer and is never a live url in disguise: a consumer
11865
+ * that silently fell back to {@link url} would perform exactly the wake this
11866
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11867
+ * transcode hands back an egress the broker is feeding itself, which has no
11868
+ * sentry counterpart.
11869
+ */
11870
+ sentryUrl: string().nullable().optional(),
11853
11871
  videoCodec: _enum(["H264", "H265"]),
11854
11872
  audioCodec: string(),
11855
11873
  resolution: object({
@@ -28871,6 +28889,114 @@ var motionTriggerCapability = {
28871
28889
  durability: "session"
28872
28890
  };
28873
28891
  /**
28892
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28893
+ * page.
28894
+ *
28895
+ * ## Why this is a capability and not an addon settings schema
28896
+ *
28897
+ * It was one, and it did not render. The addon declared the editor as a
28898
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28899
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28900
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28901
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28902
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
28903
+ * not on it "falls off silently".
28904
+ *
28905
+ * Adding a fifth name to that list would have been the wrong fix twice over:
28906
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
28907
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
28908
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
28909
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
28910
+ * all use it): the framework emits the structural section and the widget
28911
+ * self-persists through the cap's own mutations.
28912
+ *
28913
+ * ## Why one addon may implement it
28914
+ *
28915
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28916
+ * itself. Nothing else declares a composite camera, so nothing else has a
28917
+ * layout — and the device-scoped route means the widget asks THE camera, not
28918
+ * "the camera-grid addon", which is what let the old custom-action pair be
28919
+ * reached only by a caller that already knew the addon id.
28920
+ *
28921
+ * ## The tab
28922
+ *
28923
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28924
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28925
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28926
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28927
+ * next to "PTZ").
28928
+ */
28929
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28930
+ var GridNormalizedRectSchema = object({
28931
+ x: number().min(0).max(1),
28932
+ y: number().min(0).max(1),
28933
+ width: number().gt(0).max(1),
28934
+ height: number().gt(0).max(1)
28935
+ });
28936
+ /**
28937
+ * One source camera, the part of its picture taken, and where that part lands.
28938
+ *
28939
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
28940
+ * — a profile switch, a firmware update, a substream that comes back different
28941
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
28942
+ * which is the class of bug nobody files.
28943
+ */
28944
+ var GridLayoutCellSchema = object({
28945
+ deviceId: number().int().positive(),
28946
+ /** The part of the SOURCE taken, normalized against the source. */
28947
+ source: GridNormalizedRectSchema,
28948
+ /** Where it lands, normalized against the CANVAS. */
28949
+ cell: GridNormalizedRectSchema
28950
+ });
28951
+ /**
28952
+ * Which profiles this grid can actually compose, and why not.
28953
+ *
28954
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
28955
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
28956
+ * the sources, because "this grid has no low" is not a finding — "615 has no
28957
+ * low" is, and it is the one an operator can act on.
28958
+ */
28959
+ var GridProfileOfferSchema = object({
28960
+ profile: _enum([
28961
+ "high",
28962
+ "mid",
28963
+ "low"
28964
+ ]),
28965
+ offered: boolean(),
28966
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
28967
+ missingSources: array(number().int().positive())
28968
+ });
28969
+ var GridLayoutViewSchema = object({
28970
+ /** The persisted grid row this camera was declared from. */
28971
+ instanceId: string(),
28972
+ deviceId: number().int().nonnegative(),
28973
+ name: string(),
28974
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
28975
+ width: number().int(),
28976
+ height: number().int(),
28977
+ fps: number().int(),
28978
+ cells: array(GridLayoutCellSchema),
28979
+ /** What the catalog will publish, and what it refuses to. Read-only. */
28980
+ profiles: array(GridProfileOfferSchema)
28981
+ });
28982
+ var GridLayoutPatchSchema = object({
28983
+ deviceId: number().int().nonnegative(),
28984
+ name: string().min(1).max(160).optional(),
28985
+ width: number().int().min(160).max(7680).optional(),
28986
+ height: number().int().min(120).max(4320).optional(),
28987
+ fps: number().int().min(1).max(60).optional(),
28988
+ /**
28989
+ * The whole cell list at once. A per-cell patch would need an ordering the
28990
+ * editor does not have, and a half-applied layout is a picture nobody asked
28991
+ * for.
28992
+ */
28993
+ cells: array(GridLayoutCellSchema).max(16)
28994
+ });
28995
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
28996
+ kind: "mutation",
28997
+ auth: "admin"
28998
+ });
28999
+ /**
28874
29000
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28875
29001
  * on-camera motion-detection mask is a single `grid` region (a row-major
28876
29002
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36597,6 +36723,18 @@ Object.freeze({
36597
36723
  addonId: null,
36598
36724
  access: "view"
36599
36725
  },
36726
+ "cameraGridLayout.getLayout": {
36727
+ capName: "camera-grid-layout",
36728
+ capScope: "device",
36729
+ addonId: null,
36730
+ access: "view"
36731
+ },
36732
+ "cameraGridLayout.saveLayout": {
36733
+ capName: "camera-grid-layout",
36734
+ capScope: "device",
36735
+ addonId: null,
36736
+ access: "create"
36737
+ },
36600
36738
  "cameraStreams.getBrokerStreams": {
36601
36739
  capName: "camera-streams",
36602
36740
  capScope: "device",
@@ -42296,6 +42434,21 @@ Object.freeze({
42296
42434
  form: "single",
42297
42435
  optional: false
42298
42436
  }],
42437
+ "cameraGridLayout.getLayout": [{
42438
+ name: "deviceId",
42439
+ form: "single",
42440
+ optional: false
42441
+ }],
42442
+ "cameraGridLayout.saveLayout": [{
42443
+ name: "cells",
42444
+ form: "object-array",
42445
+ optional: false,
42446
+ itemField: "deviceId"
42447
+ }, {
42448
+ name: "deviceId",
42449
+ form: "single",
42450
+ optional: false
42451
+ }],
42299
42452
  "cameraStreams.getBrokerStreams": [{
42300
42453
  name: "deviceId",
42301
42454
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
5359
5359
  var ZodFirstPartyTypeKind;
5360
5360
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5361
5361
  //#endregion
5362
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5362
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5363
5363
  /**
5364
5364
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5365
5365
  * window to float samples (D455).
@@ -11849,6 +11849,24 @@ var GetStreamWithCodecInputSchema = object({
11849
11849
  });
11850
11850
  var RtpSourceSchema = object({
11851
11851
  url: string(),
11852
+ /**
11853
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11854
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11855
+ *
11856
+ * The broker answers it because the broker is the only thing that can:
11857
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11858
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11859
+ * cap bindings would be a second authority, and two authorities on the same
11860
+ * question is how a composite camera ends up dialling a sleeping camera
11861
+ * because its own copy of the rule was a release behind.
11862
+ *
11863
+ * `null` is a real answer and is never a live url in disguise: a consumer
11864
+ * that silently fell back to {@link url} would perform exactly the wake this
11865
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11866
+ * transcode hands back an egress the broker is feeding itself, which has no
11867
+ * sentry counterpart.
11868
+ */
11869
+ sentryUrl: string().nullable().optional(),
11852
11870
  videoCodec: _enum(["H264", "H265"]),
11853
11871
  audioCodec: string(),
11854
11872
  resolution: object({
@@ -28870,6 +28888,114 @@ var motionTriggerCapability = {
28870
28888
  durability: "session"
28871
28889
  };
28872
28890
  /**
28891
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28892
+ * page.
28893
+ *
28894
+ * ## Why this is a capability and not an addon settings schema
28895
+ *
28896
+ * It was one, and it did not render. The addon declared the editor as a
28897
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28898
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28899
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28900
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28901
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
28902
+ * not on it "falls off silently".
28903
+ *
28904
+ * Adding a fifth name to that list would have been the wrong fix twice over:
28905
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
28906
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
28907
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
28908
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
28909
+ * all use it): the framework emits the structural section and the widget
28910
+ * self-persists through the cap's own mutations.
28911
+ *
28912
+ * ## Why one addon may implement it
28913
+ *
28914
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28915
+ * itself. Nothing else declares a composite camera, so nothing else has a
28916
+ * layout — and the device-scoped route means the widget asks THE camera, not
28917
+ * "the camera-grid addon", which is what let the old custom-action pair be
28918
+ * reached only by a caller that already knew the addon id.
28919
+ *
28920
+ * ## The tab
28921
+ *
28922
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28923
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28924
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28925
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28926
+ * next to "PTZ").
28927
+ */
28928
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28929
+ var GridNormalizedRectSchema = object({
28930
+ x: number().min(0).max(1),
28931
+ y: number().min(0).max(1),
28932
+ width: number().gt(0).max(1),
28933
+ height: number().gt(0).max(1)
28934
+ });
28935
+ /**
28936
+ * One source camera, the part of its picture taken, and where that part lands.
28937
+ *
28938
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
28939
+ * — a profile switch, a firmware update, a substream that comes back different
28940
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
28941
+ * which is the class of bug nobody files.
28942
+ */
28943
+ var GridLayoutCellSchema = object({
28944
+ deviceId: number().int().positive(),
28945
+ /** The part of the SOURCE taken, normalized against the source. */
28946
+ source: GridNormalizedRectSchema,
28947
+ /** Where it lands, normalized against the CANVAS. */
28948
+ cell: GridNormalizedRectSchema
28949
+ });
28950
+ /**
28951
+ * Which profiles this grid can actually compose, and why not.
28952
+ *
28953
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
28954
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
28955
+ * the sources, because "this grid has no low" is not a finding — "615 has no
28956
+ * low" is, and it is the one an operator can act on.
28957
+ */
28958
+ var GridProfileOfferSchema = object({
28959
+ profile: _enum([
28960
+ "high",
28961
+ "mid",
28962
+ "low"
28963
+ ]),
28964
+ offered: boolean(),
28965
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
28966
+ missingSources: array(number().int().positive())
28967
+ });
28968
+ var GridLayoutViewSchema = object({
28969
+ /** The persisted grid row this camera was declared from. */
28970
+ instanceId: string(),
28971
+ deviceId: number().int().nonnegative(),
28972
+ name: string(),
28973
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
28974
+ width: number().int(),
28975
+ height: number().int(),
28976
+ fps: number().int(),
28977
+ cells: array(GridLayoutCellSchema),
28978
+ /** What the catalog will publish, and what it refuses to. Read-only. */
28979
+ profiles: array(GridProfileOfferSchema)
28980
+ });
28981
+ var GridLayoutPatchSchema = object({
28982
+ deviceId: number().int().nonnegative(),
28983
+ name: string().min(1).max(160).optional(),
28984
+ width: number().int().min(160).max(7680).optional(),
28985
+ height: number().int().min(120).max(4320).optional(),
28986
+ fps: number().int().min(1).max(60).optional(),
28987
+ /**
28988
+ * The whole cell list at once. A per-cell patch would need an ordering the
28989
+ * editor does not have, and a half-applied layout is a picture nobody asked
28990
+ * for.
28991
+ */
28992
+ cells: array(GridLayoutCellSchema).max(16)
28993
+ });
28994
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
28995
+ kind: "mutation",
28996
+ auth: "admin"
28997
+ });
28998
+ /**
28873
28999
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28874
29000
  * on-camera motion-detection mask is a single `grid` region (a row-major
28875
29001
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36596,6 +36722,18 @@ Object.freeze({
36596
36722
  addonId: null,
36597
36723
  access: "view"
36598
36724
  },
36725
+ "cameraGridLayout.getLayout": {
36726
+ capName: "camera-grid-layout",
36727
+ capScope: "device",
36728
+ addonId: null,
36729
+ access: "view"
36730
+ },
36731
+ "cameraGridLayout.saveLayout": {
36732
+ capName: "camera-grid-layout",
36733
+ capScope: "device",
36734
+ addonId: null,
36735
+ access: "create"
36736
+ },
36599
36737
  "cameraStreams.getBrokerStreams": {
36600
36738
  capName: "camera-streams",
36601
36739
  capScope: "device",
@@ -42295,6 +42433,21 @@ Object.freeze({
42295
42433
  form: "single",
42296
42434
  optional: false
42297
42435
  }],
42436
+ "cameraGridLayout.getLayout": [{
42437
+ name: "deviceId",
42438
+ form: "single",
42439
+ optional: false
42440
+ }],
42441
+ "cameraGridLayout.saveLayout": [{
42442
+ name: "cells",
42443
+ form: "object-array",
42444
+ optional: false,
42445
+ itemField: "deviceId"
42446
+ }, {
42447
+ name: "deviceId",
42448
+ form: "single",
42449
+ optional: false
42450
+ }],
42298
42451
  "cameraStreams.getBrokerStreams": [{
42299
42452
  name: "deviceId",
42300
42453
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-velux",
3
- "version": "0.2.113",
3
+ "version": "0.2.114",
4
4
  "description": "Velux KLF-200 device-provider addon for CamStack — local-gateway window + shutter covers (positional, no tilt)",
5
5
  "keywords": [
6
6
  "camstack",