@camstack/addon-provider-rademacher 0.2.112 → 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
@@ -6345,7 +6345,7 @@ var ZodIssueCode = {
6345
6345
  var ZodFirstPartyTypeKind;
6346
6346
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6347
6347
  //#endregion
6348
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
6348
+ //#region ../types/dist/sleep-GU_us3DG.mjs
6349
6349
  /**
6350
6350
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6351
6351
  * window to float samples (D455).
@@ -12835,6 +12835,24 @@ var GetStreamWithCodecInputSchema = object({
12835
12835
  });
12836
12836
  var RtpSourceSchema = object({
12837
12837
  url: string(),
12838
+ /**
12839
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12840
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12841
+ *
12842
+ * The broker answers it because the broker is the only thing that can:
12843
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12844
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12845
+ * cap bindings would be a second authority, and two authorities on the same
12846
+ * question is how a composite camera ends up dialling a sleeping camera
12847
+ * because its own copy of the rule was a release behind.
12848
+ *
12849
+ * `null` is a real answer and is never a live url in disguise: a consumer
12850
+ * that silently fell back to {@link url} would perform exactly the wake this
12851
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12852
+ * transcode hands back an egress the broker is feeding itself, which has no
12853
+ * sentry counterpart.
12854
+ */
12855
+ sentryUrl: string().nullable().optional(),
12838
12856
  videoCodec: _enum(["H264", "H265"]),
12839
12857
  audioCodec: string(),
12840
12858
  resolution: object({
@@ -29856,6 +29874,118 @@ var motionTriggerCapability = {
29856
29874
  durability: "session"
29857
29875
  };
29858
29876
  /**
29877
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29878
+ * page.
29879
+ *
29880
+ * ## Why this is a capability and not an addon settings schema
29881
+ *
29882
+ * It was one, and it did not render. The addon declared the editor as a
29883
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29884
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29885
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29886
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29887
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29888
+ * not on it "falls off silently".
29889
+ *
29890
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29891
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29892
+ * beside PTZ and motion zones on the camera itself. The device page is
29893
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29894
+ * and this cap carries its section the way `recording` does, by RETURNING it
29895
+ * from `getDeviceSettingsContribution`.
29896
+ *
29897
+ * Seven other widgets are still declared the other way, through a
29898
+ * `deviceConfig.ui` block the framework derives a section from. That route
29899
+ * gives the addon no say in where its own panel lands and no way to decline
29900
+ * for a device the panel does not suit, which is why this one does not use it.
29901
+ *
29902
+ * ## Why one addon may implement it
29903
+ *
29904
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29905
+ * itself. Nothing else declares a composite camera, so nothing else has a
29906
+ * layout — and the device-scoped route means the widget asks THE camera, not
29907
+ * "the camera-grid addon", which is what let the old custom-action pair be
29908
+ * reached only by a caller that already knew the addon id.
29909
+ *
29910
+ * ## The tab
29911
+ *
29912
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29913
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29914
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29915
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29916
+ * next to "PTZ").
29917
+ */
29918
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29919
+ var GridNormalizedRectSchema = object({
29920
+ x: number().min(0).max(1),
29921
+ y: number().min(0).max(1),
29922
+ width: number().gt(0).max(1),
29923
+ height: number().gt(0).max(1)
29924
+ });
29925
+ /**
29926
+ * One source camera, the part of its picture taken, and where that part lands.
29927
+ *
29928
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29929
+ * — a profile switch, a firmware update, a substream that comes back different
29930
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29931
+ * which is the class of bug nobody files.
29932
+ */
29933
+ var GridLayoutCellSchema = object({
29934
+ deviceId: number().int().positive(),
29935
+ /** The part of the SOURCE taken, normalized against the source. */
29936
+ source: GridNormalizedRectSchema,
29937
+ /** Where it lands, normalized against the CANVAS. */
29938
+ cell: GridNormalizedRectSchema
29939
+ });
29940
+ /**
29941
+ * Which profiles this grid can actually compose, and why not.
29942
+ *
29943
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29944
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29945
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29946
+ * low" is, and it is the one an operator can act on.
29947
+ */
29948
+ var GridProfileOfferSchema = object({
29949
+ profile: _enum([
29950
+ "high",
29951
+ "mid",
29952
+ "low"
29953
+ ]),
29954
+ offered: boolean(),
29955
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29956
+ missingSources: array(number().int().positive())
29957
+ });
29958
+ var GridLayoutViewSchema = object({
29959
+ /** The persisted grid row this camera was declared from. */
29960
+ instanceId: string(),
29961
+ deviceId: number().int().nonnegative(),
29962
+ name: string(),
29963
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29964
+ width: number().int(),
29965
+ height: number().int(),
29966
+ fps: number().int(),
29967
+ cells: array(GridLayoutCellSchema),
29968
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29969
+ profiles: array(GridProfileOfferSchema)
29970
+ });
29971
+ var GridLayoutPatchSchema = object({
29972
+ deviceId: number().int().nonnegative(),
29973
+ name: string().min(1).max(160).optional(),
29974
+ width: number().int().min(160).max(7680).optional(),
29975
+ height: number().int().min(120).max(4320).optional(),
29976
+ fps: number().int().min(1).max(60).optional(),
29977
+ /**
29978
+ * The whole cell list at once. A per-cell patch would need an ordering the
29979
+ * editor does not have, and a half-applied layout is a picture nobody asked
29980
+ * for.
29981
+ */
29982
+ cells: array(GridLayoutCellSchema).max(16)
29983
+ });
29984
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29985
+ kind: "mutation",
29986
+ auth: "admin"
29987
+ });
29988
+ /**
29859
29989
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29860
29990
  * on-camera motion-detection mask is a single `grid` region (a row-major
29861
29991
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37582,6 +37712,18 @@ Object.freeze({
37582
37712
  addonId: null,
37583
37713
  access: "view"
37584
37714
  },
37715
+ "cameraGridLayout.getLayout": {
37716
+ capName: "camera-grid-layout",
37717
+ capScope: "device",
37718
+ addonId: null,
37719
+ access: "view"
37720
+ },
37721
+ "cameraGridLayout.saveLayout": {
37722
+ capName: "camera-grid-layout",
37723
+ capScope: "device",
37724
+ addonId: null,
37725
+ access: "create"
37726
+ },
37585
37727
  "cameraStreams.getBrokerStreams": {
37586
37728
  capName: "camera-streams",
37587
37729
  capScope: "device",
@@ -43281,6 +43423,21 @@ Object.freeze({
43281
43423
  form: "single",
43282
43424
  optional: false
43283
43425
  }],
43426
+ "cameraGridLayout.getLayout": [{
43427
+ name: "deviceId",
43428
+ form: "single",
43429
+ optional: false
43430
+ }],
43431
+ "cameraGridLayout.saveLayout": [{
43432
+ name: "cells",
43433
+ form: "object-array",
43434
+ optional: false,
43435
+ itemField: "deviceId"
43436
+ }, {
43437
+ name: "deviceId",
43438
+ form: "single",
43439
+ optional: false
43440
+ }],
43284
43441
  "cameraStreams.getBrokerStreams": [{
43285
43442
  name: "deviceId",
43286
43443
  form: "single",
package/dist/addon.mjs CHANGED
@@ -6344,7 +6344,7 @@ var ZodIssueCode = {
6344
6344
  var ZodFirstPartyTypeKind;
6345
6345
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6346
6346
  //#endregion
6347
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
6347
+ //#region ../types/dist/sleep-GU_us3DG.mjs
6348
6348
  /**
6349
6349
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6350
6350
  * window to float samples (D455).
@@ -12834,6 +12834,24 @@ var GetStreamWithCodecInputSchema = object({
12834
12834
  });
12835
12835
  var RtpSourceSchema = object({
12836
12836
  url: string(),
12837
+ /**
12838
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12839
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12840
+ *
12841
+ * The broker answers it because the broker is the only thing that can:
12842
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12843
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12844
+ * cap bindings would be a second authority, and two authorities on the same
12845
+ * question is how a composite camera ends up dialling a sleeping camera
12846
+ * because its own copy of the rule was a release behind.
12847
+ *
12848
+ * `null` is a real answer and is never a live url in disguise: a consumer
12849
+ * that silently fell back to {@link url} would perform exactly the wake this
12850
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12851
+ * transcode hands back an egress the broker is feeding itself, which has no
12852
+ * sentry counterpart.
12853
+ */
12854
+ sentryUrl: string().nullable().optional(),
12837
12855
  videoCodec: _enum(["H264", "H265"]),
12838
12856
  audioCodec: string(),
12839
12857
  resolution: object({
@@ -29855,6 +29873,118 @@ var motionTriggerCapability = {
29855
29873
  durability: "session"
29856
29874
  };
29857
29875
  /**
29876
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29877
+ * page.
29878
+ *
29879
+ * ## Why this is a capability and not an addon settings schema
29880
+ *
29881
+ * It was one, and it did not render. The addon declared the editor as a
29882
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29883
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29884
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29885
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29886
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29887
+ * not on it "falls off silently".
29888
+ *
29889
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29890
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29891
+ * beside PTZ and motion zones on the camera itself. The device page is
29892
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29893
+ * and this cap carries its section the way `recording` does, by RETURNING it
29894
+ * from `getDeviceSettingsContribution`.
29895
+ *
29896
+ * Seven other widgets are still declared the other way, through a
29897
+ * `deviceConfig.ui` block the framework derives a section from. That route
29898
+ * gives the addon no say in where its own panel lands and no way to decline
29899
+ * for a device the panel does not suit, which is why this one does not use it.
29900
+ *
29901
+ * ## Why one addon may implement it
29902
+ *
29903
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29904
+ * itself. Nothing else declares a composite camera, so nothing else has a
29905
+ * layout — and the device-scoped route means the widget asks THE camera, not
29906
+ * "the camera-grid addon", which is what let the old custom-action pair be
29907
+ * reached only by a caller that already knew the addon id.
29908
+ *
29909
+ * ## The tab
29910
+ *
29911
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29912
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29913
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29914
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29915
+ * next to "PTZ").
29916
+ */
29917
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29918
+ var GridNormalizedRectSchema = object({
29919
+ x: number().min(0).max(1),
29920
+ y: number().min(0).max(1),
29921
+ width: number().gt(0).max(1),
29922
+ height: number().gt(0).max(1)
29923
+ });
29924
+ /**
29925
+ * One source camera, the part of its picture taken, and where that part lands.
29926
+ *
29927
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29928
+ * — a profile switch, a firmware update, a substream that comes back different
29929
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29930
+ * which is the class of bug nobody files.
29931
+ */
29932
+ var GridLayoutCellSchema = object({
29933
+ deviceId: number().int().positive(),
29934
+ /** The part of the SOURCE taken, normalized against the source. */
29935
+ source: GridNormalizedRectSchema,
29936
+ /** Where it lands, normalized against the CANVAS. */
29937
+ cell: GridNormalizedRectSchema
29938
+ });
29939
+ /**
29940
+ * Which profiles this grid can actually compose, and why not.
29941
+ *
29942
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29943
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29944
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29945
+ * low" is, and it is the one an operator can act on.
29946
+ */
29947
+ var GridProfileOfferSchema = object({
29948
+ profile: _enum([
29949
+ "high",
29950
+ "mid",
29951
+ "low"
29952
+ ]),
29953
+ offered: boolean(),
29954
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29955
+ missingSources: array(number().int().positive())
29956
+ });
29957
+ var GridLayoutViewSchema = object({
29958
+ /** The persisted grid row this camera was declared from. */
29959
+ instanceId: string(),
29960
+ deviceId: number().int().nonnegative(),
29961
+ name: string(),
29962
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29963
+ width: number().int(),
29964
+ height: number().int(),
29965
+ fps: number().int(),
29966
+ cells: array(GridLayoutCellSchema),
29967
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29968
+ profiles: array(GridProfileOfferSchema)
29969
+ });
29970
+ var GridLayoutPatchSchema = object({
29971
+ deviceId: number().int().nonnegative(),
29972
+ name: string().min(1).max(160).optional(),
29973
+ width: number().int().min(160).max(7680).optional(),
29974
+ height: number().int().min(120).max(4320).optional(),
29975
+ fps: number().int().min(1).max(60).optional(),
29976
+ /**
29977
+ * The whole cell list at once. A per-cell patch would need an ordering the
29978
+ * editor does not have, and a half-applied layout is a picture nobody asked
29979
+ * for.
29980
+ */
29981
+ cells: array(GridLayoutCellSchema).max(16)
29982
+ });
29983
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29984
+ kind: "mutation",
29985
+ auth: "admin"
29986
+ });
29987
+ /**
29858
29988
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29859
29989
  * on-camera motion-detection mask is a single `grid` region (a row-major
29860
29990
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37581,6 +37711,18 @@ Object.freeze({
37581
37711
  addonId: null,
37582
37712
  access: "view"
37583
37713
  },
37714
+ "cameraGridLayout.getLayout": {
37715
+ capName: "camera-grid-layout",
37716
+ capScope: "device",
37717
+ addonId: null,
37718
+ access: "view"
37719
+ },
37720
+ "cameraGridLayout.saveLayout": {
37721
+ capName: "camera-grid-layout",
37722
+ capScope: "device",
37723
+ addonId: null,
37724
+ access: "create"
37725
+ },
37584
37726
  "cameraStreams.getBrokerStreams": {
37585
37727
  capName: "camera-streams",
37586
37728
  capScope: "device",
@@ -43280,6 +43422,21 @@ Object.freeze({
43280
43422
  form: "single",
43281
43423
  optional: false
43282
43424
  }],
43425
+ "cameraGridLayout.getLayout": [{
43426
+ name: "deviceId",
43427
+ form: "single",
43428
+ optional: false
43429
+ }],
43430
+ "cameraGridLayout.saveLayout": [{
43431
+ name: "cells",
43432
+ form: "object-array",
43433
+ optional: false,
43434
+ itemField: "deviceId"
43435
+ }, {
43436
+ name: "deviceId",
43437
+ form: "single",
43438
+ optional: false
43439
+ }],
43283
43440
  "cameraStreams.getBrokerStreams": [{
43284
43441
  name: "deviceId",
43285
43442
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rademacher",
3
- "version": "0.2.112",
3
+ "version": "0.2.114",
4
4
  "description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
5
5
  "keywords": [
6
6
  "camstack",