@camstack/addon-provider-rtsp 1.2.113 → 1.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
@@ -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-GU_us3DG.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,118 @@ 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. The device page is
29076
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29077
+ * and this cap carries its section the way `recording` does, by RETURNING it
29078
+ * from `getDeviceSettingsContribution`.
29079
+ *
29080
+ * Seven other widgets are still declared the other way, through a
29081
+ * `deviceConfig.ui` block the framework derives a section from. That route
29082
+ * gives the addon no say in where its own panel lands and no way to decline
29083
+ * for a device the panel does not suit, which is why this one does not use it.
29084
+ *
29085
+ * ## Why one addon may implement it
29086
+ *
29087
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29088
+ * itself. Nothing else declares a composite camera, so nothing else has a
29089
+ * layout — and the device-scoped route means the widget asks THE camera, not
29090
+ * "the camera-grid addon", which is what let the old custom-action pair be
29091
+ * reached only by a caller that already knew the addon id.
29092
+ *
29093
+ * ## The tab
29094
+ *
29095
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29096
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29097
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29098
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29099
+ * next to "PTZ").
29100
+ */
29101
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29102
+ var GridNormalizedRectSchema = object({
29103
+ x: number().min(0).max(1),
29104
+ y: number().min(0).max(1),
29105
+ width: number().gt(0).max(1),
29106
+ height: number().gt(0).max(1)
29107
+ });
29108
+ /**
29109
+ * One source camera, the part of its picture taken, and where that part lands.
29110
+ *
29111
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29112
+ * — a profile switch, a firmware update, a substream that comes back different
29113
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29114
+ * which is the class of bug nobody files.
29115
+ */
29116
+ var GridLayoutCellSchema = object({
29117
+ deviceId: number().int().positive(),
29118
+ /** The part of the SOURCE taken, normalized against the source. */
29119
+ source: GridNormalizedRectSchema,
29120
+ /** Where it lands, normalized against the CANVAS. */
29121
+ cell: GridNormalizedRectSchema
29122
+ });
29123
+ /**
29124
+ * Which profiles this grid can actually compose, and why not.
29125
+ *
29126
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29127
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29128
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29129
+ * low" is, and it is the one an operator can act on.
29130
+ */
29131
+ var GridProfileOfferSchema = object({
29132
+ profile: _enum([
29133
+ "high",
29134
+ "mid",
29135
+ "low"
29136
+ ]),
29137
+ offered: boolean(),
29138
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29139
+ missingSources: array(number().int().positive())
29140
+ });
29141
+ var GridLayoutViewSchema = object({
29142
+ /** The persisted grid row this camera was declared from. */
29143
+ instanceId: string(),
29144
+ deviceId: number().int().nonnegative(),
29145
+ name: string(),
29146
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29147
+ width: number().int(),
29148
+ height: number().int(),
29149
+ fps: number().int(),
29150
+ cells: array(GridLayoutCellSchema),
29151
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29152
+ profiles: array(GridProfileOfferSchema)
29153
+ });
29154
+ var GridLayoutPatchSchema = object({
29155
+ deviceId: number().int().nonnegative(),
29156
+ name: string().min(1).max(160).optional(),
29157
+ width: number().int().min(160).max(7680).optional(),
29158
+ height: number().int().min(120).max(4320).optional(),
29159
+ fps: number().int().min(1).max(60).optional(),
29160
+ /**
29161
+ * The whole cell list at once. A per-cell patch would need an ordering the
29162
+ * editor does not have, and a half-applied layout is a picture nobody asked
29163
+ * for.
29164
+ */
29165
+ cells: array(GridLayoutCellSchema).max(16)
29166
+ });
29167
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29168
+ kind: "mutation",
29169
+ auth: "admin"
29170
+ });
29171
+ /**
29042
29172
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29043
29173
  * on-camera motion-detection mask is a single `grid` region (a row-major
29044
29174
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36831,6 +36961,18 @@ Object.freeze({
36831
36961
  addonId: null,
36832
36962
  access: "view"
36833
36963
  },
36964
+ "cameraGridLayout.getLayout": {
36965
+ capName: "camera-grid-layout",
36966
+ capScope: "device",
36967
+ addonId: null,
36968
+ access: "view"
36969
+ },
36970
+ "cameraGridLayout.saveLayout": {
36971
+ capName: "camera-grid-layout",
36972
+ capScope: "device",
36973
+ addonId: null,
36974
+ access: "create"
36975
+ },
36834
36976
  "cameraStreams.getBrokerStreams": {
36835
36977
  capName: "camera-streams",
36836
36978
  capScope: "device",
@@ -42530,6 +42672,21 @@ Object.freeze({
42530
42672
  form: "single",
42531
42673
  optional: false
42532
42674
  }],
42675
+ "cameraGridLayout.getLayout": [{
42676
+ name: "deviceId",
42677
+ form: "single",
42678
+ optional: false
42679
+ }],
42680
+ "cameraGridLayout.saveLayout": [{
42681
+ name: "cells",
42682
+ form: "object-array",
42683
+ optional: false,
42684
+ itemField: "deviceId"
42685
+ }, {
42686
+ name: "deviceId",
42687
+ form: "single",
42688
+ optional: false
42689
+ }],
42533
42690
  "cameraStreams.getBrokerStreams": [{
42534
42691
  name: "deviceId",
42535
42692
  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-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).
@@ -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,118 @@ 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. The device page is
29052
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29053
+ * and this cap carries its section the way `recording` does, by RETURNING it
29054
+ * from `getDeviceSettingsContribution`.
29055
+ *
29056
+ * Seven other widgets are still declared the other way, through a
29057
+ * `deviceConfig.ui` block the framework derives a section from. That route
29058
+ * gives the addon no say in where its own panel lands and no way to decline
29059
+ * for a device the panel does not suit, which is why this one does not use it.
29060
+ *
29061
+ * ## Why one addon may implement it
29062
+ *
29063
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29064
+ * itself. Nothing else declares a composite camera, so nothing else has a
29065
+ * layout — and the device-scoped route means the widget asks THE camera, not
29066
+ * "the camera-grid addon", which is what let the old custom-action pair be
29067
+ * reached only by a caller that already knew the addon id.
29068
+ *
29069
+ * ## The tab
29070
+ *
29071
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29072
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29073
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29074
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29075
+ * next to "PTZ").
29076
+ */
29077
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29078
+ var GridNormalizedRectSchema = object({
29079
+ x: number().min(0).max(1),
29080
+ y: number().min(0).max(1),
29081
+ width: number().gt(0).max(1),
29082
+ height: number().gt(0).max(1)
29083
+ });
29084
+ /**
29085
+ * One source camera, the part of its picture taken, and where that part lands.
29086
+ *
29087
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29088
+ * — a profile switch, a firmware update, a substream that comes back different
29089
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29090
+ * which is the class of bug nobody files.
29091
+ */
29092
+ var GridLayoutCellSchema = object({
29093
+ deviceId: number().int().positive(),
29094
+ /** The part of the SOURCE taken, normalized against the source. */
29095
+ source: GridNormalizedRectSchema,
29096
+ /** Where it lands, normalized against the CANVAS. */
29097
+ cell: GridNormalizedRectSchema
29098
+ });
29099
+ /**
29100
+ * Which profiles this grid can actually compose, and why not.
29101
+ *
29102
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29103
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29104
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29105
+ * low" is, and it is the one an operator can act on.
29106
+ */
29107
+ var GridProfileOfferSchema = object({
29108
+ profile: _enum([
29109
+ "high",
29110
+ "mid",
29111
+ "low"
29112
+ ]),
29113
+ offered: boolean(),
29114
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29115
+ missingSources: array(number().int().positive())
29116
+ });
29117
+ var GridLayoutViewSchema = object({
29118
+ /** The persisted grid row this camera was declared from. */
29119
+ instanceId: string(),
29120
+ deviceId: number().int().nonnegative(),
29121
+ name: string(),
29122
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29123
+ width: number().int(),
29124
+ height: number().int(),
29125
+ fps: number().int(),
29126
+ cells: array(GridLayoutCellSchema),
29127
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29128
+ profiles: array(GridProfileOfferSchema)
29129
+ });
29130
+ var GridLayoutPatchSchema = object({
29131
+ deviceId: number().int().nonnegative(),
29132
+ name: string().min(1).max(160).optional(),
29133
+ width: number().int().min(160).max(7680).optional(),
29134
+ height: number().int().min(120).max(4320).optional(),
29135
+ fps: number().int().min(1).max(60).optional(),
29136
+ /**
29137
+ * The whole cell list at once. A per-cell patch would need an ordering the
29138
+ * editor does not have, and a half-applied layout is a picture nobody asked
29139
+ * for.
29140
+ */
29141
+ cells: array(GridLayoutCellSchema).max(16)
29142
+ });
29143
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29144
+ kind: "mutation",
29145
+ auth: "admin"
29146
+ });
29147
+ /**
29018
29148
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29019
29149
  * on-camera motion-detection mask is a single `grid` region (a row-major
29020
29150
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36807,6 +36937,18 @@ Object.freeze({
36807
36937
  addonId: null,
36808
36938
  access: "view"
36809
36939
  },
36940
+ "cameraGridLayout.getLayout": {
36941
+ capName: "camera-grid-layout",
36942
+ capScope: "device",
36943
+ addonId: null,
36944
+ access: "view"
36945
+ },
36946
+ "cameraGridLayout.saveLayout": {
36947
+ capName: "camera-grid-layout",
36948
+ capScope: "device",
36949
+ addonId: null,
36950
+ access: "create"
36951
+ },
36810
36952
  "cameraStreams.getBrokerStreams": {
36811
36953
  capName: "camera-streams",
36812
36954
  capScope: "device",
@@ -42506,6 +42648,21 @@ Object.freeze({
42506
42648
  form: "single",
42507
42649
  optional: false
42508
42650
  }],
42651
+ "cameraGridLayout.getLayout": [{
42652
+ name: "deviceId",
42653
+ form: "single",
42654
+ optional: false
42655
+ }],
42656
+ "cameraGridLayout.saveLayout": [{
42657
+ name: "cells",
42658
+ form: "object-array",
42659
+ optional: false,
42660
+ itemField: "deviceId"
42661
+ }, {
42662
+ name: "deviceId",
42663
+ form: "single",
42664
+ optional: false
42665
+ }],
42509
42666
  "cameraStreams.getBrokerStreams": [{
42510
42667
  name: "deviceId",
42511
42668
  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.115",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",