@regulaforensics/face-sdk 8.3.1100-rc → 8.3.1107-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/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +91 -0
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +106 -3
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +39 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +0 -1
- package/examples/capacitor/package-lock.json +227 -221
- package/examples/capacitor/package.json +4 -1
- package/examples/capacitor/scripts/android.sh +1 -1
- package/examples/ionic/package-lock.json +1579 -2369
- package/examples/ionic/package.json +15 -12
- package/examples/ionic/scripts/android.sh +1 -1
- package/examples/react_native/package-lock.json +138 -169
- package/examples/react_native/package.json +3 -2
- package/examples/react_native/scripts/android.sh +1 -1
- package/ios/Config.swift +109 -1
- package/ios/Decoder.swift +71 -3
- package/ios/Main.swift +24 -4
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +134 -57
- package/test/package-lock.json +1 -1
- package/test/test.tsx +68 -60
- package/www/capacitor/customization/customization_images.js +40 -0
- package/www/capacitor/index.js +33 -12
- package/www/capacitor/liveness/enrollment_config.js +102 -0
- package/www/capacitor/liveness/enrollment_request.js +34 -0
- package/www/capacitor/liveness/enrollment_response.js +26 -0
- package/www/capacitor/liveness/error_response.js +21 -0
- package/www/capacitor/liveness/liveness_config.js +1 -0
- package/www/capacitor/liveness/liveness_exception.js +6 -5
- package/www/capacitor/liveness/liveness_notification.js +2 -0
- package/www/capacitor/liveness/verification_config.js +98 -0
- package/www/capacitor/liveness/verification_response.js +27 -0
- package/www/capacitor/liveness/verify_match_response.js +21 -0
- package/www/cordova.js +595 -80
- package/www/react-native/customization/customization_images.js +40 -0
- package/www/react-native/index.js +33 -12
- package/www/react-native/liveness/enrollment_config.js +102 -0
- package/www/react-native/liveness/enrollment_request.js +34 -0
- package/www/react-native/liveness/enrollment_response.js +26 -0
- package/www/react-native/liveness/error_response.js +21 -0
- package/www/react-native/liveness/liveness_config.js +1 -0
- package/www/react-native/liveness/liveness_exception.js +6 -5
- package/www/react-native/liveness/liveness_notification.js +2 -0
- package/www/react-native/liveness/verification_config.js +98 -0
- package/www/react-native/liveness/verification_response.js +27 -0
- package/www/react-native/liveness/verify_match_response.js +21 -0
- package/www/types/customization/customization_images.d.ts +5 -0
- package/www/types/index.d.ts +28 -3
- package/www/types/liveness/enrollment_config.d.ts +97 -0
- package/www/types/liveness/enrollment_request.d.ts +6 -0
- package/www/types/liveness/enrollment_response.d.ts +9 -0
- package/www/types/liveness/error_response.d.ts +6 -0
- package/www/types/liveness/liveness_config.d.ts +1 -0
- package/www/types/liveness/liveness_exception.d.ts +1 -0
- package/www/types/liveness/liveness_notification.d.ts +2 -0
- package/www/types/liveness/verification_config.d.ts +95 -0
- package/www/types/liveness/verification_response.d.ts +10 -0
- package/www/types/liveness/verify_match_response.d.ts +6 -0
package/www/cordova.js
CHANGED
|
@@ -557,6 +557,36 @@ class CustomizationImages {
|
|
|
557
557
|
this._set({ "retryScreenHintGeo": val })
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
+
_retryScreenHintBadSelfieQuality
|
|
561
|
+
set retryScreenHintBadSelfieQuality(val) {
|
|
562
|
+
this._retryScreenHintBadSelfieQuality = val
|
|
563
|
+
this._set({ "retryScreenHintBadSelfieQuality": val })
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
_retryScreenHintCleanLens
|
|
567
|
+
set retryScreenHintCleanLens(val) {
|
|
568
|
+
this._retryScreenHintCleanLens = val
|
|
569
|
+
this._set({ "retryScreenHintCleanLens": val })
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
_retryScreenHintAddIllumination
|
|
573
|
+
set retryScreenHintAddIllumination(val) {
|
|
574
|
+
this._retryScreenHintAddIllumination = val
|
|
575
|
+
this._set({ "retryScreenHintAddIllumination": val })
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
_retryScreenHintChangeBackground
|
|
579
|
+
set retryScreenHintChangeBackground(val) {
|
|
580
|
+
this._retryScreenHintChangeBackground = val
|
|
581
|
+
this._set({ "retryScreenHintChangeBackground": val })
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
_retryScreenHintFaceOcclusions
|
|
585
|
+
set retryScreenHintFaceOcclusions(val) {
|
|
586
|
+
this._retryScreenHintFaceOcclusions = val
|
|
587
|
+
this._set({ "retryScreenHintFaceOcclusions": val })
|
|
588
|
+
}
|
|
589
|
+
|
|
560
590
|
_processingScreenCloseButton
|
|
561
591
|
set processingScreenCloseButton(val) {
|
|
562
592
|
this._processingScreenCloseButton = val
|
|
@@ -584,6 +614,11 @@ class CustomizationImages {
|
|
|
584
614
|
result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
|
|
585
615
|
result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
|
|
586
616
|
result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
|
|
617
|
+
result._retryScreenHintBadSelfieQuality = jsonObject["retryScreenHintBadSelfieQuality"]
|
|
618
|
+
result._retryScreenHintCleanLens = jsonObject["retryScreenHintCleanLens"]
|
|
619
|
+
result._retryScreenHintAddIllumination = jsonObject["retryScreenHintAddIllumination"]
|
|
620
|
+
result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
|
|
621
|
+
result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
|
|
587
622
|
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
588
623
|
result._successScreenImage = jsonObject["successScreenImage"]
|
|
589
624
|
|
|
@@ -604,6 +639,11 @@ class CustomizationImages {
|
|
|
604
639
|
"retryScreenHintEnvironment": this._retryScreenHintEnvironment,
|
|
605
640
|
"retryScreenHintSubject": this._retryScreenHintSubject,
|
|
606
641
|
"retryScreenHintGeo": this._retryScreenHintGeo,
|
|
642
|
+
"retryScreenHintBadSelfieQuality": this._retryScreenHintBadSelfieQuality,
|
|
643
|
+
"retryScreenHintCleanLens": this._retryScreenHintCleanLens,
|
|
644
|
+
"retryScreenHintAddIllumination": this._retryScreenHintAddIllumination,
|
|
645
|
+
"retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
|
|
646
|
+
"retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
|
|
607
647
|
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
608
648
|
"successScreenImage": this._successScreenImage,
|
|
609
649
|
}
|
|
@@ -2208,9 +2248,9 @@ const ImageQualityResultStatus = {
|
|
|
2208
2248
|
__webpack_require__.r(__webpack_exports__);
|
|
2209
2249
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2210
2250
|
/* harmony export */ CameraPosition: () => (/* reexport safe */ _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__.CameraPosition),
|
|
2211
|
-
/* harmony export */ ComparedFace: () => (/* reexport safe */
|
|
2212
|
-
/* harmony export */ ComparedFacesPair: () => (/* reexport safe */
|
|
2213
|
-
/* harmony export */ ComparedFacesSplit: () => (/* reexport safe */
|
|
2251
|
+
/* harmony export */ ComparedFace: () => (/* reexport safe */ _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_47__.ComparedFace),
|
|
2252
|
+
/* harmony export */ ComparedFacesPair: () => (/* reexport safe */ _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_48__.ComparedFacesPair),
|
|
2253
|
+
/* harmony export */ ComparedFacesSplit: () => (/* reexport safe */ _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_49__.ComparedFacesSplit),
|
|
2214
2254
|
/* harmony export */ Customization: () => (/* reexport safe */ _customization_customization__WEBPACK_IMPORTED_MODULE_5__.Customization),
|
|
2215
2255
|
/* harmony export */ CustomizationColors: () => (/* reexport safe */ _customization_customization_colors__WEBPACK_IMPORTED_MODULE_2__.CustomizationColors),
|
|
2216
2256
|
/* harmony export */ CustomizationFonts: () => (/* reexport safe */ _customization_customization_fonts__WEBPACK_IMPORTED_MODULE_3__.CustomizationFonts),
|
|
@@ -2226,7 +2266,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2226
2266
|
/* harmony export */ DetectFacesRequest: () => (/* reexport safe */ _detect_faces_detect_faces_request__WEBPACK_IMPORTED_MODULE_18__.DetectFacesRequest),
|
|
2227
2267
|
/* harmony export */ DetectFacesResponse: () => (/* reexport safe */ _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__.DetectFacesResponse),
|
|
2228
2268
|
/* harmony export */ DetectFacesScenario: () => (/* reexport safe */ _detect_faces_detect_faces_scenario__WEBPACK_IMPORTED_MODULE_20__.DetectFacesScenario),
|
|
2229
|
-
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */
|
|
2269
|
+
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */ _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_58__.EditGroupPersonsRequest),
|
|
2270
|
+
/* harmony export */ EnrollmentConfig: () => (/* reexport safe */ _liveness_enrollment_config__WEBPACK_IMPORTED_MODULE_36__.EnrollmentConfig),
|
|
2271
|
+
/* harmony export */ EnrollmentRequest: () => (/* reexport safe */ _liveness_enrollment_request__WEBPACK_IMPORTED_MODULE_37__.EnrollmentRequest),
|
|
2272
|
+
/* harmony export */ EnrollmentResponse: () => (/* reexport safe */ _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__.EnrollmentResponse),
|
|
2273
|
+
/* harmony export */ ErrorResponse: () => (/* reexport safe */ _liveness_error_response__WEBPACK_IMPORTED_MODULE_43__.ErrorResponse),
|
|
2230
2274
|
/* harmony export */ FaceCaptureConfig: () => (/* reexport safe */ _face_capture_face_capture_config__WEBPACK_IMPORTED_MODULE_21__.FaceCaptureConfig),
|
|
2231
2275
|
/* harmony export */ FaceCaptureErrorCode: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureErrorCode),
|
|
2232
2276
|
/* harmony export */ FaceCaptureException: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureException),
|
|
@@ -2243,50 +2287,53 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2243
2287
|
/* harmony export */ ImageQualityResult: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResult),
|
|
2244
2288
|
/* harmony export */ ImageQualityResultStatus: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResultStatus),
|
|
2245
2289
|
/* harmony export */ ImageType: () => (/* reexport safe */ _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__.ImageType),
|
|
2246
|
-
/* harmony export */ ImageUpload: () => (/* reexport safe */
|
|
2290
|
+
/* harmony export */ ImageUpload: () => (/* reexport safe */ _person_database_image_upload__WEBPACK_IMPORTED_MODULE_59__.ImageUpload),
|
|
2247
2291
|
/* harmony export */ InitConfig: () => (/* reexport safe */ _init_init_config__WEBPACK_IMPORTED_MODULE_9__.InitConfig),
|
|
2248
2292
|
/* harmony export */ InitErrorCode: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitErrorCode),
|
|
2249
2293
|
/* harmony export */ InitException: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException),
|
|
2250
2294
|
/* harmony export */ LicenseException: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicenseException),
|
|
2251
2295
|
/* harmony export */ LicensingResultCode: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicensingResultCode),
|
|
2252
|
-
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */
|
|
2253
|
-
/* harmony export */ LivenessBackendException: () => (/* reexport safe */
|
|
2254
|
-
/* harmony export */ LivenessConfig: () => (/* reexport safe */
|
|
2255
|
-
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */
|
|
2256
|
-
/* harmony export */ LivenessException: () => (/* reexport safe */
|
|
2257
|
-
/* harmony export */ LivenessNotification: () => (/* reexport safe */
|
|
2258
|
-
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */
|
|
2259
|
-
/* harmony export */ LivenessResponse: () => (/* reexport safe */
|
|
2260
|
-
/* harmony export */ LivenessSkipStep: () => (/* reexport safe */
|
|
2261
|
-
/* harmony export */ LivenessStatus: () => (/* reexport safe */
|
|
2262
|
-
/* harmony export */ LivenessType: () => (/* reexport safe */
|
|
2263
|
-
/* harmony export */ MatchFacesBackendException: () => (/* reexport safe */
|
|
2264
|
-
/* harmony export */ MatchFacesConfig: () => (/* reexport safe */
|
|
2265
|
-
/* harmony export */ MatchFacesDetection: () => (/* reexport safe */
|
|
2266
|
-
/* harmony export */ MatchFacesDetectionFace: () => (/* reexport safe */
|
|
2267
|
-
/* harmony export */ MatchFacesErrorCode: () => (/* reexport safe */
|
|
2268
|
-
/* harmony export */ MatchFacesException: () => (/* reexport safe */
|
|
2269
|
-
/* harmony export */ MatchFacesImage: () => (/* reexport safe */
|
|
2270
|
-
/* harmony export */ MatchFacesRequest: () => (/* reexport safe */
|
|
2271
|
-
/* harmony export */ MatchFacesResponse: () => (/* reexport safe */
|
|
2296
|
+
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_39__.LivenessBackendErrorCode),
|
|
2297
|
+
/* harmony export */ LivenessBackendException: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_39__.LivenessBackendException),
|
|
2298
|
+
/* harmony export */ LivenessConfig: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessConfig),
|
|
2299
|
+
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_40__.LivenessErrorCode),
|
|
2300
|
+
/* harmony export */ LivenessException: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_40__.LivenessException),
|
|
2301
|
+
/* harmony export */ LivenessNotification: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_42__.LivenessNotification),
|
|
2302
|
+
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_42__.LivenessProcessStatus),
|
|
2303
|
+
/* harmony export */ LivenessResponse: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse),
|
|
2304
|
+
/* harmony export */ LivenessSkipStep: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessSkipStep),
|
|
2305
|
+
/* harmony export */ LivenessStatus: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessStatus),
|
|
2306
|
+
/* harmony export */ LivenessType: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessType),
|
|
2307
|
+
/* harmony export */ MatchFacesBackendException: () => (/* reexport safe */ _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_50__.MatchFacesBackendException),
|
|
2308
|
+
/* harmony export */ MatchFacesConfig: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_51__.MatchFacesConfig),
|
|
2309
|
+
/* harmony export */ MatchFacesDetection: () => (/* reexport safe */ _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_53__.MatchFacesDetection),
|
|
2310
|
+
/* harmony export */ MatchFacesDetectionFace: () => (/* reexport safe */ _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_52__.MatchFacesDetectionFace),
|
|
2311
|
+
/* harmony export */ MatchFacesErrorCode: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_54__.MatchFacesErrorCode),
|
|
2312
|
+
/* harmony export */ MatchFacesException: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_54__.MatchFacesException),
|
|
2313
|
+
/* harmony export */ MatchFacesImage: () => (/* reexport safe */ _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_55__.MatchFacesImage),
|
|
2314
|
+
/* harmony export */ MatchFacesRequest: () => (/* reexport safe */ _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_56__.MatchFacesRequest),
|
|
2315
|
+
/* harmony export */ MatchFacesResponse: () => (/* reexport safe */ _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_57__.MatchFacesResponse),
|
|
2272
2316
|
/* harmony export */ OutputImageCrop: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCrop),
|
|
2273
2317
|
/* harmony export */ OutputImageCropAspectRatio: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCropAspectRatio),
|
|
2274
2318
|
/* harmony export */ OutputImageParams: () => (/* reexport safe */ _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_26__.OutputImageParams),
|
|
2275
|
-
/* harmony export */ PageableItemList: () => (/* reexport safe */
|
|
2276
|
-
/* harmony export */ Person: () => (/* reexport safe */
|
|
2277
|
-
/* harmony export */ PersonDatabase: () => (/* reexport safe */
|
|
2278
|
-
/* harmony export */ PersonGroup: () => (/* reexport safe */
|
|
2279
|
-
/* harmony export */ PersonImage: () => (/* reexport safe */
|
|
2319
|
+
/* harmony export */ PageableItemList: () => (/* reexport safe */ _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_60__.PageableItemList),
|
|
2320
|
+
/* harmony export */ Person: () => (/* reexport safe */ _person_database_person__WEBPACK_IMPORTED_MODULE_64__.Person),
|
|
2321
|
+
/* harmony export */ PersonDatabase: () => (/* reexport safe */ _person_database_person_database__WEBPACK_IMPORTED_MODULE_61__.PersonDatabase),
|
|
2322
|
+
/* harmony export */ PersonGroup: () => (/* reexport safe */ _person_database_person_group__WEBPACK_IMPORTED_MODULE_62__.PersonGroup),
|
|
2323
|
+
/* harmony export */ PersonImage: () => (/* reexport safe */ _person_database_person_image__WEBPACK_IMPORTED_MODULE_63__.PersonImage),
|
|
2280
2324
|
/* harmony export */ Point: () => (/* reexport safe */ _image_params_point__WEBPACK_IMPORTED_MODULE_27__.Point),
|
|
2281
|
-
/* harmony export */ ProcessingMode: () => (/* reexport safe */
|
|
2282
|
-
/* harmony export */ RecordingProcess: () => (/* reexport safe */
|
|
2325
|
+
/* harmony export */ ProcessingMode: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_51__.ProcessingMode),
|
|
2326
|
+
/* harmony export */ RecordingProcess: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.RecordingProcess),
|
|
2283
2327
|
/* harmony export */ Rect: () => (/* reexport safe */ _image_params_rect__WEBPACK_IMPORTED_MODULE_28__.Rect),
|
|
2284
2328
|
/* harmony export */ ScreenOrientation: () => (/* reexport safe */ _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_7__.ScreenOrientation),
|
|
2285
|
-
/* harmony export */ SearchPerson: () => (/* reexport safe */
|
|
2286
|
-
/* harmony export */ SearchPersonDetection: () => (/* reexport safe */
|
|
2287
|
-
/* harmony export */ SearchPersonImage: () => (/* reexport safe */
|
|
2288
|
-
/* harmony export */ SearchPersonRequest: () => (/* reexport safe */
|
|
2289
|
-
/* harmony export */ Size: () => (/* reexport safe */ _image_params_size__WEBPACK_IMPORTED_MODULE_29__.Size)
|
|
2329
|
+
/* harmony export */ SearchPerson: () => (/* reexport safe */ _person_database_search_person__WEBPACK_IMPORTED_MODULE_68__.SearchPerson),
|
|
2330
|
+
/* harmony export */ SearchPersonDetection: () => (/* reexport safe */ _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_65__.SearchPersonDetection),
|
|
2331
|
+
/* harmony export */ SearchPersonImage: () => (/* reexport safe */ _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_66__.SearchPersonImage),
|
|
2332
|
+
/* harmony export */ SearchPersonRequest: () => (/* reexport safe */ _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_67__.SearchPersonRequest),
|
|
2333
|
+
/* harmony export */ Size: () => (/* reexport safe */ _image_params_size__WEBPACK_IMPORTED_MODULE_29__.Size),
|
|
2334
|
+
/* harmony export */ VerificationConfig: () => (/* reexport safe */ _liveness_verification_config__WEBPACK_IMPORTED_MODULE_38__.VerificationConfig),
|
|
2335
|
+
/* harmony export */ VerificationResponse: () => (/* reexport safe */ _liveness_verification_response__WEBPACK_IMPORTED_MODULE_46__.VerificationResponse),
|
|
2336
|
+
/* harmony export */ VerifyMatchResponse: () => (/* reexport safe */ _liveness_verify_match_response__WEBPACK_IMPORTED_MODULE_45__.VerifyMatchResponse)
|
|
2290
2337
|
/* harmony export */ });
|
|
2291
2338
|
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/bridge */ "./src/internal/bridge.js");
|
|
2292
2339
|
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customization/camera_position */ "./src/customization/camera_position.js");
|
|
@@ -2323,34 +2370,40 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2323
2370
|
/* harmony import */ var _image_quality_image_quality_group__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./image_quality/image_quality_group */ "./src/image_quality/image_quality_group.js");
|
|
2324
2371
|
/* harmony import */ var _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./image_quality/image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
2325
2372
|
/* harmony import */ var _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./image_quality/image_quality_result */ "./src/image_quality/image_quality_result.js");
|
|
2326
|
-
/* harmony import */ var
|
|
2327
|
-
/* harmony import */ var
|
|
2328
|
-
/* harmony import */ var
|
|
2329
|
-
/* harmony import */ var
|
|
2330
|
-
/* harmony import */ var
|
|
2331
|
-
/* harmony import */ var
|
|
2332
|
-
/* harmony import */ var
|
|
2333
|
-
/* harmony import */ var
|
|
2334
|
-
/* harmony import */ var
|
|
2335
|
-
/* harmony import */ var
|
|
2336
|
-
/* harmony import */ var
|
|
2337
|
-
/* harmony import */ var
|
|
2338
|
-
/* harmony import */ var
|
|
2339
|
-
/* harmony import */ var
|
|
2340
|
-
/* harmony import */ var
|
|
2341
|
-
/* harmony import */ var
|
|
2342
|
-
/* harmony import */ var
|
|
2343
|
-
/* harmony import */ var
|
|
2344
|
-
/* harmony import */ var
|
|
2345
|
-
/* harmony import */ var
|
|
2346
|
-
/* harmony import */ var
|
|
2347
|
-
/* harmony import */ var
|
|
2348
|
-
/* harmony import */ var
|
|
2349
|
-
/* harmony import */ var
|
|
2350
|
-
/* harmony import */ var
|
|
2351
|
-
/* harmony import */ var
|
|
2352
|
-
/* harmony import */ var
|
|
2353
|
-
|
|
2373
|
+
/* harmony import */ var _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./liveness/liveness_config */ "./src/liveness/liveness_config.js");
|
|
2374
|
+
/* harmony import */ var _liveness_enrollment_config__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./liveness/enrollment_config */ "./src/liveness/enrollment_config.js");
|
|
2375
|
+
/* harmony import */ var _liveness_enrollment_request__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./liveness/enrollment_request */ "./src/liveness/enrollment_request.js");
|
|
2376
|
+
/* harmony import */ var _liveness_verification_config__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./liveness/verification_config */ "./src/liveness/verification_config.js");
|
|
2377
|
+
/* harmony import */ var _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./liveness/liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
2378
|
+
/* harmony import */ var _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./liveness/liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
2379
|
+
/* harmony import */ var _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./liveness/liveness_response */ "./src/liveness/liveness_response.js");
|
|
2380
|
+
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
2381
|
+
/* harmony import */ var _liveness_error_response__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./liveness/error_response */ "./src/liveness/error_response.js");
|
|
2382
|
+
/* harmony import */ var _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./liveness/enrollment_response */ "./src/liveness/enrollment_response.js");
|
|
2383
|
+
/* harmony import */ var _liveness_verify_match_response__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./liveness/verify_match_response */ "./src/liveness/verify_match_response.js");
|
|
2384
|
+
/* harmony import */ var _liveness_verification_response__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./liveness/verification_response */ "./src/liveness/verification_response.js");
|
|
2385
|
+
/* harmony import */ var _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./match_faces/compared_face */ "./src/match_faces/compared_face.js");
|
|
2386
|
+
/* harmony import */ var _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./match_faces/compared_faces_pair */ "./src/match_faces/compared_faces_pair.js");
|
|
2387
|
+
/* harmony import */ var _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./match_faces/compared_faces_split */ "./src/match_faces/compared_faces_split.js");
|
|
2388
|
+
/* harmony import */ var _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./match_faces/match_faces_backend_exception */ "./src/match_faces/match_faces_backend_exception.js");
|
|
2389
|
+
/* harmony import */ var _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./match_faces/match_faces_config */ "./src/match_faces/match_faces_config.js");
|
|
2390
|
+
/* harmony import */ var _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./match_faces/match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2391
|
+
/* harmony import */ var _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./match_faces/match_faces_detection */ "./src/match_faces/match_faces_detection.js");
|
|
2392
|
+
/* harmony import */ var _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./match_faces/match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2393
|
+
/* harmony import */ var _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./match_faces/match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2394
|
+
/* harmony import */ var _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./match_faces/match_faces_request */ "./src/match_faces/match_faces_request.js");
|
|
2395
|
+
/* harmony import */ var _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./match_faces/match_faces_response */ "./src/match_faces/match_faces_response.js");
|
|
2396
|
+
/* harmony import */ var _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./person_database/edit_group_persons_request */ "./src/person_database/edit_group_persons_request.js");
|
|
2397
|
+
/* harmony import */ var _person_database_image_upload__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./person_database/image_upload */ "./src/person_database/image_upload.js");
|
|
2398
|
+
/* harmony import */ var _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./person_database/pageable_item_list */ "./src/person_database/pageable_item_list.js");
|
|
2399
|
+
/* harmony import */ var _person_database_person_database__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./person_database/person_database */ "./src/person_database/person_database.js");
|
|
2400
|
+
/* harmony import */ var _person_database_person_group__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./person_database/person_group */ "./src/person_database/person_group.js");
|
|
2401
|
+
/* harmony import */ var _person_database_person_image__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./person_database/person_image */ "./src/person_database/person_image.js");
|
|
2402
|
+
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./person_database/person */ "./src/person_database/person.js");
|
|
2403
|
+
/* harmony import */ var _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./person_database/search_person_detection */ "./src/person_database/search_person_detection.js");
|
|
2404
|
+
/* harmony import */ var _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./person_database/search_person_image */ "./src/person_database/search_person_image.js");
|
|
2405
|
+
/* harmony import */ var _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./person_database/search_person_request */ "./src/person_database/search_person_request.js");
|
|
2406
|
+
/* harmony import */ var _person_database_search_person__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./person_database/search_person */ "./src/person_database/search_person.js");
|
|
2354
2407
|
|
|
2355
2408
|
|
|
2356
2409
|
|
|
@@ -2370,7 +2423,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2370
2423
|
|
|
2371
2424
|
|
|
2372
2425
|
|
|
2373
|
-
|
|
2374
2426
|
;
|
|
2375
2427
|
|
|
2376
2428
|
|
|
@@ -2382,6 +2434,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2382
2434
|
|
|
2383
2435
|
|
|
2384
2436
|
|
|
2437
|
+
;
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
|
|
2385
2442
|
|
|
2386
2443
|
;
|
|
2387
2444
|
|
|
@@ -2397,7 +2454,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2397
2454
|
|
|
2398
2455
|
|
|
2399
2456
|
|
|
2400
|
-
|
|
2401
2457
|
;
|
|
2402
2458
|
|
|
2403
2459
|
|
|
@@ -2406,8 +2462,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2406
2462
|
|
|
2407
2463
|
|
|
2408
2464
|
|
|
2409
|
-
;
|
|
2410
|
-
|
|
2411
2465
|
|
|
2412
2466
|
|
|
2413
2467
|
|
|
@@ -2427,7 +2481,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2427
2481
|
|
|
2428
2482
|
|
|
2429
2483
|
|
|
2430
|
-
|
|
2431
2484
|
;
|
|
2432
2485
|
|
|
2433
2486
|
|
|
@@ -2442,7 +2495,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2442
2495
|
|
|
2443
2496
|
|
|
2444
2497
|
|
|
2445
|
-
|
|
2446
2498
|
class FaceSDK {
|
|
2447
2499
|
static get instance() { return FaceSDK._instance }
|
|
2448
2500
|
static _instance = new FaceSDK()
|
|
@@ -2508,7 +2560,7 @@ class FaceSDK {
|
|
|
2508
2560
|
}
|
|
2509
2561
|
|
|
2510
2562
|
get personDatabase() { return this._personDatabase }
|
|
2511
|
-
_personDatabase = new
|
|
2563
|
+
_personDatabase = new _person_database_person_database__WEBPACK_IMPORTED_MODULE_61__.PersonDatabase()
|
|
2512
2564
|
|
|
2513
2565
|
async isInitialized() {
|
|
2514
2566
|
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("isInitialized", [])
|
|
@@ -2544,7 +2596,30 @@ class FaceSDK {
|
|
|
2544
2596
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
2545
2597
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(params?.notificationCompletion)
|
|
2546
2598
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startLiveness", [params?.config])
|
|
2547
|
-
return
|
|
2599
|
+
return _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse.fromJson(JSON.parse(response))
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
async startEnrollment(params) {
|
|
2603
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
2604
|
+
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(params?.notificationCompletion)
|
|
2605
|
+
var response = JSON.parse(await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startEnrollment", [params.config]))
|
|
2606
|
+
var lr = _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse.fromJson(response["livenessResponse"]);
|
|
2607
|
+
var er = _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__.EnrollmentResponse.fromJson(response["enrollmentResponse"]);
|
|
2608
|
+
return [lr, er];
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
async startVerification(params) {
|
|
2612
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
2613
|
+
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(params?.notificationCompletion)
|
|
2614
|
+
var response = JSON.parse(await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startVerification", [params.config]))
|
|
2615
|
+
var lr = _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse.fromJson(response["livenessResponse"]);
|
|
2616
|
+
var er = _liveness_verification_response__WEBPACK_IMPORTED_MODULE_46__.VerificationResponse.fromJson(response["verificationResponse"]);
|
|
2617
|
+
return [lr, er];
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
async enrollWithTrustedPhoto(request) {
|
|
2621
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("enrollWithTrustedPhoto", [request])
|
|
2622
|
+
return _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__.EnrollmentResponse.fromJson(JSON.parse(response));
|
|
2548
2623
|
}
|
|
2549
2624
|
|
|
2550
2625
|
stopLiveness() {
|
|
@@ -2553,12 +2628,12 @@ class FaceSDK {
|
|
|
2553
2628
|
|
|
2554
2629
|
async matchFaces(request, params) {
|
|
2555
2630
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("matchFaces", [request, params?.config])
|
|
2556
|
-
return
|
|
2631
|
+
return _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_57__.MatchFacesResponse.fromJson(JSON.parse(response))
|
|
2557
2632
|
}
|
|
2558
2633
|
|
|
2559
2634
|
async splitComparedFaces(facesPairs, similarityThreshold) {
|
|
2560
2635
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("splitComparedFaces", [facesPairs, similarityThreshold])
|
|
2561
|
-
return
|
|
2636
|
+
return _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_49__.ComparedFacesSplit.fromJson(JSON.parse(response))
|
|
2562
2637
|
}
|
|
2563
2638
|
|
|
2564
2639
|
async detectFaces(request) {
|
|
@@ -2920,6 +2995,249 @@ class NativeEventEmitter {
|
|
|
2920
2995
|
}
|
|
2921
2996
|
}
|
|
2922
2997
|
|
|
2998
|
+
/***/ },
|
|
2999
|
+
|
|
3000
|
+
/***/ "./src/liveness/enrollment_config.js"
|
|
3001
|
+
/*!*******************************************!*\
|
|
3002
|
+
!*** ./src/liveness/enrollment_config.js ***!
|
|
3003
|
+
\*******************************************/
|
|
3004
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3005
|
+
|
|
3006
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3007
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3008
|
+
/* harmony export */ EnrollmentConfig: () => (/* binding */ EnrollmentConfig)
|
|
3009
|
+
/* harmony export */ });
|
|
3010
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
3011
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
3012
|
+
/* harmony import */ var _liveness_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./liveness_config */ "./src/liveness/liveness_config.js");
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
class EnrollmentConfig {
|
|
3018
|
+
copyright
|
|
3019
|
+
cameraSwitchEnabled
|
|
3020
|
+
closeButtonEnabled
|
|
3021
|
+
torchButtonEnabled
|
|
3022
|
+
vibrateOnSteps
|
|
3023
|
+
cameraPositionIOS
|
|
3024
|
+
cameraPositionAndroid
|
|
3025
|
+
screenOrientation
|
|
3026
|
+
locationTrackingEnabled
|
|
3027
|
+
preventScreenRecording
|
|
3028
|
+
attemptsCount
|
|
3029
|
+
recordingProcess
|
|
3030
|
+
livenessType
|
|
3031
|
+
tag
|
|
3032
|
+
skipStep
|
|
3033
|
+
metadata
|
|
3034
|
+
externalId
|
|
3035
|
+
groupId
|
|
3036
|
+
checkDuplicatesEnabled
|
|
3037
|
+
duplicatesThreshold
|
|
3038
|
+
|
|
3039
|
+
constructor(params) {
|
|
3040
|
+
this.copyright = params?.copyright ?? true
|
|
3041
|
+
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
3042
|
+
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
3043
|
+
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
3044
|
+
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
3045
|
+
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
3046
|
+
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
3047
|
+
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3048
|
+
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
3049
|
+
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
3050
|
+
this.attemptsCount = params?.attemptsCount ?? 0
|
|
3051
|
+
this.recordingProcess = params?.recordingProcess ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3052
|
+
this.livenessType = params?.livenessType ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.LivenessType.ACTIVE
|
|
3053
|
+
this.tag = params?.tag
|
|
3054
|
+
this.skipStep = params?.skipStep ?? []
|
|
3055
|
+
this.metadata = params?.metadata
|
|
3056
|
+
this.externalId = params?.externalId
|
|
3057
|
+
this.groupId = params?.groupId
|
|
3058
|
+
this.checkDuplicatesEnabled = params?.checkDuplicatesEnabled
|
|
3059
|
+
this.duplicatesThreshold = params?.duplicatesThreshold
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
static fromJson(jsonObject) {
|
|
3063
|
+
if (jsonObject == null) return null
|
|
3064
|
+
const result = new EnrollmentConfig()
|
|
3065
|
+
|
|
3066
|
+
result.copyright = jsonObject["copyright"]
|
|
3067
|
+
result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
|
|
3068
|
+
result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
|
|
3069
|
+
result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
|
|
3070
|
+
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
3071
|
+
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
3072
|
+
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
3073
|
+
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3074
|
+
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3075
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3076
|
+
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3077
|
+
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3078
|
+
result.livenessType = jsonObject["livenessType"]
|
|
3079
|
+
result.tag = jsonObject["tag"]
|
|
3080
|
+
result.skipStep = jsonObject["skipStep"]
|
|
3081
|
+
result.metadata = jsonObject["metadata"]
|
|
3082
|
+
result.externalId = jsonObject["externalId"]
|
|
3083
|
+
result.groupId = jsonObject["groupId"]
|
|
3084
|
+
result.checkDuplicatesEnabled = jsonObject["checkDuplicatesEnabled"]
|
|
3085
|
+
result.duplicatesThreshold = jsonObject["duplicatesThreshold"]
|
|
3086
|
+
|
|
3087
|
+
return result
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
toJson() {
|
|
3091
|
+
return {
|
|
3092
|
+
"copyright": this.copyright,
|
|
3093
|
+
"cameraSwitchEnabled": this.cameraSwitchEnabled,
|
|
3094
|
+
"closeButtonEnabled": this.closeButtonEnabled,
|
|
3095
|
+
"torchButtonEnabled": this.torchButtonEnabled,
|
|
3096
|
+
"vibrateOnSteps": this.vibrateOnSteps,
|
|
3097
|
+
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
3098
|
+
"cameraPositionIOS": this.cameraPositionIOS,
|
|
3099
|
+
"screenOrientation": this.screenOrientation,
|
|
3100
|
+
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3101
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
3102
|
+
"attemptsCount": this.attemptsCount,
|
|
3103
|
+
"recordingProcess": this.recordingProcess,
|
|
3104
|
+
"livenessType": this.livenessType,
|
|
3105
|
+
"tag": this.tag,
|
|
3106
|
+
"skipStep": this.skipStep,
|
|
3107
|
+
"metadata": this.metadata,
|
|
3108
|
+
"externalId": this.externalId,
|
|
3109
|
+
"groupId": this.groupId,
|
|
3110
|
+
"checkDuplicatesEnabled": this.checkDuplicatesEnabled,
|
|
3111
|
+
"duplicatesThreshold": this.duplicatesThreshold,
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
/***/ },
|
|
3118
|
+
|
|
3119
|
+
/***/ "./src/liveness/enrollment_request.js"
|
|
3120
|
+
/*!********************************************!*\
|
|
3121
|
+
!*** ./src/liveness/enrollment_request.js ***!
|
|
3122
|
+
\********************************************/
|
|
3123
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3124
|
+
|
|
3125
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3126
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3127
|
+
/* harmony export */ EnrollmentRequest: () => (/* binding */ EnrollmentRequest)
|
|
3128
|
+
/* harmony export */ });
|
|
3129
|
+
class EnrollmentRequest {
|
|
3130
|
+
externalId
|
|
3131
|
+
groupId
|
|
3132
|
+
trustedImage
|
|
3133
|
+
trustedImageUrl
|
|
3134
|
+
|
|
3135
|
+
constructor(params) {
|
|
3136
|
+
this.externalId = params?.externalId
|
|
3137
|
+
this.groupId = params?.groupId
|
|
3138
|
+
this.trustedImage = params?.trustedImage
|
|
3139
|
+
this.trustedImageUrl = params?.trustedImageUrl
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
static fromJson(jsonObject) {
|
|
3143
|
+
if (jsonObject == null) return null
|
|
3144
|
+
const result = new EnrollmentRequest()
|
|
3145
|
+
|
|
3146
|
+
result.externalId = jsonObject["externalId"]
|
|
3147
|
+
result.groupId = jsonObject["groupId"]
|
|
3148
|
+
result.trustedImage = jsonObject["trustedImage"]
|
|
3149
|
+
result.trustedImageUrl = jsonObject["trustedImageUrl"]
|
|
3150
|
+
|
|
3151
|
+
return result
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
toJson() {
|
|
3155
|
+
return {
|
|
3156
|
+
"externalId": this.externalId,
|
|
3157
|
+
"groupId": this.groupId,
|
|
3158
|
+
"trustedImage": this.trustedImage,
|
|
3159
|
+
"trustedImageUrl": this.trustedImageUrl,
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
|
|
3165
|
+
/***/ },
|
|
3166
|
+
|
|
3167
|
+
/***/ "./src/liveness/enrollment_response.js"
|
|
3168
|
+
/*!*********************************************!*\
|
|
3169
|
+
!*** ./src/liveness/enrollment_response.js ***!
|
|
3170
|
+
\*********************************************/
|
|
3171
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3172
|
+
|
|
3173
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3174
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3175
|
+
/* harmony export */ EnrollmentResponse: () => (/* binding */ EnrollmentResponse)
|
|
3176
|
+
/* harmony export */ });
|
|
3177
|
+
/* harmony import */ var _error_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./error_response */ "./src/liveness/error_response.js");
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
class EnrollmentResponse {
|
|
3181
|
+
personId
|
|
3182
|
+
externalId
|
|
3183
|
+
error
|
|
3184
|
+
|
|
3185
|
+
static fromJson(jsonObject) {
|
|
3186
|
+
if (jsonObject == null) return null
|
|
3187
|
+
const result = new EnrollmentResponse()
|
|
3188
|
+
|
|
3189
|
+
result.personId = jsonObject["personId"]
|
|
3190
|
+
result.externalId = jsonObject["externalId"]
|
|
3191
|
+
result.error = _error_response__WEBPACK_IMPORTED_MODULE_0__.ErrorResponse.fromJson(jsonObject["error"])
|
|
3192
|
+
|
|
3193
|
+
return result
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
toJson() {
|
|
3197
|
+
return {
|
|
3198
|
+
"personId": this.personId,
|
|
3199
|
+
"externalId": this.externalId,
|
|
3200
|
+
"error": this.error?.toJson(),
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
|
|
3206
|
+
/***/ },
|
|
3207
|
+
|
|
3208
|
+
/***/ "./src/liveness/error_response.js"
|
|
3209
|
+
/*!****************************************!*\
|
|
3210
|
+
!*** ./src/liveness/error_response.js ***!
|
|
3211
|
+
\****************************************/
|
|
3212
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3213
|
+
|
|
3214
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3215
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3216
|
+
/* harmony export */ ErrorResponse: () => (/* binding */ ErrorResponse)
|
|
3217
|
+
/* harmony export */ });
|
|
3218
|
+
class ErrorResponse {
|
|
3219
|
+
code
|
|
3220
|
+
message
|
|
3221
|
+
|
|
3222
|
+
static fromJson(jsonObject) {
|
|
3223
|
+
if (jsonObject == null) return null
|
|
3224
|
+
const result = new ErrorResponse()
|
|
3225
|
+
|
|
3226
|
+
result.code = jsonObject["code"]
|
|
3227
|
+
result.message = jsonObject["message"]
|
|
3228
|
+
|
|
3229
|
+
return result
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
toJson() {
|
|
3233
|
+
return {
|
|
3234
|
+
"code": this.code,
|
|
3235
|
+
"message": this.message,
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
|
|
2923
3241
|
/***/ },
|
|
2924
3242
|
|
|
2925
3243
|
/***/ "./src/liveness/liveness_backend_exception.js"
|
|
@@ -3102,6 +3420,7 @@ const RecordingProcess = {
|
|
|
3102
3420
|
const LivenessType = {
|
|
3103
3421
|
ACTIVE: 0,
|
|
3104
3422
|
PASSIVE: 1,
|
|
3423
|
+
PASSIVE_WITH_BLINK: 2,
|
|
3105
3424
|
}
|
|
3106
3425
|
|
|
3107
3426
|
const LivenessSkipStep = {
|
|
@@ -3160,11 +3479,12 @@ const LivenessErrorCode = {
|
|
|
3160
3479
|
PROCESSING_FAILED: 6,
|
|
3161
3480
|
PROCESSING_FRAME_FAILED: 7,
|
|
3162
3481
|
APPLICATION_INACTIVE: 8,
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3482
|
+
BAD_FACE_QUALITY: 9,
|
|
3483
|
+
CONTEXT_IS_NULL: 10,
|
|
3484
|
+
IN_PROGRESS_ALREADY: 11,
|
|
3485
|
+
ZOOM_NOT_SUPPORTED: 12,
|
|
3486
|
+
CAMERA_NO_PERMISSION: 13,
|
|
3487
|
+
CAMERA_NOT_AVAILABLE: 14,
|
|
3168
3488
|
}
|
|
3169
3489
|
|
|
3170
3490
|
/***/ },
|
|
@@ -3221,6 +3541,8 @@ const LivenessProcessStatus = {
|
|
|
3221
3541
|
FAILED: 12,
|
|
3222
3542
|
RETRY: 13,
|
|
3223
3543
|
SUCCESS: 14,
|
|
3544
|
+
BLINK: 15,
|
|
3545
|
+
BAD_FACE_QUALITY: 16,
|
|
3224
3546
|
}
|
|
3225
3547
|
|
|
3226
3548
|
/***/ },
|
|
@@ -3279,6 +3601,199 @@ const LivenessStatus = {
|
|
|
3279
3601
|
UNKNOWN: 1,
|
|
3280
3602
|
}
|
|
3281
3603
|
|
|
3604
|
+
/***/ },
|
|
3605
|
+
|
|
3606
|
+
/***/ "./src/liveness/verification_config.js"
|
|
3607
|
+
/*!*********************************************!*\
|
|
3608
|
+
!*** ./src/liveness/verification_config.js ***!
|
|
3609
|
+
\*********************************************/
|
|
3610
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3611
|
+
|
|
3612
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3613
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3614
|
+
/* harmony export */ VerificationConfig: () => (/* binding */ VerificationConfig)
|
|
3615
|
+
/* harmony export */ });
|
|
3616
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
3617
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
3618
|
+
/* harmony import */ var _liveness_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./liveness_config */ "./src/liveness/liveness_config.js");
|
|
3619
|
+
|
|
3620
|
+
|
|
3621
|
+
|
|
3622
|
+
|
|
3623
|
+
class VerificationConfig {
|
|
3624
|
+
copyright
|
|
3625
|
+
cameraSwitchEnabled
|
|
3626
|
+
closeButtonEnabled
|
|
3627
|
+
torchButtonEnabled
|
|
3628
|
+
vibrateOnSteps
|
|
3629
|
+
cameraPositionIOS
|
|
3630
|
+
cameraPositionAndroid
|
|
3631
|
+
screenOrientation
|
|
3632
|
+
locationTrackingEnabled
|
|
3633
|
+
preventScreenRecording
|
|
3634
|
+
attemptsCount
|
|
3635
|
+
recordingProcess
|
|
3636
|
+
livenessType
|
|
3637
|
+
tag
|
|
3638
|
+
skipStep
|
|
3639
|
+
metadata
|
|
3640
|
+
personId
|
|
3641
|
+
groupId
|
|
3642
|
+
threshold
|
|
3643
|
+
|
|
3644
|
+
constructor(params) {
|
|
3645
|
+
this.copyright = params?.copyright ?? true
|
|
3646
|
+
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
3647
|
+
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
3648
|
+
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
3649
|
+
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
3650
|
+
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
3651
|
+
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
3652
|
+
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3653
|
+
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
3654
|
+
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
3655
|
+
this.attemptsCount = params?.attemptsCount ?? 0
|
|
3656
|
+
this.recordingProcess = params?.recordingProcess ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3657
|
+
this.livenessType = params?.livenessType ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.LivenessType.ACTIVE
|
|
3658
|
+
this.tag = params?.tag
|
|
3659
|
+
this.skipStep = params?.skipStep ?? []
|
|
3660
|
+
this.metadata = params?.metadata
|
|
3661
|
+
this.personId = params?.personId
|
|
3662
|
+
this.groupId = params?.groupId
|
|
3663
|
+
this.threshold = params?.threshold
|
|
3664
|
+
}
|
|
3665
|
+
|
|
3666
|
+
static fromJson(jsonObject) {
|
|
3667
|
+
if (jsonObject == null) return null
|
|
3668
|
+
const result = new VerificationConfig()
|
|
3669
|
+
|
|
3670
|
+
result.copyright = jsonObject["copyright"]
|
|
3671
|
+
result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
|
|
3672
|
+
result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
|
|
3673
|
+
result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
|
|
3674
|
+
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
3675
|
+
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
3676
|
+
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
3677
|
+
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3678
|
+
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3679
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3680
|
+
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3681
|
+
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3682
|
+
result.livenessType = jsonObject["livenessType"]
|
|
3683
|
+
result.tag = jsonObject["tag"]
|
|
3684
|
+
result.skipStep = jsonObject["skipStep"]
|
|
3685
|
+
result.metadata = jsonObject["metadata"]
|
|
3686
|
+
result.personId = jsonObject["personId"]
|
|
3687
|
+
result.groupId = jsonObject["groupId"]
|
|
3688
|
+
result.threshold = jsonObject["threshold"]
|
|
3689
|
+
|
|
3690
|
+
return result
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
toJson() {
|
|
3694
|
+
return {
|
|
3695
|
+
"copyright": this.copyright,
|
|
3696
|
+
"cameraSwitchEnabled": this.cameraSwitchEnabled,
|
|
3697
|
+
"closeButtonEnabled": this.closeButtonEnabled,
|
|
3698
|
+
"torchButtonEnabled": this.torchButtonEnabled,
|
|
3699
|
+
"vibrateOnSteps": this.vibrateOnSteps,
|
|
3700
|
+
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
3701
|
+
"cameraPositionIOS": this.cameraPositionIOS,
|
|
3702
|
+
"screenOrientation": this.screenOrientation,
|
|
3703
|
+
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3704
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
3705
|
+
"attemptsCount": this.attemptsCount,
|
|
3706
|
+
"recordingProcess": this.recordingProcess,
|
|
3707
|
+
"livenessType": this.livenessType,
|
|
3708
|
+
"tag": this.tag,
|
|
3709
|
+
"skipStep": this.skipStep,
|
|
3710
|
+
"metadata": this.metadata,
|
|
3711
|
+
"personId": this.personId,
|
|
3712
|
+
"groupId": this.groupId,
|
|
3713
|
+
"threshold": this.threshold,
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
|
|
3719
|
+
/***/ },
|
|
3720
|
+
|
|
3721
|
+
/***/ "./src/liveness/verification_response.js"
|
|
3722
|
+
/*!***********************************************!*\
|
|
3723
|
+
!*** ./src/liveness/verification_response.js ***!
|
|
3724
|
+
\***********************************************/
|
|
3725
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3726
|
+
|
|
3727
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3728
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3729
|
+
/* harmony export */ VerificationResponse: () => (/* binding */ VerificationResponse)
|
|
3730
|
+
/* harmony export */ });
|
|
3731
|
+
/* harmony import */ var _verify_match_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./verify_match_response */ "./src/liveness/verify_match_response.js");
|
|
3732
|
+
/* harmony import */ var _error_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./error_response */ "./src/liveness/error_response.js");
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
|
|
3736
|
+
class VerificationResponse {
|
|
3737
|
+
passed
|
|
3738
|
+
match
|
|
3739
|
+
error
|
|
3740
|
+
|
|
3741
|
+
static fromJson(jsonObject) {
|
|
3742
|
+
if (jsonObject == null) return null
|
|
3743
|
+
const result = new VerificationResponse()
|
|
3744
|
+
|
|
3745
|
+
result.passed = jsonObject["passed"]
|
|
3746
|
+
result.match = _verify_match_response__WEBPACK_IMPORTED_MODULE_0__.VerifyMatchResponse.fromJson(jsonObject["match"])
|
|
3747
|
+
result.error = _error_response__WEBPACK_IMPORTED_MODULE_1__.ErrorResponse.fromJson(jsonObject["error"])
|
|
3748
|
+
|
|
3749
|
+
return result
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
toJson() {
|
|
3753
|
+
return {
|
|
3754
|
+
"passed": this.passed,
|
|
3755
|
+
"match": this.match?.toJson(),
|
|
3756
|
+
"error": this.error?.toJson(),
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
|
|
3762
|
+
/***/ },
|
|
3763
|
+
|
|
3764
|
+
/***/ "./src/liveness/verify_match_response.js"
|
|
3765
|
+
/*!***********************************************!*\
|
|
3766
|
+
!*** ./src/liveness/verify_match_response.js ***!
|
|
3767
|
+
\***********************************************/
|
|
3768
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3769
|
+
|
|
3770
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3771
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3772
|
+
/* harmony export */ VerifyMatchResponse: () => (/* binding */ VerifyMatchResponse)
|
|
3773
|
+
/* harmony export */ });
|
|
3774
|
+
class VerifyMatchResponse {
|
|
3775
|
+
passed
|
|
3776
|
+
similarity
|
|
3777
|
+
|
|
3778
|
+
static fromJson(jsonObject) {
|
|
3779
|
+
if (jsonObject == null) return null
|
|
3780
|
+
const result = new VerifyMatchResponse()
|
|
3781
|
+
|
|
3782
|
+
result.passed = jsonObject["passed"]
|
|
3783
|
+
result.similarity = jsonObject["similarity"]
|
|
3784
|
+
|
|
3785
|
+
return result
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
toJson() {
|
|
3789
|
+
return {
|
|
3790
|
+
"passed": this.passed,
|
|
3791
|
+
"similarity": this.similarity,
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
|
|
3282
3797
|
/***/ },
|
|
3283
3798
|
|
|
3284
3799
|
/***/ "./src/match_faces/compared_face.js"
|