@camstack/addon-notifiers 1.2.117 → 1.2.119

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
@@ -5390,7 +5390,7 @@ var ZodIssueCode = {
5390
5390
  var ZodFirstPartyTypeKind;
5391
5391
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5392
5392
  //#endregion
5393
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5393
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5394
5394
  /**
5395
5395
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5396
5396
  * window to float samples (D455).
@@ -11993,6 +11993,24 @@ var GetStreamWithCodecInputSchema = object({
11993
11993
  });
11994
11994
  var RtpSourceSchema = object({
11995
11995
  url: string(),
11996
+ /**
11997
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11998
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11999
+ *
12000
+ * The broker answers it because the broker is the only thing that can:
12001
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12002
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12003
+ * cap bindings would be a second authority, and two authorities on the same
12004
+ * question is how a composite camera ends up dialling a sleeping camera
12005
+ * because its own copy of the rule was a release behind.
12006
+ *
12007
+ * `null` is a real answer and is never a live url in disguise: a consumer
12008
+ * that silently fell back to {@link url} would perform exactly the wake this
12009
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12010
+ * transcode hands back an egress the broker is feeding itself, which has no
12011
+ * sentry counterpart.
12012
+ */
12013
+ sentryUrl: string().nullable().optional(),
11996
12014
  videoCodec: _enum(["H264", "H265"]),
11997
12015
  audioCodec: string(),
11998
12016
  resolution: object({
@@ -27349,6 +27367,118 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27349
27367
  lastChangedAt: number()
27350
27368
  });
27351
27369
  /**
27370
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27371
+ * page.
27372
+ *
27373
+ * ## Why this is a capability and not an addon settings schema
27374
+ *
27375
+ * It was one, and it did not render. The addon declared the editor as a
27376
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27377
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27378
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27379
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27380
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27381
+ * not on it "falls off silently".
27382
+ *
27383
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27384
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27385
+ * beside PTZ and motion zones on the camera itself. The device page is
27386
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27387
+ * and this cap carries its section the way `recording` does, by RETURNING it
27388
+ * from `getDeviceSettingsContribution`.
27389
+ *
27390
+ * Seven other widgets are still declared the other way, through a
27391
+ * `deviceConfig.ui` block the framework derives a section from. That route
27392
+ * gives the addon no say in where its own panel lands and no way to decline
27393
+ * for a device the panel does not suit, which is why this one does not use it.
27394
+ *
27395
+ * ## Why one addon may implement it
27396
+ *
27397
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27398
+ * itself. Nothing else declares a composite camera, so nothing else has a
27399
+ * layout — and the device-scoped route means the widget asks THE camera, not
27400
+ * "the camera-grid addon", which is what let the old custom-action pair be
27401
+ * reached only by a caller that already knew the addon id.
27402
+ *
27403
+ * ## The tab
27404
+ *
27405
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27406
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27407
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27408
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27409
+ * next to "PTZ").
27410
+ */
27411
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27412
+ var GridNormalizedRectSchema = object({
27413
+ x: number().min(0).max(1),
27414
+ y: number().min(0).max(1),
27415
+ width: number().gt(0).max(1),
27416
+ height: number().gt(0).max(1)
27417
+ });
27418
+ /**
27419
+ * One source camera, the part of its picture taken, and where that part lands.
27420
+ *
27421
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27422
+ * — a profile switch, a firmware update, a substream that comes back different
27423
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27424
+ * which is the class of bug nobody files.
27425
+ */
27426
+ var GridLayoutCellSchema = object({
27427
+ deviceId: number().int().positive(),
27428
+ /** The part of the SOURCE taken, normalized against the source. */
27429
+ source: GridNormalizedRectSchema,
27430
+ /** Where it lands, normalized against the CANVAS. */
27431
+ cell: GridNormalizedRectSchema
27432
+ });
27433
+ /**
27434
+ * Which profiles this grid can actually compose, and why not.
27435
+ *
27436
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27437
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27438
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27439
+ * low" is, and it is the one an operator can act on.
27440
+ */
27441
+ var GridProfileOfferSchema = object({
27442
+ profile: _enum([
27443
+ "high",
27444
+ "mid",
27445
+ "low"
27446
+ ]),
27447
+ offered: boolean(),
27448
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27449
+ missingSources: array(number().int().positive())
27450
+ });
27451
+ var GridLayoutViewSchema = object({
27452
+ /** The persisted grid row this camera was declared from. */
27453
+ instanceId: string(),
27454
+ deviceId: number().int().nonnegative(),
27455
+ name: string(),
27456
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27457
+ width: number().int(),
27458
+ height: number().int(),
27459
+ fps: number().int(),
27460
+ cells: array(GridLayoutCellSchema),
27461
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27462
+ profiles: array(GridProfileOfferSchema)
27463
+ });
27464
+ var GridLayoutPatchSchema = object({
27465
+ deviceId: number().int().nonnegative(),
27466
+ name: string().min(1).max(160).optional(),
27467
+ width: number().int().min(160).max(7680).optional(),
27468
+ height: number().int().min(120).max(4320).optional(),
27469
+ fps: number().int().min(1).max(60).optional(),
27470
+ /**
27471
+ * The whole cell list at once. A per-cell patch would need an ordering the
27472
+ * editor does not have, and a half-applied layout is a picture nobody asked
27473
+ * for.
27474
+ */
27475
+ cells: array(GridLayoutCellSchema).max(16)
27476
+ });
27477
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27478
+ kind: "mutation",
27479
+ auth: "admin"
27480
+ });
27481
+ /**
27352
27482
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27353
27483
  * on-camera motion-detection mask is a single `grid` region (a row-major
27354
27484
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32377,6 +32507,18 @@ Object.freeze({
32377
32507
  addonId: null,
32378
32508
  access: "view"
32379
32509
  },
32510
+ "cameraGridLayout.getLayout": {
32511
+ capName: "camera-grid-layout",
32512
+ capScope: "device",
32513
+ addonId: null,
32514
+ access: "view"
32515
+ },
32516
+ "cameraGridLayout.saveLayout": {
32517
+ capName: "camera-grid-layout",
32518
+ capScope: "device",
32519
+ addonId: null,
32520
+ access: "create"
32521
+ },
32380
32522
  "cameraStreams.getBrokerStreams": {
32381
32523
  capName: "camera-streams",
32382
32524
  capScope: "device",
@@ -38076,6 +38218,21 @@ Object.freeze({
38076
38218
  form: "single",
38077
38219
  optional: false
38078
38220
  }],
38221
+ "cameraGridLayout.getLayout": [{
38222
+ name: "deviceId",
38223
+ form: "single",
38224
+ optional: false
38225
+ }],
38226
+ "cameraGridLayout.saveLayout": [{
38227
+ name: "cells",
38228
+ form: "object-array",
38229
+ optional: false,
38230
+ itemField: "deviceId"
38231
+ }, {
38232
+ name: "deviceId",
38233
+ form: "single",
38234
+ optional: false
38235
+ }],
38079
38236
  "cameraStreams.getBrokerStreams": [{
38080
38237
  name: "deviceId",
38081
38238
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
5363
5363
  var ZodFirstPartyTypeKind;
5364
5364
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5365
5365
  //#endregion
5366
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5366
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5367
5367
  /**
5368
5368
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5369
5369
  * window to float samples (D455).
@@ -11966,6 +11966,24 @@ var GetStreamWithCodecInputSchema = object({
11966
11966
  });
11967
11967
  var RtpSourceSchema = object({
11968
11968
  url: string(),
11969
+ /**
11970
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11971
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11972
+ *
11973
+ * The broker answers it because the broker is the only thing that can:
11974
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11975
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11976
+ * cap bindings would be a second authority, and two authorities on the same
11977
+ * question is how a composite camera ends up dialling a sleeping camera
11978
+ * because its own copy of the rule was a release behind.
11979
+ *
11980
+ * `null` is a real answer and is never a live url in disguise: a consumer
11981
+ * that silently fell back to {@link url} would perform exactly the wake this
11982
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11983
+ * transcode hands back an egress the broker is feeding itself, which has no
11984
+ * sentry counterpart.
11985
+ */
11986
+ sentryUrl: string().nullable().optional(),
11969
11987
  videoCodec: _enum(["H264", "H265"]),
