@camstack/addon-provider-rademacher 0.2.112 → 0.2.113

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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29893
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29894
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29895
+ * all use it): the framework emits the structural section and the widget
29896
+ * self-persists through the cap's own mutations.
29897
+ *
29898
+ * ## Why one addon may implement it
29899
+ *
29900
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29901
+ * itself. Nothing else declares a composite camera, so nothing else has a
29902
+ * layout — and the device-scoped route means the widget asks THE camera, not
29903
+ * "the camera-grid addon", which is what let the old custom-action pair be
29904
+ * reached only by a caller that already knew the addon id.
29905
+ *
29906
+ * ## The tab
29907
+ *
29908
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29909
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29910
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29911
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29912
+ * next to "PTZ").
29913
+ */
29914
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29915
+ var GridNormalizedRectSchema = object({
29916
+ x: number().min(0).max(1),
29917
+ y: number().min(0).max(1),
29918
+ width: number().gt(0).max(1),
29919
+ height: number().gt(0).max(1)
29920
+ });
29921
+ /**
29922
+ * One source camera, the part of its picture taken, and where that part lands.
29923
+ *
29924
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29925
+ * — a profile switch, a firmware update, a substream that comes back different
29926
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29927
+ * which is the class of bug nobody files.
29928
+ */
29929
+ var GridLayoutCellSchema = object({
29930
+ deviceId: number().int().positive(),
29931
+ /** The part of the SOURCE taken, normalized against the source. */
29932
+ source: GridNormalizedRectSchema,
29933
+ /** Where it lands, normalized against the CANVAS. */
29934
+ cell: GridNormalizedRectSchema
29935
+ });
29936
+ /**
29937
+ * Which profiles this grid can actually compose, and why not.
29938
+ *
29939
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29940
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29941
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29942
+ * low" is, and it is the one an operator can act on.
29943
+ */
29944
+ var GridProfileOfferSchema = object({
29945
+ profile: _enum([
29946
+ "high",
29947
+ "mid",
29948
+ "low"
29949
+ ]),
29950
+ offered: boolean(),
29951
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29952
+ missingSources: array(number().int().positive())
29953
+ });
29954
+ var GridLayoutViewSchema = object({
29955
+ /** The persisted grid row this camera was declared from. */
29956
+ instanceId: string(),
29957
+ deviceId: number().int().nonnegative(),
29958
+ name: string(),
29959
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29960
+ width: number().int(),
29961
+ height: number().int(),
29962
+ fps: number().int(),
29963
+ cells: array(GridLayoutCellSchema),
29964
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29965
+ profiles: array(GridProfileOfferSchema)
29966
+ });
29967
+ var GridLayoutPatchSchema = object({
29968
+ deviceId: number().int().nonnegative(),
29969
+ name: string().min(1).max(160).optional(),
29970
+ width: number().int().min(160).max(7680).optional(),
29971
+ height: number().int().min(120).max(4320).optional(),
29972
+ fps: number().int().min(1).max(60).optional(),
29973
+ /**
29974
+ * The whole cell list at once. A per-cell patch would need an ordering the
29975
+ * editor does not have, and a half-applied layout is a picture nobody asked
29976
+ * for.
29977
+ */
29978
+ cells: array(GridLayoutCellSchema).max(16)
29979
+ });
29980
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29981
+ kind: "mutation",
29982
+ auth: "admin"
29983
+ });
29984
+ /**
29859
29985
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29860
29986
  * on-camera motion-detection mask is a single `grid` region (a row-major
29861
29987
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37582,6 +37708,18 @@ Object.freeze({
37582
37708
  addonId: null,
37583
37709
  access: "view"
37584
37710
  },
37711
+ "cameraGridLayout.getLayout": {
37712
+ capName: "camera-grid-layout",
37713
+ capScope: "device",
37714
+ addonId: null,
37715
+ access: "view"
37716
+ },
37717
+ "cameraGridLayout.saveLayout": {
37718
+ capName: "camera-grid-layout",
37719
+ capScope: "device",
37720
+ addonId: null,
37721
+ access: "create"
37722
+ },
37585
37723
  "cameraStreams.getBrokerStreams": {
37586
37724
  capName: "camera-streams",
37587
37725
  capScope: "device",
@@ -43281,6 +43419,21 @@ Object.freeze({
43281
43419
  form: "single",
43282
43420
  optional: false
43283
43421
  }],
43422
+ "cameraGridLayout.getLayout": [{
43423
+ name: "deviceId",
43424
+ form: "single",
43425
+ optional: false
43426
+ }],
43427
+ "cameraGridLayout.saveLayout": [{
43428
+ name: "cells",
43429
+ form: "object-array",
43430
+ optional: false,
43431
+ itemField: "deviceId"
43432
+ }, {
43433
+ name: "deviceId",
43434
+ form: "single",
43435
+ optional: false
43436
+ }],
43284
43437
  "cameraStreams.getBrokerStreams": [{
43285
43438
  name: "deviceId",
43286
43439
  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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29892
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29893
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29894
+ * all use it): the framework emits the structural section and the widget
29895
+ * self-persists through the cap's own mutations.
29896
+ *
29897
+ * ## Why one addon may implement it
29898
+ *
29899
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29900
+ * itself. Nothing else declares a composite camera, so nothing else has a
29901
+ * layout — and the device-scoped route means the widget asks THE camera, not
29902
+ * "the camera-grid addon", which is what let the old custom-action pair be
29903
+ * reached only by a caller that already knew the addon id.
29904
+ *
29905
+ * ## The tab
29906
+ *
29907
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29908
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29909
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29910
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29911
+ * next to "PTZ").
29912
+ */
29913
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29914
+ var GridNormalizedRectSchema = object({
29915
+ x: number().min(0).max(1),
29916
+ y: number().min(0).max(1),
29917
+ width: number().gt(0).max(1),
29918
+ height: number().gt(0).max(1)
29919
+ });
29920
+ /**
29921
+ * One source camera, the part of its picture taken, and where that part lands.
29922
+ *
29923
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29924
+ * — a profile switch, a firmware update, a substream that comes back different
29925
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29926
+ * which is the class of bug nobody files.
29927
+ */
29928
+ var GridLayoutCellSchema = object({
29929
+ deviceId: number().int().positive(),
29930
+ /** The part of the SOURCE taken, normalized against the source. */
29931
+ source: GridNormalizedRectSchema,
29932
+ /** Where it lands, normalized against the CANVAS. */
29933
+ cell: GridNormalizedRectSchema
29934
+ });
29935
+ /**
29936
+ * Which profiles this grid can actually compose, and why not.
29937
+ *
29938
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29939
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29940
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29941
+ * low" is, and it is the one an operator can act on.
29942
+ */
29943
+ var GridProfileOfferSchema = object({
29944
+ profile: _enum([
29945
+ "high",
29946
+ "mid",
29947
+ "low"
29948
+ ]),
29949
+ offered: boolean(),
29950
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29951
+ missingSources: array(number().int().positive())
29952
+ });
29953
+ var GridLayoutViewSchema = object({
29954
+ /** The persisted grid row this camera was declared from. */
29955
+ instanceId: string(),
29956
+ deviceId: number().int().nonnegative(),
29957
+ name: string(),
29958
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29959
+ width: number().int(),
29960
+ height: number().int(),
29961
+ fps: number().int(),
29962
+ cells: array(GridLayoutCellSchema),
29963
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29964
+ profiles: array(GridProfileOfferSchema)
29965
+ });
29966
+ var GridLayoutPatchSchema = object({
29967
+ deviceId: number().int().nonnegative(),
29968
+ name: string().min(1).max(160).optional(),
29969
+ width: number().int().min(160).max(7680).optional(),
29970
+ height: number().int().min(120).max(4320).optional(),
29971
+ fps: number().int().min(1).max(60).optional(),
29972
+ /**
29973
+ * The whole cell list at once. A per-cell patch would need an ordering the
29974
+ * editor does not have, and a half-applied layout is a picture nobody asked
29975
+ * for.
29976
+ */
29977
+ cells: array(GridLayoutCellSchema).max(16)
29978
+ });
29979
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29980
+ kind: "mutation",
29981
+ auth: "admin"
29982
+ });
29983
+ /**
29858
29984
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29859
29985
  * on-camera motion-detection mask is a single `grid` region (a row-major
29860
29986
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -37581,6 +37707,18 @@ Object.freeze({
37581
37707
  addonId: null,
37582
37708
  access: "view"
37583
37709
  },
37710
+ "cameraGridLayout.getLayout": {
37711
+ capName: "camera-grid-layout",
37712
+ capScope: "device",
37713
+ addonId: null,
37714
+ access: "view"
37715
+ },
37716
+ "cameraGridLayout.saveLayout": {
37717
+ capName: "camera-grid-layout",
37718
+ capScope: "device",
37719
+ addonId: null,
37720
+ access: "create"
37721
+ },
37584
37722
  "cameraStreams.getBrokerStreams": {
37585
37723
  capName: "camera-streams",
37586
37724
  capScope: "device",
@@ -43280,6 +43418,21 @@ Object.freeze({
43280
43418
  form: "single",
43281
43419
  optional: false
43282
43420
  }],
43421
+ "cameraGridLayout.getLayout": [{
43422
+ name: "deviceId",
43423
+ form: "single",
43424
+ optional: false
43425
+ }],
43426
+ "cameraGridLayout.saveLayout": [{
43427
+ name: "cells",
43428
+ form: "object-array",
43429
+ optional: false,
43430
+ itemField: "deviceId"
43431
+ }, {
43432
+ name: "deviceId",
43433
+ form: "single",
43434
+ optional: false
43435
+ }],
43283
43436
  "cameraStreams.getBrokerStreams": [{
43284
43437
  name: "deviceId",
43285
43438
  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.113",
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",