@camstack/addon-decoder-nodeav 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/index.js CHANGED
@@ -5364,7 +5364,7 @@ var ZodIssueCode = {
5364
5364
  var ZodFirstPartyTypeKind;
5365
5365
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5366
5366
  //#endregion
5367
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5367
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5368
5368
  /**
5369
5369
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5370
5370
  * window to float samples (D455).
@@ -11858,6 +11858,24 @@ var GetStreamWithCodecInputSchema = object({
11858
11858
  });
11859
11859
  var RtpSourceSchema = object({
11860
11860
  url: string(),
11861
+ /**
11862
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11863
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11864
+ *
11865
+ * The broker answers it because the broker is the only thing that can:
11866
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11867
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11868
+ * cap bindings would be a second authority, and two authorities on the same
11869
+ * question is how a composite camera ends up dialling a sleeping camera
11870
+ * because its own copy of the rule was a release behind.
11871
+ *
11872
+ * `null` is a real answer and is never a live url in disguise: a consumer
11873
+ * that silently fell back to {@link url} would perform exactly the wake this
11874
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11875
+ * transcode hands back an egress the broker is feeding itself, which has no
11876
+ * sentry counterpart.
11877
+ */
11878
+ sentryUrl: string().nullable().optional(),
11861
11879
  videoCodec: _enum(["H264", "H265"]),
11862
11880
  audioCodec: string(),
11863
11881
  resolution: object({
@@ -27293,6 +27311,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27293
27311
  lastChangedAt: number()
27294
27312
  });
27295
27313
  /**
27314
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27315
+ * page.
27316
+ *
27317
+ * ## Why this is a capability and not an addon settings schema
27318
+ *
27319
+ * It was one, and it did not render. The addon declared the editor as a
27320
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27321
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27322
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27323
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27324
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27325
+ * not on it "falls off silently".
27326
+ *
27327
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27328
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27329
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27330
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27331
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27332
+ * all use it): the framework emits the structural section and the widget
27333
+ * self-persists through the cap's own mutations.
27334
+ *
27335
+ * ## Why one addon may implement it
27336
+ *
27337
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27338
+ * itself. Nothing else declares a composite camera, so nothing else has a
27339
+ * layout — and the device-scoped route means the widget asks THE camera, not
27340
+ * "the camera-grid addon", which is what let the old custom-action pair be
27341
+ * reached only by a caller that already knew the addon id.
27342
+ *
27343
+ * ## The tab
27344
+ *
27345
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27346
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27347
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27348
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27349
+ * next to "PTZ").
27350
+ */
27351
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27352
+ var GridNormalizedRectSchema = object({
27353
+ x: number().min(0).max(1),
27354
+ y: number().min(0).max(1),
27355
+ width: number().gt(0).max(1),
27356
+ height: number().gt(0).max(1)
27357
+ });
27358
+ /**
27359
+ * One source camera, the part of its picture taken, and where that part lands.
27360
+ *
27361
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27362
+ * — a profile switch, a firmware update, a substream that comes back different
27363
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27364
+ * which is the class of bug nobody files.
27365
+ */
27366
+ var GridLayoutCellSchema = object({
27367
+ deviceId: number().int().positive(),
27368
+ /** The part of the SOURCE taken, normalized against the source. */
27369
+ source: GridNormalizedRectSchema,
27370
+ /** Where it lands, normalized against the CANVAS. */
27371
+ cell: GridNormalizedRectSchema
27372
+ });
27373
+ /**
27374
+ * Which profiles this grid can actually compose, and why not.
27375
+ *
27376
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27377
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27378
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27379
+ * low" is, and it is the one an operator can act on.
27380
+ */
27381
+ var GridProfileOfferSchema = object({
27382
+ profile: _enum([
27383
+ "high",
27384
+ "mid",
27385
+ "low"
27386
+ ]),
27387
+ offered: boolean(),
27388
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27389
+ missingSources: array(number().int().positive())
27390
+ });
27391
+ var GridLayoutViewSchema = object({
27392
+ /** The persisted grid row this camera was declared from. */
27393
+ instanceId: string(),
27394
+ deviceId: number().int().nonnegative(),
27395
+ name: string(),
27396
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27397
+ width: number().int(),
27398
+ height: number().int(),
27399
+ fps: number().int(),
27400
+ cells: array(GridLayoutCellSchema),
27401
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27402
+ profiles: array(GridProfileOfferSchema)
27403
+ });
27404
+ var GridLayoutPatchSchema = object({
27405
+ deviceId: number().int().nonnegative(),
27406
+ name: string().min(1).max(160).optional(),
27407
+ width: number().int().min(160).max(7680).optional(),
27408
+ height: number().int().min(120).max(4320).optional(),
27409
+ fps: number().int().min(1).max(60).optional(),
27410
+ /**
27411
+ * The whole cell list at once. A per-cell patch would need an ordering the
27412
+ * editor does not have, and a half-applied layout is a picture nobody asked
27413
+ * for.
27414
+ */
27415
+ cells: array(GridLayoutCellSchema).max(16)
27416
+ });
27417
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27418
+ kind: "mutation",
27419
+ auth: "admin"
27420
+ });
27421
+ /**
27296
27422
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27297
27423
  * on-camera motion-detection mask is a single `grid` region (a row-major
27298
27424
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32321,6 +32447,18 @@ Object.freeze({
32321
32447
  addonId: null,
32322
32448
  access: "view"
32323
32449
  },
32450
+ "cameraGridLayout.getLayout": {
32451
+ capName: "camera-grid-layout",
32452
+ capScope: "device",
32453
+ addonId: null,
32454
+ access: "view"
32455
+ },
32456
+ "cameraGridLayout.saveLayout": {
32457
+ capName: "camera-grid-layout",
32458
+ capScope: "device",
32459
+ addonId: null,
32460
+ access: "create"
32461
+ },
32324
32462
  "cameraStreams.getBrokerStreams": {
32325
32463
  capName: "camera-streams",
32326
32464
  capScope: "device",
@@ -38020,6 +38158,21 @@ Object.freeze({
38020
38158
  form: "single",
38021
38159
  optional: false
38022
38160
  }],
38161
+ "cameraGridLayout.getLayout": [{
38162
+ name: "deviceId",
38163
+ form: "single",
38164
+ optional: false
38165
+ }],
38166
+ "cameraGridLayout.saveLayout": [{
38167
+ name: "cells",
38168
+ form: "object-array",
38169
+ optional: false,
38170
+ itemField: "deviceId"
38171
+ }, {
38172
+ name: "deviceId",
38173
+ form: "single",
38174
+ optional: false
38175
+ }],
38023
38176
  "cameraStreams.getBrokerStreams": [{
38024
38177
  name: "deviceId",
38025
38178
  form: "single",
package/dist/index.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).
@@ -11854,6 +11854,24 @@ var GetStreamWithCodecInputSchema = object({
11854
11854
  });
11855
11855
  var RtpSourceSchema = object({
11856
11856
  url: string(),
11857
+ /**
11858
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11859
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11860
+ *
11861
+ * The broker answers it because the broker is the only thing that can:
11862
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11863
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11864
+ * cap bindings would be a second authority, and two authorities on the same
11865
+ * question is how a composite camera ends up dialling a sleeping camera
11866
+ * because its own copy of the rule was a release behind.
11867
+ *
11868
+ * `null` is a real answer and is never a live url in disguise: a consumer
11869
+ * that silently fell back to {@link url} would perform exactly the wake this
11870
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11871
+ * transcode hands back an egress the broker is feeding itself, which has no
11872
+ * sentry counterpart.
11873
+ */
11874
+ sentryUrl: string().nullable().optional(),
11857
11875
  videoCodec: _enum(["H264", "H265"]),
