@camstack/addon-provider-velux 0.2.22 → 0.2.24
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
|
@@ -7566,7 +7566,7 @@ var RecordingBandSchema = object({
|
|
|
7566
7566
|
postBufferSec: number().min(0).optional()
|
|
7567
7567
|
});
|
|
7568
7568
|
({
|
|
7569
|
-
preBufferSec:
|
|
7569
|
+
preBufferSec: 15,
|
|
7570
7570
|
postBufferSec: 30
|
|
7571
7571
|
}).postBufferSec * 1e3;
|
|
7572
7572
|
/**
|
|
@@ -13769,128 +13769,103 @@ var COCO_TO_MACRO = {
|
|
|
13769
13769
|
var AUDIO_MACRO_LABELS = [
|
|
13770
13770
|
{
|
|
13771
13771
|
id: "speech",
|
|
13772
|
-
name: "Speech"
|
|
13773
|
-
icon: "🗣️"
|
|
13772
|
+
name: "Speech"
|
|
13774
13773
|
},
|
|
13775
13774
|
{
|
|
13776
13775
|
id: "scream",
|
|
13777
|
-
name: "Scream / Shout"
|
|
13778
|
-
icon: "😱"
|
|
13776
|
+
name: "Scream / Shout"
|
|
13779
13777
|
},
|
|
13780
13778
|
{
|
|
13781
13779
|
id: "crying",
|
|
13782
|
-
name: "Crying / Baby"
|
|
13783
|
-
icon: "😢"
|
|
13780
|
+
name: "Crying / Baby"
|
|
13784
13781
|
},
|
|
13785
13782
|
{
|
|
13786
13783
|
id: "laughter",
|
|
13787
|
-
name: "Laughter"
|
|
13788
|
-
icon: "😂"
|
|
13784
|
+
name: "Laughter"
|
|
13789
13785
|
},
|
|
13790
13786
|
{
|
|
13791
13787
|
id: "music",
|
|
13792
|
-
name: "Music"
|
|
13793
|
-
icon: "🎵"
|
|
13788
|
+
name: "Music"
|
|
13794
13789
|
},
|
|
13795
13790
|
{
|
|
13796
13791
|
id: "dog",
|
|
13797
|
-
name: "Dog"
|
|
13798
|
-
icon: "🐕"
|
|
13792
|
+
name: "Dog"
|
|
13799
13793
|
},
|
|
13800
13794
|
{
|
|
13801
13795
|
id: "cat",
|
|
13802
|
-
name: "Cat"
|
|
13803
|
-
icon: "🐈"
|
|
13796
|
+
name: "Cat"
|
|
13804
13797
|
},
|
|
13805
13798
|
{
|
|
13806
13799
|
id: "bird",
|
|
13807
|
-
name: "Bird"
|
|
13808
|
-
icon: "🐦"
|
|
13800
|
+
name: "Bird"
|
|
13809
13801
|
},
|
|
13810
13802
|
{
|
|
13811
13803
|
id: "animal",
|
|
13812
|
-
name: "Animal (other)"
|
|
13813
|
-
icon: "🐾"
|
|
13804
|
+
name: "Animal (other)"
|
|
13814
13805
|
},
|
|
13815
13806
|
{
|
|
13816
13807
|
id: "alarm",
|
|
13817
|
-
name: "Alarm / Siren"
|
|
13818
|
-
icon: "🚨"
|
|
13808
|
+
name: "Alarm / Siren"
|
|
13819
13809
|
},
|
|
13820
13810
|
{
|
|
13821
13811
|
id: "doorbell",
|
|
13822
|
-
name: "Doorbell / Knock"
|
|
13823
|
-
icon: "🔔"
|
|
13812
|
+
name: "Doorbell / Knock"
|
|
13824
13813
|
},
|
|
13825
13814
|
{
|
|
13826
13815
|
id: "glass_breaking",
|
|
13827
|
-
name: "Glass Breaking"
|
|
13828
|
-
icon: "💥"
|
|
13816
|
+
name: "Glass Breaking"
|
|
13829
13817
|
},
|
|
13830
13818
|
{
|
|
13831
13819
|
id: "gunshot",
|
|
13832
|
-
name: "Gunshot / Explosion"
|
|
13833
|
-
icon: "💣"
|
|
13820
|
+
name: "Gunshot / Explosion"
|
|
13834
13821
|
},
|
|
13835
13822
|
{
|
|
13836
13823
|
id: "vehicle",
|
|
13837
|
-
name: "Vehicle"
|
|
13838
|
-
icon: "🚗"
|
|
13824
|
+
name: "Vehicle"
|
|
13839
13825
|
},
|
|
13840
13826
|
{
|
|
13841
13827
|
id: "siren",
|
|
13842
|
-
name: "Emergency Siren"
|
|
13843
|
-
icon: "🚑"
|
|
13828
|
+
name: "Emergency Siren"
|
|
13844
13829
|
},
|
|
13845
13830
|
{
|
|
13846
13831
|
id: "fire",
|
|
13847
|
-
name: "Fire / Smoke"
|
|
13848
|
-
icon: "🔥"
|
|
13832
|
+
name: "Fire / Smoke"
|
|
13849
13833
|
},
|
|
13850
13834
|
{
|
|
13851
13835
|
id: "water",
|
|
13852
|
-
name: "Water"
|
|
13853
|
-
icon: "💧"
|
|
13836
|
+
name: "Water"
|
|
13854
13837
|
},
|
|
13855
13838
|
{
|
|
13856
13839
|
id: "wind",
|
|
13857
|
-
name: "Wind / Weather"
|
|
13858
|
-
icon: "🌬️"
|
|
13840
|
+
name: "Wind / Weather"
|
|
13859
13841
|
},
|
|
13860
13842
|
{
|
|
13861
13843
|
id: "door",
|
|
13862
|
-
name: "Door"
|
|
13863
|
-
icon: "🚪"
|
|
13844
|
+
name: "Door"
|
|
13864
13845
|
},
|
|
13865
13846
|
{
|
|
13866
13847
|
id: "footsteps",
|
|
13867
|
-
name: "Footsteps"
|
|
13868
|
-
icon: "👣"
|
|
13848
|
+
name: "Footsteps"
|
|
13869
13849
|
},
|
|
13870
13850
|
{
|
|
13871
13851
|
id: "crowd",
|
|
13872
|
-
name: "Crowd / Chatter"
|
|
13873
|
-
icon: "👥"
|
|
13852
|
+
name: "Crowd / Chatter"
|
|
13874
13853
|
},
|
|
13875
13854
|
{
|
|
13876
13855
|
id: "telephone",
|
|
13877
|
-
name: "Telephone"
|
|
13878
|
-
icon: "📞"
|
|
13856
|
+
name: "Telephone"
|
|
13879
13857
|
},
|
|
13880
13858
|
{
|
|
13881
13859
|
id: "engine",
|
|
13882
|
-
name: "Engine / Motor"
|
|
13883
|
-
icon: "⚙️"
|
|
13860
|
+
name: "Engine / Motor"
|
|
13884
13861
|
},
|
|
13885
13862
|
{
|
|
13886
13863
|
id: "tools",
|
|
13887
|
-
name: "Tools / Construction"
|
|
13888
|
-
icon: "🔨"
|
|
13864
|
+
name: "Tools / Construction"
|
|
13889
13865
|
},
|
|
13890
13866
|
{
|
|
13891
13867
|
id: "silence",
|
|
13892
|
-
name: "Silence"
|
|
13893
|
-
icon: "🤫"
|
|
13868
|
+
name: "Silence"
|
|
13894
13869
|
}
|
|
13895
13870
|
];
|
|
13896
13871
|
var YAMNET_TO_MACRO = {
|
|
@@ -16392,7 +16367,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16392
16367
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16393
16368
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16394
16369
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16395
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16370
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16396
16371
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16397
16372
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16398
16373
|
* (`getObjectEvents` et al.).
|
|
@@ -16687,6 +16662,35 @@ var TrackSchema = object({
|
|
|
16687
16662
|
*/
|
|
16688
16663
|
hasFace: boolean().optional(),
|
|
16689
16664
|
/**
|
|
16665
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16666
|
+
* face an operator could ASSIGN to an identity.
|
|
16667
|
+
*
|
|
16668
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16669
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16670
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16671
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16672
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16673
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16674
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16675
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16676
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16677
|
+
* operator something to assign and delivers nothing.
|
|
16678
|
+
*
|
|
16679
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16680
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16681
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16682
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16683
|
+
*
|
|
16684
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16685
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16686
|
+
*
|
|
16687
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16688
|
+
* before the column omits it, and so does every server that predates the
|
|
16689
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16690
|
+
* never infer "no assignable face".
|
|
16691
|
+
*/
|
|
16692
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16693
|
+
/**
|
|
16690
16694
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16691
16695
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16692
16696
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18076,6 +18080,32 @@ var DetailResultSchema = object({
|
|
|
18076
18080
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18077
18081
|
bbox: NativeCropBboxSchema.optional(),
|
|
18078
18082
|
embedding: string().optional(),
|
|
18083
|
+
/**
|
|
18084
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18085
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18086
|
+
* the consuming gate treats as accept — never as reject.
|
|
18087
|
+
*/
|
|
18088
|
+
embeddingMagnitude: number().optional(),
|
|
18089
|
+
/**
|
|
18090
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18091
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18092
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18093
|
+
* the inference this model exists to forbid.
|
|
18094
|
+
*
|
|
18095
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18096
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18097
|
+
* its previous assumption instead of refusing.
|
|
18098
|
+
*
|
|
18099
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18100
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18101
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18102
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18103
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18104
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18105
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18106
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18107
|
+
*/
|
|
18108
|
+
embeddingModelId: string().optional(),
|
|
18079
18109
|
label: string().optional(),
|
|
18080
18110
|
/**
|
|
18081
18111
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19486,6 +19516,7 @@ DeviceType.Camera, method(object({
|
|
|
19486
19516
|
isBattery: boolean(),
|
|
19487
19517
|
reason: _enum([
|
|
19488
19518
|
"disabled",
|
|
19519
|
+
"offline",
|
|
19489
19520
|
"sleeping",
|
|
19490
19521
|
"unreachable",
|
|
19491
19522
|
"waking"
|
|
@@ -19531,9 +19562,17 @@ targets: array(object({
|
|
|
19531
19562
|
sleeping: boolean(),
|
|
19532
19563
|
/** Current device state rendered over the cached frame. State images
|
|
19533
19564
|
* remain authoritative even when their photographic background is
|
|
19534
|
-
* old; null means the link must carry a current camera frame.
|
|
19565
|
+
* old; null means the link must carry a current camera frame.
|
|
19566
|
+
*
|
|
19567
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19568
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19569
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19570
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19571
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19572
|
+
* state. */
|
|
19535
19573
|
stateReason: _enum([
|
|
19536
19574
|
"disabled",
|
|
19575
|
+
"offline",
|
|
19537
19576
|
"sleeping",
|
|
19538
19577
|
"unreachable",
|
|
19539
19578
|
"waking"
|
|
@@ -26252,9 +26291,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
26252
26291
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
26253
26292
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
26254
26293
|
locationIds: array(string()).optional(),
|
|
26255
|
-
/**
|
|
26294
|
+
/**
|
|
26295
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
26296
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
26297
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
26298
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
26299
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
26300
|
+
*/
|
|
26301
|
+
root: string().optional(),
|
|
26302
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
26303
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
26304
|
+
* also holds everything that is not recordings. Volume fill is
|
|
26305
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
26256
26306
|
usedBytes: number(),
|
|
26257
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
26307
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
26308
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
26258
26309
|
availableBytes: number().nullable(),
|
|
26259
26310
|
/** Total bytes of the location's volume; null when unknown. */
|
|
26260
26311
|
totalBytes: number().nullable()
|
|
@@ -26266,7 +26317,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
26266
26317
|
nodeId: string(),
|
|
26267
26318
|
totalUsedBytes: number(),
|
|
26268
26319
|
devices: array(RecordingDeviceUsageSchema),
|
|
26269
|
-
|
|
26320
|
+
/**
|
|
26321
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
26322
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
26323
|
+
* router, so a hub whose framework train predates a change to this array
|
|
26324
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
26325
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
26326
|
+
* missing disk bar.
|
|
26327
|
+
*/
|
|
26328
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
26270
26329
|
});
|
|
26271
26330
|
/**
|
|
26272
26331
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37051,8 +37110,13 @@ Object.freeze({
|
|
|
37051
37110
|
"network-access": "ingress",
|
|
37052
37111
|
"smtp-provider": "email"
|
|
37053
37112
|
});
|
|
37054
|
-
|
|
37113
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37114
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37115
|
+
hitPercent: 60,
|
|
37116
|
+
samplingSeconds: 10
|
|
37117
|
+
};
|
|
37055
37118
|
new Set(["devices", "classes"]);
|
|
37119
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37056
37120
|
/**
|
|
37057
37121
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37058
37122
|
*
|
|
@@ -37284,6 +37348,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37284
37348
|
createdAt: number(),
|
|
37285
37349
|
updatedAt: number()
|
|
37286
37350
|
});
|
|
37351
|
+
Object.freeze(Object.fromEntries([{
|
|
37352
|
+
stepId: "face-embedding",
|
|
37353
|
+
label: "Face recognition model",
|
|
37354
|
+
defaultModelId: "arcface-r100",
|
|
37355
|
+
indexName: "the enrolled face gallery",
|
|
37356
|
+
options: [
|
|
37357
|
+
{
|
|
37358
|
+
id: "arcface-r100",
|
|
37359
|
+
label: "ArcFace (ResNet34)"
|
|
37360
|
+
},
|
|
37361
|
+
{
|
|
37362
|
+
id: "auraface-r100",
|
|
37363
|
+
label: "AuraFace R100"
|
|
37364
|
+
},
|
|
37365
|
+
{
|
|
37366
|
+
id: "inception-resnet-v1",
|
|
37367
|
+
label: "Inception ResNet V1"
|
|
37368
|
+
}
|
|
37369
|
+
]
|
|
37370
|
+
}, {
|
|
37371
|
+
stepId: "clip-embedding",
|
|
37372
|
+
label: "Semantic search model",
|
|
37373
|
+
defaultModelId: "mobileclip-s1",
|
|
37374
|
+
indexName: "the object semantic-search index",
|
|
37375
|
+
options: [{
|
|
37376
|
+
id: "mobileclip-s1",
|
|
37377
|
+
label: "MobileCLIP S1"
|
|
37378
|
+
}, {
|
|
37379
|
+
id: "mobileclip-s2",
|
|
37380
|
+
label: "MobileCLIP S2"
|
|
37381
|
+
}]
|
|
37382
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37383
|
+
string().min(1);
|
|
37287
37384
|
object({
|
|
37288
37385
|
/**
|
|
37289
37386
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37304,10 +37401,21 @@ object({
|
|
|
37304
37401
|
*/
|
|
37305
37402
|
square: boolean()
|
|
37306
37403
|
});
|
|
37307
|
-
|
|
37404
|
+
/**
|
|
37405
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37406
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37407
|
+
*/
|
|
37408
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37308
37409
|
paddingRatio: .15,
|
|
37309
37410
|
square: false
|
|
37310
|
-
}
|
|
37411
|
+
};
|
|
37412
|
+
Object.freeze({
|
|
37413
|
+
x: 0,
|
|
37414
|
+
y: 0,
|
|
37415
|
+
w: 1,
|
|
37416
|
+
h: 1
|
|
37417
|
+
});
|
|
37418
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37311
37419
|
/**
|
|
37312
37420
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37313
37421
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -7565,7 +7565,7 @@ var RecordingBandSchema = object({
|
|
|
7565
7565
|
postBufferSec: number().min(0).optional()
|
|
7566
7566
|
});
|
|
7567
7567
|
({
|
|
7568
|
-
preBufferSec:
|
|
7568
|
+
preBufferSec: 15,
|
|
7569
7569
|
postBufferSec: 30
|
|
7570
7570
|
}).postBufferSec * 1e3;
|
|
7571
7571
|
/**
|
|
@@ -13768,128 +13768,103 @@ var COCO_TO_MACRO = {
|
|
|
13768
13768
|
var AUDIO_MACRO_LABELS = [
|
|
13769
13769
|
{
|
|
13770
13770
|
id: "speech",
|
|
13771
|
-
name: "Speech"
|
|
13772
|
-
icon: "🗣️"
|
|
13771
|
+
name: "Speech"
|
|
13773
13772
|
},
|
|
13774
13773
|
{
|
|
13775
13774
|
id: "scream",
|
|
13776
|
-
name: "Scream / Shout"
|
|
13777
|
-
icon: "😱"
|
|
13775
|
+
name: "Scream / Shout"
|
|
13778
13776
|
},
|
|
13779
13777
|
{
|
|
13780
13778
|
id: "crying",
|
|
13781
|
-
name: "Crying / Baby"
|
|
13782
|
-
icon: "😢"
|
|
13779
|
+
name: "Crying / Baby"
|
|
13783
13780
|
},
|
|
13784
13781
|
{
|
|
13785
13782
|
id: "laughter",
|
|
13786
|
-
name: "Laughter"
|
|
13787
|
-
icon: "😂"
|
|
13783
|
+
name: "Laughter"
|
|
13788
13784
|
},
|
|
13789
13785
|
{
|
|
13790
13786
|
id: "music",
|
|
13791
|
-
name: "Music"
|
|
13792
|
-
icon: "🎵"
|
|
13787
|
+
name: "Music"
|
|
13793
13788
|
},
|
|
13794
13789
|
{
|
|
13795
13790
|
id: "dog",
|
|
13796
|
-
name: "Dog"
|
|
13797
|
-
icon: "🐕"
|
|
13791
|
+
name: "Dog"
|
|
13798
13792
|
},
|
|
13799
13793
|
{
|
|
13800
13794
|
id: "cat",
|
|
13801
|
-
name: "Cat"
|
|
13802
|
-
icon: "🐈"
|
|
13795
|
+
name: "Cat"
|
|
13803
13796
|
},
|
|
13804
13797
|
{
|
|
13805
13798
|
id: "bird",
|
|
13806
|
-
name: "Bird"
|
|
13807
|
-
icon: "🐦"
|
|
13799
|
+
name: "Bird"
|
|
13808
13800
|
},
|
|
13809
13801
|
{
|
|
13810
13802
|
id: "animal",
|
|
13811
|
-
name: "Animal (other)"
|
|
13812
|
-
icon: "🐾"
|
|
13803
|
+
name: "Animal (other)"
|
|
13813
13804
|
},
|
|
13814
13805
|
{
|
|
13815
13806
|
id: "alarm",
|
|
13816
|
-
name: "Alarm / Siren"
|
|
13817
|
-
icon: "🚨"
|
|
13807
|
+
name: "Alarm / Siren"
|
|
13818
13808
|
},
|
|
13819
13809
|
{
|
|
13820
13810
|
id: "doorbell",
|
|
13821
|
-
name: "Doorbell / Knock"
|
|
13822
|
-
icon: "🔔"
|
|
13811
|
+
name: "Doorbell / Knock"
|
|
13823
13812
|
},
|
|
13824
13813
|
{
|
|
13825
13814
|
id: "glass_breaking",
|
|
13826
|
-
name: "Glass Breaking"
|
|
13827
|
-
icon: "💥"
|
|
13815
|
+
name: "Glass Breaking"
|
|
13828
13816
|
},
|
|
13829
13817
|
{
|
|
13830
13818
|
id: "gunshot",
|
|
13831
|
-
name: "Gunshot / Explosion"
|
|
13832
|
-
icon: "💣"
|
|
13819
|
+
name: "Gunshot / Explosion"
|
|
13833
13820
|
},
|
|
13834
13821
|
{
|
|
13835
13822
|
id: "vehicle",
|
|
13836
|
-
name: "Vehicle"
|
|
13837
|
-
icon: "🚗"
|
|
13823
|
+
name: "Vehicle"
|
|
13838
13824
|
},
|
|
13839
13825
|
{
|
|
13840
13826
|
id: "siren",
|
|
13841
|
-
name: "Emergency Siren"
|
|
13842
|
-
icon: "🚑"
|
|
13827
|
+
name: "Emergency Siren"
|
|
13843
13828
|
},
|
|
13844
13829
|
{
|
|
13845
13830
|
id: "fire",
|
|
13846
|
-
name: "Fire / Smoke"
|
|
13847
|
-
icon: "🔥"
|
|
13831
|
+
name: "Fire / Smoke"
|
|
13848
13832
|
},
|
|
13849
13833
|
{
|
|
13850
13834
|
id: "water",
|
|
13851
|
-
name: "Water"
|
|
13852
|
-
icon: "💧"
|
|
13835
|
+
name: "Water"
|
|
13853
13836
|
},
|
|
13854
13837
|
{
|
|
13855
13838
|
id: "wind",
|
|
13856
|
-
name: "Wind / Weather"
|
|
13857
|
-
icon: "🌬️"
|
|
13839
|
+
name: "Wind / Weather"
|
|
13858
13840
|
},
|
|
13859
13841
|
{
|
|
13860
13842
|
id: "door",
|
|
13861
|
-
name: "Door"
|
|
13862
|
-
icon: "🚪"
|
|
13843
|
+
name: "Door"
|
|
13863
13844
|
},
|
|
13864
13845
|
{
|
|
13865
13846
|
id: "footsteps",
|
|
13866
|
-
name: "Footsteps"
|
|
13867
|
-
icon: "👣"
|
|
13847
|
+
name: "Footsteps"
|
|
13868
13848
|
},
|
|
13869
13849
|
{
|
|
13870
13850
|
id: "crowd",
|
|
13871
|
-
name: "Crowd / Chatter"
|
|
13872
|
-
icon: "👥"
|
|
13851
|
+
name: "Crowd / Chatter"
|
|
13873
13852
|
},
|
|
13874
13853
|
{
|
|
13875
13854
|
id: "telephone",
|
|
13876
|
-
name: "Telephone"
|
|
13877
|
-
icon: "📞"
|
|
13855
|
+
name: "Telephone"
|
|
13878
13856
|
},
|
|
13879
13857
|
{
|
|
13880
13858
|
id: "engine",
|
|
13881
|
-
name: "Engine / Motor"
|
|
13882
|
-
icon: "⚙️"
|
|
13859
|
+
name: "Engine / Motor"
|
|
13883
13860
|
},
|
|
13884
13861
|
{
|
|
13885
13862
|
id: "tools",
|
|
13886
|
-
name: "Tools / Construction"
|
|
13887
|
-
icon: "🔨"
|
|
13863
|
+
name: "Tools / Construction"
|
|
13888
13864
|
},
|
|
13889
13865
|
{
|
|
13890
13866
|
id: "silence",
|
|
13891
|
-
name: "Silence"
|
|
13892
|
-
icon: "🤫"
|
|
13867
|
+
name: "Silence"
|
|
13893
13868
|
}
|
|
13894
13869
|
];
|
|
13895
13870
|
var YAMNET_TO_MACRO = {
|
|
@@ -16391,7 +16366,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16391
16366
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16392
16367
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16393
16368
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16394
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16369
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16395
16370
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16396
16371
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16397
16372
|
* (`getObjectEvents` et al.).
|
|
@@ -16686,6 +16661,35 @@ var TrackSchema = object({
|
|
|
16686
16661
|
*/
|
|
16687
16662
|
hasFace: boolean().optional(),
|
|
16688
16663
|
/**
|
|
16664
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16665
|
+
* face an operator could ASSIGN to an identity.
|
|
16666
|
+
*
|
|
16667
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16668
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16669
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16670
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16671
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16672
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16673
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16674
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16675
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16676
|
+
* operator something to assign and delivers nothing.
|
|
16677
|
+
*
|
|
16678
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16679
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16680
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16681
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16682
|
+
*
|
|
16683
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16684
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16685
|
+
*
|
|
16686
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16687
|
+
* before the column omits it, and so does every server that predates the
|
|
16688
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16689
|
+
* never infer "no assignable face".
|
|
16690
|
+
*/
|
|
16691
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16692
|
+
/**
|
|
16689
16693
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16690
16694
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16691
16695
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -18075,6 +18079,32 @@ var DetailResultSchema = object({
|
|
|
18075
18079
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
18076
18080
|
bbox: NativeCropBboxSchema.optional(),
|
|
18077
18081
|
embedding: string().optional(),
|
|
18082
|
+
/**
|
|
18083
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
18084
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
18085
|
+
* the consuming gate treats as accept — never as reject.
|
|
18086
|
+
*/
|
|
18087
|
+
embeddingMagnitude: number().optional(),
|
|
18088
|
+
/**
|
|
18089
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
18090
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
18091
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
18092
|
+
* the inference this model exists to forbid.
|
|
18093
|
+
*
|
|
18094
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
18095
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
18096
|
+
* its previous assumption instead of refusing.
|
|
18097
|
+
*
|
|
18098
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
18099
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
18100
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
18101
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
18102
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
18103
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
18104
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
18105
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
18106
|
+
*/
|
|
18107
|
+
embeddingModelId: string().optional(),
|
|
18078
18108
|
label: string().optional(),
|
|
18079
18109
|
/**
|
|
18080
18110
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19485,6 +19515,7 @@ DeviceType.Camera, method(object({
|
|
|
19485
19515
|
isBattery: boolean(),
|
|
19486
19516
|
reason: _enum([
|
|
19487
19517
|
"disabled",
|
|
19518
|
+
"offline",
|
|
19488
19519
|
"sleeping",
|
|
19489
19520
|
"unreachable",
|
|
19490
19521
|
"waking"
|
|
@@ -19530,9 +19561,17 @@ targets: array(object({
|
|
|
19530
19561
|
sleeping: boolean(),
|
|
19531
19562
|
/** Current device state rendered over the cached frame. State images
|
|
19532
19563
|
* remain authoritative even when their photographic background is
|
|
19533
|
-
* old; null means the link must carry a current camera frame.
|
|
19564
|
+
* old; null means the link must carry a current camera frame.
|
|
19565
|
+
*
|
|
19566
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19567
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19568
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19569
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19570
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19571
|
+
* state. */
|
|
19534
19572
|
stateReason: _enum([
|
|
19535
19573
|
"disabled",
|
|
19574
|
+
"offline",
|
|
19536
19575
|
"sleeping",
|
|
19537
19576
|
"unreachable",
|
|
19538
19577
|
"waking"
|
|
@@ -26251,9 +26290,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
26251
26290
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
26252
26291
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
26253
26292
|
locationIds: array(string()).optional(),
|
|
26254
|
-
/**
|
|
26293
|
+
/**
|
|
26294
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
26295
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
26296
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
26297
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
26298
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
26299
|
+
*/
|
|
26300
|
+
root: string().optional(),
|
|
26301
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
26302
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
26303
|
+
* also holds everything that is not recordings. Volume fill is
|
|
26304
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
26255
26305
|
usedBytes: number(),
|
|
26256
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
26306
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
26307
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
26257
26308
|
availableBytes: number().nullable(),
|
|
26258
26309
|
/** Total bytes of the location's volume; null when unknown. */
|
|
26259
26310
|
totalBytes: number().nullable()
|
|
@@ -26265,7 +26316,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
26265
26316
|
nodeId: string(),
|
|
26266
26317
|
totalUsedBytes: number(),
|
|
26267
26318
|
devices: array(RecordingDeviceUsageSchema),
|
|
26268
|
-
|
|
26319
|
+
/**
|
|
26320
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
26321
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
26322
|
+
* router, so a hub whose framework train predates a change to this array
|
|
26323
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
26324
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
26325
|
+
* missing disk bar.
|
|
26326
|
+
*/
|
|
26327
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
26269
26328
|
});
|
|
26270
26329
|
/**
|
|
26271
26330
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37050,8 +37109,13 @@ Object.freeze({
|
|
|
37050
37109
|
"network-access": "ingress",
|
|
37051
37110
|
"smtp-provider": "email"
|
|
37052
37111
|
});
|
|
37053
|
-
|
|
37112
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37113
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37114
|
+
hitPercent: 60,
|
|
37115
|
+
samplingSeconds: 10
|
|
37116
|
+
};
|
|
37054
37117
|
new Set(["devices", "classes"]);
|
|
37118
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37055
37119
|
/**
|
|
37056
37120
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37057
37121
|
*
|
|
@@ -37283,6 +37347,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
37283
37347
|
createdAt: number(),
|
|
37284
37348
|
updatedAt: number()
|
|
37285
37349
|
});
|
|
37350
|
+
Object.freeze(Object.fromEntries([{
|
|
37351
|
+
stepId: "face-embedding",
|
|
37352
|
+
label: "Face recognition model",
|
|
37353
|
+
defaultModelId: "arcface-r100",
|
|
37354
|
+
indexName: "the enrolled face gallery",
|
|
37355
|
+
options: [
|
|
37356
|
+
{
|
|
37357
|
+
id: "arcface-r100",
|
|
37358
|
+
label: "ArcFace (ResNet34)"
|
|
37359
|
+
},
|
|
37360
|
+
{
|
|
37361
|
+
id: "auraface-r100",
|
|
37362
|
+
label: "AuraFace R100"
|
|
37363
|
+
},
|
|
37364
|
+
{
|
|
37365
|
+
id: "inception-resnet-v1",
|
|
37366
|
+
label: "Inception ResNet V1"
|
|
37367
|
+
}
|
|
37368
|
+
]
|
|
37369
|
+
}, {
|
|
37370
|
+
stepId: "clip-embedding",
|
|
37371
|
+
label: "Semantic search model",
|
|
37372
|
+
defaultModelId: "mobileclip-s1",
|
|
37373
|
+
indexName: "the object semantic-search index",
|
|
37374
|
+
options: [{
|
|
37375
|
+
id: "mobileclip-s1",
|
|
37376
|
+
label: "MobileCLIP S1"
|
|
37377
|
+
}, {
|
|
37378
|
+
id: "mobileclip-s2",
|
|
37379
|
+
label: "MobileCLIP S2"
|
|
37380
|
+
}]
|
|
37381
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37382
|
+
string().min(1);
|
|
37286
37383
|
object({
|
|
37287
37384
|
/**
|
|
37288
37385
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -37303,10 +37400,21 @@ object({
|
|
|
37303
37400
|
*/
|
|
37304
37401
|
square: boolean()
|
|
37305
37402
|
});
|
|
37306
|
-
|
|
37403
|
+
/**
|
|
37404
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
37405
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
37406
|
+
*/
|
|
37407
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
37307
37408
|
paddingRatio: .15,
|
|
37308
37409
|
square: false
|
|
37309
|
-
}
|
|
37410
|
+
};
|
|
37411
|
+
Object.freeze({
|
|
37412
|
+
x: 0,
|
|
37413
|
+
y: 0,
|
|
37414
|
+
w: 1,
|
|
37415
|
+
h: 1
|
|
37416
|
+
});
|
|
37417
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
37310
37418
|
/**
|
|
37311
37419
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
37312
37420
|
*
|
package/package.json
CHANGED