@camstack/addon-smtp-nodemailer 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.
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-ZyX6jcse.mjs
39
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -653,6 +653,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
653
653
  * pull-reconcile from the provider's `getStatus` on reconnect. */
654
654
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
655
655
  EventCategory["BackupCompleted"] = "backup.completed";
656
+ /**
657
+ * A whole backup RUN finished — every destination attempted, win or lose.
658
+ *
659
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
660
+ * a progress UI and the wrong one for a notification: an operator with three
661
+ * destinations would be told three times. And a run where two of three
662
+ * destinations succeeded is not a clean success — a single "backup
663
+ * completed" that hid the failed one would be a lie, so the count of each is
664
+ * carried here and the message says both.
665
+ *
666
+ * Emitted by the backup orchestrator only after the destination loop, so a
667
+ * run that dies during the BUILD phase produces no completion at all.
668
+ */
669
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
656
670
  EventCategory["BackupRestored"] = "backup.restored";
657
671
  EventCategory["NotificationDispatched"] = "notification.dispatched";
658
672
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5383,7 +5397,7 @@ var ZodIssueCode = {
5383
5397
  var ZodFirstPartyTypeKind;
5384
5398
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5385
5399
  //#endregion
5386
- //#region ../types/dist/sleep-DBKu2-U5.mjs
5400
+ //#region ../types/dist/sleep-BDR76Ykr.mjs
5387
5401
  /**
5388
5402
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5389
5403
  * window to float samples (D455).
@@ -11511,6 +11525,58 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
11511
11525
  auth: "admin"
11512
11526
  }), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
11513
11527
  DeviceType.Camera;
11528
+ /**
11529
+ * The signals a device can emit to WAKE its own stream.
11530
+ *
11531
+ * A camera whose stream is built on demand sleeps until something asks for it,
11532
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
11533
+ * puller holds a session open for ever, and treating that as demand would keep
11534
+ * a battery camera awake for ever, which is the whole thing the battery is for
11535
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
11536
+ * itself, with no stream running.
11537
+ *
11538
+ * ## The vocabulary is the PROVIDER'S, not ours
11539
+ *
11540
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
11541
+ * names each signal with a `code` it chooses and a `label` an operator reads.
11542
+ * Reolink offers motion and camera-native detection; another provider may offer
11543
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
11544
+ * yet. A fixed enum here would mean every new signal is a framework release.
11545
+ *
11546
+ * It is deliberately NOT derived from the caps a device already binds. Whether
11547
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
11548
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
11549
+ * binding — but both answer "what drives the detection pipeline", which is a
11550
+ * different question from "what may wake a sleeping stream". A camera can do
11551
+ * the first and not be trusted with the second, and the operator picks per
11552
+ * camera. Two questions, two authorities.
11553
+ *
11554
+ * ## Availability is not permission
11555
+ *
11556
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
11557
+ * wakes the stream is the operator's per-camera choice, held by the broker
11558
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
11559
+ * provider declaring a signal is not a provider enabling it.
11560
+ */
11561
+ /** One signal a device can emit. */
11562
+ var StreamSignalSchema = object({
11563
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
11564
+ code: string().min(1),
11565
+ /** What an operator reads in the picker. The provider's own wording. */
11566
+ label: string().min(1),
11567
+ /**
11568
+ * Whether the provider recommends this signal ON when a camera is first set
11569
+ * up. A provider knows which of its signals are cheap and reliable; an
11570
+ * operator should not have to discover that by trial. Reolink recommends
11571
+ * both of its own.
11572
+ */
11573
+ recommended: boolean()
11574
+ });
11575
+ object({
11576
+ signals: array(StreamSignalSchema),
11577
+ lastFetchedAt: number()
11578
+ });
11579
+ Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
11514
11580
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11515
11581
  var StreamFormatSchema = _enum([
11516
11582
  "webrtc",
@@ -11907,6 +11973,22 @@ var EgressTranscodeSchema = object({
11907
11973
  camStreamId: string().nullable()
11908
11974
  });
11909
11975
  method(object({
11976
+ deviceId: number().int().nonnegative(),
11977
+ /** The provider's signal code. */
11978
+ code: string().min(1),
11979
+ /** Ms epoch. Absent ⇒ now. */
11980
+ at: number().optional()
11981
+ }), object({
11982
+ /** Whether the broker acted on it, and if not, why. */
11983
+ accepted: boolean(),
11984
+ reason: _enum([
11985
+ "woke",
11986
+ "hold-extended",
11987
+ "not-enabled",
11988
+ "no-consumer",
11989
+ "unknown-code"
11990
+ ])
11991
+ }), { kind: "mutation" }), method(object({
11910
11992
  deviceId: number().int().nonnegative(),
11911
11993
  camStreamId: string().min(1),
11912
11994
  kind: CamStreamKindSchema,
@@ -12161,6 +12243,16 @@ var PickStreamRequirementsSchema = object({
12161
12243
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12162
12244
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12163
12245
  minHeight: number().int().positive().optional(),
12246
+ /**
12247
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
12248
+ *
12249
+ * A consumer can have a ceiling as real as its floor: Alexa documents
12250
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
12251
+ * Without this the ceiling had to be re-implemented by every caller — and
12252
+ * one caller implementing it privately is how a second scoring authority
12253
+ * gets born.
12254
+ */
12255
+ maxHeight: number().int().positive().optional(),
12164
12256
  /** Minimum horizontal resolution. */
12165
12257
  minWidth: number().int().positive().optional(),
12166
12258
  /**
@@ -12177,7 +12269,22 @@ var PickStreamRequirementsSchema = object({
12177
12269
  * transcoded" guard: if the device is already serving the consumer's
12178
12270
  * codec end-to-end, there's nothing to optimise.
12179
12271
  */
12180
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
12272
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
12273
+ /**
12274
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
12275
+ * understanding that it will be transcoded.
12276
+ *
12277
+ * Default `false` — today's behaviour, and the right one for a bypass
12278
+ * question ("is there a stream I can forward untouched?"). Set `true` to
12279
+ * ask the larger question: "what is the best stream for me, transcoding if
12280
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
12281
+ * does not, so a passthrough is never lost to a transcode; the answer says
12282
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
12283
+ *
12284
+ * This is what lets one picker serve both the bypass and the full source
12285
+ * choice, instead of a consumer scoring privately when the bypass misses.
12286
+ */
12287
+ allowTranscode: boolean().optional()
12181
12288
  }).readonly();
12182
12289
  var PickStreamPreferencesSchema = object({
12183
12290
  /**
@@ -12191,12 +12298,32 @@ var PickStreamPreferencesSchema = object({
12191
12298
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12192
12299
  * memory-constrained consumers / Apple Home guest sessions).
12193
12300
  */
12194
- resolutionPreference: _enum(["highest", "lowest"]).optional()
12301
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
12302
+ /**
12303
+ * The height the consumer actually wants to DELIVER.
12304
+ *
12305
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
12306
+ * above the target wins, and only if nothing reaches it does the tallest
12307
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
12308
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
12309
+ * express that: it says "as big as possible", which is a different wish.
12310
+ *
12311
+ * Ignored when absent, so every existing caller keeps its ordering.
12312
+ */
12313
+ targetHeight: number().int().positive().optional()
12195
12314
  }).readonly();
12196
12315
  var PickedCamStreamSchema = object({
12197
12316
  camStreamId: string(),
12198
12317
  codec: string().optional(),
12199
12318
  resolution: CamStreamResolutionSchema.optional(),
12319
+ /**
12320
+ * Whether serving this stream requires a decode + re-encode.
12321
+ *
12322
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
12323
+ * when the caller asked for it with `allowTranscode`, so a caller that did
12324
+ * not ask cannot be handed a cost it never agreed to pay.
12325
+ */
12326
+ transcodes: boolean(),
12200
12327
  /** One-line explanation of why this stream won — for logs / debug UI. */
12201
12328
  reason: string()
12202
12329
  });
@@ -16385,6 +16512,8 @@ var NcSystemEventKindSchema = _enum([
16385
16512
  "device-enabled",
16386
16513
  "device-battery-low",
16387
16514
  "device-battery-normal",
16515
+ "device-consumable-low",
16516
+ "device-consumable-normal",
16388
16517
  "stream-online",
16389
16518
  "stream-offline",
16390
16519
  "node-online",
@@ -16403,6 +16532,7 @@ var NcSystemEventKindSchema = _enum([
16403
16532
  "addon-updated",
16404
16533
  "server-updated",
16405
16534
  "export-completed",
16535
+ "backup-completed",
16406
16536
  "camera-online",
16407
16537
  "camera-offline",
16408
16538
  "camera-disabled",
@@ -17725,6 +17855,48 @@ var NcAlarmConfigSchema = object({
17725
17855
  settings: NcAlarmSettingsSchema,
17726
17856
  coverage: array(NcAlarmModeCoverageSchema)
17727
17857
  });
17858
+ /**
17859
+ * ONE rule's demand on ONE camera's clip ring.
17860
+ *
17861
+ * A rule, not a camera: the broker takes the MAX over the asks that reach a
17862
+ * camera, so the answer stays a faithful description of the rules and the
17863
+ * bounding (the byte budget, the broker's own ceiling) stays where the cost
17864
+ * lives. A camera that appears in no ask is being told **nothing** — which is
17865
+ * a different thing from never having been told, and only the envelope
17866
+ * (`rulesLoaded`) can tell those apart.
17867
+ */
17868
+ var NcClipRetentionAskSchema = object({
17869
+ /**
17870
+ * The camera this ask is about. **Absent = every camera**, which is what a
17871
+ * rule with no `conditions.devices` means: it can fire anywhere, so it is
17872
+ * asking everywhere.
17873
+ */
17874
+ deviceId: number().int().nonnegative().optional(),
17875
+ /** Seconds of history the rule needs held for it. Never zero — a rule that
17876
+ * needs nothing produces no ask at all. */
17877
+ seconds: number().min(0).max(60),
17878
+ /** The profile the rule cuts from, when it named one. Absent = the cheapest
17879
+ * assigned, which is what the cut defaults to. */
17880
+ profile: CamProfileSchema.optional(),
17881
+ /** Who is asking — so a retention the operator did not expect names a rule. */
17882
+ ruleId: string(),
17883
+ ruleName: string(),
17884
+ /** Why this many seconds: the rule's own window, or the occupancy ceiling. */
17885
+ reason: _enum(["window", "occupancy"])
17886
+ });
17887
+ /**
17888
+ * The whole answer, with the one bit that keeps absence from reading as zero.
17889
+ *
17890
+ * `rulesLoaded` is false until the rule ledger has completed a load at least
17891
+ * once. A centre that is up but has not read its rules yet answers with an
17892
+ * empty ask list that means nothing at all — applying it would drop every
17893
+ * camera's ring to zero for the first events after a restart, which is the
17894
+ * footage this mechanism exists to keep.
17895
+ */
17896
+ var NcClipRetentionPlanSchema = object({
17897
+ rulesLoaded: boolean(),
17898
+ asks: array(NcClipRetentionAskSchema).readonly()
17899
+ });
17728
17900
  method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
17729
17901
  kind: "mutation",
17730
17902
  auth: "admin",
@@ -17745,7 +17917,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
17745
17917
  }), object({ success: literal(true) }), {
17746
17918
  kind: "mutation",
17747
17919
  auth: "admin"
17748
- }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
17920
+ }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
17749
17921
  deviceId: number().int(),
17750
17922
  muted: boolean()
17751
17923
  }), object({ success: literal(true) }), {
@@ -20279,6 +20451,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
20279
20451
  * solid is this track", cheaper than re-deriving it from a trajectory. */
20280
20452
  framesMatched: number().int()
20281
20453
  })).readonly() });
20454
+ /**
20455
+ * The long-term series a camera produces. A closed union so a typo cannot
20456
+ * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
20457
+ * is an alias of this, not a second list.
20458
+ */
20459
+ var AnalyticsLtsSeriesSchema = _enum([
20460
+ "motion",
20461
+ "audio-dbfs",
20462
+ "battery",
20463
+ "occupancy"
20464
+ ]);
20465
+ /**
20466
+ * One closed 5-minute bucket of a long-term series.
20467
+ *
20468
+ * `samples` is how many readings the bucket folded — it is the ACTIVITY for a
20469
+ * series like `motion`, and the confidence for one like `occupancy`. A bucket
20470
+ * that exists at all was measured; a bucket that is absent was not, which is a
20471
+ * different claim from zero and the reason this is a sparse series.
20472
+ */
20473
+ var LtsBucketSchema = object({
20474
+ scope: string(),
20475
+ bucketStart: number().int(),
20476
+ samples: number().int().nonnegative(),
20477
+ sum: number(),
20478
+ min: number(),
20479
+ max: number()
20480
+ });
20282
20481
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
20283
20482
  deviceId: number(),
20284
20483
  trackId: string()
@@ -20325,6 +20524,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20325
20524
  kinds: array(string()).optional(),
20326
20525
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
20327
20526
  }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
