@camstack/addon-notifiers 1.2.94 → 1.2.97

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 +247 -24
  2. package/dist/addon.mjs +247 -24
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -29,7 +29,7 @@ let node_fs = require("node:fs");
29
29
  let node_path = require("node:path");
30
30
  node_path = __toESM(node_path);
31
31
  let node_url = require("node:url");
32
- //#region ../types/dist/event-category-CnLqLOKs.mjs
32
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
33
33
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
34
34
  EventCategory["SystemBoot"] = "system.boot";
35
35
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -621,7 +621,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
621
621
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
622
622
  */
623
623
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
624
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
625
624
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
626
625
  /**
627
626
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12697,7 +12696,7 @@ DeviceType.Camera;
12697
12696
  var SourceInfoSchema = object({
12698
12697
  /** Live dispatch key — mutable when the source system allows rename. */
12699
12698
  id: string(),
12700
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12699
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12701
12700
  system: string(),
12702
12701
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12703
12702
  * Used to detect rename when `id` changes. */
@@ -13184,7 +13183,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13184
13183
  * - `device-management.router.ts` (deleted in Phase 2)
13185
13184
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13186
13185
  *
13187
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13186
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13188
13187
  * fork into separate processes but never run on remote cluster agents. Therefore:
13189
13188
  * - No nodeId routing needed — this is a pure hub singleton.
13190
13189
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17208,7 +17207,7 @@ var NcRuleInputSchema = object({
17208
17207
  * The measured seven-person arrival on device 590 spans 110 s with every
17209
17208
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17210
17209
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17211
- * 30 is Frigate's shipped value for the same decision.
17210
+ * 30 s is a widely shipped value for the same decision.
17212
17211
  *
17213
17212
  * ### What it replaces
17214
17213
  *
@@ -19250,6 +19249,13 @@ var ZoneCrossingSchema = object({
19250
19249
  /** Zone display name at crossing time (falls back to the id). */
19251
19250
  zoneName: string().optional()
19252
19251
  });
19252
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19253
+ var ZoneOverlapSchema = object({
19254
+ zoneId: string(),
19255
+ zoneName: string().optional(),
19256
+ /** Percentage of the BOX area inside the zone, 0–100. */
19257
+ overlapPct: number()
19258
+ });
19253
19259
  var ObjectEventSchema = object({
19254
19260
  ...BaseEventFields,
19255
19261
  kind: literal("object"),
@@ -19274,6 +19280,35 @@ var ObjectEventSchema = object({
19274
19280
  bbox: BoundingBoxSchema.optional(),
19275
19281
  /** Heavy JSON — omitted in slim projection. */
19276
19282
  zones: array(string()).readonly().optional(),
19283
+ /**
19284
+ * How far inside each stamped zone the box actually was, as a percentage of
19285
+ * the BOX area.
19286
+ *
19287
+ * Membership alone cannot express "at least a third of it inside", which is
19288
+ * the bar an operator argues with — and the number already existed: the
19289
+ * engine computed it, the pipeline logged it, and then discarded it. It
19290
+ * matters most on the events that carry no track, where a rule has nothing
19291
+ * else to judge by.
19292
+ */
19293
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19294
+ /**
19295
+ * Present when this event describes a detection the TRACKER refused, so it
19296
+ * has no track and never will.
19297
+ *
19298
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19299
+ * NOW?"; tracking answers a different question ("is this the same subject as
19300
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19301
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19302
+ * seconds with three different candidate ids — seven analysed frames in the
19303
+ * window, the subject in a handful of them, metres apart — and produced no
19304
+ * event at all.
19305
+ *
19306
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19307
+ * with no track and no reason is indistinguishable from a track whose media
19308
+ * went missing, and a consumer that asks this one for a best shot or a
19309
+ * history is asking for something that never existed.
19310
+ */
19311
+ spawnRefused: string().optional(),
19277
19312
  /** Omitted in slim projection. */
19278
19313
  state: TrackStateSchema.optional(),
19279
19314
  /**
@@ -19700,7 +19735,17 @@ var EventDensityBucketSchema = object({
19700
19735
  bucketStart: number(),
19701
19736
  motion: number().int(),
19702
19737
  object: number().int(),
19703
- audio: number().int()
19738
+ audio: number().int(),
19739
+ /**
19740
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19741
+ * as opposed to `audio`, which is their COUNT (D431).
19742
+ *
19743
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19744
+ * measured", which is not the same claim as silence, and a lane that cannot
19745
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19746
+ * the count-on-a-level-meter did.
19747
+ */
19748
+ audioDbfs: number().optional()
19704
19749
  });
19705
19750
  /**
19706
19751
  * One camera's row in a `getEventDensityBatch` answer.
@@ -20347,6 +20392,60 @@ var NativeCropResultSchema = object({
20347
20392
  */
20348
20393
  tier: _enum(["native", "ram-fullframe"]).optional()
20349
20394
  });
20395
+ /**
20396
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20397
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20398
+ *
20399
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20400
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20401
+ * from, and what the detail plane's full-frame rung cuts from.
20402
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20403
+ * window, cut by the runner at uncapped native resolution.
20404
+ *
20405
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20406
+ */
20407
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20408
+ /**
20409
+ * Why a park did NOT happen. Every one is logged on the runner with
20410
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20411
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20412
+ * never a reason to retry in a loop.
20413
+ *
20414
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20415
+ * registered, past the lease bound, or the worker released it). `detail`
20416
+ * carries the runner's own miss reason.
20417
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20418
+ */
20419
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20420
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20421
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20422
+ parked: literal(true),
20423
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20424
+ nodeId: string(),
20425
+ width: number().int().positive(),
20426
+ height: number().int().positive(),
20427
+ /** JPEG bytes the parcel costs on the node. */
20428
+ bytes: number().int().nonnegative(),
20429
+ /** Whether this park replaced a parcel already held for the key. */
20430
+ replaced: boolean()
20431
+ }), object({
20432
+ parked: literal(false),
20433
+ nodeId: string(),
20434
+ reason: ParkRefusalSchema,
20435
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20436
+ handleAgeMs: number().nullable(),
20437
+ detail: string().optional()
20438
+ })]);
20439
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20440
+ var ParkedTrackFrameSchema = object({
20441
+ jpeg: string(),
20442
+ width: number().int().positive(),
20443
+ height: number().int().positive(),
20444
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20445
+ timestamp: number(),
20446
+ /** When the node stored it (the node's clock). */
20447
+ parkedAt: number()
20448
+ });
20350
20449
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20351
20450
  * originating detection, in FRAME-space coordinates. Reuses
