@camstack/addon-provider-amcrest 0.2.85 → 0.2.87

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
@@ -18741,11 +18741,30 @@ var SensorEventSchema = object({
18741
18741
  value: record(string(), unknown()).nullable(),
18742
18742
  timestamp: number()
18743
18743
  });
18744
+ /**
18745
+ * One stored sighting on a track's trajectory.
18746
+ *
18747
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18748
+ * arrival order, and the two detector passes interleave, so a consumer must not
18749
+ * assume the two are the same on a row written by an older build.
18750
+ */
18744
18751
  var TrackPositionSchema = object({
18745
18752
  x: number(),
18746
18753
  y: number(),
18747
18754
  timestamp: number(),
18748
- bbox: BoundingBoxSchema
18755
+ bbox: BoundingBoxSchema,
18756
+ /**
18757
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18758
+ * pass on the analysis raster, `recovery` is the native-resolution
18759
+ * small-subject second pass (D377/D378). Both write into one array, and until
18760
+ * this field existed the only way to tell them apart was that full-frame boxes
18761
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18762
+ * Absent on rows written before D399.
18763
+ */
18764
+ source: _enum(["frame", "recovery"]).optional(),
18765
+ /** Detection score of this box, so a position can be weighed and not only
18766
+ * plotted. Absent on rows written before D399. */
18767
+ score: number().optional()
18749
18768
  });