20527
+ deviceId: number(),
20528
+ series: AnalyticsLtsSeriesSchema,
20529
+ /** Omit for EVERY scope of this series in the range. */
20530
+ scope: string().optional(),
20531
+ from: number(),
20532
+ to: number(),
20533
+ limit: number().int().positive().optional()
20534
+ }), array(LtsBucketSchema).readonly()), method(object({
20328
20535
  deviceId: number(),
20329
20536
  since: number(),
20330
20537
  until: number(),
@@ -20943,6 +21150,14 @@ var MotionSourceEnum = _enum([
20943
21150
  */
20944
21151
  var MotionSourcesSchema = array(MotionSourceEnum);
20945
21152
  /**
21153
+ * Which root detectors a camera runs. Deliberately the SAME vocabulary
21154
+ * post-analysis already tags every detection with (`DetectionSource`) rather
21155
+ * than a second spelling of the same two ideas — the value an operator picks
21156
+ * here is the value that comes back on the track, the overlay and the debug
21157
+ * row.
21158
+ */
21159
+ var DetectionSourcesSchema = array(DetectionSourceSchema);
21160
+ /**
20946
21161
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
20947
21162
  * so cap-side consumers (the orchestrator forward, the runner addon's
20948
21163
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -21093,6 +21308,35 @@ var RunnerCameraConfigSchema = object({
21093
21308
  * events; the orchestrator forwards to `reportMotion`.
21094
21309
  */
21095
21310
  motionSources: MotionSourcesSchema.default(["analyzer"]),
21311
+ /**
21312
+ * WHICH root detector runs for this camera. The detection counterpart of
21313
+ * {@link motionSources}, same shape and same discipline: a per-camera list
21314
+ * of sources the system understands, vendor-agnostic, owned here.
21315
+ *
21316
+ * - `pipeline` — this runner's own root step on decoded pixels (`steps`).
21317
+ * - `onboard` — the CAMERA's own detector, admitted only when it is named
21318
+ * here. Its boxes reach post-analysis on the same
21319
+ * `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
21320
+ * track gets the same tracker, the same overlay and the same detail
21321
+ * subtree (face / plate / embedding).
21322
+ *
21323
+ * `['onboard']` alone is the REPLACEMENT: this runner's root step does not
21324
+ * run, and that is where a camera with a usable onboard detector buys back
21325
+ * its share of the accelerator. It saves the root inference, not the decode
21326
+ * — the detail subtree still needs pixels to cut crops from.
21327
+ *
21328
+ * A camera whose onboard detections carry no geometry cannot serve as a root
21329
+ * step at all (there is nothing to track), and the cap that knows this says
21330
+ * so on `native-object-detection.getOptions().geometry`. On Reolink that is
21331
+ * every battery camera: the boxes ride a sub-stream a battery camera never
21332
+ * attaches, so such a camera stays on `['pipeline']` and its onboard AI is
21333
+ * worth exactly what it already is — a wake signal with a class.
21334
+ *
21335
+ * Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
21336
+ * vendor never turns a detector on for the operator, and neither does a
21337
+ * default.
21338
+ */
21339
+ detectionSources: DetectionSourcesSchema.default(["pipeline"]),
21096
21340
  pipelineEnabled: boolean().default(true),
21097
21341
  /** Ordered tree of video steps. Absent → runner skips video detection. */
21098
21342
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -21274,7 +21518,47 @@ var RunnerLocalMetricsSchema = object({
21274
21518
  queueDepth: number(),
21275
21519
  frameLazy: FrameLazyMetricsSchema.optional()
21276
21520
  });
21521
+ /**
21522
+ * Pipeline Runner capability — runtime detection workhorse.
21523
+ *
21524
+ * One instance per node. Receives camera assignments from
21525
+ * `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
21526
+ * decoded frames, drains motion + detection queues, calls the local
21527
+ * `motion-detection` and `pipeline-executor` capabilities, and emits typed
21528
+ * `pipeline.inference-result` and `detection.motion-analysis` events on
21529
+ * the bus.
21530
+ *
21531
+ * Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
21532
+ * runner has zero knowledge of other agents, no global state, and never
21533
+ * makes assignment decisions itself.
21534
+ */
21535
+ /**
21536
+ * Why a runner declined to look at a camera out of band. Named rather than a
21537
+ * bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
21538
+ * already mid-session and one already bursting are four different facts, and a
21539
+ * caller told only "no" cannot tell a protection from a bug.
21540
+ */
21541
+ var OccupancyBurstRefusalSchema = _enum([
21542
+ "not-attached",
21543
+ "battery-asleep",
21544
+ "not-watching",
21545
+ "already-bursting"
21546
+ ]);
21277
21547
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
21548
+ deviceId: number(),
21549
+ /** How many frames to collect. The caller sizes this against what its
21550
+ * own confirmation needs; the runner clamps it to the field's range. */
21551
+ frames: number().int().positive().optional(),
21552
+ /** Why, for the log. A burst nobody can attribute is a cost nobody can
21553
+ * defend — the periodic one at least has a timer to point at. */
21554
+ reason: string()
21555
+ }), object({
21556
+ started: boolean(),
21557
+ refusedBecause: OccupancyBurstRefusalSchema.optional()
21558
+ }), {
21559
+ auth: "admin",
21560
+ kind: "mutation"
21561
+ }), method(object({
21278
21562
  handle: FrameHandleSchema,
21279
21563
  bbox: NativeCropBboxSchema,
21280
21564
  maxWidth: number().int().positive().optional(),
@@ -23657,10 +23941,28 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
23657
23941
  }), boolean()), method(object({
23658
23942
  deviceId: number().int().nonnegative(),
23659
23943
  sessionId: string()
23660
- }), object({ pendingRenegotiation: object({
23661
- target: WebrtcStreamTargetSchema,
23662
- epoch: number()
23663
- }).nullable() }));
23944
+ }), object({
23945
+ pendingRenegotiation: object({
23946
+ target: WebrtcStreamTargetSchema,
23947
+ epoch: number()
23948
+ }).nullable(),
23949
+ /**
23950
+ * Whether the session still EXISTS.
23951
+ *
23952
+ * A consumer that holds a resource for the life of a session needs to
23953
+ * be able to ask, because a session does not always end the way it
23954
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
23955
+ * sent `SessionDisconnected`, so the Alexa exporter's
23956
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
23957
+ * H.264 transcode kept running for NOBODY for more than twenty
23958
+ * minutes. The WebRTC session had logged `WebRTC session closed`
23959
+ * minutes earlier — the broker knew; the holder had no way to ask.
23960
+ *
23961
+ * `false` for a session id the provider has never heard of, which is
23962
+ * the same answer as "it ended": either way nothing is holding it up.
23963
+ */
23964
+ alive: boolean()
23965
+ }));
23664
23966
  object({
23665
23967
  /** All accessory children of the parent. */
23666
23968
  childDeviceIds: array(number()).readonly(),
@@ -26738,7 +27040,7 @@ var NativeDetectionSchema = object({
26738
27040
  /** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
26739
27041
  confidence: number().min(0).max(1).optional()
26740
27042
  });
26741
- object({
27043
+ var NativeObjectDetectionStatusSchema = object({
26742
27044
  /**
26743
27045
  * Last observed instance per class. Missing entries mean the class
26744
27046
  * is supported but nothing has been seen since the provider started.
@@ -26755,14 +27057,56 @@ object({
26755
27057
  supportedClasses: array(NativeObjectClassEnum).readonly(),
26756
27058
  /**
26757
27059
  * Whether forwarding of onboard AI detections is enabled for this device.
26758
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
26759
- * churn the tracker, so forwarding stays off until the operator enables it.
27060
+ *
27061
+ * Cold-start OFF on every camera. A vendor does not decide which detector a
27062
+ * camera runs — that is the operator's choice, and it is made where every
27063
+ * other detection choice is made. `geometry` on
27064
+ * {@link NativeObjectDetectionOptionsSchema} is how the form says what the
27065
+ * choice would buy this particular camera.
26760
27066
  */
26761
27067
  enabled: boolean()
26762
- }).extend({
27068
+ });
27069
+ /**
27070
+ * WHEN a camera's onboard detections carry geometry.
27071
+ *
27072
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
27073
+ * a detection is a trackable subject whenever the camera sees one.
27074
+ * - `while-streaming` — only while some stream of this camera is already open.
27075
+ * The boxes ride the video's own side-channel rather than a feed of their
27076
+ * own, so they cost nothing and they exist only when something is pulling.
27077
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
27078
+ * radio drain, but a camera that is awake is awake precisely because
27079
+ * something is in front of it, and its stream is already being pulled.
27080
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
27081
+ * pipeline needs geometry to make a subject, so such a push reaches the
27082
+ * tracker as motion and no further.
27083
+ *
27084
+ * Reported and not inferred, because the operator's question in front of the
27085
+ * picker is "what do I get", and these are three different answers (D14: the
27086
+ * derived form is only as honest as `getOptions`).
27087
+ */
27088
+ var NativeObjectGeometryEnum = _enum([
27089
+ "boxed",
27090
+ "while-streaming",
27091
+ "flag-only"
27092
+ ]);
27093
+ var NativeObjectDetectionOptionsSchema = object({
27094
+ /** Classes this firmware can detect — the same list the status reports. */
27095
+ supportedClasses: array(NativeObjectClassEnum).readonly(),
27096
+ /** What a detection from this camera carries. */
27097
+ geometry: NativeObjectGeometryEnum
27098
+ });
27099
+ var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
27100
+ NativeObjectDetectionStatusSchema.extend({
26763
27101
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
26764
27102
  lastFetchedAt: number() });
26765
- DeviceType.Camera, method(object({
27103
+ DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
27104
+ deviceId: number(),
27105
+ settings: NativeObjectDetectionSettingsPatchSchema
27106
+ }), _void(), {
27107
+ kind: "mutation",
27108
+ auth: "admin"
27109
+ }), method(object({
26766
27110
  deviceId: number(),
26767
27111
  enabled: boolean()
26768
27112
  }), _void(), {
@@ -30561,7 +30905,28 @@ var PerScopeBreakdownSchema = object({
30561
30905
  /** Total tracked objects in this scope (frame / zone / unzoned). */
30562
30906
  totalObjects: number().int().nonnegative(),
30563
30907
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
30564
- byClass: record(string(), number().int().nonnegative())
30908
+ byClass: record(string(), number().int().nonnegative()),
30909
+ /**
30910
+ * Of `totalObjects`, how many are STANDING — objects the census holds,
30911
+ * present but not going anywhere (a parked car, a bin, a statue).
30912
+ *
30913
+ * The operator's question about a scene has two halves and they answer
30914
+ * different things: "what is parked here" is stable for hours and must not
30915
+ * flap, while "who is walking through" is the thing an alert is about. One
30916
+ * number could only serve one of them, and `totalObjects` served the first
30917
+ * badly — a passer-by moved it and every occupancy rule saw a change.
30918
+ *
30919
+ * `standing + transient === totalObjects`, always. The total keeps its old
30920
+ * meaning exactly, so no rule written against it changes behaviour.
30921
+ *
30922
+ * ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
30923
+ * this field cannot say, and a reader that folds absence in as 0 reports "no
30924
+ * parked objects here" about a camera whose lot is full.
30925
+ */
30926
+ standingObjects: number().int().nonnegative().optional(),
30927
+ /** Of `totalObjects`, how many are passing through. See `standingObjects` —
30928
+ * same absence rule. */
30929
+ transientObjects: number().int().nonnegative().optional()
30565
30930
  });
30566
30931
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
30567
30932
  zoneId: string(),
@@ -33500,12 +33865,24 @@ Object.freeze({
33500
33865
  addonId: null,
33501
33866
  access: "create"
33502
33867
  },
33868
+ "nativeObjectDetection.getOptions": {
33869
+ capName: "native-object-detection",
33870
+ capScope: "device",
33871
+ addonId: null,
33872
+ access: "view"
33873
+ },
33503
33874
  "nativeObjectDetection.setEnabled": {
33504
33875
  capName: "native-object-detection",
33505
33876
  capScope: "device",
33506
33877
  addonId: null,
33507
33878
  access: "create"
33508
33879
  },
33880
+ "nativeObjectDetection.setSettings": {
33881
+ capName: "native-object-detection",
33882
+ capScope: "device",
33883
+ addonId: null,
33884
+ access: "create"
33885
+ },
33509
33886
  "navigation.getFeatures": {
33510
33887
  capName: "navigation",
33511
33888
  capScope: "device",
@@ -33770,6 +34147,12 @@ Object.freeze({
33770
34147
  addonId: null,
33771
34148
  access: "view"
33772
34149
  },
34150
+ "notificationRules.getClipRetentionAsks": {
34151
+ capName: "notification-rules",
34152
+ capScope: "system",
34153
+ addonId: null,
34154
+ access: "view"
34155
+ },
33773
34156
  "notificationRules.getConditionCatalog": {
33774
34157
  capName: "notification-rules",
33775
34158
  capScope: "system",
@@ -34280,6 +34663,12 @@ Object.freeze({
34280
34663
  addonId: null,
34281
34664
  access: "create"
34282
34665
  },
34666
+ "pipelineAnalytics.readLongTermSeries": {
34667
+ capName: "pipeline-analytics",
34668
+ capScope: "device",
34669
+ addonId: null,
34670
+ access: "view"
34671
+ },
34283
34672
  "pipelineAnalytics.rebuildObjectEmbeddings": {
34284
34673
  capName: "pipeline-analytics",
34285
34674
  capScope: "device",
@@ -34952,6 +35341,12 @@ Object.freeze({
34952
35341
  addonId: null,
34953
35342
  access: "create"
34954
35343
  },
35344
+ "pipelineRunner.requestOccupancyBurst": {
35345
+ capName: "pipeline-runner",
35346
+ capScope: "system",
35347
+ addonId: null,
35348
+ access: "create"
35349
+ },
34955
35350
  "pipelineRunner.runDetailSubtree": {
34956
35351
  capName: "pipeline-runner",
34957
35352
  capScope: "system",
@@ -36164,6 +36559,12 @@ Object.freeze({
36164
36559
  addonId: null,
36165
36560
  access: "create"
36166
36561
  },
36562
+ "streamBroker.reportStreamSignal": {
36563
+ capName: "stream-broker",
36564
+ capScope: "system",
36565
+ addonId: null,
36566
+ access: "create"
36567
+ },
36167
36568
  "streamBroker.restartProfile": {
36168
36569
  capName: "stream-broker",
36169
36570
  capScope: "system",
@@ -36248,6 +36649,12 @@ Object.freeze({
36248
36649
  addonId: null,
36249
36650
  access: "create"
36250
36651
  },
36652
+ "streamSignals.listSignals": {
36653
+ capName: "stream-signals",
36654
+ capScope: "device",
36655
+ addonId: null,
36656
+ access: "view"
36657
+ },
36251
36658
  "switch.setState": {
36252
36659
  capName: "switch",
36253
36660
  capScope: "device",
@@ -37720,11 +38127,21 @@ Object.freeze({
37720
38127
  form: "single",
37721
38128
  optional: false
37722
38129
  }],
38130
+ "nativeObjectDetection.getOptions": [{
38131
+ name: "deviceId",
38132
+ form: "single",
38133
+ optional: false
38134
+ }],
37723
38135
  "nativeObjectDetection.setEnabled": [{
37724
38136
  name: "deviceId",
37725
38137
  form: "single",
37726
38138
  optional: false
37727
38139
  }],
38140
+ "nativeObjectDetection.setSettings": [{
38141
+ name: "deviceId",
38142
+ form: "single",
38143
+ optional: false
38144
+ }],
37728
38145
  "navigation.getFeatures": [{
37729
38146
  name: "deviceId",
37730
38147
  form: "single",
@@ -38074,6 +38491,11 @@ Object.freeze({
38074
38491
  form: "single",
38075
38492
  optional: false
38076
38493
  }],
38494
+ "pipelineAnalytics.readLongTermSeries": [{
38495
+ name: "deviceId",
38496
+ form: "single",
38497
+ optional: false
38498
+ }],
38077
38499
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
38078
38500
  name: "deviceId",
38079
38501
  form: "single",
@@ -38264,6 +38686,11 @@ Object.freeze({
38264
38686
  form: "single",
38265
38687
  optional: false
38266
38688
  }],
38689
+ "pipelineRunner.requestOccupancyBurst": [{
38690
+ name: "deviceId",
38691
+ form: "single",
38692
+ optional: false
38693
+ }],
38267
38694
  "pipelineRunner.runDetailSubtree": [{
38268
38695
  name: "deviceId",
38269
38696
  form: "single",
@@ -38620,6 +39047,11 @@ Object.freeze({
38620
39047
  form: "single",
38621
39048
  optional: false
38622
39049
  }],
39050
+ "streamBroker.reportStreamSignal": [{
39051
+ name: "deviceId",
39052
+ form: "single",
39053
+ optional: false
39054
+ }],
38623
39055
  "streamBroker.restartProfile": [{
38624
39056
  name: "deviceId",
38625
39057
  form: "single",