@camstack/addon-provider-velux 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
@@ -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-GU_us3DG.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,118 @@ 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. The device page is
28908
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
28909
+ * and this cap carries its section the way `recording` does, by RETURNING it
28910
+ * from `getDeviceSettingsContribution`.
28911
+ *
28912
+ * Seven other widgets are still declared the other way, through a
28913
+ * `deviceConfig.ui` block the framework derives a section from. That route
28914
+ * gives the addon no say in where its own panel lands and no way to decline
28915
+ * for a device the panel does not suit, which is why this one does not use it.
28916
+ *
28917
+ * ## Why one addon may implement it
28918
+ *
28919
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28920
+ * itself. Nothing else declares a composite camera, so nothing else has a
28921
+ * layout — and the device-scoped route means the widget asks THE camera, not
28922
+ * "the camera-grid addon", which is what let the old custom-action pair be
28923
+ * reached only by a caller that already knew the addon id.
28924
+ *
28925
+ * ## The tab
28926
+ *
28927
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28928
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28929
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28930
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28931
+ * next to "PTZ").
28932
+ */
28933
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28934
+ var GridNormalizedRectSchema = object({
28935
+ x: number().min(0).max(1),
28936
+ y: number().min(0).max(1),
28937
+ width: number().gt(0).max(1),
28938
+ height: number().gt(0).max(1)
28939
+ });
28940
+ /**
28941
+ * One source camera, the part of its picture taken, and where that part lands.
28942
+ *
28943
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
28944
+ * — a profile switch, a firmware update, a substream that comes back different
28945
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
28946
+ * which is the class of bug nobody files.
28947
+ */
28948
+ var GridLayoutCellSchema = object({
28949
+ deviceId: number().int().positive(),
28950
+ /** The part of the SOURCE taken, normalized against the source. */
28951
+ source: GridNormalizedRectSchema,
28952
+ /** Where it lands, normalized against the CANVAS. */
28953
+ cell: GridNormalizedRectSchema
28954
+ });
28955
+ /**
28956
+ * Which profiles this grid can actually compose, and why not.
28957
+ *
28958
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
28959
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
28960
+ * the sources, because "this grid has no low" is not a finding — "615 has no
28961
+ * low" is, and it is the one an operator can act on.
28962
+ */
28963
+ var GridProfileOfferSchema = object({
28964
+ profile: _enum([
28965
+ "high",
28966
+ "mid",
28967
+ "low"
28968
+ ]),
28969
+ offered: boolean(),
28970
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
28971
+ missingSources: array(number().int().positive())
28972
+ });
28973
+ var GridLayoutViewSchema = object({
28974
+ /** The persisted grid row this camera was declared from. */
28975
+ instanceId: string(),
28976
+ deviceId: number().int().nonnegative(),
28977
+ name: string(),
28978
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
28979
+ width: number().int(),
28980
+ height: number().int(),
28981
+ fps: number().int(),
28982
+ cells: array(GridLayoutCellSchema),
28983
+ /** What the catalog will publish, and what it refuses to. Read-only. */
28984
+ profiles: array(GridProfileOfferSchema)
28985
+ });
28986
+ var GridLayoutPatchSchema = object({
28987
+ deviceId: number().int().nonnegative(),
28988
+ name: string().min(1).max(160).optional(),
28989
+ width: number().int().min(160).max(7680).optional(),
28990
+ height: number().int().min(120).max(4320).optional(),
28991
+ fps: number().int().min(1).max(60).optional(),
28992
+ /**
28993
+ * The whole cell list at once. A per-cell patch would need an ordering the
28994
+ * editor does not have, and a half-applied layout is a picture nobody asked
28995
+ * for.
28996
+ */
28997
+ cells: array(GridLayoutCellSchema).max(16)
28998
+ });
28999
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29000
+ kind: "mutation",
29001
+ auth: "admin"
29002
+ });
29003
+ /**
28874
29004
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28875
29005
  * on-camera motion-detection mask is a single `grid` region (a row-major
28876
29006
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36597,6 +36727,18 @@ Object.freeze({
36597
36727
  addonId: null,
36598
36728
  access: "view"
36599
36729
  },
36730
+ "cameraGridLayout.getLayout": {
36731
+ capName: "camera-grid-layout",
36732
+ capScope: "device",
36733
+ addonId: null,
36734
+ access: "view"
36735
+ },
36736
+ "cameraGridLayout.saveLayout": {
36737
+ capName: "camera-grid-layout",
36738
+ capScope: "device",
36739
+ addonId: null,
36740
+ access: "create"
36741
+ },
36600
36742
  "cameraStreams.getBrokerStreams": {
36601
36743
  capName: "camera-streams",
36602
36744
  capScope: "device",
@@ -42296,6 +42438,21 @@ Object.freeze({
42296
42438
  form: "single",
42297
42439
  optional: false
42298
42440
  }],
42441
+ "cameraGridLayout.getLayout": [{
42442
+ name: "deviceId",
42443
+ form: "single",
42444
+ optional: false
42445
+ }],
42446
+ "cameraGridLayout.saveLayout": [{
42447
+ name: "cells",
42448
+ form: "object-array",
42449
+ optional: false,
42450
+ itemField: "deviceId"
42451
+ }, {
42452
+ name: "deviceId",
42453
+ form: "single",
42454
+ optional: false
42455
+ }],
42299
42456
  "cameraStreams.getBrokerStreams": [{
42300
42457
  name: "deviceId",
42301
42458
  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-GU_us3DG.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,118 @@ 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. The device page is
28907
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
28908
+ * and this cap carries its section the way `recording` does, by RETURNING it
28909
+ * from `getDeviceSettingsContribution`.
28910
+ *
28911
+ * Seven other widgets are still declared the other way, through a
28912
+ * `deviceConfig.ui` block the framework derives a section from. That route
28913
+ * gives the addon no say in where its own panel lands and no way to decline
28914
+ * for a device the panel does not suit, which is why this one does not use it.
28915
+ *
28916
+ * ## Why one addon may implement it
28917
+ *
28918
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
28919
+ * itself. Nothing else declares a composite camera, so nothing else has a
28920
+ * layout — and the device-scoped route means the widget asks THE camera, not
28921
+ * "the camera-grid addon", which is what let the old custom-action pair be
28922
+ * reached only by a caller that already knew the addon id.
28923
+ *
28924
+ * ## The tab
28925
+ *
28926
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
28927
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
28928
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
28929
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
28930
+ * next to "PTZ").
28931
+ */
28932
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
28933
+ var GridNormalizedRectSchema = object({
28934
+ x: number().min(0).max(1),
28935
+ y: number().min(0).max(1),
28936
+ width: number().gt(0).max(1),
28937
+ height: number().gt(0).max(1)
28938
+ });
28939
+ /**
28940
+ * One source camera, the part of its picture taken, and where that part lands.
28941
+ *
28942
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
28943
+ * — a profile switch, a firmware update, a substream that comes back different
28944
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
28945
+ * which is the class of bug nobody files.
28946
+ */
28947
+ var GridLayoutCellSchema = object({
28948
+ deviceId: number().int().positive(),
28949
+ /** The part of the SOURCE taken, normalized against the source. */
28950
+ source: GridNormalizedRectSchema,
28951
+ /** Where it lands, normalized against the CANVAS. */
28952
+ cell: GridNormalizedRectSchema
28953
+ });
28954
+ /**
28955
+ * Which profiles this grid can actually compose, and why not.
28956
+ *
28957
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
28958
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
28959
+ * the sources, because "this grid has no low" is not a finding — "615 has no
28960
+ * low" is, and it is the one an operator can act on.
28961
+ */
28962
+ var GridProfileOfferSchema = object({
28963
+ profile: _enum([
28964
+ "high",
28965
+ "mid",
28966
+ "low"
28967
+ ]),
28968
+ offered: boolean(),
28969
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
28970
+ missingSources: array(number().int().positive())
28971
+ });
28972
+ var GridLayoutViewSchema = object({
28973
+ /** The persisted grid row this camera was declared from. */
28974
+ instanceId: string(),
28975
+ deviceId: number().int().nonnegative(),
28976
+ name: string(),
28977
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
28978
+ width: number().int(),
28979
+ height: number().int(),
28980
+ fps: number().int(),
28981
+ cells: array(GridLayoutCellSchema),
28982
+ /** What the catalog will publish, and what it refuses to. Read-only. */
28983
+ profiles: array(GridProfileOfferSchema)
28984
+ });
28985
+ var GridLayoutPatchSchema = object({
28986
+ deviceId: number().int().nonnegative(),
28987
+ name: string().min(1).max(160).optional(),
28988
+ width: number().int().min(160).max(7680).optional(),
28989
+ height: number().int().min(120).max(4320).optional(),
28990
+ fps: number().int().min(1).max(60).optional(),
28991
+ /**
28992
+ * The whole cell list at once. A per-cell patch would need an ordering the
28993
+ * editor does not have, and a half-applied layout is a picture nobody asked
28994
+ * for.
28995
+ */
28996
+ cells: array(GridLayoutCellSchema).max(16)
28997
+ });
28998
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
28999
+ kind: "mutation",
29000
+ auth: "admin"
29001
+ });
29002
+ /**
28873
29003
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28874
29004
  * on-camera motion-detection mask is a single `grid` region (a row-major
28875
29005
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36596,6 +36726,18 @@ Object.freeze({
36596
36726
  addonId: null,
36597
36727
  access: "view"
36598
36728
  },
36729
+ "cameraGridLayout.getLayout": {
36730
+ capName: "camera-grid-layout",
36731
+ capScope: "device",
36732
+ addonId: null,
36733
+ access: "view"
36734
+ },
36735
+ "cameraGridLayout.saveLayout": {
36736
+ capName: "camera-grid-layout",
36737
+ capScope: "device",
36738
+ addonId: null,
36739
+ access: "create"
36740
+ },
36599
36741
  "cameraStreams.getBrokerStreams": {
36600
36742
  capName: "camera-streams",
36601
36743
  capScope: "device",
@@ -42295,6 +42437,21 @@ Object.freeze({
42295
42437
  form: "single",
42296
42438
  optional: false
42297
42439
  }],
42440
+ "cameraGridLayout.getLayout": [{
42441
+ name: "deviceId",
42442
+ form: "single",
42443
+ optional: false
42444
+ }],
42445
+ "cameraGridLayout.saveLayout": [{
42446
+ name: "cells",
42447
+ form: "object-array",
42448
+ optional: false,
42449
+ itemField: "deviceId"
42450
+ }, {
42451
+ name: "deviceId",
42452
+ form: "single",
42453
+ optional: false
42454
+ }],
42298
42455
  "cameraStreams.getBrokerStreams": [{
42299
42456
  name: "deviceId",
42300
42457
  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.115",
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",