@camstack/addon-provider-onvif 1.2.21 → 1.2.23
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
|
@@ -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
|
/**
|
|
@@ -13559,128 +13559,103 @@ var COCO_TO_MACRO = {
|
|
|
13559
13559
|
var AUDIO_MACRO_LABELS = [
|
|
13560
13560
|
{
|
|
13561
13561
|
id: "speech",
|
|
13562
|
-
name: "Speech"
|
|
13563
|
-
icon: "🗣️"
|
|
13562
|
+
name: "Speech"
|
|
13564
13563
|
},
|
|
13565
13564
|
{
|
|
13566
13565
|
id: "scream",
|
|
13567
|
-
name: "Scream / Shout"
|
|
13568
|
-
icon: "😱"
|
|
13566
|
+
name: "Scream / Shout"
|
|
13569
13567
|
},
|
|
13570
13568
|
{
|
|
13571
13569
|
id: "crying",
|
|
13572
|
-
name: "Crying / Baby"
|
|
13573
|
-
icon: "😢"
|
|
13570
|
+
name: "Crying / Baby"
|
|
13574
13571
|
},
|
|
13575
13572
|
{
|
|
13576
13573
|
id: "laughter",
|
|
13577
|
-
name: "Laughter"
|
|
13578
|
-
icon: "😂"
|
|
13574
|
+
name: "Laughter"
|
|
13579
13575
|
},
|
|
13580
13576
|
{
|
|
13581
13577
|
id: "music",
|
|
13582
|
-
name: "Music"
|
|
13583
|
-
icon: "🎵"
|
|
13578
|
+
name: "Music"
|
|
13584
13579
|
},
|
|
13585
13580
|
{
|
|
13586
13581
|
id: "dog",
|
|
13587
|
-
name: "Dog"
|
|
13588
|
-
icon: "🐕"
|
|
13582
|
+
name: "Dog"
|
|
13589
13583
|
},
|
|
13590
13584
|
{
|
|
13591
13585
|
id: "cat",
|
|
13592
|
-
name: "Cat"
|
|
13593
|
-
icon: "🐈"
|
|
13586
|
+
name: "Cat"
|
|
13594
13587
|
},
|
|
13595
13588
|
{
|
|
13596
13589
|
id: "bird",
|
|
13597
|
-
name: "Bird"
|
|
13598
|
-
icon: "🐦"
|
|
13590
|
+
name: "Bird"
|
|
13599
13591
|
},
|
|
13600
13592
|
{
|
|
13601
13593
|
id: "animal",
|
|
13602
|
-
name: "Animal (other)"
|
|
13603
|
-
icon: "🐾"
|
|
13594
|
+
name: "Animal (other)"
|
|
13604
13595
|
},
|
|
13605
13596
|
{
|
|
13606
13597
|
id: "alarm",
|
|
13607
|
-
name: "Alarm / Siren"
|
|
13608
|
-
icon: "🚨"
|
|
13598
|
+
name: "Alarm / Siren"
|
|
13609
13599
|
},
|
|
13610
13600
|
{
|
|
13611
13601
|
id: "doorbell",
|
|
13612
|
-
name: "Doorbell / Knock"
|
|
13613
|
-
icon: "🔔"
|
|
13602
|
+
name: "Doorbell / Knock"
|
|
13614
13603
|
},
|
|
13615
13604
|
{
|
|
13616
13605
|
id: "glass_breaking",
|
|
13617
|
-
name: "Glass Breaking"
|
|
13618
|
-
icon: "💥"
|
|
13606
|
+
name: "Glass Breaking"
|
|
13619
13607
|
},
|
|
13620
13608
|
{
|
|
13621
13609
|
id: "gunshot",
|
|
13622
|
-
name: "Gunshot / Explosion"
|
|
13623
|
-
icon: "💣"
|
|
13610
|
+
name: "Gunshot / Explosion"
|
|
13624
13611
|
},
|
|
13625
13612
|
{
|
|
13626
13613
|
id: "vehicle",
|
|
13627
|
-
name: "Vehicle"
|
|
13628
|
-
icon: "🚗"
|
|
13614
|
+
name: "Vehicle"
|
|
13629
13615
|
},
|
|
13630
13616
|
{
|
|
13631
13617
|
id: "siren",
|
|
13632
|
-
name: "Emergency Siren"
|
|
13633
|
-
icon: "🚑"
|
|
13618
|
+
name: "Emergency Siren"
|
|
13634
13619
|
},
|
|
13635
13620
|
{
|
|
13636
13621
|
id: "fire",
|
|
13637
|
-
name: "Fire / Smoke"
|
|
13638
|
-
icon: "🔥"
|
|
13622
|
+
name: "Fire / Smoke"
|
|
13639
13623
|
},
|
|
13640
13624
|
{
|
|
13641
13625
|
id: "water",
|
|
13642
|
-
name: "Water"
|
|
13643
|
-
icon: "💧"
|
|
13626
|
+
name: "Water"
|
|
13644
13627
|
},
|
|
13645
13628
|
{
|
|
13646
13629
|
id: "wind",
|
|
13647
|
-
name: "Wind / Weather"
|
|
13648
|
-
icon: "🌬️"
|
|
13630
|
+
name: "Wind / Weather"
|
|
13649
13631
|
},
|
|
13650
13632
|
{
|
|
13651
13633
|
id: "door",
|
|
13652
|
-
name: "Door"
|
|
13653
|
-
icon: "🚪"
|
|
13634
|
+
name: "Door"
|
|
13654
13635
|
},
|
|
13655
13636
|
{
|
|
13656
13637
|
id: "footsteps",
|
|
13657
|
-
name: "Footsteps"
|
|
13658
|
-
icon: "👣"
|
|
13638
|
+
name: "Footsteps"
|
|
13659
13639
|
},
|
|
13660
13640
|
{
|
|
13661
13641
|
id: "crowd",
|
|
13662
|
-
name: "Crowd / Chatter"
|
|
13663
|
-
icon: "👥"
|
|
13642
|
+
name: "Crowd / Chatter"
|
|
13664
13643
|
},
|
|
13665
13644
|
{
|
|
13666
13645
|
id: "telephone",
|
|
13667
|
-
name: "Telephone"
|
|
13668
|
-
icon: "📞"
|
|
13646
|
+
name: "Telephone"
|
|
13669
13647
|
},
|
|
13670
13648
|
{
|
|
13671
13649
|
id: "engine",
|
|
13672
|
-
name: "Engine / Motor"
|
|
13673
|
-
icon: "⚙️"
|
|
13650
|
+
name: "Engine / Motor"
|
|
13674
13651
|
},
|
|
13675
13652
|
{
|
|
13676
13653
|
id: "tools",
|
|
13677
|
-
name: "Tools / Construction"
|
|
13678
|
-
icon: "🔨"
|
|
13654
|
+
name: "Tools / Construction"
|
|
13679
13655
|
},
|
|
13680
13656
|
{
|
|
13681
13657
|
id: "silence",
|
|
13682
|
-
name: "Silence"
|
|
13683
|
-
icon: "🤫"
|
|
13658
|
+
name: "Silence"
|
|
13684
13659
|
}
|
|
13685
13660
|
];
|
|
13686
13661
|
var YAMNET_TO_MACRO = {
|
|
@@ -16144,7 +16119,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16144
16119
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16145
16120
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16146
16121
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16147
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16122
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16148
16123
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16149
16124
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16150
16125
|
* (`getObjectEvents` et al.).
|
|
@@ -16439,6 +16414,35 @@ var TrackSchema = object({
|
|
|
16439
16414
|
*/
|
|
16440
16415
|
hasFace: boolean().optional(),
|
|
16441
16416
|
/**
|
|
16417
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16418
|
+
* face an operator could ASSIGN to an identity.
|
|
16419
|
+
*
|
|
16420
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16421
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16422
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16423
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16424
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16425
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16426
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16427
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16428
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16429
|
+
* operator something to assign and delivers nothing.
|
|
16430
|
+
*
|
|
16431
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16432
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16433
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16434
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16435
|
+
*
|
|
16436
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16437
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16438
|
+
*
|
|
16439
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16440
|
+
* before the column omits it, and so does every server that predates the
|
|
16441
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16442
|
+
* never infer "no assignable face".
|
|
16443
|
+
*/
|
|
16444
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16445
|
+
/**
|
|
16442
16446
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16443
16447
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16444
16448
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -17788,6 +17792,32 @@ var DetailResultSchema = object({
|
|
|
17788
17792
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
17789
17793
|
bbox: NativeCropBboxSchema.optional(),
|
|
17790
17794
|
embedding: string().optional(),
|
|
17795
|
+
/**
|
|
17796
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
17797
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
17798
|
+
* the consuming gate treats as accept — never as reject.
|
|
17799
|
+
*/
|
|
17800
|
+
embeddingMagnitude: number().optional(),
|
|
17801
|
+
/**
|
|
17802
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
17803
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
17804
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
17805
|
+
* the inference this model exists to forbid.
|
|
17806
|
+
*
|
|
17807
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
17808
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
17809
|
+
* its previous assumption instead of refusing.
|
|
17810
|
+
*
|
|
17811
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
17812
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
17813
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
17814
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
17815
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
17816
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
17817
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
17818
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
17819
|
+
*/
|
|
17820
|
+
embeddingModelId: string().optional(),
|
|
17791
17821
|
label: string().optional(),
|
|
17792
17822
|
/**
|
|
17793
17823
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19252,6 +19282,7 @@ var snapshotCapability = {
|
|
|
19252
19282
|
isBattery: boolean(),
|
|
19253
19283
|
reason: _enum([
|
|
19254
19284
|
"disabled",
|
|
19285
|
+
"offline",
|
|
19255
19286
|
"sleeping",
|
|
19256
19287
|
"unreachable",
|
|
19257
19288
|
"waking"
|
|
@@ -19341,9 +19372,17 @@ targets: array(object({
|
|
|
19341
19372
|
sleeping: boolean(),
|
|
19342
19373
|
/** Current device state rendered over the cached frame. State images
|
|
19343
19374
|
* remain authoritative even when their photographic background is
|
|
19344
|
-
* old; null means the link must carry a current camera frame.
|
|
19375
|
+
* old; null means the link must carry a current camera frame.
|
|
19376
|
+
*
|
|
19377
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19378
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19379
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19380
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19381
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19382
|
+
* state. */
|
|
19345
19383
|
stateReason: _enum([
|
|
19346
19384
|
"disabled",
|
|
19385
|
+
"offline",
|
|
19347
19386
|
"sleeping",
|
|
19348
19387
|
"unreachable",
|
|
19349
19388
|
"waking"
|
|
@@ -24422,9 +24461,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24422
24461
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24423
24462
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24424
24463
|
locationIds: array(string()).optional(),
|
|
24425
|
-
/**
|
|
24464
|
+
/**
|
|
24465
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24466
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24467
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24468
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24469
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24470
|
+
*/
|
|
24471
|
+
root: string().optional(),
|
|
24472
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24473
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24474
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24475
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24426
24476
|
usedBytes: number(),
|
|
24427
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24477
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24478
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24428
24479
|
availableBytes: number().nullable(),
|
|
24429
24480
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24430
24481
|
totalBytes: number().nullable()
|
|
@@ -24436,7 +24487,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24436
24487
|
nodeId: string(),
|
|
24437
24488
|
totalUsedBytes: number(),
|
|
24438
24489
|
devices: array(RecordingDeviceUsageSchema),
|
|
24439
|
-
|
|
24490
|
+
/**
|
|
24491
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24492
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24493
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24494
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24495
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24496
|
+
* missing disk bar.
|
|
24497
|
+
*/
|
|
24498
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24440
24499
|
});
|
|
24441
24500
|
/**
|
|
24442
24501
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33962,8 +34021,13 @@ Object.freeze({
|
|
|
33962
34021
|
"network-access": "ingress",
|
|
33963
34022
|
"smtp-provider": "email"
|
|
33964
34023
|
});
|
|
33965
|
-
|
|
34024
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
34025
|
+
var NC_AUDIO_DEFAULTS = {
|
|
34026
|
+
hitPercent: 60,
|
|
34027
|
+
samplingSeconds: 10
|
|
34028
|
+
};
|
|
33966
34029
|
new Set(["devices", "classes"]);
|
|
34030
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33967
34031
|
/**
|
|
33968
34032
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33969
34033
|
*
|
|
@@ -34195,6 +34259,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
34195
34259
|
createdAt: number(),
|
|
34196
34260
|
updatedAt: number()
|
|
34197
34261
|
});
|
|
34262
|
+
Object.freeze(Object.fromEntries([{
|
|
34263
|
+
stepId: "face-embedding",
|
|
34264
|
+
label: "Face recognition model",
|
|
34265
|
+
defaultModelId: "arcface-r100",
|
|
34266
|
+
indexName: "the enrolled face gallery",
|
|
34267
|
+
options: [
|
|
34268
|
+
{
|
|
34269
|
+
id: "arcface-r100",
|
|
34270
|
+
label: "ArcFace (ResNet34)"
|
|
34271
|
+
},
|
|
34272
|
+
{
|
|
34273
|
+
id: "auraface-r100",
|
|
34274
|
+
label: "AuraFace R100"
|
|
34275
|
+
},
|
|
34276
|
+
{
|
|
34277
|
+
id: "inception-resnet-v1",
|
|
34278
|
+
label: "Inception ResNet V1"
|
|
34279
|
+
}
|
|
34280
|
+
]
|
|
34281
|
+
}, {
|
|
34282
|
+
stepId: "clip-embedding",
|
|
34283
|
+
label: "Semantic search model",
|
|
34284
|
+
defaultModelId: "mobileclip-s1",
|
|
34285
|
+
indexName: "the object semantic-search index",
|
|
34286
|
+
options: [{
|
|
34287
|
+
id: "mobileclip-s1",
|
|
34288
|
+
label: "MobileCLIP S1"
|
|
34289
|
+
}, {
|
|
34290
|
+
id: "mobileclip-s2",
|
|
34291
|
+
label: "MobileCLIP S2"
|
|
34292
|
+
}]
|
|
34293
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34294
|
+
string().min(1);
|
|
34198
34295
|
object({
|
|
34199
34296
|
/**
|
|
34200
34297
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -34215,10 +34312,21 @@ object({
|
|
|
34215
34312
|
*/
|
|
34216
34313
|
square: boolean()
|
|
34217
34314
|
});
|
|
34218
|
-
|
|
34315
|
+
/**
|
|
34316
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
34317
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
34318
|
+
*/
|
|
34319
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
34219
34320
|
paddingRatio: .15,
|
|
34220
34321
|
square: false
|
|
34221
|
-
}
|
|
34322
|
+
};
|
|
34323
|
+
Object.freeze({
|
|
34324
|
+
x: 0,
|
|
34325
|
+
y: 0,
|
|
34326
|
+
w: 1,
|
|
34327
|
+
h: 1
|
|
34328
|
+
});
|
|
34329
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
34222
34330
|
/**
|
|
34223
34331
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
34224
34332
|
*
|
package/dist/addon.mjs
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
|
/**
|
|
@@ -13560,128 +13560,103 @@ var COCO_TO_MACRO = {
|
|
|
13560
13560
|
var AUDIO_MACRO_LABELS = [
|
|
13561
13561
|
{
|
|
13562
13562
|
id: "speech",
|
|
13563
|
-
name: "Speech"
|
|
13564
|
-
icon: "🗣️"
|
|
13563
|
+
name: "Speech"
|
|
13565
13564
|
},
|
|
13566
13565
|
{
|
|
13567
13566
|
id: "scream",
|
|
13568
|
-
name: "Scream / Shout"
|
|
13569
|
-
icon: "😱"
|
|
13567
|
+
name: "Scream / Shout"
|
|
13570
13568
|
},
|
|
13571
13569
|
{
|
|
13572
13570
|
id: "crying",
|
|
13573
|
-
name: "Crying / Baby"
|
|
13574
|
-
icon: "😢"
|
|
13571
|
+
name: "Crying / Baby"
|
|
13575
13572
|
},
|
|
13576
13573
|
{
|
|
13577
13574
|
id: "laughter",
|
|
13578
|
-
name: "Laughter"
|
|
13579
|
-
icon: "😂"
|
|
13575
|
+
name: "Laughter"
|
|
13580
13576
|
},
|
|
13581
13577
|
{
|
|
13582
13578
|
id: "music",
|
|
13583
|
-
name: "Music"
|
|
13584
|
-
icon: "🎵"
|
|
13579
|
+
name: "Music"
|
|
13585
13580
|
},
|
|
13586
13581
|
{
|
|
13587
13582
|
id: "dog",
|
|
13588
|
-
name: "Dog"
|
|
13589
|
-
icon: "🐕"
|
|
13583
|
+
name: "Dog"
|
|
13590
13584
|
},
|
|
13591
13585
|
{
|
|
13592
13586
|
id: "cat",
|
|
13593
|
-
name: "Cat"
|
|
13594
|
-
icon: "🐈"
|
|
13587
|
+
name: "Cat"
|
|
13595
13588
|
},
|
|
13596
13589
|
{
|
|
13597
13590
|
id: "bird",
|
|
13598
|
-
name: "Bird"
|
|
13599
|
-
icon: "🐦"
|
|
13591
|
+
name: "Bird"
|
|
13600
13592
|
},
|
|
13601
13593
|
{
|
|
13602
13594
|
id: "animal",
|
|
13603
|
-
name: "Animal (other)"
|
|
13604
|
-
icon: "🐾"
|
|
13595
|
+
name: "Animal (other)"
|
|
13605
13596
|
},
|
|
13606
13597
|
{
|
|
13607
13598
|
id: "alarm",
|
|
13608
|
-
name: "Alarm / Siren"
|
|
13609
|
-
icon: "🚨"
|
|
13599
|
+
name: "Alarm / Siren"
|
|
13610
13600
|
},
|
|
13611
13601
|
{
|
|
13612
13602
|
id: "doorbell",
|
|
13613
|
-
name: "Doorbell / Knock"
|
|
13614
|
-
icon: "🔔"
|
|
13603
|
+
name: "Doorbell / Knock"
|
|
13615
13604
|
},
|
|
13616
13605
|
{
|
|
13617
13606
|
id: "glass_breaking",
|
|
13618
|
-
name: "Glass Breaking"
|
|
13619
|
-
icon: "💥"
|
|
13607
|
+
name: "Glass Breaking"
|
|
13620
13608
|
},
|
|
13621
13609
|
{
|
|
13622
13610
|
id: "gunshot",
|
|
13623
|
-
name: "Gunshot / Explosion"
|
|
13624
|
-
icon: "💣"
|
|
13611
|
+
name: "Gunshot / Explosion"
|
|
13625
13612
|
},
|
|
13626
13613
|
{
|
|
13627
13614
|
id: "vehicle",
|
|
13628
|
-
name: "Vehicle"
|
|
13629
|
-
icon: "🚗"
|
|
13615
|
+
name: "Vehicle"
|
|
13630
13616
|
},
|
|
13631
13617
|
{
|
|
13632
13618
|
id: "siren",
|
|
13633
|
-
name: "Emergency Siren"
|
|
13634
|
-
icon: "🚑"
|
|
13619
|
+
name: "Emergency Siren"
|
|
13635
13620
|
},
|
|
13636
13621
|
{
|
|
13637
13622
|
id: "fire",
|
|
13638
|
-
name: "Fire / Smoke"
|
|
13639
|
-
icon: "🔥"
|
|
13623
|
+
name: "Fire / Smoke"
|
|
13640
13624
|
},
|
|
13641
13625
|
{
|
|
13642
13626
|
id: "water",
|
|
13643
|
-
name: "Water"
|
|
13644
|
-
icon: "💧"
|
|
13627
|
+
name: "Water"
|
|
13645
13628
|
},
|
|
13646
13629
|
{
|
|
13647
13630
|
id: "wind",
|
|
13648
|
-
name: "Wind / Weather"
|
|
13649
|
-
icon: "🌬️"
|
|
13631
|
+
name: "Wind / Weather"
|
|
13650
13632
|
},
|
|
13651
13633
|
{
|
|
13652
13634
|
id: "door",
|
|
13653
|
-
name: "Door"
|
|
13654
|
-
icon: "🚪"
|
|
13635
|
+
name: "Door"
|
|
13655
13636
|
},
|
|
13656
13637
|
{
|
|
13657
13638
|
id: "footsteps",
|
|
13658
|
-
name: "Footsteps"
|
|
13659
|
-
icon: "👣"
|
|
13639
|
+
name: "Footsteps"
|
|
13660
13640
|
},
|
|
13661
13641
|
{
|
|
13662
13642
|
id: "crowd",
|
|
13663
|
-
name: "Crowd / Chatter"
|
|
13664
|
-
icon: "👥"
|
|
13643
|
+
name: "Crowd / Chatter"
|
|
13665
13644
|
},
|
|
13666
13645
|
{
|
|
13667
13646
|
id: "telephone",
|
|
13668
|
-
name: "Telephone"
|
|
13669
|
-
icon: "📞"
|
|
13647
|
+
name: "Telephone"
|
|
13670
13648
|
},
|
|
13671
13649
|
{
|
|
13672
13650
|
id: "engine",
|
|
13673
|
-
name: "Engine / Motor"
|
|
13674
|
-
icon: "⚙️"
|
|
13651
|
+
name: "Engine / Motor"
|
|
13675
13652
|
},
|
|
13676
13653
|
{
|
|
13677
13654
|
id: "tools",
|
|
13678
|
-
name: "Tools / Construction"
|
|
13679
|
-
icon: "🔨"
|
|
13655
|
+
name: "Tools / Construction"
|
|
13680
13656
|
},
|
|
13681
13657
|
{
|
|
13682
13658
|
id: "silence",
|
|
13683
|
-
name: "Silence"
|
|
13684
|
-
icon: "🤫"
|
|
13659
|
+
name: "Silence"
|
|
13685
13660
|
}
|
|
13686
13661
|
];
|
|
13687
13662
|
var YAMNET_TO_MACRO = {
|
|
@@ -16145,7 +16120,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16145
16120
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16146
16121
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16147
16122
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16148
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16123
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16149
16124
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16150
16125
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16151
16126
|
* (`getObjectEvents` et al.).
|
|
@@ -16440,6 +16415,35 @@ var TrackSchema = object({
|
|
|
16440
16415
|
*/
|
|
16441
16416
|
hasFace: boolean().optional(),
|
|
16442
16417
|
/**
|
|
16418
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16419
|
+
* face an operator could ASSIGN to an identity.
|
|
16420
|
+
*
|
|
16421
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16422
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16423
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16424
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16425
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16426
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16427
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16428
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16429
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16430
|
+
* operator something to assign and delivers nothing.
|
|
16431
|
+
*
|
|
16432
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16433
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16434
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16435
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16436
|
+
*
|
|
16437
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16438
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16439
|
+
*
|
|
16440
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16441
|
+
* before the column omits it, and so does every server that predates the
|
|
16442
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16443
|
+
* never infer "no assignable face".
|
|
16444
|
+
*/
|
|
16445
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16446
|
+
/**
|
|
16443
16447
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16444
16448
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16445
16449
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -17789,6 +17793,32 @@ var DetailResultSchema = object({
|
|
|
17789
17793
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
17790
17794
|
bbox: NativeCropBboxSchema.optional(),
|
|
17791
17795
|
embedding: string().optional(),
|
|
17796
|
+
/**
|
|
17797
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
17798
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
17799
|
+
* the consuming gate treats as accept — never as reject.
|
|
17800
|
+
*/
|
|
17801
|
+
embeddingMagnitude: number().optional(),
|
|
17802
|
+
/**
|
|
17803
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
17804
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
17805
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
17806
|
+
* the inference this model exists to forbid.
|
|
17807
|
+
*
|
|
17808
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
17809
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
17810
|
+
* its previous assumption instead of refusing.
|
|
17811
|
+
*
|
|
17812
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
17813
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
17814
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
17815
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
17816
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
17817
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
17818
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
17819
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
17820
|
+
*/
|
|
17821
|
+
embeddingModelId: string().optional(),
|
|
17792
17822
|
label: string().optional(),
|
|
17793
17823
|
/**
|
|
17794
17824
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19253,6 +19283,7 @@ var snapshotCapability = {
|
|
|
19253
19283
|
isBattery: boolean(),
|
|
19254
19284
|
reason: _enum([
|
|
19255
19285
|
"disabled",
|
|
19286
|
+
"offline",
|
|
19256
19287
|
"sleeping",
|
|
19257
19288
|
"unreachable",
|
|
19258
19289
|
"waking"
|
|
@@ -19342,9 +19373,17 @@ targets: array(object({
|
|
|
19342
19373
|
sleeping: boolean(),
|
|
19343
19374
|
/** Current device state rendered over the cached frame. State images
|
|
19344
19375
|
* remain authoritative even when their photographic background is
|
|
19345
|
-
* old; null means the link must carry a current camera frame.
|
|
19376
|
+
* old; null means the link must carry a current camera frame.
|
|
19377
|
+
*
|
|
19378
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19379
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19380
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19381
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19382
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19383
|
+
* state. */
|
|
19346
19384
|
stateReason: _enum([
|
|
19347
19385
|
"disabled",
|
|
19386
|
+
"offline",
|
|
19348
19387
|
"sleeping",
|
|
19349
19388
|
"unreachable",
|
|
19350
19389
|
"waking"
|
|
@@ -24423,9 +24462,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
24423
24462
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
24424
24463
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
24425
24464
|
locationIds: array(string()).optional(),
|
|
24426
|
-
/**
|
|
24465
|
+
/**
|
|
24466
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
24467
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
24468
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
24469
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
24470
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
24471
|
+
*/
|
|
24472
|
+
root: string().optional(),
|
|
24473
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
24474
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
24475
|
+
* also holds everything that is not recordings. Volume fill is
|
|
24476
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
24427
24477
|
usedBytes: number(),
|
|
24428
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24478
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
24479
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
24429
24480
|
availableBytes: number().nullable(),
|
|
24430
24481
|
/** Total bytes of the location's volume; null when unknown. */
|
|
24431
24482
|
totalBytes: number().nullable()
|
|
@@ -24437,7 +24488,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
24437
24488
|
nodeId: string(),
|
|
24438
24489
|
totalUsedBytes: number(),
|
|
24439
24490
|
devices: array(RecordingDeviceUsageSchema),
|
|
24440
|
-
|
|
24491
|
+
/**
|
|
24492
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
24493
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
24494
|
+
* router, so a hub whose framework train predates a change to this array
|
|
24495
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
24496
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
24497
|
+
* missing disk bar.
|
|
24498
|
+
*/
|
|
24499
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
24441
24500
|
});
|
|
24442
24501
|
/**
|
|
24443
24502
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -33963,8 +34022,13 @@ Object.freeze({
|
|
|
33963
34022
|
"network-access": "ingress",
|
|
33964
34023
|
"smtp-provider": "email"
|
|
33965
34024
|
});
|
|
33966
|
-
|
|
34025
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
34026
|
+
var NC_AUDIO_DEFAULTS = {
|
|
34027
|
+
hitPercent: 60,
|
|
34028
|
+
samplingSeconds: 10
|
|
34029
|
+
};
|
|
33967
34030
|
new Set(["devices", "classes"]);
|
|
34031
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33968
34032
|
/**
|
|
33969
34033
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
33970
34034
|
*
|
|
@@ -34196,6 +34260,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
34196
34260
|
createdAt: number(),
|
|
34197
34261
|
updatedAt: number()
|
|
34198
34262
|
});
|
|
34263
|
+
Object.freeze(Object.fromEntries([{
|
|
34264
|
+
stepId: "face-embedding",
|
|
34265
|
+
label: "Face recognition model",
|
|
34266
|
+
defaultModelId: "arcface-r100",
|
|
34267
|
+
indexName: "the enrolled face gallery",
|
|
34268
|
+
options: [
|
|
34269
|
+
{
|
|
34270
|
+
id: "arcface-r100",
|
|
34271
|
+
label: "ArcFace (ResNet34)"
|
|
34272
|
+
},
|
|
34273
|
+
{
|
|
34274
|
+
id: "auraface-r100",
|
|
34275
|
+
label: "AuraFace R100"
|
|
34276
|
+
},
|
|
34277
|
+
{
|
|
34278
|
+
id: "inception-resnet-v1",
|
|
34279
|
+
label: "Inception ResNet V1"
|
|
34280
|
+
}
|
|
34281
|
+
]
|
|
34282
|
+
}, {
|
|
34283
|
+
stepId: "clip-embedding",
|
|
34284
|
+
label: "Semantic search model",
|
|
34285
|
+
defaultModelId: "mobileclip-s1",
|
|
34286
|
+
indexName: "the object semantic-search index",
|
|
34287
|
+
options: [{
|
|
34288
|
+
id: "mobileclip-s1",
|
|
34289
|
+
label: "MobileCLIP S1"
|
|
34290
|
+
}, {
|
|
34291
|
+
id: "mobileclip-s2",
|
|
34292
|
+
label: "MobileCLIP S2"
|
|
34293
|
+
}]
|
|
34294
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34295
|
+
string().min(1);
|
|
34199
34296
|
object({
|
|
34200
34297
|
/**
|
|
34201
34298
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -34216,10 +34313,21 @@ object({
|
|
|
34216
34313
|
*/
|
|
34217
34314
|
square: boolean()
|
|
34218
34315
|
});
|
|
34219
|
-
|
|
34316
|
+
/**
|
|
34317
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
34318
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
34319
|
+
*/
|
|
34320
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
34220
34321
|
paddingRatio: .15,
|
|
34221
34322
|
square: false
|
|
34222
|
-
}
|
|
34323
|
+
};
|
|
34324
|
+
Object.freeze({
|
|
34325
|
+
x: 0,
|
|
34326
|
+
y: 0,
|
|
34327
|
+
w: 1,
|
|
34328
|
+
h: 1
|
|
34329
|
+
});
|
|
34330
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
34223
34331
|
/**
|
|
34224
34332
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
34225
34333
|
*
|