@camstack/addon-notifiers 1.2.93 → 1.2.96
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.
- package/dist/addon.js +206 -20
- package/dist/addon.mjs +206 -20
- 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-
|
|
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' | '
|
|
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,
|
|
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
|
|
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
|
/**
|
|
@@ -20347,6 +20382,60 @@ var NativeCropResultSchema = object({
|
|
|
20347
20382
|
*/
|
|
20348
20383
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20349
20384
|
});
|
|
20385
|
+
/**
|
|
20386
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20387
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20388
|
+
*
|
|
20389
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20390
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20391
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20392
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20393
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20394
|
+
*
|
|
20395
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20396
|
+
*/
|
|
20397
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20398
|
+
/**
|
|
20399
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20400
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20401
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20402
|
+
* never a reason to retry in a loop.
|
|
20403
|
+
*
|
|
20404
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20405
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20406
|
+
* carries the runner's own miss reason.
|
|
20407
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20408
|
+
*/
|
|
20409
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20410
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20411
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20412
|
+
parked: literal(true),
|
|
20413
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20414
|
+
nodeId: string(),
|
|
20415
|
+
width: number().int().positive(),
|
|
20416
|
+
height: number().int().positive(),
|
|
20417
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20418
|
+
bytes: number().int().nonnegative(),
|
|
20419
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20420
|
+
replaced: boolean()
|
|
20421
|
+
}), object({
|
|
20422
|
+
parked: literal(false),
|
|
20423
|
+
nodeId: string(),
|
|
20424
|
+
reason: ParkRefusalSchema,
|
|
20425
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20426
|
+
handleAgeMs: number().nullable(),
|
|
20427
|
+
detail: string().optional()
|
|
20428
|
+
})]);
|
|
20429
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20430
|
+
var ParkedTrackFrameSchema = object({
|
|
20431
|
+
jpeg: string(),
|
|
20432
|
+
width: number().int().positive(),
|
|
20433
|
+
height: number().int().positive(),
|
|
20434
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20435
|
+
timestamp: number(),
|
|
20436
|
+
/** When the node stored it (the node's clock). */
|
|
20437
|
+
parkedAt: number()
|
|
20438
|
+
});
|
|
20350
20439
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20351
20440
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20352
20441
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20736,7 +20825,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20736
20825
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20737
20826
|
* analyzer providers) running on decoded frames in this runner.
|
|
20738
20827
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20739
|
-
* analytics
|
|
20828
|
+
* analytics). The provider emits ProviderMotion
|
|
20740
20829
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20741
20830
|
*/
|
|
20742
20831
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20978,7 +21067,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20978
21067
|
className: string(),
|
|
20979
21068
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20980
21069
|
sourceDeviceId: number()
|
|
20981
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21070
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21071
|
+
deviceId: number(),
|
|
21072
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21073
|
+
trackId: string(),
|
|
21074
|
+
kind: ParkedFrameKindSchema,
|
|
21075
|
+
handle: FrameHandleSchema,
|
|
21076
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21077
|
+
bbox: NativeCropBboxSchema,
|
|
21078
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21079
|
+
maxWidth: number().int().positive().optional(),
|
|
21080
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21081
|
+
timestamp: number()
|
|
21082
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21083
|
+
deviceId: number(),
|
|
21084
|
+
trackId: string(),
|
|
21085
|
+
kind: ParkedFrameKindSchema
|
|
21086
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21087
|
+
deviceId: number(),
|
|
21088
|
+
trackId: string()
|
|
21089
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20982
21090
|
var CameraPipelineConfigSchema = object({
|
|
20983
21091
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20984
21092
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23907,7 +24015,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23907
24015
|
*
|
|
23908
24016
|
* Implementations:
|
|
23909
24017
|
* - Each camera-providing addon registers this cap natively per
|
|
23910
|
-
* device (Reolink, Hikvision, RTSP,
|
|
24018
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23911
24019
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23912
24020
|
* extra round-trip to the camera, no probing.
|
|
23913
24021
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25293,7 +25401,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25293
25401
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25294
25402
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25295
25403
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25296
|
-
* `device-provider` integrations (Reolink/
|
|
25404
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25297
25405
|
* legacy config → discovery flow.
|
|
25298
25406
|
*/
|
|
25299
25407
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27850,13 +27958,31 @@ var RecordingManifestSchema = object({
|
|
|
27850
27958
|
*/
|
|
27851
27959
|
playbackEndpoints: array(string())
|
|
27852
27960
|
});
|
|
27853
|
-
/**
|
|
27854
|
-
*
|
|
27961
|
+
/**
|
|
27962
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27963
|
+
* across every profile and every resolvable location on this node.
|
|
27964
|
+
*
|
|
27965
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27966
|
+
*
|
|
27967
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27968
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27969
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27970
|
+
*
|
|
27971
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27972
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27973
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27974
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27975
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27976
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27977
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27978
|
+
*/
|
|
27855
27979
|
var RecordingDeviceUsageSchema = object({
|
|
27856
27980
|
deviceId: number(),
|
|
27981
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27982
|
+
* recordings locations. */
|
|
27857
27983
|
usedBytes: number(),
|
|
27858
27984
|
/**
|
|
27859
|
-
* Start of this camera's OLDEST
|
|
27985
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27860
27986
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27861
27987
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27862
27988
|
*
|
|
@@ -27866,7 +27992,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27866
27992
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27867
27993
|
* the later of the two.
|
|
27868
27994
|
*/
|
|
27869
|
-
oldestMs: number().nullable().optional()
|
|
27995
|
+
oldestMs: number().nullable().optional(),
|
|
27996
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27997
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27998
|
+
segments: number().optional(),
|
|
27999
|
+
/**
|
|
28000
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
28001
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
28002
|
+
*
|
|
28003
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
28004
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
28005
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
28006
|
+
* it, and so does a node whose ledger could not answer.
|
|
28007
|
+
*/
|
|
28008
|
+
residentBytes: number().optional(),
|
|
28009
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
28010
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
28011
|
+
* retention. `null` = nothing resident. */
|
|
28012
|
+
residentOldestMs: number().nullable().optional()
|
|
27870
28013
|
});
|
|
27871
28014
|
/** Recording storage usage + capacity for one storage location. */
|
|
27872
28015
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27904,6 +28047,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27904
28047
|
totalUsedBytes: number(),
|
|
27905
28048
|
devices: array(RecordingDeviceUsageSchema),
|
|
27906
28049
|
/**
|
|
28050
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28051
|
+
* disks (D418).
|
|
28052
|
+
*
|
|
28053
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28054
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28055
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28056
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28057
|
+
* and its rows are residency.
|
|
28058
|
+
*/
|
|
28059
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28060
|
+
/**
|
|
27907
28061
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27908
28062
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27909
28063
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -34291,6 +34445,24 @@ Object.freeze({
|
|
|
34291
34445
|
addonId: null,
|
|
34292
34446
|
access: "view"
|
|
34293
34447
|
},
|
|
34448
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34449
|
+
capName: "pipeline-runner",
|
|
34450
|
+
capScope: "system",
|
|
34451
|
+
addonId: null,
|
|
34452
|
+
access: "view"
|
|
34453
|
+
},
|
|
34454
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34455
|
+
capName: "pipeline-runner",
|
|
34456
|
+
capScope: "system",
|
|
34457
|
+
addonId: null,
|
|
34458
|
+
access: "create"
|
|
34459
|
+
},
|
|
34460
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34461
|
+
capName: "pipeline-runner",
|
|
34462
|
+
capScope: "system",
|
|
34463
|
+
addonId: null,
|
|
34464
|
+
access: "create"
|
|
34465
|
+
},
|
|
34294
34466
|
"pipelineRunner.reportMotion": {
|
|
34295
34467
|
capName: "pipeline-runner",
|
|
34296
34468
|
capScope: "system",
|
|
@@ -37568,6 +37740,21 @@ Object.freeze({
|
|
|
37568
37740
|
form: "single",
|
|
37569
37741
|
optional: false
|
|
37570
37742
|
}],
|
|
37743
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37744
|
+
name: "deviceId",
|
|
37745
|
+
form: "single",
|
|
37746
|
+
optional: false
|
|
37747
|
+
}],
|
|
37748
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37749
|
+
name: "deviceId",
|
|
37750
|
+
form: "single",
|
|
37751
|
+
optional: false
|
|
37752
|
+
}],
|
|
37753
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37754
|
+
name: "deviceId",
|
|
37755
|
+
form: "single",
|
|
37756
|
+
optional: false
|
|
37757
|
+
}],
|
|
37571
37758
|
"pipelineRunner.reportMotion": [{
|
|
37572
37759
|
name: "deviceId",
|
|
37573
37760
|
form: "single",
|
|
@@ -38466,7 +38653,7 @@ var PreviewTextField = string().max(200);
|
|
|
38466
38653
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38467
38654
|
*
|
|
38468
38655
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38469
|
-
* rule)"* —
|
|
38656
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38470
38657
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38471
38658
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38472
38659
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -40834,8 +41021,8 @@ function mimeFor(att) {
|
|
|
40834
41021
|
/**
|
|
40835
41022
|
* Resolve the Green API base host. Prefers the operator-supplied per-instance
|
|
40836
41023
|
* `apiUrl`; when blank, derives a candidate `https://{partition}.api.greenapi.com`
|
|
40837
|
-
* from the leading digits of `idInstance` (undocumented convention
|
|
40838
|
-
*
|
|
41024
|
+
* from the leading digits of `idInstance` (undocumented convention).
|
|
41025
|
+
* Throws a clear error if neither is available.
|
|
40839
41026
|
*/
|
|
40840
41027
|
function greenApiBaseUrl(config, idInstance) {
|
|
40841
41028
|
const explicit = optionalString(config, "apiUrl", "");
|
|
@@ -41182,8 +41369,7 @@ function deliveryType(config, prepared) {
|
|
|
41182
41369
|
/**
|
|
41183
41370
|
* `title` is a REQUIRED, `@MaxLength(100)` backend field — always emit a
|
|
41184
41371
|
* non-empty, clamped value: the notification title if present, else the body
|
|
41185
|
-
* (first 100 chars), else the app-name constant.
|
|
41186
|
-
* always forwards the notification `title`.
|
|
41372
|
+
* (first 100 chars), else the app-name constant.
|
|
41187
41373
|
*/
|
|
41188
41374
|
function titleFor(prepared) {
|
|
41189
41375
|
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 +41377,7 @@ function titleFor(prepared) {
|
|
|
41191
41377
|
/**
|
|
41192
41378
|
* Optional targeting of specific users of a shared bucket (backend `userIds`,
|
|
41193
41379
|
* CSV or array of ids/usernames). Empty → omitted (backend defaults to all
|
|
41194
|
-
* users).
|
|
41380
|
+
* users).
|
|
41195
41381
|
*/
|
|
41196
41382
|
function userIdsFrom(config) {
|
|
41197
41383
|
const raw = config["userIds"];
|
|
@@ -42021,7 +42207,7 @@ function createMemorySettingsStorePort() {
|
|
|
42021
42207
|
* update / remove) so the class is trivially fakeable in unit tests and never
|
|
42022
42208
|
* depends on the tRPC-shaped `AddonApi`. Rows live in the addonId-namespaced
|
|
42023
42209
|
* `notification-targets` collection (the `settings-store` cap prefixes the
|
|
42024
|
-
* calling addon's id automatically — the store-isolation fix
|
|
42210
|
+
* calling addon's id automatically — the store-isolation fix).
|
|
42025
42211
|
*
|
|
42026
42212
|
* A row is `{ id, data:{ name, kind, addonId, enabled, config } }`. Secrets are
|
|
42027
42213
|
* 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-
|
|
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' | '
|
|
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,
|
|
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
|
|
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
|
/**
|
|
@@ -20320,6 +20355,60 @@ var NativeCropResultSchema = object({
|
|
|
20320
20355
|
*/
|
|
20321
20356
|
tier: _enum(["native", "ram-fullframe"]).optional()
|
|
20322
20357
|
});
|
|
20358
|
+
/**
|
|
20359
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20360
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20361
|
+
*
|
|
20362
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20363
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20364
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20365
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20366
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20367
|
+
*
|
|
20368
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20369
|
+
*/
|
|
20370
|
+
var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
|
|
20371
|
+
/**
|
|
20372
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20373
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20374
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20375
|
+
* never a reason to retry in a loop.
|
|
20376
|
+
*
|
|
20377
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20378
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20379
|
+
* carries the runner's own miss reason.
|
|
20380
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20381
|
+
*/
|
|
20382
|
+
var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
|
|
20383
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20384
|
+
var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
20385
|
+
parked: literal(true),
|
|
20386
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20387
|
+
nodeId: string(),
|
|
20388
|
+
width: number().int().positive(),
|
|
20389
|
+
height: number().int().positive(),
|
|
20390
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20391
|
+
bytes: number().int().nonnegative(),
|
|
20392
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20393
|
+
replaced: boolean()
|
|
20394
|
+
}), object({
|
|
20395
|
+
parked: literal(false),
|
|
20396
|
+
nodeId: string(),
|
|
20397
|
+
reason: ParkRefusalSchema,
|
|
20398
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20399
|
+
handleAgeMs: number().nullable(),
|
|
20400
|
+
detail: string().optional()
|
|
20401
|
+
})]);
|
|
20402
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20403
|
+
var ParkedTrackFrameSchema = object({
|
|
20404
|
+
jpeg: string(),
|
|
20405
|
+
width: number().int().positive(),
|
|
20406
|
+
height: number().int().positive(),
|
|
20407
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20408
|
+
timestamp: number(),
|
|
20409
|
+
/** When the node stored it (the node's clock). */
|
|
20410
|
+
parkedAt: number()
|
|
20411
|
+
});
|
|
20323
20412
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20324
20413
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20325
20414
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20709,7 +20798,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20709
20798
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20710
20799
|
* analyzer providers) running on decoded frames in this runner.
|
|
20711
20800
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20712
|
-
* analytics
|
|
20801
|
+
* analytics). The provider emits ProviderMotion
|
|
20713
20802
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20714
20803
|
*/
|
|
20715
20804
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20951,7 +21040,26 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20951
21040
|
className: string(),
|
|
20952
21041
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20953
21042
|
sourceDeviceId: number()
|
|
20954
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21043
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }), method(object({
|
|
21044
|
+
deviceId: number(),
|
|
21045
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21046
|
+
trackId: string(),
|
|
21047
|
+
kind: ParkedFrameKindSchema,
|
|
21048
|
+
handle: FrameHandleSchema,
|
|
21049
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21050
|
+
bbox: NativeCropBboxSchema,
|
|
21051
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21052
|
+
maxWidth: number().int().positive().optional(),
|
|
21053
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21054
|
+
timestamp: number()
|
|
21055
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21056
|
+
deviceId: number(),
|
|
21057
|
+
trackId: string(),
|
|
21058
|
+
kind: ParkedFrameKindSchema
|
|
21059
|
+
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21060
|
+
deviceId: number(),
|
|
21061
|
+
trackId: string()
|
|
21062
|
+
}), object({ released: number().int().nonnegative() }), { kind: "mutation" });
|
|
20955
21063
|
var CameraPipelineConfigSchema = object({
|
|
20956
21064
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
20957
21065
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -23880,7 +23988,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
|
|
|
23880
23988
|
*
|
|
23881
23989
|
* Implementations:
|
|
23882
23990
|
* - Each camera-providing addon registers this cap natively per
|
|
23883
|
-
* device (Reolink, Hikvision, RTSP,
|
|
23991
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
23884
23992
|
* - Returns a snapshot from the persisted device config blob — no
|
|
23885
23993
|
* extra round-trip to the camera, no probing.
|
|
23886
23994
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -25266,7 +25374,7 @@ var AvailableIntegrationTypeSchema = object({
|
|
|
25266
25374
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
25267
25375
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
25268
25376
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
25269
|
-
* `device-provider` integrations (Reolink/
|
|
25377
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
25270
25378
|
* legacy config → discovery flow.
|
|
25271
25379
|
*/
|
|
25272
25380
|
kind: _enum(["device-adoption", "device-provider"]),
|
|
@@ -27823,13 +27931,31 @@ var RecordingManifestSchema = object({
|
|
|
27823
27931
|
*/
|
|
27824
27932
|
playbackEndpoints: array(string())
|
|
27825
27933
|
});
|
|
27826
|
-
/**
|
|
27827
|
-
*
|
|
27934
|
+
/**
|
|
27935
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
27936
|
+
* across every profile and every resolvable location on this node.
|
|
27937
|
+
*
|
|
27938
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
27939
|
+
*
|
|
27940
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
27941
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
27942
|
+
* this camera writes to, so the two can be added up and compared.
|
|
27943
|
+
*
|
|
27944
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
27945
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
27946
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
27947
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
27948
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
27949
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
27950
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
27951
|
+
*/
|
|
27828
27952
|
var RecordingDeviceUsageSchema = object({
|
|
27829
27953
|
deviceId: number(),
|
|
27954
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
27955
|
+
* recordings locations. */
|
|
27830
27956
|
usedBytes: number(),
|
|
27831
27957
|
/**
|
|
27832
|
-
* Start of this camera's OLDEST
|
|
27958
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
27833
27959
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
27834
27960
|
* only honest answer to "is retention actually holding?" per camera.
|
|
27835
27961
|
*
|
|
@@ -27839,7 +27965,24 @@ var RecordingDeviceUsageSchema = object({
|
|
|
27839
27965
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
27840
27966
|
* the later of the two.
|
|
27841
27967
|
*/
|
|
27842
|
-
oldestMs: number().nullable().optional()
|
|
27968
|
+
oldestMs: number().nullable().optional(),
|
|
27969
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
27970
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
27971
|
+
segments: number().optional(),
|
|
27972
|
+
/**
|
|
27973
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
27974
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
27975
|
+
*
|
|
27976
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
27977
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
27978
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
27979
|
+
* it, and so does a node whose ledger could not answer.
|
|
27980
|
+
*/
|
|
27981
|
+
residentBytes: number().optional(),
|
|
27982
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
27983
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
27984
|
+
* retention. `null` = nothing resident. */
|
|
27985
|
+
residentOldestMs: number().nullable().optional()
|
|
27843
27986
|
});
|
|
27844
27987
|
/** Recording storage usage + capacity for one storage location. */
|
|
27845
27988
|
var RecordingLocationUsageSchema = object({
|
|
@@ -27877,6 +28020,17 @@ var RecordingStorageUsageSchema = object({
|
|
|
27877
28020
|
totalUsedBytes: number(),
|
|
27878
28021
|
devices: array(RecordingDeviceUsageSchema),
|
|
27879
28022
|
/**
|
|
28023
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
28024
|
+
* disks (D418).
|
|
28025
|
+
*
|
|
28026
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
28027
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
28028
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
28029
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
28030
|
+
* and its rows are residency.
|
|
28031
|
+
*/
|
|
28032
|
+
devicesRead: _enum(["archive", "unavailable"]).optional(),
|
|
28033
|
+
/**
|
|
27880
28034
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27881
28035
|
* of the payload without it: the hub serves this method through a BAKED
|
|
27882
28036
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -34264,6 +34418,24 @@ Object.freeze({
|
|
|
34264
34418
|
addonId: null,
|
|
34265
34419
|
access: "view"
|
|
34266
34420
|
},
|
|
34421
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
34422
|
+
capName: "pipeline-runner",
|
|
34423
|
+
capScope: "system",
|
|
34424
|
+
addonId: null,
|
|
34425
|
+
access: "view"
|
|
34426
|
+
},
|
|
34427
|
+
"pipelineRunner.parkTrackFrame": {
|
|
34428
|
+
capName: "pipeline-runner",
|
|
34429
|
+
capScope: "system",
|
|
34430
|
+
addonId: null,
|
|
34431
|
+
access: "create"
|
|
34432
|
+
},
|
|
34433
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
34434
|
+
capName: "pipeline-runner",
|
|
34435
|
+
capScope: "system",
|
|
34436
|
+
addonId: null,
|
|
34437
|
+
access: "create"
|
|
34438
|
+
},
|
|
34267
34439
|
"pipelineRunner.reportMotion": {
|
|
34268
34440
|
capName: "pipeline-runner",
|
|
34269
34441
|
capScope: "system",
|
|
@@ -37541,6 +37713,21 @@ Object.freeze({
|
|
|
37541
37713
|
form: "single",
|
|
37542
37714
|
optional: false
|
|
37543
37715
|
}],
|
|
37716
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
37717
|
+
name: "deviceId",
|
|
37718
|
+
form: "single",
|
|
37719
|
+
optional: false
|
|
37720
|
+
}],
|
|
37721
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
37722
|
+
name: "deviceId",
|
|
37723
|
+
form: "single",
|
|
37724
|
+
optional: false
|
|
37725
|
+
}],
|
|
37726
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
37727
|
+
name: "deviceId",
|
|
37728
|
+
form: "single",
|
|
37729
|
+
optional: false
|
|
37730
|
+
}],
|
|
37544
37731
|
"pipelineRunner.reportMotion": [{
|
|
37545
37732
|
name: "deviceId",
|
|
37546
37733
|
form: "single",
|
|
@@ -38439,7 +38626,7 @@ var PreviewTextField = string().max(200);
|
|
|
38439
38626
|
* Whether the notification's preview is a STILL or a short animation.
|
|
38440
38627
|
*
|
|
38441
38628
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
38442
|
-
* rule)"* —
|
|
38629
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
38443
38630
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
38444
38631
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
38445
38632
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -40807,8 +40994,8 @@ function mimeFor(att) {
|
|
|
40807
40994
|
/**
|
|
40808
40995
|
* Resolve the Green API base host. Prefers the operator-supplied per-instance
|
|
40809
40996
|
* `apiUrl`; when blank, derives a candidate `https://{partition}.api.greenapi.com`
|
|
40810
|
-
* from the leading digits of `idInstance` (undocumented convention
|
|
40811
|
-
*
|
|
40997
|
+
* from the leading digits of `idInstance` (undocumented convention).
|
|
40998
|
+
* Throws a clear error if neither is available.
|
|
40812
40999
|
*/
|
|
40813
41000
|
function greenApiBaseUrl(config, idInstance) {
|
|
40814
41001
|
const explicit = optionalString(config, "apiUrl", "");
|
|
@@ -41155,8 +41342,7 @@ function deliveryType(config, prepared) {
|
|
|
41155
41342
|
/**
|
|
41156
41343
|
* `title` is a REQUIRED, `@MaxLength(100)` backend field — always emit a
|
|
41157
41344
|
* non-empty, clamped value: the notification title if present, else the body
|
|
41158
|
-
* (first 100 chars), else the app-name constant.
|
|
41159
|
-
* always forwards the notification `title`.
|
|
41345
|
+
* (first 100 chars), else the app-name constant.
|
|
41160
41346
|
*/
|
|
41161
41347
|
function titleFor(prepared) {
|
|
41162
41348
|
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 +41350,7 @@ function titleFor(prepared) {
|
|
|
41164
41350
|
/**
|
|
41165
41351
|
* Optional targeting of specific users of a shared bucket (backend `userIds`,
|
|
41166
41352
|
* CSV or array of ids/usernames). Empty → omitted (backend defaults to all
|
|
41167
|
-
* users).
|
|
41353
|
+
* users).
|
|
41168
41354
|
*/
|
|
41169
41355
|
function userIdsFrom(config) {
|
|
41170
41356
|
const raw = config["userIds"];
|
|
@@ -41994,7 +42180,7 @@ function createMemorySettingsStorePort() {
|
|
|
41994
42180
|
* update / remove) so the class is trivially fakeable in unit tests and never
|
|
41995
42181
|
* depends on the tRPC-shaped `AddonApi`. Rows live in the addonId-namespaced
|
|
41996
42182
|
* `notification-targets` collection (the `settings-store` cap prefixes the
|
|
41997
|
-
* calling addon's id automatically — the store-isolation fix
|
|
42183
|
+
* calling addon's id automatically — the store-isolation fix).
|
|
41998
42184
|
*
|
|
41999
42185
|
* A row is `{ id, data:{ name, kind, addonId, enabled, config } }`. Secrets are
|
|
42000
42186
|
* 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.
|
|
3
|
+
"version": "1.2.96",
|
|
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",
|