bry-biometric-collector 2.2.11 → 2.2.13-RC01

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/README.md CHANGED
@@ -130,6 +130,12 @@ Currently supported tag parameters:
130
130
 
131
131
  Example: `extension_url_mozilla="https://www.bry.com.br/downloads/extension/v2/api/v1/extension-api.js"`
132
132
 
133
+ - **evaluate_photo**: Wether to enable photo evaluation in the facial capture process. If enabled, the evaluation endpoint also has to be set.
134
+
135
+ Default: `true`
136
+
137
+ Example: `evaluate_photo=false`
138
+
133
139
  - **show_capture_button**: Wether to hide capture button. If you enable a button to trigger manual capture, it will be shown below the video.
134
140
 
135
141
  Default: `true`
@@ -178,7 +184,7 @@ Currently supported tag parameters:
178
184
 
179
185
  The Web-component exports a series of functions that the host environment may call. These functions are called by simply getting the html element from the page and invoking them. The following actions can be performed during run-time from the host environment:
180
186
 
181
- - **setBioAcJWTToken**\*: Required when using face collector (for now). Sets the JTWToken to perform face validations on the specified back-end. Receives a string _token_, a string for the base URL, and a string path to the evaluate biometrics endpoint. This endpoint was previously used for both fingers and face validations, now however, we only use it for face validation. The endpoint should accept a post containing in the body an object with a list of BodyParts, such as described [here](src/lib/remote/bioacService.ts). The return is expected to be an object containing a list called bodyParts conforming to the BodyPartReturnType interface, but also a field called icaoWarnings containing an array of unconformities in string form.
187
+ - **setBioAcJWTToken**\*: Sets the JTWToken to perform face validations on the specified back-end. This configuration is necessary when the `evaluate_photo` parameter has a value of `true`. Receives a string _token_, a string for the base URL, and a string path to the evaluate biometrics endpoint. This endpoint was previously used for both fingers and face validations, now however, we only use it for face validation. The endpoint should accept a post containing in the body an object with a list of BodyParts, such as described [here](src/lib/remote/bioacService.ts). The return is expected to be an object containing a list called bodyParts conforming to the BodyPartReturnType interface, but also a field called icaoWarnings containing an array of unconformities in string form.
182
188
 
183
189
  Example:
184
190
 
@@ -503,6 +509,13 @@ The web component listens to and emits a few events. The events emitted are:
503
509
 
504
510
  - **face-scrapped**: When the user scraps their face (by clicking capture again after having saved their picture) this event gets emitted without any data.
505
511
 
512
+ - **face-unconformities-validated**: When the photo is captured and after evaluating it, an event of this kind is emitted with their picture like so:
513
+
514
+ ```ts
515
+ {detail: {bodyParts[{bodyPart:'FACE', data: string, livenessBlob: string *, livenessResult: string}]}
516
+ * only if liveness_enable=true
517
+ ```
518
+
506
519
  - **export-face**: When the user saves their face (by clicking finish), an event of this kind is emitted with their picture like so:
507
520
 
508
521
  ```ts