@camstack/addon-notifiers 1.2.26 → 1.2.28
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 +167 -59
- package/dist/addon.mjs +167 -59
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7699,7 +7699,7 @@ var RecordingBandSchema = object({
|
|
|
7699
7699
|
postBufferSec: number().min(0).optional()
|
|
7700
7700
|
});
|
|
7701
7701
|
({
|
|
7702
|
-
preBufferSec:
|
|
7702
|
+
preBufferSec: 15,
|
|
7703
7703
|
postBufferSec: 30
|
|
7704
7704
|
}).postBufferSec * 1e3;
|
|
7705
7705
|
/**
|
|
@@ -13693,128 +13693,103 @@ var COCO_TO_MACRO = {
|
|
|
13693
13693
|
var AUDIO_MACRO_LABELS = [
|
|
13694
13694
|
{
|
|
13695
13695
|
id: "speech",
|
|
13696
|
-
name: "Speech"
|
|
13697
|
-
icon: "🗣️"
|
|
13696
|
+
name: "Speech"
|
|
13698
13697
|
},
|
|
13699
13698
|
{
|
|
13700
13699
|
id: "scream",
|
|
13701
|
-
name: "Scream / Shout"
|
|
13702
|
-
icon: "😱"
|
|
13700
|
+
name: "Scream / Shout"
|
|
13703
13701
|
},
|
|
13704
13702
|
{
|
|
13705
13703
|
id: "crying",
|
|
13706
|
-
name: "Crying / Baby"
|
|
13707
|
-
icon: "😢"
|
|
13704
|
+
name: "Crying / Baby"
|
|
13708
13705
|
},
|
|
13709
13706
|
{
|
|
13710
13707
|
id: "laughter",
|
|
13711
|
-
name: "Laughter"
|
|
13712
|
-
icon: "😂"
|
|
13708
|
+
name: "Laughter"
|
|
13713
13709
|
},
|
|
13714
13710
|
{
|
|
13715
13711
|
id: "music",
|
|
13716
|
-
name: "Music"
|
|
13717
|
-
icon: "🎵"
|
|
13712
|
+
name: "Music"
|
|
13718
13713
|
},
|
|
13719
13714
|
{
|
|
13720
13715
|
id: "dog",
|
|
13721
|
-
name: "Dog"
|
|
13722
|
-
icon: "🐕"
|
|
13716
|
+
name: "Dog"
|
|
13723
13717
|
},
|
|
13724
13718
|
{
|
|
13725
13719
|
id: "cat",
|
|
13726
|
-
name: "Cat"
|
|
13727
|
-
icon: "🐈"
|
|
13720
|
+
name: "Cat"
|
|
13728
13721
|
},
|
|
13729
13722
|
{
|
|
13730
13723
|
id: "bird",
|
|
13731
|
-
name: "Bird"
|
|
13732
|
-
icon: "🐦"
|
|
13724
|
+
name: "Bird"
|
|
13733
13725
|
},
|
|
13734
13726
|
{
|
|
13735
13727
|
id: "animal",
|
|
13736
|
-
name: "Animal (other)"
|
|
13737
|
-
icon: "🐾"
|
|
13728
|
+
name: "Animal (other)"
|
|
13738
13729
|
},
|
|
13739
13730
|
{
|
|
13740
13731
|
id: "alarm",
|
|
13741
|
-
name: "Alarm / Siren"
|
|
13742
|
-
icon: "🚨"
|
|
13732
|
+
name: "Alarm / Siren"
|
|
13743
13733
|
},
|
|
13744
13734
|
{
|
|
13745
13735
|
id: "doorbell",
|
|
13746
|
-
name: "Doorbell / Knock"
|
|
13747
|
-
icon: "🔔"
|
|
13736
|
+
name: "Doorbell / Knock"
|
|
13748
13737
|
},
|
|
13749
13738
|
{
|
|
13750
13739
|
id: "glass_breaking",
|
|
13751
|
-
name: "Glass Breaking"
|
|
13752
|
-
icon: "💥"
|
|
13740
|
+
name: "Glass Breaking"
|
|
13753
13741
|
},
|
|
13754
13742
|
{
|
|
13755
13743
|
id: "gunshot",
|
|
13756
|
-
name: "Gunshot / Explosion"
|
|
13757
|
-
icon: "💣"
|
|
13744
|
+
name: "Gunshot / Explosion"
|
|
13758
13745
|
},
|
|
13759
13746
|
{
|
|
13760
13747
|
id: "vehicle",
|
|
13761
|
-
name: "Vehicle"
|
|
13762
|
-
icon: "🚗"
|
|
13748
|
+
name: "Vehicle"
|
|
13763
13749
|
},
|
|
13764
13750
|
{
|
|
13765
13751
|
id: "siren",
|
|
13766
|
-
name: "Emergency Siren"
|
|
13767
|
-
icon: "🚑"
|
|
13752
|
+
name: "Emergency Siren"
|
|
13768
13753
|
},
|
|
13769
13754
|
{
|
|
13770
13755
|
id: "fire",
|
|
13771
|
-
name: "Fire / Smoke"
|
|
13772
|
-
icon: "🔥"
|
|
13756
|
+
name: "Fire / Smoke"
|
|
13773
13757
|
},
|
|
13774
13758
|
{
|
|
13775
13759
|
id: "water",
|
|
13776
|
-
name: "Water"
|
|
13777
|
-
icon: "💧"
|
|
13760
|
+
name: "Water"
|
|
13778
13761
|
},
|
|
13779
13762
|
{
|
|
13780
13763
|
id: "wind",
|
|
13781
|
-
name: "Wind / Weather"
|
|
13782
|
-
icon: "🌬️"
|
|
13764
|
+
name: "Wind / Weather"
|
|
13783
13765
|
},
|
|
13784
13766
|
{
|
|
13785
13767
|
id: "door",
|
|
13786
|
-
name: "Door"
|
|
13787
|
-
icon: "🚪"
|
|
13768
|
+
name: "Door"
|
|
13788
13769
|
},
|
|
13789
13770
|
{
|
|
13790
13771
|
id: "footsteps",
|
|
13791
|
-
name: "Footsteps"
|
|
13792
|
-
icon: "👣"
|
|
13772
|
+
name: "Footsteps"
|
|
13793
13773
|
},
|
|
13794
13774
|
{
|
|
13795
13775
|
id: "crowd",
|
|
13796
|
-
name: "Crowd / Chatter"
|
|
13797
|
-
icon: "👥"
|
|
13776
|
+
name: "Crowd / Chatter"
|
|
13798
13777
|
},
|
|
13799
13778
|
{
|
|
13800
13779
|
id: "telephone",
|
|
13801
|
-
name: "Telephone"
|
|
13802
|
-
icon: "📞"
|
|
13780
|
+
name: "Telephone"
|
|
13803
13781
|
},
|
|
13804
13782
|
{
|
|
13805
13783
|
id: "engine",
|
|
13806
|
-
name: "Engine / Motor"
|
|
13807
|
-
icon: "⚙️"
|
|
13784
|
+
name: "Engine / Motor"
|
|
13808
13785
|
},
|
|
13809
13786
|
{
|
|
13810
13787
|
id: "tools",
|
|
13811
|
-
name: "Tools / Construction"
|
|
13812
|
-
icon: "🔨"
|
|
13788
|
+
name: "Tools / Construction"
|
|
13813
13789
|
},
|
|
13814
13790
|
{
|
|
13815
13791
|
id: "silence",
|
|
13816
|
-
name: "Silence"
|
|
13817
|
-
icon: "🤫"
|
|
13792
|
+
name: "Silence"
|
|
13818
13793
|
}
|
|
13819
13794
|
];
|
|
13820
13795
|
var YAMNET_TO_MACRO = {
|
|
@@ -16278,7 +16253,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16278
16253
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16279
16254
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16280
16255
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16281
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16256
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16282
16257
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16283
16258
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16284
16259
|
* (`getObjectEvents` et al.).
|
|
@@ -16573,6 +16548,35 @@ var TrackSchema = object({
|
|
|
16573
16548
|
*/
|
|
16574
16549
|
hasFace: boolean().optional(),
|
|
16575
16550
|
/**
|
|
16551
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16552
|
+
* face an operator could ASSIGN to an identity.
|
|
16553
|
+
*
|
|
16554
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16555
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16556
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16557
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16558
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16559
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16560
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16561
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16562
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16563
|
+
* operator something to assign and delivers nothing.
|
|
16564
|
+
*
|
|
16565
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16566
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16567
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16568
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16569
|
+
*
|
|
16570
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16571
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16572
|
+
*
|
|
16573
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16574
|
+
* before the column omits it, and so does every server that predates the
|
|
16575
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16576
|
+
* never infer "no assignable face".
|
|
16577
|
+
*/
|
|
16578
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16579
|
+
/**
|
|
16576
16580
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16577
16581
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16578
16582
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -17922,6 +17926,32 @@ var DetailResultSchema = object({
|
|
|
17922
17926
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
17923
17927
|
bbox: NativeCropBboxSchema.optional(),
|
|
17924
17928
|
embedding: string().optional(),
|
|
17929
|
+
/**
|
|
17930
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
17931
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
17932
|
+
* the consuming gate treats as accept — never as reject.
|
|
17933
|
+
*/
|
|
17934
|
+
embeddingMagnitude: number().optional(),
|
|
17935
|
+
/**
|
|
17936
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
17937
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
17938
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
17939
|
+
* the inference this model exists to forbid.
|
|
17940
|
+
*
|
|
17941
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
17942
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
17943
|
+
* its previous assumption instead of refusing.
|
|
17944
|
+
*
|
|
17945
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
17946
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
17947
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
17948
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
17949
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
17950
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
17951
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
17952
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
17953
|
+
*/
|
|
17954
|
+
embeddingModelId: string().optional(),
|
|
17925
17955
|
label: string().optional(),
|
|
17926
17956
|
/**
|
|
17927
17957
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19332,6 +19362,7 @@ DeviceType.Camera, method(object({
|
|
|
19332
19362
|
isBattery: boolean(),
|
|
19333
19363
|
reason: _enum([
|
|
19334
19364
|
"disabled",
|
|
19365
|
+
"offline",
|
|
19335
19366
|
"sleeping",
|
|
19336
19367
|
"unreachable",
|
|
19337
19368
|
"waking"
|
|
@@ -19377,9 +19408,17 @@ targets: array(object({
|
|
|
19377
19408
|
sleeping: boolean(),
|
|
19378
19409
|
/** Current device state rendered over the cached frame. State images
|
|
19379
19410
|
* remain authoritative even when their photographic background is
|
|
19380
|
-
* old; null means the link must carry a current camera frame.
|
|
19411
|
+
* old; null means the link must carry a current camera frame.
|
|
19412
|
+
*
|
|
19413
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19414
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19415
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19416
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19417
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19418
|
+
* state. */
|
|
19381
19419
|
stateReason: _enum([
|
|
19382
19420
|
"disabled",
|
|
19421
|
+
"offline",
|
|
19383
19422
|
"sleeping",
|
|
19384
19423
|
"unreachable",
|
|
19385
19424
|
"waking"
|
|
@@ -24410,9 +24449,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24410
24449
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24411
24450
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24412
24451
|
locationIds: array(string()).optional(),
|
|
24413
|
-
/**
|
|
24452
|
+
/**
|
|
24453
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24454
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24455
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24456
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24457
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24458
|
+
*/
|
|
24459
|
+
root: string().optional(),
|
|
24460
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24461
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24462
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24463
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24414
24464
|
usedBytes: number(),
|
|
24415
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24465
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24466
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24416
24467
|
availableBytes: number().nullable(),
|
|
24417
24468
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24418
24469
|
totalBytes: number().nullable()
|
|
@@ -24424,7 +24475,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24424
24475
|
nodeId: string(),
|
|
24425
24476
|
totalUsedBytes: number(),
|
|
24426
24477
|
devices: array(RecordingDeviceUsageSchema),
|
|
24427
|
-
|
|
24478
|
+
/**
|
|
24479
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24480
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24481
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24482
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24483
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24484
|
+
* missing disk bar.
|
|
24485
|
+
*/
|
|
24486
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24428
24487
|
});
|
|
24429
24488
|
/**
|
|
24430
24489
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33540,7 +33599,11 @@ Object.freeze({
|
|
|
33540
33599
|
"network-access": "ingress",
|
|
33541
33600
|
"smtp-provider": "email"
|
|
33542
33601
|
});
|
|
33543
|
-
|
|
33602
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
33603
|
+
var NC_AUDIO_DEFAULTS = {
|
|
33604
|
+
hitPercent: 60,
|
|
33605
|
+
samplingSeconds: 10
|
|
33606
|
+
};
|
|
33544
33607
|
new Set(["devices", "classes"]);
|
|
33545
33608
|
/** Strip a small, safe subset of Markdown down to plain text. */
|
|
33546
33609
|
function markdownToText(md) {
|
|
@@ -33749,6 +33812,7 @@ function prepareNotification(caps, n) {
|
|
|
33749
33812
|
renderedAs
|
|
33750
33813
|
};
|
|
33751
33814
|
}
|
|
33815
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33752
33816
|
/**
|
|
33753
33817
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33754
33818
|
*
|
|
@@ -33980,6 +34044,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
33980
34044
|
createdAt: number(),
|
|
33981
34045
|
updatedAt: number()
|
|
33982
34046
|
});
|
|
34047
|
+
Object.freeze(Object.fromEntries([{
|
|
34048
|
+
stepId: "face-embedding",
|
|
34049
|
+
label: "Face recognition model",
|
|
34050
|
+
defaultModelId: "arcface-r100",
|
|
34051
|
+
indexName: "the enrolled face gallery",
|
|
34052
|
+
options: [
|
|
34053
|
+
{
|
|
34054
|
+
id: "arcface-r100",
|
|
34055
|
+
label: "ArcFace (ResNet34)"
|
|
34056
|
+
},
|
|
34057
|
+
{
|
|
34058
|
+
id: "auraface-r100",
|
|
34059
|
+
label: "AuraFace R100"
|
|
34060
|
+
},
|
|
34061
|
+
{
|
|
34062
|
+
id: "inception-resnet-v1",
|
|
34063
|
+
label: "Inception ResNet V1"
|
|
34064
|
+
}
|
|
34065
|
+
]
|
|
34066
|
+
}, {
|
|
34067
|
+
stepId: "clip-embedding",
|
|
34068
|
+
label: "Semantic search model",
|
|
34069
|
+
defaultModelId: "mobileclip-s1",
|
|
34070
|
+
indexName: "the object semantic-search index",
|
|
34071
|
+
options: [{
|
|
34072
|
+
id: "mobileclip-s1",
|
|
34073
|
+
label: "MobileCLIP S1"
|
|
34074
|
+
}, {
|
|
34075
|
+
id: "mobileclip-s2",
|
|
34076
|
+
label: "MobileCLIP S2"
|
|
34077
|
+
}]
|
|
34078
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34079
|
+
string().min(1);
|
|
33983
34080
|
object({
|
|
33984
34081
|
/**
|
|
33985
34082
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -34000,10 +34097,21 @@ object({
|
|
|
34000
34097
|
*/
|
|
34001
34098
|
square: boolean()
|
|
34002
34099
|
});
|
|
34003
|
-
|
|
34100
|
+
/**
|
|
34101
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
34102
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
34103
|
+
*/
|
|
34104
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
34004
34105
|
paddingRatio: .15,
|
|
34005
34106
|
square: false
|
|
34006
|
-
}
|
|
34107
|
+
};
|
|
34108
|
+
Object.freeze({
|
|
34109
|
+
x: 0,
|
|
34110
|
+
y: 0,
|
|
34111
|
+
w: 1,
|
|
34112
|
+
h: 1
|
|
34113
|
+
});
|
|
34114
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
34007
34115
|
/**
|
|
34008
34116
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
34009
34117
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -7672,7 +7672,7 @@ var RecordingBandSchema = object({
|
|
|
7672
7672
|
postBufferSec: number().min(0).optional()
|
|
7673
7673
|
});
|
|
7674
7674
|
({
|
|
7675
|
-
preBufferSec:
|
|
7675
|
+
preBufferSec: 15,
|
|
7676
7676
|
postBufferSec: 30
|
|
7677
7677
|
}).postBufferSec * 1e3;
|
|
7678
7678
|
/**
|
|
@@ -13666,128 +13666,103 @@ var COCO_TO_MACRO = {
|
|
|
13666
13666
|
var AUDIO_MACRO_LABELS = [
|
|
13667
13667
|
{
|
|
13668
13668
|
id: "speech",
|
|
13669
|
-
name: "Speech"
|
|
13670
|
-
icon: "🗣️"
|
|
13669
|
+
name: "Speech"
|
|
13671
13670
|
},
|
|
13672
13671
|
{
|
|
13673
13672
|
id: "scream",
|
|
13674
|
-
name: "Scream / Shout"
|
|
13675
|
-
icon: "😱"
|
|
13673
|
+
name: "Scream / Shout"
|
|
13676
13674
|
},
|
|
13677
13675
|
{
|
|
13678
13676
|
id: "crying",
|
|
13679
|
-
name: "Crying / Baby"
|
|
13680
|
-
icon: "😢"
|
|
13677
|
+
name: "Crying / Baby"
|
|
13681
13678
|
},
|
|
13682
13679
|
{
|
|
13683
13680
|
id: "laughter",
|
|
13684
|
-
name: "Laughter"
|
|
13685
|
-
icon: "😂"
|
|
13681
|
+
name: "Laughter"
|
|
13686
13682
|
},
|
|
13687
13683
|
{
|
|
13688
13684
|
id: "music",
|
|
13689
|
-
name: "Music"
|
|
13690
|
-
icon: "🎵"
|
|
13685
|
+
name: "Music"
|
|
13691
13686
|
},
|
|
13692
13687
|
{
|
|
13693
13688
|
id: "dog",
|
|
13694
|
-
name: "Dog"
|
|
13695
|
-
icon: "🐕"
|
|
13689
|
+
name: "Dog"
|
|
13696
13690
|
},
|
|
13697
13691
|
{
|
|
13698
13692
|
id: "cat",
|
|
13699
|
-
name: "Cat"
|
|
13700
|
-
icon: "🐈"
|
|
13693
|
+
name: "Cat"
|
|
13701
13694
|
},
|
|
13702
13695
|
{
|
|
13703
13696
|
id: "bird",
|
|
13704
|
-
name: "Bird"
|
|
13705
|
-
icon: "🐦"
|
|
13697
|
+
name: "Bird"
|
|
13706
13698
|
},
|
|
13707
13699
|
{
|
|
13708
13700
|
id: "animal",
|
|
13709
|
-
name: "Animal (other)"
|
|
13710
|
-
icon: "🐾"
|
|
13701
|
+
name: "Animal (other)"
|
|
13711
13702
|
},
|
|
13712
13703
|
{
|
|
13713
13704
|
id: "alarm",
|
|
13714
|
-
name: "Alarm / Siren"
|
|
13715
|
-
icon: "🚨"
|
|
13705
|
+
name: "Alarm / Siren"
|
|
13716
13706
|
},
|
|
13717
13707
|
{
|
|
13718
13708
|
id: "doorbell",
|
|
13719
|
-
name: "Doorbell / Knock"
|
|
13720
|
-
icon: "🔔"
|
|
13709
|
+
name: "Doorbell / Knock"
|
|
13721
13710
|
},
|
|
13722
13711
|
{
|
|
13723
13712
|
id: "glass_breaking",
|
|
13724
|
-
name: "Glass Breaking"
|
|
13725
|
-
icon: "💥"
|
|
13713
|
+
name: "Glass Breaking"
|
|
13726
13714
|
},
|
|
13727
13715
|
{
|
|
13728
13716
|
id: "gunshot",
|
|
13729
|
-
name: "Gunshot / Explosion"
|
|
13730
|
-
icon: "💣"
|
|
13717
|
+
name: "Gunshot / Explosion"
|
|
13731
13718
|
},
|
|
13732
13719
|
{
|
|
13733
13720
|
id: "vehicle",
|
|
13734
|
-
name: "Vehicle"
|
|
13735
|
-
icon: "🚗"
|
|
13721
|
+
name: "Vehicle"
|
|
13736
13722
|
},
|
|
13737
13723
|
{
|
|
13738
13724
|
id: "siren",
|
|
13739
|
-
name: "Emergency Siren"
|
|
13740
|
-
icon: "🚑"
|
|
13725
|
+
name: "Emergency Siren"
|
|
13741
13726
|
},
|
|
13742
13727
|
{
|
|
13743
13728
|
id: "fire",
|
|
13744
|
-
name: "Fire / Smoke"
|
|
13745
|
-
icon: "🔥"
|
|
13729
|
+
name: "Fire / Smoke"
|
|
13746
13730
|
},
|
|
13747
13731
|
{
|
|
13748
13732
|
id: "water",
|
|
13749
|
-
name: "Water"
|
|
13750
|
-
icon: "💧"
|
|
13733
|
+
name: "Water"
|
|
13751
13734
|
},
|
|
13752
13735
|
{
|
|
13753
13736
|
id: "wind",
|
|
13754
|
-
name: "Wind / Weather"
|
|
13755
|
-
icon: "🌬️"
|
|
13737
|
+
name: "Wind / Weather"
|
|
13756
13738
|
},
|
|
13757
13739
|
{
|
|
13758
13740
|
id: "door",
|
|
13759
|
-
name: "Door"
|
|
13760
|
-
icon: "🚪"
|
|
13741
|
+
name: "Door"
|
|
13761
13742
|
},
|
|
13762
13743
|
{
|
|
13763
13744
|
id: "footsteps",
|
|
13764
|
-
name: "Footsteps"
|
|
13765
|
-
icon: "👣"
|
|
13745
|
+
name: "Footsteps"
|
|
13766
13746
|
},
|
|
13767
13747
|
{
|
|
13768
13748
|
id: "crowd",
|
|
13769
|
-
name: "Crowd / Chatter"
|
|
13770
|
-
icon: "👥"
|
|
13749
|
+
name: "Crowd / Chatter"
|
|
13771
13750
|
},
|
|
13772
13751
|
{
|
|
13773
13752
|
id: "telephone",
|
|
13774
|
-
name: "Telephone"
|
|
13775
|
-
icon: "📞"
|
|
13753
|
+
name: "Telephone"
|
|
13776
13754
|
},
|
|
13777
13755
|
{
|
|
13778
13756
|
id: "engine",
|
|
13779
|
-
name: "Engine / Motor"
|
|
13780
|
-
icon: "⚙️"
|
|
13757
|
+
name: "Engine / Motor"
|
|
13781
13758
|
},
|
|
13782
13759
|
{
|
|
13783
13760
|
id: "tools",
|
|
13784
|
-
name: "Tools / Construction"
|
|
13785
|
-
icon: "🔨"
|
|
13761
|
+
name: "Tools / Construction"
|
|
13786
13762
|
},
|
|
13787
13763
|
{
|
|
13788
13764
|
id: "silence",
|
|
13789
|
-
name: "Silence"
|
|
13790
|
-
icon: "🤫"
|
|
13765
|
+
name: "Silence"
|
|
13791
13766
|
}
|
|
13792
13767
|
];
|
|
13793
13768
|
var YAMNET_TO_MACRO = {
|
|
@@ -16251,7 +16226,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16251
16226
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16252
16227
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16253
16228
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16254
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16229
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16255
16230
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16256
16231
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16257
16232
|
* (`getObjectEvents` et al.).
|
|
@@ -16546,6 +16521,35 @@ var TrackSchema = object({
|
|
|
16546
16521
|
*/
|
|
16547
16522
|
hasFace: boolean().optional(),
|
|
16548
16523
|
/**
|
|
16524
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16525
|
+
* face an operator could ASSIGN to an identity.
|
|
16526
|
+
*
|
|
16527
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16528
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16529
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16530
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16531
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16532
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16533
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16534
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16535
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16536
|
+
* operator something to assign and delivers nothing.
|
|
16537
|
+
*
|
|
16538
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16539
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16540
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16541
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16542
|
+
*
|
|
16543
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16544
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16545
|
+
*
|
|
16546
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16547
|
+
* before the column omits it, and so does every server that predates the
|
|
16548
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16549
|
+
* never infer "no assignable face".
|
|
16550
|
+
*/
|
|
16551
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16552
|
+
/**
|
|
16549
16553
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16550
16554
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16551
16555
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -17895,6 +17899,32 @@ var DetailResultSchema = object({
|
|
|
17895
17899
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
17896
17900
|
bbox: NativeCropBboxSchema.optional(),
|
|
17897
17901
|
embedding: string().optional(),
|
|
17902
|
+
/**
|
|
17903
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
17904
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
17905
|
+
* the consuming gate treats as accept — never as reject.
|
|
17906
|
+
*/
|
|
17907
|
+
embeddingMagnitude: number().optional(),
|
|
17908
|
+
/**
|
|
17909
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
17910
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
17911
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
17912
|
+
* the inference this model exists to forbid.
|
|
17913
|
+
*
|
|
17914
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
17915
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
17916
|
+
* its previous assumption instead of refusing.
|
|
17917
|
+
*
|
|
17918
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
17919
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
17920
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
17921
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
17922
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
17923
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
17924
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
17925
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
17926
|
+
*/
|
|
17927
|
+
embeddingModelId: string().optional(),
|
|
17898
17928
|
label: string().optional(),
|
|
17899
17929
|
/**
|
|
17900
17930
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19305,6 +19335,7 @@ DeviceType.Camera, method(object({
|
|
|
19305
19335
|
isBattery: boolean(),
|
|
19306
19336
|
reason: _enum([
|
|
19307
19337
|
"disabled",
|
|
19338
|
+
"offline",
|
|
19308
19339
|
"sleeping",
|
|
19309
19340
|
"unreachable",
|
|
19310
19341
|
"waking"
|
|
@@ -19350,9 +19381,17 @@ targets: array(object({
|
|
|
19350
19381
|
sleeping: boolean(),
|
|
19351
19382
|
/** Current device state rendered over the cached frame. State images
|
|
19352
19383
|
* remain authoritative even when their photographic background is
|
|
19353
|
-
* old; null means the link must carry a current camera frame.
|
|
19384
|
+
* old; null means the link must carry a current camera frame.
|
|
19385
|
+
*
|
|
19386
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19387
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19388
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19389
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19390
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19391
|
+
* state. */
|
|
19354
19392
|
stateReason: _enum([
|
|
19355
19393
|
"disabled",
|
|
19394
|
+
"offline",
|
|
19356
19395
|
"sleeping",
|
|
19357
19396
|
"unreachable",
|
|
19358
19397
|
"waking"
|
|
@@ -24383,9 +24422,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24383
24422
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24384
24423
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24385
24424
|
locationIds: array(string()).optional(),
|
|
24386
|
-
/**
|
|
24425
|
+
/**
|
|
24426
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24427
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24428
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24429
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24430
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24431
|
+
*/
|
|
24432
|
+
root: string().optional(),
|
|
24433
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24434
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24435
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24436
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24387
24437
|
usedBytes: number(),
|
|
24388
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24438
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24439
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24389
24440
|
availableBytes: number().nullable(),
|
|
24390
24441
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24391
24442
|
totalBytes: number().nullable()
|
|
@@ -24397,7 +24448,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24397
24448
|
nodeId: string(),
|
|
24398
24449
|
totalUsedBytes: number(),
|
|
24399
24450
|
devices: array(RecordingDeviceUsageSchema),
|
|
24400
|
-
|
|
24451
|
+
/**
|
|
24452
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24453
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24454
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24455
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24456
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24457
|
+
* missing disk bar.
|
|
24458
|
+
*/
|
|
24459
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24401
24460
|
});
|
|
24402
24461
|
/**
|
|
24403
24462
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33513,7 +33572,11 @@ Object.freeze({
|
|
|
33513
33572
|
"network-access": "ingress",
|
|
33514
33573
|
"smtp-provider": "email"
|
|
33515
33574
|
});
|
|
33516
|
-
|
|
33575
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
33576
|
+
var NC_AUDIO_DEFAULTS = {
|
|
33577
|
+
hitPercent: 60,
|
|
33578
|
+
samplingSeconds: 10
|
|
33579
|
+
};
|
|
33517
33580
|
new Set(["devices", "classes"]);
|
|
33518
33581
|
/** Strip a small, safe subset of Markdown down to plain text. */
|
|
33519
33582
|
function markdownToText(md) {
|
|
@@ -33722,6 +33785,7 @@ function prepareNotification(caps, n) {
|
|
|
33722
33785
|
renderedAs
|
|
33723
33786
|
};
|
|
33724
33787
|
}
|
|
33788
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33725
33789
|
/**
|
|
33726
33790
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33727
33791
|
*
|
|
@@ -33953,6 +34017,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
33953
34017
|
createdAt: number(),
|
|
33954
34018
|
updatedAt: number()
|
|
33955
34019
|
});
|
|
34020
|
+
Object.freeze(Object.fromEntries([{
|
|
34021
|
+
stepId: "face-embedding",
|
|
34022
|
+
label: "Face recognition model",
|
|
34023
|
+
defaultModelId: "arcface-r100",
|
|
34024
|
+
indexName: "the enrolled face gallery",
|
|
34025
|
+
options: [
|
|
34026
|
+
{
|
|
34027
|
+
id: "arcface-r100",
|
|
34028
|
+
label: "ArcFace (ResNet34)"
|
|
34029
|
+
},
|
|
34030
|
+
{
|
|
34031
|
+
id: "auraface-r100",
|
|
34032
|
+
label: "AuraFace R100"
|
|
34033
|
+
},
|
|
34034
|
+
{
|
|
34035
|
+
id: "inception-resnet-v1",
|
|
34036
|
+
label: "Inception ResNet V1"
|
|
34037
|
+
}
|
|
34038
|
+
]
|
|
34039
|
+
}, {
|
|
34040
|
+
stepId: "clip-embedding",
|
|
34041
|
+
label: "Semantic search model",
|
|
34042
|
+
defaultModelId: "mobileclip-s1",
|
|
34043
|
+
indexName: "the object semantic-search index",
|
|
34044
|
+
options: [{
|
|
34045
|
+
id: "mobileclip-s1",
|
|
34046
|
+
label: "MobileCLIP S1"
|
|
34047
|
+
}, {
|
|
34048
|
+
id: "mobileclip-s2",
|
|
34049
|
+
label: "MobileCLIP S2"
|
|
34050
|
+
}]
|
|
34051
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34052
|
+
string().min(1);
|
|
33956
34053
|
object({
|
|
33957
34054
|
/**
|
|
33958
34055
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -33973,10 +34070,21 @@ object({
|
|
|
33973
34070
|
*/
|
|
33974
34071
|
square: boolean()
|
|
33975
34072
|
});
|
|
33976
|
-
|
|
34073
|
+
/**
|
|
34074
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
34075
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
34076
|
+
*/
|
|
34077
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
33977
34078
|
paddingRatio: .15,
|
|
33978
34079
|
square: false
|
|
33979
|
-
}
|
|
34080
|
+
};
|
|
34081
|
+
Object.freeze({
|
|
34082
|
+
x: 0,
|
|
34083
|
+
y: 0,
|
|
34084
|
+
w: 1,
|
|
34085
|
+
h: 1
|
|
34086
|
+
});
|
|
34087
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
33980
34088
|
/**
|
|
33981
34089
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
33982
34090
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.28",
|
|
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",
|