@camstack/addon-smtp-nodemailer 1.2.101 → 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.
@@ -5397,7 +5397,7 @@ var ZodIssueCode = {
5397
5397
  var ZodFirstPartyTypeKind;
5398
5398
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5399
5399
  //#endregion
5400
- //#region ../types/dist/sleep-DEuj7E3j.mjs
5400
+ //#region ../types/dist/sleep-BDR76Ykr.mjs
5401
5401
  /**
5402
5402
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5403
5403
  * window to float samples (D455).
@@ -17855,6 +17855,48 @@ var NcAlarmConfigSchema = object({
17855
17855
  settings: NcAlarmSettingsSchema,
17856
17856
  coverage: array(NcAlarmModeCoverageSchema)
17857
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
+ });
17858
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 }), {
17859
17901
  kind: "mutation",
17860
17902
  auth: "admin",
@@ -17875,7 +17917,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
17875
17917
  }), object({ success: literal(true) }), {
17876
17918
  kind: "mutation",
17877
17919
  auth: "admin"
17878
- }), 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({
17879
17921
  deviceId: number().int(),
17880
17922
  muted: boolean()
17881
17923
  }), object({ success: literal(true) }), {
@@ -20409,6 +20451,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
20409
20451
  * solid is this track", cheaper than re-deriving it from a trajectory. */
20410
20452
  framesMatched: number().int()
20411
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
+ });
20412
20481
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
20413
20482
  deviceId: number(),
20414
20483
  trackId: string()
@@ -20455,6 +20524,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20455
20524
  kinds: array(string()).optional(),
