@camstack/addon-agent-ui 1.2.89 → 1.2.90

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.
Files changed (2) hide show
  1. package/dist/addon.js +61 -2
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -24156,6 +24156,59 @@ var IdentitySampleInfoSchema = object({
24156
24156
  deviceId: number().int().optional(),
24157
24157
  base64: string().optional()
24158
24158
  });
24159
+ /**
24160
+ * One enrolled sample, judged against the gallery it lives in.
24161
+ *
24162
+ * The gallery is the one input to recognition nobody re-reads: a sample
24163
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24164
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24165
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24166
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24167
+ * where every other cross-identity pair sits under 0.50.
24168
+ */
24169
+ var IdentitySampleAuditRowSchema = object({
24170
+ sampleId: string(),
24171
+ enrolledAt: number().int(),
24172
+ deviceId: number().int().optional(),
24173
+ source: _enum(["detected", "photo"]),
24174
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24175
+ mediaKey: string().optional(),
24176
+ /**
24177
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24178
+ * across feature spaces is a well-formed float with no meaning. Every number
24179
+ * below then says nothing — it must read as "cannot say", never as an
24180
+ * accusation and never as a clean bill: this list ends in a Remove button.
24181
+ */
24182
+ comparable: boolean(),
24183
+ /** Mean cosine against this person's other samples. Null when there are none
24184
+ * to compare with — never 0, which would read as "opposite". */
24185
+ selfMean: number().nullable(),
24186
+ /** The other person this sample looks most like, when it looks like one.
24187
+ * This is the half that convicts: not looking like yourself can be a hard
24188
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24189
+ bestForeign: object({
24190
+ identityId: string(),
24191
+ name: string(),
24192
+ score: number()
24193
+ }).optional(),
24194
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24195
+ suspicion: number()
24196
+ });
24197
+ var IdentitySampleAuditSchema = object({
24198
+ identityId: string(),
24199
+ name: string(),
24200
+ /** The cluster face model every comparison was made in. */
24201
+ modelId: string(),
24202
+ totalSamples: number().int(),
24203
+ comparableSamples: number().int(),
24204
+ flagged: number().int(),
24205
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24206
+ * only its current result. */
24207
+ flagThreshold: number(),
24208
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24209
+ * operator asked to see the gallery, not only its accusations. */
24210
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24211
+ });
24159
24212
  var FaceInfoSchema = object({
24160
24213
  faceId: string(),
24161
24214
  deviceId: number().int(),
@@ -24307,7 +24360,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24307
24360
  }), method(object({ id: string() }), _void(), {
24308
24361
  kind: "mutation",
24309
24362
  auth: "admin"
24310
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24363
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24311
24364
  identityId: string(),
24312
24365
  sampleId: string()
24313
24366
  }), _void(), {
@@ -31534,6 +31587,12 @@ Object.freeze({
31534
31587
  addonId: null,
31535
31588
  access: "create"
31536
31589
  },
31590
+ "faceGallery.auditIdentitySamples": {
31591
+ capName: "face-gallery",
31592
+ capScope: "system",
31593
+ addonId: null,
31594
+ access: "view"
31595
+ },
31537
31596
  "faceGallery.createIdentity": {
31538
31597
  capName: "face-gallery",
31539
31598
  capScope: "system",
@@ -38175,7 +38234,7 @@ var AgentUIAddon = class extends BaseAddon {
38175
38234
  capability: adminUiCapability,
38176
38235
  provider: {
38177
38236
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
38178
- getVersion: async () => ({ version: "1.2.89" })
38237
+ getVersion: async () => ({ version: "1.2.90" })
38179
38238
  }
38180
38239
  }];
38181
38240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.89",
3
+ "version": "1.2.90",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",