@camstack/addon-decoder-nodeav 1.2.83 → 1.2.85

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/index.js CHANGED
@@ -18508,11 +18508,30 @@ var SensorEventSchema = object({
18508
18508
  value: record(string(), unknown()).nullable(),
18509
18509
  timestamp: number()
18510
18510
  });
18511
+ /**
18512
+ * One stored sighting on a track's trajectory.
18513
+ *
18514
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18515
+ * arrival order, and the two detector passes interleave, so a consumer must not
18516
+ * assume the two are the same on a row written by an older build.
18517
+ */
18511
18518
  var TrackPositionSchema = object({
18512
18519
  x: number(),
18513
18520
  y: number(),
18514
18521
  timestamp: number(),
18515
- bbox: BoundingBoxSchema
18522
+ bbox: BoundingBoxSchema,
18523
+ /**
18524
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18525
+ * pass on the analysis raster, `recovery` is the native-resolution
18526
+ * small-subject second pass (D377/D378). Both write into one array, and until
18527
+ * this field existed the only way to tell them apart was that full-frame boxes
18528
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18529
+ * Absent on rows written before D399.
18530
+ */
18531
+ source: _enum(["frame", "recovery"]).optional(),
18532
+ /** Detection score of this box, so a position can be weighed and not only
18533
+ * plotted. Absent on rows written before D399. */
18534
+ score: number().optional()
18516
18535
  });
