@camstack/addon-notifiers 1.2.117 → 1.2.118

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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
27386
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27387
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27388
+ * all use it): the framework emits the structural section and the widget
27389
+ * self-persists through the cap's own mutations.
27390
+ *
27391
+ * ## Why one addon may implement it
27392
+ *
27393
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27394
+ * itself. Nothing else declares a composite camera, so nothing else has a
27395
+ * layout — and the device-scoped route means the widget asks THE camera, not
27396
+ * "the camera-grid addon", which is what let the old custom-action pair be
27397
+ * reached only by a caller that already knew the addon id.
27398
+ *
27399
+ * ## The tab
27400
+ *
27401
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27402
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27403
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27404
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27405
+ * next to "PTZ").
27406
+ */
27407
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27408
+ var GridNormalizedRectSchema = object({
27409
+ x: number().min(0).max(1),
27410
+ y: number().min(0).max(1),
27411
+ width: number().gt(0).max(1),
27412
+ height: number().gt(0).max(1)
27413
+ });
27414
+ /**
27415
+ * One source camera, the part of its picture taken, and where that part lands.
27416
+ *
27417
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27418
+ * — a profile switch, a firmware update, a substream that comes back different
27419
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27420
+ * which is the class of bug nobody files.
27421
+ */
27422
+ var GridLayoutCellSchema = object({
27423
+ deviceId: number().int().positive(),
27424
+ /** The part of the SOURCE taken, normalized against the source. */
27425
+ source: GridNormalizedRectSchema,
27426
+ /** Where it lands, normalized against the CANVAS. */
27427
+ cell: GridNormalizedRectSchema
27428
+ });
27429
+ /**
27430
+ * Which profiles this grid can actually compose, and why not.
27431
+ *
27432
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27433
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27434
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27435
+ * low" is, and it is the one an operator can act on.
27436
+ */
27437
+ var GridProfileOfferSchema = object({
27438
+ profile: _enum([
27439
+ "high",
27440
+ "mid",
27441
+ "low"
27442
+ ]),
27443
+ offered: boolean(),
27444
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27445
+ missingSources: array(number().int().positive())
27446
+ });
27447
+ var GridLayoutViewSchema = object({
27448
+ /** The persisted grid row this camera was declared from. */
27449
+ instanceId: string(),
27450
+ deviceId: number().int().nonnegative(),
27451
+ name: string(),
27452
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27453
+ width: number().int(),
27454
+ height: number().int(),
27455
+ fps: number().int(),
27456
+ cells: array(GridLayoutCellSchema),
27457
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27458
+ profiles: array(GridProfileOfferSchema)
27459
+ });
27460
+ var GridLayoutPatchSchema = object({
27461
+ deviceId: number().int().nonnegative(),
27462
+ name: string().min(1).max(160).optional(),
27463
+ width: number().int().min(160).max(7680).optional(),
27464
+ height: number().int().min(120).max(4320).optional(),
27465
+ fps: number().int().min(1).max(60).optional(),
27466
+ /**
27467
+ * The whole cell list at once. A per-cell patch would need an ordering the
27468
+ * editor does not have, and a half-applied layout is a picture nobody asked
27469
+ * for.
27470
+ */
27471
+ cells: array(GridLayoutCellSchema).max(16)
27472
+ });
27473
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27474
+ kind: "mutation",
27475
+ auth: "admin"
27476
+ });
27477
+ /**
27352
27478
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27353
27479
  * on-camera motion-detection mask is a single `grid` region (a row-major
27354
27480
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32377,6 +32503,18 @@ Object.freeze({
32377
32503
  addonId: null,
32378
32504
  access: "view"
32379
32505
  },
32506
+ "cameraGridLayout.getLayout": {
32507
+ capName: "camera-grid-layout",
32508
+ capScope: "device",
32509
+ addonId: null,
32510
+ access: "view"
32511
+ },
32512
+ "cameraGridLayout.saveLayout": {
32513
+ capName: "camera-grid-layout",
32514
+ capScope: "device",
32515
+ addonId: null,
32516
+ access: "create"
32517
+ },
32380
32518
  "cameraStreams.getBrokerStreams": {
32381
32519
  capName: "camera-streams",
32382
32520
  capScope: "device",
@@ -38076,6 +38214,21 @@ Object.freeze({
38076
38214
  form: "single",
38077
38215
  optional: false
38078
38216
  }],
38217
+ "cameraGridLayout.getLayout": [{
38218
+ name: "deviceId",
38219
+ form: "single",
38220
+ optional: false
38221
+ }],
38222
+ "cameraGridLayout.saveLayout": [{
38223
+ name: "cells",
38224
+ form: "object-array",
38225
+ optional: false,
38226
+ itemField: "deviceId"
38227
+ }, {
38228
+ name: "deviceId",
38229
+ form: "single",
38230
+ optional: false
38231
+ }],
38079
38232
  "cameraStreams.getBrokerStreams": [{
38080
38233
  name: "deviceId",
38081
38234
  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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
27359
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27360
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27361
+ * all use it): the framework emits the structural section and the widget
27362
+ * self-persists through the cap's own mutations.
27363
+ *
27364
+ * ## Why one addon may implement it
27365
+ *
27366
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27367
+ * itself. Nothing else declares a composite camera, so nothing else has a
27368
+ * layout — and the device-scoped route means the widget asks THE camera, not
27369
+ * "the camera-grid addon", which is what let the old custom-action pair be
27370
+ * reached only by a caller that already knew the addon id.
27371
+ *
27372
+ * ## The tab
27373
+ *
27374
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27375
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27376
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27377
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27378
+ * next to "PTZ").
27379
+ */
27380
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27381
+ var GridNormalizedRectSchema = object({
27382
+ x: number().min(0).max(1),
27383
+ y: number().min(0).max(1),
27384
+ width: number().gt(0).max(1),
27385
+ height: number().gt(0).max(1)
27386
+ });
27387
+ /**
27388
+ * One source camera, the part of its picture taken, and where that part lands.
27389
+ *
27390
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27391
+ * — a profile switch, a firmware update, a substream that comes back different
27392
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27393
+ * which is the class of bug nobody files.
27394
+ */
27395
+ var GridLayoutCellSchema = object({
27396
+ deviceId: number().int().positive(),
27397
+ /** The part of the SOURCE taken, normalized against the source. */
27398
+ source: GridNormalizedRectSchema,
27399
+ /** Where it lands, normalized against the CANVAS. */
27400
+ cell: GridNormalizedRectSchema
27401
+ });
27402
+ /**
27403
+ * Which profiles this grid can actually compose, and why not.
27404
+ *
27405
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27406
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27407
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27408
+ * low" is, and it is the one an operator can act on.
27409
+ */
27410
+ var GridProfileOfferSchema = object({
27411
+ profile: _enum([
27412
+ "high",
27413
+ "mid",
27414
+ "low"
27415
+ ]),
27416
+ offered: boolean(),
27417
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27418
+ missingSources: array(number().int().positive())
27419
+ });
27420
+ var GridLayoutViewSchema = object({
27421
+ /** The persisted grid row this camera was declared from. */
27422
+ instanceId: string(),
27423
+ deviceId: number().int().nonnegative(),
27424
+ name: string(),
27425
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27426
+ width: number().int(),
27427
+ height: number().int(),
27428
+ fps: number().int(),
27429
+ cells: array(GridLayoutCellSchema),
27430
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27431
+ profiles: array(GridProfileOfferSchema)
27432
+ });
27433
+ var GridLayoutPatchSchema = object({
27434
+ deviceId: number().int().nonnegative(),
27435
+ name: string().min(1).max(160).optional(),
27436
+ width: number().int().min(160).max(7680).optional(),
27437
+ height: number().int().min(120).max(4320).optional(),
27438
+ fps: number().int().min(1).max(60).optional(),
27439
+ /**
27440
+ * The whole cell list at once. A per-cell patch would need an ordering the
27441
+ * editor does not have, and a half-applied layout is a picture nobody asked
27442
+ * for.
27443
+ */
27444
+ cells: array(GridLayoutCellSchema).max(16)
27445
+ });
27446
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27447
+ kind: "mutation",
27448
+ auth: "admin"
27449
+ });
27450
+ /**
27325
27451
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27326
27452
  * on-camera motion-detection mask is a single `grid` region (a row-major
27327
27453
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32350,6 +32476,18 @@ Object.freeze({
32350
32476
  addonId: null,
32351
32477
  access: "view"
32352
32478
  },
32479
+ "cameraGridLayout.getLayout": {
32480
+ capName: "camera-grid-layout",
32481
+ capScope: "device",
32482
+ addonId: null,
32483
+ access: "view"
32484
+ },
32485
+ "cameraGridLayout.saveLayout": {
32486
+ capName: "camera-grid-layout",
32487
+ capScope: "device",
32488
+ addonId: null,
32489
+ access: "create"
32490
+ },
32353
32491
  "cameraStreams.getBrokerStreams": {
32354
32492
  capName: "camera-streams",
32355
32493
  capScope: "device",
@@ -38049,6 +38187,21 @@ Object.freeze({
38049
38187
  form: "single",
38050
38188
  optional: false
38051
38189
  }],
38190
+ "cameraGridLayout.getLayout": [{
38191
+ name: "deviceId",
38192
+ form: "single",
38193
+ optional: false
38194
+ }],
38195
+ "cameraGridLayout.saveLayout": [{
38196
+ name: "cells",
38197
+ form: "object-array",
38198
+ optional: false,
38199
+ itemField: "deviceId"
38200
+ }, {
38201
+ name: "deviceId",
38202
+ form: "single",
38203
+ optional: false
38204
+ }],
38052
38205
  "cameraStreams.getBrokerStreams": [{
38053
38206
  name: "deviceId",
38054
38207
  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.118",
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",