@camstack/addon-notifiers 1.2.87 → 1.2.89

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
@@ -18566,11 +18566,30 @@ var SensorEventSchema = object({
18566
18566
  value: record(string(), unknown()).nullable(),
18567
18567
  timestamp: number()
18568
18568
  });
18569
+ /**
18570
+ * One stored sighting on a track's trajectory.
18571
+ *
18572
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18573
+ * arrival order, and the two detector passes interleave, so a consumer must not
18574
+ * assume the two are the same on a row written by an older build.
18575
+ */
18569
18576
  var TrackPositionSchema = object({
18570
18577
  x: number(),
18571
18578
  y: number(),
18572
18579
  timestamp: number(),
18573
- bbox: BoundingBoxSchema
18580
+ bbox: BoundingBoxSchema,
18581
+ /**
18582
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18583
+ * pass on the analysis raster, `recovery` is the native-resolution
18584
+ * small-subject second pass (D377/D378). Both write into one array, and until
18585
+ * this field existed the only way to tell them apart was that full-frame boxes
18586
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18587
+ * Absent on rows written before D399.
18588
+ */
18589
+ source: _enum(["frame", "recovery"]).optional(),
18590
+ /** Detection score of this box, so a position can be weighed and not only
18591
+ * plotted. Absent on rows written before D399. */
18592
+ score: number().optional()
18574
18593
  });
