@camstack/addon-matter-broker 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
@@ -5374,7 +5374,7 @@ var ZodIssueCode = {
5374
5374
  var ZodFirstPartyTypeKind;
5375
5375
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5376
5376
  //#endregion
5377
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5377
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5378
5378
  /**
5379
5379
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5380
5380
  * window to float samples (D455).
@@ -11913,6 +11913,24 @@ var GetStreamWithCodecInputSchema = object({
11913
11913
  });
11914
11914
  var RtpSourceSchema = object({
11915
11915
  url: string$2(),
11916
+ /**
11917
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11918
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11919
+ *
11920
+ * The broker answers it because the broker is the only thing that can:
11921
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11922
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11923
+ * cap bindings would be a second authority, and two authorities on the same
11924
+ * question is how a composite camera ends up dialling a sleeping camera
11925
+ * because its own copy of the rule was a release behind.
11926
+ *
11927
+ * `null` is a real answer and is never a live url in disguise: a consumer
11928
+ * that silently fell back to {@link url} would perform exactly the wake this
11929
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11930
+ * transcode hands back an egress the broker is feeding itself, which has no
11931
+ * sentry counterpart.
11932
+ */
11933
+ sentryUrl: string$2().nullable().optional(),
11916
11934
  videoCodec: _enum(["H264", "H265"]),
11917
11935
  audioCodec: string$2(),
11918
11936
  resolution: object({
@@ -28968,6 +28986,118 @@ var motionTriggerCapability = {
28968
28986
  durability: "session"
28969
28987
  };
28970
28988
  /**
28989
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28990
+ * page.
28991
+ *
28992
+ * ## Why this is a capability and not an addon settings schema
28993
+ *
28994
+ * It was one, and it did not render. The addon declared the editor as a
28995
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28996
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28997
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28998
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28999
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29000
+ * not on it "falls off silently".
29001
+ *
29002
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29003
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29004
+ * beside PTZ and motion zones on the camera itself. The device page is
29005
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29006
+ * and this cap carries its section the way `recording` does, by RETURNING it
29007
+ * from `getDeviceSettingsContribution`.
29008
+ *
29009
+ * Seven other widgets are still declared the other way, through a
29010
+ * `deviceConfig.ui` block the framework derives a section from. That route
29011
+ * gives the addon no say in where its own panel lands and no way to decline
29012
+ * for a device the panel does not suit, which is why this one does not use it.
29013
+ *
29014
+ * ## Why one addon may implement it
29015
+ *
29016
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29017
+ * itself. Nothing else declares a composite camera, so nothing else has a
29018
+ * layout — and the device-scoped route means the widget asks THE camera, not
29019
+ * "the camera-grid addon", which is what let the old custom-action pair be
29020
+ * reached only by a caller that already knew the addon id.
29021
+ *
29022
+ * ## The tab
29023
+ *
29024
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29025
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29026
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29027
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29028
+ * next to "PTZ").
29029
+ */
29030
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29031
+ var GridNormalizedRectSchema = object({
29032
+ x: number().min(0).max(1),
29033
+ y: number().min(0).max(1),
29034
+ width: number().gt(0).max(1),
29035
+ height: number().gt(0).max(1)
29036
+ });
29037
+ /**
29038
+ * One source camera, the part of its picture taken, and where that part lands.
29039
+ *
29040
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29041
+ * — a profile switch, a firmware update, a substream that comes back different
29042
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29043
+ * which is the class of bug nobody files.
29044
+ */
29045
+ var GridLayoutCellSchema = object({
29046
+ deviceId: number().int().positive(),
29047
+ /** The part of the SOURCE taken, normalized against the source. */
29048
+ source: GridNormalizedRectSchema,
29049
+ /** Where it lands, normalized against the CANVAS. */
29050
+ cell: GridNormalizedRectSchema
29051
+ });
29052
+ /**
29053
+ * Which profiles this grid can actually compose, and why not.
29054
+ *
29055
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29056
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29057
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29058
+ * low" is, and it is the one an operator can act on.
29059
+ */
29060
+ var GridProfileOfferSchema = object({
29061
+ profile: _enum([
29062
+ "high",
29063
+ "mid",
29064
+ "low"
29065
+ ]),
29066
+ offered: boolean(),
29067
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29068
+ missingSources: array(number().int().positive())
29069
+ });
29070
+ var GridLayoutViewSchema = object({
29071
+ /** The persisted grid row this camera was declared from. */
29072
+ instanceId: string$2(),
29073
+ deviceId: number().int().nonnegative(),
29074
+ name: string$2(),
29075
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29076
+ width: number().int(),
29077
+ height: number().int(),
29078
+ fps: number().int(),
29079
+ cells: array(GridLayoutCellSchema),
29080
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29081
+ profiles: array(GridProfileOfferSchema)
29082
+ });
29083
+ var GridLayoutPatchSchema = object({
29084
+ deviceId: number().int().nonnegative(),
29085
+ name: string$2().min(1).max(160).optional(),
29086
+ width: number().int().min(160).max(7680).optional(),
29087
+ height: number().int().min(120).max(4320).optional(),
29088
+ fps: number().int().min(1).max(60).optional(),
29089
+ /**
29090
+ * The whole cell list at once. A per-cell patch would need an ordering the
29091
+ * editor does not have, and a half-applied layout is a picture nobody asked
29092
+ * for.
29093
+ */
29094
+ cells: array(GridLayoutCellSchema).max(16)
29095
+ });
29096
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29097
+ kind: "mutation",
29098
+ auth: "admin"
29099
+ });
29100
+ /**
28971
29101
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28972
29102
  * on-camera motion-detection mask is a single `grid` region (a row-major
28973
29103
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36694,6 +36824,18 @@ Object.freeze({
36694
36824
  addonId: null,
36695
36825
  access: "view"
36696
36826
  },
36827
+ "cameraGridLayout.getLayout": {
36828
+ capName: "camera-grid-layout",
36829
+ capScope: "device",
36830
+ addonId: null,
36831
+ access: "view"
36832
+ },
36833
+ "cameraGridLayout.saveLayout": {
36834
+ capName: "camera-grid-layout",
36835
+ capScope: "device",
36836
+ addonId: null,
36837
+ access: "create"
36838
+ },
36697
36839
  "cameraStreams.getBrokerStreams": {
36698
36840
  capName: "camera-streams",
36699
36841
  capScope: "device",
@@ -42393,6 +42535,21 @@ Object.freeze({
42393
42535
  form: "single",
42394
42536
  optional: false
42395
42537
  }],
42538
+ "cameraGridLayout.getLayout": [{
42539
+ name: "deviceId",
42540
+ form: "single",
42541
+ optional: false
42542
+ }],
42543
+ "cameraGridLayout.saveLayout": [{
42544
+ name: "cells",
42545
+ form: "object-array",
42546
+ optional: false,
42547
+ itemField: "deviceId"
42548
+ }, {
42549
+ name: "deviceId",
42550
+ form: "single",
42551
+ optional: false
42552
+ }],
42396
42553
  "cameraStreams.getBrokerStreams": [{
42397
42554
  name: "deviceId",
42398
42555
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5372,7 +5372,7 @@ var ZodIssueCode = {
5372
5372
  var ZodFirstPartyTypeKind;
5373
5373
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5374
5374
  //#endregion
5375
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5375
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5376
5376
  /**
5377
5377
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5378
5378
  * window to float samples (D455).
@@ -11911,6 +11911,24 @@ var GetStreamWithCodecInputSchema = object({
11911
11911
  });
11912
11912
  var RtpSourceSchema = object({
11913
11913
  url: string$2(),
11914
+ /**
11915
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11916
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11917
+ *
11918
+ * The broker answers it because the broker is the only thing that can:
11919
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11920
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11921
+ * cap bindings would be a second authority, and two authorities on the same
11922
+ * question is how a composite camera ends up dialling a sleeping camera
11923
+ * because its own copy of the rule was a release behind.
11924
+ *
11925
+ * `null` is a real answer and is never a live url in disguise: a consumer
11926
+ * that silently fell back to {@link url} would perform exactly the wake this
11927
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11928
+ * transcode hands back an egress the broker is feeding itself, which has no
11929
+ * sentry counterpart.
11930
+ */
11931
+ sentryUrl: string$2().nullable().optional(),
11914
11932
  videoCodec: _enum(["H264", "H265"]),
11915
11933
  audioCodec: string$2(),
11916
11934
  resolution: object({
@@ -28966,6 +28984,118 @@ var motionTriggerCapability = {
28966
28984
  durability: "session"
28967
28985
  };
28968
28986
  /**
28987
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
28988
+ * page.
28989
+ *
28990
+ * ## Why this is a capability and not an addon settings schema
28991
+ *
28992
+ * It was one, and it did not render. The addon declared the editor as a
28993
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
28994
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
28995
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
28996
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
28997
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
28998
+ * not on it "falls off silently".
28999
+ *
29000
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29001
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29002
+ * beside PTZ and motion zones on the camera itself. The device page is
29003
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29004
+ * and this cap carries its section the way `recording` does, by RETURNING it
29005
+ * from `getDeviceSettingsContribution`.
29006
+ *
29007
+ * Seven other widgets are still declared the other way, through a
29008
+ * `deviceConfig.ui` block the framework derives a section from. That route
29009
+ * gives the addon no say in where its own panel lands and no way to decline
29010
+ * for a device the panel does not suit, which is why this one does not use it.
29011
+ *
29012
+ * ## Why one addon may implement it
29013
+ *
29014
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29015
+ * itself. Nothing else declares a composite camera, so nothing else has a
29016
+ * layout — and the device-scoped route means the widget asks THE camera, not
29017
+ * "the camera-grid addon", which is what let the old custom-action pair be
29018
+ * reached only by a caller that already knew the addon id.
29019
+ *
29020
+ * ## The tab
29021
+ *
29022
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29023
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29024
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29025
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29026
+ * next to "PTZ").
29027
+ */
29028
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29029
+ var GridNormalizedRectSchema = object({
29030
+ x: number().min(0).max(1),
29031
+ y: number().min(0).max(1),
29032
+ width: number().gt(0).max(1),
29033
+ height: number().gt(0).max(1)
29034
+ });
29035
+ /**
29036
+ * One source camera, the part of its picture taken, and where that part lands.
29037
+ *
29038
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29039
+ * — a profile switch, a firmware update, a substream that comes back different
29040
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29041
+ * which is the class of bug nobody files.
29042
+ */
29043
+ var GridLayoutCellSchema = object({
29044
+ deviceId: number().int().positive(),
29045
+ /** The part of the SOURCE taken, normalized against the source. */
29046
+ source: GridNormalizedRectSchema,
29047
+ /** Where it lands, normalized against the CANVAS. */
29048
+ cell: GridNormalizedRectSchema
29049
+ });
29050
+ /**
29051
+ * Which profiles this grid can actually compose, and why not.
29052
+ *
29053
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29054
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29055
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29056
+ * low" is, and it is the one an operator can act on.
29057
+ */
29058
+ var GridProfileOfferSchema = object({
29059
+ profile: _enum([
29060
+ "high",
29061
+ "mid",
29062
+ "low"
29063
+ ]),
29064
+ offered: boolean(),
29065
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29066
+ missingSources: array(number().int().positive())
29067
+ });
29068
+ var GridLayoutViewSchema = object({
29069
+ /** The persisted grid row this camera was declared from. */
29070
+ instanceId: string$2(),
29071
+ deviceId: number().int().nonnegative(),
29072
+ name: string$2(),
29073
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29074
+ width: number().int(),
29075
+ height: number().int(),
29076
+ fps: number().int(),
29077
+ cells: array(GridLayoutCellSchema),
29078
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29079
+ profiles: array(GridProfileOfferSchema)
29080
+ });
29081
+ var GridLayoutPatchSchema = object({
29082
+ deviceId: number().int().nonnegative(),
29083
+ name: string$2().min(1).max(160).optional(),
29084
+ width: number().int().min(160).max(7680).optional(),
29085
+ height: number().int().min(120).max(4320).optional(),
29086
+ fps: number().int().min(1).max(60).optional(),
29087
+ /**
29088
+ * The whole cell list at once. A per-cell patch would need an ordering the
29089
+ * editor does not have, and a half-applied layout is a picture nobody asked
29090
+ * for.
29091
+ */
29092
+ cells: array(GridLayoutCellSchema).max(16)
29093
+ });
29094
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29095
+ kind: "mutation",
29096
+ auth: "admin"
29097
+ });
29098
+ /**
28969
29099
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
28970
29100
  * on-camera motion-detection mask is a single `grid` region (a row-major
28971
29101
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36692,6 +36822,18 @@ Object.freeze({
36692
36822
  addonId: null,
36693
36823
  access: "view"
36694
36824
  },
36825
+ "cameraGridLayout.getLayout": {
36826
+ capName: "camera-grid-layout",
36827
+ capScope: "device",
36828
+ addonId: null,
36829
+ access: "view"
36830
+ },
36831
+ "cameraGridLayout.saveLayout": {
36832
+ capName: "camera-grid-layout",
36833
+ capScope: "device",
36834
+ addonId: null,
36835
+ access: "create"
36836
+ },
36695
36837
  "cameraStreams.getBrokerStreams": {
36696
36838
  capName: "camera-streams",
36697
36839
  capScope: "device",
@@ -42391,6 +42533,21 @@ Object.freeze({
42391
42533
  form: "single",
42392
42534
  optional: false
42393
42535
  }],
42536
+ "cameraGridLayout.getLayout": [{
42537
+ name: "deviceId",
42538
+ form: "single",
42539
+ optional: false
42540
+ }],
42541
+ "cameraGridLayout.saveLayout": [{
42542
+ name: "cells",
42543
+ form: "object-array",
42544
+ optional: false,
42545
+ itemField: "deviceId"
42546
+ }, {
42547
+ name: "deviceId",
42548
+ form: "single",
42549
+ optional: false
42550
+ }],
42394
42551
  "cameraStreams.getBrokerStreams": [{
42395
42552
  name: "deviceId",
42396
42553
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.112",
3
+ "version": "0.2.114",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",