@camstack/addon-provider-onvif 1.2.22 → 1.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.
Files changed (3) hide show
  1. package/dist/addon.js +204 -61
  2. package/dist/addon.mjs +204 -61
  3. 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: 10,
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
@@ -18663,6 +18693,12 @@ var CameraStatusSchema = object({
18663
18693
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
18664
18694
  fetchedAt: number()
18665
18695
  });
18696
+ var InferenceDeviceExclusionReasonSchema = _enum([
18697
+ "disabled",
18698
+ "unavailable",
18699
+ "cannot-host-camera-root",
18700
+ "accelerator-preferred"
18701
+ ]);
18666
18702
  var NodeInferenceDeviceSchema = object({
18667
18703
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
18668
18704
  key: string(),
@@ -18693,7 +18729,17 @@ var NodeInferenceDeviceSchema = object({
18693
18729
  * available per format; this is the stored selection that becomes the
18694
18730
  * default for EVERY camera landing on this accelerator.
18695
18731
  */
18696
- steps: record(string(), DeviceStepConfigSchema).optional()
18732
+ steps: record(string(), DeviceStepConfigSchema).optional(),
18733
+ /**
18734
+ * `null` when the device IS a camera-root candidate on this node; otherwise
18735
+ * the reason the dispatcher drops it. Computed by the SAME
18736
+ * `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
18737
+ * never disagree with the election — deriving it in the UI from
18738
+ * `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
18739
+ * the node's model catalog) and `accelerator-preferred` (needs the node-wide
18740
+ * "an accelerator is serving" predicate).
18741
+ */
18742
+ exclusion: InferenceDeviceExclusionReasonSchema.nullable()
18697
18743
  });
18698
18744
  var NodeInferenceDevicesSchema = object({
18699
18745
  nodeId: string(),
@@ -19252,6 +19298,7 @@ var snapshotCapability = {
19252
19298
  isBattery: boolean(),
19253
19299
  reason: _enum([
19254
19300
  "disabled",
19301
+ "offline",
19255
19302
  "sleeping",
19256
19303
  "unreachable",
19257
19304
  "waking"
@@ -19341,9 +19388,17 @@ targets: array(object({
19341
19388
  sleeping: boolean(),
19342
19389
  /** Current device state rendered over the cached frame. State images
19343
19390
  * remain authoritative even when their photographic background is
19344
- * old; null means the link must carry a current camera frame. */
19391
+ * old; null means the link must carry a current camera frame.
19392
+ *
19393
+ * **This is the ONLY source a surface may derive an inactive tile
19394
+ * from.** A client that reads a device's `online`/`disabled` flags and
19395
+ * draws its own verdict will disagree with the pixels it is painting
19396
+ * — the frame comes from here, and so must the sentence over it
19397
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19398
+ * state. */
19345
19399
  stateReason: _enum([
19346
19400
  "disabled",
19401
+ "offline",
19347
19402
  "sleeping",
19348
19403
  "unreachable",
19349
19404
  "waking"
@@ -22546,7 +22601,12 @@ var ListResultSchema = object({
22546
22601
  probedAt: number()
22547
22602
  });
22548
22603
  var PreferredSchema = LocalInterfaceSchema.nullable();
22549
- var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22604
+ /**
22605
+ * Candidate base URL for the SDK to race on connect. Order matters —
22606
+ * the SDK should attempt these top-to-bottom with a short per-candidate
22607
+ * timeout (e.g. 1500ms) and cache the winner for the session.
22608
+ */
22609
+ var ConnectionEndpointSchema = object({
22550
22610
  /** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
22551
22611
  label: string(),
22552
22612
  /** Fully-formed base URL with scheme + host + port. */
@@ -22589,7 +22649,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22589
22649
  * ordering between polls.
22590
22650
  */
22591
22651
  priority: number()
22592
- })).readonly() });
22652
+ });
22653
+ /**
22654
+ * Where the advertised local port came from. Ordered most → least
22655
+ * authoritative, and the whole point of returning it: a client must be able to
22656
+ * tell a FACT about the hub's socket from an echo of its own guess.
22657
+ */
22658
+ var LocalPortSourceEnum = _enum([
22659
+ "server-config",
22660
+ "server-env",
22661
+ "caller-hint",
22662
+ "default"
22663
+ ]);
22664
+ /** The port every LAN/loopback `baseUrl` in the same result was built with. */
22665
+ var AdvertisedLocalPortSchema = object({
22666
+ port: number().int().min(1).max(65535),
22667
+ source: LocalPortSourceEnum
22668
+ });
22669
+ var GetConnectionEndpointsResultSchema = object({
22670
+ endpoints: array(ConnectionEndpointSchema).readonly(),
22671
+ /**
22672
+ * The port the hub built the LAN/loopback URLs with, and where that number
22673
+ * came from.
22674
+ *
22675
+ * Returned rather than merely applied, because "the URL is right" and "the
22676
+ * client can KNOW the URL is right" are different properties. A client that
22677
+ * only sees a corrected URL cannot distinguish a hub that fixed the port from
22678
+ * a hub that echoed the port the client sent, so it cannot decide whether to
22679
+ * race the candidate or discard it. With `source` it can: anything but
22680
+ * `caller-hint` is the hub's own socket.
22681
+ *
22682
+ * Absent on hubs predating this field — a client that finds it missing is
22683
+ * talking to an echoing hub and must degrade exactly as it does for
22684
+ * `caller-hint`.
22685
+ */
22686
+ localPort: AdvertisedLocalPortSchema
22687
+ });
22593
22688
  /**
22594
22689
  * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
22595
22690
  * AUTO (resolved from the candidate ranking at send time); `resolved` reports
@@ -22610,8 +22705,13 @@ var AllowedAddressesSchema = object({
22610
22705
  */
22611
22706
  addresses: array(string()).readonly() });
22612
22707
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
22613
- /** Local hub HTTP port to use in base URLs. */
22614
- port: number().int().min(1).max(65535),
22708
+ /**
22709
+ * LEGACY HINT — do not send from new code. Kept optional so clients
22710
+ * written against the echoing contract keep working; the hub uses it
22711
+ * only when it cannot read its own port, and says so via
22712
+ * `localPort.source === 'caller-hint'`.
22713
+ */
22714
+ port: number().int().min(1).max(65535).optional(),
22615
22715
  /** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
22616
22716
  * candidate. Default `true`. */
22617
22717
  includeLoopback: boolean().optional(),
@@ -33987,7 +34087,6 @@ var NC_AUDIO_DEFAULTS = {
33987
34087
  hitPercent: 60,
33988
34088
  samplingSeconds: 10
33989
34089
  };
33990
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33991
34090
  new Set(["devices", "classes"]);
33992
34091
  NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33993
34092
  /**
@@ -34221,6 +34320,39 @@ TimelapseRuleInputSchema.extend({
34221
34320
  createdAt: number(),
34222
34321
  updatedAt: number()
34223
34322
  });
34323
+ Object.freeze(Object.fromEntries([{
34324
+ stepId: "face-embedding",
34325
+ label: "Face recognition model",
34326
+ defaultModelId: "arcface-r100",
34327
+ indexName: "the enrolled face gallery",
34328
+ options: [
34329
+ {
34330
+ id: "arcface-r100",
34331
+ label: "ArcFace (ResNet34)"
34332
+ },
34333
+ {
34334
+ id: "auraface-r100",
34335
+ label: "AuraFace R100"
34336
+ },
34337
+ {
34338
+ id: "inception-resnet-v1",
34339
+ label: "Inception ResNet V1"
34340
+ }
34341
+ ]
34342
+ }, {
34343
+ stepId: "clip-embedding",
34344
+ label: "Semantic search model",
34345
+ defaultModelId: "mobileclip-s1",
34346
+ indexName: "the object semantic-search index",
34347
+ options: [{
34348
+ id: "mobileclip-s1",
34349
+ label: "MobileCLIP S1"
34350
+ }, {
34351
+ id: "mobileclip-s2",
34352
+ label: "MobileCLIP S2"
34353
+ }]
34354
+ }].map((s) => [s.stepId, s.defaultModelId])));
34355
+ string().min(1);
34224
34356
  object({
34225
34357
  /**
34226
34358
  * Fraction of the box's own size added on EACH side before cutting.
@@ -34241,10 +34373,21 @@ object({
34241
34373
  */
34242
34374
  square: boolean()
34243
34375
  });
34244
- ({
34376
+ /**
34377
+ * The convention in force when nobody has configured one — byte-for-byte the
34378
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
34379
+ */
34380
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
34245
34381
  paddingRatio: .15,
34246
34382
  square: false
34247
- }).paddingRatio;
34383
+ };
34384
+ Object.freeze({
34385
+ x: 0,
34386
+ y: 0,
34387
+ w: 1,
34388
+ h: 1
34389
+ });
34390
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
34248
34391
  /**
34249
34392
  * WHICH delivered frames the decode worker retains a native copy of.
34250
34393
  *
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: 10,
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
@@ -18664,6 +18694,12 @@ var CameraStatusSchema = object({
18664
18694
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
18665
18695
  fetchedAt: number()
18666
18696
  });
18697
+ var InferenceDeviceExclusionReasonSchema = _enum([
18698
+ "disabled",
18699
+ "unavailable",
18700
+ "cannot-host-camera-root",
18701
+ "accelerator-preferred"
18702
+ ]);
18667
18703
  var NodeInferenceDeviceSchema = object({
18668
18704
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
18669
18705
  key: string(),
@@ -18694,7 +18730,17 @@ var NodeInferenceDeviceSchema = object({
18694
18730
  * available per format; this is the stored selection that becomes the
18695
18731
  * default for EVERY camera landing on this accelerator.
18696
18732
  */
18697
- steps: record(string(), DeviceStepConfigSchema).optional()
18733
+ steps: record(string(), DeviceStepConfigSchema).optional(),
18734
+ /**
18735
+ * `null` when the device IS a camera-root candidate on this node; otherwise
18736
+ * the reason the dispatcher drops it. Computed by the SAME
18737
+ * `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
18738
+ * never disagree with the election — deriving it in the UI from
18739
+ * `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
18740
+ * the node's model catalog) and `accelerator-preferred` (needs the node-wide
18741
+ * "an accelerator is serving" predicate).
18742
+ */
18743
+ exclusion: InferenceDeviceExclusionReasonSchema.nullable()
18698
18744
  });
