@camstack/addon-provider-unifi 0.2.83 → 0.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/addon.js +96 -7
- package/dist/addon.mjs +96 -7
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -18746,11 +18746,30 @@ var SensorEventSchema = object({
|
|
|
18746
18746
|
value: record(string(), unknown()).nullable(),
|
|
18747
18747
|
timestamp: number()
|
|
18748
18748
|
});
|
|
18749
|
+
/**
|
|
18750
|
+
* One stored sighting on a track's trajectory.
|
|
18751
|
+
*
|
|
18752
|
+
* The array these live in is returned in TIME order (D399) — it is APPENDED in
|
|
18753
|
+
* arrival order, and the two detector passes interleave, so a consumer must not
|
|
18754
|
+
* assume the two are the same on a row written by an older build.
|
|
18755
|
+
*/
|
|
18749
18756
|
var TrackPositionSchema = object({
|
|
18750
18757
|
x: number(),
|
|
18751
18758
|
y: number(),
|
|
18752
18759
|
timestamp: number(),
|
|
18753
|
-
bbox: BoundingBoxSchema
|
|
18760
|
+
bbox: BoundingBoxSchema,
|
|
18761
|
+
/**
|
|
18762
|
+
* Which detector pass measured this box (D399): `frame` is the full-frame
|
|
18763
|
+
* pass on the analysis raster, `recovery` is the native-resolution
|
|
18764
|
+
* small-subject second pass (D377/D378). Both write into one array, and until
|
|
18765
|
+
* this field existed the only way to tell them apart was that full-frame boxes
|
|
18766
|
+
* are exact multiples of 1.2 while recovery boxes are full-precision floats.
|
|
18767
|
+
* Absent on rows written before D399.
|
|
18768
|
+
*/
|
|
18769
|
+
source: _enum(["frame", "recovery"]).optional(),
|
|
18770
|
+
/** Detection score of this box, so a position can be weighed and not only
|
|
18771
|
+
* plotted. Absent on rows written before D399. */
|
|
18772
|
+
score: number().optional()
|
|
18754
18773
|
});
|
|
18755
18774
|
var TrackSnapshotSchema = object({
|
|
18756
18775
|
timestamp: number(),
|
|
@@ -19150,14 +19169,25 @@ var TrackSchema = object({
|
|
|
19150
19169
|
*/
|
|
19151
19170
|
hasRider: boolean().optional(),
|
|
19152
19171
|
/**
|
|
19153
|
-
* WHY this track ended without a NATIVE best-shot
|
|
19154
|
-
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)
|
|
19172
|
+
* WHY this track ended without a NATIVE best-shot FRAME
|
|
19173
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
|
|
19174
|
+
* widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
|
|
19155
19175
|
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
19156
|
-
* `derive-returned-null tile=standin`,
|
|
19157
|
-
*
|
|
19158
|
-
*
|
|
19176
|
+
* `derive-returned-null tile=standin`,
|
|
19177
|
+
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
19178
|
+
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
19179
|
+
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
19159
19180
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
19160
19181
|
*
|
|
19182
|
+
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
19183
|
+
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
19184
|
+
* while its key frame missed carried no reason at all — three of the four
|
|
19185
|
+
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
19186
|
+
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
19187
|
+
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
19188
|
+
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
19189
|
+
* tile ended up being.
|
|
19190
|
+
*
|
|
19161
19191
|
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
19162
19192
|
* that predates the field, and every track whose tile landed native all
|
|
19163
19193
|
* omit it. Render nothing when absent.
|
|
@@ -25238,6 +25268,59 @@ var IdentitySampleInfoSchema = object({
|
|
|
25238
25268
|
deviceId: number().int().optional(),
|
|
25239
25269
|
base64: string().optional()
|
|
25240
25270
|
});
|
|
25271
|
+
/**
|
|
25272
|
+
* One enrolled sample, judged against the gallery it lives in.
|
|
25273
|
+
*
|
|
25274
|
+
* The gallery is the one input to recognition nobody re-reads: a sample
|
|
25275
|
+
* enrolled from the wrong face keeps voting forever, and because the matches it
|
|
25276
|
+
* pulls then look confident, nobody goes back. The 2026-09-08 audit found
|
|
25277
|
+
* exactly one such pair on this cluster — a sample scoring 0.61 against three
|
|
25278
|
+
* samples of ANOTHER person, enrolled from the same camera in the same minute,
|
|
25279
|
+
* where every other cross-identity pair sits under 0.50.
|
|
25280
|
+
*/
|
|
25281
|
+
var IdentitySampleAuditRowSchema = object({
|
|
25282
|
+
sampleId: string(),
|
|
25283
|
+
enrolledAt: number().int(),
|
|
25284
|
+
deviceId: number().int().optional(),
|
|
25285
|
+
source: _enum(["detected", "photo"]),
|
|
25286
|
+
/** The enrolled crop's media key, so the panel can show the evidence. */
|
|
25287
|
+
mediaKey: string().optional(),
|
|
25288
|
+
/**
|
|
25289
|
+
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25290
|
+
* across feature spaces is a well-formed float with no meaning. Every number
|
|
25291
|
+
* below then says nothing — it must read as "cannot say", never as an
|
|
25292
|
+
* accusation and never as a clean bill: this list ends in a Remove button.
|
|
25293
|
+
*/
|
|
25294
|
+
comparable: boolean(),
|
|
25295
|
+
/** Mean cosine against this person's other samples. Null when there are none
|
|
25296
|
+
* to compare with — never 0, which would read as "opposite". */
|
|
25297
|
+
selfMean: number().nullable(),
|
|
25298
|
+
/** The other person this sample looks most like, when it looks like one.
|
|
25299
|
+
* This is the half that convicts: not looking like yourself can be a hard
|
|
25300
|
+
* angle; looking like someone the gallery can NAME is a mis-enrolment. */
|
|
25301
|
+
bestForeign: object({
|
|
25302
|
+
identityId: string(),
|
|
25303
|
+
name: string(),
|
|
25304
|
+
score: number()
|
|
25305
|
+
}).optional(),
|
|
25306
|
+
/** 0 = nothing to say. Higher = look at this one sooner. */
|
|
25307
|
+
suspicion: number()
|
|
25308
|
+
});
|
|
25309
|
+
var IdentitySampleAuditSchema = object({
|
|
25310
|
+
identityId: string(),
|
|
25311
|
+
name: string(),
|
|
25312
|
+
/** The cluster face model every comparison was made in. */
|
|
25313
|
+
modelId: string(),
|
|
25314
|
+
totalSamples: number().int(),
|
|
25315
|
+
comparableSamples: number().int(),
|
|
25316
|
+
flagged: number().int(),
|
|
25317
|
+
/** The bar `flagged` counts against, so the panel states the RULE and not
|
|
25318
|
+
* only its current result. */
|
|
25319
|
+
flagThreshold: number(),
|
|
25320
|
+
/** Worst first. A row with nothing to say still appears, at the bottom: the
|
|
25321
|
+
* operator asked to see the gallery, not only its accusations. */
|
|
25322
|
+
rows: array(IdentitySampleAuditRowSchema).readonly()
|
|
25323
|
+
});
|
|
25241
25324
|
var FaceInfoSchema = object({
|
|
25242
25325
|
faceId: string(),
|
|
25243
25326
|
deviceId: number().int(),
|
|
@@ -25389,7 +25472,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
25389
25472
|
}), method(object({ id: string() }), _void(), {
|
|
25390
25473
|
kind: "mutation",
|
|
25391
25474
|
auth: "admin"
|
|
25392
|
-
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
|
|
25475
|
+
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
|
|
25393
25476
|
identityId: string(),
|
|
25394
25477
|
sampleId: string()
|
|
25395
25478
|
}), _void(), {
|
|
@@ -35882,6 +35965,12 @@ Object.freeze({
|
|
|
35882
35965
|
addonId: null,
|
|
35883
35966
|
access: "create"
|
|
35884
35967
|
},
|
|
35968
|
+
"faceGallery.auditIdentitySamples": {
|
|
35969
|
+
capName: "face-gallery",
|
|
35970
|
+
capScope: "system",
|
|
35971
|
+
addonId: null,
|
|
35972
|
+
access: "view"
|
|
35973
|
+
},
|
|
35885
35974
|
"faceGallery.createIdentity": {
|
|
35886
35975
|
capName: "face-gallery",
|
|
35887
35976
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -18745,11 +18745,30 @@ var SensorEventSchema = object({
|
|
|
18745
18745
|
value: record(string(), unknown()).nullable(),
|
|
18746
18746
|
timestamp: number()
|
|
18747
18747
|
});
|
|
18748
|
+
/**
|
|
18749
|
+
* One stored sighting on a track's trajectory.
|
|
18750
|
+
*
|
|
18751
|
+
* The array these live in is returned in TIME order (D399) — it is APPENDED in
|
|
18752
|
+
* arrival order, and the two detector passes interleave, so a consumer must not
|
|
18753
|
+
* assume the two are the same on a row written by an older build.
|
|
18754
|
+
*/
|
|
18748
18755
|
var TrackPositionSchema = object({
|
|
18749
18756
|
x: number(),
|
|
18750
18757
|
y: number(),
|
|
18751
18758
|
timestamp: number(),
|
|
18752
|
-
bbox: BoundingBoxSchema
|
|
18759
|
+
bbox: BoundingBoxSchema,
|
|
18760
|
+
/**
|
|
18761
|
+
* Which detector pass measured this box (D399): `frame` is the full-frame
|
|
18762
|
+
* pass on the analysis raster, `recovery` is the native-resolution
|
|
18763
|
+
* small-subject second pass (D377/D378). Both write into one array, and until
|
|
18764
|
+
* this field existed the only way to tell them apart was that full-frame boxes
|
|
18765
|
+
* are exact multiples of 1.2 while recovery boxes are full-precision floats.
|
|
18766
|
+
* Absent on rows written before D399.
|
|
18767
|
+
*/
|
|
18768
|
+
source: _enum(["frame", "recovery"]).optional(),
|
|
18769
|
+
/** Detection score of this box, so a position can be weighed and not only
|
|
18770
|
+
* plotted. Absent on rows written before D399. */
|
|
18771
|
+
score: number().optional()
|
|
18753
18772
|
});
|
|
18754
18773
|
var TrackSnapshotSchema = object({
|
|
18755
18774
|
timestamp: number(),
|
|
@@ -19149,14 +19168,25 @@ var TrackSchema = object({
|
|
|
19149
19168
|
*/
|
|
19150
19169
|
hasRider: boolean().optional(),
|
|
19151
19170
|
/**
|
|
19152
|
-
* WHY this track ended without a NATIVE best-shot
|
|
19153
|
-
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)
|
|
19171
|
+
* WHY this track ended without a NATIVE best-shot FRAME
|
|
19172
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
|
|
19173
|
+
* widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
|
|
19154
19174
|
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
19155
|
-
* `derive-returned-null tile=standin`,
|
|
19156
|
-
*
|
|
19157
|
-
*
|
|
19175
|
+
* `derive-returned-null tile=standin`,
|
|
19176
|
+
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
19177
|
+
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
19178
|
+
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
19158
19179
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
19159
19180
|
*
|
|
19181
|
+
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
19182
|
+
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
19183
|
+
* while its key frame missed carried no reason at all — three of the four
|
|
19184
|
+
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
19185
|
+
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
19186
|
+
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
19187
|
+
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
19188
|
+
* tile ended up being.
|
|
19189
|
+
*
|
|
19160
19190
|
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
19161
19191
|
* that predates the field, and every track whose tile landed native all
|
|
19162
19192
|
* omit it. Render nothing when absent.
|
|
@@ -25237,6 +25267,59 @@ var IdentitySampleInfoSchema = object({
|
|
|
25237
25267
|
deviceId: number().int().optional(),
|
|
25238
25268
|
base64: string().optional()
|
|
25239
25269
|
});
|
|
25270
|
+
/**
|
|
25271
|
+
* One enrolled sample, judged against the gallery it lives in.
|
|
25272
|
+
*
|
|
25273
|
+
* The gallery is the one input to recognition nobody re-reads: a sample
|
|
25274
|
+
* enrolled from the wrong face keeps voting forever, and because the matches it
|
|
25275
|
+
* pulls then look confident, nobody goes back. The 2026-09-08 audit found
|
|
25276
|
+
* exactly one such pair on this cluster — a sample scoring 0.61 against three
|
|
25277
|
+
* samples of ANOTHER person, enrolled from the same camera in the same minute,
|
|
25278
|
+
* where every other cross-identity pair sits under 0.50.
|
|
25279
|
+
*/
|
|
25280
|
+
var IdentitySampleAuditRowSchema = object({
|
|
25281
|
+
sampleId: string(),
|
|
25282
|
+
enrolledAt: number().int(),
|
|
25283
|
+
deviceId: number().int().optional(),
|
|
25284
|
+
source: _enum(["detected", "photo"]),
|
|
25285
|
+
/** The enrolled crop's media key, so the panel can show the evidence. */
|
|
25286
|
+
mediaKey: string().optional(),
|
|
25287
|
+
/**
|
|
25288
|
+
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
25289
|
+
* across feature spaces is a well-formed float with no meaning. Every number
|
|
25290
|
+
* below then says nothing — it must read as "cannot say", never as an
|
|
25291
|
+
* accusation and never as a clean bill: this list ends in a Remove button.
|
|
25292
|
+
*/
|
|
25293
|
+
comparable: boolean(),
|
|
25294
|
+
/** Mean cosine against this person's other samples. Null when there are none
|
|
25295
|
+
* to compare with — never 0, which would read as "opposite". */
|
|
25296
|
+
selfMean: number().nullable(),
|
|
25297
|
+
/** The other person this sample looks most like, when it looks like one.
|
|
25298
|
+
* This is the half that convicts: not looking like yourself can be a hard
|
|
25299
|
+
* angle; looking like someone the gallery can NAME is a mis-enrolment. */
|
|
25300
|
+
bestForeign: object({
|
|
25301
|
+
identityId: string(),
|
|
25302
|
+
name: string(),
|
|
25303
|
+
score: number()
|
|
25304
|
+
}).optional(),
|
|
25305
|
+
/** 0 = nothing to say. Higher = look at this one sooner. */
|
|
25306
|
+
suspicion: number()
|
|
25307
|
+
});
|
|
25308
|
+
var IdentitySampleAuditSchema = object({
|
|
25309
|
+
identityId: string(),
|
|
25310
|
+
name: string(),
|
|
25311
|
+
/** The cluster face model every comparison was made in. */
|
|
25312
|
+
modelId: string(),
|
|
25313
|
+
totalSamples: number().int(),
|
|
25314
|
+
comparableSamples: number().int(),
|
|
25315
|
+
flagged: number().int(),
|
|
25316
|
+
/** The bar `flagged` counts against, so the panel states the RULE and not
|
|
25317
|
+
* only its current result. */
|
|
25318
|
+
flagThreshold: number(),
|
|
25319
|
+
/** Worst first. A row with nothing to say still appears, at the bottom: the
|
|
25320
|
+
* operator asked to see the gallery, not only its accusations. */
|
|
25321
|
+
rows: array(IdentitySampleAuditRowSchema).readonly()
|
|
25322
|
+
});
|
|
25240
25323
|
var FaceInfoSchema = object({
|
|
25241
25324
|
faceId: string(),
|
|
25242
25325
|
deviceId: number().int(),
|
|
@@ -25388,7 +25471,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
25388
25471
|
}), method(object({ id: string() }), _void(), {
|
|
25389
25472
|
kind: "mutation",
|
|
25390
25473
|
auth: "admin"
|
|
25391
|
-
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
|
|
25474
|
+
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
|
|
25392
25475
|
identityId: string(),
|
|
25393
25476
|
sampleId: string()
|
|
25394
25477
|
}), _void(), {
|
|
@@ -35881,6 +35964,12 @@ Object.freeze({
|
|
|
35881
35964
|
addonId: null,
|
|
35882
35965
|
access: "create"
|
|
35883
35966
|
},
|
|
35967
|
+
"faceGallery.auditIdentitySamples": {
|
|
35968
|
+
capName: "face-gallery",
|
|
35969
|
+
capScope: "system",
|
|
35970
|
+
addonId: null,
|
|
35971
|
+
access: "view"
|
|
35972
|
+
},
|
|
35884
35973
|
"faceGallery.createIdentity": {
|
|
35885
35974
|
capName: "face-gallery",
|
|
35886
35975
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.85",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|