@camstack/addon-provider-rtsp 1.2.113 → 1.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
@@ -5384,7 +5384,7 @@ var ZodIssueCode = {
5384
5384
  var ZodFirstPartyTypeKind;
5385
5385
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5386
5386
  //#endregion
5387
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5387
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5388
5388
  /**
5389
5389
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5390
5390
  * window to float samples (D455).
@@ -11906,6 +11906,24 @@ var GetStreamWithCodecInputSchema = object({
11906
11906
  });
11907
11907
  var RtpSourceSchema = object({
11908
11908
  url: string(),
11909
+ /**
11910
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11911
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11912
+ *
11913
+ * The broker answers it because the broker is the only thing that can:
11914
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11915
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11916
+ * cap bindings would be a second authority, and two authorities on the same
11917
+ * question is how a composite camera ends up dialling a sleeping camera
11918
+ * because its own copy of the rule was a release behind.
11919
+ *
11920
+ * `null` is a real answer and is never a live url in disguise: a consumer
11921
+ * that silently fell back to {@link url} would perform exactly the wake this
11922
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11923
+ * transcode hands back an egress the broker is feeding itself, which has no
11924
+ * sentry counterpart.
11925
+ */
11926
+ sentryUrl: string().nullable().optional(),
11909
11927
  videoCodec: _enum(["H264", "H265"]),
11910
11928
  audioCodec: string(),
11911
11929
  resolution: object({
@@ -29039,6 +29057,114 @@ var motionTriggerCapability = {
29039
29057
  durability: "session"
29040
29058
  };
29041
29059
  /**
29060
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29061
+ * page.
29062
+ *
29063
+ * ## Why this is a capability and not an addon settings schema
29064
+ *
29065
+ * It was one, and it did not render. The addon declared the editor as a
29066
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29067
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29068
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29069
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29070
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29071
+ * not on it "falls off silently".
29072
+ *
29073
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29074
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29075
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
29076
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29077
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29078
+ * all use it): the framework emits the structural section and the widget
29079
+ * self-persists through the cap's own mutations.
29080
+ *
29081
+ * ## Why one addon may implement it
29082
+ *
29083
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29084
+ * itself. Nothing else declares a composite camera, so nothing else has a
29085
+ * layout — and the device-scoped route means the widget asks THE camera, not
29086
+ * "the camera-grid addon", which is what let the old custom-action pair be
29087
+ * reached only by a caller that already knew the addon id.
29088
+ *
29089
+ * ## The tab
29090
+ *
29091
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29092
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29093
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29094
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29095
+ * next to "PTZ").
29096
+ */
29097
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29098
+ var GridNormalizedRectSchema = object({
29099
+ x: number().min(0).max(1),
29100
+ y: number().min(0).max(1),
29101
+ width: number().gt(0).max(1),
29102
+ height: number().gt(0).max(1)
29103
+ });
29104
+ /**
29105
+ * One source camera, the part of its picture taken, and where that part lands.
29106
+ *
29107
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29108
+ * — a profile switch, a firmware update, a substream that comes back different
29109
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29110
+ * which is the class of bug nobody files.
29111
+ */
29112
+ var GridLayoutCellSchema = object({
29113
+ deviceId: number().int().positive(),
29114
+ /** The part of the SOURCE taken, normalized against the source. */
29115
+ source: GridNormalizedRectSchema,
29116
+ /** Where it lands, normalized against the CANVAS. */
29117
+ cell: GridNormalizedRectSchema
29118
+ });
29119
+ /**
29120
+ * Which profiles this grid can actually compose, and why not.
29121
+ *
29122
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29123
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29124
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29125
+ * low" is, and it is the one an operator can act on.
29126
+ */
29127
+ var GridProfileOfferSchema = object({
29128
+ profile: _enum([
29129
+ "high",
29130
+ "mid",
29131
+ "low"
29132
+ ]),
29133
+ offered: boolean(),
29134
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29135
+ missingSources: array(number().int().positive())
29136
+ });
29137
+ var GridLayoutViewSchema = object({
29138
+ /** The persisted grid row this camera was declared from. */
29139
+ instanceId: string(),
29140
+ deviceId: number().int().nonnegative(),
29141
+ name: string(),
29142
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29143
+ width: number().int(),
29144
+ height: number().int(),
29145
+ fps: number().int(),
29146
+ cells: array(GridLayoutCellSchema),
29147
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29148
+ profiles: array(GridProfileOfferSchema)
29149
+ });
29150
+ var GridLayoutPatchSchema = object({
29151
+ deviceId: number().int().nonnegative(),
29152
+ name: string().min(1).max(160).optional(),
29153
+ width: number().int().min(160).max(7680).optional(),
29154
+ height: number().int().min(120).max(4320).optional(),
29155
+ fps: number().int().min(1).max(60).optional(),
29156
+ /**
29157
+ * The whole cell list at once. A per-cell patch would need an ordering the
29158
+ * editor does not have, and a half-applied layout is a picture nobody asked
29159
+ * for.
29160
+ */
29161
+ cells: array(GridLayoutCellSchema).max(16)
29162
+ });
29163
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29164
+ kind: "mutation",
29165
+ auth: "admin"
29166
+ });
29167
+ /**
29042
29168
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29043
29169
  * on-camera motion-detection mask is a single `grid` region (a row-major
29044
29170
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36831,6 +36957,18 @@ Object.freeze({
36831
36957
  addonId: null,
36832
36958
  access: "view"
36833
36959
  },
36960
+ "cameraGridLayout.getLayout": {
36961
+ capName: "camera-grid-layout",
36962
+ capScope: "device",
36963
+ addonId: null,
36964
+ access: "view"
36965
+ },
36966
+ "cameraGridLayout.saveLayout": {
36967
+ capName: "camera-grid-layout",
36968
+ capScope: "device",
36969
+ addonId: null,
36970
+ access: "create"
36971
+ },
36834
36972
  "cameraStreams.getBrokerStreams": {
36835
36973
  capName: "camera-streams",
36836
36974
  capScope: "device",
@@ -42530,6 +42668,21 @@ Object.freeze({
42530
42668
  form: "single",
42531
42669
  optional: false
42532
42670
  }],
42671
+ "cameraGridLayout.getLayout": [{
42672
+ name: "deviceId",
42673
+ form: "single",
42674
+ optional: false
42675
+ }],
42676
+ "cameraGridLayout.saveLayout": [{
42677
+ name: "cells",
42678
+ form: "object-array",
42679
+ optional: false,
42680
+ itemField: "deviceId"
42681
+ }, {
42682
+ name: "deviceId",
42683
+ form: "single",
42684
+ optional: false
42685
+ }],
42533
42686
  "cameraStreams.getBrokerStreams": [{
42534
42687
  name: "deviceId",
42535
42688
  form: "single",
package/dist/addon.mjs 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).
@@ -11882,6 +11882,24 @@ var GetStreamWithCodecInputSchema = object({
11882
11882
  });
11883
11883
  var RtpSourceSchema = object({
11884
11884
  url: string(),
11885
+ /**
11886
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11887
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11888
+ *
11889
+ * The broker answers it because the broker is the only thing that can:
11890
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11891
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11892
+ * cap bindings would be a second authority, and two authorities on the same
11893
+ * question is how a composite camera ends up dialling a sleeping camera
11894
+ * because its own copy of the rule was a release behind.
11895
+ *
11896
+ * `null` is a real answer and is never a live url in disguise: a consumer
11897
+ * that silently fell back to {@link url} would perform exactly the wake this
11898
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11899
+ * transcode hands back an egress the broker is feeding itself, which has no
11900
+ * sentry counterpart.
11901
+ */
11902
+ sentryUrl: string().nullable().optional(),
11885
11903
  videoCodec: _enum(["H264", "H265"]),
11886
11904
  audioCodec: string(),
11887
11905
  resolution: object({
@@ -29015,6 +29033,114 @@ var motionTriggerCapability = {
29015
29033
  durability: "session"
29016
29034
  };
29017
29035
  /**
29036
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29037
+ * page.
29038
+ *
29039
+ * ## Why this is a capability and not an addon settings schema
29040
+ *
29041
+ * It was one, and it did not render. The addon declared the editor as a
29042
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29043
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29044
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29045
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29046
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29047
+ * not on it "falls off silently".
29048
+ *
29049
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29050
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29051
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
29052
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29053
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29054
+ * all use it): the framework emits the structural section and the widget
29055
+ * self-persists through the cap's own mutations.
29056
+ *
29057
+ * ## Why one addon may implement it
29058
+ *
29059
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29060
+ * itself. Nothing else declares a composite camera, so nothing else has a
29061
+ * layout — and the device-scoped route means the widget asks THE camera, not
29062
+ * "the camera-grid addon", which is what let the old custom-action pair be
29063
+ * reached only by a caller that already knew the addon id.
29064
+ *
29065
+ * ## The tab
29066
+ *
29067
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29068
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29069
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29070
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29071
+ * next to "PTZ").
29072
+ */
29073
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29074
+ var GridNormalizedRectSchema = object({
29075
+ x: number().min(0).max(1),
29076
+ y: number().min(0).max(1),
29077
+ width: number().gt(0).max(1),
29078
+ height: number().gt(0).max(1)
29079
+ });
29080
+ /**
29081
+ * One source camera, the part of its picture taken, and where that part lands.
29082
+ *
29083
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29084
+ * — a profile switch, a firmware update, a substream that comes back different
29085
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29086
+ * which is the class of bug nobody files.
29087
+ */
29088
+ var GridLayoutCellSchema = object({
29089
+ deviceId: number().int().positive(),
29090
+ /** The part of the SOURCE taken, normalized against the source. */
29091
+ source: GridNormalizedRectSchema,
29092
+ /** Where it lands, normalized against the CANVAS. */
29093
+ cell: GridNormalizedRectSchema
29094
+ });
29095
+ /**
29096
+ * Which profiles this grid can actually compose, and why not.
29097
+ *
29098
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29099
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29100
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29101
+ * low" is, and it is the one an operator can act on.
29102
+ */
29103
+ var GridProfileOfferSchema = object({
29104
+ profile: _enum([
29105
+ "high",
29106
+ "mid",
29107
+ "low"
29108
+ ]),
29109
+ offered: boolean(),
29110
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29111
+ missingSources: array(number().int().positive())
29112
+ });
29113
+ var GridLayoutViewSchema = object({
29114
+ /** The persisted grid row this camera was declared from. */
29115
+ instanceId: string(),
29116
+ deviceId: number().int().nonnegative(),
29117
+ name: string(),
29118
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29119
+ width: number().int(),
29120
+ height: number().int(),
29121
+ fps: number().int(),
29122
+ cells: array(GridLayoutCellSchema),
29123
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29124
+ profiles: array(GridProfileOfferSchema)
29125
+ });
29126
+ var GridLayoutPatchSchema = object({
29127
+ deviceId: number().int().nonnegative(),
29128
+ name: string().min(1).max(160).optional(),
29129
+ width: number().int().min(160).max(7680).optional(),
29130
+ height: number().int().min(120).max(4320).optional(),
29131
+ fps: number().int().min(1).max(60).optional(),
29132
+ /**
29133
+ * The whole cell list at once. A per-cell patch would need an ordering the
29134
+ * editor does not have, and a half-applied layout is a picture nobody asked
29135
+ * for.
29136
+ */
29137
+ cells: array(GridLayoutCellSchema).max(16)
29138
+ });
29139
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29140
+ kind: "mutation",
29141
+ auth: "admin"
29142
+ });
29143
+ /**
29018
29144
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29019
29145
  * on-camera motion-detection mask is a single `grid` region (a row-major
29020
29146
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36807,6 +36933,18 @@ Object.freeze({
36807
36933
  addonId: null,
36808
36934
  access: "view"
36809
36935
  },
36936
+ "cameraGridLayout.getLayout": {
36937
+ capName: "camera-grid-layout",
36938
+ capScope: "device",
36939
+ addonId: null,
36940
+ access: "view"
36941
+ },
36942
+ "cameraGridLayout.saveLayout": {
36943
+ capName: "camera-grid-layout",
36944
+ capScope: "device",
36945
+ addonId: null,
36946
+ access: "create"
36947
+ },
36810
36948
  "cameraStreams.getBrokerStreams": {
36811
36949
  capName: "camera-streams",
36812
36950
  capScope: "device",
@@ -42506,6 +42644,21 @@ Object.freeze({
42506
42644
  form: "single",
42507
42645
  optional: false
42508
42646
  }],
42647
+ "cameraGridLayout.getLayout": [{
42648
+ name: "deviceId",
42649
+ form: "single",
42650
+ optional: false
42651
+ }],
42652
+ "cameraGridLayout.saveLayout": [{
42653
+ name: "cells",
42654
+ form: "object-array",
42655
+ optional: false,
42656
+ itemField: "deviceId"
42657
+ }, {
42658
+ name: "deviceId",
42659
+ form: "single",
42660
+ optional: false
42661
+ }],
42509
42662
  "cameraStreams.getBrokerStreams": [{
42510
42663
  name: "deviceId",
42511
42664
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.2.113",
3
+ "version": "1.2.114",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",