@camstack/addon-mqtt-broker 1.2.100 → 1.2.102

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.
@@ -44,7 +44,7 @@ let crypto$10 = __toESM(crypto$1, 1);
44
44
  crypto$1 = __toESM(crypto$1);
45
45
  let node_fs = require("node:fs");
46
46
  let node_path = require("node:path");
47
- //#region ../types/dist/event-category-ZyX6jcse.mjs
47
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
48
48
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
49
49
  EventCategory["SystemBoot"] = "system.boot";
50
50
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -661,6 +661,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
661
661
  * pull-reconcile from the provider's `getStatus` on reconnect. */
662
662
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
663
663
  EventCategory["BackupCompleted"] = "backup.completed";
664
+ /**
665
+ * A whole backup RUN finished — every destination attempted, win or lose.
666
+ *
667
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
668
+ * a progress UI and the wrong one for a notification: an operator with three
669
+ * destinations would be told three times. And a run where two of three
670
+ * destinations succeeded is not a clean success — a single "backup
671
+ * completed" that hid the failed one would be a lie, so the count of each is
672
+ * carried here and the message says both.
673
+ *
674
+ * Emitted by the backup orchestrator only after the destination loop, so a
675
+ * run that dies during the BUILD phase produces no completion at all.
676
+ */
677
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
664
678
  EventCategory["BackupRestored"] = "backup.restored";
665
679
  EventCategory["NotificationDispatched"] = "notification.dispatched";
666
680
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5391,7 +5405,7 @@ var ZodIssueCode = {
5391
5405
  var ZodFirstPartyTypeKind;
5392
5406
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5393
5407
  //#endregion
5394
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5408
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
5395
5409
  /**
5396
5410
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5397
5411
  * window to float samples (D455).
@@ -7404,7 +7418,23 @@ var EncodeProfileSchema = object({
7404
7418
  "zerolatency",
7405
7419
  "film",
7406
7420
  "animation"
7407
- ]).optional()
7421
+ ]).optional(),
7422
+ /**
7423
+ * ONE slice per access unit.
7424
+ *
7425
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7426
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7427
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7428
+ * frame-end per frame: the first pictures render and the video then freezes
7429
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7430
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7431
+ *
7432
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7433
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7434
+ * consumers meaning the same thing spelled differently would stop sharing one
7435
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7436
+ */
7437
+ singleSlicePerFrame: boolean().optional()
7408
7438
  }),
