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