@camstack/addon-provider-tuya 0.2.84 → 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 +60 -1
- package/dist/addon.mjs +60 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -26096,6 +26096,59 @@ var IdentitySampleInfoSchema = object({
|
|
|
26096
26096
|
deviceId: number().int().optional(),
|
|
26097
26097
|
base64: string().optional()
|
|
26098
26098
|
});
|
|
26099
|
+
/**
|
|
26100
|
+
* One enrolled sample, judged against the gallery it lives in.
|
|
26101
|
+
*
|
|
26102
|
+
* The gallery is the one input to recognition nobody re-reads: a sample
|
|
26103
|
+
* enrolled from the wrong face keeps voting forever, and because the matches it
|
|
26104
|
+
* pulls then look confident, nobody goes back. The 2026-09-08 audit found
|
|
26105
|
+
* exactly one such pair on this cluster — a sample scoring 0.61 against three
|
|
26106
|
+
* samples of ANOTHER person, enrolled from the same camera in the same minute,
|
|
26107
|
+
* where every other cross-identity pair sits under 0.50.
|
|
26108
|
+
*/
|
|
26109
|
+
var IdentitySampleAuditRowSchema = object({
|
|
26110
|
+
sampleId: string(),
|
|
26111
|
+
enrolledAt: number().int(),
|
|
26112
|
+
deviceId: number().int().optional(),
|
|
26113
|
+
source: _enum(["detected", "photo"]),
|
|
26114
|
+
/** The enrolled crop's media key, so the panel can show the evidence. */
|
|
26115
|
+
mediaKey: string().optional(),
|
|
26116
|
+
/**
|
|
26117
|
+
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26118
|
+
* across feature spaces is a well-formed float with no meaning. Every number
|
|
26119
|
+
* below then says nothing — it must read as "cannot say", never as an
|
|
26120
|
+
* accusation and never as a clean bill: this list ends in a Remove button.
|
|
26121
|
+
*/
|
|
26122
|
+
comparable: boolean(),
|
|
26123
|
+
/** Mean cosine against this person's other samples. Null when there are none
|
|
26124
|
+
* to compare with — never 0, which would read as "opposite". */
|
|
26125
|
+
selfMean: number().nullable(),
|
|
26126
|
+
/** The other person this sample looks most like, when it looks like one.
|
|
26127
|
+
* This is the half that convicts: not looking like yourself can be a hard
|
|
26128
|
+
* angle; looking like someone the gallery can NAME is a mis-enrolment. */
|
|
26129
|
+
bestForeign: object({
|
|
26130
|
+
identityId: string(),
|
|
26131
|
+
name: string(),
|
|
26132
|
+
score: number()
|
|
26133
|
+
}).optional(),
|
|
26134
|
+
/** 0 = nothing to say. Higher = look at this one sooner. */
|
|
26135
|
+
suspicion: number()
|
|
26136
|
+
});
|
|
26137
|
+
var IdentitySampleAuditSchema = object({
|
|
26138
|
+
identityId: string(),
|
|
26139
|
+
name: string(),
|
|
26140
|
+
/** The cluster face model every comparison was made in. */
|
|
26141
|
+
modelId: string(),
|
|
26142
|
+
totalSamples: number().int(),
|
|
26143
|
+
comparableSamples: number().int(),
|
|
26144
|
+
flagged: number().int(),
|
|
26145
|
+
/** The bar `flagged` counts against, so the panel states the RULE and not
|
|
26146
|
+
* only its current result. */
|
|
26147
|
+
flagThreshold: number(),
|
|
26148
|
+
/** Worst first. A row with nothing to say still appears, at the bottom: the
|
|
26149
|
+
* operator asked to see the gallery, not only its accusations. */
|
|
26150
|
+
rows: array(IdentitySampleAuditRowSchema).readonly()
|
|
26151
|
+
});
|
|
26099
26152
|
var FaceInfoSchema = object({
|
|
26100
26153
|
faceId: string(),
|
|
26101
26154
|
deviceId: number().int(),
|
|
@@ -26247,7 +26300,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
26247
26300
|
}), method(object({ id: string() }), _void(), {
|
|
26248
26301
|
kind: "mutation",
|
|
26249
26302
|
auth: "admin"
|
|
26250
|
-
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
|
|
26303
|
+
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
|
|
26251
26304
|
identityId: string(),
|
|
26252
26305
|
sampleId: string()
|
|
26253
26306
|
}), _void(), {
|
|
@@ -36740,6 +36793,12 @@ Object.freeze({
|
|
|
36740
36793
|
addonId: null,
|
|
36741
36794
|
access: "create"
|
|
36742
36795
|
},
|
|
36796
|
+
"faceGallery.auditIdentitySamples": {
|
|
36797
|
+
capName: "face-gallery",
|
|
36798
|
+
capScope: "system",
|
|
36799
|
+
addonId: null,
|
|
36800
|
+
access: "view"
|
|
36801
|
+
},
|
|
36743
36802
|
"faceGallery.createIdentity": {
|
|
36744
36803
|
capName: "face-gallery",
|
|
36745
36804
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -26095,6 +26095,59 @@ var IdentitySampleInfoSchema = object({
|
|
|
26095
26095
|
deviceId: number().int().optional(),
|
|
26096
26096
|
base64: string().optional()
|
|
26097
26097
|
});
|
|
26098
|
+
/**
|
|
26099
|
+
* One enrolled sample, judged against the gallery it lives in.
|
|
26100
|
+
*
|
|
26101
|
+
* The gallery is the one input to recognition nobody re-reads: a sample
|
|
26102
|
+
* enrolled from the wrong face keeps voting forever, and because the matches it
|
|
26103
|
+
* pulls then look confident, nobody goes back. The 2026-09-08 audit found
|
|
26104
|
+
* exactly one such pair on this cluster — a sample scoring 0.61 against three
|
|
26105
|
+
* samples of ANOTHER person, enrolled from the same camera in the same minute,
|
|
26106
|
+
* where every other cross-identity pair sits under 0.50.
|
|
26107
|
+
*/
|
|
26108
|
+
var IdentitySampleAuditRowSchema = object({
|
|
26109
|
+
sampleId: string(),
|
|
26110
|
+
enrolledAt: number().int(),
|
|
26111
|
+
deviceId: number().int().optional(),
|
|
26112
|
+
source: _enum(["detected", "photo"]),
|
|
26113
|
+
/** The enrolled crop's media key, so the panel can show the evidence. */
|
|
26114
|
+
mediaKey: string().optional(),
|
|
26115
|
+
/**
|
|
26116
|
+
* False = the sample is stamped with a DIFFERENT face model, and a cosine
|
|
26117
|
+
* across feature spaces is a well-formed float with no meaning. Every number
|
|
26118
|
+
* below then says nothing — it must read as "cannot say", never as an
|
|
26119
|
+
* accusation and never as a clean bill: this list ends in a Remove button.
|
|
26120
|
+
*/
|
|
26121
|
+
comparable: boolean(),
|
|
26122
|
+
/** Mean cosine against this person's other samples. Null when there are none
|
|
26123
|
+
* to compare with — never 0, which would read as "opposite". */
|
|
26124
|
+
selfMean: number().nullable(),
|
|
26125
|
+
/** The other person this sample looks most like, when it looks like one.
|
|
26126
|
+
* This is the half that convicts: not looking like yourself can be a hard
|
|
26127
|
+
* angle; looking like someone the gallery can NAME is a mis-enrolment. */
|
|
26128
|
+
bestForeign: object({
|
|
26129
|
+
identityId: string(),
|
|
26130
|
+
name: string(),
|
|
26131
|
+
score: number()
|
|
26132
|
+
}).optional(),
|
|
26133
|
+
/** 0 = nothing to say. Higher = look at this one sooner. */
|
|
26134
|
+
suspicion: number()
|
|
26135
|
+
});
|
|
26136
|
+
var IdentitySampleAuditSchema = object({
|
|
26137
|
+
identityId: string(),
|
|
26138
|
+
name: string(),
|
|
26139
|
+
/** The cluster face model every comparison was made in. */
|
|
26140
|
+
modelId: string(),
|
|
26141
|
+
totalSamples: number().int(),
|
|
26142
|
+
comparableSamples: number().int(),
|
|
26143
|
+
flagged: number().int(),
|
|
26144
|
+
/** The bar `flagged` counts against, so the panel states the RULE and not
|
|
26145
|
+
* only its current result. */
|
|
26146
|
+
flagThreshold: number(),
|
|
26147
|
+
/** Worst first. A row with nothing to say still appears, at the bottom: the
|
|
26148
|
+
* operator asked to see the gallery, not only its accusations. */
|
|
26149
|
+
rows: array(IdentitySampleAuditRowSchema).readonly()
|
|
26150
|
+
});
|
|
26098
26151
|
var FaceInfoSchema = object({
|
|
26099
26152
|
faceId: string(),
|
|
26100
26153
|
deviceId: number().int(),
|
|
@@ -26246,7 +26299,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
26246
26299
|
}), method(object({ id: string() }), _void(), {
|
|
26247
26300
|
kind: "mutation",
|
|
26248
26301
|
auth: "admin"
|
|
26249
|
-
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
|
|
26302
|
+
}), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
|
|
26250
26303
|
identityId: string(),
|
|
26251
26304
|
sampleId: string()
|
|
26252
26305
|
}), _void(), {
|
|
@@ -36739,6 +36792,12 @@ Object.freeze({
|
|
|
36739
36792
|
addonId: null,
|
|
36740
36793
|
access: "create"
|
|
36741
36794
|
},
|
|
36795
|
+
"faceGallery.auditIdentitySamples": {
|
|
36796
|
+
capName: "face-gallery",
|
|
36797
|
+
capScope: "system",
|
|
36798
|
+
addonId: null,
|
|
36799
|
+
access: "view"
|
|
36800
|
+
},
|
|
36742
36801
|
"faceGallery.createIdentity": {
|
|
36743
36802
|
capName: "face-gallery",
|
|
36744
36803
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-tuya",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.85",
|
|
4
4
|
"description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|