@camstack/addon-decoder-nodeav 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.
Files changed (3) hide show
  1. package/dist/index.js +334 -16
  2. package/dist/index.mjs +334 -16
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  let node_crypto = require("node:crypto");
6
- //#region ../types/dist/event-category-ZyX6jcse.mjs
6
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
7
7
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
8
8
  EventCategory["SystemBoot"] = "system.boot";
9
9
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -620,6 +620,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
620
620
  * pull-reconcile from the provider's `getStatus` on reconnect. */
621
621
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
622
622
  EventCategory["BackupCompleted"] = "backup.completed";
623
+ /**
624
+ * A whole backup RUN finished — every destination attempted, win or lose.
625
+ *
626
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
627
+ * a progress UI and the wrong one for a notification: an operator with three
628
+ * destinations would be told three times. And a run where two of three
629
+ * destinations succeeded is not a clean success — a single "backup
630
+ * completed" that hid the failed one would be a lie, so the count of each is
631
+ * carried here and the message says both.
632
+ *
633
+ * Emitted by the backup orchestrator only after the destination loop, so a
634
+ * run that dies during the BUILD phase produces no completion at all.
635
+ */
636
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
623
637
  EventCategory["BackupRestored"] = "backup.restored";
624
638
  EventCategory["NotificationDispatched"] = "notification.dispatched";
625
639
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5350,7 +5364,7 @@ var ZodIssueCode = {
5350
5364
  var ZodFirstPartyTypeKind;
5351
5365
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5352
5366
  //#endregion
5353
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5367
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
5354
5368
  /**
5355
5369
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5356
5370
  * window to float samples (D455).
@@ -7375,7 +7389,23 @@ var EncodeProfileSchema = object({
7375
7389
  "zerolatency",
7376
7390
  "film",
7377
7391
  "animation"
7378
- ]).optional()
7392
+ ]).optional(),
7393
+ /**
7394
+ * ONE slice per access unit.
7395
+ *
7396
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7397
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7398
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7399
+ * frame-end per frame: the first pictures render and the video then freezes
7400
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7401
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7402
+ *
7403
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7404
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7405
+ * consumers meaning the same thing spelled differently would stop sharing one
7406
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7407
+ */
7408
+ singleSlicePerFrame: boolean().optional()
7379
7409
  }),
