@camstack/addon-provider-hikvision 1.2.91 → 1.2.93

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 CHANGED
@@ -19053,11 +19053,30 @@ var SensorEventSchema = object({
19053
19053
  value: record(string(), unknown()).nullable(),
19054
19054
  timestamp: number()
19055
19055
  });
19056
+ /**
19057
+ * One stored sighting on a track's trajectory.
19058
+ *
19059
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
19060
+ * arrival order, and the two detector passes interleave, so a consumer must not
19061
+ * assume the two are the same on a row written by an older build.
19062
+ */
19056
19063
  var TrackPositionSchema = object({
19057
19064
  x: number(),
19058
19065
  y: number(),
19059
19066
  timestamp: number(),
19060
- bbox: BoundingBoxSchema
19067
+ bbox: BoundingBoxSchema,
19068
+ /**
19069
+ * Which detector pass measured this box (D399): `frame` is the full-frame
19070
+ * pass on the analysis raster, `recovery` is the native-resolution
19071
+ * small-subject second pass (D377/D378). Both write into one array, and until
19072
+ * this field existed the only way to tell them apart was that full-frame boxes
19073
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
19074
+ * Absent on rows written before D399.
19075
+ */
19076
+ source: _enum(["frame", "recovery"]).optional(),
19077
+ /** Detection score of this box, so a position can be weighed and not only
19078
+ * plotted. Absent on rows written before D399. */
19079
+ score: number().optional()
19061
19080
  });
