Skip to content

biometric

A biometric template a user has on the device: a fingerprint, face, palm or finger vein, in the form the set_biometric action takes back. Emitted by zk-push (2.0, 2.4 and 3.4) when the clock uploads a template: after an enrolment at the device, or in answer to query_users, query_user or another query. Biometric data: dropped unless the endpoint collects biometrics, and for a person their sync group does not allow biometrics (see biometric.refused).

Schema id: urn:houradvantage:events:3:biometric

Fields

FieldTypeRequiredDescription
user_idstringyesThe user’s id on the device.
kindstringyesWhat the template is of: fingerprint, face, palm, finger_vein, or type_ for a device type code n the package has no name for.
indexintegeryesWhich template of the kind: for a fingerprint or finger vein the finger (0-9); for a face or palm the part or slot number, from 0.
validbooleanyesThe template is enabled on the device; false: it is stored but not used to verify.
duressbooleanA duress fingerprint: verifying with it raises the device’s silent alarm. Absent when the device does not say.
formatstringThe template’s format, ”:[:]” (“zk:fingerprint:10”, “zk:face:12”); the version is the device’s algorithm version, left out when the device does not report it. A device takes only templates of a format it declares: templates are never converted.
templatestringyesThe template, base64, as the device sent it; "" when the device sent none.
vendorobjectWhat the device said in its own terms, under one key naming the vendor or package (“zk”, “brightlink”). Not part of this contract: see the package’s documentation. Absent when the package adds nothing.

Examples

{
"user_id": "1001",
"kind": "fingerprint",
"index": 6,
"valid": true,
"duress": false,
"format": "zk:fingerprint:10",
"template": "TVNTUzIx"
}
{
"user_id": "1001",
"kind": "face",
"index": 0,
"valid": true,
"duress": false,
"format": "zk:face:12",
"template": "Rk9STQ==",
"vendor": {
"zk": {
"type": 2,
"algorithm": "12.0",
"encoding": "zk"
}
}
}

JSON Schema

biometric.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:biometric",
"title": "biometric: data",
"description": "A biometric template a user has on the device: a fingerprint, face, palm or finger vein, in the form the set_biometric action takes back. Emitted by zk-push (2.0, 2.4 and 3.4) when the clock uploads a template: after an enrolment at the device, or in answer to query_users, query_user or another query. Biometric data: dropped unless the endpoint collects biometrics, and for a person their sync group does not allow biometrics (see biometric.refused).",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "The user's id on the device."
},
"kind": {
"type": "string",
"description": "What the template is of: fingerprint, face, palm, finger_vein, or type_<n> for a device type code n the package has no name for."
},
"index": {
"type": "integer",
"description": "Which template of the kind: for a fingerprint or finger vein the finger (0-9); for a face or palm the part or slot number, from 0."
},
"valid": {
"type": "boolean",
"description": "The template is enabled on the device; false: it is stored but not used to verify."
},
"duress": {
"type": "boolean",
"description": "A duress fingerprint: verifying with it raises the device's silent alarm. Absent when the device does not say."
},
"format": {
"type": "string",
"description": "The template's format, \"<vendor>:<kind>[:<version>]\" (\"zk:fingerprint:10\", \"zk:face:12\"); the version is the device's algorithm version, left out when the device does not report it. A device takes only templates of a format it declares: templates are never converted."
},
"template": {
"type": "string",
"description": "The template, base64, as the device sent it; \"\" when the device sent none."
},
"vendor": {
"description": "What the device said in its own terms, under one key naming the vendor or package (\"zk\", \"brightlink\"). Not part of this contract: see the package's documentation. Absent when the package adds nothing.",
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"additionalProperties": {
"type": "object"
}
}
},
"required": [
"user_id",
"kind",
"index",
"valid",
"template"
],
"examples": [
{
"user_id": "1001",
"kind": "fingerprint",
"index": 6,
"valid": true,
"duress": false,
"format": "zk:fingerprint:10",
"template": "TVNTUzIx"
},
{
"user_id": "1001",
"kind": "face",
"index": 0,
"valid": true,
"duress": false,
"format": "zk:face:12",
"template": "Rk9STQ==",
"vendor": {
"zk": {
"type": 2,
"algorithm": "12.0",
"encoding": "zk"
}
}
}
]
}