18517
18536
  var TrackSnapshotSchema = object({
18518
18537
  timestamp: number(),
@@ -18912,14 +18931,25 @@ var TrackSchema = object({
18912
18931
  */
18913
18932
  hasRider: boolean().optional(),
18914
18933
  /**
18915
- * WHY this track ended without a NATIVE best-shot tile
18916
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18934
+ * WHY this track ended without a NATIVE best-shot FRAME
18935
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18936
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18917
18937
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18918
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18919
- * the late-keyFrame upgrade when a native tile lands after all. The
18920
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18938
+ * `derive-returned-null tile=standin`,
18939
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18940
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18941
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18921
18942
  * tile is a face/plate stand-in, a raster crop, or an icon.
18922
18943
  *
18944
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18945
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18946
+ * while its key frame missed carried no reason at all — three of the four
18947
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18948
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18949
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18950
+ * lastFrame copy source`), so its absence is now on this line whatever the
18951
+ * tile ended up being.
18952
+ *
18923
18953
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18924
18954
  * that predates the field, and every track whose tile landed native all
18925
18955
  * omit it. Render nothing when absent.
@@ -24253,6 +24283,59 @@ var IdentitySampleInfoSchema = object({
24253
24283
  deviceId: number().int().optional(),
24254
24284
  base64: string().optional()
24255
24285
  });
24286
+ /**
24287
+ * One enrolled sample, judged against the gallery it lives in.
24288
+ *
24289
+ * The gallery is the one input to recognition nobody re-reads: a sample
24290
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24291
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24292
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24293
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24294
+ * where every other cross-identity pair sits under 0.50.
24295
+ */
24296
+ var IdentitySampleAuditRowSchema = object({
24297
+ sampleId: string(),
24298
+ enrolledAt: number().int(),
24299
+ deviceId: number().int().optional(),
24300
+ source: _enum(["detected", "photo"]),
24301
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24302
+ mediaKey: string().optional(),
24303
+ /**
24304
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24305
+ * across feature spaces is a well-formed float with no meaning. Every number
24306
+ * below then says nothing — it must read as "cannot say", never as an
24307
+ * accusation and never as a clean bill: this list ends in a Remove button.
24308
+ */
24309
+ comparable: boolean(),
24310
+ /** Mean cosine against this person's other samples. Null when there are none
24311
+ * to compare with — never 0, which would read as "opposite". */
24312
+ selfMean: number().nullable(),
24313
+ /** The other person this sample looks most like, when it looks like one.
24314
+ * This is the half that convicts: not looking like yourself can be a hard
24315
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24316
+ bestForeign: object({
24317
+ identityId: string(),
24318
+ name: string(),
24319
+ score: number()
24320
+ }).optional(),
24321
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24322
+ suspicion: number()
24323
+ });
24324
+ var IdentitySampleAuditSchema = object({
24325
+ identityId: string(),
24326
+ name: string(),
24327
+ /** The cluster face model every comparison was made in. */
24328
+ modelId: string(),
24329
+ totalSamples: number().int(),
24330
+ comparableSamples: number().int(),
24331
+ flagged: number().int(),
24332
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24333
+ * only its current result. */
24334
+ flagThreshold: number(),
24335
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24336
+ * operator asked to see the gallery, not only its accusations. */
24337
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24338
+ });
24256
24339
  var FaceInfoSchema = object({
24257
24340
  faceId: string(),
24258
24341
  deviceId: number().int(),
@@ -24404,7 +24487,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24404
24487
  }), method(object({ id: string() }), _void(), {
24405
24488
  kind: "mutation",
24406
24489
  auth: "admin"
24407
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24490
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24408
24491
  identityId: string(),
24409
24492
  sampleId: string()
24410
24493
  }), _void(), {
@@ -31631,6 +31714,12 @@ Object.freeze({
31631
31714
  addonId: null,
31632
31715
  access: "create"
31633
31716
  },
31717
+ "faceGallery.auditIdentitySamples": {
31718
+ capName: "face-gallery",
31719
+ capScope: "system",
31720
+ addonId: null,
31721
+ access: "view"
31722
+ },
31634
31723
  "faceGallery.createIdentity": {
31635
31724
  capName: "face-gallery",
31636
31725
  capScope: "system",
package/dist/index.mjs CHANGED
@@ -18504,11 +18504,30 @@ var SensorEventSchema = object({
18504
18504
  value: record(string(), unknown()).nullable(),
18505
18505
  timestamp: number()
18506
18506
  });
18507
+ /**
18508
+ * One stored sighting on a track's trajectory.
18509
+ *
18510
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18511
+ * arrival order, and the two detector passes interleave, so a consumer must not
18512
+ * assume the two are the same on a row written by an older build.
18513
+ */
18507
18514
  var TrackPositionSchema = object({
18508
18515
  x: number(),
18509
18516
  y: number(),
18510
18517
  timestamp: number(),
18511
- bbox: BoundingBoxSchema
18518
+ bbox: BoundingBoxSchema,
18519
+ /**
18520
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18521
+ * pass on the analysis raster, `recovery` is the native-resolution
18522
+ * small-subject second pass (D377/D378). Both write into one array, and until
18523
+ * this field existed the only way to tell them apart was that full-frame boxes
18524
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18525
+ * Absent on rows written before D399.
18526
+ */
18527
+ source: _enum(["frame", "recovery"]).optional(),
18528
+ /** Detection score of this box, so a position can be weighed and not only
18529
+ * plotted. Absent on rows written before D399. */
18530
+ score: number().optional()
18512
18531
  });
18513
18532
  var TrackSnapshotSchema = object({
18514
18533
  timestamp: number(),
@@ -18908,14 +18927,25 @@ var TrackSchema = object({
18908
18927
  */
18909
18928
  hasRider: boolean().optional(),
18910
18929
  /**
18911
- * WHY this track ended without a NATIVE best-shot tile
18912
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18930
+ * WHY this track ended without a NATIVE best-shot FRAME
18931
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18932
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18913
18933
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18914
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18915
- * the late-keyFrame upgrade when a native tile lands after all. The
18916
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18934
+ * `derive-returned-null tile=standin`,
18935
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18936
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18937
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18917
18938
  * tile is a face/plate stand-in, a raster crop, or an icon.
18918
18939
  *
18940
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18941
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18942
+ * while its key frame missed carried no reason at all — three of the four
18943
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18944
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18945
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18946
+ * lastFrame copy source`), so its absence is now on this line whatever the
18947
+ * tile ended up being.
18948
+ *
18919
18949
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18920
18950
  * that predates the field, and every track whose tile landed native all
18921
18951
  * omit it. Render nothing when absent.
@@ -24249,6 +24279,59 @@ var IdentitySampleInfoSchema = object({
24249
24279
  deviceId: number().int().optional(),
24250
24280
  base64: string().optional()
24251
24281
  });
24282
+ /**
24283
+ * One enrolled sample, judged against the gallery it lives in.
24284
+ *
24285
+ * The gallery is the one input to recognition nobody re-reads: a sample
24286
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24287
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24288
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24289
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24290
+ * where every other cross-identity pair sits under 0.50.
24291
+ */
24292
+ var IdentitySampleAuditRowSchema = object({
24293
+ sampleId: string(),
24294
+ enrolledAt: number().int(),
24295
+ deviceId: number().int().optional(),
24296
+ source: _enum(["detected", "photo"]),
24297
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24298
+ mediaKey: string().optional(),
24299
+ /**
24300
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24301
+ * across feature spaces is a well-formed float with no meaning. Every number
24302
+ * below then says nothing — it must read as "cannot say", never as an
24303
+ * accusation and never as a clean bill: this list ends in a Remove button.
24304
+ */
24305
+ comparable: boolean(),
24306
+ /** Mean cosine against this person's other samples. Null when there are none
24307
+ * to compare with — never 0, which would read as "opposite". */
24308
+ selfMean: number().nullable(),
24309
+ /** The other person this sample looks most like, when it looks like one.
24310
+ * This is the half that convicts: not looking like yourself can be a hard
24311
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24312
+ bestForeign: object({
24313
+ identityId: string(),
24314
+ name: string(),
24315
+ score: number()
24316
+ }).optional(),
24317
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24318
+ suspicion: number()
24319
+ });
24320
+ var IdentitySampleAuditSchema = object({
24321
+ identityId: string(),
24322
+ name: string(),
24323
+ /** The cluster face model every comparison was made in. */
24324
+ modelId: string(),
24325
+ totalSamples: number().int(),
24326
+ comparableSamples: number().int(),
24327
+ flagged: number().int(),
24328
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24329
+ * only its current result. */
24330
+ flagThreshold: number(),
24331
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24332
+ * operator asked to see the gallery, not only its accusations. */
24333
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24334
+ });
24252
24335
  var FaceInfoSchema = object({
24253
24336
  faceId: string(),
24254
24337
  deviceId: number().int(),
@@ -24400,7 +24483,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24400
24483
  }), method(object({ id: string() }), _void(), {
24401
24484
  kind: "mutation",
24402
24485
  auth: "admin"
24403
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24486
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24404
24487
  identityId: string(),
24405
24488
  sampleId: string()
24406
24489
  }), _void(), {
@@ -31627,6 +31710,12 @@ Object.freeze({
31627
31710
  addonId: null,
31628
31711
  access: "create"
31629
31712
  },
31713
+ "faceGallery.auditIdentitySamples": {
31714
+ capName: "face-gallery",
31715
+ capScope: "system",
31716
+ addonId: null,
31717
+ access: "view"
31718
+ },
31630
31719
  "faceGallery.createIdentity": {
31631
31720
  capName: "face-gallery",
31632
31721
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.83",
3
+ "version": "1.2.85",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",