7380
7410
  audio: union([literal("passthrough"), object({
7381
7411
  codec: _enum([
@@ -7425,7 +7455,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7425
7455
  audio: "passthrough"
7426
7456
  };
7427
7457
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7428
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7458
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7429
7459
  /**
7430
7460
  * Deep wiring healthcheck — snapshot of active reachability probes across
7431
7461
  * every declared capability + widget of every installed plugin, on every
@@ -11511,6 +11541,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
11511
11541
  auth: "admin"
11512
11542
  }), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
11513
11543
  DeviceType.Camera;
11544
+ /**
11545
+ * The signals a device can emit to WAKE its own stream.
11546
+ *
11547
+ * A camera whose stream is built on demand sleeps until something asks for it,
11548
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
11549
+ * puller holds a session open for ever, and treating that as demand would keep
11550
+ * a battery camera awake for ever, which is the whole thing the battery is for
11551
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
11552
+ * itself, with no stream running.
11553
+ *
11554
+ * ## The vocabulary is the PROVIDER'S, not ours
11555
+ *
11556
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
11557
+ * names each signal with a `code` it chooses and a `label` an operator reads.
11558
+ * Reolink offers motion and camera-native detection; another provider may offer
11559
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
11560
+ * yet. A fixed enum here would mean every new signal is a framework release.
11561
+ *
11562
+ * It is deliberately NOT derived from the caps a device already binds. Whether
11563
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
11564
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
11565
+ * binding — but both answer "what drives the detection pipeline", which is a
11566
+ * different question from "what may wake a sleeping stream". A camera can do
11567
+ * the first and not be trusted with the second, and the operator picks per
11568
+ * camera. Two questions, two authorities.
11569
+ *
11570
+ * ## Availability is not permission
11571
+ *
11572
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
11573
+ * wakes the stream is the operator's per-camera choice, held by the broker
11574
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
11575
+ * provider declaring a signal is not a provider enabling it.
11576
+ */
11577
+ /** One signal a device can emit. */
11578
+ var StreamSignalSchema = object({
11579
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
11580
+ code: string().min(1),
11581
+ /** What an operator reads in the picker. The provider's own wording. */
11582
+ label: string().min(1),
11583
+ /**
11584
+ * Whether the provider recommends this signal ON when a camera is first set
11585
+ * up. A provider knows which of its signals are cheap and reliable; an
11586
+ * operator should not have to discover that by trial. Reolink recommends
11587
+ * both of its own.
11588
+ */
11589
+ recommended: boolean()
11590
+ });
11591
+ object({
11592
+ signals: array(StreamSignalSchema),
11593
+ lastFetchedAt: number()
11594
+ });
11595
+ Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
11514
11596
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11515
11597
  var StreamFormatSchema = _enum([
11516
11598
  "webrtc",
@@ -11907,6 +11989,22 @@ var EgressTranscodeSchema = object({
11907
11989
  camStreamId: string().nullable()
11908
11990
  });
11909
11991
  method(object({
11992
+ deviceId: number().int().nonnegative(),
11993
+ /** The provider's signal code. */
11994
+ code: string().min(1),
11995
+ /** Ms epoch. Absent ⇒ now. */
11996
+ at: number().optional()
11997
+ }), object({
11998
+ /** Whether the broker acted on it, and if not, why. */
11999
+ accepted: boolean(),
12000
+ reason: _enum([
12001
+ "woke",
12002
+ "hold-extended",
12003
+ "not-enabled",
12004
+ "no-consumer",
12005
+ "unknown-code"
12006
+ ])
12007
+ }), { kind: "mutation" }), method(object({
11910
12008
  deviceId: number().int().nonnegative(),
11911
12009
  camStreamId: string().min(1),
11912
12010
  kind: CamStreamKindSchema,
@@ -12161,6 +12259,16 @@ var PickStreamRequirementsSchema = object({
12161
12259
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12162
12260
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12163
12261
  minHeight: number().int().positive().optional(),
12262
+ /**
12263
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
12264
+ *
12265
+ * A consumer can have a ceiling as real as its floor: Alexa documents
12266
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
12267
+ * Without this the ceiling had to be re-implemented by every caller — and
12268
+ * one caller implementing it privately is how a second scoring authority
12269
+ * gets born.
12270
+ */
12271
+ maxHeight: number().int().positive().optional(),
12164
12272
  /** Minimum horizontal resolution. */
12165
12273
  minWidth: number().int().positive().optional(),
12166
12274
  /**
@@ -12177,7 +12285,22 @@ var PickStreamRequirementsSchema = object({
12177
12285
  * transcoded" guard: if the device is already serving the consumer's
12178
12286
  * codec end-to-end, there's nothing to optimise.
12179
12287
  */
12180
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
12288
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
12289
+ /**
12290
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
12291
+ * understanding that it will be transcoded.
12292
+ *
12293
+ * Default `false` — today's behaviour, and the right one for a bypass
12294
+ * question ("is there a stream I can forward untouched?"). Set `true` to
12295
+ * ask the larger question: "what is the best stream for me, transcoding if
12296
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
12297
+ * does not, so a passthrough is never lost to a transcode; the answer says
12298
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
12299
+ *
12300
+ * This is what lets one picker serve both the bypass and the full source
12301
+ * choice, instead of a consumer scoring privately when the bypass misses.
12302
+ */
12303
+ allowTranscode: boolean().optional()
12181
12304
  }).readonly();
12182
12305
  var PickStreamPreferencesSchema = object({
12183
12306
  /**
@@ -12191,12 +12314,32 @@ var PickStreamPreferencesSchema = object({
12191
12314
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12192
12315
  * memory-constrained consumers / Apple Home guest sessions).
12193
12316
  */
12194
- resolutionPreference: _enum(["highest", "lowest"]).optional()
12317
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
12318
+ /**
12319
+ * The height the consumer actually wants to DELIVER.
12320
+ *
12321
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
12322
+ * above the target wins, and only if nothing reaches it does the tallest
12323
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
12324
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
12325
+ * express that: it says "as big as possible", which is a different wish.
12326
+ *
12327
+ * Ignored when absent, so every existing caller keeps its ordering.
12328
+ */
12329
+ targetHeight: number().int().positive().optional()
12195
12330
  }).readonly();
12196
12331
  var PickedCamStreamSchema = object({
12197
12332
  camStreamId: string(),
12198
12333
  codec: string().optional(),
12199
12334
  resolution: CamStreamResolutionSchema.optional(),
12335
+ /**
12336
+ * Whether serving this stream requires a decode + re-encode.
12337
+ *
12338
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
12339
+ * when the caller asked for it with `allowTranscode`, so a caller that did
12340
+ * not ask cannot be handed a cost it never agreed to pay.
12341
+ */
12342
+ transcodes: boolean(),
12200
12343
  /** One-line explanation of why this stream won — for logs / debug UI. */
12201
12344
  reason: string()
12202
12345
  });
@@ -16478,6 +16621,8 @@ var NcSystemEventKindSchema = _enum([
16478
16621
  "device-enabled",
16479
16622
  "device-battery-low",
16480
16623
  "device-battery-normal",
16624
+ "device-consumable-low",
16625
+ "device-consumable-normal",
16481
16626
  "stream-online",
16482
16627
  "stream-offline",
16483
16628
  "node-online",
@@ -16496,6 +16641,7 @@ var NcSystemEventKindSchema = _enum([
16496
16641
  "addon-updated",
16497
16642
  "server-updated",
16498
16643
  "export-completed",
16644
+ "backup-completed",
16499
16645
  "camera-online",
16500
16646
  "camera-offline",
16501
16647
  "camera-disabled",
@@ -19892,13 +20038,109 @@ var SummariesQueryInput = object({
19892
20038
  deviceIds: array(number()).min(1),
19893
20039
  since: number().optional(),
19894
20040
  until: number().optional(),
19895
- limit: number().int().min(1).max(200).default(50)
20041
+ limit: number().int().min(1).max(200).default(50),
20042
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20043
+ * meaning of "dog" on every summary surface. */
20044
+ classes: array(string().min(1).max(60)).max(40).optional()
19896
20045
  });
19897
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19898
20046
  var SummaryDetailSchema = object({
19899
20047
  summary: SummarySchema,
19900
- /** Member track ids, in absorption order. */
19901
- trackIds: array(string()).readonly()
20048
+ /** Members in absorption order, oldest join first. */
20049
+ members: array(object({
20050
+ trackId: string(),
20051
+ /**
20052
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20053
+ * and the track no longer exists to fill it.
20054
+ *
20055
+ * The join, not the latest opinion: class voting can re-decide a track's
20056
+ * class afterwards, and a group's composition is the history of who came
20057
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20058
+ * dog" — rather than being handed a second, denormalised tally that would
20059
+ * drift from the members it claims to describe.
20060
+ */
20061
+ className: string().nullable(),
20062
+ /** `primary` is the one member that carries the group's identity. */
20063
+ role: _enum([
20064
+ "primary",
20065
+ "sibling",
20066
+ "child"
20067
+ ]).nullable(),
20068
+ joinedAt: number(),
20069
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20070
+ * at read time. Absent when nothing resolved, never an empty string. */
20071
+ label: string().optional(),
20072
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20073
+ * recognised nobody, and absent for a member whose track has been pruned —
20074
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20075
+ subLabel: string().optional()
20076
+ })).readonly()
20077
+ });
20078
+ /**
20079
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20080
+ *
20081
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20082
+ * we extend when we notice we need more". Enough to draw the card ("two people
20083
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20084
+ * are on {@link getSummary}: shipping every member of every group so a client
20085
+ * can count them turns a page of two hundred groups into a thousand records to
20086
+ * draw two hundred badges.
20087
+ */
20088
+ var SummaryListItemSchema = object({
20089
+ summary: SummarySchema,
20090
+ /** Class counts, most numerous first; `className: null` is a member whose
20091
+ * class never resolved, counted so the counts add up to `memberCount`. */
20092
+ classes: array(object({
20093
+ className: string().nullable(),
20094
+ count: number().int().positive()
20095
+ })).readonly()
20096
+ });
20097
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20098
+ /**
20099
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20100
+ *
20101
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20102
+ * summaries feed that could only answer "the last N for these cameras"
20103
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20104
+ * else. Two feeds with different ordering contracts would be two ideas of what
20105
+ * "newest" means, on one screen.
20106
+ */
20107
+ var RecentSummariesQueryInput = object({
20108
+ /** Devices to merge. An empty array yields an empty page. */
20109
+ deviceIds: array(number()),
20110
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20111
+ since: number().optional(),
20112
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20113
+ until: number().optional(),
20114
+ limit: number().int().min(1).max(500).default(100),
20115
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20116
+ cursor: string().optional(),
20117
+ /**
20118
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20119
+ * deliberately the same name: the events filter tree emits one list of ticked
20120
+ * taxonomy nodes, and a summaries feed that called it something else would
20121
+ * make the operator's one filter component produce two shapes.
20122
+ *
20123
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20124
+ * me the arrivals with a dog" has to return the group of four people who had
20125
+ * one with them; a filter on the group's own fields could only ever answer
20126
+ * about its primary.
20127
+ *
20128
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20129
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20130
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20131
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20132
+ * that read only the class would answer "animal" and never "dog".
20133
+ *
20134
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20135
+ */
20136
+ classes: array(string().min(1).max(60)).max(40).optional()
20137
+ });
20138
+ var RecentSummariesPageSchema = object({
20139
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20140
+ * {@link listSummaries} — one list shape, so a card renders the same
20141
+ * whichever feed drew it. */
20142
+ summaries: array(SummaryListItemSchema).readonly(),
20143
+ nextCursor: string().nullable()
19902
20144
  });
19903
20145
  var RecentTracksPageSchema = object({
19904
20146
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20312,7 +20554,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20312
20554
  classes: array(string()).optional(),
20313
20555
  /** See {@link ExcludeSourcesDoc}. */
20314
20556
  excludeSources: array(TrackSourceSchema).optional()
20315
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20557
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20316
20558
  kind: "mutation",
20317
20559
  auth: "admin"
20318
20560
  }), 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({
@@ -23641,10 +23883,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
23641
23883
  }), boolean()), method(object({
23642
23884
  deviceId: number().int().nonnegative(),
23643
23885
  sessionId: string()
23644
- }), object({ pendingRenegotiation: object({
23645
- target: WebrtcStreamTargetSchema,
23646
- epoch: number()
23647
- }).nullable() }));
23886
+ }), object({
23887
+ pendingRenegotiation: object({
23888
+ target: WebrtcStreamTargetSchema,
23889
+ epoch: number()
23890
+ }).nullable(),
23891
+ /**
23892
+ * Whether the session still EXISTS.
23893
+ *
23894
+ * A consumer that holds a resource for the life of a session needs to
23895
+ * be able to ask, because a session does not always end the way it
23896
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
23897
+ * sent `SessionDisconnected`, so the Alexa exporter's
23898
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
23899
+ * H.264 transcode kept running for NOBODY for more than twenty
23900
+ * minutes. The WebRTC session had logged `WebRTC session closed`
23901
+ * minutes earlier — the broker knew; the holder had no way to ask.
23902
+ *
23903
+ * `false` for a session id the provider has never heard of, which is
23904
+ * the same answer as "it ended": either way nothing is holding it up.
23905
+ */
23906
+ alive: boolean()
23907
+ }));
23648
23908
  object({
23649
23909
  /** All accessory children of the parent. */
23650
23910
  childDeviceIds: array(number()).readonly(),
@@ -29918,7 +30178,29 @@ var LoggingSettingsPatchSchema = object({
29918
30178
  * disarmed the channels it did not mention would make the Levels page and
29919
30179
  * the Diagnostics page fight over the same value.
29920
30180
  */
29921
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
30181
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
30182
+ /**
30183
+ * How many days the analytics OPS LOG is kept — the audit trail of what
30184
+ * retention actually deleted.
30185
+ *
30186
+ * It lives HERE, on the logging document, and not on the analytics addon's
30187
+ * settings form, on the operator's instruction: every other log-ish window in
30188
+ * this system is configured through this one document, and a retention audit
30189
+ * configured somewhere else is a second place to look when the question is
30190
+ * "what happened to my data".
30191
+ *
30192
+ * That placement has a cost worth stating: this document ships in the
30193
+ * framework closure, so this knob needs a published `@camstack/server` while
30194
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30195
+ *
30196
+ * `retention-model.ts` argued this one must NOT follow a device window,
30197
+ * because the audit trail is the history of the SWEEP and not of the camera.
30198
+ * That argument stands and is untouched — what changes is that 30 days stops
30199
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30200
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30201
+ * state in which the next 9.5 GiB leak cannot be explained.
30202
+ */
30203
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29922
30204
  });
29923
30205
  /**
29924
30206
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29991,6 +30273,14 @@ var LoggingSettingsStateSchema = object({
29991
30273
  channels: array(LogChannelDescriptorSchema).readonly(),
29992
30274
  /** The channels ARMED right now, each with its deadline. */
29993
30275
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30276
+ /**
30277
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30278
+ *
30279
+ * Reported rather than left to the caller's memory of what it wrote: this is
30280
+ * the value the analytics sweep will actually use, and an operator asking how
30281
+ * long their audit trail lives should not have to infer it from a default.
30282
+ */
30283
+ opsLogRetentionDays: number().int().min(0),
29994
30284
  persisted: boolean()
29995
30285
  });
29996
30286
  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(), {
@@ -34150,6 +34440,12 @@ Object.freeze({
34150
34440
  addonId: null,
34151
34441
  access: "view"
34152
34442
  },
34443
+ "pipelineAnalytics.listRecentSummaries": {
34444
+ capName: "pipeline-analytics",
34445
+ capScope: "device",
34446
+ addonId: null,
34447
+ access: "view"
34448
+ },
34153
34449
  "pipelineAnalytics.listRecentTracks": {
34154
34450
  capName: "pipeline-analytics",
34155
34451
  capScope: "device",
@@ -36112,6 +36408,12 @@ Object.freeze({
36112
36408
  addonId: null,
36113
36409
  access: "create"
36114
36410
  },
36411
+ "streamBroker.reportStreamSignal": {
36412
+ capName: "stream-broker",
36413
+ capScope: "system",
36414
+ addonId: null,
36415
+ access: "create"
36416
+ },
36115
36417
  "streamBroker.restartProfile": {
36116
36418
  capName: "stream-broker",
36117
36419
  capScope: "system",
@@ -36196,6 +36498,12 @@ Object.freeze({
36196
36498
  addonId: null,
36197
36499
  access: "create"
36198
36500
  },
36501
+ "streamSignals.listSignals": {
36502
+ capName: "stream-signals",
36503
+ capScope: "device",
36504
+ addonId: null,
36505
+ access: "view"
36506
+ },
36199
36507
  "switch.setState": {
36200
36508
  capName: "switch",
36201
36509
  capScope: "device",
@@ -37977,6 +38285,11 @@ Object.freeze({
37977
38285
  form: "single",
37978
38286
  optional: true
37979
38287
  }],
38288
+ "pipelineAnalytics.listRecentSummaries": [{
38289
+ name: "deviceIds",
38290
+ form: "array",
38291
+ optional: false
38292
+ }],
37980
38293
  "pipelineAnalytics.listRecentTracks": [{
37981
38294
  name: "deviceIds",
37982
38295
  form: "array",
@@ -38563,6 +38876,11 @@ Object.freeze({
38563
38876
  form: "single",
38564
38877
  optional: false
38565
38878
  }],
38879
+ "streamBroker.reportStreamSignal": [{
38880
+ name: "deviceId",
38881
+ form: "single",
38882
+ optional: false
38883
+ }],
38566
38884
  "streamBroker.restartProfile": [{
38567
38885
  name: "deviceId",
38568
38886
  form: "single",
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from "node:crypto";
2
- //#region ../types/dist/event-category-ZyX6jcse.mjs
2
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -616,6 +616,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
616
616
  * pull-reconcile from the provider's `getStatus` on reconnect. */
617
617
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
618
618
  EventCategory["BackupCompleted"] = "backup.completed";
619
+ /**
620
+ * A whole backup RUN finished — every destination attempted, win or lose.
621
+ *
622
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
623
+ * a progress UI and the wrong one for a notification: an operator with three
624
+ * destinations would be told three times. And a run where two of three
625
+ * destinations succeeded is not a clean success — a single "backup
626
+ * completed" that hid the failed one would be a lie, so the count of each is
627
+ * carried here and the message says both.
628
+ *
629
+ * Emitted by the backup orchestrator only after the destination loop, so a
630
+ * run that dies during the BUILD phase produces no completion at all.
631
+ */
632
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
619
633
  EventCategory["BackupRestored"] = "backup.restored";
620
634
  EventCategory["NotificationDispatched"] = "notification.dispatched";
621
635
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5346,7 +5360,7 @@ var ZodIssueCode = {
5346
5360
  var ZodFirstPartyTypeKind;
5347
5361
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5348
5362
  //#endregion
5349
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5363
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
5350
5364
  /**
5351
5365
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5352
5366
  * window to float samples (D455).
@@ -7371,7 +7385,23 @@ var EncodeProfileSchema = object({
7371
7385
  "zerolatency",
7372
7386
  "film",
7373
7387
  "animation"
7374
- ]).optional()
7388
+ ]).optional(),
7389
+ /**
7390
+ * ONE slice per access unit.
7391
+ *
7392
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7393
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7394
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7395
+ * frame-end per frame: the first pictures render and the video then freezes
7396
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7397
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7398
+ *
7399
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7400
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7401
+ * consumers meaning the same thing spelled differently would stop sharing one
7402
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7403
+ */
7404
+ singleSlicePerFrame: boolean().optional()
7375
7405
  }),
7376
7406
  audio: union([literal("passthrough"), object({
7377
7407
  codec: _enum([
@@ -7421,7 +7451,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7421
7451
  audio: "passthrough"
7422
7452
  };
7423
7453
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7424
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7454
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7425
7455
  /**
7426
7456
  * Deep wiring healthcheck — snapshot of active reachability probes across
7427
7457
  * every declared capability + widget of every installed plugin, on every
@@ -11507,6 +11537,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
11507
11537
  auth: "admin"
11508
11538
  }), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
11509
11539
  DeviceType.Camera;
11540
+ /**
11541
+ * The signals a device can emit to WAKE its own stream.
11542
+ *
11543
+ * A camera whose stream is built on demand sleeps until something asks for it,
11544
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
11545
+ * puller holds a session open for ever, and treating that as demand would keep
11546
+ * a battery camera awake for ever, which is the whole thing the battery is for
11547
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
11548
+ * itself, with no stream running.
11549
+ *
11550
+ * ## The vocabulary is the PROVIDER'S, not ours
11551
+ *
11552
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
11553
+ * names each signal with a `code` it chooses and a `label` an operator reads.
11554
+ * Reolink offers motion and camera-native detection; another provider may offer
11555
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
11556
+ * yet. A fixed enum here would mean every new signal is a framework release.
11557
+ *
11558
+ * It is deliberately NOT derived from the caps a device already binds. Whether
11559
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
11560
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
11561
+ * binding — but both answer "what drives the detection pipeline", which is a
11562
+ * different question from "what may wake a sleeping stream". A camera can do
11563
+ * the first and not be trusted with the second, and the operator picks per
11564
+ * camera. Two questions, two authorities.
11565
+ *
11566
+ * ## Availability is not permission
11567
+ *
11568
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
11569
+ * wakes the stream is the operator's per-camera choice, held by the broker
11570
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
11571
+ * provider declaring a signal is not a provider enabling it.
11572
+ */
11573
+ /** One signal a device can emit. */
11574
+ var StreamSignalSchema = object({
11575
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
11576
+ code: string().min(1),
11577
+ /** What an operator reads in the picker. The provider's own wording. */
11578
+ label: string().min(1),
11579
+ /**
11580
+ * Whether the provider recommends this signal ON when a camera is first set
11581
+ * up. A provider knows which of its signals are cheap and reliable; an
11582
+ * operator should not have to discover that by trial. Reolink recommends
11583
+ * both of its own.
11584
+ */
11585
+ recommended: boolean()
11586
+ });
11587
+ object({
11588
+ signals: array(StreamSignalSchema),
11589
+ lastFetchedAt: number()
11590
+ });
11591
+ Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
11510
11592
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11511
11593
  var StreamFormatSchema = _enum([
11512
11594
  "webrtc",
@@ -11903,6 +11985,22 @@ var EgressTranscodeSchema = object({
11903
11985
  camStreamId: string().nullable()
11904
11986
  });
11905
11987
  method(object({
11988
+ deviceId: number().int().nonnegative(),
11989
+ /** The provider's signal code. */
11990
+ code: string().min(1),
11991
+ /** Ms epoch. Absent ⇒ now. */
11992
+ at: number().optional()
11993
+ }), object({
11994
+ /** Whether the broker acted on it, and if not, why. */
11995
+ accepted: boolean(),
11996
+ reason: _enum([
11997
+ "woke",
11998
+ "hold-extended",
11999
+ "not-enabled",
12000
+ "no-consumer",
12001
+ "unknown-code"
12002
+ ])
12003
+ }), { kind: "mutation" }), method(object({
11906
12004
  deviceId: number().int().nonnegative(),
11907
12005
  camStreamId: string().min(1),
11908
12006
  kind: CamStreamKindSchema,
@@ -12157,6 +12255,16 @@ var PickStreamRequirementsSchema = object({
12157
12255
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12158
12256
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12159
12257
  minHeight: number().int().positive().optional(),
12258
+ /**
12259
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
12260
+ *
12261
+ * A consumer can have a ceiling as real as its floor: Alexa documents
12262
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
12263
+ * Without this the ceiling had to be re-implemented by every caller — and
12264
+ * one caller implementing it privately is how a second scoring authority
12265
+ * gets born.
12266
+ */
12267
+ maxHeight: number().int().positive().optional(),
12160
12268
  /** Minimum horizontal resolution. */
12161
12269
  minWidth: number().int().positive().optional(),
12162
12270
  /**
@@ -12173,7 +12281,22 @@ var PickStreamRequirementsSchema = object({
12173
12281
  * transcoded" guard: if the device is already serving the consumer's
12174
12282
  * codec end-to-end, there's nothing to optimise.
12175
12283
  */
12176
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
12284
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
12285
+ /**
12286
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
12287
+ * understanding that it will be transcoded.
12288
+ *
12289
+ * Default `false` — today's behaviour, and the right one for a bypass
12290
+ * question ("is there a stream I can forward untouched?"). Set `true` to
12291
+ * ask the larger question: "what is the best stream for me, transcoding if
12292
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
12293
+ * does not, so a passthrough is never lost to a transcode; the answer says
12294
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
12295
+ *
12296
+ * This is what lets one picker serve both the bypass and the full source
12297
+ * choice, instead of a consumer scoring privately when the bypass misses.
12298
+ */
12299
+ allowTranscode: boolean().optional()
12177
12300
  }).readonly();
12178
12301
  var PickStreamPreferencesSchema = object({
12179
12302
  /**
@@ -12187,12 +12310,32 @@ var PickStreamPreferencesSchema = object({
12187
12310
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12188
12311
  * memory-constrained consumers / Apple Home guest sessions).
12189
12312
  */
12190
- resolutionPreference: _enum(["highest", "lowest"]).optional()
12313
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
12314
+ /**
12315
+ * The height the consumer actually wants to DELIVER.
12316
+ *
12317
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
12318
+ * above the target wins, and only if nothing reaches it does the tallest
12319
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
12320
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
12321
+ * express that: it says "as big as possible", which is a different wish.
12322
+ *
12323
+ * Ignored when absent, so every existing caller keeps its ordering.
12324
+ */
12325
+ targetHeight: number().int().positive().optional()
12191
12326
  }).readonly();
12192
12327
  var PickedCamStreamSchema = object({
12193
12328
  camStreamId: string(),
12194
12329
  codec: string().optional(),
12195
12330
  resolution: CamStreamResolutionSchema.optional(),
12331
+ /**
12332
+ * Whether serving this stream requires a decode + re-encode.
12333
+ *
12334
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
12335
+ * when the caller asked for it with `allowTranscode`, so a caller that did
12336
+ * not ask cannot be handed a cost it never agreed to pay.
12337
+ */
12338
+ transcodes: boolean(),
12196
12339
  /** One-line explanation of why this stream won — for logs / debug UI. */
12197
12340
  reason: string()
12198
12341
  });
@@ -16474,6 +16617,8 @@ var NcSystemEventKindSchema = _enum([
16474
16617
  "device-enabled",
16475
16618
  "device-battery-low",
16476
16619
  "device-battery-normal",
16620
+ "device-consumable-low",
16621
+ "device-consumable-normal",
16477
16622
  "stream-online",
16478
16623
  "stream-offline",
16479
16624
  "node-online",
@@ -16492,6 +16637,7 @@ var NcSystemEventKindSchema = _enum([
16492
16637
  "addon-updated",
16493
16638
  "server-updated",
16494
16639
  "export-completed",
16640
+ "backup-completed",
16495
16641
  "camera-online",
16496
16642
  "camera-offline",
16497
16643
  "camera-disabled",
@@ -19888,13 +20034,109 @@ var SummariesQueryInput = object({
19888
20034
  deviceIds: array(number()).min(1),
19889
20035
  since: number().optional(),
19890
20036
  until: number().optional(),
19891
- limit: number().int().min(1).max(200).default(50)
20037
+ limit: number().int().min(1).max(200).default(50),
20038
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20039
+ * meaning of "dog" on every summary surface. */
20040
+ classes: array(string().min(1).max(60)).max(40).optional()
19892
20041
  });
19893
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
19894
20042
  var SummaryDetailSchema = object({
19895
20043
  summary: SummarySchema,
19896
- /** Member track ids, in absorption order. */
19897
- trackIds: array(string()).readonly()
20044
+ /** Members in absorption order, oldest join first. */
20045
+ members: array(object({
20046
+ trackId: string(),
20047
+ /**
20048
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20049
+ * and the track no longer exists to fill it.
20050
+ *
20051
+ * The join, not the latest opinion: class voting can re-decide a track's
20052
+ * class afterwards, and a group's composition is the history of who came
20053
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20054
+ * dog" — rather than being handed a second, denormalised tally that would
20055
+ * drift from the members it claims to describe.
20056
+ */
20057
+ className: string().nullable(),
20058
+ /** `primary` is the one member that carries the group's identity. */
20059
+ role: _enum([
20060
+ "primary",
20061
+ "sibling",
20062
+ "child"
20063
+ ]).nullable(),
20064
+ joinedAt: number(),
20065
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20066
+ * at read time. Absent when nothing resolved, never an empty string. */
20067
+ label: string().optional(),
20068
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20069
+ * recognised nobody, and absent for a member whose track has been pruned —
20070
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20071
+ subLabel: string().optional()
20072
+ })).readonly()
20073
+ });
20074
+ /**
20075
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20076
+ *
20077
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20078
+ * we extend when we notice we need more". Enough to draw the card ("two people
20079
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20080
+ * are on {@link getSummary}: shipping every member of every group so a client
20081
+ * can count them turns a page of two hundred groups into a thousand records to
20082
+ * draw two hundred badges.
20083
+ */
20084
+ var SummaryListItemSchema = object({
20085
+ summary: SummarySchema,
20086
+ /** Class counts, most numerous first; `className: null` is a member whose
20087
+ * class never resolved, counted so the counts add up to `memberCount`. */
20088
+ classes: array(object({
20089
+ className: string().nullable(),
20090
+ count: number().int().positive()
20091
+ })).readonly()
20092
+ });
20093
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20094
+ /**
20095
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20096
+ *
20097
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20098
+ * summaries feed that could only answer "the last N for these cameras"
20099
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20100
+ * else. Two feeds with different ordering contracts would be two ideas of what
20101
+ * "newest" means, on one screen.
20102
+ */
20103
+ var RecentSummariesQueryInput = object({
20104
+ /** Devices to merge. An empty array yields an empty page. */
20105
+ deviceIds: array(number()),
20106
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20107
+ since: number().optional(),
20108
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20109
+ until: number().optional(),
20110
+ limit: number().int().min(1).max(500).default(100),
20111
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20112
+ cursor: string().optional(),
20113
+ /**
20114
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20115
+ * deliberately the same name: the events filter tree emits one list of ticked
20116
+ * taxonomy nodes, and a summaries feed that called it something else would
20117
+ * make the operator's one filter component produce two shapes.
20118
+ *
20119
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20120
+ * me the arrivals with a dog" has to return the group of four people who had
20121
+ * one with them; a filter on the group's own fields could only ever answer
20122
+ * about its primary.
20123
+ *
20124
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20125
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20126
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20127
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20128
+ * that read only the class would answer "animal" and never "dog".
20129
+ *
20130
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20131
+ */
20132
+ classes: array(string().min(1).max(60)).max(40).optional()
20133
+ });
20134
+ var RecentSummariesPageSchema = object({
20135
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20136
+ * {@link listSummaries} — one list shape, so a card renders the same
20137
+ * whichever feed drew it. */
20138
+ summaries: array(SummaryListItemSchema).readonly(),
20139
+ nextCursor: string().nullable()
19898
20140
  });
19899
20141
  var RecentTracksPageSchema = object({
19900
20142
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20308,7 +20550,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20308
20550
  classes: array(string()).optional(),
20309
20551
  /** See {@link ExcludeSourcesDoc}. */
20310
20552
  excludeSources: array(TrackSourceSchema).optional()
20311
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20553
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20312
20554
  kind: "mutation",
20313
20555
  auth: "admin"
20314
20556
  }), 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({
@@ -23637,10 +23879,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
23637
23879
  }), boolean()), method(object({
23638
23880
  deviceId: number().int().nonnegative(),
23639
23881
  sessionId: string()
23640
- }), object({ pendingRenegotiation: object({
23641
- target: WebrtcStreamTargetSchema,
23642
- epoch: number()
23643
- }).nullable() }));
23882
+ }), object({
23883
+ pendingRenegotiation: object({
23884
+ target: WebrtcStreamTargetSchema,
23885
+ epoch: number()
23886
+ }).nullable(),
23887
+ /**
23888
+ * Whether the session still EXISTS.
23889
+ *
23890
+ * A consumer that holds a resource for the life of a session needs to
23891
+ * be able to ask, because a session does not always end the way it
23892
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
23893
+ * sent `SessionDisconnected`, so the Alexa exporter's
23894
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
23895
+ * H.264 transcode kept running for NOBODY for more than twenty
23896
+ * minutes. The WebRTC session had logged `WebRTC session closed`
23897
+ * minutes earlier — the broker knew; the holder had no way to ask.
23898
+ *
23899
+ * `false` for a session id the provider has never heard of, which is
23900
+ * the same answer as "it ended": either way nothing is holding it up.
23901
+ */
23902
+ alive: boolean()
23903
+ }));
23644
23904
  object({
23645
23905
  /** All accessory children of the parent. */
23646
23906
  childDeviceIds: array(number()).readonly(),
@@ -29914,7 +30174,29 @@ var LoggingSettingsPatchSchema = object({
29914
30174
  * disarmed the channels it did not mention would make the Levels page and
29915
30175
  * the Diagnostics page fight over the same value.
29916
30176
  */
29917
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
30177
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
30178
+ /**
30179
+ * How many days the analytics OPS LOG is kept — the audit trail of what
30180
+ * retention actually deleted.
30181
+ *
30182
+ * It lives HERE, on the logging document, and not on the analytics addon's
30183
+ * settings form, on the operator's instruction: every other log-ish window in
30184
+ * this system is configured through this one document, and a retention audit
30185
+ * configured somewhere else is a second place to look when the question is
30186
+ * "what happened to my data".
30187
+ *
30188
+ * That placement has a cost worth stating: this document ships in the
30189
+ * framework closure, so this knob needs a published `@camstack/server` while
30190
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
30191
+ *
30192
+ * `retention-model.ts` argued this one must NOT follow a device window,
30193
+ * because the audit trail is the history of the SWEEP and not of the camera.
30194
+ * That argument stands and is untouched — what changes is that 30 days stops
30195
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
30196
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
30197
+ * state in which the next 9.5 GiB leak cannot be explained.
30198
+ */
30199
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
29918
30200
  });
29919
30201
  /**
29920
30202
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -29987,6 +30269,14 @@ var LoggingSettingsStateSchema = object({
29987
30269
  channels: array(LogChannelDescriptorSchema).readonly(),
29988
30270
  /** The channels ARMED right now, each with its deadline. */
29989
30271
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
30272
+ /**
30273
+ * The ops-log window in days, as it is in force. `0` = kept forever.
30274
+ *
30275
+ * Reported rather than left to the caller's memory of what it wrote: this is
30276
+ * the value the analytics sweep will actually use, and an operator asking how
30277
+ * long their audit trail lives should not have to infer it from a default.
30278
+ */
30279
+ opsLogRetentionDays: number().int().min(0),
29990
30280
  persisted: boolean()
29991
30281
  });
29992
30282
  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(), {
@@ -34146,6 +34436,12 @@ Object.freeze({
34146
34436
  addonId: null,
34147
34437
  access: "view"
34148
34438
  },
34439
+ "pipelineAnalytics.listRecentSummaries": {
34440
+ capName: "pipeline-analytics",
34441
+ capScope: "device",
34442
+ addonId: null,
34443
+ access: "view"
34444
+ },
34149
34445
  "pipelineAnalytics.listRecentTracks": {
34150
34446
  capName: "pipeline-analytics",
34151
34447
  capScope: "device",
@@ -36108,6 +36404,12 @@ Object.freeze({
36108
36404
  addonId: null,
36109
36405
  access: "create"
36110
36406
  },
36407
+ "streamBroker.reportStreamSignal": {
36408
+ capName: "stream-broker",
36409
+ capScope: "system",
36410
+ addonId: null,
36411
+ access: "create"
36412
+ },
36111
36413
  "streamBroker.restartProfile": {
36112
36414
  capName: "stream-broker",
36113
36415
  capScope: "system",
@@ -36192,6 +36494,12 @@ Object.freeze({
36192
36494
  addonId: null,
36193
36495
  access: "create"
36194
36496
  },
36497
+ "streamSignals.listSignals": {
36498
+ capName: "stream-signals",
36499
+ capScope: "device",
36500
+ addonId: null,
36501
+ access: "view"
36502
+ },
36195
36503
  "switch.setState": {
36196
36504
  capName: "switch",
36197
36505
  capScope: "device",
@@ -37973,6 +38281,11 @@ Object.freeze({
37973
38281
  form: "single",
37974
38282
  optional: true
37975
38283
  }],
38284
+ "pipelineAnalytics.listRecentSummaries": [{
38285
+ name: "deviceIds",
38286
+ form: "array",
38287
+ optional: false
38288
+ }],
37976
38289
  "pipelineAnalytics.listRecentTracks": [{
37977
38290
  name: "deviceIds",
37978
38291
  form: "array",
@@ -38559,6 +38872,11 @@ Object.freeze({
38559
38872
  form: "single",
38560
38873
  optional: false
38561
38874
  }],
38875
+ "streamBroker.reportStreamSignal": [{
38876
+ name: "deviceId",
38877
+ form: "single",
38878
+ optional: false
38879
+ }],
38562
38880
  "streamBroker.restartProfile": [{
38563
38881
  name: "deviceId",
38564
38882
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.100",
3
+ "version": "1.2.102",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",