20352
20451
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20736,7 +20835,7 @@ var RunnerCameraConfigSchema = object({
20736
20835
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20737
20836
  * analyzer providers) running on decoded frames in this runner.
20738
20837
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20739
- * analytics, Frigate motion). The provider emits ProviderMotion
20838
+ * analytics). The provider emits ProviderMotion
20740
20839
  * events; the orchestrator forwards to `reportMotion`.
20741
20840
  */
20742
20841
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -20978,7 +21077,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20978
21077
  className: string(),
20979
21078
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
20980
21079
  sourceDeviceId: number()
20981
- }), RunStatelessStepResultSchema, { kind: "mutation" });
21080
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
21081
+ deviceId: number(),
21082
+ /** Opaque to the runner — the hub's track id. */
21083
+ trackId: string(),
21084
+ kind: ParkedFrameKindSchema,
21085
+ handle: FrameHandleSchema,
21086
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
21087
+ bbox: NativeCropBboxSchema,
21088
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
21089
+ maxWidth: number().int().positive().optional(),
21090
+ /** The frame instant (caller's clock) — orders parks for one key. */
21091
+ timestamp: number()
21092
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21093
+ deviceId: number(),
21094
+ trackId: string(),
21095
+ kind: ParkedFrameKindSchema
21096
+ }), ParkedTrackFrameSchema.nullable()), method(object({
21097
+ deviceId: number(),
21098
+ trackId: string()
21099
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
20982
21100
  var CameraPipelineConfigSchema = object({
20983
21101
  engine: PipelineEngineChoiceSchema.optional(),
20984
21102
  steps: array(PipelineStepInputSchema).readonly(),
@@ -23907,7 +24025,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
23907
24025
  *
23908
24026
  * Implementations:
23909
24027
  * - Each camera-providing addon registers this cap natively per
23910
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
24028
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
23911
24029
  * - Returns a snapshot from the persisted device config blob — no
23912
24030
  * extra round-trip to the camera, no probing.
23913
24031
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25293,7 +25411,7 @@ var AvailableIntegrationTypeSchema = object({
25293
25411
  * Which integration-marker cap the addon declared, so the wizard can
25294
25412
  * branch on CAP — never on addon name. `device-adoption` integrations
25295
25413
  * (Home Assistant, …) route through the broker step (Approach A);
25296
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25414
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25297
25415
  * legacy config → discovery flow.
25298
25416
  */
25299
25417
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27794,7 +27912,23 @@ var RecordingRangeSchema = object({
27794
27912
  });
27795
27913
  var RecordingAvailabilitySchema = object({
27796
27914
  deviceId: number(),
27797
- ranges: array(RecordingRangeSchema)
27915
+ ranges: array(RecordingRangeSchema),
27916
+ /**
27917
+ * Every profile this camera has footage in — not only the one `ranges`
27918
+ * describes (D433).
27919
+ *
27920
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27921
+ * and enumerating all of them triples the directory reads for a bar that
27922
+ * would look identical. But the answer used to say nothing about that, so a
27923
+ * caller asking "what can I export?" read the single preferred profile as
27924
+ * the only one that exists — on this deployment every camera records `high`
27925
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27926
+ * UI could not see it.
27927
+ *
27928
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27929
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27930
+ */
27931
+ profilesWithFootage: array(string())
27798
27932
  });
27799
27933
  var RecordingDaysSchema = object({
27800
27934
  deviceId: number(),
@@ -27820,7 +27954,11 @@ var RecordingDaysSchema = object({
27820
27954
  var RecordingAvailabilityForDeviceSchema = object({
27821
27955
  deviceId: number(),
27822
27956
  read: _enum(["read", "unreadable"]),
27823
- ranges: array(RecordingRangeSchema).readonly()
27957
+ ranges: array(RecordingRangeSchema).readonly(),
27958
+ /** Same field, same meaning, as the singular answer (D433). A row that
27959
+ * dropped it would tell a grid caller the archive holds one profile.
27960
+ * Empty on an `'unreadable'` row: nobody looked. */
27961
+ profilesWithFootage: array(string()).readonly()
27824
27962
  });
27825
27963
  /**
27826
27964
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -27850,13 +27988,31 @@ var RecordingManifestSchema = object({
27850
27988
  */
27851
27989
  playbackEndpoints: array(string())
27852
27990
  });
27853
- /** Recording storage usage for one camera (bytes on disk across all its
27854
- * profiles/subtrees/locations on this node). */
27991
+ /**
27992
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
27993
+ * across every profile and every resolvable location on this node.
27994
+ *
27995
+ * ## Archive vs residency, which is the whole point of this shape (D418)
27996
+ *
27997
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
27998
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
27999
+ * this camera writes to, so the two can be added up and compared.
28000
+ *
28001
+ * They were not always. Until D418 this row came from the recorder's in-RAM
28002
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
28003
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
28004
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
28005
+ * that said otherwise, and two people read it as retention eating recent
28006
+ * footage. Residency is still reported, under `residentBytes` /
28007
+ * `residentOldestMs`, which answer a different question and say so.
28008
+ */
27855
28009
  var RecordingDeviceUsageSchema = object({
27856
28010
  deviceId: number(),
28011
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
28012
+ * recordings locations. */
27857
28013
  usedBytes: number(),
27858
28014
  /**
27859
- * Start of this camera's OLDEST indexed segment, across every profile and
28015
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27860
28016
  * location — the "Oldest footage" column in Recordings → Storage, and the
27861
28017
  * only honest answer to "is retention actually holding?" per camera.
27862
28018
  *
@@ -27866,7 +28022,24 @@ var RecordingDeviceUsageSchema = object({
27866
28022
  * (types) and the addon ship on different trains, and the addon is usually
27867
28023
  * the later of the two.
27868
28024
  */
27869
- oldestMs: number().nullable().optional()
28025
+ oldestMs: number().nullable().optional(),
28026
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
28027
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
28028
+ segments: number().optional(),
28029
+ /**
28030
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
28031
+ * its RAM index — the live tail plus the hours a reader hydrated.
28032
+ *
28033
+ * It answers "what can be served without touching the disk", never "how much
28034
+ * footage this camera has". A UI that renders it must label it as such, and
28035
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
28036
+ * it, and so does a node whose ledger could not answer.
28037
+ */
28038
+ residentBytes: number().optional(),
28039
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
28040
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
28041
+ * retention. `null` = nothing resident. */
28042
+ residentOldestMs: number().nullable().optional()
27870
28043
  });
27871
28044
  /** Recording storage usage + capacity for one storage location. */
27872
28045
  var RecordingLocationUsageSchema = object({
@@ -27904,6 +28077,17 @@ var RecordingStorageUsageSchema = object({
27904
28077
  totalUsedBytes: number(),
27905
28078
  devices: array(RecordingDeviceUsageSchema),
27906
28079
  /**
28080
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
28081
+ * disks (D418).
28082
+ *
28083
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
28084
+ * declared no ledger and the recorder REFUSED rather than answering the
28085
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
28086
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
28087
+ * and its rows are residency.
28088
+ */
28089
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
28090
+ /**
27907
28091
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27908
28092
  * of the payload without it: the hub serves this method through a BAKED
27909
28093
  * router, so a hub whose framework train predates a change to this array
@@ -28064,7 +28248,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28064
28248
  method(object({
28065
28249
  deviceId: number(),
28066
28250
  fromMs: number(),
28067
- toMs: number()
28251
+ toMs: number(),
28252
+ /**
28253
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28254
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28255
+ * reads. `profilesWithFootage` on the answer says what may be asked
28256
+ * for.
28257
+ */
28258
+ profile: string().optional()
28068
28259
  }), RecordingAvailabilitySchema, {
28069
28260
  kind: "query",
28070
28261
  auth: "protected"
@@ -34291,6 +34482,24 @@ Object.freeze({
34291
34482
  addonId: null,
34292
34483
  access: "view"
34293
34484
  },
34485
+ "pipelineRunner.getParkedTrackFrame": {
34486
+ capName: "pipeline-runner",
34487
+ capScope: "system",
34488
+ addonId: null,
34489
+ access: "view"
34490
+ },
34491
+ "pipelineRunner.parkTrackFrame": {
34492
+ capName: "pipeline-runner",
34493
+ capScope: "system",
34494
+ addonId: null,
34495
+ access: "create"
34496
+ },
34497
+ "pipelineRunner.releaseParkedTrackFrames": {
34498
+ capName: "pipeline-runner",
34499
+ capScope: "system",
34500
+ addonId: null,
34501
+ access: "create"
34502
+ },
34294
34503
  "pipelineRunner.reportMotion": {
34295
34504
  capName: "pipeline-runner",
34296
34505
  capScope: "system",
@@ -37568,6 +37777,21 @@ Object.freeze({
37568
37777
  form: "single",
37569
37778
  optional: false
37570
37779
  }],
37780
+ "pipelineRunner.getParkedTrackFrame": [{
37781
+ name: "deviceId",
37782
+ form: "single",
37783
+ optional: false
37784
+ }],
37785
+ "pipelineRunner.parkTrackFrame": [{
37786
+ name: "deviceId",
37787
+ form: "single",
37788
+ optional: false
37789
+ }],
37790
+ "pipelineRunner.releaseParkedTrackFrames": [{
37791
+ name: "deviceId",
37792
+ form: "single",
37793
+ optional: false
37794
+ }],
37571
37795
  "pipelineRunner.reportMotion": [{
37572
37796
  name: "deviceId",
37573
37797
  form: "single",
@@ -38466,7 +38690,7 @@ var PreviewTextField = string().max(200);
38466
38690
  * Whether the notification's preview is a STILL or a short animation.
38467
38691
  *
38468
38692
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38469
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38693
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38470
38694
  * night reads better as three seconds of motion than as one frame of it. Both
38471
38695
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38472
38696
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -40834,8 +41058,8 @@ function mimeFor(att) {
40834
41058
  /**
40835
41059
  * Resolve the Green API base host. Prefers the operator-supplied per-instance
40836
41060
  * `apiUrl`; when blank, derives a candidate `https://{partition}.api.greenapi.com`
40837
- * from the leading digits of `idInstance` (undocumented convention — see
40838
- * scrypted-greenapi). Throws a clear error if neither is available.
41061
+ * from the leading digits of `idInstance` (undocumented convention).
41062
+ * Throws a clear error if neither is available.
40839
41063
  */
40840
41064
  function greenApiBaseUrl(config, idInstance) {
40841
41065
  const explicit = optionalString(config, "apiUrl", "");
@@ -41182,8 +41406,7 @@ function deliveryType(config, prepared) {
41182
41406
  /**
41183
41407
  * `title` is a REQUIRED, `@MaxLength(100)` backend field — always emit a
41184
41408
  * non-empty, clamped value: the notification title if present, else the body
41185
- * (first 100 chars), else the app-name constant. Mirrors scrypted-zentik, which
41186
- * always forwards the notification `title`.
41409
+ * (first 100 chars), else the app-name constant.
41187
41410
  */
41188
41411
  function titleFor(prepared) {
41189
41412
  return (prepared.title !== void 0 && prepared.title.length > 0 ? prepared.title : prepared.body.length > 0 ? prepared.body : FALLBACK_TITLE).slice(0, TITLE_MAX_LEN);
@@ -41191,7 +41414,7 @@ function titleFor(prepared) {
41191
41414
  /**
41192
41415
  * Optional targeting of specific users of a shared bucket (backend `userIds`,
41193
41416
  * CSV or array of ids/usernames). Empty → omitted (backend defaults to all
41194
- * users). Mirrors scrypted-zentik's `userIds && userIds.length ? userIds : undefined`.
41417
+ * users).
41195
41418
  */
41196
41419
  function userIdsFrom(config) {
41197
41420
  const raw = config["userIds"];
@@ -42021,7 +42244,7 @@ function createMemorySettingsStorePort() {
42021
42244
  * update / remove) so the class is trivially fakeable in unit tests and never
42022
42245
  * depends on the tRPC-shaped `AddonApi`. Rows live in the addonId-namespaced
42023
42246
  * `notification-targets` collection (the `settings-store` cap prefixes the
42024
- * calling addon's id automatically — the store-isolation fix `9513f69f`).
42247
+ * calling addon's id automatically — the store-isolation fix).
42025
42248
  *
42026
42249
  * A row is `{ id, data:{ name, kind, addonId, enabled, config } }`. Secrets are
42027
42250
  * inside `config`; redaction/merge is the provider's concern (`secrets.ts`) —
package/dist/addon.mjs CHANGED
@@ -2,7 +2,7 @@ import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
2
2
  import { readFileSync } from "node:fs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- //#region ../types/dist/event-category-CnLqLOKs.mjs
5
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -594,7 +594,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
594
594
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
595
595
  */
596
596
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
597
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
598
597
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
599
598
  /**
600
599
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -12670,7 +12669,7 @@ DeviceType.Camera;
12670
12669
  var SourceInfoSchema = object({
12671
12670
  /** Live dispatch key — mutable when the source system allows rename. */
12672
12671
  id: string(),
12673
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
12672
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
12674
12673
  system: string(),
12675
12674
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
12676
12675
  * Used to detect rename when `id` changes. */
@@ -13157,7 +13156,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
13157
13156
  * - `device-management.router.ts` (deleted in Phase 2)
13158
13157
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13159
13158
  *
13160
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13159
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
13161
13160
  * fork into separate processes but never run on remote cluster agents. Therefore:
13162
13161
  * - No nodeId routing needed — this is a pure hub singleton.
13163
13162
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -17181,7 +17180,7 @@ var NcRuleInputSchema = object({
17181
17180
  * The measured seven-person arrival on device 590 spans 110 s with every
17182
17181
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
17183
17182
  * idle cutoff holds it as one and ends it when the arrival actually ends.
17184
- * 30 is Frigate's shipped value for the same decision.
17183
+ * 30 s is a widely shipped value for the same decision.
17185
17184
  *
17186
17185
  * ### What it replaces
17187
17186
  *
@@ -19223,6 +19222,13 @@ var ZoneCrossingSchema = object({
19223
19222
  /** Zone display name at crossing time (falls back to the id). */
19224
19223
  zoneName: string().optional()
19225
19224
  });
19225
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
19226
+ var ZoneOverlapSchema = object({
19227
+ zoneId: string(),
19228
+ zoneName: string().optional(),
19229
+ /** Percentage of the BOX area inside the zone, 0–100. */
19230
+ overlapPct: number()
19231
+ });
19226
19232
  var ObjectEventSchema = object({
19227
19233
  ...BaseEventFields,
19228
19234
  kind: literal("object"),
@@ -19247,6 +19253,35 @@ var ObjectEventSchema = object({
19247
19253
  bbox: BoundingBoxSchema.optional(),
19248
19254
  /** Heavy JSON — omitted in slim projection. */
19249
19255
  zones: array(string()).readonly().optional(),
19256
+ /**
19257
+ * How far inside each stamped zone the box actually was, as a percentage of
19258
+ * the BOX area.
19259
+ *
19260
+ * Membership alone cannot express "at least a third of it inside", which is
19261
+ * the bar an operator argues with — and the number already existed: the
19262
+ * engine computed it, the pipeline logged it, and then discarded it. It
19263
+ * matters most on the events that carry no track, where a rule has nothing
19264
+ * else to judge by.
19265
+ */
19266
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
19267
+ /**
19268
+ * Present when this event describes a detection the TRACKER refused, so it
19269
+ * has no track and never will.
19270
+ *
19271
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
19272
+ * NOW?"; tracking answers a different question ("is this the same subject as
19273
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
19274
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
19275
+ * seconds with three different candidate ids — seven analysed frames in the
19276
+ * window, the subject in a handful of them, metres apart — and produced no
19277
+ * event at all.
19278
+ *
19279
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
19280
+ * with no track and no reason is indistinguishable from a track whose media
19281
+ * went missing, and a consumer that asks this one for a best shot or a
19282
+ * history is asking for something that never existed.
19283
+ */
19284
+ spawnRefused: string().optional(),
19250
19285
  /** Omitted in slim projection. */
19251
19286
  state: TrackStateSchema.optional(),
19252
19287
  /**
@@ -19673,7 +19708,17 @@ var EventDensityBucketSchema = object({
19673
19708
  bucketStart: number(),
19674
19709
  motion: number().int(),
19675
19710
  object: number().int(),
19676
- audio: number().int()
19711
+ audio: number().int(),
19712
+ /**
19713
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19714
+ * as opposed to `audio`, which is their COUNT (D431).
19715
+ *
19716
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19717
+ * measured", which is not the same claim as silence, and a lane that cannot
19718
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19719
+ * the count-on-a-level-meter did.
19720
+ */
19721
+ audioDbfs: number().optional()
19677
19722
  });
19678
19723
  /**
19679
19724
  * One camera's row in a `getEventDensityBatch` answer.
@@ -20320,6 +20365,60 @@ var NativeCropResultSchema = object({
20320
20365
  */
20321
20366
  tier: _enum(["native", "ram-fullframe"]).optional()
20322
20367
  });
20368
+ /**
20369
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
20370
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
20371
+ *
20372
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
20373
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
20374
+ * from, and what the detail plane's full-frame rung cuts from.
20375
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
20376
+ * window, cut by the runner at uncapped native resolution.
20377
+ *
20378
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
20379
+ */
20380
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
20381
+ /**
20382
+ * Why a park did NOT happen. Every one is logged on the runner with
20383
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
20384
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
20385
+ * never a reason to retry in a loop.
20386
+ *
20387
+ * - `handle-gone` — the native surface no longer resolves this handle (never
20388
+ * registered, past the lease bound, or the worker released it). `detail`
20389
+ * carries the runner's own miss reason.
20390
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
20391
+ */
20392
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
20393
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
20394
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
20395
+ parked: literal(true),
20396
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
20397
+ nodeId: string(),
20398
+ width: number().int().positive(),
20399
+ height: number().int().positive(),
20400
+ /** JPEG bytes the parcel costs on the node. */
20401
+ bytes: number().int().nonnegative(),
20402
+ /** Whether this park replaced a parcel already held for the key. */
20403
+ replaced: boolean()
20404
+ }), object({
20405
+ parked: literal(false),
20406
+ nodeId: string(),
20407
+ reason: ParkRefusalSchema,
20408
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
20409
+ handleAgeMs: number().nullable(),
20410
+ detail: string().optional()
20411
+ })]);
20412
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
20413
+ var ParkedTrackFrameSchema = object({
20414
+ jpeg: string(),
20415
+ width: number().int().positive(),
20416
+ height: number().int().positive(),
20417
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
20418
+ timestamp: number(),
20419
+ /** When the node stored it (the node's clock). */
20420
+ parkedAt: number()
20421
+ });
20323
20422
  /** Parent detection context passed to `runDetailSubtree` — the crop's
20324
20423
  * originating detection, in FRAME-space coordinates. Reuses
20325
20424
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -20709,7 +20808,7 @@ var RunnerCameraConfigSchema = object({
20709
20808
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
20710
20809
  * analyzer providers) running on decoded frames in this runner.
20711
20810
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
20712
- * analytics, Frigate motion). The provider emits ProviderMotion
20811
+ * analytics). The provider emits ProviderMotion
20713
20812
  * events; the orchestrator forwards to `reportMotion`.
20714
20813
  */
20715
20814
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -20951,7 +21050,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
20951
21050
  className: string(),
20952
21051
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
20953
21052
  sourceDeviceId: number()
20954
- }), RunStatelessStepResultSchema, { kind: "mutation" });
21053
+ }), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
21054
+ deviceId: number(),
21055
+ /** Opaque to the runner — the hub's track id. */
21056
+ trackId: string(),
21057
+ kind: ParkedFrameKindSchema,
21058
+ handle: FrameHandleSchema,
21059
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
21060
+ bbox: NativeCropBboxSchema,
21061
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
21062
+ maxWidth: number().int().positive().optional(),
21063
+ /** The frame instant (caller's clock) — orders parks for one key. */
21064
+ timestamp: number()
21065
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
21066
+ deviceId: number(),
21067
+ trackId: string(),
21068
+ kind: ParkedFrameKindSchema
21069
+ }), ParkedTrackFrameSchema.nullable()), method(object({
21070
+ deviceId: number(),
21071
+ trackId: string()
21072
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" });
20955
21073
  var CameraPipelineConfigSchema = object({
20956
21074
  engine: PipelineEngineChoiceSchema.optional(),
20957
21075
  steps: array(PipelineStepInputSchema).readonly(),
@@ -23880,7 +23998,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
23880
23998
  *
23881
23999
  * Implementations:
23882
24000
  * - Each camera-providing addon registers this cap natively per
23883
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
24001
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
23884
24002
  * - Returns a snapshot from the persisted device config blob — no
23885
24003
  * extra round-trip to the camera, no probing.
23886
24004
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -25266,7 +25384,7 @@ var AvailableIntegrationTypeSchema = object({
25266
25384
  * Which integration-marker cap the addon declared, so the wizard can
25267
25385
  * branch on CAP — never on addon name. `device-adoption` integrations
25268
25386
  * (Home Assistant, …) route through the broker step (Approach A);
25269
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
25387
+ * `device-provider` integrations (Reolink/ONVIF) keep the
25270
25388
  * legacy config → discovery flow.
25271
25389
  */
25272
25390
  kind: _enum(["device-adoption", "device-provider"]),
@@ -27767,7 +27885,23 @@ var RecordingRangeSchema = object({
27767
27885
  });
27768
27886
  var RecordingAvailabilitySchema = object({
27769
27887
  deviceId: number(),
27770
- ranges: array(RecordingRangeSchema)
27888
+ ranges: array(RecordingRangeSchema),
27889
+ /**
27890
+ * Every profile this camera has footage in — not only the one `ranges`
27891
+ * describes (D433).
27892
+ *
27893
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
27894
+ * and enumerating all of them triples the directory reads for a bar that
27895
+ * would look identical. But the answer used to say nothing about that, so a
27896
+ * caller asking "what can I export?" read the single preferred profile as
27897
+ * the only one that exists — on this deployment every camera records `high`
27898
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
27899
+ * UI could not see it.
27900
+ *
27901
+ * Cheap: it is the same shallow directory read the profile CHOICE already
27902
+ * makes. Ask for a specific profile's ranges with the `profile` input.
27903
+ */
27904
+ profilesWithFootage: array(string())
27771
27905
  });
27772
27906
  var RecordingDaysSchema = object({
27773
27907
  deviceId: number(),
@@ -27793,7 +27927,11 @@ var RecordingDaysSchema = object({
27793
27927
  var RecordingAvailabilityForDeviceSchema = object({
27794
27928
  deviceId: number(),
27795
27929
  read: _enum(["read", "unreadable"]),
27796
- ranges: array(RecordingRangeSchema).readonly()
27930
+ ranges: array(RecordingRangeSchema).readonly(),
27931
+ /** Same field, same meaning, as the singular answer (D433). A row that
27932
+ * dropped it would tell a grid caller the archive holds one profile.
27933
+ * Empty on an `'unreadable'` row: nobody looked. */
27934
+ profilesWithFootage: array(string()).readonly()
27797
27935
  });
27798
27936
  /**
27799
27937
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -27823,13 +27961,31 @@ var RecordingManifestSchema = object({
27823
27961
  */
27824
27962
  playbackEndpoints: array(string())
27825
27963
  });
27826
- /** Recording storage usage for one camera (bytes on disk across all its
27827
- * profiles/subtrees/locations on this node). */
27964
+ /**
27965
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
27966
+ * across every profile and every resolvable location on this node.
27967
+ *
27968
+ * ## Archive vs residency, which is the whole point of this shape (D418)
27969
+ *
27970
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
27971
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
27972
+ * this camera writes to, so the two can be added up and compared.
27973
+ *
27974
+ * They were not always. Until D418 this row came from the recorder's in-RAM
27975
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
27976
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
27977
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
27978
+ * that said otherwise, and two people read it as retention eating recent
27979
+ * footage. Residency is still reported, under `residentBytes` /
27980
+ * `residentOldestMs`, which answer a different question and say so.
27981
+ */
27828
27982
  var RecordingDeviceUsageSchema = object({
27829
27983
  deviceId: number(),
27984
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
27985
+ * recordings locations. */
27830
27986
  usedBytes: number(),
27831
27987
  /**
27832
- * Start of this camera's OLDEST indexed segment, across every profile and
27988
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
27833
27989
  * location — the "Oldest footage" column in Recordings → Storage, and the
27834
27990
  * only honest answer to "is retention actually holding?" per camera.
27835
27991
  *
@@ -27839,7 +27995,24 @@ var RecordingDeviceUsageSchema = object({
27839
27995
  * (types) and the addon ship on different trains, and the addon is usually
27840
27996
  * the later of the two.
27841
27997
  */
27842
- oldestMs: number().nullable().optional()
27998
+ oldestMs: number().nullable().optional(),
27999
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
28000
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
28001
+ segments: number().optional(),
28002
+ /**
28003
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
28004
+ * its RAM index — the live tail plus the hours a reader hydrated.
28005
+ *
28006
+ * It answers "what can be served without touching the disk", never "how much
28007
+ * footage this camera has". A UI that renders it must label it as such, and
28008
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
28009
+ * it, and so does a node whose ledger could not answer.
28010
+ */
28011
+ residentBytes: number().optional(),
28012
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
28013
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
28014
+ * retention. `null` = nothing resident. */
28015
+ residentOldestMs: number().nullable().optional()
27843
28016
  });
27844
28017
  /** Recording storage usage + capacity for one storage location. */
27845
28018
  var RecordingLocationUsageSchema = object({
@@ -27877,6 +28050,17 @@ var RecordingStorageUsageSchema = object({
27877
28050
  totalUsedBytes: number(),
27878
28051
  devices: array(RecordingDeviceUsageSchema),
27879
28052
  /**
28053
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
28054
+ * disks (D418).
28055
+ *
28056
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
28057
+ * declared no ledger and the recorder REFUSED rather than answering the
28058
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
28059
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
28060
+ * and its rows are residency.
28061
+ */
28062
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
28063
+ /**
27880
28064
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
27881
28065
  * of the payload without it: the hub serves this method through a BAKED
27882
28066
  * router, so a hub whose framework train predates a change to this array
@@ -28037,7 +28221,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
28037
28221
  method(object({
28038
28222
  deviceId: number(),
28039
28223
  fromMs: number(),
28040
- toMs: number()
28224
+ toMs: number(),
28225
+ /**
28226
+ * Answer for THIS profile instead of the preferred one (D433). Absent
28227
+ * keeps the timeline's behaviour — one bar, one profile, one set of
28228
+ * reads. `profilesWithFootage` on the answer says what may be asked
28229
+ * for.
28230
+ */
28231
+ profile: string().optional()
28041
28232
  }), RecordingAvailabilitySchema, {
28042
28233
  kind: "query",
28043
28234
  auth: "protected"
@@ -34264,6 +34455,24 @@ Object.freeze({
34264
34455
  addonId: null,
34265
34456
  access: "view"
34266
34457
  },
34458
+ "pipelineRunner.getParkedTrackFrame": {
34459
+ capName: "pipeline-runner",
34460
+ capScope: "system",
34461
+ addonId: null,
34462
+ access: "view"
34463
+ },
34464
+ "pipelineRunner.parkTrackFrame": {
34465
+ capName: "pipeline-runner",
34466
+ capScope: "system",
34467
+ addonId: null,
34468
+ access: "create"
34469
+ },
34470
+ "pipelineRunner.releaseParkedTrackFrames": {
34471
+ capName: "pipeline-runner",
34472
+ capScope: "system",
34473
+ addonId: null,
34474
+ access: "create"
34475
+ },
34267
34476
  "pipelineRunner.reportMotion": {
34268
34477
  capName: "pipeline-runner",
34269
34478
  capScope: "system",
@@ -37541,6 +37750,21 @@ Object.freeze({
37541
37750
  form: "single",
37542
37751
  optional: false
37543
37752
  }],
37753
+ "pipelineRunner.getParkedTrackFrame": [{
37754
+ name: "deviceId",
37755
+ form: "single",
37756
+ optional: false
37757
+ }],
37758
+ "pipelineRunner.parkTrackFrame": [{
37759
+ name: "deviceId",
37760
+ form: "single",
37761
+ optional: false
37762
+ }],
37763
+ "pipelineRunner.releaseParkedTrackFrames": [{
37764
+ name: "deviceId",
37765
+ form: "single",
37766
+ optional: false
37767
+ }],
37544
37768
  "pipelineRunner.reportMotion": [{
37545
37769
  name: "deviceId",
37546
37770
  form: "single",
@@ -38439,7 +38663,7 @@ var PreviewTextField = string().max(200);
38439
38663
  * Whether the notification's preview is a STILL or a short animation.
38440
38664
  *
38441
38665
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
38442
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
38666
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
38443
38667
  * night reads better as three seconds of motion than as one frame of it. Both
38444
38668
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
38445
38669
  * simply applies it to a dozen frames sampled across the render and assembles
@@ -40807,8 +41031,8 @@ function mimeFor(att) {
40807
41031
  /**
40808
41032
  * Resolve the Green API base host. Prefers the operator-supplied per-instance
40809
41033
  * `apiUrl`; when blank, derives a candidate `https://{partition}.api.greenapi.com`
40810
- * from the leading digits of `idInstance` (undocumented convention — see
40811
- * scrypted-greenapi). Throws a clear error if neither is available.
41034
+ * from the leading digits of `idInstance` (undocumented convention).
41035
+ * Throws a clear error if neither is available.
40812
41036
  */
40813
41037
  function greenApiBaseUrl(config, idInstance) {
40814
41038
  const explicit = optionalString(config, "apiUrl", "");
@@ -41155,8 +41379,7 @@ function deliveryType(config, prepared) {
41155
41379
  /**
41156
41380
  * `title` is a REQUIRED, `@MaxLength(100)` backend field — always emit a
41157
41381
  * non-empty, clamped value: the notification title if present, else the body
41158
- * (first 100 chars), else the app-name constant. Mirrors scrypted-zentik, which
41159
- * always forwards the notification `title`.
41382
+ * (first 100 chars), else the app-name constant.
41160
41383
  */
41161
41384
  function titleFor(prepared) {
41162
41385
  return (prepared.title !== void 0 && prepared.title.length > 0 ? prepared.title : prepared.body.length > 0 ? prepared.body : FALLBACK_TITLE).slice(0, TITLE_MAX_LEN);
@@ -41164,7 +41387,7 @@ function titleFor(prepared) {
41164
41387
  /**
41165
41388
  * Optional targeting of specific users of a shared bucket (backend `userIds`,
41166
41389
  * CSV or array of ids/usernames). Empty → omitted (backend defaults to all
41167
- * users). Mirrors scrypted-zentik's `userIds && userIds.length ? userIds : undefined`.
41390
+ * users).
41168
41391
  */
41169
41392
  function userIdsFrom(config) {
41170
41393
  const raw = config["userIds"];
@@ -41994,7 +42217,7 @@ function createMemorySettingsStorePort() {
41994
42217
  * update / remove) so the class is trivially fakeable in unit tests and never
41995
42218
  * depends on the tRPC-shaped `AddonApi`. Rows live in the addonId-namespaced
41996
42219
  * `notification-targets` collection (the `settings-store` cap prefixes the
41997
- * calling addon's id automatically — the store-isolation fix `9513f69f`).
42220
+ * calling addon's id automatically — the store-isolation fix).
41998
42221
  *
41999
42222
  * A row is `{ id, data:{ name, kind, addonId, enabled, config } }`. Secrets are
42000
42223
  * inside `config`; redaction/merge is the provider's concern (`secrets.ts`) —
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.94",
3
+ "version": "1.2.97",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",