7409
7439
  audio: union([literal("passthrough"), object({
7410
7440
  codec: _enum([
@@ -7454,7 +7484,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7454
7484
  audio: "passthrough"
7455
7485
  };
7456
7486
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7457
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7487
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7458
7488
  /**
7459
7489
  * Deep wiring healthcheck — snapshot of active reachability probes across
7460
7490
  * every declared capability + widget of every installed plugin, on every
@@ -11552,6 +11582,58 @@ var brokerCapability = {
11552
11582
  }
11553
11583
  };
11554
11584
  DeviceType.Camera;
11585
+ /**
11586
+ * The signals a device can emit to WAKE its own stream.
11587
+ *
11588
+ * A camera whose stream is built on demand sleeps until something asks for it,
11589
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
11590
+ * puller holds a session open for ever, and treating that as demand would keep
11591
+ * a battery camera awake for ever, which is the whole thing the battery is for
11592
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
11593
+ * itself, with no stream running.
11594
+ *
11595
+ * ## The vocabulary is the PROVIDER'S, not ours
11596
+ *
11597
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
11598
+ * names each signal with a `code` it chooses and a `label` an operator reads.
11599
+ * Reolink offers motion and camera-native detection; another provider may offer
11600
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
11601
+ * yet. A fixed enum here would mean every new signal is a framework release.
11602
+ *
11603
+ * It is deliberately NOT derived from the caps a device already binds. Whether
11604
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
11605
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
11606
+ * binding — but both answer "what drives the detection pipeline", which is a
11607
+ * different question from "what may wake a sleeping stream". A camera can do
11608
+ * the first and not be trusted with the second, and the operator picks per
11609
+ * camera. Two questions, two authorities.
11610
+ *
11611
+ * ## Availability is not permission
11612
+ *
11613
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
11614
+ * wakes the stream is the operator's per-camera choice, held by the broker
11615
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
11616
+ * provider declaring a signal is not a provider enabling it.
11617
+ */
11618
+ /** One signal a device can emit. */
11619
+ var StreamSignalSchema = object({
11620
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
11621
+ code: string().min(1),
11622
+ /** What an operator reads in the picker. The provider's own wording. */
11623
+ label: string().min(1),
11624
+ /**
11625
+ * Whether the provider recommends this signal ON when a camera is first set
11626
+ * up. A provider knows which of its signals are cheap and reliable; an
11627
+ * operator should not have to discover that by trial. Reolink recommends
11628
+ * both of its own.
11629
+ */
11630
+ recommended: boolean()
11631
+ });
11632
+ object({
11633
+ signals: array(StreamSignalSchema),
11634
+ lastFetchedAt: number()
11635
+ });
11636
+ Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
11555
11637
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11556
11638
  var StreamFormatSchema = _enum([
11557
11639
  "webrtc",
@@ -11948,6 +12030,22 @@ var EgressTranscodeSchema = object({
11948
12030
  camStreamId: string().nullable()
11949
12031
  });
11950
12032
  method(object({
12033
+ deviceId: number().int().nonnegative(),
12034
+ /** The provider's signal code. */
12035
+ code: string().min(1),
12036
+ /** Ms epoch. Absent ⇒ now. */
12037
+ at: number().optional()
12038
+ }), object({
12039
+ /** Whether the broker acted on it, and if not, why. */
12040
+ accepted: boolean(),
12041
+ reason: _enum([
12042
+ "woke",
12043
+ "hold-extended",
12044
+ "not-enabled",
12045
+ "no-consumer",
12046
+ "unknown-code"
12047
+ ])
12048
+ }), { kind: "mutation" }), method(object({
11951
12049
  deviceId: number().int().nonnegative(),
11952
12050
  camStreamId: string().min(1),
11953
12051
  kind: CamStreamKindSchema,
@@ -12202,6 +12300,16 @@ var PickStreamRequirementsSchema = object({
12202
12300
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12203
12301
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12204
12302
  minHeight: number().int().positive().optional(),
12303
+ /**
12304
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
12305
+ *
12306
+ * A consumer can have a ceiling as real as its floor: Alexa documents
12307
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
12308
+ * Without this the ceiling had to be re-implemented by every caller — and
12309
+ * one caller implementing it privately is how a second scoring authority
12310
+ * gets born.
12311
+ */
12312
+ maxHeight: number().int().positive().optional(),
12205
12313
  /** Minimum horizontal resolution. */
12206
12314
  minWidth: number().int().positive().optional(),
12207
12315
  /**
@@ -12218,7 +12326,22 @@ var PickStreamRequirementsSchema = object({
12218
12326
  * transcoded" guard: if the device is already serving the consumer's
12219
12327
  * codec end-to-end, there's nothing to optimise.
12220
12328
  */
12221
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
12329
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
12330
+ /**
12331
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
12332
+ * understanding that it will be transcoded.
12333
+ *
12334
+ * Default `false` — today's behaviour, and the right one for a bypass
12335
+ * question ("is there a stream I can forward untouched?"). Set `true` to
12336
+ * ask the larger question: "what is the best stream for me, transcoding if
12337
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
12338
+ * does not, so a passthrough is never lost to a transcode; the answer says
12339
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
12340
+ *
12341
+ * This is what lets one picker serve both the bypass and the full source
12342
+ * choice, instead of a consumer scoring privately when the bypass misses.
12343
+ */
12344
+ allowTranscode: boolean().optional()
12222
12345
  }).readonly();
12223
12346
  var PickStreamPreferencesSchema = object({
12224
12347
  /**
@@ -12232,12 +12355,32 @@ var PickStreamPreferencesSchema = object({
12232
12355
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12233
12356
  * memory-constrained consumers / Apple Home guest sessions).
12234
12357
  */
12235
- resolutionPreference: _enum(["highest", "lowest"]).optional()
12358
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
12359
+ /**
12360
+ * The height the consumer actually wants to DELIVER.
12361
+ *
12362
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
12363
+ * above the target wins, and only if nothing reaches it does the tallest
12364
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
12365
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
12366
+ * express that: it says "as big as possible", which is a different wish.
12367
+ *
12368
+ * Ignored when absent, so every existing caller keeps its ordering.
12369
+ */
12370
+ targetHeight: number().int().positive().optional()
12236
12371
  }).readonly();
12237
12372
  var PickedCamStreamSchema = object({
12238
12373
  camStreamId: string(),
12239
12374
  codec: string().optional(),
12240
12375
  resolution: CamStreamResolutionSchema.optional(),
12376
+ /**
12377
+ * Whether serving this stream requires a decode + re-encode.
12378
+ *
12379
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
12380
+ * when the caller asked for it with `allowTranscode`, so a caller that did
12381
+ * not ask cannot be handed a cost it never agreed to pay.
12382
+ */
12383
+ transcodes: boolean(),
12241
12384
  /** One-line explanation of why this stream won — for logs / debug UI. */
12242
12385
  reason: string()
12243
12386
  });
@@ -16445,6 +16588,8 @@ var NcSystemEventKindSchema = _enum([
16445
16588
  "device-enabled",
16446
16589
  "device-battery-low",
16447
16590
  "device-battery-normal",
16591
+ "device-consumable-low",
16592
+ "device-consumable-normal",
16448
16593
  "stream-online",
16449
16594
  "stream-offline",
16450
16595
  "node-online",
@@ -16463,6 +16608,7 @@ var NcSystemEventKindSchema = _enum([
16463
16608
  "addon-updated",
16464
16609
  "server-updated",
16465
16610
  "export-completed",
16611
+ "backup-completed",
16466
16612
  "camera-online",
16467
16613
  "camera-offline",
16468
16614
  "camera-disabled",
@@ -19859,13 +20005,109 @@ var SummariesQueryInput = object({
19859
20005
  deviceIds: array(number()).min(1),
19860
20006
  since: number().optional(),
19861
20007
  until: number().optional(),
19862
- limit: number().int().min(1).max(200).default(50)
20008
+ limit: number().int().min(1).max(200).default(50),
20009
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20010
+ * meaning of "dog" on every summary surface. */
20011
+ classes: array(string().min(1).max(60)).max(40).optional()
19863
20012
  });
19864
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19865
20013
  var SummaryDetailSchema = object({
19866
20014
  summary: SummarySchema,
19867
- /** Member track ids, in absorption order. */
19868
- trackIds: array(string()).readonly()
20015
+ /** Members in absorption order, oldest join first. */
20016
+ members: array(object({
20017
+ trackId: string(),
20018
+ /**
20019
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20020
+ * and the track no longer exists to fill it.
20021
+ *
20022
+ * The join, not the latest opinion: class voting can re-decide a track's
20023
+ * class afterwards, and a group's composition is the history of who came
20024
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20025
+ * dog" — rather than being handed a second, denormalised tally that would
20026
+ * drift from the members it claims to describe.
20027
+ */
20028
+ className: string().nullable(),
20029
+ /** `primary` is the one member that carries the group's identity. */
20030
+ role: _enum([
20031
+ "primary",
20032
+ "sibling",
20033
+ "child"
20034
+ ]).nullable(),
20035
+ joinedAt: number(),
20036
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20037
+ * at read time. Absent when nothing resolved, never an empty string. */
20038
+ label: string().optional(),
20039
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20040
+ * recognised nobody, and absent for a member whose track has been pruned —
20041
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20042
+ subLabel: string().optional()
20043
+ })).readonly()
20044
+ });
20045
+ /**
20046
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20047
+ *
20048
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20049
+ * we extend when we notice we need more". Enough to draw the card ("two people
20050
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20051
+ * are on {@link getSummary}: shipping every member of every group so a client
20052
+ * can count them turns a page of two hundred groups into a thousand records to
20053
+ * draw two hundred badges.
20054
+ */
20055
+ var SummaryListItemSchema = object({
20056
+ summary: SummarySchema,
20057
+ /** Class counts, most numerous first; `className: null` is a member whose
20058
+ * class never resolved, counted so the counts add up to `memberCount`. */
20059
+ classes: array(object({
20060
+ className: string().nullable(),
20061
+ count: number().int().positive()
20062
+ })).readonly()
20063
+ });
20064
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20065
+ /**
20066
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20067
+ *
20068
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20069
+ * summaries feed that could only answer "the last N for these cameras"
20070
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20071
+ * else. Two feeds with different ordering contracts would be two ideas of what
20072
+ * "newest" means, on one screen.
20073
+ */
20074
+ var RecentSummariesQueryInput = object({
20075
+ /** Devices to merge. An empty array yields an empty page. */
20076
+ deviceIds: array(number()),
20077
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20078
+ since: number().optional(),
20079
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20080
+ until: number().optional(),
20081
+ limit: number().int().min(1).max(500).default(100),
20082
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20083
+ cursor: string().optional(),
20084
+ /**
20085
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20086
+ * deliberately the same name: the events filter tree emits one list of ticked
20087
+ * taxonomy nodes, and a summaries feed that called it something else would
20088
+ * make the operator's one filter component produce two shapes.
20089
+ *
20090
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20091
+ * me the arrivals with a dog" has to return the group of four people who had
20092
+ * one with them; a filter on the group's own fields could only ever answer
20093
+ * about its primary.
20094
+ *
20095
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20096
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20097
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20098
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20099
+ * that read only the class would answer "animal" and never "dog".
20100
+ *
20101
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20102
+ */
20103
+ classes: array(string().min(1).max(60)).max(40).optional()
20104
+ });
20105
+ var RecentSummariesPageSchema = object({
20106
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20107
+ * {@link listSummaries} — one list shape, so a card renders the same
20108
+ * whichever feed drew it. */
20109
+ summaries: array(SummaryListItemSchema).readonly(),
20110
+ nextCursor: string().nullable()
19869
20111
  });
19870
20112
  var RecentTracksPageSchema = object({
19871
20113
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20279,7 +20521,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20279
20521
  classes: array(string()).optional(),
20280
20522
  /** See {@link ExcludeSourcesDoc}. */
20281
20523
  excludeSources: array(TrackSourceSchema).optional()
20282
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20524
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20283
20525
  kind: "mutation",
20284
20526
  auth: "admin"
20285
20527
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -23608,10 +23850,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
23608
23850
  }), boolean()), method(object({
23609
23851
  deviceId: number().int().nonnegative(),
23610
23852
  sessionId: string()
23611
- }), object({ pendingRenegotiation: object({
23612
- target: WebrtcStreamTargetSchema,
23613
- epoch: number()
23614
- }).nullable() }));
23853
+ }), object({
23854
+ pendingRenegotiation: object({
23855
+ target: WebrtcStreamTargetSchema,
23856
+ epoch: number()
23857
+ }).nullable(),
23858
+ /**
23859
+ * Whether the session still EXISTS.
23860
+ *
23861
+ * A consumer that holds a resource for the life of a session needs to
23862
+ * be able to ask, because a session does not always end the way it
23863
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
23864
+ * sent `SessionDisconnected`, so the Alexa exporter's
23865
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
23866
+ * H.264 transcode kept running for NOBODY for more than twenty
23867
+ * minutes. The WebRTC session had logged `WebRTC session closed`
23868
+ * minutes earlier — the broker knew; the holder had no way to ask.
23869
+ *
23870
+ * `false` for a session id the provider has never heard of, which is
23871
+ * the same answer as "it ended": either way nothing is holding it up.
23872
+ */
23873
+ alive: boolean()
23874
+ }));
23615
23875
  object({
23616
23876
  /** All accessory children of the parent. */
23617
23877
  childDeviceIds: array(number()).readonly(),
@@ -29885,7 +30145,29 @@ var LoggingSettingsPatchSchema = object({
29885
30145
  * disarmed the channels it did not mention would make the Levels page and
29886
30146
  * the Diagnostics page fight over the same value.
29887
30147
  */
29888
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
30148
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
30149
+ /**
30150
+ * How many days the analytics OPS LOG is kept — the audit trail of what
30151
+ * retention actually deleted.
30152
+ *
30153
+ * It lives HERE, on the logging document, and not on the analytics addon's
30154
+ * settings form, on the operator's instruction: every other log-ish window in
30155
+ * this system is configured through this one document, and a retention audit
30156
+ * configured somewhere else is a second place to look when the question is
30157
+ * "what happened to my data".
30158
+ *
30159
+ * That placement has a cost worth stating: this document ships in the
30160
+ * framework closure, so this knob needs a published `@camstack/server` while
30161
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30162
+ *
30163
+ * `retention-model.ts` argued this one must NOT follow a device window,
30164
+ * because the audit trail is the history of the SWEEP and not of the camera.
30165
+ * That argument stands and is untouched — what changes is that 30 days stops
30166
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30167
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30168
+ * state in which the next 9.5 GiB leak cannot be explained.
30169
+ */
30170
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29889
30171
  });
29890
30172
  /**
29891
30173
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29958,6 +30240,14 @@ var LoggingSettingsStateSchema = object({
29958
30240
  channels: array(LogChannelDescriptorSchema).readonly(),
29959
30241
  /** The channels ARMED right now, each with its deadline. */
29960
30242
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30243
+ /**
30244
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30245
+ *
30246
+ * Reported rather than left to the caller's memory of what it wrote: this is
30247
+ * the value the analytics sweep will actually use, and an operator asking how
30248
+ * long their audit trail lives should not have to infer it from a default.
30249
+ */
30250
+ opsLogRetentionDays: number().int().min(0),
29961
30251
  persisted: boolean()
29962
30252
  });
29963
30253
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
@@ -34117,6 +34407,12 @@ Object.freeze({
34117
34407
  addonId: null,
34118
34408
  access: "view"
34119
34409
  },
34410
+ "pipelineAnalytics.listRecentSummaries": {
34411
+ capName: "pipeline-analytics",
34412
+ capScope: "device",
34413
+ addonId: null,
34414
+ access: "view"
34415
+ },
34120
34416
  "pipelineAnalytics.listRecentTracks": {
34121
34417
  capName: "pipeline-analytics",
34122
34418
  capScope: "device",
@@ -36079,6 +36375,12 @@ Object.freeze({
36079
36375
  addonId: null,
36080
36376
  access: "create"
36081
36377
  },
36378
+ "streamBroker.reportStreamSignal": {
36379
+ capName: "stream-broker",
36380
+ capScope: "system",
36381
+ addonId: null,
36382
+ access: "create"
36383
+ },
36082
36384
  "streamBroker.restartProfile": {
36083
36385
  capName: "stream-broker",
36084
36386
  capScope: "system",
@@ -36163,6 +36465,12 @@ Object.freeze({
36163
36465
  addonId: null,
36164
36466
  access: "create"
36165
36467
  },
36468
+ "streamSignals.listSignals": {
36469
+ capName: "stream-signals",
36470
+ capScope: "device",
36471
+ addonId: null,
36472
+ access: "view"
36473
+ },
36166
36474
  "switch.setState": {
36167
36475
  capName: "switch",
36168
36476
  capScope: "device",
@@ -37944,6 +38252,11 @@ Object.freeze({
37944
38252
  form: "single",
37945
38253
  optional: true
37946
38254
  }],
38255
+ "pipelineAnalytics.listRecentSummaries": [{
38256
+ name: "deviceIds",
38257
+ form: "array",
38258
+ optional: false
38259
+ }],
37947
38260
  "pipelineAnalytics.listRecentTracks": [{
37948
38261
  name: "deviceIds",
37949
38262
  form: "array",
@@ -38530,6 +38843,11 @@ Object.freeze({
38530
38843
  form: "single",
38531
38844
  optional: false
38532
38845
  }],
38846
+ "streamBroker.reportStreamSignal": [{
38847
+ name: "deviceId",
38848
+ form: "single",
38849
+ optional: false
38850
+ }],
38533
38851
  "streamBroker.restartProfile": [{
38534
38852
  name: "deviceId",
38535
38853
  form: "single",
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
40
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
41
  //#endregion
42
- //#region ../types/dist/event-category-ZyX6jcse.mjs
42
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
43
43
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
44
44
  EventCategory["SystemBoot"] = "system.boot";
45
45
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -656,6 +656,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
656
656
  * pull-reconcile from the provider's `getStatus` on reconnect. */
657
657
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
658
658
  EventCategory["BackupCompleted"] = "backup.completed";
659
+ /**
660
+ * A whole backup RUN finished — every destination attempted, win or lose.
661
+ *
662
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
663
+ * a progress UI and the wrong one for a notification: an operator with three
664
+ * destinations would be told three times. And a run where two of three
665
+ * destinations succeeded is not a clean success — a single "backup
666
+ * completed" that hid the failed one would be a lie, so the count of each is
667
+ * carried here and the message says both.
668
+ *
669
+ * Emitted by the backup orchestrator only after the destination loop, so a
670
+ * run that dies during the BUILD phase produces no completion at all.
671
+ */
672
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
659
673
  EventCategory["BackupRestored"] = "backup.restored";
660
674
  EventCategory["NotificationDispatched"] = "notification.dispatched";
661
675
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5386,7 +5400,7 @@ var ZodIssueCode = {
5386
5400
  var ZodFirstPartyTypeKind;
5387
5401
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5388
5402
  //#endregion
5389
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5403
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
5390
5404
  /**
5391
5405
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5392
5406
  * window to float samples (D455).
@@ -7399,7 +7413,23 @@ var EncodeProfileSchema = object({
7399
7413
  "zerolatency",
7400
7414
  "film",
7401
7415
  "animation"
7402
- ]).optional()
7416
+ ]).optional(),
7417
+ /**
7418
+ * ONE slice per access unit.
7419
+ *
7420
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7421
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7422
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7423
+ * frame-end per frame: the first pictures render and the video then freezes
7424
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7425
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7426
+ *
7427
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7428
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7429
+ * consumers meaning the same thing spelled differently would stop sharing one
7430
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7431
+ */
7432
+ singleSlicePerFrame: boolean().optional()
7403
7433
  }),
7404
7434
  audio: union([literal("passthrough"), object({
7405
7435
  codec: _enum([
@@ -7449,7 +7479,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7449
7479
  audio: "passthrough"
7450
7480
  };
7451
7481
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7452
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7482
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7453
7483
  /**
7454
7484
  * Deep wiring healthcheck — snapshot of active reachability probes across
7455
7485
  * every declared capability + widget of every installed plugin, on every
@@ -11547,6 +11577,58 @@ var brokerCapability = {
11547
11577
  }
11548
11578
  };
11549
11579
  DeviceType.Camera;
11580
+ /**
11581
+ * The signals a device can emit to WAKE its own stream.
11582
+ *
11583
+ * A camera whose stream is built on demand sleeps until something asks for it,
11584
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
11585
+ * puller holds a session open for ever, and treating that as demand would keep
11586
+ * a battery camera awake for ever, which is the whole thing the battery is for
11587
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
11588
+ * itself, with no stream running.
11589
+ *
11590
+ * ## The vocabulary is the PROVIDER'S, not ours
11591
+ *
11592
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
11593
+ * names each signal with a `code` it chooses and a `label` an operator reads.
11594
+ * Reolink offers motion and camera-native detection; another provider may offer
11595
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
11596
+ * yet. A fixed enum here would mean every new signal is a framework release.
11597
+ *
11598
+ * It is deliberately NOT derived from the caps a device already binds. Whether
11599
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
11600
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
11601
+ * binding — but both answer "what drives the detection pipeline", which is a
11602
+ * different question from "what may wake a sleeping stream". A camera can do
11603
+ * the first and not be trusted with the second, and the operator picks per
11604
+ * camera. Two questions, two authorities.
11605
+ *
11606
+ * ## Availability is not permission
11607
+ *
11608
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
11609
+ * wakes the stream is the operator's per-camera choice, held by the broker
11610
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
11611
+ * provider declaring a signal is not a provider enabling it.
11612
+ */
11613
+ /** One signal a device can emit. */
11614
+ var StreamSignalSchema = object({
11615
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
11616
+ code: string().min(1),
11617
+ /** What an operator reads in the picker. The provider's own wording. */
11618
+ label: string().min(1),
11619
+ /**
11620
+ * Whether the provider recommends this signal ON when a camera is first set
11621
+ * up. A provider knows which of its signals are cheap and reliable; an
11622
+ * operator should not have to discover that by trial. Reolink recommends
11623
+ * both of its own.
11624
+ */
11625
+ recommended: boolean()
11626
+ });
11627
+ object({
11628
+ signals: array(StreamSignalSchema),
11629
+ lastFetchedAt: number()
11630
+ });
11631
+ Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
11550
11632
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11551
11633
  var StreamFormatSchema = _enum([
11552
11634
  "webrtc",
@@ -11943,6 +12025,22 @@ var EgressTranscodeSchema = object({
11943
12025
  camStreamId: string().nullable()
11944
12026
  });
11945
12027
  method(object({
12028
+ deviceId: number().int().nonnegative(),
12029
+ /** The provider's signal code. */
12030
+ code: string().min(1),
12031
+ /** Ms epoch. Absent ⇒ now. */
12032
+ at: number().optional()
12033
+ }), object({
12034
+ /** Whether the broker acted on it, and if not, why. */
12035
+ accepted: boolean(),
12036
+ reason: _enum([
12037
+ "woke",
12038
+ "hold-extended",
12039
+ "not-enabled",
12040
+ "no-consumer",
12041
+ "unknown-code"
12042
+ ])
12043
+ }), { kind: "mutation" }), method(object({
11946
12044
  deviceId: number().int().nonnegative(),
11947
12045
  camStreamId: string().min(1),
11948
12046
  kind: CamStreamKindSchema,
@@ -12197,6 +12295,16 @@ var PickStreamRequirementsSchema = object({
12197
12295
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12198
12296
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12199
12297
  minHeight: number().int().positive().optional(),
12298
+ /**
12299
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
12300
+ *
12301
+ * A consumer can have a ceiling as real as its floor: Alexa documents
12302
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
12303
+ * Without this the ceiling had to be re-implemented by every caller — and
12304
+ * one caller implementing it privately is how a second scoring authority
12305
+ * gets born.
12306
+ */
12307
+ maxHeight: number().int().positive().optional(),
12200
12308
  /** Minimum horizontal resolution. */
12201
12309
  minWidth: number().int().positive().optional(),
12202
12310
  /**
@@ -12213,7 +12321,22 @@ var PickStreamRequirementsSchema = object({
12213
12321
  * transcoded" guard: if the device is already serving the consumer's
12214
12322
  * codec end-to-end, there's nothing to optimise.
12215
12323
  */
12216
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
12324
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
12325
+ /**
12326
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
12327
+ * understanding that it will be transcoded.
12328
+ *
12329
+ * Default `false` — today's behaviour, and the right one for a bypass
12330
+ * question ("is there a stream I can forward untouched?"). Set `true` to
12331
+ * ask the larger question: "what is the best stream for me, transcoding if
12332
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
12333
+ * does not, so a passthrough is never lost to a transcode; the answer says
12334
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
12335
+ *
12336
+ * This is what lets one picker serve both the bypass and the full source
12337
+ * choice, instead of a consumer scoring privately when the bypass misses.
12338
+ */
12339
+ allowTranscode: boolean().optional()
12217
12340
  }).readonly();
12218
12341
  var PickStreamPreferencesSchema = object({
12219
12342
  /**
@@ -12227,12 +12350,32 @@ var PickStreamPreferencesSchema = object({
12227
12350
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12228
12351
  * memory-constrained consumers / Apple Home guest sessions).
12229
12352
  */
12230
- resolutionPreference: _enum(["highest", "lowest"]).optional()
12353
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
12354
+ /**
12355
+ * The height the consumer actually wants to DELIVER.
12356
+ *
12357
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
12358
+ * above the target wins, and only if nothing reaches it does the tallest
12359
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
12360
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
12361
+ * express that: it says "as big as possible", which is a different wish.
12362
+ *
12363
+ * Ignored when absent, so every existing caller keeps its ordering.
12364
+ */
12365
+ targetHeight: number().int().positive().optional()
12231
12366
  }).readonly();
12232
12367
  var PickedCamStreamSchema = object({
12233
12368
  camStreamId: string(),
12234
12369
  codec: string().optional(),
12235
12370
  resolution: CamStreamResolutionSchema.optional(),
12371
+ /**
12372
+ * Whether serving this stream requires a decode + re-encode.
12373
+ *
12374
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
12375
+ * when the caller asked for it with `allowTranscode`, so a caller that did
12376
+ * not ask cannot be handed a cost it never agreed to pay.
12377
+ */
12378
+ transcodes: boolean(),
12236
12379
  /** One-line explanation of why this stream won — for logs / debug UI. */
12237
12380
  reason: string()
12238
12381
  });
@@ -16440,6 +16583,8 @@ var NcSystemEventKindSchema = _enum([
16440
16583
  "device-enabled",
16441
16584
  "device-battery-low",
16442
16585
  "device-battery-normal",
16586
+ "device-consumable-low",
16587
+ "device-consumable-normal",
16443
16588
  "stream-online",
16444
16589
  "stream-offline",
16445
16590
  "node-online",
@@ -16458,6 +16603,7 @@ var NcSystemEventKindSchema = _enum([
16458
16603
  "addon-updated",
16459
16604
  "server-updated",
16460
16605
  "export-completed",
16606
+ "backup-completed",
16461
16607
  "camera-online",
16462
16608
  "camera-offline",
16463
16609
  "camera-disabled",
@@ -19854,13 +20000,109 @@ var SummariesQueryInput = object({
19854
20000
  deviceIds: array(number()).min(1),
19855
20001
  since: number().optional(),
19856
20002
  until: number().optional(),
19857
- limit: number().int().min(1).max(200).default(50)
20003
+ limit: number().int().min(1).max(200).default(50),
20004
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20005
+ * meaning of "dog" on every summary surface. */
20006
+ classes: array(string().min(1).max(60)).max(40).optional()
19858
20007
  });
19859
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19860
20008
  var SummaryDetailSchema = object({
19861
20009
  summary: SummarySchema,
19862
- /** Member track ids, in absorption order. */
19863
- trackIds: array(string()).readonly()
20010
+ /** Members in absorption order, oldest join first. */
20011
+ members: array(object({
20012
+ trackId: string(),
20013
+ /**
20014
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20015
+ * and the track no longer exists to fill it.
20016
+ *
20017
+ * The join, not the latest opinion: class voting can re-decide a track's
20018
+ * class afterwards, and a group's composition is the history of who came
20019
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20020
+ * dog" — rather than being handed a second, denormalised tally that would
20021
+ * drift from the members it claims to describe.
20022
+ */
20023
+ className: string().nullable(),
20024
+ /** `primary` is the one member that carries the group's identity. */
20025
+ role: _enum([
20026
+ "primary",
20027
+ "sibling",
20028
+ "child"
20029
+ ]).nullable(),
20030
+ joinedAt: number(),
20031
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20032
+ * at read time. Absent when nothing resolved, never an empty string. */
20033
+ label: string().optional(),
20034
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20035
+ * recognised nobody, and absent for a member whose track has been pruned —
20036
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20037
+ subLabel: string().optional()
20038
+ })).readonly()
20039
+ });
20040
+ /**
20041
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20042
+ *
20043
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20044
+ * we extend when we notice we need more". Enough to draw the card ("two people
20045
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20046
+ * are on {@link getSummary}: shipping every member of every group so a client
20047
+ * can count them turns a page of two hundred groups into a thousand records to
20048
+ * draw two hundred badges.
20049
+ */
20050
+ var SummaryListItemSchema = object({
20051
+ summary: SummarySchema,
20052
+ /** Class counts, most numerous first; `className: null` is a member whose
20053
+ * class never resolved, counted so the counts add up to `memberCount`. */
20054
+ classes: array(object({
20055
+ className: string().nullable(),
20056
+ count: number().int().positive()
20057
+ })).readonly()
20058
+ });
20059
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20060
+ /**
20061
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20062
+ *
20063
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20064
+ * summaries feed that could only answer "the last N for these cameras"
20065
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20066
+ * else. Two feeds with different ordering contracts would be two ideas of what
20067
+ * "newest" means, on one screen.
20068
+ */
20069
+ var RecentSummariesQueryInput = object({
20070
+ /** Devices to merge. An empty array yields an empty page. */
20071
+ deviceIds: array(number()),
20072
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20073
+ since: number().optional(),
20074
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20075
+ until: number().optional(),
20076
+ limit: number().int().min(1).max(500).default(100),
20077
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20078
+ cursor: string().optional(),
20079
+ /**
20080
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20081
+ * deliberately the same name: the events filter tree emits one list of ticked
20082
+ * taxonomy nodes, and a summaries feed that called it something else would
20083
+ * make the operator's one filter component produce two shapes.
20084
+ *
20085
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20086
+ * me the arrivals with a dog" has to return the group of four people who had
20087
+ * one with them; a filter on the group's own fields could only ever answer
20088
+ * about its primary.
20089
+ *
20090
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20091
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20092
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20093
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20094
+ * that read only the class would answer "animal" and never "dog".
20095
+ *
20096
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20097
+ */
20098
+ classes: array(string().min(1).max(60)).max(40).optional()
20099
+ });
20100
+ var RecentSummariesPageSchema = object({
20101
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20102
+ * {@link listSummaries} — one list shape, so a card renders the same
20103
+ * whichever feed drew it. */
20104
+ summaries: array(SummaryListItemSchema).readonly(),
20105
+ nextCursor: string().nullable()
19864
20106
  });
19865
20107
  var RecentTracksPageSchema = object({
19866
20108
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20274,7 +20516,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20274
20516
  classes: array(string()).optional(),
20275
20517
  /** See {@link ExcludeSourcesDoc}. */
20276
20518
  excludeSources: array(TrackSourceSchema).optional()
20277
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20519
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20278
20520
  kind: "mutation",
20279
20521
  auth: "admin"
20280
20522
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -23603,10 +23845,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
23603
23845
  }), boolean()), method(object({
23604
23846
  deviceId: number().int().nonnegative(),
23605
23847
  sessionId: string()
23606
- }), object({ pendingRenegotiation: object({
23607
- target: WebrtcStreamTargetSchema,
23608
- epoch: number()
23609
- }).nullable() }));
23848
+ }), object({
23849
+ pendingRenegotiation: object({
23850
+ target: WebrtcStreamTargetSchema,
23851
+ epoch: number()
23852
+ }).nullable(),
23853
+ /**
23854
+ * Whether the session still EXISTS.
23855
+ *
23856
+ * A consumer that holds a resource for the life of a session needs to
23857
+ * be able to ask, because a session does not always end the way it
23858
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
23859
+ * sent `SessionDisconnected`, so the Alexa exporter's
23860
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
23861
+ * H.264 transcode kept running for NOBODY for more than twenty
23862
+ * minutes. The WebRTC session had logged `WebRTC session closed`
23863
+ * minutes earlier — the broker knew; the holder had no way to ask.
23864
+ *
23865
+ * `false` for a session id the provider has never heard of, which is
23866
+ * the same answer as "it ended": either way nothing is holding it up.
23867
+ */
23868
+ alive: boolean()
23869
+ }));
23610
23870
  object({
23611
23871
  /** All accessory children of the parent. */
23612
23872
  childDeviceIds: array(number()).readonly(),
@@ -29880,7 +30140,29 @@ var LoggingSettingsPatchSchema = object({
29880
30140
  * disarmed the channels it did not mention would make the Levels page and
29881
30141
  * the Diagnostics page fight over the same value.
29882
30142
  */
29883
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
30143
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
30144
+ /**
30145
+ * How many days the analytics OPS LOG is kept — the audit trail of what
30146
+ * retention actually deleted.
30147
+ *
30148
+ * It lives HERE, on the logging document, and not on the analytics addon's
30149
+ * settings form, on the operator's instruction: every other log-ish window in
30150
+ * this system is configured through this one document, and a retention audit
30151
+ * configured somewhere else is a second place to look when the question is
30152
+ * "what happened to my data".
30153
+ *
30154
+ * That placement has a cost worth stating: this document ships in the
30155
+ * framework closure, so this knob needs a published `@camstack/server` while
30156
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30157
+ *
30158
+ * `retention-model.ts` argued this one must NOT follow a device window,
30159
+ * because the audit trail is the history of the SWEEP and not of the camera.
30160
+ * That argument stands and is untouched — what changes is that 30 days stops
30161
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30162
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30163
+ * state in which the next 9.5 GiB leak cannot be explained.
30164
+ */
30165
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29884
30166
  });
29885
30167
  /**
29886
30168
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29953,6 +30235,14 @@ var LoggingSettingsStateSchema = object({
29953
30235
  channels: array(LogChannelDescriptorSchema).readonly(),
29954
30236
  /** The channels ARMED right now, each with its deadline. */
29955
30237
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30238
+ /**
30239
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30240
+ *
30241
+ * Reported rather than left to the caller's memory of what it wrote: this is
30242
+ * the value the analytics sweep will actually use, and an operator asking how
30243
+ * long their audit trail lives should not have to infer it from a default.
30244
+ */
30245
+ opsLogRetentionDays: number().int().min(0),
29956
30246
  persisted: boolean()
29957
30247
  });
29958
30248
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
@@ -34112,6 +34402,12 @@ Object.freeze({
34112
34402
  addonId: null,
34113
34403
  access: "view"
34114
34404
  },
34405
+ "pipelineAnalytics.listRecentSummaries": {
34406
+ capName: "pipeline-analytics",
34407
+ capScope: "device",
34408
+ addonId: null,
34409
+ access: "view"
34410
+ },
34115
34411
  "pipelineAnalytics.listRecentTracks": {
34116
34412
  capName: "pipeline-analytics",
34117
34413
  capScope: "device",
@@ -36074,6 +36370,12 @@ Object.freeze({
36074
36370
  addonId: null,
36075
36371
  access: "create"
36076
36372
  },
36373
+ "streamBroker.reportStreamSignal": {
36374
+ capName: "stream-broker",
36375
+ capScope: "system",
36376
+ addonId: null,
36377
+ access: "create"
36378
+ },
36077
36379
  "streamBroker.restartProfile": {
36078
36380
  capName: "stream-broker",
36079
36381
  capScope: "system",
@@ -36158,6 +36460,12 @@ Object.freeze({
36158
36460
  addonId: null,
36159
36461
  access: "create"
36160
36462
  },
36463
+ "streamSignals.listSignals": {
36464
+ capName: "stream-signals",
36465
+ capScope: "device",
36466
+ addonId: null,
36467
+ access: "view"
36468
+ },
36161
36469
  "switch.setState": {
36162
36470
  capName: "switch",
36163
36471
  capScope: "device",
@@ -37939,6 +38247,11 @@ Object.freeze({
37939
38247
  form: "single",
37940
38248
  optional: true
37941
38249
  }],
38250
+ "pipelineAnalytics.listRecentSummaries": [{
38251
+ name: "deviceIds",
38252
+ form: "array",
38253
+ optional: false
38254
+ }],
37942
38255
  "pipelineAnalytics.listRecentTracks": [{
37943
38256
  name: "deviceIds",
37944
38257
  form: "array",
@@ -38525,6 +38838,11 @@ Object.freeze({
38525
38838
  form: "single",
38526
38839
  optional: false
38527
38840
  }],
38841
+ "streamBroker.reportStreamSignal": [{
38842
+ name: "deviceId",
38843
+ form: "single",
38844
+ optional: false
38845
+ }],
38528
38846
  "streamBroker.restartProfile": [{
38529
38847
  name: "deviceId",
38530
38848
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.100",
3
+ "version": "1.2.102",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",