18575
18594
  var TrackSnapshotSchema = object({
18576
18595
  timestamp: number(),
@@ -18970,14 +18989,25 @@ var TrackSchema = object({
18970
18989
  */
18971
18990
  hasRider: boolean().optional(),
18972
18991
  /**
18973
- * WHY this track ended without a NATIVE best-shot tile
18974
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18992
+ * WHY this track ended without a NATIVE best-shot FRAME
18993
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18994
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18975
18995
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18976
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18977
- * the late-keyFrame upgrade when a native tile lands after all. The
18978
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18996
+ * `derive-returned-null tile=standin`,
18997
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18998
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18999
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18979
19000
  * tile is a face/plate stand-in, a raster crop, or an icon.
18980
19001
  *
19002
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19003
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19004
+ * while its key frame missed carried no reason at all — three of the four
19005
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19006
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19007
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19008
+ * lastFrame copy source`), so its absence is now on this line whatever the
19009
+ * tile ended up being.
19010
+ *
18981
19011
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18982
19012
  * that predates the field, and every track whose tile landed native all
18983
19013
  * omit it. Render nothing when absent.
@@ -24311,6 +24341,59 @@ var IdentitySampleInfoSchema = object({
24311
24341
  deviceId: number().int().optional(),
24312
24342
  base64: string().optional()
24313
24343
  });
24344
+ /**
24345
+ * One enrolled sample, judged against the gallery it lives in.
24346
+ *
24347
+ * The gallery is the one input to recognition nobody re-reads: a sample
24348
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24349
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24350
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24351
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24352
+ * where every other cross-identity pair sits under 0.50.
24353
+ */
24354
+ var IdentitySampleAuditRowSchema = object({
24355
+ sampleId: string(),
24356
+ enrolledAt: number().int(),
24357
+ deviceId: number().int().optional(),
24358
+ source: _enum(["detected", "photo"]),
24359
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24360
+ mediaKey: string().optional(),
24361
+ /**
24362
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24363
+ * across feature spaces is a well-formed float with no meaning. Every number
24364
+ * below then says nothing — it must read as "cannot say", never as an
24365
+ * accusation and never as a clean bill: this list ends in a Remove button.
24366
+ */
24367
+ comparable: boolean(),
24368
+ /** Mean cosine against this person's other samples. Null when there are none
24369
+ * to compare with — never 0, which would read as "opposite". */
24370
+ selfMean: number().nullable(),
24371
+ /** The other person this sample looks most like, when it looks like one.
24372
+ * This is the half that convicts: not looking like yourself can be a hard
24373
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24374
+ bestForeign: object({
24375
+ identityId: string(),
24376
+ name: string(),
24377
+ score: number()
24378
+ }).optional(),
24379
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24380
+ suspicion: number()
24381
+ });
24382
+ var IdentitySampleAuditSchema = object({
24383
+ identityId: string(),
24384
+ name: string(),
24385
+ /** The cluster face model every comparison was made in. */
24386
+ modelId: string(),
24387
+ totalSamples: number().int(),
24388
+ comparableSamples: number().int(),
24389
+ flagged: number().int(),
24390
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24391
+ * only its current result. */
24392
+ flagThreshold: number(),
24393
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24394
+ * operator asked to see the gallery, not only its accusations. */
24395
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24396
+ });
24314
24397
  var FaceInfoSchema = object({
24315
24398
  faceId: string(),
24316
24399
  deviceId: number().int(),
@@ -24462,7 +24545,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24462
24545
  }), method(object({ id: string() }), _void(), {
24463
24546
  kind: "mutation",
24464
24547
  auth: "admin"
24465
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24548
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24466
24549
  identityId: string(),
24467
24550
  sampleId: string()
24468
24551
  }), _void(), {
@@ -31689,6 +31772,12 @@ Object.freeze({
31689
31772
  addonId: null,
31690
31773
  access: "create"
31691
31774
  },
31775
+ "faceGallery.auditIdentitySamples": {
31776
+ capName: "face-gallery",
31777
+ capScope: "system",
31778
+ addonId: null,
31779
+ access: "view"
31780
+ },
31692
31781
  "faceGallery.createIdentity": {
31693
31782
  capName: "face-gallery",
31694
31783
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18539,11 +18539,30 @@ var SensorEventSchema = object({
18539
18539
  value: record(string(), unknown()).nullable(),
18540
18540
  timestamp: number()
18541
18541
  });
18542
+ /**
18543
+ * One stored sighting on a track's trajectory.
18544
+ *
18545
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18546
+ * arrival order, and the two detector passes interleave, so a consumer must not
18547
+ * assume the two are the same on a row written by an older build.
18548
+ */
18542
18549
  var TrackPositionSchema = object({
18543
18550
  x: number(),
18544
18551
  y: number(),
18545
18552
  timestamp: number(),
18546
- bbox: BoundingBoxSchema
18553
+ bbox: BoundingBoxSchema,
18554
+ /**
18555
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18556
+ * pass on the analysis raster, `recovery` is the native-resolution
18557
+ * small-subject second pass (D377/D378). Both write into one array, and until
18558
+ * this field existed the only way to tell them apart was that full-frame boxes
18559
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18560
+ * Absent on rows written before D399.
18561
+ */
18562
+ source: _enum(["frame", "recovery"]).optional(),
18563
+ /** Detection score of this box, so a position can be weighed and not only
18564
+ * plotted. Absent on rows written before D399. */
18565
+ score: number().optional()
18547
18566
  });
18548
18567
  var TrackSnapshotSchema = object({
18549
18568
  timestamp: number(),
@@ -18943,14 +18962,25 @@ var TrackSchema = object({
18943
18962
  */
18944
18963
  hasRider: boolean().optional(),
18945
18964
  /**
18946
- * WHY this track ended without a NATIVE best-shot tile
18947
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18965
+ * WHY this track ended without a NATIVE best-shot FRAME
18966
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18967
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18948
18968
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18949
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18950
- * the late-keyFrame upgrade when a native tile lands after all. The
18951
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18969
+ * `derive-returned-null tile=standin`,
18970
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18971
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18972
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18952
18973
  * tile is a face/plate stand-in, a raster crop, or an icon.
18953
18974
  *
18975
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18976
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18977
+ * while its key frame missed carried no reason at all — three of the four
18978
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18979
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18980
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18981
+ * lastFrame copy source`), so its absence is now on this line whatever the
18982
+ * tile ended up being.
18983
+ *
18954
18984
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18955
18985
  * that predates the field, and every track whose tile landed native all
18956
18986
  * omit it. Render nothing when absent.
@@ -24284,6 +24314,59 @@ var IdentitySampleInfoSchema = object({
24284
24314
  deviceId: number().int().optional(),
24285
24315
  base64: string().optional()
24286
24316
  });
24317
+ /**
24318
+ * One enrolled sample, judged against the gallery it lives in.
24319
+ *
24320
+ * The gallery is the one input to recognition nobody re-reads: a sample
24321
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24322
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24323
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24324
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24325
+ * where every other cross-identity pair sits under 0.50.
24326
+ */
24327
+ var IdentitySampleAuditRowSchema = object({
24328
+ sampleId: string(),
24329
+ enrolledAt: number().int(),
24330
+ deviceId: number().int().optional(),
24331
+ source: _enum(["detected", "photo"]),
24332
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24333
+ mediaKey: string().optional(),
24334
+ /**
24335
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24336
+ * across feature spaces is a well-formed float with no meaning. Every number
24337
+ * below then says nothing — it must read as "cannot say", never as an
24338
+ * accusation and never as a clean bill: this list ends in a Remove button.
24339
+ */
24340
+ comparable: boolean(),
24341
+ /** Mean cosine against this person's other samples. Null when there are none
24342
+ * to compare with — never 0, which would read as "opposite". */
24343
+ selfMean: number().nullable(),
24344
+ /** The other person this sample looks most like, when it looks like one.
24345
+ * This is the half that convicts: not looking like yourself can be a hard
24346
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24347
+ bestForeign: object({
24348
+ identityId: string(),
24349
+ name: string(),
24350
+ score: number()
24351
+ }).optional(),
24352
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24353
+ suspicion: number()
24354
+ });
24355
+ var IdentitySampleAuditSchema = object({
24356
+ identityId: string(),
24357
+ name: string(),
24358
+ /** The cluster face model every comparison was made in. */
24359
+ modelId: string(),
24360
+ totalSamples: number().int(),
24361
+ comparableSamples: number().int(),
24362
+ flagged: number().int(),
24363
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24364
+ * only its current result. */
24365
+ flagThreshold: number(),
24366
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24367
+ * operator asked to see the gallery, not only its accusations. */
24368
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24369
+ });
24287
24370
  var FaceInfoSchema = object({
24288
24371
  faceId: string(),
24289
24372
  deviceId: number().int(),
@@ -24435,7 +24518,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24435
24518
  }), method(object({ id: string() }), _void(), {
24436
24519
  kind: "mutation",
24437
24520
  auth: "admin"
24438
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24521
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24439
24522
  identityId: string(),
24440
24523
  sampleId: string()
24441
24524
  }), _void(), {
@@ -31662,6 +31745,12 @@ Object.freeze({
31662
31745
  addonId: null,
31663
31746
  access: "create"
31664
31747
  },
31748
+ "faceGallery.auditIdentitySamples": {
31749
+ capName: "face-gallery",
31750
+ capScope: "system",
31751
+ addonId: null,
31752
+ access: "view"
31753
+ },
31665
31754
  "faceGallery.createIdentity": {
31666
31755
  capName: "face-gallery",
31667
31756
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.87",
3
+ "version": "1.2.89",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",