@camstack/addon-export-hap 1.2.94 → 1.2.96
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/hap-export.addon.js +96 -7
- package/dist/hap-export.addon.mjs +96 -7
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -19179,11 +19179,30 @@ var SensorEventSchema = object({
|
|
|
19179
19179
|
value: record(string(), unknown()).nullable(),
|
|
19180
19180
|
timestamp: number()
|
|
19181
19181
|
});
|
|
19182
|
+
/**
|
|
19183
|
+
* One stored sighting on a track's trajectory.
|
|
19184
|
+
*
|
|
19185
|
+
* The array these live in is returned in TIME order (D399) — it is APPENDED in
|
|
19186
|
+
* arrival order, and the two detector passes interleave, so a consumer must not
|
|
19187
|
+
* assume the two are the same on a row written by an older build.
|
|
19188
|
+
*/
|
|
19182
19189
|
var TrackPositionSchema = object({
|
|
19183
19190
|
x: number(),
|
|
19184
19191
|
y: number(),
|
|
19185
19192
|
timestamp: number(),
|
|
19186
|
-
bbox: BoundingBoxSchema
|
|
19193
|
+
bbox: BoundingBoxSchema,
|
|
19194
|
+
/**
|
|
19195
|
+
* Which detector pass measured this box (D399): `frame` is the full-frame
|
|
19196
|
+
* pass on the analysis raster, `recovery` is the native-resolution
|
|
19197
|
+
* small-subject second pass (D377/D378). Both write into one array, and until
|
|
19198
|
+
* this field existed the only way to tell them apart was that full-frame boxes
|
|
19199
|
+
* are exact multiples of 1.2 while recovery boxes are full-precision floats.
|
|
19200
|
+
* Absent on rows written before D399.
|
|
19201
|
+
*/
|
|
19202
|
+
source: _enum(["frame", "recovery"]).optional(),
|
|
19203
|
+
/** Detection score of this box, so a position can be weighed and not only
|
|
19204
|
+
* plotted. Absent on rows written before D399. */
|
|
19205
|
+
score: number().optional()
|
|
19187
19206
|
});
|
|
19188
19207
|
var TrackSnapshotSchema = object({
|
|
19189
19208
|
timestamp: number(),
|
|
@@ -19583,14 +19602,25 @@ var TrackSchema = object({
|
|
|
19583
19602
|
*/
|
|
19584
19603
|
hasRider: boolean().optional(),
|
|
19585
19604
|
/**
|
|
19586
|
-
* WHY this track ended without a NATIVE best-shot
|
|
19587
|
-
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)
|
|
19605
|
+
* WHY this track ended without a NATIVE best-shot FRAME
|
|
19606
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
|
|
19607
|
+
* widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
|
|
19588
19608
|
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
19589
|
-
* `derive-returned-null tile=standin`,
|
|
19590
|
-
*
|
|
19591
|
-
*
|
|
19609
|
+
* `derive-returned-null tile=standin`,
|
|
19610
|
+
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
19611
|
+
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
19612
|
+
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
19592
19613
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
19593
19614
|
*
|
|
19615
|
+
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
19616
|
+
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
19617
|
+
* while its key frame missed carried no reason at all — three of the four
|
|
19618
|
+
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
19619
|
+
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
19620
|
+
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
19621
|
+
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
19622
|
+
* tile ended up being.
|
|
19623
|
+
*
|
|
19594
19624
|
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
19595
19625
|
* that predates the field, and every track whose tile landed native all
|
|
19596
19626
|
* omit it. Render nothing when absent.
|
|
@@ -24944,6 +24974,59 @@ var IdentitySampleInfoSchema = object({
|
|
|
24944
24974
|
deviceId: number().int().optional(),
|
|
24945
24975
|
base64: string().optional()
|
|
24946
24976
|
});
|
|
24977
|
+
/**
|
|
24978
|
+
* One enrolled sample, judged against the gallery it lives in.
|
|
24979
|
+
*
|
|
24980
|
+
* The gallery is the one input to recognition nobody re-reads: a sample
|
|
24981
|
+
* enrolled from the wrong face keeps voting forever, and because the matches it
|
|
24982
|
+
* pulls then look confident, nobody goes back. The 2026-09-08 audit found
|
|
24983
|
+
* exactly one such pair on this cluster — a sample scoring 0.61 against three
|
|
24984
|
+
* samples of ANOTHER person, enrolled from the same camera in the same minute,
|
|
24985
|
+
* where every other cross-identity pair sits under 0.50.
|
|
24986
|
+
*/
|
|
24987
|
+
var IdentitySampleAuditRowSchema = object({
|
|
24988
|
+
sampleId: string(),
|
|
24989
|
+
enrolledAt: number().int(),
|
|
24990
|
+
deviceId: number().int().optional(),
|
|
24991
|
+
source: _enum(["detected", "photo"]),
|
|
24992
|
+
/** The enrolled crop's media key, so the panel can show the evidence. */
|
|
24993
|
+
mediaKey: string().optional(),
|
|
24994
|
+
/**
|
|
24995
|
+
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
24996
|
+
* across feature spaces is a well-formed float with no meaning. Every number
|
|
24997
|
+
* below then says nothing — it must read as "cannot say", never as an
|
|
24998
|
+
* accusation and never as a clean bill: this list ends in a Remove button.
|
|
24999
|
+
*/
|
|
25000
|
+
comparable: boolean(),
|
|
25001
|
+
/** Mean cosine against this person's other samples. Null when there are none
|
|
25002
|
+
* to compare with — never 0, which would read as "opposite". */
|
|
25003
|
+
selfMean: number().nullable(),
|
|
25004
|
+
/** The other person this sample looks most like, when it looks like one.
|
|
25005
|
+
* This is the half that convicts: not looking like yourself can be a hard
|
|
25006
|
+
* angle; looking like someone the gallery can NAME is a mis-enrolment. */
|
|
25007
|
+
bestForeign: object({
|
|
25008
|
+
identityId: string(),
|
|
25009
|
+
name: string(),
|
|
25010
|
+
score: number()
|
|
25011
|
+
}).optional(),
|
|
25012
|
+
/** 0 = nothing to say. Higher = look at this one sooner. */
|
|
25013
|
+
suspicion: number()
|
|
25014
|
+
});
|
|
25015
|
+
var IdentitySampleAuditSchema = object({
|
|
25016
|
+
identityId: string(),
|
|
25017
|
+
name: string(),
|
|
25018
|
+
/** The cluster face model every comparison was made in. */
|
|
25019
|
+
modelId: string(),
|
|
25020
|
+
totalSamples: number().int(),
|
|
25021
|
+
comparableSamples: number().int(),
|
|
25022
|
+
flagged: number().int(),
|
|
25023
|
+
/** The bar `flagged` counts against, so the panel states the RULE and not
|
|
25024
|
+
* only its current result. */
|
|
25025
|
+
flagThreshold: number(),
|
|
25026
|
+
/** Worst first. A row with nothing to say still appears, at the bottom: the
|
|
25027
|
+
* operator asked to see the gallery, not only its accusations. */
|
|
25028
|
+
rows: array(IdentitySampleAuditRowSchema).readonly()
|
|
25029
|
+
});
|
|
24947
25030
|
var FaceInfoSchema = object({
|
|
24948
25031
|
faceId: string(),
|
|
24949
25032
|
deviceId: number().int(),
|
|
@@ -25095,7 +25178,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
25095
25178
|
}), method(object({ id: string() }), _void(), {
|
|
25096
25179
|
kind: "mutation",
|
|
25097
25180
|
auth: "admin"
|
|
25098
|
-
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
|
|
25181
|
+
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
|
|
25099
25182
|
identityId: string(),
|
|
25100
25183
|
sampleId: string()
|
|
25101
25184
|
}), _void(), {
|
|
@@ -32375,6 +32458,12 @@ Object.freeze({
|
|
|
32375
32458
|
addonId: null,
|
|
32376
32459
|
access: "create"
|
|
32377
32460
|
},
|
|
32461
|
+
"faceGallery.auditIdentitySamples": {
|
|
32462
|
+
capName: "face-gallery",
|
|
32463
|
+
capScope: "system",
|
|
32464
|
+
addonId: null,
|
|
32465
|
+
access: "view"
|
|
32466
|
+
},
|
|
32378
32467
|
"faceGallery.createIdentity": {
|
|
32379
32468
|
capName: "face-gallery",
|
|
32380
32469
|
capScope: "system",
|
|
@@ -19167,11 +19167,30 @@ var SensorEventSchema = object({
|
|
|
19167
19167
|
value: record(string(), unknown()).nullable(),
|
|
19168
19168
|
timestamp: number()
|
|
19169
19169
|
});
|
|
19170
|
+
/**
|
|
19171
|
+
* One stored sighting on a track's trajectory.
|
|
19172
|
+
*
|
|
19173
|
+
* The array these live in is returned in TIME order (D399) — it is APPENDED in
|
|
19174
|
+
* arrival order, and the two detector passes interleave, so a consumer must not
|
|
19175
|
+
* assume the two are the same on a row written by an older build.
|
|
19176
|
+
*/
|
|
19170
19177
|
var TrackPositionSchema = object({
|
|
19171
19178
|
x: number(),
|
|
19172
19179
|
y: number(),
|
|
19173
19180
|
timestamp: number(),
|
|
19174
|
-
bbox: BoundingBoxSchema
|
|
19181
|
+
bbox: BoundingBoxSchema,
|
|
19182
|
+
/**
|
|
19183
|
+
* Which detector pass measured this box (D399): `frame` is the full-frame
|
|
19184
|
+
* pass on the analysis raster, `recovery` is the native-resolution
|
|
19185
|
+
* small-subject second pass (D377/D378). Both write into one array, and until
|
|
19186
|
+
* this field existed the only way to tell them apart was that full-frame boxes
|
|
19187
|
+
* are exact multiples of 1.2 while recovery boxes are full-precision floats.
|
|
19188
|
+
* Absent on rows written before D399.
|
|
19189
|
+
*/
|
|
19190
|
+
source: _enum(["frame", "recovery"]).optional(),
|
|
19191
|
+
/** Detection score of this box, so a position can be weighed and not only
|
|
19192
|
+
* plotted. Absent on rows written before D399. */
|
|
19193
|
+
score: number().optional()
|
|
19175
19194
|
});
|
|
19176
19195
|
var TrackSnapshotSchema = object({
|
|
19177
19196
|
timestamp: number(),
|
|
@@ -19571,14 +19590,25 @@ var TrackSchema = object({
|
|
|
19571
19590
|
*/
|
|
19572
19591
|
hasRider: boolean().optional(),
|
|
19573
19592
|
/**
|
|
19574
|
-
* WHY this track ended without a NATIVE best-shot
|
|
19575
|
-
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)
|
|
19593
|
+
* WHY this track ended without a NATIVE best-shot FRAME
|
|
19594
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
|
|
19595
|
+
* widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
|
|
19576
19596
|
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
19577
|
-
* `derive-returned-null tile=standin`,
|
|
19578
|
-
*
|
|
19579
|
-
*
|
|
19597
|
+
* `derive-returned-null tile=standin`,
|
|
19598
|
+
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
19599
|
+
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
19600
|
+
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
19580
19601
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
19581
19602
|
*
|
|
19603
|
+
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
19604
|
+
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
19605
|
+
* while its key frame missed carried no reason at all — three of the four
|
|
19606
|
+
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
19607
|
+
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
19608
|
+
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
19609
|
+
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
19610
|
+
* tile ended up being.
|
|
19611
|
+
*
|
|
19582
19612
|
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
19583
19613
|
* that predates the field, and every track whose tile landed native all
|
|
19584
19614
|
* omit it. Render nothing when absent.
|
|
@@ -24932,6 +24962,59 @@ var IdentitySampleInfoSchema = object({
|
|
|
24932
24962
|
deviceId: number().int().optional(),
|
|
24933
24963
|
base64: string().optional()
|
|
24934
24964
|
});
|
|
24965
|
+
/**
|
|
24966
|
+
* One enrolled sample, judged against the gallery it lives in.
|
|
24967
|
+
*
|
|
24968
|
+
* The gallery is the one input to recognition nobody re-reads: a sample
|
|
24969
|
+
* enrolled from the wrong face keeps voting forever, and because the matches it
|
|
24970
|
+
* pulls then look confident, nobody goes back. The 2026-09-08 audit found
|
|
24971
|
+
* exactly one such pair on this cluster — a sample scoring 0.61 against three
|
|
24972
|
+
* samples of ANOTHER person, enrolled from the same camera in the same minute,
|
|
24973
|
+
* where every other cross-identity pair sits under 0.50.
|
|
24974
|
+
*/
|
|
24975
|
+
var IdentitySampleAuditRowSchema = object({
|
|
24976
|
+
sampleId: string(),
|
|
24977
|
+
enrolledAt: number().int(),
|
|
24978
|
+
deviceId: number().int().optional(),
|
|
24979
|
+
source: _enum(["detected", "photo"]),
|
|
24980
|
+
/** The enrolled crop's media key, so the panel can show the evidence. */
|
|
24981
|
+
mediaKey: string().optional(),
|
|
24982
|
+
/**
|
|
24983
|
+
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
24984
|
+
* across feature spaces is a well-formed float with no meaning. Every number
|
|
24985
|
+
* below then says nothing — it must read as "cannot say", never as an
|
|
24986
|
+
* accusation and never as a clean bill: this list ends in a Remove button.
|
|
24987
|
+
*/
|
|
24988
|
+
comparable: boolean(),
|
|
24989
|
+
/** Mean cosine against this person's other samples. Null when there are none
|
|
24990
|
+
* to compare with — never 0, which would read as "opposite". */
|
|
24991
|
+
selfMean: number().nullable(),
|
|
24992
|
+
/** The other person this sample looks most like, when it looks like one.
|
|
24993
|
+
* This is the half that convicts: not looking like yourself can be a hard
|
|
24994
|
+
* angle; looking like someone the gallery can NAME is a mis-enrolment. */
|
|
24995
|
+
bestForeign: object({
|
|
24996
|
+
identityId: string(),
|
|
24997
|
+
name: string(),
|
|
24998
|
+
score: number()
|
|
24999
|
+
}).optional(),
|
|
25000
|
+
/** 0 = nothing to say. Higher = look at this one sooner. */
|
|
25001
|
+
suspicion: number()
|
|
25002
|
+
});
|
|
25003
|
+
var IdentitySampleAuditSchema = object({
|
|
25004
|
+
identityId: string(),
|
|
25005
|
+
name: string(),
|
|
25006
|
+
/** The cluster face model every comparison was made in. */
|
|
25007
|
+
modelId: string(),
|
|
25008
|
+
totalSamples: number().int(),
|
|
25009
|
+
comparableSamples: number().int(),
|
|
25010
|
+
flagged: number().int(),
|
|
25011
|
+
/** The bar `flagged` counts against, so the panel states the RULE and not
|
|
25012
|
+
* only its current result. */
|
|
25013
|
+
flagThreshold: number(),
|
|
25014
|
+
/** Worst first. A row with nothing to say still appears, at the bottom: the
|
|
25015
|
+
* operator asked to see the gallery, not only its accusations. */
|
|
25016
|
+
rows: array(IdentitySampleAuditRowSchema).readonly()
|
|
25017
|
+
});
|
|
24935
25018
|
var FaceInfoSchema = object({
|
|
24936
25019
|
faceId: string(),
|
|
24937
25020
|
deviceId: number().int(),
|
|
@@ -25083,7 +25166,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
25083
25166
|
}), method(object({ id: string() }), _void(), {
|
|
25084
25167
|
kind: "mutation",
|
|
25085
25168
|
auth: "admin"
|
|
25086
|
-
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
|
|
25169
|
+
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
|
|
25087
25170
|
identityId: string(),
|
|
25088
25171
|
sampleId: string()
|
|
25089
25172
|
}), _void(), {
|
|
@@ -32363,6 +32446,12 @@ Object.freeze({
|
|
|
32363
32446
|
addonId: null,
|
|
32364
32447
|
access: "create"
|
|
32365
32448
|
},
|
|
32449
|
+
"faceGallery.auditIdentitySamples": {
|
|
32450
|
+
capName: "face-gallery",
|
|
32451
|
+
capScope: "system",
|
|
32452
|
+
addonId: null,
|
|
32453
|
+
access: "view"
|
|
32454
|
+
},
|
|
32366
32455
|
"faceGallery.createIdentity": {
|
|
32367
32456
|
capName: "face-gallery",
|
|
32368
32457
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.96",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|