@regulaforensics/face-sdk 8.5.1574-nightly → 8.5.1575-rc
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/Package.swift +1 -1
- package/android/build.gradle.kts +1 -1
- package/android/cordova.gradle.kts +1 -1
- package/android/src/main/kotlin/com/regula/plugin/face/sdk/Config.kt +19 -1
- package/android/src/main/kotlin/com/regula/plugin/face/sdk/JSONConstructor.kt +16 -16
- package/examples/capacitor/ios/App/App/Info.plist +2 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +4 -4
- package/examples/capacitor/package-lock.json +590 -209
- package/examples/capacitor/package.json +8 -3
- package/examples/ionic/config.xml +1 -1
- package/examples/ionic/package-lock.json +2136 -2488
- package/examples/ionic/package.json +20 -3
- package/examples/react_native/package-lock.json +571 -927
- package/examples/react_native/package.json +10 -3
- package/examples/react_native/scripts/withoutMetroServer.js +11 -8
- package/ios/Config.swift +21 -29
- package/ios/Decoder.swift +25 -21
- package/ios/Implementation.swift +3 -3
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/react-native-face-sdk.podspec +2 -2
- package/test/json.tsx +12 -0
- package/test/package-lock.json +5 -2
- package/test/test.tsx +66 -74
- package/www/capacitor/customization/customization_images.js +8 -0
- package/www/capacitor/customization/screen_orientation.js +2 -0
- package/www/capacitor/detect_faces/detect_faces_response.js +3 -0
- package/www/capacitor/face_capture/face_capture_config.js +12 -0
- package/www/capacitor/liveness/enrollment_config.js +8 -0
- package/www/capacitor/liveness/liveness_config.js +8 -0
- package/www/capacitor/liveness/liveness_notification.js +4 -2
- package/www/capacitor/liveness/verification_config.js +8 -0
- package/www/capacitor/match_faces/match_faces_response.js +3 -0
- package/www/cordova.js +56 -2
- package/www/react-native/customization/customization_images.js +8 -0
- package/www/react-native/customization/screen_orientation.js +2 -0
- package/www/react-native/detect_faces/detect_faces_response.js +3 -0
- package/www/react-native/face_capture/face_capture_config.js +12 -0
- package/www/react-native/liveness/enrollment_config.js +8 -0
- package/www/react-native/liveness/liveness_config.js +8 -0
- package/www/react-native/liveness/liveness_notification.js +4 -2
- package/www/react-native/liveness/verification_config.js +8 -0
- package/www/react-native/match_faces/match_faces_response.js +3 -0
- package/www/types/customization/customization_images.d.ts +1 -0
- package/www/types/customization/screen_orientation.d.ts +4 -0
- package/www/types/detect_faces/detect_faces_response.d.ts +3 -0
- package/www/types/face_capture/face_capture_config.d.ts +15 -0
- package/www/types/liveness/enrollment_config.d.ts +6 -0
- package/www/types/liveness/liveness_backend_exception.d.ts +1 -1
- package/www/types/liveness/liveness_config.d.ts +8 -0
- package/www/types/liveness/liveness_notification.d.ts +2 -0
- package/www/types/liveness/verification_config.d.ts +8 -0
- package/www/types/match_faces/match_faces_response.d.ts +3 -0
package/www/cordova.js
CHANGED
|
@@ -593,6 +593,12 @@ class CustomizationImages {
|
|
|
593
593
|
this._set({ "retryScreenHintCovering": val })
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
+
_retryScreenHintRejectMultipleFaces
|
|
597
|
+
set retryScreenHintRejectMultipleFaces(val) {
|
|
598
|
+
this._retryScreenHintRejectMultipleFaces = val
|
|
599
|
+
this._set({ "retryScreenHintRejectMultipleFaces": val })
|
|
600
|
+
}
|
|
601
|
+
|
|
596
602
|
_processingScreenCloseButton
|
|
597
603
|
set processingScreenCloseButton(val) {
|
|
598
604
|
this._processingScreenCloseButton = val
|
|
@@ -626,6 +632,7 @@ class CustomizationImages {
|
|
|
626
632
|
result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
|
|
627
633
|
result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
|
|
628
634
|
result._retryScreenHintCovering = jsonObject["retryScreenHintCovering"]
|
|
635
|
+
result._retryScreenHintRejectMultipleFaces = jsonObject["retryScreenHintRejectMultipleFaces"]
|
|
629
636
|
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
630
637
|
result._successScreenImage = jsonObject["successScreenImage"]
|
|
631
638
|
|
|
@@ -652,6 +659,7 @@ class CustomizationImages {
|
|
|
652
659
|
"retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
|
|
653
660
|
"retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
|
|
654
661
|
"retryScreenHintCovering": this._retryScreenHintCovering,
|
|
662
|
+
"retryScreenHintRejectMultipleFaces": this._retryScreenHintRejectMultipleFaces,
|
|
655
663
|
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
656
664
|
"successScreenImage": this._successScreenImage,
|
|
657
665
|
}
|
|
@@ -736,6 +744,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
736
744
|
const ScreenOrientation = {
|
|
737
745
|
PORTRAIT: 0,
|
|
738
746
|
LANDSCAPE: 1,
|
|
747
|
+
REVERSE_PORTRAIT: 2,
|
|
748
|
+
REVERSE_LANDSCAPE: 3,
|
|
739
749
|
}
|
|
740
750
|
|
|
741
751
|
/***/ },
|
|
@@ -1162,6 +1172,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1162
1172
|
class DetectFacesResponse {
|
|
1163
1173
|
detection
|
|
1164
1174
|
scenario
|
|
1175
|
+
transactionId
|
|
1165
1176
|
error
|
|
1166
1177
|
allDetections
|
|
1167
1178
|
|
|
@@ -1171,6 +1182,7 @@ class DetectFacesResponse {
|
|
|
1171
1182
|
|
|
1172
1183
|
result.detection = _detect_face_result__WEBPACK_IMPORTED_MODULE_0__.DetectFaceResult.fromJson(jsonObject["detection"])
|
|
1173
1184
|
result.scenario = jsonObject["scenario"]
|
|
1185
|
+
result.transactionId = jsonObject["transactionId"]
|
|
1174
1186
|
result.error = _detect_faces_exception__WEBPACK_IMPORTED_MODULE_1__.DetectFacesException.fromJson(jsonObject["error"])
|
|
1175
1187
|
result.allDetections = []
|
|
1176
1188
|
if (jsonObject["allDetections"] != null)
|
|
@@ -1185,6 +1197,7 @@ class DetectFacesResponse {
|
|
|
1185
1197
|
"detection": this.detection?.toJson(),
|
|
1186
1198
|
"allDetections": this.allDetections?.map(e => e.toJson()),
|
|
1187
1199
|
"scenario": this.scenario,
|
|
1200
|
+
"transactionId": this.transactionId,
|
|
1188
1201
|
"error": this.error?.toJson(),
|
|
1189
1202
|
}
|
|
1190
1203
|
}
|
|
@@ -1239,6 +1252,9 @@ class FaceCaptureConfig {
|
|
|
1239
1252
|
detectOcclusion
|
|
1240
1253
|
showFaceAnimation
|
|
1241
1254
|
preventScreenRecording
|
|
1255
|
+
usbCamera
|
|
1256
|
+
usbCameraMirrorPreview
|
|
1257
|
+
rejectMultipleFaces
|
|
1242
1258
|
cameraPositionIOS
|
|
1243
1259
|
cameraPositionAndroid
|
|
1244
1260
|
screenOrientation
|
|
@@ -1254,6 +1270,9 @@ class FaceCaptureConfig {
|
|
|
1254
1270
|
this.detectOcclusion = options?.detectOcclusion ?? true
|
|
1255
1271
|
this.showFaceAnimation = options?.showFaceAnimation ?? true
|
|
1256
1272
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
1273
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
1274
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
1275
|
+
this.rejectMultipleFaces = options?.rejectMultipleFaces ?? false
|
|
1257
1276
|
this.cameraPositionIOS = options?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
1258
1277
|
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
1259
1278
|
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
@@ -1273,6 +1292,9 @@ class FaceCaptureConfig {
|
|
|
1273
1292
|
result.detectOcclusion = jsonObject["detectOcclusion"]
|
|
1274
1293
|
result.showFaceAnimation = jsonObject["showFaceAnimation"]
|
|
1275
1294
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1295
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
1296
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
1297
|
+
result.rejectMultipleFaces = jsonObject["rejectMultipleFaces"]
|
|
1276
1298
|
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
1277
1299
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
1278
1300
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
@@ -1292,6 +1314,9 @@ class FaceCaptureConfig {
|
|
|
1292
1314
|
"detectOcclusion": this.detectOcclusion,
|
|
1293
1315
|
"showFaceAnimation": this.showFaceAnimation,
|
|
1294
1316
|
"preventScreenRecording": this.preventScreenRecording,
|
|
1317
|
+
"usbCamera": this.usbCamera,
|
|
1318
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
1319
|
+
"rejectMultipleFaces": this.rejectMultipleFaces,
|
|
1295
1320
|
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
1296
1321
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
1297
1322
|
"screenOrientation": this.screenOrientation,
|
|
@@ -3038,6 +3063,8 @@ class EnrollmentConfig {
|
|
|
3038
3063
|
screenOrientation
|
|
3039
3064
|
locationTrackingEnabled
|
|
3040
3065
|
preventScreenRecording
|
|
3066
|
+
usbCamera
|
|
3067
|
+
usbCameraMirrorPreview
|
|
3041
3068
|
attemptsCount
|
|
3042
3069
|
recordingProcess
|
|
3043
3070
|
livenessType
|
|
@@ -3058,6 +3085,8 @@ class EnrollmentConfig {
|
|
|
3058
3085
|
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3059
3086
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
3060
3087
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
3088
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
3089
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
3061
3090
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
3062
3091
|
this.recordingProcess = options?.recordingProcess ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3063
3092
|
this.livenessType = options?.livenessType ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.LivenessType.ACTIVE
|
|
@@ -3082,6 +3111,8 @@ class EnrollmentConfig {
|
|
|
3082
3111
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3083
3112
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3084
3113
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3114
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
3115
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
3085
3116
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3086
3117
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3087
3118
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -3106,6 +3137,8 @@ class EnrollmentConfig {
|
|
|
3106
3137
|
"screenOrientation": this.screenOrientation,
|
|
3107
3138
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3108
3139
|
"preventScreenRecording": this.preventScreenRecording,
|
|
3140
|
+
"usbCamera": this.usbCamera,
|
|
3141
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
3109
3142
|
"attemptsCount": this.attemptsCount,
|
|
3110
3143
|
"recordingProcess": this.recordingProcess,
|
|
3111
3144
|
"livenessType": this.livenessType,
|
|
@@ -3266,6 +3299,8 @@ class LivenessConfig {
|
|
|
3266
3299
|
screenOrientation
|
|
3267
3300
|
locationTrackingEnabled
|
|
3268
3301
|
preventScreenRecording
|
|
3302
|
+
usbCamera
|
|
3303
|
+
usbCameraMirrorPreview
|
|
3269
3304
|
attemptsCount
|
|
3270
3305
|
recordingProcess
|
|
3271
3306
|
livenessType
|
|
@@ -3284,6 +3319,8 @@ class LivenessConfig {
|
|
|
3284
3319
|
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3285
3320
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
3286
3321
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
3322
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
3323
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
3287
3324
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
3288
3325
|
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3289
3326
|
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -3306,6 +3343,8 @@ class LivenessConfig {
|
|
|
3306
3343
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3307
3344
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3308
3345
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3346
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
3347
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
3309
3348
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3310
3349
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3311
3350
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -3328,6 +3367,8 @@ class LivenessConfig {
|
|
|
3328
3367
|
"screenOrientation": this.screenOrientation,
|
|
3329
3368
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3330
3369
|
"preventScreenRecording": this.preventScreenRecording,
|
|
3370
|
+
"usbCamera": this.usbCamera,
|
|
3371
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
3331
3372
|
"attemptsCount": this.attemptsCount,
|
|
3332
3373
|
"recordingProcess": this.recordingProcess,
|
|
3333
3374
|
"livenessType": this.livenessType,
|
|
@@ -3470,8 +3511,10 @@ const LivenessProcessStatus = {
|
|
|
3470
3511
|
FAILED: 12,
|
|
3471
3512
|
RETRY: 13,
|
|
3472
3513
|
SUCCESS: 14,
|
|
3473
|
-
|
|
3474
|
-
|
|
3514
|
+
REMOVE_OCCLUSION: 15,
|
|
3515
|
+
BLINK: 16,
|
|
3516
|
+
BAD_FACE_QUALITY: 17,
|
|
3517
|
+
TOO_MANY_FACES: 18,
|
|
3475
3518
|
}
|
|
3476
3519
|
|
|
3477
3520
|
/***/ },
|
|
@@ -3560,6 +3603,8 @@ class VerificationConfig {
|
|
|
3560
3603
|
screenOrientation
|
|
3561
3604
|
locationTrackingEnabled
|
|
3562
3605
|
preventScreenRecording
|
|
3606
|
+
usbCamera
|
|
3607
|
+
usbCameraMirrorPreview
|
|
3563
3608
|
attemptsCount
|
|
3564
3609
|
recordingProcess
|
|
3565
3610
|
livenessType
|
|
@@ -3581,6 +3626,8 @@ class VerificationConfig {
|
|
|
3581
3626
|
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3582
3627
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
3583
3628
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
3629
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
3630
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
3584
3631
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
3585
3632
|
this.recordingProcess = options?.recordingProcess ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3586
3633
|
this.livenessType = options?.livenessType ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.LivenessType.ACTIVE
|
|
@@ -3604,6 +3651,8 @@ class VerificationConfig {
|
|
|
3604
3651
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3605
3652
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3606
3653
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3654
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
3655
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
3607
3656
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3608
3657
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3609
3658
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -3628,6 +3677,8 @@ class VerificationConfig {
|
|
|
3628
3677
|
"screenOrientation": this.screenOrientation,
|
|
3629
3678
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3630
3679
|
"preventScreenRecording": this.preventScreenRecording,
|
|
3680
|
+
"usbCamera": this.usbCamera,
|
|
3681
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
3631
3682
|
"attemptsCount": this.attemptsCount,
|
|
3632
3683
|
"recordingProcess": this.recordingProcess,
|
|
3633
3684
|
"livenessType": this.livenessType,
|
|
@@ -4216,6 +4267,7 @@ class MatchFacesResponse {
|
|
|
4216
4267
|
results
|
|
4217
4268
|
detections
|
|
4218
4269
|
tag
|
|
4270
|
+
transactionId
|
|
4219
4271
|
error
|
|
4220
4272
|
|
|
4221
4273
|
static fromJson(jsonObject) {
|
|
@@ -4231,6 +4283,7 @@ class MatchFacesResponse {
|
|
|
4231
4283
|
for (const item of jsonObject["detections"])
|
|
4232
4284
|
result.detections.push(_match_faces_detection__WEBPACK_IMPORTED_MODULE_1__.MatchFacesDetection.fromJson(item))
|
|
4233
4285
|
result.tag = jsonObject["tag"]
|
|
4286
|
+
result.transactionId = jsonObject["transactionId"]
|
|
4234
4287
|
result.error = _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__.MatchFacesException.fromJson(jsonObject["error"])
|
|
4235
4288
|
|
|
4236
4289
|
return result
|
|
@@ -4241,6 +4294,7 @@ class MatchFacesResponse {
|
|
|
4241
4294
|
"results": this.results?.map(e => e.toJson()),
|
|
4242
4295
|
"detections": this.detections?.map(e => e.toJson()),
|
|
4243
4296
|
"tag": this.tag,
|
|
4297
|
+
"transactionId": this.transactionId,
|
|
4244
4298
|
"error": this.error?.toJson(),
|
|
4245
4299
|
}
|
|
4246
4300
|
}
|
|
@@ -109,6 +109,12 @@ export class CustomizationImages {
|
|
|
109
109
|
this._set({ "retryScreenHintCovering": val })
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
_retryScreenHintRejectMultipleFaces
|
|
113
|
+
set retryScreenHintRejectMultipleFaces(val) {
|
|
114
|
+
this._retryScreenHintRejectMultipleFaces = val
|
|
115
|
+
this._set({ "retryScreenHintRejectMultipleFaces": val })
|
|
116
|
+
}
|
|
117
|
+
|
|
112
118
|
_processingScreenCloseButton
|
|
113
119
|
set processingScreenCloseButton(val) {
|
|
114
120
|
this._processingScreenCloseButton = val
|
|
@@ -142,6 +148,7 @@ export class CustomizationImages {
|
|
|
142
148
|
result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
|
|
143
149
|
result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
|
|
144
150
|
result._retryScreenHintCovering = jsonObject["retryScreenHintCovering"]
|
|
151
|
+
result._retryScreenHintRejectMultipleFaces = jsonObject["retryScreenHintRejectMultipleFaces"]
|
|
145
152
|
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
146
153
|
result._successScreenImage = jsonObject["successScreenImage"]
|
|
147
154
|
|
|
@@ -168,6 +175,7 @@ export class CustomizationImages {
|
|
|
168
175
|
"retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
|
|
169
176
|
"retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
|
|
170
177
|
"retryScreenHintCovering": this._retryScreenHintCovering,
|
|
178
|
+
"retryScreenHintRejectMultipleFaces": this._retryScreenHintRejectMultipleFaces,
|
|
171
179
|
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
172
180
|
"successScreenImage": this._successScreenImage,
|
|
173
181
|
}
|
|
@@ -4,6 +4,7 @@ import { DetectFacesException } from './detect_faces_exception'
|
|
|
4
4
|
export class DetectFacesResponse {
|
|
5
5
|
detection
|
|
6
6
|
scenario
|
|
7
|
+
transactionId
|
|
7
8
|
error
|
|
8
9
|
allDetections
|
|
9
10
|
|
|
@@ -13,6 +14,7 @@ export class DetectFacesResponse {
|
|
|
13
14
|
|
|
14
15
|
result.detection = DetectFaceResult.fromJson(jsonObject["detection"])
|
|
15
16
|
result.scenario = jsonObject["scenario"]
|
|
17
|
+
result.transactionId = jsonObject["transactionId"]
|
|
16
18
|
result.error = DetectFacesException.fromJson(jsonObject["error"])
|
|
17
19
|
result.allDetections = []
|
|
18
20
|
if (jsonObject["allDetections"] != null)
|
|
@@ -27,6 +29,7 @@ export class DetectFacesResponse {
|
|
|
27
29
|
"detection": this.detection?.toJson(),
|
|
28
30
|
"allDetections": this.allDetections?.map(e => e.toJson()),
|
|
29
31
|
"scenario": this.scenario,
|
|
32
|
+
"transactionId": this.transactionId,
|
|
30
33
|
"error": this.error?.toJson(),
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -10,6 +10,9 @@ export class FaceCaptureConfig {
|
|
|
10
10
|
detectOcclusion
|
|
11
11
|
showFaceAnimation
|
|
12
12
|
preventScreenRecording
|
|
13
|
+
usbCamera
|
|
14
|
+
usbCameraMirrorPreview
|
|
15
|
+
rejectMultipleFaces
|
|
13
16
|
cameraPositionIOS
|
|
14
17
|
cameraPositionAndroid
|
|
15
18
|
screenOrientation
|
|
@@ -25,6 +28,9 @@ export class FaceCaptureConfig {
|
|
|
25
28
|
this.detectOcclusion = options?.detectOcclusion ?? true
|
|
26
29
|
this.showFaceAnimation = options?.showFaceAnimation ?? true
|
|
27
30
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
31
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
32
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
33
|
+
this.rejectMultipleFaces = options?.rejectMultipleFaces ?? false
|
|
28
34
|
this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
29
35
|
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
30
36
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
@@ -44,6 +50,9 @@ export class FaceCaptureConfig {
|
|
|
44
50
|
result.detectOcclusion = jsonObject["detectOcclusion"]
|
|
45
51
|
result.showFaceAnimation = jsonObject["showFaceAnimation"]
|
|
46
52
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
53
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
54
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
55
|
+
result.rejectMultipleFaces = jsonObject["rejectMultipleFaces"]
|
|
47
56
|
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
48
57
|
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
49
58
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
@@ -63,6 +72,9 @@ export class FaceCaptureConfig {
|
|
|
63
72
|
"detectOcclusion": this.detectOcclusion,
|
|
64
73
|
"showFaceAnimation": this.showFaceAnimation,
|
|
65
74
|
"preventScreenRecording": this.preventScreenRecording,
|
|
75
|
+
"usbCamera": this.usbCamera,
|
|
76
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
77
|
+
"rejectMultipleFaces": this.rejectMultipleFaces,
|
|
66
78
|
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
67
79
|
"cameraPositionIOS": this.cameraPositionIOS,
|
|
68
80
|
"screenOrientation": this.screenOrientation,
|
|
@@ -15,6 +15,8 @@ export class EnrollmentConfig {
|
|
|
15
15
|
screenOrientation
|
|
16
16
|
locationTrackingEnabled
|
|
17
17
|
preventScreenRecording
|
|
18
|
+
usbCamera
|
|
19
|
+
usbCameraMirrorPreview
|
|
18
20
|
attemptsCount
|
|
19
21
|
recordingProcess
|
|
20
22
|
livenessType
|
|
@@ -35,6 +37,8 @@ export class EnrollmentConfig {
|
|
|
35
37
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
36
38
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
37
39
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
40
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
41
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
38
42
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
39
43
|
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
40
44
|
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -59,6 +63,8 @@ export class EnrollmentConfig {
|
|
|
59
63
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
60
64
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
61
65
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
66
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
67
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
62
68
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
63
69
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
64
70
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -83,6 +89,8 @@ export class EnrollmentConfig {
|
|
|
83
89
|
"screenOrientation": this.screenOrientation,
|
|
84
90
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
85
91
|
"preventScreenRecording": this.preventScreenRecording,
|
|
92
|
+
"usbCamera": this.usbCamera,
|
|
93
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
86
94
|
"attemptsCount": this.attemptsCount,
|
|
87
95
|
"recordingProcess": this.recordingProcess,
|
|
88
96
|
"livenessType": this.livenessType,
|
|
@@ -12,6 +12,8 @@ export class LivenessConfig {
|
|
|
12
12
|
screenOrientation
|
|
13
13
|
locationTrackingEnabled
|
|
14
14
|
preventScreenRecording
|
|
15
|
+
usbCamera
|
|
16
|
+
usbCameraMirrorPreview
|
|
15
17
|
attemptsCount
|
|
16
18
|
recordingProcess
|
|
17
19
|
livenessType
|
|
@@ -30,6 +32,8 @@ export class LivenessConfig {
|
|
|
30
32
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
31
33
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
32
34
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
35
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
36
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
33
37
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
34
38
|
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
35
39
|
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -52,6 +56,8 @@ export class LivenessConfig {
|
|
|
52
56
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
53
57
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
54
58
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
59
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
60
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
55
61
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
56
62
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
57
63
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -74,6 +80,8 @@ export class LivenessConfig {
|
|
|
74
80
|
"screenOrientation": this.screenOrientation,
|
|
75
81
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
76
82
|
"preventScreenRecording": this.preventScreenRecording,
|
|
83
|
+
"usbCamera": this.usbCamera,
|
|
84
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
77
85
|
"attemptsCount": this.attemptsCount,
|
|
78
86
|
"recordingProcess": this.recordingProcess,
|
|
79
87
|
"livenessType": this.livenessType,
|
|
@@ -13,6 +13,8 @@ export class VerificationConfig {
|
|
|
13
13
|
screenOrientation
|
|
14
14
|
locationTrackingEnabled
|
|
15
15
|
preventScreenRecording
|
|
16
|
+
usbCamera
|
|
17
|
+
usbCameraMirrorPreview
|
|
16
18
|
attemptsCount
|
|
17
19
|
recordingProcess
|
|
18
20
|
livenessType
|
|
@@ -34,6 +36,8 @@ export class VerificationConfig {
|
|
|
34
36
|
this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
35
37
|
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
36
38
|
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
39
|
+
this.usbCamera = options?.usbCamera ?? false
|
|
40
|
+
this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
|
|
37
41
|
this.attemptsCount = options?.attemptsCount ?? 0
|
|
38
42
|
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
39
43
|
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
@@ -57,6 +61,8 @@ export class VerificationConfig {
|
|
|
57
61
|
result.screenOrientation = jsonObject["screenOrientation"]
|
|
58
62
|
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
59
63
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
64
|
+
result.usbCamera = jsonObject["usbCamera"]
|
|
65
|
+
result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
|
|
60
66
|
result.attemptsCount = jsonObject["attemptsCount"]
|
|
61
67
|
result.recordingProcess = jsonObject["recordingProcess"]
|
|
62
68
|
result.livenessType = jsonObject["livenessType"]
|
|
@@ -81,6 +87,8 @@ export class VerificationConfig {
|
|
|
81
87
|
"screenOrientation": this.screenOrientation,
|
|
82
88
|
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
83
89
|
"preventScreenRecording": this.preventScreenRecording,
|
|
90
|
+
"usbCamera": this.usbCamera,
|
|
91
|
+
"usbCameraMirrorPreview": this.usbCameraMirrorPreview,
|
|
84
92
|
"attemptsCount": this.attemptsCount,
|
|
85
93
|
"recordingProcess": this.recordingProcess,
|
|
86
94
|
"livenessType": this.livenessType,
|
|
@@ -6,6 +6,7 @@ export class MatchFacesResponse {
|
|
|
6
6
|
results
|
|
7
7
|
detections
|
|
8
8
|
tag
|
|
9
|
+
transactionId
|
|
9
10
|
error
|
|
10
11
|
|
|
11
12
|
static fromJson(jsonObject) {
|
|
@@ -21,6 +22,7 @@ export class MatchFacesResponse {
|
|
|
21
22
|
for (const item of jsonObject["detections"])
|
|
22
23
|
result.detections.push(MatchFacesDetection.fromJson(item))
|
|
23
24
|
result.tag = jsonObject["tag"]
|
|
25
|
+
result.transactionId = jsonObject["transactionId"]
|
|
24
26
|
result.error = MatchFacesException.fromJson(jsonObject["error"])
|
|
25
27
|
|
|
26
28
|
return result
|
|
@@ -31,6 +33,7 @@ export class MatchFacesResponse {
|
|
|
31
33
|
"results": this.results?.map(e => e.toJson()),
|
|
32
34
|
"detections": this.detections?.map(e => e.toJson()),
|
|
33
35
|
"tag": this.tag,
|
|
36
|
+
"transactionId": this.transactionId,
|
|
34
37
|
"error": this.error?.toJson(),
|
|
35
38
|
}
|
|
36
39
|
}
|
|
@@ -17,6 +17,7 @@ export class CustomizationImages {
|
|
|
17
17
|
set retryScreenHintChangeBackground(val: string)
|
|
18
18
|
set retryScreenHintFaceOcclusions(val: string)
|
|
19
19
|
set retryScreenHintCovering(val: string)
|
|
20
|
+
set retryScreenHintRejectMultipleFaces(val: string)
|
|
20
21
|
set processingScreenCloseButton(val: string)
|
|
21
22
|
set successScreenImage(val: string)
|
|
22
23
|
|
|
@@ -7,6 +7,8 @@ export class FaceCaptureConfig {
|
|
|
7
7
|
closeButtonEnabled: boolean
|
|
8
8
|
torchButtonEnabled: boolean
|
|
9
9
|
vibrateOnSteps: boolean
|
|
10
|
+
/** Enables 'remove occlusion' animation & hint. */
|
|
11
|
+
detectOcclusion: boolean
|
|
10
12
|
/**
|
|
11
13
|
* Enables global face hint animation.
|
|
12
14
|
*/
|
|
@@ -16,6 +18,15 @@ export class FaceCaptureConfig {
|
|
|
16
18
|
* Defaults to `false`.
|
|
17
19
|
*/
|
|
18
20
|
preventScreenRecording: boolean
|
|
21
|
+
|
|
22
|
+
/** Android only. Defaults to `false`. */
|
|
23
|
+
usbCamera: boolean
|
|
24
|
+
|
|
25
|
+
/** Android only. Defaults to `true`. */
|
|
26
|
+
usbCameraMirrorPreview: boolean
|
|
27
|
+
|
|
28
|
+
/** Only single face in frame required. Defaults to `false`. */
|
|
29
|
+
rejectMultipleFaces: boolean
|
|
19
30
|
/**
|
|
20
31
|
* Android only.
|
|
21
32
|
*/
|
|
@@ -38,8 +49,12 @@ export class FaceCaptureConfig {
|
|
|
38
49
|
closeButtonEnabled?: boolean
|
|
39
50
|
torchButtonEnabled?: boolean
|
|
40
51
|
vibrateOnSteps?: boolean
|
|
52
|
+
detectOcclusion?: boolean
|
|
41
53
|
showFaceAnimation?: boolean
|
|
42
54
|
preventScreenRecording?: boolean
|
|
55
|
+
usbCamera?: boolean
|
|
56
|
+
usbCameraMirrorPreview?: boolean
|
|
57
|
+
rejectMultipleFaces?: boolean
|
|
43
58
|
cameraPositionAndroid?: number
|
|
44
59
|
cameraPositionIOS?: CameraPosition
|
|
45
60
|
screenOrientation?: Array<ScreenOrientation>
|
|
@@ -60,6 +60,12 @@ export interface EnrollmentConfig {
|
|
|
60
60
|
*/
|
|
61
61
|
preventScreenRecording?: boolean
|
|
62
62
|
|
|
63
|
+
/** Android only. Defaults to `false`. */
|
|
64
|
+
usbCamera?: boolean
|
|
65
|
+
|
|
66
|
+
/** Android only. Defaults to `true`. */
|
|
67
|
+
usbCameraMirrorPreview?: boolean
|
|
68
|
+
|
|
63
69
|
/**
|
|
64
70
|
* The number of attempts to pass the Liveness before completing with error. Defaults to `0`.
|
|
65
71
|
* When set to `0` the Liveness will always ask to retry on error.
|
|
@@ -61,6 +61,12 @@ export class LivenessConfig {
|
|
|
61
61
|
*/
|
|
62
62
|
preventScreenRecording: boolean
|
|
63
63
|
|
|
64
|
+
/** Android only. Defaults to `false`. */
|
|
65
|
+
usbCamera: boolean
|
|
66
|
+
|
|
67
|
+
/** Android only. Defaults to `true`. */
|
|
68
|
+
usbCameraMirrorPreview: boolean
|
|
69
|
+
|
|
64
70
|
/**
|
|
65
71
|
* The number of attempts to pass the Liveness before completing with error. Defaults to `0`.
|
|
66
72
|
* When set to `0` the Liveness will always ask to retry on error.
|
|
@@ -102,6 +108,8 @@ export class LivenessConfig {
|
|
|
102
108
|
screenOrientation?: Array<ScreenOrientation>
|
|
103
109
|
locationTrackingEnabled?: boolean
|
|
104
110
|
preventScreenRecording?: boolean
|
|
111
|
+
usbCamera?: boolean
|
|
112
|
+
usbCameraMirrorPreview?: boolean
|
|
105
113
|
attemptsCount?: number
|
|
106
114
|
recordingProcess?: RecordingProcess
|
|
107
115
|
livenessType?: LivenessType
|
|
@@ -58,6 +58,12 @@ export class VerificationConfig {
|
|
|
58
58
|
*/
|
|
59
59
|
preventScreenRecording?: boolean
|
|
60
60
|
|
|
61
|
+
/** Android only. Defaults to `false`. */
|
|
62
|
+
usbCamera?: boolean
|
|
63
|
+
|
|
64
|
+
/** Android only. Defaults to `true`. */
|
|
65
|
+
usbCameraMirrorPreview?: boolean
|
|
66
|
+
|
|
61
67
|
/**
|
|
62
68
|
* The number of attempts to pass the Liveness before completing with error. Defaults to `0`.
|
|
63
69
|
* When set to `0` the Liveness will always ask to retry on error.
|
|
@@ -102,6 +108,8 @@ export class VerificationConfig {
|
|
|
102
108
|
screenOrientation?: Array<ScreenOrientation>
|
|
103
109
|
locationTrackingEnabled?: boolean
|
|
104
110
|
preventScreenRecording?: boolean
|
|
111
|
+
usbCamera?: boolean
|
|
112
|
+
usbCameraMirrorPreview?: boolean
|
|
105
113
|
attemptsCount?: number
|
|
106
114
|
recordingProcess?: RecordingProcess
|
|
107
115
|
livenessType?: LivenessType
|