Skip to content

biometric.refused

The gateway’s own event: a device sent templates or photos (biometric, biometric.photo or user.photo events) of a person whose sync group does not allow them biometrics (allow_biometrics is false). Those events are dropped before they are stored, sent to a sink or taken into the group, and the device is sent the package’s delete in the urgent lane (that action reports with its own action.result). The gateway emits one per person and event type in the message, once the message is kept. The envelope’s endpoint, device and package are the device’s.

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

Fields

FieldTypeRequiredDescription
user_idstringyesThe person’s id on the device.
kind"biometric" \"biometric.photo" \"user.photo"
countintegeryesHow many events of that type the message carried for the person. at least 1
reasonstringyesWhy they were dropped, in words.
action_idinteger or nullyesThe delete queued on the device: delete_biometrics for biometric and biometric.photo, delete_user_photo for user.photo. null when none could be queued (error says why).
errorstringWhy no delete could be queued: the package offers no such action (“the package offers no delete_biometrics”), or queuing it failed (the package could not build it, the database was unavailable). Absent when the delete was queued.

Examples

{
"user_id": "1001",
"kind": "biometric",
"count": 2,
"reason": "the person is not allowed biometrics (allow_biometrics is false in their group)",
"action_id": 812
}
{
"user_id": "1001",
"kind": "user.photo",
"count": 1,
"reason": "the person is not allowed biometrics (allow_biometrics is false in their group)",
"action_id": null,
"error": "the package offers no delete_user_photo"
}

JSON Schema

biometric.refused.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:biometric.refused",
"title": "biometric.refused: data",
"description": "The gateway's own event: a device sent templates or photos (biometric, biometric.photo or user.photo events) of a person whose sync group does not allow them biometrics (allow_biometrics is false). Those events are dropped before they are stored, sent to a sink or taken into the group, and the device is sent the package's delete in the urgent lane (that action reports with its own action.result). The gateway emits one per person and event type in the message, once the message is kept. The envelope's endpoint, device and package are the device's.",
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "The person's id on the device."
},
"kind": {
"description": "The type of the events dropped.",
"enum": [
"biometric",
"biometric.photo",
"user.photo"
]
},
"count": {
"type": "integer",
"minimum": 1,
"description": "How many events of that type the message carried for the person."
},
"reason": {
"type": "string",
"description": "Why they were dropped, in words."
},
"action_id": {
"type": [
"integer",
"null"
],
"description": "The delete queued on the device: delete_biometrics for biometric and biometric.photo, delete_user_photo for user.photo. null when none could be queued (error says why)."
},
"error": {
"type": "string",
"description": "Why no delete could be queued: the package offers no such action (\"the package offers no delete_biometrics\"), or queuing it failed (the package could not build it, the database was unavailable). Absent when the delete was queued."
}
},
"required": [
"user_id",
"kind",
"count",
"reason",
"action_id"
],
"examples": [
{
"user_id": "1001",
"kind": "biometric",
"count": 2,
"reason": "the person is not allowed biometrics (allow_biometrics is false in their group)",
"action_id": 812
},
{
"user_id": "1001",
"kind": "user.photo",
"count": 1,
"reason": "the person is not allowed biometrics (allow_biometrics is false in their group)",
"action_id": null,
"error": "the package offers no delete_user_photo"
}
]
}