11858
11876
  audioCodec: string(),
11859
11877
  resolution: object({
@@ -27289,6 +27307,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27289
27307
  lastChangedAt: number()
27290
27308
  });
27291
27309
  /**
27310
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27311
+ * page.
27312
+ *
27313
+ * ## Why this is a capability and not an addon settings schema
27314
+ *
27315
+ * It was one, and it did not render. The addon declared the editor as a
27316
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27317
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27318
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27319
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27320
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27321
+ * not on it "falls off silently".
27322
+ *
27323
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27324
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27325
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27326
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27327
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27328
+ * all use it): the framework emits the structural section and the widget
27329
+ * self-persists through the cap's own mutations.
27330
+ *
27331
+ * ## Why one addon may implement it
27332
+ *
27333
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27334
+ * itself. Nothing else declares a composite camera, so nothing else has a
27335
+ * layout — and the device-scoped route means the widget asks THE camera, not
27336
+ * "the camera-grid addon", which is what let the old custom-action pair be
27337
+ * reached only by a caller that already knew the addon id.
27338
+ *
27339
+ * ## The tab
27340
+ *
27341
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27342
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27343
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27344
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27345
+ * next to "PTZ").
27346
+ */
27347
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27348
+ var GridNormalizedRectSchema = object({
27349
+ x: number().min(0).max(1),
27350
+ y: number().min(0).max(1),
27351
+ width: number().gt(0).max(1),
27352
+ height: number().gt(0).max(1)
27353
+ });
27354
+ /**
27355
+ * One source camera, the part of its picture taken, and where that part lands.
27356
+ *
27357
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27358
+ * — a profile switch, a firmware update, a substream that comes back different
27359
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27360
+ * which is the class of bug nobody files.
27361
+ */
27362
+ var GridLayoutCellSchema = object({
27363
+ deviceId: number().int().positive(),
27364
+ /** The part of the SOURCE taken, normalized against the source. */
27365
+ source: GridNormalizedRectSchema,
27366
+ /** Where it lands, normalized against the CANVAS. */
27367
+ cell: GridNormalizedRectSchema
27368
+ });
27369
+ /**
27370
+ * Which profiles this grid can actually compose, and why not.
27371
+ *
27372
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27373
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27374
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27375
+ * low" is, and it is the one an operator can act on.
27376
+ */
27377
+ var GridProfileOfferSchema = object({
27378
+ profile: _enum([
27379
+ "high",
27380
+ "mid",
27381
+ "low"
27382
+ ]),
27383
+ offered: boolean(),
27384
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27385
+ missingSources: array(number().int().positive())
27386
+ });
27387
+ var GridLayoutViewSchema = object({
27388
+ /** The persisted grid row this camera was declared from. */
27389
+ instanceId: string(),
27390
+ deviceId: number().int().nonnegative(),
27391
+ name: string(),
27392
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27393
+ width: number().int(),
27394
+ height: number().int(),
27395
+ fps: number().int(),
27396
+ cells: array(GridLayoutCellSchema),
27397
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27398
+ profiles: array(GridProfileOfferSchema)
27399
+ });
27400
+ var GridLayoutPatchSchema = object({
27401
+ deviceId: number().int().nonnegative(),
27402
+ name: string().min(1).max(160).optional(),
27403
+ width: number().int().min(160).max(7680).optional(),
27404
+ height: number().int().min(120).max(4320).optional(),
27405
+ fps: number().int().min(1).max(60).optional(),
27406
+ /**
27407
+ * The whole cell list at once. A per-cell patch would need an ordering the
27408
+ * editor does not have, and a half-applied layout is a picture nobody asked
27409
+ * for.
27410
+ */
27411
+ cells: array(GridLayoutCellSchema).max(16)
27412
+ });
27413
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27414
+ kind: "mutation",
27415
+ auth: "admin"
27416
+ });
27417
+ /**
27292
27418
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27293
27419
  * on-camera motion-detection mask is a single `grid` region (a row-major
27294
27420
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32317,6 +32443,18 @@ Object.freeze({
32317
32443
  addonId: null,
32318
32444
  access: "view"
32319
32445
  },
32446
+ "cameraGridLayout.getLayout": {
32447
+ capName: "camera-grid-layout",
32448
+ capScope: "device",
32449
+ addonId: null,
32450
+ access: "view"
32451
+ },
32452
+ "cameraGridLayout.saveLayout": {
32453
+ capName: "camera-grid-layout",
32454
+ capScope: "device",
32455
+ addonId: null,
32456
+ access: "create"
32457
+ },
32320
32458
  "cameraStreams.getBrokerStreams": {
32321
32459
  capName: "camera-streams",
32322
32460
  capScope: "device",
@@ -38016,6 +38154,21 @@ Object.freeze({
38016
38154
  form: "single",
38017
38155
  optional: false
38018
38156
  }],
38157
+ "cameraGridLayout.getLayout": [{
38158
+ name: "deviceId",
38159
+ form: "single",
38160
+ optional: false
38161
+ }],
38162
+ "cameraGridLayout.saveLayout": [{
38163
+ name: "cells",
38164
+ form: "object-array",
38165
+ optional: false,
38166
+ itemField: "deviceId"
38167
+ }, {
38168
+ name: "deviceId",
38169
+ form: "single",
38170
+ optional: false
38171
+ }],
38019
38172
  "cameraStreams.getBrokerStreams": [{
38020
38173
  name: "deviceId",
38021
38174
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.113",
3
+ "version": "1.2.114",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",