@camstack/addon-notifiers 1.2.25 → 1.2.27
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 +37 -3
- package/dist/addon.mjs +37 -3
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -20068,6 +20068,14 @@ var ClipSchema = object({
|
|
|
20068
20068
|
endMs: number()
|
|
20069
20069
|
}),
|
|
20070
20070
|
/**
|
|
20071
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
20072
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
20073
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
20074
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
20075
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
20076
|
+
*/
|
|
20077
|
+
labels: array(string()).max(3).optional(),
|
|
20078
|
+
/**
|
|
20071
20079
|
* Lazy thumbnail URL, never inlined.
|
|
20072
20080
|
*
|
|
20073
20081
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -24402,9 +24410,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24402
24410
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24403
24411
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24404
24412
|
locationIds: array(string()).optional(),
|
|
24405
|
-
/**
|
|
24413
|
+
/**
|
|
24414
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24415
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24416
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24417
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24418
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24419
|
+
*/
|
|
24420
|
+
root: string().optional(),
|
|
24421
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24422
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24423
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24424
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24406
24425
|
usedBytes: number(),
|
|
24407
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24426
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24427
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24408
24428
|
availableBytes: number().nullable(),
|
|
24409
24429
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24410
24430
|
totalBytes: number().nullable()
|
|
@@ -24416,7 +24436,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24416
24436
|
nodeId: string(),
|
|
24417
24437
|
totalUsedBytes: number(),
|
|
24418
24438
|
devices: array(RecordingDeviceUsageSchema),
|
|
24419
|
-
|
|
24439
|
+
/**
|
|
24440
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24441
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24442
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24443
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24444
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24445
|
+
* missing disk bar.
|
|
24446
|
+
*/
|
|
24447
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24420
24448
|
});
|
|
24421
24449
|
/**
|
|
24422
24450
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33532,6 +33560,11 @@ Object.freeze({
|
|
|
33532
33560
|
"network-access": "ingress",
|
|
33533
33561
|
"smtp-provider": "email"
|
|
33534
33562
|
});
|
|
33563
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
33564
|
+
var NC_AUDIO_DEFAULTS = {
|
|
33565
|
+
hitPercent: 60,
|
|
33566
|
+
samplingSeconds: 10
|
|
33567
|
+
};
|
|
33535
33568
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33536
33569
|
new Set(["devices", "classes"]);
|
|
33537
33570
|
/** Strip a small, safe subset of Markdown down to plain text. */
|
|
@@ -33741,6 +33774,7 @@ function prepareNotification(caps, n) {
|
|
|
33741
33774
|
renderedAs
|
|
33742
33775
|
};
|
|
33743
33776
|
}
|
|
33777
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33744
33778
|
/**
|
|
33745
33779
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33746
33780
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -20041,6 +20041,14 @@ var ClipSchema = object({
|
|
|
20041
20041
|
endMs: number()
|
|
20042
20042
|
}),
|
|
20043
20043
|
/**
|
|
20044
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
20045
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
20046
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
20047
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
20048
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
20049
|
+
*/
|
|
20050
|
+
labels: array(string()).max(3).optional(),
|
|
20051
|
+
/**
|
|
20044
20052
|
* Lazy thumbnail URL, never inlined.
|
|
20045
20053
|
*
|
|
20046
20054
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -24375,9 +24383,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24375
24383
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24376
24384
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24377
24385
|
locationIds: array(string()).optional(),
|
|
24378
|
-
/**
|
|
24386
|
+
/**
|
|
24387
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24388
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24389
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24390
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24391
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24392
|
+
*/
|
|
24393
|
+
root: string().optional(),
|
|
24394
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24395
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24396
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24397
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24379
24398
|
usedBytes: number(),
|
|
24380
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24399
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24400
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24381
24401
|
availableBytes: number().nullable(),
|
|
24382
24402
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24383
24403
|
totalBytes: number().nullable()
|
|
@@ -24389,7 +24409,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24389
24409
|
nodeId: string(),
|
|
24390
24410
|
totalUsedBytes: number(),
|
|
24391
24411
|
devices: array(RecordingDeviceUsageSchema),
|
|
24392
|
-
|
|
24412
|
+
/**
|
|
24413
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24414
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24415
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24416
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24417
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24418
|
+
* missing disk bar.
|
|
24419
|
+
*/
|
|
24420
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24393
24421
|
});
|
|
24394
24422
|
/**
|
|
24395
24423
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33505,6 +33533,11 @@ Object.freeze({
|
|
|
33505
33533
|
"network-access": "ingress",
|
|
33506
33534
|
"smtp-provider": "email"
|
|
33507
33535
|
});
|
|
33536
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
33537
|
+
var NC_AUDIO_DEFAULTS = {
|
|
33538
|
+
hitPercent: 60,
|
|
33539
|
+
samplingSeconds: 10
|
|
33540
|
+
};
|
|
33508
33541
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33509
33542
|
new Set(["devices", "classes"]);
|
|
33510
33543
|
/** Strip a small, safe subset of Markdown down to plain text. */
|
|
@@ -33714,6 +33747,7 @@ function prepareNotification(caps, n) {
|
|
|
33714
33747
|
renderedAs
|
|
33715
33748
|
};
|
|
33716
33749
|
}
|
|
33750
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33717
33751
|
/**
|
|
33718
33752
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33719
33753
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.27",
|
|
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",
|