@camstack/addon-provider-petkit 0.2.100 → 0.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/addon.js +349 -16
  2. package/dist/addon.mjs +349 -16
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1101,7 +1101,7 @@ var Nodepetkit = class {
1101
1101
  }
1102
1102
  };
1103
1103
  //#endregion
1104
- //#region ../types/dist/event-category-ZyX6jcse.mjs
1104
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
1105
1105
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
1106
1106
  EventCategory["SystemBoot"] = "system.boot";
1107
1107
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1718,6 +1718,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1718
1718
  * pull-reconcile from the provider's `getStatus` on reconnect. */
1719
1719
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
1720
1720
  EventCategory["BackupCompleted"] = "backup.completed";
1721
+ /**
1722
+ * A whole backup RUN finished — every destination attempted, win or lose.
1723
+ *
1724
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
1725
+ * a progress UI and the wrong one for a notification: an operator with three
1726
+ * destinations would be told three times. And a run where two of three
1727
+ * destinations succeeded is not a clean success — a single "backup
1728
+ * completed" that hid the failed one would be a lie, so the count of each is
1729
+ * carried here and the message says both.
1730
+ *
1731
+ * Emitted by the backup orchestrator only after the destination loop, so a
1732
+ * run that dies during the BUILD phase produces no completion at all.
1733
+ */
1734
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
1721
1735
  EventCategory["BackupRestored"] = "backup.restored";
1722
1736
  EventCategory["NotificationDispatched"] = "notification.dispatched";
1723
1737
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -6448,7 +6462,7 @@ var ZodIssueCode = {
6448
6462
  var ZodFirstPartyTypeKind;
6449
6463
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6450
6464
  //#endregion
6451
- //#region ../types/dist/sleep-CnLyvg3w.mjs
6465
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
6452
6466
  /**
6453
6467
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6454
6468
  * window to float samples (D455).
@@ -8477,7 +8491,23 @@ var EncodeProfileSchema = object({
8477
8491
  "zerolatency",
8478
8492
  "film",
8479
8493
  "animation"
8480
- ]).optional()
8494
+ ]).optional(),
8495
+ /**
8496
+ * ONE slice per access unit.
8497
+ *
8498
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
8499
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
8500
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
8501
+ * frame-end per frame: the first pictures render and the video then freezes
8502
+ * for good while the audio, on its own plane, plays on. Measured on this hub
8503
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
8504
+ *
8505
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
8506
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
8507
+ * consumers meaning the same thing spelled differently would stop sharing one
8508
+ * child. Absent means "whatever the encoder does" — today's behaviour.
8509
+ */
8510
+ singleSlicePerFrame: boolean().optional()
8481
8511
  }),