11970
11988
  audioCodec: string(),
11971
11989
  resolution: object({
@@ -27322,6 +27340,118 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27322
27340
  lastChangedAt: number()
27323
27341
  });
27324
27342
  /**
27343
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27344
+ * page.
27345
+ *
27346
+ * ## Why this is a capability and not an addon settings schema
27347
+ *
27348
+ * It was one, and it did not render. The addon declared the editor as a
27349
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27350
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27351
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27352
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27353
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27354
+ * not on it "falls off silently".
27355
+ *
27356
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27357
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27358
+ * beside PTZ and motion zones on the camera itself. The device page is
27359
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27360
+ * and this cap carries its section the way `recording` does, by RETURNING it
27361
+ * from `getDeviceSettingsContribution`.
27362
+ *
27363
+ * Seven other widgets are still declared the other way, through a
27364
+ * `deviceConfig.ui` block the framework derives a section from. That route
27365
+ * gives the addon no say in where its own panel lands and no way to decline
27366
+ * for a device the panel does not suit, which is why this one does not use it.
27367
+ *
27368
+ * ## Why one addon may implement it
27369
+ *
27370
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27371
+ * itself. Nothing else declares a composite camera, so nothing else has a
27372
+ * layout — and the device-scoped route means the widget asks THE camera, not
27373
+ * "the camera-grid addon", which is what let the old custom-action pair be
27374
+ * reached only by a caller that already knew the addon id.
27375
+ *
27376
+ * ## The tab
27377
+ *
27378
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27379
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27380
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27381
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27382
+ * next to "PTZ").
27383
+ */
27384
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27385
+ var GridNormalizedRectSchema = object({
27386
+ x: number().min(0).max(1),
27387
+ y: number().min(0).max(1),
27388
+ width: number().gt(0).max(1),
27389
+ height: number().gt(0).max(1)
27390
+ });
27391
+ /**
27392
+ * One source camera, the part of its picture taken, and where that part lands.
27393
+ *
27394
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27395
+ * — a profile switch, a firmware update, a substream that comes back different
27396
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27397
+ * which is the class of bug nobody files.
27398
+ */
27399
+ var GridLayoutCellSchema = object({
27400
+ deviceId: number().int().positive(),
27401
+ /** The part of the SOURCE taken, normalized against the source. */
27402
+ source: GridNormalizedRectSchema,
27403
+ /** Where it lands, normalized against the CANVAS. */
27404
+ cell: GridNormalizedRectSchema
27405
+ });
27406
+ /**
27407
+ * Which profiles this grid can actually compose, and why not.
27408
+ *
27409
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27410
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27411
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27412
+ * low" is, and it is the one an operator can act on.
27413
+ */
27414
+ var GridProfileOfferSchema = object({
27415
+ profile: _enum([
27416
+ "high",
27417
+ "mid",
27418
+ "low"
27419
+ ]),
27420
+ offered: boolean(),
27421
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27422
+ missingSources: array(number().int().positive())
27423
+ });
27424
+ var GridLayoutViewSchema = object({
27425
+ /** The persisted grid row this camera was declared from. */
27426
+ instanceId: string(),
27427
+ deviceId: number().int().nonnegative(),
27428
+ name: string(),
27429
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27430
+ width: number().int(),
27431
+ height: number().int(),
27432
+ fps: number().int(),
27433
+ cells: array(GridLayoutCellSchema),
27434
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27435
+ profiles: array(GridProfileOfferSchema)
27436
+ });
27437
+ var GridLayoutPatchSchema = object({
27438
+ deviceId: number().int().nonnegative(),
27439
+ name: string().min(1).max(160).optional(),
27440
+ width: number().int().min(160).max(7680).optional(),
27441
+ height: number().int().min(120).max(4320).optional(),
27442
+ fps: number().int().min(1).max(60).optional(),
27443
+ /**
27444
+ * The whole cell list at once. A per-cell patch would need an ordering the
27445
+ * editor does not have, and a half-applied layout is a picture nobody asked
27446
+ * for.
27447
+ */
27448
+ cells: array(GridLayoutCellSchema).max(16)
27449
+ });
27450
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27451
+ kind: "mutation",
27452
+ auth: "admin"
27453
+ });
27454
+ /**
27325
27455
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27326
27456
  * on-camera motion-detection mask is a single `grid` region (a row-major
27327
27457
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32350,6 +32480,18 @@ Object.freeze({
32350
32480
  addonId: null,
32351
32481
  access: "view"
32352
32482
  },
32483
+ "cameraGridLayout.getLayout": {
32484
+ capName: "camera-grid-layout",
32485
+ capScope: "device",
32486
+ addonId: null,
32487
+ access: "view"
32488
+ },
32489
+ "cameraGridLayout.saveLayout": {
32490
+ capName: "camera-grid-layout",
32491
+ capScope: "device",
32492
+ addonId: null,
32493
+ access: "create"
32494
+ },
32353
32495
  "cameraStreams.getBrokerStreams": {
32354
32496
  capName: "camera-streams",
32355
32497
  capScope: "device",
@@ -38049,6 +38191,21 @@ Object.freeze({
38049
38191
  form: "single",
38050
38192
  optional: false
38051
38193
  }],
38194
+ "cameraGridLayout.getLayout": [{
38195
+ name: "deviceId",
38196
+ form: "single",
38197
+ optional: false
38198
+ }],
38199
+ "cameraGridLayout.saveLayout": [{
38200
+ name: "cells",
38201
+ form: "object-array",
38202
+ optional: false,
38203
+ itemField: "deviceId"
38204
+ }, {
38205
+ name: "deviceId",
38206
+ form: "single",
38207
+ optional: false
38208
+ }],
38052
38209
  "cameraStreams.getBrokerStreams": [{
38053
38210
  name: "deviceId",
38054
38211
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.117",
3
+ "version": "1.2.119",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",