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