biometric.photo
The photo a user’s face or palm template was enrolled from. Emitted by zk-push 2.4 when the clock uploads it: after an enrolment at the device, or in answer to query_users or query_user. 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.photo
Fields
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | The user’s id on the device. |
kind | string | yes | What the photo is of: face or palm, or type_ |
index | integer | yes | Which photo of the kind, from 0. |
file_name | string | yes | The photo’s file name on the device; "" when the device sent none. |
jpeg_base64 | string | yes | The JPEG, base64; "" when the device sent none. |
vendor | object | 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. |
Example
{ "user_id": "1001", "kind": "face", "index": 0, "file_name": "1001.jpg", "jpeg_base64": "/9j/4AAQSkZJRg==", "vendor": { "zk": { "type": 2 } }}JSON Schema
biometric.photo.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:biometric.photo", "title": "biometric.photo: data", "description": "The photo a user's face or palm template was enrolled from. Emitted by zk-push 2.4 when the clock uploads it: after an enrolment at the device, or in answer to query_users or query_user. 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 photo is of: face or palm, or type_<n> for a device type code n the package has no name for." }, "index": { "type": "integer", "description": "Which photo of the kind, from 0." }, "file_name": { "type": "string", "description": "The photo's file name on the device; \"\" when the device sent none." }, "jpeg_base64": { "type": "string", "description": "The JPEG, base64; \"\" 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", "file_name", "jpeg_base64" ], "examples": [ { "user_id": "1001", "kind": "face", "index": 0, "file_name": "1001.jpg", "jpeg_base64": "/9j/4AAQSkZJRg==", "vendor": { "zk": { "type": 2 } } } ]}