19062
19081
  var TrackSnapshotSchema = object({
19063
19082
  timestamp: number(),
@@ -19457,14 +19476,25 @@ var TrackSchema = object({
19457
19476
  */
19458
19477
  hasRider: boolean().optional(),
19459
19478
  /**
19460
- * WHY this track ended without a NATIVE best-shot tile
19461
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19479
+ * WHY this track ended without a NATIVE best-shot FRAME
19480
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19481
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19462
19482
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19463
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19464
- * the late-keyFrame upgrade when a native tile lands after all. The
19465
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19483
+ * `derive-returned-null tile=standin`,
19484
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19485
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19486
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19466
19487
  * tile is a face/plate stand-in, a raster crop, or an icon.
19467
19488
  *
19489
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19490
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19491
+ * while its key frame missed carried no reason at all — three of the four
19492
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19493
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19494
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19495
+ * lastFrame copy source`), so its absence is now on this line whatever the
19496
+ * tile ended up being.
19497
+ *
19468
19498
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19469
19499
  * that predates the field, and every track whose tile landed native all
19470
19500
  * omit it. Render nothing when absent.
@@ -25632,6 +25662,59 @@ var IdentitySampleInfoSchema = object({
25632
25662
  deviceId: number().int().optional(),
25633
25663
  base64: string().optional()
25634
25664
  });
25665
+ /**
25666
+ * One enrolled sample, judged against the gallery it lives in.
25667
+ *
25668
+ * The gallery is the one input to recognition nobody re-reads: a sample
25669
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25670
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25671
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25672
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25673
+ * where every other cross-identity pair sits under 0.50.
25674
+ */
25675
+ var IdentitySampleAuditRowSchema = object({
25676
+ sampleId: string(),
25677
+ enrolledAt: number().int(),
25678
+ deviceId: number().int().optional(),
25679
+ source: _enum(["detected", "photo"]),
25680
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25681
+ mediaKey: string().optional(),
25682
+ /**
25683
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25684
+ * across feature spaces is a well-formed float with no meaning. Every number
25685
+ * below then says nothing — it must read as "cannot say", never as an
25686
+ * accusation and never as a clean bill: this list ends in a Remove button.
25687
+ */
25688
+ comparable: boolean(),
25689
+ /** Mean cosine against this person's other samples. Null when there are none
25690
+ * to compare with — never 0, which would read as "opposite". */
25691
+ selfMean: number().nullable(),
25692
+ /** The other person this sample looks most like, when it looks like one.
25693
+ * This is the half that convicts: not looking like yourself can be a hard
25694
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25695
+ bestForeign: object({
25696
+ identityId: string(),
25697
+ name: string(),
25698
+ score: number()
25699
+ }).optional(),
25700
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25701
+ suspicion: number()
25702
+ });
25703
+ var IdentitySampleAuditSchema = object({
25704
+ identityId: string(),
25705
+ name: string(),
25706
+ /** The cluster face model every comparison was made in. */
25707
+ modelId: string(),
25708
+ totalSamples: number().int(),
25709
+ comparableSamples: number().int(),
25710
+ flagged: number().int(),
25711
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25712
+ * only its current result. */
25713
+ flagThreshold: number(),
25714
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25715
+ * operator asked to see the gallery, not only its accusations. */
25716
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25717
+ });
25635
25718
  var FaceInfoSchema = object({
25636
25719
  faceId: string(),
25637
25720
  deviceId: number().int(),
@@ -25783,7 +25866,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25783
25866
  }), method(object({ id: string() }), _void(), {
25784
25867
  kind: "mutation",
25785
25868
  auth: "admin"
25786
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25869
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25787
25870
  identityId: string(),
25788
25871
  sampleId: string()
25789
25872
  }), _void(), {
@@ -36840,6 +36923,12 @@ Object.freeze({
36840
36923
  addonId: null,
36841
36924
  access: "create"
36842
36925
  },
36926
+ "faceGallery.auditIdentitySamples": {
36927
+ capName: "face-gallery",
36928
+ capScope: "system",
36929
+ addonId: null,
36930
+ access: "view"
36931
+ },
36843
36932
  "faceGallery.createIdentity": {
36844
36933
  capName: "face-gallery",
36845
36934
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -19054,11 +19054,30 @@ var SensorEventSchema = object({
19054
19054
  value: record(string(), unknown()).nullable(),
19055
19055
  timestamp: number()
19056
19056
  });
19057
+ /**
19058
+ * One stored sighting on a track's trajectory.
19059
+ *
19060
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
19061
+ * arrival order, and the two detector passes interleave, so a consumer must not
19062
+ * assume the two are the same on a row written by an older build.
19063
+ */
19057
19064
  var TrackPositionSchema = object({
19058
19065
  x: number(),
19059
19066
  y: number(),
19060
19067
  timestamp: number(),
19061
- bbox: BoundingBoxSchema
19068
+ bbox: BoundingBoxSchema,
19069
+ /**
19070
+ * Which detector pass measured this box (D399): `frame` is the full-frame
19071
+ * pass on the analysis raster, `recovery` is the native-resolution
19072
+ * small-subject second pass (D377/D378). Both write into one array, and until
19073
+ * this field existed the only way to tell them apart was that full-frame boxes
19074
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
19075
+ * Absent on rows written before D399.
19076
+ */
19077
+ source: _enum(["frame", "recovery"]).optional(),
19078
+ /** Detection score of this box, so a position can be weighed and not only
19079
+ * plotted. Absent on rows written before D399. */
19080
+ score: number().optional()
19062
19081
  });
19063
19082
  var TrackSnapshotSchema = object({
19064
19083
  timestamp: number(),
@@ -19458,14 +19477,25 @@ var TrackSchema = object({
19458
19477
  */
19459
19478
  hasRider: boolean().optional(),
19460
19479
  /**
19461
- * WHY this track ended without a NATIVE best-shot tile
19462
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19480
+ * WHY this track ended without a NATIVE best-shot FRAME
19481
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19482
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19463
19483
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19464
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19465
- * the late-keyFrame upgrade when a native tile lands after all. The
19466
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19484
+ * `derive-returned-null tile=standin`,
19485
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19486
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19487
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19467
19488
  * tile is a face/plate stand-in, a raster crop, or an icon.
19468
19489
  *
19490
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19491
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19492
+ * while its key frame missed carried no reason at all — three of the four
19493
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19494
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19495
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19496
+ * lastFrame copy source`), so its absence is now on this line whatever the
19497
+ * tile ended up being.
19498
+ *
19469
19499
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19470
19500
  * that predates the field, and every track whose tile landed native all
19471
19501
  * omit it. Render nothing when absent.
@@ -25633,6 +25663,59 @@ var IdentitySampleInfoSchema = object({
25633
25663
  deviceId: number().int().optional(),
25634
25664
  base64: string().optional()
25635
25665
  });
25666
+ /**
25667
+ * One enrolled sample, judged against the gallery it lives in.
25668
+ *
25669
+ * The gallery is the one input to recognition nobody re-reads: a sample
25670
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25671
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25672
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25673
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25674
+ * where every other cross-identity pair sits under 0.50.
25675
+ */
25676
+ var IdentitySampleAuditRowSchema = object({
25677
+ sampleId: string(),
25678
+ enrolledAt: number().int(),
25679
+ deviceId: number().int().optional(),
25680
+ source: _enum(["detected", "photo"]),
25681
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25682
+ mediaKey: string().optional(),
25683
+ /**
25684
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25685
+ * across feature spaces is a well-formed float with no meaning. Every number
25686
+ * below then says nothing — it must read as "cannot say", never as an
25687
+ * accusation and never as a clean bill: this list ends in a Remove button.
25688
+ */
25689
+ comparable: boolean(),
25690
+ /** Mean cosine against this person's other samples. Null when there are none
25691
+ * to compare with — never 0, which would read as "opposite". */
25692
+ selfMean: number().nullable(),
25693
+ /** The other person this sample looks most like, when it looks like one.
25694
+ * This is the half that convicts: not looking like yourself can be a hard
25695
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25696
+ bestForeign: object({
25697
+ identityId: string(),
25698
+ name: string(),
25699
+ score: number()
25700
+ }).optional(),
25701
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25702
+ suspicion: number()
25703
+ });
25704
+ var IdentitySampleAuditSchema = object({
25705
+ identityId: string(),
25706
+ name: string(),
25707
+ /** The cluster face model every comparison was made in. */
25708
+ modelId: string(),
25709
+ totalSamples: number().int(),
25710
+ comparableSamples: number().int(),
25711
+ flagged: number().int(),
25712
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25713
+ * only its current result. */
25714
+ flagThreshold: number(),
25715
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25716
+ * operator asked to see the gallery, not only its accusations. */
25717
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25718
+ });
25636
25719
  var FaceInfoSchema = object({
25637
25720
  faceId: string(),
25638
25721
  deviceId: number().int(),
@@ -25784,7 +25867,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25784
25867
  }), method(object({ id: string() }), _void(), {
25785
25868
  kind: "mutation",
25786
25869
  auth: "admin"
25787
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25870
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25788
25871
  identityId: string(),
25789
25872
  sampleId: string()
25790
25873
  }), _void(), {
@@ -36841,6 +36924,12 @@ Object.freeze({
36841
36924
  addonId: null,
36842
36925
  access: "create"
36843
36926
  },
36927
+ "faceGallery.auditIdentitySamples": {
36928
+ capName: "face-gallery",
36929
+ capScope: "system",
36930
+ addonId: null,
36931
+ access: "view"
36932
+ },
36844
36933
  "faceGallery.createIdentity": {
36845
36934
  capName: "face-gallery",
36846
36935
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.91",
3
+ "version": "1.2.93",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",