18750
18769
  var TrackSnapshotSchema = object({
18751
18770
  timestamp: number(),
@@ -19145,14 +19164,25 @@ var TrackSchema = object({
19145
19164
  */
19146
19165
  hasRider: boolean().optional(),
19147
19166
  /**
19148
- * WHY this track ended without a NATIVE best-shot tile
19149
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19167
+ * WHY this track ended without a NATIVE best-shot FRAME
19168
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19169
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19150
19170
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19151
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19152
- * the late-keyFrame upgrade when a native tile lands after all. The
19153
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19171
+ * `derive-returned-null tile=standin`,
19172
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19173
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19174
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19154
19175
  * tile is a face/plate stand-in, a raster crop, or an icon.
19155
19176
  *
19177
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19178
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19179
+ * while its key frame missed carried no reason at all — three of the four
19180
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19181
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19182
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19183
+ * lastFrame copy source`), so its absence is now on this line whatever the
19184
+ * tile ended up being.
19185
+ *
19156
19186
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19157
19187
  * that predates the field, and every track whose tile landed native all
19158
19188
  * omit it. Render nothing when absent.
@@ -25320,6 +25350,59 @@ var IdentitySampleInfoSchema = object({
25320
25350
  deviceId: number().int().optional(),
25321
25351
  base64: string().optional()
25322
25352
  });
25353
+ /**
25354
+ * One enrolled sample, judged against the gallery it lives in.
25355
+ *
25356
+ * The gallery is the one input to recognition nobody re-reads: a sample
25357
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25358
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25359
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25360
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25361
+ * where every other cross-identity pair sits under 0.50.
25362
+ */
25363
+ var IdentitySampleAuditRowSchema = object({
25364
+ sampleId: string(),
25365
+ enrolledAt: number().int(),
25366
+ deviceId: number().int().optional(),
25367
+ source: _enum(["detected", "photo"]),
25368
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25369
+ mediaKey: string().optional(),
25370
+ /**
25371
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25372
+ * across feature spaces is a well-formed float with no meaning. Every number
25373
+ * below then says nothing — it must read as "cannot say", never as an
25374
+ * accusation and never as a clean bill: this list ends in a Remove button.
25375
+ */
25376
+ comparable: boolean(),
25377
+ /** Mean cosine against this person's other samples. Null when there are none
25378
+ * to compare with — never 0, which would read as "opposite". */
25379
+ selfMean: number().nullable(),
25380
+ /** The other person this sample looks most like, when it looks like one.
25381
+ * This is the half that convicts: not looking like yourself can be a hard
25382
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25383
+ bestForeign: object({
25384
+ identityId: string(),
25385
+ name: string(),
25386
+ score: number()
25387
+ }).optional(),
25388
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25389
+ suspicion: number()
25390
+ });
25391
+ var IdentitySampleAuditSchema = object({
25392
+ identityId: string(),
25393
+ name: string(),
25394
+ /** The cluster face model every comparison was made in. */
25395
+ modelId: string(),
25396
+ totalSamples: number().int(),
25397
+ comparableSamples: number().int(),
25398
+ flagged: number().int(),
25399
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25400
+ * only its current result. */
25401
+ flagThreshold: number(),
25402
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25403
+ * operator asked to see the gallery, not only its accusations. */
25404
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25405
+ });
25323
25406
  var FaceInfoSchema = object({
25324
25407
  faceId: string(),
25325
25408
  deviceId: number().int(),
@@ -25471,7 +25554,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25471
25554
  }), method(object({ id: string() }), _void(), {
25472
25555
  kind: "mutation",
25473
25556
  auth: "admin"
25474
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25557
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25475
25558
  identityId: string(),
25476
25559
  sampleId: string()
25477
25560
  }), _void(), {
@@ -36476,6 +36559,12 @@ Object.freeze({
36476
36559
  addonId: null,
36477
36560
  access: "create"
36478
36561
  },
36562
+ "faceGallery.auditIdentitySamples": {
36563
+ capName: "face-gallery",
36564
+ capScope: "system",
36565
+ addonId: null,
36566
+ access: "view"
36567
+ },
36479
36568
  "faceGallery.createIdentity": {
36480
36569
  capName: "face-gallery",
36481
36570
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18742,11 +18742,30 @@ var SensorEventSchema = object({
18742
18742
  value: record(string(), unknown()).nullable(),
18743
18743
  timestamp: number()
18744
18744
  });
18745
+ /**
18746
+ * One stored sighting on a track's trajectory.
18747
+ *
18748
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18749
+ * arrival order, and the two detector passes interleave, so a consumer must not
18750
+ * assume the two are the same on a row written by an older build.
18751
+ */
18745
18752
  var TrackPositionSchema = object({
18746
18753
  x: number(),
18747
18754
  y: number(),
18748
18755
  timestamp: number(),
18749
- bbox: BoundingBoxSchema
18756
+ bbox: BoundingBoxSchema,
18757
+ /**
18758
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18759
+ * pass on the analysis raster, `recovery` is the native-resolution
18760
+ * small-subject second pass (D377/D378). Both write into one array, and until
18761
+ * this field existed the only way to tell them apart was that full-frame boxes
18762
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18763
+ * Absent on rows written before D399.
18764
+ */
18765
+ source: _enum(["frame", "recovery"]).optional(),
18766
+ /** Detection score of this box, so a position can be weighed and not only
18767
+ * plotted. Absent on rows written before D399. */
18768
+ score: number().optional()
18750
18769
  });
18751
18770
  var TrackSnapshotSchema = object({
18752
18771
  timestamp: number(),
@@ -19146,14 +19165,25 @@ var TrackSchema = object({
19146
19165
  */
19147
19166
  hasRider: boolean().optional(),
19148
19167
  /**
19149
- * WHY this track ended without a NATIVE best-shot tile
19150
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19168
+ * WHY this track ended without a NATIVE best-shot FRAME
19169
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19170
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19151
19171
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19152
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19153
- * the late-keyFrame upgrade when a native tile lands after all. The
19154
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19172
+ * `derive-returned-null tile=standin`,
19173
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19174
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19175
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19155
19176
  * tile is a face/plate stand-in, a raster crop, or an icon.
19156
19177
  *
19178
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19179
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19180
+ * while its key frame missed carried no reason at all — three of the four
19181
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19182
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19183
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19184
+ * lastFrame copy source`), so its absence is now on this line whatever the
19185
+ * tile ended up being.
19186
+ *
19157
19187
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19158
19188
  * that predates the field, and every track whose tile landed native all
19159
19189
  * omit it. Render nothing when absent.
@@ -25321,6 +25351,59 @@ var IdentitySampleInfoSchema = object({
25321
25351
  deviceId: number().int().optional(),
25322
25352
  base64: string().optional()
25323
25353
  });
25354
+ /**
25355
+ * One enrolled sample, judged against the gallery it lives in.
25356
+ *
25357
+ * The gallery is the one input to recognition nobody re-reads: a sample
25358
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25359
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25360
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25361
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25362
+ * where every other cross-identity pair sits under 0.50.
25363
+ */
25364
+ var IdentitySampleAuditRowSchema = object({
25365
+ sampleId: string(),
25366
+ enrolledAt: number().int(),
25367
+ deviceId: number().int().optional(),
25368
+ source: _enum(["detected", "photo"]),
25369
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25370
+ mediaKey: string().optional(),
25371
+ /**
25372
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25373
+ * across feature spaces is a well-formed float with no meaning. Every number
25374
+ * below then says nothing — it must read as "cannot say", never as an
25375
+ * accusation and never as a clean bill: this list ends in a Remove button.
25376
+ */
25377
+ comparable: boolean(),
25378
+ /** Mean cosine against this person's other samples. Null when there are none
25379
+ * to compare with — never 0, which would read as "opposite". */
25380
+ selfMean: number().nullable(),
25381
+ /** The other person this sample looks most like, when it looks like one.
25382
+ * This is the half that convicts: not looking like yourself can be a hard
25383
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25384
+ bestForeign: object({
25385
+ identityId: string(),
25386
+ name: string(),
25387
+ score: number()
25388
+ }).optional(),
25389
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25390
+ suspicion: number()
25391
+ });
25392
+ var IdentitySampleAuditSchema = object({
25393
+ identityId: string(),
25394
+ name: string(),
25395
+ /** The cluster face model every comparison was made in. */
25396
+ modelId: string(),
25397
+ totalSamples: number().int(),
25398
+ comparableSamples: number().int(),
25399
+ flagged: number().int(),
25400
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25401
+ * only its current result. */
25402
+ flagThreshold: number(),
25403
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25404
+ * operator asked to see the gallery, not only its accusations. */
25405
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25406
+ });
25324
25407
  var FaceInfoSchema = object({
25325
25408
  faceId: string(),
25326
25409
  deviceId: number().int(),
@@ -25472,7 +25555,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25472
25555
  }), method(object({ id: string() }), _void(), {
25473
25556
  kind: "mutation",
25474
25557
  auth: "admin"
25475
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25558
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25476
25559
  identityId: string(),
25477
25560
  sampleId: string()
25478
25561
  }), _void(), {
@@ -36477,6 +36560,12 @@ Object.freeze({
36477
36560
  addonId: null,
36478
36561
  access: "create"
36479
36562
  },
36563
+ "faceGallery.auditIdentitySamples": {
36564
+ capName: "face-gallery",
36565
+ capScope: "system",
36566
+ addonId: null,
36567
+ access: "view"
36568
+ },
36480
36569
  "faceGallery.createIdentity": {
36481
36570
  capName: "face-gallery",
36482
36571
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.85",
3
+ "version": "0.2.87",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",