@camstack/addon-decoder-nodeav 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/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-GU_us3DG.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,118 @@ 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. The device page is
27330
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27331
+ * and this cap carries its section the way `recording` does, by RETURNING it
27332
+ * from `getDeviceSettingsContribution`.
27333
+ *
27334
+ * Seven other widgets are still declared the other way, through a
27335
+ * `deviceConfig.ui` block the framework derives a section from. That route
27336
+ * gives the addon no say in where its own panel lands and no way to decline
27337
+ * for a device the panel does not suit, which is why this one does not use it.
27338
+ *
27339
+ * ## Why one addon may implement it
27340
+ *
27341
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27342
+ * itself. Nothing else declares a composite camera, so nothing else has a
27343
+ * layout — and the device-scoped route means the widget asks THE camera, not
27344
+ * "the camera-grid addon", which is what let the old custom-action pair be
27345
+ * reached only by a caller that already knew the addon id.
27346
+ *
27347
+ * ## The tab
27348
+ *
27349
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27350
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27351
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27352
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27353
+ * next to "PTZ").
27354
+ */
27355
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27356
+ var GridNormalizedRectSchema = object({
27357
+ x: number().min(0).max(1),
27358
+ y: number().min(0).max(1),
27359
+ width: number().gt(0).max(1),
27360
+ height: number().gt(0).max(1)
27361
+ });
27362
+ /**
27363
+ * One source camera, the part of its picture taken, and where that part lands.
27364
+ *
27365
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27366
+ * — a profile switch, a firmware update, a substream that comes back different
27367
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27368
+ * which is the class of bug nobody files.
27369
+ */
27370
+ var GridLayoutCellSchema = object({
27371
+ deviceId: number().int().positive(),
27372
+ /** The part of the SOURCE taken, normalized against the source. */
27373
+ source: GridNormalizedRectSchema,
27374
+ /** Where it lands, normalized against the CANVAS. */
27375
+ cell: GridNormalizedRectSchema
27376
+ });
27377
+ /**
27378
+ * Which profiles this grid can actually compose, and why not.
27379
+ *
27380
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27381
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27382
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27383
+ * low" is, and it is the one an operator can act on.
27384
+ */
27385
+ var GridProfileOfferSchema = object({
27386
+ profile: _enum([
27387
+ "high",
27388
+ "mid",
27389
+ "low"
27390
+ ]),
27391
+ offered: boolean(),
27392
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27393
+ missingSources: array(number().int().positive())
27394
+ });
27395
+ var GridLayoutViewSchema = object({
27396
+ /** The persisted grid row this camera was declared from. */
27397
+ instanceId: string(),
27398
+ deviceId: number().int().nonnegative(),
27399
+ name: string(),
27400
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27401
+ width: number().int(),
27402
+ height: number().int(),
27403
+ fps: number().int(),
27404
+ cells: array(GridLayoutCellSchema),
27405
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27406
+ profiles: array(GridProfileOfferSchema)
27407
+ });
27408
+ var GridLayoutPatchSchema = object({
27409
+ deviceId: number().int().nonnegative(),
27410
+ name: string().min(1).max(160).optional(),
27411
+ width: number().int().min(160).max(7680).optional(),
27412
+ height: number().int().min(120).max(4320).optional(),
27413
+ fps: number().int().min(1).max(60).optional(),
27414
+ /**
27415
+ * The whole cell list at once. A per-cell patch would need an ordering the
27416
+ * editor does not have, and a half-applied layout is a picture nobody asked
27417
+ * for.
27418
+ */
27419
+ cells: array(GridLayoutCellSchema).max(16)
27420
+ });
27421
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27422
+ kind: "mutation",
27423
+ auth: "admin"
27424
+ });
27425
+ /**
27296
27426
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27297
27427
  * on-camera motion-detection mask is a single `grid` region (a row-major
27298
27428
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32321,6 +32451,18 @@ Object.freeze({
32321
32451
  addonId: null,
32322
32452
  access: "view"
32323
32453
  },
32454
+ "cameraGridLayout.getLayout": {
32455
+ capName: "camera-grid-layout",
32456
+ capScope: "device",
32457
+ addonId: null,
32458
+ access: "view"
32459
+ },
32460
+ "cameraGridLayout.saveLayout": {
32461
+ capName: "camera-grid-layout",
32462
+ capScope: "device",
32463
+ addonId: null,
32464
+ access: "create"
32465
+ },
32324
32466
  "cameraStreams.getBrokerStreams": {
32325
32467
  capName: "camera-streams",
32326
32468
  capScope: "device",
@@ -38020,6 +38162,21 @@ Object.freeze({
38020
38162
  form: "single",
38021
38163
  optional: false
38022
38164
  }],
38165
+ "cameraGridLayout.getLayout": [{
38166
+ name: "deviceId",
38167
+ form: "single",
38168
+ optional: false
38169
+ }],
38170
+ "cameraGridLayout.saveLayout": [{
38171
+ name: "cells",
38172
+ form: "object-array",
38173
+ optional: false,
38174
+ itemField: "deviceId"
38175
+ }, {
38176
+ name: "deviceId",
38177
+ form: "single",
38178
+ optional: false
38179
+ }],
38023
38180
  "cameraStreams.getBrokerStreams": [{
38024
38181
  name: "deviceId",
38025
38182
  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-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).
@@ -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,118 @@ 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. The device page is
27326
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27327
+ * and this cap carries its section the way `recording` does, by RETURNING it
27328
+ * from `getDeviceSettingsContribution`.
27329
+ *
27330
+ * Seven other widgets are still declared the other way, through a
27331
+ * `deviceConfig.ui` block the framework derives a section from. That route
27332
+ * gives the addon no say in where its own panel lands and no way to decline
27333
+ * for a device the panel does not suit, which is why this one does not use it.
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
+ /**
27292
27422
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27293
27423
  * on-camera motion-detection mask is a single `grid` region (a row-major
27294
27424
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32317,6 +32447,18 @@ Object.freeze({
32317
32447
  addonId: null,
32318
32448
  access: "view"
32319
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
+ },
32320
32462
  "cameraStreams.getBrokerStreams": {
32321
32463
  capName: "camera-streams",
32322
32464
  capScope: "device",
@@ -38016,6 +38158,21 @@ Object.freeze({
38016
38158
  form: "single",
38017
38159
  optional: false
38018
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
+ }],
38019
38176
  "cameraStreams.getBrokerStreams": [{
38020
38177
  name: "deviceId",
38021
38178
  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.115",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",