8482
8512
  audio: union([literal("passthrough"), object({
8483
8513
  codec: _enum([
@@ -8527,7 +8557,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
8527
8557
  audio: "passthrough"
8528
8558
  };
8529
8559
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8530
- ({ ...BASE_LIVE_EGRESS_PROFILE });
8560
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8531
8561
  /**
8532
8562
  * Deep wiring healthcheck — snapshot of active reachability probes across
8533
8563
  * every declared capability + widget of every installed plugin, on every
@@ -12576,6 +12606,72 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
12576
12606
  auth: "admin"
12577
12607
  }), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
12578
12608
  DeviceType.Camera;
12609
+ /**
12610
+ * The signals a device can emit to WAKE its own stream.
12611
+ *
12612
+ * A camera whose stream is built on demand sleeps until something asks for it,
12613
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
12614
+ * puller holds a session open for ever, and treating that as demand would keep
12615
+ * a battery camera awake for ever, which is the whole thing the battery is for
12616
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
12617
+ * itself, with no stream running.
12618
+ *
12619
+ * ## The vocabulary is the PROVIDER'S, not ours
12620
+ *
12621
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
12622
+ * names each signal with a `code` it chooses and a `label` an operator reads.
12623
+ * Reolink offers motion and camera-native detection; another provider may offer
12624
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
12625
+ * yet. A fixed enum here would mean every new signal is a framework release.
12626
+ *
12627
+ * It is deliberately NOT derived from the caps a device already binds. Whether
12628
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
12629
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
12630
+ * binding — but both answer "what drives the detection pipeline", which is a
12631
+ * different question from "what may wake a sleeping stream". A camera can do
12632
+ * the first and not be trusted with the second, and the operator picks per
12633
+ * camera. Two questions, two authorities.
12634
+ *
12635
+ * ## Availability is not permission
12636
+ *
12637
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
12638
+ * wakes the stream is the operator's per-camera choice, held by the broker
12639
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
12640
+ * provider declaring a signal is not a provider enabling it.
12641
+ */
12642
+ /** One signal a device can emit. */
12643
+ var StreamSignalSchema = object({
12644
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
12645
+ code: string().min(1),
12646
+ /** What an operator reads in the picker. The provider's own wording. */
12647
+ label: string().min(1),
12648
+ /**
12649
+ * Whether the provider recommends this signal ON when a camera is first set
12650
+ * up. A provider knows which of its signals are cheap and reliable; an
12651
+ * operator should not have to discover that by trial. Reolink recommends
12652
+ * both of its own.
12653
+ */
12654
+ recommended: boolean()
12655
+ });
12656
+ var StreamSignalsStatusSchema = object({
12657
+ signals: array(StreamSignalSchema),
12658
+ lastFetchedAt: number()
12659
+ });
12660
+ var streamSignalsCapability = {
12661
+ name: "stream-signals",
12662
+ scope: "device",
12663
+ deviceNative: true,
12664
+ mode: "singleton",
12665
+ deviceTypes: Object.values(DeviceType),
12666
+ runtimeState: StreamSignalsStatusSchema,
12667
+ methods: {
12668
+ /**
12669
+ * What this device can emit. Empty is a valid and common answer — most
12670
+ * cameras have nothing to offer here, and an empty list is what makes the
12671
+ * broker's picker show nothing rather than a false choice.
12672
+ */
12673
+ listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
12674
+ };
12579
12675
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
12580
12676
  var StreamFormatSchema = _enum([
12581
12677
  "webrtc",
@@ -12972,6 +13068,22 @@ var EgressTranscodeSchema = object({
12972
13068
  camStreamId: string().nullable()
12973
13069
  });
12974
13070
  method(object({
13071
+ deviceId: number().int().nonnegative(),
13072
+ /** The provider's signal code. */
13073
+ code: string().min(1),
13074
+ /** Ms epoch. Absent ⇒ now. */
13075
+ at: number().optional()
13076
+ }), object({
13077
+ /** Whether the broker acted on it, and if not, why. */
13078
+ accepted: boolean(),
13079
+ reason: _enum([
13080
+ "woke",
13081
+ "hold-extended",
13082
+ "not-enabled",
13083
+ "no-consumer",
13084
+ "unknown-code"
13085
+ ])
13086
+ }), { kind: "mutation" }), method(object({
12975
13087
  deviceId: number().int().nonnegative(),
12976
13088
  camStreamId: string().min(1),
12977
13089
  kind: CamStreamKindSchema,
@@ -13226,6 +13338,16 @@ var PickStreamRequirementsSchema = object({
13226
13338
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
13227
13339
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
13228
13340
  minHeight: number().int().positive().optional(),
13341
+ /**
13342
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
13343
+ *
13344
+ * A consumer can have a ceiling as real as its floor: Alexa documents
13345
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
13346
+ * Without this the ceiling had to be re-implemented by every caller — and
13347
+ * one caller implementing it privately is how a second scoring authority
13348
+ * gets born.
13349
+ */
13350
+ maxHeight: number().int().positive().optional(),
13229
13351
  /** Minimum horizontal resolution. */
13230
13352
  minWidth: number().int().positive().optional(),
13231
13353
  /**
@@ -13242,7 +13364,22 @@ var PickStreamRequirementsSchema = object({
13242
13364
  * transcoded" guard: if the device is already serving the consumer's
13243
13365
  * codec end-to-end, there's nothing to optimise.
13244
13366
  */
13245
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
13367
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
13368
+ /**
13369
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
13370
+ * understanding that it will be transcoded.
13371
+ *
13372
+ * Default `false` — today's behaviour, and the right one for a bypass
13373
+ * question ("is there a stream I can forward untouched?"). Set `true` to
13374
+ * ask the larger question: "what is the best stream for me, transcoding if
13375
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
13376
+ * does not, so a passthrough is never lost to a transcode; the answer says
13377
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
13378
+ *
13379
+ * This is what lets one picker serve both the bypass and the full source
13380
+ * choice, instead of a consumer scoring privately when the bypass misses.
13381
+ */
13382
+ allowTranscode: boolean().optional()
13246
13383
  }).readonly();
13247
13384
  var PickStreamPreferencesSchema = object({
13248
13385
  /**
@@ -13256,12 +13393,32 @@ var PickStreamPreferencesSchema = object({
13256
13393
  * picks the tallest stream; `'lowest'` picks the shortest (used by
13257
13394
  * memory-constrained consumers / Apple Home guest sessions).
13258
13395
  */
13259
- resolutionPreference: _enum(["highest", "lowest"]).optional()
13396
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
13397
+ /**
13398
+ * The height the consumer actually wants to DELIVER.
13399
+ *
13400
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
13401
+ * above the target wins, and only if nothing reaches it does the tallest
13402
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
13403
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
13404
+ * express that: it says "as big as possible", which is a different wish.
13405
+ *
13406
+ * Ignored when absent, so every existing caller keeps its ordering.
13407
+ */
13408
+ targetHeight: number().int().positive().optional()
13260
13409
  }).readonly();
13261
13410
  var PickedCamStreamSchema = object({
13262
13411
  camStreamId: string(),
13263
13412
  codec: string().optional(),
13264
13413
  resolution: CamStreamResolutionSchema.optional(),
13414
+ /**
13415
+ * Whether serving this stream requires a decode + re-encode.
13416
+ *
13417
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
13418
+ * when the caller asked for it with `allowTranscode`, so a caller that did
13419
+ * not ask cannot be handed a cost it never agreed to pay.
13420
+ */
13421
+ transcodes: boolean(),
13265
13422
  /** One-line explanation of why this stream won — for logs / debug UI. */
13266
13423
  reason: string()
13267
13424
  });
@@ -17795,6 +17952,8 @@ var NcSystemEventKindSchema = _enum([
17795
17952
  "device-enabled",
17796
17953
  "device-battery-low",
17797
17954
  "device-battery-normal",
17955
+ "device-consumable-low",
17956
+ "device-consumable-normal",
17798
17957
  "stream-online",
17799
17958
  "stream-offline",
17800
17959
  "node-online",
@@ -17813,6 +17972,7 @@ var NcSystemEventKindSchema = _enum([
17813
17972
  "addon-updated",
17814
17973
  "server-updated",
17815
17974
  "export-completed",
17975
+ "backup-completed",
17816
17976
  "camera-online",
17817
17977
  "camera-offline",
17818
17978
  "camera-disabled",
@@ -21249,13 +21409,109 @@ var SummariesQueryInput = object({
21249
21409
  deviceIds: array(number()).min(1),
21250
21410
  since: number().optional(),
21251
21411
  until: number().optional(),
21252
- limit: number().int().min(1).max(200).default(50)
21412
+ limit: number().int().min(1).max(200).default(50),
21413
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
21414
+ * meaning of "dog" on every summary surface. */
21415
+ classes: array(string().min(1).max(60)).max(40).optional()
21253
21416
  });
21254
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
21255
21417
  var SummaryDetailSchema = object({
21256
21418
  summary: SummarySchema,
21257
- /** Member track ids, in absorption order. */
21258
- trackIds: array(string()).readonly()
21419
+ /** Members in absorption order, oldest join first. */
21420
+ members: array(object({
21421
+ trackId: string(),
21422
+ /**
21423
+ * The track's class at the time it JOINED, or `null` when it was unresolved
21424
+ * and the track no longer exists to fill it.
21425
+ *
21426
+ * The join, not the latest opinion: class voting can re-decide a track's
21427
+ * class afterwards, and a group's composition is the history of who came
21428
+ * together. A consumer counts these to badge a thumbnail — "two people and a
21429
+ * dog" — rather than being handed a second, denormalised tally that would
21430
+ * drift from the members it claims to describe.
21431
+ */
21432
+ className: string().nullable(),
21433
+ /** `primary` is the one member that carries the group's identity. */
21434
+ role: _enum([
21435
+ "primary",
21436
+ "sibling",
21437
+ "child"
21438
+ ]).nullable(),
21439
+ joinedAt: number(),
21440
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
21441
+ * at read time. Absent when nothing resolved, never an empty string. */
21442
+ label: string().optional(),
21443
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
21444
+ * recognised nobody, and absent for a member whose track has been pruned —
21445
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
21446
+ subLabel: string().optional()
21447
+ })).readonly()
21448
+ });
21449
+ /**
21450
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
21451
+ *
21452
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
21453
+ * we extend when we notice we need more". Enough to draw the card ("two people
21454
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
21455
+ * are on {@link getSummary}: shipping every member of every group so a client
21456
+ * can count them turns a page of two hundred groups into a thousand records to
21457
+ * draw two hundred badges.
21458
+ */
21459
+ var SummaryListItemSchema = object({
21460
+ summary: SummarySchema,
21461
+ /** Class counts, most numerous first; `className: null` is a member whose
21462
+ * class never resolved, counted so the counts add up to `memberCount`. */
21463
+ classes: array(object({
21464
+ className: string().nullable(),
21465
+ count: number().int().positive()
21466
+ })).readonly()
21467
+ });
21468
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
21469
+ /**
21470
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
21471
+ *
21472
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
21473
+ * summaries feed that could only answer "the last N for these cameras"
21474
+ * (`listSummaries`) would make groups available in the timeline and nowhere
21475
+ * else. Two feeds with different ordering contracts would be two ideas of what
21476
+ * "newest" means, on one screen.
21477
+ */
21478
+ var RecentSummariesQueryInput = object({
21479
+ /** Devices to merge. An empty array yields an empty page. */
21480
+ deviceIds: array(number()),
21481
+ /** Window lower bound on `lastActiveAt` (inclusive). */
21482
+ since: number().optional(),
21483
+ /** Window upper bound on `lastActiveAt` (inclusive). */
21484
+ until: number().optional(),
21485
+ limit: number().int().min(1).max(500).default(100),
21486
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
21487
+ cursor: string().optional(),
21488
+ /**
21489
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
21490
+ * deliberately the same name: the events filter tree emits one list of ticked
21491
+ * taxonomy nodes, and a summaries feed that called it something else would
21492
+ * make the operator's one filter component produce two shapes.
21493
+ *
21494
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
21495
+ * me the arrivals with a dog" has to return the group of four people who had
21496
+ * one with them; a filter on the group's own fields could only ever answer
21497
+ * about its primary.
21498
+ *
21499
+ * Matched against all THREE tiers of a member — the class (`animal`), the
21500
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
21501
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
21502
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
21503
+ * that read only the class would answer "animal" and never "dog".
21504
+ *
21505
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
21506
+ */
21507
+ classes: array(string().min(1).max(60)).max(40).optional()
21508
+ });
21509
+ var RecentSummariesPageSchema = object({
21510
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
21511
+ * {@link listSummaries} — one list shape, so a card renders the same
21512
+ * whichever feed drew it. */
21513
+ summaries: array(SummaryListItemSchema).readonly(),
21514
+ nextCursor: string().nullable()
21259
21515
  });
21260
21516
  var RecentTracksPageSchema = object({
21261
21517
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -21669,7 +21925,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21669
21925
  classes: array(string()).optional(),
21670
21926
  /** See {@link ExcludeSourcesDoc}. */
21671
21927
  excludeSources: array(TrackSourceSchema).optional()
21672
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
21928
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
21673
21929
  kind: "mutation",
21674
21930
  auth: "admin"
21675
21931
  }), 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({
@@ -24998,10 +25254,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
24998
25254
  }), boolean()), method(object({
24999
25255
  deviceId: number().int().nonnegative(),
25000
25256
  sessionId: string()
25001
- }), object({ pendingRenegotiation: object({
25002
- target: WebrtcStreamTargetSchema,
25003
- epoch: number()
25004
- }).nullable() }));
25257
+ }), object({
25258
+ pendingRenegotiation: object({
25259
+ target: WebrtcStreamTargetSchema,
25260
+ epoch: number()
25261
+ }).nullable(),
25262
+ /**
25263
+ * Whether the session still EXISTS.
25264
+ *
25265
+ * A consumer that holds a resource for the life of a session needs to
25266
+ * be able to ask, because a session does not always end the way it
25267
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
25268
+ * sent `SessionDisconnected`, so the Alexa exporter's
25269
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
25270
+ * H.264 transcode kept running for NOBODY for more than twenty
25271
+ * minutes. The WebRTC session had logged `WebRTC session closed`
25272
+ * minutes earlier — the broker knew; the holder had no way to ask.
25273
+ *
25274
+ * `false` for a session id the provider has never heard of, which is
25275
+ * the same answer as "it ended": either way nothing is holding it up.
25276
+ */
25277
+ alive: boolean()
25278
+ }));
25005
25279
  object({
25006
25280
  /** All accessory children of the parent. */
25007
25281
  childDeviceIds: array(number()).readonly(),
@@ -33430,7 +33704,29 @@ var LoggingSettingsPatchSchema = object({
33430
33704
  * disarmed the channels it did not mention would make the Levels page and
33431
33705
  * the Diagnostics page fight over the same value.
33432
33706
  */
33433
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
33707
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
33708
+ /**
33709
+ * How many days the analytics OPS LOG is kept — the audit trail of what
33710
+ * retention actually deleted.
33711
+ *
33712
+ * It lives HERE, on the logging document, and not on the analytics addon's
33713
+ * settings form, on the operator's instruction: every other log-ish window in
33714
+ * this system is configured through this one document, and a retention audit
33715
+ * configured somewhere else is a second place to look when the question is
33716
+ * "what happened to my data".
33717
+ *
33718
+ * That placement has a cost worth stating: this document ships in the
33719
+ * framework closure, so this knob needs a published `@camstack/server` while
33720
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
33721
+ *
33722
+ * `retention-model.ts` argued this one must NOT follow a device window,
33723
+ * because the audit trail is the history of the SWEEP and not of the camera.
33724
+ * That argument stands and is untouched — what changes is that 30 days stops
33725
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
33726
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
33727
+ * state in which the next 9.5 GiB leak cannot be explained.
33728
+ */
33729
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
33434
33730
  });
33435
33731
  /**
33436
33732
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -33503,6 +33799,14 @@ var LoggingSettingsStateSchema = object({
33503
33799
  channels: array(LogChannelDescriptorSchema).readonly(),
33504
33800
  /** The channels ARMED right now, each with its deadline. */
33505
33801
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
33802
+ /**
33803
+ * The ops-log window in days, as it is in force. `0` = kept forever.
33804
+ *
33805
+ * Reported rather than left to the caller's memory of what it wrote: this is
33806
+ * the value the analytics sweep will actually use, and an operator asking how
33807
+ * long their audit trail lives should not have to infer it from a default.
33808
+ */
33809
+ opsLogRetentionDays: number().int().min(0),
33506
33810
  persisted: boolean()
33507
33811
  });
33508
33812
  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(), {
@@ -34898,6 +35202,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
34898
35202
  smoke: smokeCapability,
34899
35203
  streamCatalog: streamCatalogCapability,
34900
35204
  streamParams: streamParamsCapability,
35205
+ streamSignals: streamSignalsCapability,
34901
35206
  switch: switchCapability,
34902
35207
  tamper: tamperCapability,
34903
35208
  temperatureSensor: temperatureSensorCapability,
@@ -39503,6 +39808,12 @@ Object.freeze({
39503
39808
  addonId: null,
39504
39809
  access: "view"
39505
39810
  },
39811
+ "pipelineAnalytics.listRecentSummaries": {
39812
+ capName: "pipeline-analytics",
39813
+ capScope: "device",
39814
+ addonId: null,
39815
+ access: "view"
39816
+ },
39506
39817
  "pipelineAnalytics.listRecentTracks": {
39507
39818
  capName: "pipeline-analytics",
39508
39819
  capScope: "device",
@@ -41465,6 +41776,12 @@ Object.freeze({
41465
41776
  addonId: null,
41466
41777
  access: "create"
41467
41778
  },
41779
+ "streamBroker.reportStreamSignal": {
41780
+ capName: "stream-broker",
41781
+ capScope: "system",
41782
+ addonId: null,
41783
+ access: "create"
41784
+ },
41468
41785
  "streamBroker.restartProfile": {
41469
41786
  capName: "stream-broker",
41470
41787
  capScope: "system",
@@ -41549,6 +41866,12 @@ Object.freeze({
41549
41866
  addonId: null,
41550
41867
  access: "create"
41551
41868
  },
41869
+ "streamSignals.listSignals": {
41870
+ capName: "stream-signals",
41871
+ capScope: "device",
41872
+ addonId: null,
41873
+ access: "view"
41874
+ },
41552
41875
  "switch.setState": {
41553
41876
  capName: "switch",
41554
41877
  capScope: "device",
@@ -43330,6 +43653,11 @@ Object.freeze({
43330
43653
  form: "single",
43331
43654
  optional: true
43332
43655
  }],
43656
+ "pipelineAnalytics.listRecentSummaries": [{
43657
+ name: "deviceIds",
43658
+ form: "array",
43659
+ optional: false
43660
+ }],
43333
43661
  "pipelineAnalytics.listRecentTracks": [{
43334
43662
  name: "deviceIds",
43335
43663
  form: "array",
@@ -43916,6 +44244,11 @@ Object.freeze({
43916
44244
  form: "single",
43917
44245
  optional: false
43918
44246
  }],
44247
+ "streamBroker.reportStreamSignal": [{
44248
+ name: "deviceId",
44249
+ form: "single",
44250
+ optional: false
44251
+ }],
43919
44252
  "streamBroker.restartProfile": [{
43920
44253
  name: "deviceId",
43921
44254
  form: "single",
package/dist/addon.mjs CHANGED
@@ -1100,7 +1100,7 @@ var Nodepetkit = class {
1100
1100
  }
1101
1101
  };
1102
1102
  //#endregion
1103
- //#region ../types/dist/event-category-ZyX6jcse.mjs
1103
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
1104
1104
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
1105
1105
  EventCategory["SystemBoot"] = "system.boot";
1106
1106
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1717,6 +1717,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1717
1717
  * pull-reconcile from the provider's `getStatus` on reconnect. */
1718
1718
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
1719
1719
  EventCategory["BackupCompleted"] = "backup.completed";
1720
+ /**
1721
+ * A whole backup RUN finished — every destination attempted, win or lose.
1722
+ *
1723
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
1724
+ * a progress UI and the wrong one for a notification: an operator with three
1725
+ * destinations would be told three times. And a run where two of three
1726
+ * destinations succeeded is not a clean success — a single "backup
1727
+ * completed" that hid the failed one would be a lie, so the count of each is
1728
+ * carried here and the message says both.
1729
+ *
1730
+ * Emitted by the backup orchestrator only after the destination loop, so a
1731
+ * run that dies during the BUILD phase produces no completion at all.
1732
+ */
1733
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
1720
1734
  EventCategory["BackupRestored"] = "backup.restored";
1721
1735
  EventCategory["NotificationDispatched"] = "notification.dispatched";
1722
1736
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -6447,7 +6461,7 @@ var ZodIssueCode = {
6447
6461
  var ZodFirstPartyTypeKind;
6448
6462
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6449
6463
  //#endregion
6450
- //#region ../types/dist/sleep-CnLyvg3w.mjs
6464
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
6451
6465
  /**
6452
6466
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6453
6467
  * window to float samples (D455).
@@ -8476,7 +8490,23 @@ var EncodeProfileSchema = object({
8476
8490
  "zerolatency",
8477
8491
  "film",
8478
8492
  "animation"
8479
- ]).optional()
8493
+ ]).optional(),
8494
+ /**
8495
+ * ONE slice per access unit.
8496
+ *
8497
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
8498
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
8499
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
8500
+ * frame-end per frame: the first pictures render and the video then freezes
8501
+ * for good while the audio, on its own plane, plays on. Measured on this hub
8502
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
8503
+ *
8504
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
8505
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
8506
+ * consumers meaning the same thing spelled differently would stop sharing one
8507
+ * child. Absent means "whatever the encoder does" — today's behaviour.
8508
+ */
8509
+ singleSlicePerFrame: boolean().optional()
8480
8510
  }),
8481
8511
  audio: union([literal("passthrough"), object({
8482
8512
  codec: _enum([
@@ -8526,7 +8556,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
8526
8556
  audio: "passthrough"
8527
8557
  };
8528
8558
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8529
- ({ ...BASE_LIVE_EGRESS_PROFILE });
8559
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
8530
8560
  /**
8531
8561
  * Deep wiring healthcheck — snapshot of active reachability probes across
8532
8562
  * every declared capability + widget of every installed plugin, on every
@@ -12575,6 +12605,72 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
12575
12605
  auth: "admin"
12576
12606
  }), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
12577
12607
  DeviceType.Camera;
12608
+ /**
12609
+ * The signals a device can emit to WAKE its own stream.
12610
+ *
12611
+ * A camera whose stream is built on demand sleeps until something asks for it,
12612
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
12613
+ * puller holds a session open for ever, and treating that as demand would keep
12614
+ * a battery camera awake for ever, which is the whole thing the battery is for
12615
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
12616
+ * itself, with no stream running.
12617
+ *
12618
+ * ## The vocabulary is the PROVIDER'S, not ours
12619
+ *
12620
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
12621
+ * names each signal with a `code` it chooses and a `label` an operator reads.
12622
+ * Reolink offers motion and camera-native detection; another provider may offer
12623
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
12624
+ * yet. A fixed enum here would mean every new signal is a framework release.
12625
+ *
12626
+ * It is deliberately NOT derived from the caps a device already binds. Whether
12627
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
12628
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
12629
+ * binding — but both answer "what drives the detection pipeline", which is a
12630
+ * different question from "what may wake a sleeping stream". A camera can do
12631
+ * the first and not be trusted with the second, and the operator picks per
12632
+ * camera. Two questions, two authorities.
12633
+ *
12634
+ * ## Availability is not permission
12635
+ *
12636
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
12637
+ * wakes the stream is the operator's per-camera choice, held by the broker
12638
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
12639
+ * provider declaring a signal is not a provider enabling it.
12640
+ */
12641
+ /** One signal a device can emit. */
12642
+ var StreamSignalSchema = object({
12643
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
12644
+ code: string().min(1),
12645
+ /** What an operator reads in the picker. The provider's own wording. */
12646
+ label: string().min(1),
12647
+ /**
12648
+ * Whether the provider recommends this signal ON when a camera is first set
12649
+ * up. A provider knows which of its signals are cheap and reliable; an
12650
+ * operator should not have to discover that by trial. Reolink recommends
12651
+ * both of its own.
12652
+ */
12653
+ recommended: boolean()
12654
+ });
12655
+ var StreamSignalsStatusSchema = object({
12656
+ signals: array(StreamSignalSchema),
12657
+ lastFetchedAt: number()
12658
+ });
12659
+ var streamSignalsCapability = {
12660
+ name: "stream-signals",
12661
+ scope: "device",
12662
+ deviceNative: true,
12663
+ mode: "singleton",
12664
+ deviceTypes: Object.values(DeviceType),
12665
+ runtimeState: StreamSignalsStatusSchema,
12666
+ methods: {
12667
+ /**
12668
+ * What this device can emit. Empty is a valid and common answer — most
12669
+ * cameras have nothing to offer here, and an empty list is what makes the
12670
+ * broker's picker show nothing rather than a false choice.
12671
+ */
12672
+ listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
12673
+ };
12578
12674
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
12579
12675
  var StreamFormatSchema = _enum([
12580
12676
  "webrtc",
@@ -12971,6 +13067,22 @@ var EgressTranscodeSchema = object({
12971
13067
  camStreamId: string().nullable()
12972
13068
  });
12973
13069
  method(object({
13070
+ deviceId: number().int().nonnegative(),
13071
+ /** The provider's signal code. */
13072
+ code: string().min(1),
13073
+ /** Ms epoch. Absent ⇒ now. */
13074
+ at: number().optional()
13075
+ }), object({
13076
+ /** Whether the broker acted on it, and if not, why. */
13077
+ accepted: boolean(),
13078
+ reason: _enum([
13079
+ "woke",
13080
+ "hold-extended",
13081
+ "not-enabled",
13082
+ "no-consumer",
13083
+ "unknown-code"
13084
+ ])
13085
+ }), { kind: "mutation" }), method(object({
12974
13086
  deviceId: number().int().nonnegative(),
12975
13087
  camStreamId: string().min(1),
12976
13088
  kind: CamStreamKindSchema,
@@ -13225,6 +13337,16 @@ var PickStreamRequirementsSchema = object({
13225
13337
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
13226
13338
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
13227
13339
  minHeight: number().int().positive().optional(),
13340
+ /**
13341
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
13342
+ *
13343
+ * A consumer can have a ceiling as real as its floor: Alexa documents
13344
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
13345
+ * Without this the ceiling had to be re-implemented by every caller — and
13346
+ * one caller implementing it privately is how a second scoring authority
13347
+ * gets born.
13348
+ */
13349
+ maxHeight: number().int().positive().optional(),
13228
13350
  /** Minimum horizontal resolution. */
13229
13351
  minWidth: number().int().positive().optional(),
13230
13352
  /**
@@ -13241,7 +13363,22 @@ var PickStreamRequirementsSchema = object({
13241
13363
  * transcoded" guard: if the device is already serving the consumer's
13242
13364
  * codec end-to-end, there's nothing to optimise.
13243
13365
  */
13244
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
13366
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
13367
+ /**
13368
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
13369
+ * understanding that it will be transcoded.
13370
+ *
13371
+ * Default `false` — today's behaviour, and the right one for a bypass
13372
+ * question ("is there a stream I can forward untouched?"). Set `true` to
13373
+ * ask the larger question: "what is the best stream for me, transcoding if
13374
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
13375
+ * does not, so a passthrough is never lost to a transcode; the answer says
13376
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
13377
+ *
13378
+ * This is what lets one picker serve both the bypass and the full source
13379
+ * choice, instead of a consumer scoring privately when the bypass misses.
13380
+ */
13381
+ allowTranscode: boolean().optional()
13245
13382
  }).readonly();
13246
13383
  var PickStreamPreferencesSchema = object({
13247
13384
  /**
@@ -13255,12 +13392,32 @@ var PickStreamPreferencesSchema = object({
13255
13392
  * picks the tallest stream; `'lowest'` picks the shortest (used by
13256
13393
  * memory-constrained consumers / Apple Home guest sessions).
13257
13394
  */
13258
- resolutionPreference: _enum(["highest", "lowest"]).optional()
13395
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
13396
+ /**
13397
+ * The height the consumer actually wants to DELIVER.
13398
+ *
13399
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
13400
+ * above the target wins, and only if nothing reaches it does the tallest
13401
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
13402
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
13403
+ * express that: it says "as big as possible", which is a different wish.
13404
+ *
13405
+ * Ignored when absent, so every existing caller keeps its ordering.
13406
+ */
13407
+ targetHeight: number().int().positive().optional()
13259
13408
  }).readonly();
13260
13409
  var PickedCamStreamSchema = object({
13261
13410
  camStreamId: string(),
13262
13411
  codec: string().optional(),
13263
13412
  resolution: CamStreamResolutionSchema.optional(),
13413
+ /**
13414
+ * Whether serving this stream requires a decode + re-encode.
13415
+ *
13416
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
13417
+ * when the caller asked for it with `allowTranscode`, so a caller that did
13418
+ * not ask cannot be handed a cost it never agreed to pay.
13419
+ */
13420
+ transcodes: boolean(),
13264
13421
  /** One-line explanation of why this stream won — for logs / debug UI. */
13265
13422
  reason: string()
13266
13423
  });
@@ -17794,6 +17951,8 @@ var NcSystemEventKindSchema = _enum([
17794
17951
  "device-enabled",
17795
17952
  "device-battery-low",
17796
17953
  "device-battery-normal",
17954
+ "device-consumable-low",
17955
+ "device-consumable-normal",
17797
17956
  "stream-online",
17798
17957
  "stream-offline",
17799
17958
  "node-online",
@@ -17812,6 +17971,7 @@ var NcSystemEventKindSchema = _enum([
17812
17971
  "addon-updated",
17813
17972
  "server-updated",
17814
17973
  "export-completed",
17974
+ "backup-completed",
17815
17975
  "camera-online",
17816
17976
  "camera-offline",
17817
17977
  "camera-disabled",
@@ -21248,13 +21408,109 @@ var SummariesQueryInput = object({
21248
21408
  deviceIds: array(number()).min(1),
21249
21409
  since: number().optional(),
21250
21410
  until: number().optional(),
21251
- limit: number().int().min(1).max(200).default(50)
21411
+ limit: number().int().min(1).max(200).default(50),
21412
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
21413
+ * meaning of "dog" on every summary surface. */
21414
+ classes: array(string().min(1).max(60)).max(40).optional()
21252
21415
  });
21253
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
21254
21416
  var SummaryDetailSchema = object({
21255
21417
  summary: SummarySchema,
21256
- /** Member track ids, in absorption order. */
21257
- trackIds: array(string()).readonly()
21418
+ /** Members in absorption order, oldest join first. */
21419
+ members: array(object({
21420
+ trackId: string(),
21421
+ /**
21422
+ * The track's class at the time it JOINED, or `null` when it was unresolved
21423
+ * and the track no longer exists to fill it.
21424
+ *
21425
+ * The join, not the latest opinion: class voting can re-decide a track's
21426
+ * class afterwards, and a group's composition is the history of who came
21427
+ * together. A consumer counts these to badge a thumbnail — "two people and a
21428
+ * dog" — rather than being handed a second, denormalised tally that would
21429
+ * drift from the members it claims to describe.
21430
+ */
21431
+ className: string().nullable(),
21432
+ /** `primary` is the one member that carries the group's identity. */
21433
+ role: _enum([
21434
+ "primary",
21435
+ "sibling",
21436
+ "child"
21437
+ ]).nullable(),
21438
+ joinedAt: number(),
21439
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
21440
+ * at read time. Absent when nothing resolved, never an empty string. */
21441
+ label: string().optional(),
21442
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
21443
+ * recognised nobody, and absent for a member whose track has been pruned —
21444
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
21445
+ subLabel: string().optional()
21446
+ })).readonly()
21447
+ });
21448
+ /**
21449
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
21450
+ *
21451
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
21452
+ * we extend when we notice we need more". Enough to draw the card ("two people
21453
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
21454
+ * are on {@link getSummary}: shipping every member of every group so a client
21455
+ * can count them turns a page of two hundred groups into a thousand records to
21456
+ * draw two hundred badges.
21457
+ */
21458
+ var SummaryListItemSchema = object({
21459
+ summary: SummarySchema,
21460
+ /** Class counts, most numerous first; `className: null` is a member whose
21461
+ * class never resolved, counted so the counts add up to `memberCount`. */
21462
+ classes: array(object({
21463
+ className: string().nullable(),
21464
+ count: number().int().positive()
21465
+ })).readonly()
21466
+ });
21467
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
21468
+ /**
21469
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
21470
+ *
21471
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
21472
+ * summaries feed that could only answer "the last N for these cameras"
21473
+ * (`listSummaries`) would make groups available in the timeline and nowhere
21474
+ * else. Two feeds with different ordering contracts would be two ideas of what
21475
+ * "newest" means, on one screen.
21476
+ */
21477
+ var RecentSummariesQueryInput = object({
21478
+ /** Devices to merge. An empty array yields an empty page. */
21479
+ deviceIds: array(number()),
21480
+ /** Window lower bound on `lastActiveAt` (inclusive). */
21481
+ since: number().optional(),
21482
+ /** Window upper bound on `lastActiveAt` (inclusive). */
21483
+ until: number().optional(),
21484
+ limit: number().int().min(1).max(500).default(100),
21485
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
21486
+ cursor: string().optional(),
21487
+ /**
21488
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
21489
+ * deliberately the same name: the events filter tree emits one list of ticked
21490
+ * taxonomy nodes, and a summaries feed that called it something else would
21491
+ * make the operator's one filter component produce two shapes.
21492
+ *
21493
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
21494
+ * me the arrivals with a dog" has to return the group of four people who had
21495
+ * one with them; a filter on the group's own fields could only ever answer
21496
+ * about its primary.
21497
+ *
21498
+ * Matched against all THREE tiers of a member — the class (`animal`), the
21499
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
21500
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
21501
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
21502
+ * that read only the class would answer "animal" and never "dog".
21503
+ *
21504
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
21505
+ */
21506
+ classes: array(string().min(1).max(60)).max(40).optional()
21507
+ });
21508
+ var RecentSummariesPageSchema = object({
21509
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
21510
+ * {@link listSummaries} — one list shape, so a card renders the same
21511
+ * whichever feed drew it. */
21512
+ summaries: array(SummaryListItemSchema).readonly(),
21513
+ nextCursor: string().nullable()
21258
21514
  });
21259
21515
  var RecentTracksPageSchema = object({
21260
21516
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -21668,7 +21924,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21668
21924
  classes: array(string()).optional(),
21669
21925
  /** See {@link ExcludeSourcesDoc}. */
21670
21926
  excludeSources: array(TrackSourceSchema).optional()
21671
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
21927
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
21672
21928
  kind: "mutation",
21673
21929
  auth: "admin"
21674
21930
  }), 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({
@@ -24997,10 +25253,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
24997
25253
  }), boolean()), method(object({
24998
25254
  deviceId: number().int().nonnegative(),
24999
25255
  sessionId: string()
25000
- }), object({ pendingRenegotiation: object({
25001
- target: WebrtcStreamTargetSchema,
25002
- epoch: number()
25003
- }).nullable() }));
25256
+ }), object({
25257
+ pendingRenegotiation: object({
25258
+ target: WebrtcStreamTargetSchema,
25259
+ epoch: number()
25260
+ }).nullable(),
25261
+ /**
25262
+ * Whether the session still EXISTS.
25263
+ *
25264
+ * A consumer that holds a resource for the life of a session needs to
25265
+ * be able to ask, because a session does not always end the way it
25266
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
25267
+ * sent `SessionDisconnected`, so the Alexa exporter's
25268
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
25269
+ * H.264 transcode kept running for NOBODY for more than twenty
25270
+ * minutes. The WebRTC session had logged `WebRTC session closed`
25271
+ * minutes earlier — the broker knew; the holder had no way to ask.
25272
+ *
25273
+ * `false` for a session id the provider has never heard of, which is
25274
+ * the same answer as "it ended": either way nothing is holding it up.
25275
+ */
25276
+ alive: boolean()
25277
+ }));
25004
25278
  object({
25005
25279
  /** All accessory children of the parent. */
25006
25280
  childDeviceIds: array(number()).readonly(),
@@ -33429,7 +33703,29 @@ var LoggingSettingsPatchSchema = object({
33429
33703
  * disarmed the channels it did not mention would make the Levels page and
33430
33704
  * the Diagnostics page fight over the same value.
33431
33705
  */
33432
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
33706
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
33707
+ /**
33708
+ * How many days the analytics OPS LOG is kept — the audit trail of what
33709
+ * retention actually deleted.
33710
+ *
33711
+ * It lives HERE, on the logging document, and not on the analytics addon's
33712
+ * settings form, on the operator's instruction: every other log-ish window in
33713
+ * this system is configured through this one document, and a retention audit
33714
+ * configured somewhere else is a second place to look when the question is
33715
+ * "what happened to my data".
33716
+ *
33717
+ * That placement has a cost worth stating: this document ships in the
33718
+ * framework closure, so this knob needs a published `@camstack/server` while
33719
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
33720
+ *
33721
+ * `retention-model.ts` argued this one must NOT follow a device window,
33722
+ * because the audit trail is the history of the SWEEP and not of the camera.
33723
+ * That argument stands and is untouched — what changes is that 30 days stops
33724
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
33725
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
33726
+ * state in which the next 9.5 GiB leak cannot be explained.
33727
+ */
33728
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
33433
33729
  });
33434
33730
  /**
33435
33731
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -33502,6 +33798,14 @@ var LoggingSettingsStateSchema = object({
33502
33798
  channels: array(LogChannelDescriptorSchema).readonly(),
33503
33799
  /** The channels ARMED right now, each with its deadline. */
33504
33800
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
33801
+ /**
33802
+ * The ops-log window in days, as it is in force. `0` = kept forever.
33803
+ *
33804
+ * Reported rather than left to the caller's memory of what it wrote: this is
33805
+ * the value the analytics sweep will actually use, and an operator asking how
33806
+ * long their audit trail lives should not have to infer it from a default.
33807
+ */
33808
+ opsLogRetentionDays: number().int().min(0),
33505
33809
  persisted: boolean()
33506
33810
  });
33507
33811
  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(), {
@@ -34897,6 +35201,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
34897
35201
  smoke: smokeCapability,
34898
35202
  streamCatalog: streamCatalogCapability,
34899
35203
  streamParams: streamParamsCapability,
35204
+ streamSignals: streamSignalsCapability,
34900
35205
  switch: switchCapability,
34901
35206
  tamper: tamperCapability,
34902
35207
  temperatureSensor: temperatureSensorCapability,
@@ -39502,6 +39807,12 @@ Object.freeze({
39502
39807
  addonId: null,
39503
39808
  access: "view"
39504
39809
  },
39810
+ "pipelineAnalytics.listRecentSummaries": {
39811
+ capName: "pipeline-analytics",
39812
+ capScope: "device",
39813
+ addonId: null,
39814
+ access: "view"
39815
+ },
39505
39816
  "pipelineAnalytics.listRecentTracks": {
39506
39817
  capName: "pipeline-analytics",
39507
39818
  capScope: "device",
@@ -41464,6 +41775,12 @@ Object.freeze({
41464
41775
  addonId: null,
41465
41776
  access: "create"
41466
41777
  },
41778
+ "streamBroker.reportStreamSignal": {
41779
+ capName: "stream-broker",
41780
+ capScope: "system",
41781
+ addonId: null,
41782
+ access: "create"
41783
+ },
41467
41784
  "streamBroker.restartProfile": {
41468
41785
  capName: "stream-broker",
41469
41786
  capScope: "system",
@@ -41548,6 +41865,12 @@ Object.freeze({
41548
41865
  addonId: null,
41549
41866
  access: "create"
41550
41867
  },
41868
+ "streamSignals.listSignals": {
41869
+ capName: "stream-signals",
41870
+ capScope: "device",
41871
+ addonId: null,
41872
+ access: "view"
41873
+ },
41551
41874
  "switch.setState": {
41552
41875
  capName: "switch",
41553
41876
  capScope: "device",
@@ -43329,6 +43652,11 @@ Object.freeze({
43329
43652
  form: "single",
43330
43653
  optional: true
43331
43654
  }],
43655
+ "pipelineAnalytics.listRecentSummaries": [{
43656
+ name: "deviceIds",
43657
+ form: "array",
43658
+ optional: false
43659
+ }],
43332
43660
  "pipelineAnalytics.listRecentTracks": [{
43333
43661
  name: "deviceIds",
43334
43662
  form: "array",
@@ -43915,6 +44243,11 @@ Object.freeze({
43915
44243
  form: "single",
43916
44244
  optional: false
43917
44245
  }],
44246
+ "streamBroker.reportStreamSignal": [{
44247
+ name: "deviceId",
44248
+ form: "single",
44249
+ optional: false
44250
+ }],
43918
44251
  "streamBroker.restartProfile": [{
43919
44252
  name: "deviceId",
43920
44253
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.100",
3
+ "version": "0.2.102",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",