@camstack/addon-notifiers 1.2.105 → 1.2.106

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
@@ -29,7 +29,7 @@ let node_fs = require("node:fs");
29
29
  let node_path = require("node:path");
30
30
  node_path = __toESM(node_path);
31
31
  let node_url = require("node:url");
32
- //#region ../types/dist/event-category-ZyX6jcse.mjs
32
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
33
33
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
34
34
  EventCategory["SystemBoot"] = "system.boot";
35
35
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -646,6 +646,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
646
646
  * pull-reconcile from the provider's `getStatus` on reconnect. */
647
647
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
648
648
  EventCategory["BackupCompleted"] = "backup.completed";
649
+ /**
650
+ * A whole backup RUN finished — every destination attempted, win or lose.
651
+ *
652
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
653
+ * a progress UI and the wrong one for a notification: an operator with three
654
+ * destinations would be told three times. And a run where two of three
655
+ * destinations succeeded is not a clean success — a single "backup
656
+ * completed" that hid the failed one would be a lie, so the count of each is
657
+ * carried here and the message says both.
658
+ *
659
+ * Emitted by the backup orchestrator only after the destination loop, so a
660
+ * run that dies during the BUILD phase produces no completion at all.
661
+ */
662
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
649
663
  EventCategory["BackupRestored"] = "backup.restored";
650
664
  EventCategory["NotificationDispatched"] = "notification.dispatched";
