@camstack/addon-mqtt-broker 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.
@@ -18475,11 +18475,30 @@ var SensorEventSchema = object({
18475
18475
  value: record(string(), unknown()).nullable(),
18476
18476
  timestamp: number()
18477
18477
  });
18478
+ /**
18479
+ * One stored sighting on a track's trajectory.
18480
+ *
18481
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18482
+ * arrival order, and the two detector passes interleave, so a consumer must not
18483
+ * assume the two are the same on a row written by an older build.
18484
+ */
18478
18485
  var TrackPositionSchema = object({
18479
18486
  x: number(),
18480
18487
  y: number(),
18481
18488
  timestamp: number(),
18482
- bbox: BoundingBoxSchema
18489
+ bbox: BoundingBoxSchema,
18490
+ /**
18491
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18492
+ * pass on the analysis raster, `recovery` is the native-resolution
18493
+ * small-subject second pass (D377/D378). Both write into one array, and until
18494
+ * this field existed the only way to tell them apart was that full-frame boxes
18495
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18496
+ * Absent on rows written before D399.
18497
+ */
18498
+ source: _enum(["frame", "recovery"]).optional(),
18499
+ /** Detection score of this box, so a position can be weighed and not only
18500
+ * plotted. Absent on rows written before D399. */
18501
+ score: number().optional()
18483
18502
  });