20456
20525
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
20457
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({
20458
20535
  deviceId: number(),
20459
20536
  since: number(),
20460
20537
  until: number(),
@@ -21073,6 +21150,14 @@ var MotionSourceEnum = _enum([
21073
21150
  */
21074
21151
  var MotionSourcesSchema = array(MotionSourceEnum);
21075
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
+ /**
21076
21161
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21077
21162
  * so cap-side consumers (the orchestrator forward, the runner addon's
21078
21163
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -21223,6 +21308,35 @@ var RunnerCameraConfigSchema = object({
21223
21308
  * events; the orchestrator forwards to `reportMotion`.
21224
21309
  */
21225
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"]),
21226
21340
  pipelineEnabled: boolean().default(true),
21227
21341
  /** Ordered tree of video steps. Absent → runner skips video detection. */
21228
21342
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -21404,7 +21518,47 @@ var RunnerLocalMetricsSchema = object({
21404
21518
  queueDepth: number(),
21405
21519
  frameLazy: FrameLazyMetricsSchema.optional()
21406
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
+ ]);
21407
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({
21408
21562
  handle: FrameHandleSchema,
21409
21563
  bbox: NativeCropBboxSchema,
21410
21564
  maxWidth: number().int().positive().optional(),
@@ -26886,7 +27040,7 @@ var NativeDetectionSchema = object({
26886
27040
  /** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
26887
27041
  confidence: number().min(0).max(1).optional()
26888
27042
  });
26889
- object({
27043
+ var NativeObjectDetectionStatusSchema = object({
26890
27044
  /**
26891
27045
  * Last observed instance per class. Missing entries mean the class
26892
27046
  * is supported but nothing has been seen since the provider started.
@@ -26903,14 +27057,56 @@ object({
26903
27057
  supportedClasses: array(NativeObjectClassEnum).readonly(),
26904
27058
  /**
26905
27059
  * Whether forwarding of onboard AI detections is enabled for this device.
26906
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
26907
- * 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.
26908
27066
  */
26909
27067
  enabled: boolean()
26910
- }).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({
26911
27101
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
26912
27102
  lastFetchedAt: number() });
26913
- 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({
26914
27110
  deviceId: number(),
26915
27111
  enabled: boolean()
26916
27112
  }), _void(), {
@@ -30709,7 +30905,28 @@ var PerScopeBreakdownSchema = object({
30709
30905
  /** Total tracked objects in this scope (frame / zone / unzoned). */
30710
30906
  totalObjects: number().int().nonnegative(),
30711
30907
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
30712
- 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()
30713
30930
  });
30714
30931
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
30715
30932
  zoneId: string(),
@@ -33648,12 +33865,24 @@ Object.freeze({
33648
33865
  addonId: null,
33649
33866
  access: "create"
33650
33867
  },
33868
+ "nativeObjectDetection.getOptions": {
33869
+ capName: "native-object-detection",
33870
+ capScope: "device",
33871
+ addonId: null,
33872
+ access: "view"
33873
+ },
33651
33874
  "nativeObjectDetection.setEnabled": {
33652
33875
  capName: "native-object-detection",
33653
33876
  capScope: "device",
33654
33877
  addonId: null,
33655
33878
  access: "create"
33656
33879
  },
33880
+ "nativeObjectDetection.setSettings": {
33881
+ capName: "native-object-detection",
33882
+ capScope: "device",
33883
+ addonId: null,
33884
+ access: "create"
33885
+ },
33657
33886
  "navigation.getFeatures": {
33658
33887
  capName: "navigation",
33659
33888
  capScope: "device",
@@ -33918,6 +34147,12 @@ Object.freeze({
33918
34147
  addonId: null,
33919
34148
  access: "view"
33920
34149
  },
34150
+ "notificationRules.getClipRetentionAsks": {
34151
+ capName: "notification-rules",
34152
+ capScope: "system",
34153
+ addonId: null,
34154
+ access: "view"
34155
+ },
33921
34156
  "notificationRules.getConditionCatalog": {
33922
34157
  capName: "notification-rules",
33923
34158
  capScope: "system",
@@ -34428,6 +34663,12 @@ Object.freeze({
34428
34663
  addonId: null,
34429
34664
  access: "create"
34430
34665
  },
34666
+ "pipelineAnalytics.readLongTermSeries": {
34667
+ capName: "pipeline-analytics",
34668
+ capScope: "device",
34669
+ addonId: null,
34670
+ access: "view"
34671
+ },
34431
34672
  "pipelineAnalytics.rebuildObjectEmbeddings": {
34432
34673
  capName: "pipeline-analytics",
34433
34674
  capScope: "device",
@@ -35100,6 +35341,12 @@ Object.freeze({
35100
35341
  addonId: null,
35101
35342
  access: "create"
35102
35343
  },
35344
+ "pipelineRunner.requestOccupancyBurst": {
35345
+ capName: "pipeline-runner",
35346
+ capScope: "system",
35347
+ addonId: null,
35348
+ access: "create"
35349
+ },
35103
35350
  "pipelineRunner.runDetailSubtree": {
35104
35351
  capName: "pipeline-runner",
35105
35352
  capScope: "system",
@@ -37880,11 +38127,21 @@ Object.freeze({
37880
38127
  form: "single",
37881
38128
  optional: false
37882
38129
  }],
38130
+ "nativeObjectDetection.getOptions": [{
38131
+ name: "deviceId",
38132
+ form: "single",
38133
+ optional: false
38134
+ }],
37883
38135
  "nativeObjectDetection.setEnabled": [{
37884
38136
  name: "deviceId",
37885
38137
  form: "single",
37886
38138
  optional: false
37887
38139
  }],
38140
+ "nativeObjectDetection.setSettings": [{
38141
+ name: "deviceId",
38142
+ form: "single",
38143
+ optional: false
38144
+ }],
37888
38145
  "navigation.getFeatures": [{
37889
38146
  name: "deviceId",
37890
38147
  form: "single",
@@ -38234,6 +38491,11 @@ Object.freeze({
38234
38491
  form: "single",
38235
38492
  optional: false
38236
38493
  }],
38494
+ "pipelineAnalytics.readLongTermSeries": [{
38495
+ name: "deviceId",
38496
+ form: "single",
38497
+ optional: false
38498
+ }],
38237
38499
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
38238
38500
  name: "deviceId",
38239
38501
  form: "single",
@@ -38424,6 +38686,11 @@ Object.freeze({
38424
38686
  form: "single",
38425
38687
  optional: false
38426
38688
  }],
38689
+ "pipelineRunner.requestOccupancyBurst": [{
38690
+ name: "deviceId",
38691
+ form: "single",
38692
+ optional: false
38693
+ }],
38427
38694
  "pipelineRunner.runDetailSubtree": [{
38428
38695
  name: "deviceId",
38429
38696
  form: "single",
@@ -5395,7 +5395,7 @@ var ZodIssueCode = {
5395
5395
  var ZodFirstPartyTypeKind;
5396
5396
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5397
5397
  //#endregion
5398
- //#region ../types/dist/sleep-DEuj7E3j.mjs
5398
+ //#region ../types/dist/sleep-BDR76Ykr.mjs
5399
5399
  /**
5400
5400
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5401
5401
  * window to float samples (D455).
@@ -17853,6 +17853,48 @@ var NcAlarmConfigSchema = object({
17853
17853
  settings: NcAlarmSettingsSchema,
17854
17854
  coverage: array(NcAlarmModeCoverageSchema)
17855
17855
  });
17856
+ /**
17857
+ * ONE rule's demand on ONE camera's clip ring.
17858
+ *
17859
+ * A rule, not a camera: the broker takes the MAX over the asks that reach a
17860
+ * camera, so the answer stays a faithful description of the rules and the
17861
+ * bounding (the byte budget, the broker's own ceiling) stays where the cost
17862
+ * lives. A camera that appears in no ask is being told **nothing** — which is
17863
+ * a different thing from never having been told, and only the envelope
17864
+ * (`rulesLoaded`) can tell those apart.
17865
+ */
17866
+ var NcClipRetentionAskSchema = object({
17867
+ /**
17868
+ * The camera this ask is about. **Absent = every camera**, which is what a
17869
+ * rule with no `conditions.devices` means: it can fire anywhere, so it is
17870
+ * asking everywhere.
17871
+ */
17872
+ deviceId: number().int().nonnegative().optional(),
17873
+ /** Seconds of history the rule needs held for it. Never zero — a rule that
17874
+ * needs nothing produces no ask at all. */
17875
+ seconds: number().min(0).max(60),
17876
+ /** The profile the rule cuts from, when it named one. Absent = the cheapest
17877
+ * assigned, which is what the cut defaults to. */
17878
+ profile: CamProfileSchema.optional(),
17879
+ /** Who is asking — so a retention the operator did not expect names a rule. */
17880
+ ruleId: string(),
17881
+ ruleName: string(),
17882
+ /** Why this many seconds: the rule's own window, or the occupancy ceiling. */
17883
+ reason: _enum(["window", "occupancy"])
17884
+ });
17885
+ /**
17886
+ * The whole answer, with the one bit that keeps absence from reading as zero.
17887
+ *
17888
+ * `rulesLoaded` is false until the rule ledger has completed a load at least
17889
+ * once. A centre that is up but has not read its rules yet answers with an
17890
+ * empty ask list that means nothing at all — applying it would drop every
17891
+ * camera's ring to zero for the first events after a restart, which is the
17892
+ * footage this mechanism exists to keep.
17893
+ */
17894
+ var NcClipRetentionPlanSchema = object({
17895
+ rulesLoaded: boolean(),
17896
+ asks: array(NcClipRetentionAskSchema).readonly()
17897
+ });
17856
17898
  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 }), {
17857
17899
  kind: "mutation",
17858
17900
  auth: "admin",
@@ -17873,7 +17915,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
17873
17915
  }), object({ success: literal(true) }), {
17874
17916
  kind: "mutation",
17875
17917
  auth: "admin"
17876
- }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
17918
+ }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
17877
17919
  deviceId: number().int(),
17878
17920
  muted: boolean()
17879
17921
  }), object({ success: literal(true) }), {
@@ -20407,6 +20449,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
20407
20449
  * solid is this track", cheaper than re-deriving it from a trajectory. */
20408
20450
  framesMatched: number().int()
20409
20451
  })).readonly() });
20452
+ /**
20453
+ * The long-term series a camera produces. A closed union so a typo cannot
20454
+ * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
20455
+ * is an alias of this, not a second list.
20456
+ */
20457
+ var AnalyticsLtsSeriesSchema = _enum([
20458
+ "motion",
20459
+ "audio-dbfs",
20460
+ "battery",
20461
+ "occupancy"
20462
+ ]);
20463
+ /**
20464
+ * One closed 5-minute bucket of a long-term series.
20465
+ *
20466
+ * `samples` is how many readings the bucket folded — it is the ACTIVITY for a
20467
+ * series like `motion`, and the confidence for one like `occupancy`. A bucket
20468
+ * that exists at all was measured; a bucket that is absent was not, which is a
20469
+ * different claim from zero and the reason this is a sparse series.
20470
+ */
20471
+ var LtsBucketSchema = object({
20472
+ scope: string(),
20473
+ bucketStart: number().int(),
20474
+ samples: number().int().nonnegative(),
20475
+ sum: number(),
20476
+ min: number(),
20477
+ max: number()
20478
+ });
20410
20479
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
20411
20480
  deviceId: number(),
20412
20481
  trackId: string()
@@ -20453,6 +20522,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20453
20522
  kinds: array(string()).optional(),
20454
20523
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
20455
20524
  }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
20525
+ deviceId: number(),
20526
+ series: AnalyticsLtsSeriesSchema,
20527
+ /** Omit for EVERY scope of this series in the range. */
20528
+ scope: string().optional(),
20529
+ from: number(),
20530
+ to: number(),
20531
+ limit: number().int().positive().optional()
20532
+ }), array(LtsBucketSchema).readonly()), method(object({
20456
20533
  deviceId: number(),
20457
20534
  since: number(),
20458
20535
  until: number(),
@@ -21071,6 +21148,14 @@ var MotionSourceEnum = _enum([
21071
21148
  */
21072
21149
  var MotionSourcesSchema = array(MotionSourceEnum);
21073
21150
  /**
21151
+ * Which root detectors a camera runs. Deliberately the SAME vocabulary
21152
+ * post-analysis already tags every detection with (`DetectionSource`) rather
21153
+ * than a second spelling of the same two ideas — the value an operator picks
21154
+ * here is the value that comes back on the track, the overlay and the debug
21155
+ * row.
21156
+ */
21157
+ var DetectionSourcesSchema = array(DetectionSourceSchema);
21158
+ /**
21074
21159
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21075
21160
  * so cap-side consumers (the orchestrator forward, the runner addon's
21076
21161
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -21221,6 +21306,35 @@ var RunnerCameraConfigSchema = object({
21221
21306
  * events; the orchestrator forwards to `reportMotion`.
21222
21307
  */
21223
21308
  motionSources: MotionSourcesSchema.default(["analyzer"]),
21309
+ /**
21310
+ * WHICH root detector runs for this camera. The detection counterpart of
21311
+ * {@link motionSources}, same shape and same discipline: a per-camera list
21312
+ * of sources the system understands, vendor-agnostic, owned here.
21313
+ *
21314
+ * - `pipeline` — this runner's own root step on decoded pixels (`steps`).
21315
+ * - `onboard` — the CAMERA's own detector, admitted only when it is named
21316
+ * here. Its boxes reach post-analysis on the same
21317
+ * `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
21318
+ * track gets the same tracker, the same overlay and the same detail
21319
+ * subtree (face / plate / embedding).
21320
+ *
21321
+ * `['onboard']` alone is the REPLACEMENT: this runner's root step does not
21322
+ * run, and that is where a camera with a usable onboard detector buys back
21323
+ * its share of the accelerator. It saves the root inference, not the decode
21324
+ * — the detail subtree still needs pixels to cut crops from.
21325
+ *
21326
+ * A camera whose onboard detections carry no geometry cannot serve as a root
21327
+ * step at all (there is nothing to track), and the cap that knows this says
21328
+ * so on `native-object-detection.getOptions().geometry`. On Reolink that is
21329
+ * every battery camera: the boxes ride a sub-stream a battery camera never
21330
+ * attaches, so such a camera stays on `['pipeline']` and its onboard AI is
21331
+ * worth exactly what it already is — a wake signal with a class.
21332
+ *
21333
+ * Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
21334
+ * vendor never turns a detector on for the operator, and neither does a
21335
+ * default.
21336
+ */
21337
+ detectionSources: DetectionSourcesSchema.default(["pipeline"]),
21224
21338
  pipelineEnabled: boolean().default(true),
21225
21339
  /** Ordered tree of video steps. Absent → runner skips video detection. */
21226
21340
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -21402,7 +21516,47 @@ var RunnerLocalMetricsSchema = object({
21402
21516
  queueDepth: number(),
21403
21517
  frameLazy: FrameLazyMetricsSchema.optional()
21404
21518
  });
21519
+ /**
21520
+ * Pipeline Runner capability — runtime detection workhorse.
21521
+ *
21522
+ * One instance per node. Receives camera assignments from
21523
+ * `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
21524
+ * decoded frames, drains motion + detection queues, calls the local
21525
+ * `motion-detection` and `pipeline-executor` capabilities, and emits typed
21526
+ * `pipeline.inference-result` and `detection.motion-analysis` events on
21527
+ * the bus.
21528
+ *
21529
+ * Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
21530
+ * runner has zero knowledge of other agents, no global state, and never
21531
+ * makes assignment decisions itself.
21532
+ */
21533
+ /**
21534
+ * Why a runner declined to look at a camera out of band. Named rather than a
21535
+ * bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
21536
+ * already mid-session and one already bursting are four different facts, and a
21537
+ * caller told only "no" cannot tell a protection from a bug.
21538
+ */
21539
+ var OccupancyBurstRefusalSchema = _enum([
21540
+ "not-attached",
21541
+ "battery-asleep",
21542
+ "not-watching",
21543
+ "already-bursting"
21544
+ ]);
21405
21545
  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({
21546
+ deviceId: number(),
21547
+ /** How many frames to collect. The caller sizes this against what its
21548
+ * own confirmation needs; the runner clamps it to the field's range. */
21549
+ frames: number().int().positive().optional(),
21550
+ /** Why, for the log. A burst nobody can attribute is a cost nobody can
21551
+ * defend — the periodic one at least has a timer to point at. */
21552
+ reason: string()
21553
+ }), object({
21554
+ started: boolean(),
21555
+ refusedBecause: OccupancyBurstRefusalSchema.optional()
21556
+ }), {
21557
+ auth: "admin",
21558
+ kind: "mutation"
21559
+ }), method(object({
21406
21560
  handle: FrameHandleSchema,
21407
21561
  bbox: NativeCropBboxSchema,
21408
21562
  maxWidth: number().int().positive().optional(),
@@ -26884,7 +27038,7 @@ var NativeDetectionSchema = object({
26884
27038
  /** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
26885
27039
  confidence: number().min(0).max(1).optional()
26886
27040
  });
26887
- object({
27041
+ var NativeObjectDetectionStatusSchema = object({
26888
27042
  /**
26889
27043
  * Last observed instance per class. Missing entries mean the class
26890
27044
  * is supported but nothing has been seen since the provider started.
@@ -26901,14 +27055,56 @@ object({
26901
27055
  supportedClasses: array(NativeObjectClassEnum).readonly(),
26902
27056
  /**
26903
27057
  * Whether forwarding of onboard AI detections is enabled for this device.
26904
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
26905
- * churn the tracker, so forwarding stays off until the operator enables it.
27058
+ *
27059
+ * Cold-start OFF on every camera. A vendor does not decide which detector a
27060
+ * camera runs — that is the operator's choice, and it is made where every
27061
+ * other detection choice is made. `geometry` on
27062
+ * {@link NativeObjectDetectionOptionsSchema} is how the form says what the
27063
+ * choice would buy this particular camera.
26906
27064
  */
26907
27065
  enabled: boolean()
26908
- }).extend({
27066
+ });
27067
+ /**
27068
+ * WHEN a camera's onboard detections carry geometry.
27069
+ *
27070
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
27071
+ * a detection is a trackable subject whenever the camera sees one.
27072
+ * - `while-streaming` — only while some stream of this camera is already open.
27073
+ * The boxes ride the video's own side-channel rather than a feed of their
27074
+ * own, so they cost nothing and they exist only when something is pulling.
27075
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
27076
+ * radio drain, but a camera that is awake is awake precisely because
27077
+ * something is in front of it, and its stream is already being pulled.
27078
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
27079
+ * pipeline needs geometry to make a subject, so such a push reaches the
27080
+ * tracker as motion and no further.
27081
+ *
27082
+ * Reported and not inferred, because the operator's question in front of the
27083
+ * picker is "what do I get", and these are three different answers (D14: the
27084
+ * derived form is only as honest as `getOptions`).
27085
+ */
27086
+ var NativeObjectGeometryEnum = _enum([
27087
+ "boxed",
27088
+ "while-streaming",
27089
+ "flag-only"
27090
+ ]);
27091
+ var NativeObjectDetectionOptionsSchema = object({
27092
+ /** Classes this firmware can detect — the same list the status reports. */
27093
+ supportedClasses: array(NativeObjectClassEnum).readonly(),
27094
+ /** What a detection from this camera carries. */
27095
+ geometry: NativeObjectGeometryEnum
27096
+ });
27097
+ var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
27098
+ NativeObjectDetectionStatusSchema.extend({
26909
27099
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
26910
27100
  lastFetchedAt: number() });
26911
- DeviceType.Camera, method(object({
27101
+ DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
27102
+ deviceId: number(),
27103
+ settings: NativeObjectDetectionSettingsPatchSchema
27104
+ }), _void(), {
27105
+ kind: "mutation",
27106
+ auth: "admin"
27107
+ }), method(object({
26912
27108
  deviceId: number(),
26913
27109
  enabled: boolean()
26914
27110
  }), _void(), {
@@ -30707,7 +30903,28 @@ var PerScopeBreakdownSchema = object({
30707
30903
  /** Total tracked objects in this scope (frame / zone / unzoned). */
30708
30904
  totalObjects: number().int().nonnegative(),
30709
30905
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
30710
- byClass: record(string(), number().int().nonnegative())
30906
+ byClass: record(string(), number().int().nonnegative()),
30907
+ /**
30908
+ * Of `totalObjects`, how many are STANDING — objects the census holds,
30909
+ * present but not going anywhere (a parked car, a bin, a statue).
30910
+ *
30911
+ * The operator's question about a scene has two halves and they answer
30912
+ * different things: "what is parked here" is stable for hours and must not
30913
+ * flap, while "who is walking through" is the thing an alert is about. One
30914
+ * number could only serve one of them, and `totalObjects` served the first
30915
+ * badly — a passer-by moved it and every occupancy rule saw a change.
30916
+ *
30917
+ * `standing + transient === totalObjects`, always. The total keeps its old
30918
+ * meaning exactly, so no rule written against it changes behaviour.
30919
+ *
30920
+ * ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
30921
+ * this field cannot say, and a reader that folds absence in as 0 reports "no
30922
+ * parked objects here" about a camera whose lot is full.
30923
+ */
30924
+ standingObjects: number().int().nonnegative().optional(),
30925
+ /** Of `totalObjects`, how many are passing through. See `standingObjects` —
30926
+ * same absence rule. */
30927
+ transientObjects: number().int().nonnegative().optional()
30711
30928
  });
30712
30929
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
30713
30930
  zoneId: string(),
@@ -33646,12 +33863,24 @@ Object.freeze({
33646
33863
  addonId: null,
33647
33864
  access: "create"
33648
33865
  },
33866
+ "nativeObjectDetection.getOptions": {
33867
+ capName: "native-object-detection",
33868
+ capScope: "device",
33869
+ addonId: null,
33870
+ access: "view"
33871
+ },
33649
33872
  "nativeObjectDetection.setEnabled": {
33650
33873
  capName: "native-object-detection",
33651
33874
  capScope: "device",
33652
33875
  addonId: null,
33653
33876
  access: "create"
33654
33877
  },
33878
+ "nativeObjectDetection.setSettings": {
33879
+ capName: "native-object-detection",
33880
+ capScope: "device",
33881
+ addonId: null,
33882
+ access: "create"
33883
+ },
33655
33884
  "navigation.getFeatures": {
33656
33885
  capName: "navigation",
33657
33886
  capScope: "device",
@@ -33916,6 +34145,12 @@ Object.freeze({
33916
34145
  addonId: null,
33917
34146
  access: "view"
33918
34147
  },
34148
+ "notificationRules.getClipRetentionAsks": {
34149
+ capName: "notification-rules",
34150
+ capScope: "system",
34151
+ addonId: null,
34152
+ access: "view"
34153
+ },
33919
34154
  "notificationRules.getConditionCatalog": {
33920
34155
  capName: "notification-rules",
33921
34156
  capScope: "system",
@@ -34426,6 +34661,12 @@ Object.freeze({
34426
34661
  addonId: null,
34427
34662
  access: "create"
34428
34663
  },
34664
+ "pipelineAnalytics.readLongTermSeries": {
34665
+ capName: "pipeline-analytics",
34666
+ capScope: "device",
34667
+ addonId: null,
34668
+ access: "view"
34669
+ },
34429
34670
  "pipelineAnalytics.rebuildObjectEmbeddings": {
34430
34671
  capName: "pipeline-analytics",
34431
34672
  capScope: "device",
@@ -35098,6 +35339,12 @@ Object.freeze({
35098
35339
  addonId: null,
35099
35340
  access: "create"
35100
35341
  },
35342
+ "pipelineRunner.requestOccupancyBurst": {
35343
+ capName: "pipeline-runner",
35344
+ capScope: "system",
35345
+ addonId: null,
35346
+ access: "create"
35347
+ },
35101
35348
  "pipelineRunner.runDetailSubtree": {
35102
35349
  capName: "pipeline-runner",
35103
35350
  capScope: "system",
@@ -37878,11 +38125,21 @@ Object.freeze({
37878
38125
  form: "single",
37879
38126
  optional: false
37880
38127
  }],
38128
+ "nativeObjectDetection.getOptions": [{
38129
+ name: "deviceId",
38130
+ form: "single",
38131
+ optional: false
38132
+ }],
37881
38133
  "nativeObjectDetection.setEnabled": [{
37882
38134
  name: "deviceId",
37883
38135
  form: "single",
37884
38136
  optional: false
37885
38137
  }],
38138
+ "nativeObjectDetection.setSettings": [{
38139
+ name: "deviceId",
38140
+ form: "single",
38141
+ optional: false
38142
+ }],
37886
38143
  "navigation.getFeatures": [{
37887
38144
  name: "deviceId",
37888
38145
  form: "single",
@@ -38232,6 +38489,11 @@ Object.freeze({
38232
38489
  form: "single",
38233
38490
  optional: false
38234
38491
  }],
38492
+ "pipelineAnalytics.readLongTermSeries": [{
38493
+ name: "deviceId",
38494
+ form: "single",
38495
+ optional: false
38496
+ }],
38235
38497
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
38236
38498
  name: "deviceId",
38237
38499
  form: "single",
@@ -38422,6 +38684,11 @@ Object.freeze({
38422
38684
  form: "single",
38423
38685
  optional: false
38424
38686
  }],
38687
+ "pipelineRunner.requestOccupancyBurst": [{
38688
+ name: "deviceId",
38689
+ form: "single",
38690
+ optional: false
38691
+ }],
38425
38692
  "pipelineRunner.runDetailSubtree": [{
38426
38693
  name: "deviceId",
38427
38694
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.101",
3
+ "version": "1.2.102",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",