651
665
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5376,7 +5390,7 @@ var ZodIssueCode = {
5376
5390
  var ZodFirstPartyTypeKind;
5377
5391
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5378
5392
  //#endregion
5379
- //#region ../types/dist/sleep-DBKu2-U5.mjs
5393
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
5380
5394
  /**
5381
5395
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5382
5396
  * window to float samples (D455).
@@ -11640,6 +11654,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
11640
11654
  auth: "admin"
11641
11655
  }), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
11642
11656
  DeviceType.Camera;
11657
+ /**
11658
+ * The signals a device can emit to WAKE its own stream.
11659
+ *
11660
+ * A camera whose stream is built on demand sleeps until something asks for it,
11661
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
11662
+ * puller holds a session open for ever, and treating that as demand would keep
11663
+ * a battery camera awake for ever, which is the whole thing the battery is for
11664
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
11665
+ * itself, with no stream running.
11666
+ *
11667
+ * ## The vocabulary is the PROVIDER'S, not ours
11668
+ *
11669
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
11670
+ * names each signal with a `code` it chooses and a `label` an operator reads.
11671
+ * Reolink offers motion and camera-native detection; another provider may offer
11672
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
11673
+ * yet. A fixed enum here would mean every new signal is a framework release.
11674
+ *
11675
+ * It is deliberately NOT derived from the caps a device already binds. Whether
11676
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
11677
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
11678
+ * binding — but both answer "what drives the detection pipeline", which is a
11679
+ * different question from "what may wake a sleeping stream". A camera can do
11680
+ * the first and not be trusted with the second, and the operator picks per
11681
+ * camera. Two questions, two authorities.
11682
+ *
11683
+ * ## Availability is not permission
11684
+ *
11685
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
11686
+ * wakes the stream is the operator's per-camera choice, held by the broker
11687
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
11688
+ * provider declaring a signal is not a provider enabling it.
11689
+ */
11690
+ /** One signal a device can emit. */
11691
+ var StreamSignalSchema = object({
11692
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
11693
+ code: string().min(1),
11694
+ /** What an operator reads in the picker. The provider's own wording. */
11695
+ label: string().min(1),
11696
+ /**
11697
+ * Whether the provider recommends this signal ON when a camera is first set
11698
+ * up. A provider knows which of its signals are cheap and reliable; an
11699
+ * operator should not have to discover that by trial. Reolink recommends
11700
+ * both of its own.
11701
+ */
11702
+ recommended: boolean()
11703
+ });
11704
+ object({
11705
+ signals: array(StreamSignalSchema),
11706
+ lastFetchedAt: number()
11707
+ });
11708
+ Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
11643
11709
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11644
11710
  var StreamFormatSchema = _enum([
11645
11711
  "webrtc",
@@ -12036,6 +12102,22 @@ var EgressTranscodeSchema = object({
12036
12102
  camStreamId: string().nullable()
12037
12103
  });
12038
12104
  method(object({
12105
+ deviceId: number().int().nonnegative(),
12106
+ /** The provider's signal code. */
12107
+ code: string().min(1),
12108
+ /** Ms epoch. Absent ⇒ now. */
12109
+ at: number().optional()
12110
+ }), object({
12111
+ /** Whether the broker acted on it, and if not, why. */
12112
+ accepted: boolean(),
12113
+ reason: _enum([
12114
+ "woke",
12115
+ "hold-extended",
12116
+ "not-enabled",
12117
+ "no-consumer",
12118
+ "unknown-code"
12119
+ ])
12120
+ }), { kind: "mutation" }), method(object({
12039
12121
  deviceId: number().int().nonnegative(),
12040
12122
  camStreamId: string().min(1),
12041
12123
  kind: CamStreamKindSchema,
@@ -12290,6 +12372,16 @@ var PickStreamRequirementsSchema = object({
12290
12372
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12291
12373
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12292
12374
  minHeight: number().int().positive().optional(),
12375
+ /**
12376
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
12377
+ *
12378
+ * A consumer can have a ceiling as real as its floor: Alexa documents
12379
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
12380
+ * Without this the ceiling had to be re-implemented by every caller — and
12381
+ * one caller implementing it privately is how a second scoring authority
12382
+ * gets born.
12383
+ */
12384
+ maxHeight: number().int().positive().optional(),
12293
12385
  /** Minimum horizontal resolution. */
12294
12386
  minWidth: number().int().positive().optional(),
12295
12387
  /**
@@ -12306,7 +12398,22 @@ var PickStreamRequirementsSchema = object({
12306
12398
  * transcoded" guard: if the device is already serving the consumer's
12307
12399
  * codec end-to-end, there's nothing to optimise.
12308
12400
  */
12309
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
12401
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
12402
+ /**
12403
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
12404
+ * understanding that it will be transcoded.
12405
+ *
12406
+ * Default `false` — today's behaviour, and the right one for a bypass
12407
+ * question ("is there a stream I can forward untouched?"). Set `true` to
12408
+ * ask the larger question: "what is the best stream for me, transcoding if
12409
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
12410
+ * does not, so a passthrough is never lost to a transcode; the answer says
12411
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
12412
+ *
12413
+ * This is what lets one picker serve both the bypass and the full source
12414
+ * choice, instead of a consumer scoring privately when the bypass misses.
12415
+ */
12416
+ allowTranscode: boolean().optional()
12310
12417
  }).readonly();
12311
12418
  var PickStreamPreferencesSchema = object({
12312
12419
  /**
@@ -12320,12 +12427,32 @@ var PickStreamPreferencesSchema = object({
12320
12427
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12321
12428
  * memory-constrained consumers / Apple Home guest sessions).
12322
12429
  */
12323
- resolutionPreference: _enum(["highest", "lowest"]).optional()
12430
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
12431
+ /**
12432
+ * The height the consumer actually wants to DELIVER.
12433
+ *
12434
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
12435
+ * above the target wins, and only if nothing reaches it does the tallest
12436
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
12437
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
12438
+ * express that: it says "as big as possible", which is a different wish.
12439
+ *
12440
+ * Ignored when absent, so every existing caller keeps its ordering.
12441
+ */
12442
+ targetHeight: number().int().positive().optional()
12324
12443
  }).readonly();
12325
12444
  var PickedCamStreamSchema = object({
12326
12445
  camStreamId: string(),
12327
12446
  codec: string().optional(),
12328
12447
  resolution: CamStreamResolutionSchema.optional(),
12448
+ /**
12449
+ * Whether serving this stream requires a decode + re-encode.
12450
+ *
12451
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
12452
+ * when the caller asked for it with `allowTranscode`, so a caller that did
12453
+ * not ask cannot be handed a cost it never agreed to pay.
12454
+ */
12455
+ transcodes: boolean(),
12329
12456
  /** One-line explanation of why this stream won — for logs / debug UI. */
12330
12457
  reason: string()
12331
12458
  });
@@ -16550,6 +16677,8 @@ var NcSystemEventKindSchema = _enum([
16550
16677
  "device-enabled",
16551
16678
  "device-battery-low",
16552
16679
  "device-battery-normal",
16680
+ "device-consumable-low",
16681
+ "device-consumable-normal",
16553
16682
  "stream-online",
16554
16683
  "stream-offline",
16555
16684
  "node-online",
@@ -16568,6 +16697,7 @@ var NcSystemEventKindSchema = _enum([
16568
16697
  "addon-updated",
16569
16698
  "server-updated",
16570
16699
  "export-completed",
16700
+ "backup-completed",
16571
16701
  "camera-online",
16572
16702
  "camera-offline",
16573
16703
  "camera-disabled",
@@ -23809,10 +23939,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
23809
23939
  }), boolean()), method(object({
23810
23940
  deviceId: number().int().nonnegative(),
23811
23941
  sessionId: string()
23812
- }), object({ pendingRenegotiation: object({
23813
- target: WebrtcStreamTargetSchema,
23814
- epoch: number()
23815
- }).nullable() }));
23942
+ }), object({
23943
+ pendingRenegotiation: object({
23944
+ target: WebrtcStreamTargetSchema,
23945
+ epoch: number()
23946
+ }).nullable(),
23947
+ /**
23948
+ * Whether the session still EXISTS.
23949
+ *
23950
+ * A consumer that holds a resource for the life of a session needs to
23951
+ * be able to ask, because a session does not always end the way it
23952
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
23953
+ * sent `SessionDisconnected`, so the Alexa exporter's
23954
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
23955
+ * H.264 transcode kept running for NOBODY for more than twenty
23956
+ * minutes. The WebRTC session had logged `WebRTC session closed`
23957
+ * minutes earlier — the broker knew; the holder had no way to ask.
23958
+ *
23959
+ * `false` for a session id the provider has never heard of, which is
23960
+ * the same answer as "it ended": either way nothing is holding it up.
23961
+ */
23962
+ alive: boolean()
23963
+ }));
23816
23964
  object({
23817
23965
  /** All accessory children of the parent. */
23818
23966
  childDeviceIds: array(number()).readonly(),
@@ -36316,6 +36464,12 @@ Object.freeze({
36316
36464
  addonId: null,
36317
36465
  access: "create"
36318
36466
  },
36467
+ "streamBroker.reportStreamSignal": {
36468
+ capName: "stream-broker",
36469
+ capScope: "system",
36470
+ addonId: null,
36471
+ access: "create"
36472
+ },
36319
36473
  "streamBroker.restartProfile": {
36320
36474
  capName: "stream-broker",
36321
36475
  capScope: "system",
@@ -36400,6 +36554,12 @@ Object.freeze({
36400
36554
  addonId: null,
36401
36555
  access: "create"
36402
36556
  },
36557
+ "streamSignals.listSignals": {
36558
+ capName: "stream-signals",
36559
+ capScope: "device",
36560
+ addonId: null,
36561
+ access: "view"
36562
+ },
36403
36563
  "switch.setState": {
36404
36564
  capName: "switch",
36405
36565
  capScope: "device",
@@ -38772,6 +38932,11 @@ Object.freeze({
38772
38932
  form: "single",
38773
38933
  optional: false
38774
38934
  }],
38935
+ "streamBroker.reportStreamSignal": [{
38936
+ name: "deviceId",
38937
+ form: "single",
38938
+ optional: false
38939
+ }],
38775
38940
  "streamBroker.restartProfile": [{
38776
38941
  name: "deviceId",
38777
38942
  form: "single",
package/dist/addon.mjs CHANGED
@@ -2,7 +2,7 @@ import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
2
2
  import { readFileSync } from "node:fs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- //#region ../types/dist/event-category-ZyX6jcse.mjs
5
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -619,6 +619,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
619
619
  * pull-reconcile from the provider's `getStatus` on reconnect. */
620
620
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
621
621
  EventCategory["BackupCompleted"] = "backup.completed";
622
+ /**
623
+ * A whole backup RUN finished — every destination attempted, win or lose.
624
+ *
625
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
626
+ * a progress UI and the wrong one for a notification: an operator with three
627
+ * destinations would be told three times. And a run where two of three
628
+ * destinations succeeded is not a clean success — a single "backup
629
+ * completed" that hid the failed one would be a lie, so the count of each is
630
+ * carried here and the message says both.
631
+ *
632
+ * Emitted by the backup orchestrator only after the destination loop, so a
633
+ * run that dies during the BUILD phase produces no completion at all.
634
+ */
635
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
622
636
  EventCategory["BackupRestored"] = "backup.restored";
623
637
  EventCategory["NotificationDispatched"] = "notification.dispatched";
624
638
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5349,7 +5363,7 @@ var ZodIssueCode = {
5349
5363
  var ZodFirstPartyTypeKind;
5350
5364
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5351
5365
  //#endregion
5352
- //#region ../types/dist/sleep-DBKu2-U5.mjs
5366
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
5353
5367
  /**
5354
5368
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5355
5369
  * window to float samples (D455).
@@ -11613,6 +11627,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
11613
11627
  auth: "admin"
11614
11628
  }), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
11615
11629
  DeviceType.Camera;
11630
+ /**
11631
+ * The signals a device can emit to WAKE its own stream.
11632
+ *
11633
+ * A camera whose stream is built on demand sleeps until something asks for it,
11634
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
11635
+ * puller holds a session open for ever, and treating that as demand would keep
11636
+ * a battery camera awake for ever, which is the whole thing the battery is for
11637
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
11638
+ * itself, with no stream running.
11639
+ *
11640
+ * ## The vocabulary is the PROVIDER'S, not ours
11641
+ *
11642
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
11643
+ * names each signal with a `code` it chooses and a `label` an operator reads.
11644
+ * Reolink offers motion and camera-native detection; another provider may offer
11645
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
11646
+ * yet. A fixed enum here would mean every new signal is a framework release.
11647
+ *
11648
+ * It is deliberately NOT derived from the caps a device already binds. Whether
11649
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
11650
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
11651
+ * binding — but both answer "what drives the detection pipeline", which is a
11652
+ * different question from "what may wake a sleeping stream". A camera can do
11653
+ * the first and not be trusted with the second, and the operator picks per
11654
+ * camera. Two questions, two authorities.
11655
+ *
11656
+ * ## Availability is not permission
11657
+ *
11658
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
11659
+ * wakes the stream is the operator's per-camera choice, held by the broker
11660
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
11661
+ * provider declaring a signal is not a provider enabling it.
11662
+ */
11663
+ /** One signal a device can emit. */
11664
+ var StreamSignalSchema = object({
11665
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
11666
+ code: string().min(1),
11667
+ /** What an operator reads in the picker. The provider's own wording. */
11668
+ label: string().min(1),
11669
+ /**
11670
+ * Whether the provider recommends this signal ON when a camera is first set
11671
+ * up. A provider knows which of its signals are cheap and reliable; an
11672
+ * operator should not have to discover that by trial. Reolink recommends
11673
+ * both of its own.
11674
+ */
11675
+ recommended: boolean()
11676
+ });
11677
+ object({
11678
+ signals: array(StreamSignalSchema),
11679
+ lastFetchedAt: number()
11680
+ });
11681
+ Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
11616
11682
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11617
11683
  var StreamFormatSchema = _enum([
11618
11684
  "webrtc",
@@ -12009,6 +12075,22 @@ var EgressTranscodeSchema = object({
12009
12075
  camStreamId: string().nullable()
12010
12076
  });
12011
12077
  method(object({
12078
+ deviceId: number().int().nonnegative(),
12079
+ /** The provider's signal code. */
12080
+ code: string().min(1),
12081
+ /** Ms epoch. Absent ⇒ now. */
12082
+ at: number().optional()
12083
+ }), object({
12084
+ /** Whether the broker acted on it, and if not, why. */
12085
+ accepted: boolean(),
12086
+ reason: _enum([
12087
+ "woke",
12088
+ "hold-extended",
12089
+ "not-enabled",
12090
+ "no-consumer",
12091
+ "unknown-code"
12092
+ ])
12093
+ }), { kind: "mutation" }), method(object({
12012
12094
  deviceId: number().int().nonnegative(),
12013
12095
  camStreamId: string().min(1),
12014
12096
  kind: CamStreamKindSchema,
@@ -12263,6 +12345,16 @@ var PickStreamRequirementsSchema = object({
12263
12345
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12264
12346
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12265
12347
  minHeight: number().int().positive().optional(),
12348
+ /**
12349
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
12350
+ *
12351
+ * A consumer can have a ceiling as real as its floor: Alexa documents
12352
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
12353
+ * Without this the ceiling had to be re-implemented by every caller — and
12354
+ * one caller implementing it privately is how a second scoring authority
12355
+ * gets born.
12356
+ */
12357
+ maxHeight: number().int().positive().optional(),
12266
12358
  /** Minimum horizontal resolution. */
12267
12359
  minWidth: number().int().positive().optional(),
12268
12360
  /**
@@ -12279,7 +12371,22 @@ var PickStreamRequirementsSchema = object({
12279
12371
  * transcoded" guard: if the device is already serving the consumer's
12280
12372
  * codec end-to-end, there's nothing to optimise.
12281
12373
  */
12282
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
12374
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
12375
+ /**
12376
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
12377
+ * understanding that it will be transcoded.
12378
+ *
12379
+ * Default `false` — today's behaviour, and the right one for a bypass
12380
+ * question ("is there a stream I can forward untouched?"). Set `true` to
12381
+ * ask the larger question: "what is the best stream for me, transcoding if
12382
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
12383
+ * does not, so a passthrough is never lost to a transcode; the answer says
12384
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
12385
+ *
12386
+ * This is what lets one picker serve both the bypass and the full source
12387
+ * choice, instead of a consumer scoring privately when the bypass misses.
12388
+ */
12389
+ allowTranscode: boolean().optional()
12283
12390
  }).readonly();
12284
12391
  var PickStreamPreferencesSchema = object({
12285
12392
  /**
@@ -12293,12 +12400,32 @@ var PickStreamPreferencesSchema = object({
12293
12400
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12294
12401
  * memory-constrained consumers / Apple Home guest sessions).
12295
12402
  */
12296
- resolutionPreference: _enum(["highest", "lowest"]).optional()
12403
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
12404
+ /**
12405
+ * The height the consumer actually wants to DELIVER.
12406
+ *
12407
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
12408
+ * above the target wins, and only if nothing reaches it does the tallest
12409
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
12410
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
12411
+ * express that: it says "as big as possible", which is a different wish.
12412
+ *
12413
+ * Ignored when absent, so every existing caller keeps its ordering.
12414
+ */
12415
+ targetHeight: number().int().positive().optional()
12297
12416
  }).readonly();
12298
12417
  var PickedCamStreamSchema = object({
12299
12418
  camStreamId: string(),
12300
12419
  codec: string().optional(),
12301
12420
  resolution: CamStreamResolutionSchema.optional(),
12421
+ /**
12422
+ * Whether serving this stream requires a decode + re-encode.
12423
+ *
12424
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
12425
+ * when the caller asked for it with `allowTranscode`, so a caller that did
12426
+ * not ask cannot be handed a cost it never agreed to pay.
12427
+ */
12428
+ transcodes: boolean(),
12302
12429
  /** One-line explanation of why this stream won — for logs / debug UI. */
12303
12430
  reason: string()
12304
12431
  });
@@ -16523,6 +16650,8 @@ var NcSystemEventKindSchema = _enum([
16523
16650
  "device-enabled",
16524
16651
  "device-battery-low",
16525
16652
  "device-battery-normal",
16653
+ "device-consumable-low",
16654
+ "device-consumable-normal",
16526
16655
  "stream-online",
16527
16656
  "stream-offline",
16528
16657
  "node-online",
@@ -16541,6 +16670,7 @@ var NcSystemEventKindSchema = _enum([
16541
16670
  "addon-updated",
16542
16671
  "server-updated",
16543
16672
  "export-completed",
16673
+ "backup-completed",
16544
16674
  "camera-online",
16545
16675
  "camera-offline",
16546
16676
  "camera-disabled",
@@ -23782,10 +23912,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
23782
23912
  }), boolean()), method(object({
23783
23913
  deviceId: number().int().nonnegative(),
23784
23914
  sessionId: string()
23785
- }), object({ pendingRenegotiation: object({
23786
- target: WebrtcStreamTargetSchema,
23787
- epoch: number()
23788
- }).nullable() }));
23915
+ }), object({
23916
+ pendingRenegotiation: object({
23917
+ target: WebrtcStreamTargetSchema,
23918
+ epoch: number()
23919
+ }).nullable(),
23920
+ /**
23921
+ * Whether the session still EXISTS.
23922
+ *
23923
+ * A consumer that holds a resource for the life of a session needs to
23924
+ * be able to ask, because a session does not always end the way it
23925
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
23926
+ * sent `SessionDisconnected`, so the Alexa exporter's
23927
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
23928
+ * H.264 transcode kept running for NOBODY for more than twenty
23929
+ * minutes. The WebRTC session had logged `WebRTC session closed`
23930
+ * minutes earlier — the broker knew; the holder had no way to ask.
23931
+ *
23932
+ * `false` for a session id the provider has never heard of, which is
23933
+ * the same answer as "it ended": either way nothing is holding it up.
23934
+ */
23935
+ alive: boolean()
23936
+ }));
23789
23937
  object({
23790
23938
  /** All accessory children of the parent. */
23791
23939
  childDeviceIds: array(number()).readonly(),
@@ -36289,6 +36437,12 @@ Object.freeze({
36289
36437
  addonId: null,
36290
36438
  access: "create"
36291
36439
  },
36440
+ "streamBroker.reportStreamSignal": {
36441
+ capName: "stream-broker",
36442
+ capScope: "system",
36443
+ addonId: null,
36444
+ access: "create"
36445
+ },
36292
36446
  "streamBroker.restartProfile": {
36293
36447
  capName: "stream-broker",
36294
36448
  capScope: "system",
@@ -36373,6 +36527,12 @@ Object.freeze({
36373
36527
  addonId: null,
36374
36528
  access: "create"
36375
36529
  },
36530
+ "streamSignals.listSignals": {
36531
+ capName: "stream-signals",
36532
+ capScope: "device",
36533
+ addonId: null,
36534
+ access: "view"
36535
+ },
36376
36536
  "switch.setState": {
36377
36537
  capName: "switch",
36378
36538
  capScope: "device",
@@ -38745,6 +38905,11 @@ Object.freeze({
38745
38905
  form: "single",
38746
38906
  optional: false
38747
38907
  }],
38908
+ "streamBroker.reportStreamSignal": [{
38909
+ name: "deviceId",
38910
+ form: "single",
38911
+ optional: false
38912
+ }],
38748
38913
  "streamBroker.restartProfile": [{
38749
38914
  name: "deviceId",
38750
38915
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.105",
3
+ "version": "1.2.106",
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",