@camstack/addon-matter-broker 0.2.83 → 0.2.84

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
@@ -25348,6 +25348,59 @@ var IdentitySampleInfoSchema = object({
25348
25348
  deviceId: number().int().optional(),
25349
25349
  base64: string$2().optional()
25350
25350
  });
25351
+ /**
25352
+ * One enrolled sample, judged against the gallery it lives in.
25353
+ *
25354
+ * The gallery is the one input to recognition nobody re-reads: a sample
25355
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25356
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25357
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25358
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25359
+ * where every other cross-identity pair sits under 0.50.
25360
+ */
25361
+ var IdentitySampleAuditRowSchema = object({
25362
+ sampleId: string$2(),
25363
+ enrolledAt: number().int(),
25364
+ deviceId: number().int().optional(),
25365
+ source: _enum(["detected", "photo"]),
25366
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25367
+ mediaKey: string$2().optional(),
25368
+ /**
25369
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25370
+ * across feature spaces is a well-formed float with no meaning. Every number
25371
+ * below then says nothing — it must read as "cannot say", never as an
25372
+ * accusation and never as a clean bill: this list ends in a Remove button.
25373
+ */
25374
+ comparable: boolean(),
25375
+ /** Mean cosine against this person's other samples. Null when there are none
25376
+ * to compare with — never 0, which would read as "opposite". */
25377
+ selfMean: number().nullable(),
25378
+ /** The other person this sample looks most like, when it looks like one.
25379
+ * This is the half that convicts: not looking like yourself can be a hard
25380
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25381
+ bestForeign: object({
25382
+ identityId: string$2(),
25383
+ name: string$2(),
25384
+ score: number()
25385
+ }).optional(),
25386
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25387
+ suspicion: number()
25388
+ });
25389
+ var IdentitySampleAuditSchema = object({
25390
+ identityId: string$2(),
25391
+ name: string$2(),
25392
+ /** The cluster face model every comparison was made in. */
25393
+ modelId: string$2(),
25394
+ totalSamples: number().int(),
25395
+ comparableSamples: number().int(),
25396
+ flagged: number().int(),
25397
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25398
+ * only its current result. */
25399
+ flagThreshold: number(),
25400
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25401
+ * operator asked to see the gallery, not only its accusations. */
25402
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25403
+ });
25351
25404
  var FaceInfoSchema = object({
25352
25405
  faceId: string$2(),
25353
25406
  deviceId: number().int(),
@@ -25499,7 +25552,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25499
25552
  }), method(object({ id: string$2() }), _void(), {
25500
25553
  kind: "mutation",
25501
25554
  auth: "admin"
25502
- }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25555
+ }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string$2().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25503
25556
  identityId: string$2(),
25504
25557
  sampleId: string$2()
25505
25558
  }), _void(), {
@@ -35992,6 +36045,12 @@ Object.freeze({
35992
36045
  addonId: null,
35993
36046
  access: "create"
35994
36047
  },
36048
+ "faceGallery.auditIdentitySamples": {
36049
+ capName: "face-gallery",
36050
+ capScope: "system",
36051
+ addonId: null,
36052
+ access: "view"
36053
+ },
35995
36054
  "faceGallery.createIdentity": {
35996
36055
  capName: "face-gallery",
35997
36056
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -25346,6 +25346,59 @@ var IdentitySampleInfoSchema = object({
25346
25346
  deviceId: number().int().optional(),
25347
25347
  base64: string$2().optional()
25348
25348
  });
25349
+ /**
25350
+ * One enrolled sample, judged against the gallery it lives in.
25351
+ *
25352
+ * The gallery is the one input to recognition nobody re-reads: a sample
25353
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25354
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25355
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25356
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25357
+ * where every other cross-identity pair sits under 0.50.
25358
+ */
25359
+ var IdentitySampleAuditRowSchema = object({
25360
+ sampleId: string$2(),
25361
+ enrolledAt: number().int(),
25362
+ deviceId: number().int().optional(),
25363
+ source: _enum(["detected", "photo"]),
25364
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25365
+ mediaKey: string$2().optional(),
25366
+ /**
25367
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25368
+ * across feature spaces is a well-formed float with no meaning. Every number
25369
+ * below then says nothing — it must read as "cannot say", never as an
25370
+ * accusation and never as a clean bill: this list ends in a Remove button.
25371
+ */
25372
+ comparable: boolean(),
25373
+ /** Mean cosine against this person's other samples. Null when there are none
25374
+ * to compare with — never 0, which would read as "opposite". */
25375
+ selfMean: number().nullable(),
25376
+ /** The other person this sample looks most like, when it looks like one.
25377
+ * This is the half that convicts: not looking like yourself can be a hard
25378
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25379
+ bestForeign: object({
25380
+ identityId: string$2(),
25381
+ name: string$2(),
25382
+ score: number()
25383
+ }).optional(),
25384
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25385
+ suspicion: number()
25386
+ });
25387
+ var IdentitySampleAuditSchema = object({
25388
+ identityId: string$2(),
25389
+ name: string$2(),
25390
+ /** The cluster face model every comparison was made in. */
25391
+ modelId: string$2(),
25392
+ totalSamples: number().int(),
25393
+ comparableSamples: number().int(),
25394
+ flagged: number().int(),
25395
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25396
+ * only its current result. */
25397
+ flagThreshold: number(),
25398
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25399
+ * operator asked to see the gallery, not only its accusations. */
25400
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25401
+ });
25349
25402
  var FaceInfoSchema = object({
25350
25403
  faceId: string$2(),
25351
25404
  deviceId: number().int(),
@@ -25497,7 +25550,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25497
25550
  }), method(object({ id: string$2() }), _void(), {
25498
25551
  kind: "mutation",
25499
25552
  auth: "admin"
25500
- }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25553
+ }), method(object({ identityId: string$2() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string$2().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25501
25554
  identityId: string$2(),
25502
25555
  sampleId: string$2()
25503
25556
  }), _void(), {
@@ -35990,6 +36043,12 @@ Object.freeze({
35990
36043
  addonId: null,
35991
36044
  access: "create"
35992
36045
  },
36046
+ "faceGallery.auditIdentitySamples": {
36047
+ capName: "face-gallery",
36048
+ capScope: "system",
36049
+ addonId: null,
36050
+ access: "view"
36051
+ },
35993
36052
  "faceGallery.createIdentity": {
35994
36053
  capName: "face-gallery",
35995
36054
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-matter-broker",
3
- "version": "0.2.83",
3
+ "version": "0.2.84",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",