18484
18503
  var TrackSnapshotSchema = object({
18485
18504
  timestamp: number(),
@@ -18879,14 +18898,25 @@ var TrackSchema = object({
18879
18898
  */
18880
18899
  hasRider: boolean().optional(),
18881
18900
  /**
18882
- * WHY this track ended without a NATIVE best-shot tile
18883
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18901
+ * WHY this track ended without a NATIVE best-shot FRAME
18902
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18903
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18884
18904
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18885
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18886
- * the late-keyFrame upgrade when a native tile lands after all. The
18887
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18905
+ * `derive-returned-null tile=standin`,
18906
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18907
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18908
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18888
18909
  * tile is a face/plate stand-in, a raster crop, or an icon.
18889
18910
  *
18911
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18912
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18913
+ * while its key frame missed carried no reason at all — three of the four
18914
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18915
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18916
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18917
+ * lastFrame copy source`), so its absence is now on this line whatever the
18918
+ * tile ended up being.
18919
+ *
18890
18920
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18891
18921
  * that predates the field, and every track whose tile landed native all
18892
18922
  * omit it. Render nothing when absent.
@@ -24220,6 +24250,59 @@ var IdentitySampleInfoSchema = object({
24220
24250
  deviceId: number().int().optional(),
24221
24251
  base64: string().optional()
24222
24252
  });
24253
+ /**
24254
+ * One enrolled sample, judged against the gallery it lives in.
24255
+ *
24256
+ * The gallery is the one input to recognition nobody re-reads: a sample
24257
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24258
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24259
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24260
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24261
+ * where every other cross-identity pair sits under 0.50.
24262
+ */
24263
+ var IdentitySampleAuditRowSchema = object({
24264
+ sampleId: string(),
24265
+ enrolledAt: number().int(),
24266
+ deviceId: number().int().optional(),
24267
+ source: _enum(["detected", "photo"]),
24268
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24269
+ mediaKey: string().optional(),
24270
+ /**
24271
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24272
+ * across feature spaces is a well-formed float with no meaning. Every number
24273
+ * below then says nothing — it must read as "cannot say", never as an
24274
+ * accusation and never as a clean bill: this list ends in a Remove button.
24275
+ */
24276
+ comparable: boolean(),
24277
+ /** Mean cosine against this person's other samples. Null when there are none
24278
+ * to compare with — never 0, which would read as "opposite". */
24279
+ selfMean: number().nullable(),
24280
+ /** The other person this sample looks most like, when it looks like one.
24281
+ * This is the half that convicts: not looking like yourself can be a hard
24282
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24283
+ bestForeign: object({
24284
+ identityId: string(),
24285
+ name: string(),
24286
+ score: number()
24287
+ }).optional(),
24288
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24289
+ suspicion: number()
24290
+ });
24291
+ var IdentitySampleAuditSchema = object({
24292
+ identityId: string(),
24293
+ name: string(),
24294
+ /** The cluster face model every comparison was made in. */
24295
+ modelId: string(),
24296
+ totalSamples: number().int(),
24297
+ comparableSamples: number().int(),
24298
+ flagged: number().int(),
24299
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24300
+ * only its current result. */
24301
+ flagThreshold: number(),
24302
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24303
+ * operator asked to see the gallery, not only its accusations. */
24304
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24305
+ });
24223
24306
  var FaceInfoSchema = object({
24224
24307
  faceId: string(),
24225
24308
  deviceId: number().int(),
@@ -24371,7 +24454,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24371
24454
  }), method(object({ id: string() }), _void(), {
24372
24455
  kind: "mutation",
24373
24456
  auth: "admin"
24374
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24457
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24375
24458
  identityId: string(),
24376
24459
  sampleId: string()
24377
24460
  }), _void(), {
@@ -31598,6 +31681,12 @@ Object.freeze({
31598
31681
  addonId: null,
31599
31682
  access: "create"
31600
31683
  },
31684
+ "faceGallery.auditIdentitySamples": {
31685
+ capName: "face-gallery",
31686
+ capScope: "system",
31687
+ addonId: null,
31688
+ access: "view"
31689
+ },
31601
31690
  "faceGallery.createIdentity": {
31602
31691
  capName: "face-gallery",
31603
31692
  capScope: "system",
@@ -18470,11 +18470,30 @@ var SensorEventSchema = object({
18470
18470
  value: record(string(), unknown()).nullable(),
18471
18471
  timestamp: number()
18472
18472
  });
18473
+ /**
18474
+ * One stored sighting on a track's trajectory.
18475
+ *
18476
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18477
+ * arrival order, and the two detector passes interleave, so a consumer must not
18478
+ * assume the two are the same on a row written by an older build.
18479
+ */
18473
18480
  var TrackPositionSchema = object({
18474
18481
  x: number(),
18475
18482
  y: number(),
18476
18483
  timestamp: number(),
18477
- bbox: BoundingBoxSchema
18484
+ bbox: BoundingBoxSchema,
18485
+ /**
18486
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18487
+ * pass on the analysis raster, `recovery` is the native-resolution
18488
+ * small-subject second pass (D377/D378). Both write into one array, and until
18489
+ * this field existed the only way to tell them apart was that full-frame boxes
18490
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18491
+ * Absent on rows written before D399.
18492
+ */
18493
+ source: _enum(["frame", "recovery"]).optional(),
18494
+ /** Detection score of this box, so a position can be weighed and not only
18495
+ * plotted. Absent on rows written before D399. */
18496
+ score: number().optional()
18478
18497
  });
18479
18498
  var TrackSnapshotSchema = object({
18480
18499
  timestamp: number(),
@@ -18874,14 +18893,25 @@ var TrackSchema = object({
18874
18893
  */
18875
18894
  hasRider: boolean().optional(),
18876
18895
  /**
18877
- * WHY this track ended without a NATIVE best-shot tile
18878
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18896
+ * WHY this track ended without a NATIVE best-shot FRAME
18897
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18898
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18879
18899
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18880
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18881
- * the late-keyFrame upgrade when a native tile lands after all. The
18882
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18900
+ * `derive-returned-null tile=standin`,
18901
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18902
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18903
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18883
18904
  * tile is a face/plate stand-in, a raster crop, or an icon.
18884
18905
  *
18906
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18907
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18908
+ * while its key frame missed carried no reason at all — three of the four
18909
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18910
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18911
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18912
+ * lastFrame copy source`), so its absence is now on this line whatever the
18913
+ * tile ended up being.
18914
+ *
18885
18915
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18886
18916
  * that predates the field, and every track whose tile landed native all
18887
18917
  * omit it. Render nothing when absent.
@@ -24215,6 +24245,59 @@ var IdentitySampleInfoSchema = object({
24215
24245
  deviceId: number().int().optional(),
24216
24246
  base64: string().optional()
24217
24247
  });
24248
+ /**
24249
+ * One enrolled sample, judged against the gallery it lives in.
24250
+ *
24251
+ * The gallery is the one input to recognition nobody re-reads: a sample
24252
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24253
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24254
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24255
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24256
+ * where every other cross-identity pair sits under 0.50.
24257
+ */
24258
+ var IdentitySampleAuditRowSchema = object({
24259
+ sampleId: string(),
24260
+ enrolledAt: number().int(),
24261
+ deviceId: number().int().optional(),
24262
+ source: _enum(["detected", "photo"]),
24263
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24264
+ mediaKey: string().optional(),
24265
+ /**
24266
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24267
+ * across feature spaces is a well-formed float with no meaning. Every number
24268
+ * below then says nothing — it must read as "cannot say", never as an
24269
+ * accusation and never as a clean bill: this list ends in a Remove button.
24270
+ */
24271
+ comparable: boolean(),
24272
+ /** Mean cosine against this person's other samples. Null when there are none
24273
+ * to compare with — never 0, which would read as "opposite". */
24274
+ selfMean: number().nullable(),
24275
+ /** The other person this sample looks most like, when it looks like one.
24276
+ * This is the half that convicts: not looking like yourself can be a hard
24277
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24278
+ bestForeign: object({
24279
+ identityId: string(),
24280
+ name: string(),
24281
+ score: number()
24282
+ }).optional(),
24283
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24284
+ suspicion: number()
24285
+ });
24286
+ var IdentitySampleAuditSchema = object({
24287
+ identityId: string(),
24288
+ name: string(),
24289
+ /** The cluster face model every comparison was made in. */
24290
+ modelId: string(),
24291
+ totalSamples: number().int(),
24292
+ comparableSamples: number().int(),
24293
+ flagged: number().int(),
24294
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24295
+ * only its current result. */
24296
+ flagThreshold: number(),
24297
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24298
+ * operator asked to see the gallery, not only its accusations. */
24299
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24300
+ });
24218
24301
  var FaceInfoSchema = object({
24219
24302
  faceId: string(),
24220
24303
  deviceId: number().int(),
@@ -24366,7 +24449,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24366
24449
  }), method(object({ id: string() }), _void(), {
24367
24450
  kind: "mutation",
24368
24451
  auth: "admin"
24369
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24452
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24370
24453
  identityId: string(),
24371
24454
  sampleId: string()
24372
24455
  }), _void(), {
@@ -31593,6 +31676,12 @@ Object.freeze({
31593
31676
  addonId: null,
31594
31677
  access: "create"
31595
31678
  },
31679
+ "faceGallery.auditIdentitySamples": {
31680
+ capName: "face-gallery",
31681
+ capScope: "system",
31682
+ addonId: null,
31683
+ access: "view"
31684
+ },
31596
31685
  "faceGallery.createIdentity": {
31597
31686
  capName: "face-gallery",
31598
31687
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.83",
3
+ "version": "1.2.85",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",