18699
18745
  var NodeInferenceDevicesSchema = object({
18700
18746
  nodeId: string(),
@@ -19253,6 +19299,7 @@ var snapshotCapability = {
19253
19299
  isBattery: boolean(),
19254
19300
  reason: _enum([
19255
19301
  "disabled",
19302
+ "offline",
19256
19303
  "sleeping",
19257
19304
  "unreachable",
19258
19305
  "waking"
@@ -19342,9 +19389,17 @@ targets: array(object({
19342
19389
  sleeping: boolean(),
19343
19390
  /** Current device state rendered over the cached frame. State images
19344
19391
  * remain authoritative even when their photographic background is
19345
- * old; null means the link must carry a current camera frame. */
19392
+ * old; null means the link must carry a current camera frame.
19393
+ *
19394
+ * **This is the ONLY source a surface may derive an inactive tile
19395
+ * from.** A client that reads a device's `online`/`disabled` flags and
19396
+ * draws its own verdict will disagree with the pixels it is painting
19397
+ * — the frame comes from here, and so must the sentence over it
19398
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19399
+ * state. */
19346
19400
  stateReason: _enum([
19347
19401
  "disabled",
19402
+ "offline",
19348
19403
  "sleeping",
19349
19404
  "unreachable",
19350
19405
  "waking"
@@ -22547,7 +22602,12 @@ var ListResultSchema = object({
22547
22602
  probedAt: number()
22548
22603
  });
22549
22604
  var PreferredSchema = LocalInterfaceSchema.nullable();
22550
- var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22605
+ /**
22606
+ * Candidate base URL for the SDK to race on connect. Order matters —
22607
+ * the SDK should attempt these top-to-bottom with a short per-candidate
22608
+ * timeout (e.g. 1500ms) and cache the winner for the session.
22609
+ */
22610
+ var ConnectionEndpointSchema = object({
22551
22611
  /** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
22552
22612
  label: string(),
22553
22613
  /** Fully-formed base URL with scheme + host + port. */
@@ -22590,7 +22650,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22590
22650
  * ordering between polls.
22591
22651
  */
22592
22652
  priority: number()
22593
- })).readonly() });
22653
+ });
22654
+ /**
22655
+ * Where the advertised local port came from. Ordered most → least
22656
+ * authoritative, and the whole point of returning it: a client must be able to
22657
+ * tell a FACT about the hub's socket from an echo of its own guess.
22658
+ */
22659
+ var LocalPortSourceEnum = _enum([
22660
+ "server-config",
22661
+ "server-env",
22662
+ "caller-hint",
22663
+ "default"
22664
+ ]);
22665
+ /** The port every LAN/loopback `baseUrl` in the same result was built with. */
22666
+ var AdvertisedLocalPortSchema = object({
22667
+ port: number().int().min(1).max(65535),
22668
+ source: LocalPortSourceEnum
22669
+ });
22670
+ var GetConnectionEndpointsResultSchema = object({
22671
+ endpoints: array(ConnectionEndpointSchema).readonly(),
22672
+ /**
22673
+ * The port the hub built the LAN/loopback URLs with, and where that number
22674
+ * came from.
22675
+ *
22676
+ * Returned rather than merely applied, because "the URL is right" and "the
22677
+ * client can KNOW the URL is right" are different properties. A client that
22678
+ * only sees a corrected URL cannot distinguish a hub that fixed the port from
22679
+ * a hub that echoed the port the client sent, so it cannot decide whether to
22680
+ * race the candidate or discard it. With `source` it can: anything but
22681
+ * `caller-hint` is the hub's own socket.
22682
+ *
22683
+ * Absent on hubs predating this field — a client that finds it missing is
22684
+ * talking to an echoing hub and must degrade exactly as it does for
22685
+ * `caller-hint`.
22686
+ */
22687
+ localPort: AdvertisedLocalPortSchema
22688
+ });
22594
22689
  /**
22595
22690
  * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
22596
22691
  * AUTO (resolved from the candidate ranking at send time); `resolved` reports
@@ -22611,8 +22706,13 @@ var AllowedAddressesSchema = object({
22611
22706
  */
22612
22707
  addresses: array(string()).readonly() });
22613
22708
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
22614
- /** Local hub HTTP port to use in base URLs. */
22615
- port: number().int().min(1).max(65535),
22709
+ /**
22710
+ * LEGACY HINT — do not send from new code. Kept optional so clients
22711
+ * written against the echoing contract keep working; the hub uses it
22712
+ * only when it cannot read its own port, and says so via
22713
+ * `localPort.source === 'caller-hint'`.
22714
+ */
22715
+ port: number().int().min(1).max(65535).optional(),
22616
22716
  /** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
22617
22717
  * candidate. Default `true`. */
22618
22718
  includeLoopback: boolean().optional(),
@@ -33988,7 +34088,6 @@ var NC_AUDIO_DEFAULTS = {
33988
34088
  hitPercent: 60,
33989
34089
  samplingSeconds: 10
33990
34090
  };
33991
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33992
34091
  new Set(["devices", "classes"]);
33993
34092
  NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33994
34093
  /**
@@ -34222,6 +34321,39 @@ TimelapseRuleInputSchema.extend({
34222
34321
  createdAt: number(),
34223
34322
  updatedAt: number()
34224
34323
  });
34324
+ Object.freeze(Object.fromEntries([{
34325
+ stepId: "face-embedding",
34326
+ label: "Face recognition model",
34327
+ defaultModelId: "arcface-r100",
34328
+ indexName: "the enrolled face gallery",
34329
+ options: [
34330
+ {
34331
+ id: "arcface-r100",
34332
+ label: "ArcFace (ResNet34)"
34333
+ },
34334
+ {
34335
+ id: "auraface-r100",
34336
+ label: "AuraFace R100"
34337
+ },
34338
+ {
34339
+ id: "inception-resnet-v1",
34340
+ label: "Inception ResNet V1"
34341
+ }
34342
+ ]
34343
+ }, {
34344
+ stepId: "clip-embedding",
34345
+ label: "Semantic search model",
34346
+ defaultModelId: "mobileclip-s1",
34347
+ indexName: "the object semantic-search index",
34348
+ options: [{
34349
+ id: "mobileclip-s1",
34350
+ label: "MobileCLIP S1"
34351
+ }, {
34352
+ id: "mobileclip-s2",
34353
+ label: "MobileCLIP S2"
34354
+ }]
34355
+ }].map((s) => [s.stepId, s.defaultModelId])));
34356
+ string().min(1);
34225
34357
  object({
34226
34358
  /**
34227
34359
  * Fraction of the box's own size added on EACH side before cutting.
@@ -34242,10 +34374,21 @@ object({
34242
34374
  */
34243
34375
  square: boolean()
34244
34376
  });
34245
- ({
34377
+ /**
34378
+ * The convention in force when nobody has configured one — byte-for-byte the
34379
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
34380
+ */
34381
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
34246
34382
  paddingRatio: .15,
34247
34383
  square: false
34248
- }).paddingRatio;
34384
+ };
34385
+ Object.freeze({
34386
+ x: 0,
34387
+ y: 0,
34388
+ w: 1,
34389
+ h: 1
34390
+ });
34391
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
34249
34392
  /**
34250
34393
  * WHICH delivered frames the decode worker retains a native copy of.
34251
34394
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.22",
3
+ "version": "1.2.24",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",