@regulaforensics/face-sdk 8.4.1338-nightly → 8.4.1344-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 +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/Config.kt +94 -90
- package/android/src/main/{java/com/regula/plugin/facesdk/Main.kt → kotlin/com/regula/plugin/facesdk/Implementation.kt} +63 -41
- package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/JSONConstructor.kt +123 -75
- package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/Utils.kt +18 -2
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/react_native/package.json +2 -2
- package/ios/Config.swift +100 -104
- package/ios/Decoder.swift +85 -64
- package/ios/Utils.swift +3 -0
- package/package.json +1 -1
- package/plugin.xml +8 -8
- package/test/json.tsx +73 -61
- package/test/package-lock.json +5 -2
- package/test/test.tsx +8 -11
- package/www/capacitor/index.js +4 -11
- package/www/capacitor/liveness/enrollment_config.js +10 -16
- package/www/capacitor/liveness/enrollment_response.js +14 -10
- package/www/capacitor/liveness/liveness_exception.js +3 -3
- package/www/capacitor/liveness/verification_config.js +16 -4
- package/www/capacitor/liveness/{verify_match_response.js → verification_match_response.js} +5 -5
- package/www/capacitor/liveness/verification_response.js +9 -9
- package/www/capacitor/person_database/person.js +16 -7
- package/www/capacitor/person_database/search_person.js +9 -0
- package/www/capacitor/person_database/search_person_filter.js +44 -0
- package/www/cordova.js +238 -245
- package/www/react-native/index.js +4 -11
- package/www/react-native/liveness/enrollment_config.js +10 -16
- package/www/react-native/liveness/enrollment_response.js +14 -10
- package/www/react-native/liveness/liveness_exception.js +3 -3
- package/www/react-native/liveness/verification_config.js +16 -4
- package/www/react-native/liveness/{verify_match_response.js → verification_match_response.js} +5 -5
- package/www/react-native/liveness/verification_response.js +9 -9
- package/www/react-native/person_database/person.js +16 -7
- package/www/react-native/person_database/search_person.js +9 -0
- package/www/react-native/person_database/search_person_filter.js +44 -0
- package/www/types/index.d.ts +4 -8
- package/www/types/liveness/enrollment_config.d.ts +4 -6
- package/www/types/liveness/enrollment_response.d.ts +5 -4
- package/www/types/liveness/liveness_exception.d.ts +2 -2
- package/www/types/liveness/verification_config.d.ts +49 -5
- package/www/types/liveness/verification_match_response.d.ts +6 -0
- package/www/types/liveness/verification_response.d.ts +5 -5
- package/www/types/person_database/person.d.ts +12 -8
- package/www/types/person_database/search_person.d.ts +6 -0
- package/www/types/person_database/search_person_filter.d.ts +16 -0
- package/www/capacitor/liveness/enrollment_request.js +0 -39
- package/www/capacitor/liveness/error_response.js +0 -21
- package/www/react-native/liveness/enrollment_request.js +0 -39
- package/www/react-native/liveness/error_response.js +0 -21
- package/www/types/liveness/enrollment_request.d.ts +0 -24
- package/www/types/liveness/error_response.d.ts +0 -6
- package/www/types/liveness/verify_match_response.d.ts +0 -6
- /package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/RNFaceApiModule.kt +0 -0
- /package/ios/{Main.swift → Implementation.swift} +0 -0
package/www/cordova.js
CHANGED
|
@@ -2256,9 +2256,9 @@ const ImageQualityResultStatus = {
|
|
|
2256
2256
|
__webpack_require__.r(__webpack_exports__);
|
|
2257
2257
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2258
2258
|
/* harmony export */ CameraPosition: () => (/* reexport safe */ _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__.CameraPosition),
|
|
2259
|
-
/* harmony export */ ComparedFace: () => (/* reexport safe */
|
|
2260
|
-
/* harmony export */ ComparedFacesPair: () => (/* reexport safe */
|
|
2261
|
-
/* harmony export */ ComparedFacesSplit: () => (/* reexport safe */
|
|
2259
|
+
/* harmony export */ ComparedFace: () => (/* reexport safe */ _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_45__.ComparedFace),
|
|
2260
|
+
/* harmony export */ ComparedFacesPair: () => (/* reexport safe */ _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_46__.ComparedFacesPair),
|
|
2261
|
+
/* harmony export */ ComparedFacesSplit: () => (/* reexport safe */ _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_47__.ComparedFacesSplit),
|
|
2262
2262
|
/* harmony export */ Customization: () => (/* reexport safe */ _customization_customization__WEBPACK_IMPORTED_MODULE_5__.Customization),
|
|
2263
2263
|
/* harmony export */ CustomizationColors: () => (/* reexport safe */ _customization_customization_colors__WEBPACK_IMPORTED_MODULE_2__.CustomizationColors),
|
|
2264
2264
|
/* harmony export */ CustomizationFonts: () => (/* reexport safe */ _customization_customization_fonts__WEBPACK_IMPORTED_MODULE_3__.CustomizationFonts),
|
|
@@ -2274,11 +2274,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2274
2274
|
/* harmony export */ DetectFacesRequest: () => (/* reexport safe */ _detect_faces_detect_faces_request__WEBPACK_IMPORTED_MODULE_18__.DetectFacesRequest),
|
|
2275
2275
|
/* harmony export */ DetectFacesResponse: () => (/* reexport safe */ _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__.DetectFacesResponse),
|
|
2276
2276
|
/* harmony export */ DetectFacesScenario: () => (/* reexport safe */ _detect_faces_detect_faces_scenario__WEBPACK_IMPORTED_MODULE_20__.DetectFacesScenario),
|
|
2277
|
-
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */
|
|
2277
|
+
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */ _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_56__.EditGroupPersonsRequest),
|
|
2278
2278
|
/* harmony export */ EnrollmentConfig: () => (/* reexport safe */ _liveness_enrollment_config__WEBPACK_IMPORTED_MODULE_36__.EnrollmentConfig),
|
|
2279
|
-
/* harmony export */
|
|
2280
|
-
/* harmony export */ EnrollmentResponse: () => (/* reexport safe */ _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__.EnrollmentResponse),
|
|
2281
|
-
/* harmony export */ ErrorResponse: () => (/* reexport safe */ _liveness_error_response__WEBPACK_IMPORTED_MODULE_43__.ErrorResponse),
|
|
2279
|
+
/* harmony export */ EnrollmentResponse: () => (/* reexport safe */ _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_42__.EnrollmentResponse),
|
|
2282
2280
|
/* harmony export */ FaceCaptureConfig: () => (/* reexport safe */ _face_capture_face_capture_config__WEBPACK_IMPORTED_MODULE_21__.FaceCaptureConfig),
|
|
2283
2281
|
/* harmony export */ FaceCaptureErrorCode: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureErrorCode),
|
|
2284
2282
|
/* harmony export */ FaceCaptureException: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureException),
|
|
@@ -2295,53 +2293,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2295
2293
|
/* harmony export */ ImageQualityResult: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResult),
|
|
2296
2294
|
/* harmony export */ ImageQualityResultStatus: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResultStatus),
|
|
2297
2295
|
/* harmony export */ ImageType: () => (/* reexport safe */ _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__.ImageType),
|
|
2298
|
-
/* harmony export */ ImageUpload: () => (/* reexport safe */
|
|
2296
|
+
/* harmony export */ ImageUpload: () => (/* reexport safe */ _person_database_image_upload__WEBPACK_IMPORTED_MODULE_57__.ImageUpload),
|
|
2299
2297
|
/* harmony export */ InitConfig: () => (/* reexport safe */ _init_init_config__WEBPACK_IMPORTED_MODULE_9__.InitConfig),
|
|
2300
2298
|
/* harmony export */ InitErrorCode: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitErrorCode),
|
|
2301
2299
|
/* harmony export */ InitException: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException),
|
|
2302
2300
|
/* harmony export */ LicenseException: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicenseException),
|
|
2303
2301
|
/* harmony export */ LicensingResultCode: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicensingResultCode),
|
|
2304
|
-
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */
|
|
2305
|
-
/* harmony export */ LivenessBackendException: () => (/* reexport safe */
|
|
2302
|
+
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_38__.LivenessBackendErrorCode),
|
|
2303
|
+
/* harmony export */ LivenessBackendException: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_38__.LivenessBackendException),
|
|
2306
2304
|
/* harmony export */ LivenessConfig: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessConfig),
|
|
2307
|
-
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */
|
|
2308
|
-
/* harmony export */ LivenessException: () => (/* reexport safe */
|
|
2309
|
-
/* harmony export */ LivenessNotification: () => (/* reexport safe */
|
|
2310
|
-
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */
|
|
2311
|
-
/* harmony export */ LivenessResponse: () => (/* reexport safe */
|
|
2305
|
+
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_39__.LivenessErrorCode),
|
|
2306
|
+
/* harmony export */ LivenessException: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_39__.LivenessException),
|
|
2307
|
+
/* harmony export */ LivenessNotification: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_41__.LivenessNotification),
|
|
2308
|
+
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_41__.LivenessProcessStatus),
|
|
2309
|
+
/* harmony export */ LivenessResponse: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_40__.LivenessResponse),
|
|
2312
2310
|
/* harmony export */ LivenessSkipStep: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessSkipStep),
|
|
2313
|
-
/* harmony export */ LivenessStatus: () => (/* reexport safe */
|
|
2311
|
+
/* harmony export */ LivenessStatus: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_40__.LivenessStatus),
|
|
2314
2312
|
/* harmony export */ LivenessType: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessType),
|
|
2315
|
-
/* harmony export */ MatchFacesBackendException: () => (/* reexport safe */
|
|
2316
|
-
/* harmony export */ MatchFacesConfig: () => (/* reexport safe */
|
|
2317
|
-
/* harmony export */ MatchFacesDetection: () => (/* reexport safe */
|
|
2318
|
-
/* harmony export */ MatchFacesDetectionFace: () => (/* reexport safe */
|
|
2319
|
-
/* harmony export */ MatchFacesErrorCode: () => (/* reexport safe */
|
|
2320
|
-
/* harmony export */ MatchFacesException: () => (/* reexport safe */
|
|
2321
|
-
/* harmony export */ MatchFacesImage: () => (/* reexport safe */
|
|
2322
|
-
/* harmony export */ MatchFacesRequest: () => (/* reexport safe */
|
|
2323
|
-
/* harmony export */ MatchFacesResponse: () => (/* reexport safe */
|
|
2313
|
+
/* harmony export */ MatchFacesBackendException: () => (/* reexport safe */ _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_48__.MatchFacesBackendException),
|
|
2314
|
+
/* harmony export */ MatchFacesConfig: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_49__.MatchFacesConfig),
|
|
2315
|
+
/* harmony export */ MatchFacesDetection: () => (/* reexport safe */ _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_51__.MatchFacesDetection),
|
|
2316
|
+
/* harmony export */ MatchFacesDetectionFace: () => (/* reexport safe */ _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_50__.MatchFacesDetectionFace),
|
|
2317
|
+
/* harmony export */ MatchFacesErrorCode: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_52__.MatchFacesErrorCode),
|
|
2318
|
+
/* harmony export */ MatchFacesException: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_52__.MatchFacesException),
|
|
2319
|
+
/* harmony export */ MatchFacesImage: () => (/* reexport safe */ _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_53__.MatchFacesImage),
|
|
2320
|
+
/* harmony export */ MatchFacesRequest: () => (/* reexport safe */ _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_54__.MatchFacesRequest),
|
|
2321
|
+
/* harmony export */ MatchFacesResponse: () => (/* reexport safe */ _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_55__.MatchFacesResponse),
|
|
2324
2322
|
/* harmony export */ OutputImageCrop: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCrop),
|
|
2325
2323
|
/* harmony export */ OutputImageCropAspectRatio: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCropAspectRatio),
|
|
2326
2324
|
/* harmony export */ OutputImageParams: () => (/* reexport safe */ _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_26__.OutputImageParams),
|
|
2327
|
-
/* harmony export */ PageableItemList: () => (/* reexport safe */
|
|
2328
|
-
/* harmony export */ Person: () => (/* reexport safe */
|
|
2329
|
-
/* harmony export */ PersonDatabase: () => (/* reexport safe */
|
|
2330
|
-
/* harmony export */ PersonGroup: () => (/* reexport safe */
|
|
2331
|
-
/* harmony export */ PersonImage: () => (/* reexport safe */
|
|
2325
|
+
/* harmony export */ PageableItemList: () => (/* reexport safe */ _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_58__.PageableItemList),
|
|
2326
|
+
/* harmony export */ Person: () => (/* reexport safe */ _person_database_person__WEBPACK_IMPORTED_MODULE_62__.Person),
|
|
2327
|
+
/* harmony export */ PersonDatabase: () => (/* reexport safe */ _person_database_person_database__WEBPACK_IMPORTED_MODULE_59__.PersonDatabase),
|
|
2328
|
+
/* harmony export */ PersonGroup: () => (/* reexport safe */ _person_database_person_group__WEBPACK_IMPORTED_MODULE_60__.PersonGroup),
|
|
2329
|
+
/* harmony export */ PersonImage: () => (/* reexport safe */ _person_database_person_image__WEBPACK_IMPORTED_MODULE_61__.PersonImage),
|
|
2332
2330
|
/* harmony export */ Point: () => (/* reexport safe */ _image_params_point__WEBPACK_IMPORTED_MODULE_27__.Point),
|
|
2333
|
-
/* harmony export */ ProcessingMode: () => (/* reexport safe */
|
|
2331
|
+
/* harmony export */ ProcessingMode: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_49__.ProcessingMode),
|
|
2334
2332
|
/* harmony export */ RecordingProcess: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.RecordingProcess),
|
|
2335
2333
|
/* harmony export */ Rect: () => (/* reexport safe */ _image_params_rect__WEBPACK_IMPORTED_MODULE_28__.Rect),
|
|
2336
2334
|
/* harmony export */ ScreenOrientation: () => (/* reexport safe */ _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_7__.ScreenOrientation),
|
|
2337
|
-
/* harmony export */ SearchPerson: () => (/* reexport safe */
|
|
2338
|
-
/* harmony export */ SearchPersonDetection: () => (/* reexport safe */
|
|
2339
|
-
/* harmony export */
|
|
2340
|
-
/* harmony export */
|
|
2335
|
+
/* harmony export */ SearchPerson: () => (/* reexport safe */ _person_database_search_person__WEBPACK_IMPORTED_MODULE_67__.SearchPerson),
|
|
2336
|
+
/* harmony export */ SearchPersonDetection: () => (/* reexport safe */ _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_63__.SearchPersonDetection),
|
|
2337
|
+
/* harmony export */ SearchPersonFilter: () => (/* reexport safe */ _person_database_search_person_filter__WEBPACK_IMPORTED_MODULE_66__.SearchPersonFilter),
|
|
2338
|
+
/* harmony export */ SearchPersonImage: () => (/* reexport safe */ _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_64__.SearchPersonImage),
|
|
2339
|
+
/* harmony export */ SearchPersonRequest: () => (/* reexport safe */ _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_65__.SearchPersonRequest),
|
|
2341
2340
|
/* harmony export */ Size: () => (/* reexport safe */ _image_params_size__WEBPACK_IMPORTED_MODULE_29__.Size),
|
|
2342
|
-
/* harmony export */ VerificationConfig: () => (/* reexport safe */
|
|
2343
|
-
/* harmony export */
|
|
2344
|
-
/* harmony export */
|
|
2341
|
+
/* harmony export */ VerificationConfig: () => (/* reexport safe */ _liveness_verification_config__WEBPACK_IMPORTED_MODULE_37__.VerificationConfig),
|
|
2342
|
+
/* harmony export */ VerificationMatchResponse: () => (/* reexport safe */ _liveness_verification_match_response__WEBPACK_IMPORTED_MODULE_43__.VerificationMatchResponse),
|
|
2343
|
+
/* harmony export */ VerificationResponse: () => (/* reexport safe */ _liveness_verification_response__WEBPACK_IMPORTED_MODULE_44__.VerificationResponse)
|
|
2345
2344
|
/* harmony export */ });
|
|
2346
2345
|
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/bridge */ "./src/internal/bridge.js");
|
|
2347
2346
|
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customization/camera_position */ "./src/customization/camera_position.js");
|
|
@@ -2380,38 +2379,37 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2380
2379
|
/* 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");
|
|
2381
2380
|
/* harmony import */ var _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./liveness/liveness_config */ "./src/liveness/liveness_config.js");
|
|
2382
2381
|
/* harmony import */ var _liveness_enrollment_config__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./liveness/enrollment_config */ "./src/liveness/enrollment_config.js");
|
|
2383
|
-
/* harmony import */ var
|
|
2384
|
-
/* harmony import */ var
|
|
2385
|
-
/* harmony import */ var
|
|
2386
|
-
/* harmony import */ var
|
|
2387
|
-
/* harmony import */ var
|
|
2388
|
-
/* harmony import */ var
|
|
2389
|
-
/* harmony import */ var
|
|
2390
|
-
/* harmony import */ var
|
|
2391
|
-
/* harmony import */ var
|
|
2392
|
-
/* harmony import */ var
|
|
2393
|
-
/* harmony import */ var
|
|
2394
|
-
/* harmony import */ var
|
|
2395
|
-
/* harmony import */ var
|
|
2396
|
-
/* harmony import */ var
|
|
2397
|
-
/* harmony import */ var
|
|
2398
|
-
/* harmony import */ var
|
|
2399
|
-
/* harmony import */ var
|
|
2400
|
-
/* harmony import */ var
|
|
2401
|
-
/* harmony import */ var
|
|
2402
|
-
/* harmony import */ var
|
|
2403
|
-
/* harmony import */ var
|
|
2404
|
-
/* harmony import */ var
|
|
2405
|
-
/* harmony import */ var
|
|
2406
|
-
/* harmony import */ var
|
|
2407
|
-
/* harmony import */ var
|
|
2408
|
-
/* harmony import */ var
|
|
2409
|
-
/* harmony import */ var
|
|
2410
|
-
/* harmony import */ var
|
|
2411
|
-
/* harmony import */ var
|
|
2412
|
-
/* harmony import */ var
|
|
2413
|
-
/* harmony import */ var
|
|
2414
|
-
/* harmony import */ var _person_database_search_person__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./person_database/search_person */ "./src/person_database/search_person.js");
|
|
2382
|
+
/* harmony import */ var _liveness_verification_config__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./liveness/verification_config */ "./src/liveness/verification_config.js");
|
|
2383
|
+
/* harmony import */ var _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./liveness/liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
2384
|
+
/* harmony import */ var _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./liveness/liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
2385
|
+
/* harmony import */ var _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./liveness/liveness_response */ "./src/liveness/liveness_response.js");
|
|
2386
|
+
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
2387
|
+
/* harmony import */ var _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./liveness/enrollment_response */ "./src/liveness/enrollment_response.js");
|
|
2388
|
+
/* harmony import */ var _liveness_verification_match_response__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./liveness/verification_match_response */ "./src/liveness/verification_match_response.js");
|
|
2389
|
+
/* harmony import */ var _liveness_verification_response__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./liveness/verification_response */ "./src/liveness/verification_response.js");
|
|
2390
|
+
/* harmony import */ var _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./match_faces/compared_face */ "./src/match_faces/compared_face.js");
|
|
2391
|
+
/* harmony import */ var _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./match_faces/compared_faces_pair */ "./src/match_faces/compared_faces_pair.js");
|
|
2392
|
+
/* harmony import */ var _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./match_faces/compared_faces_split */ "./src/match_faces/compared_faces_split.js");
|
|
2393
|
+
/* harmony import */ var _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./match_faces/match_faces_backend_exception */ "./src/match_faces/match_faces_backend_exception.js");
|
|
2394
|
+
/* harmony import */ var _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./match_faces/match_faces_config */ "./src/match_faces/match_faces_config.js");
|
|
2395
|
+
/* harmony import */ var _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./match_faces/match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2396
|
+
/* harmony import */ var _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./match_faces/match_faces_detection */ "./src/match_faces/match_faces_detection.js");
|
|
2397
|
+
/* harmony import */ var _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./match_faces/match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2398
|
+
/* harmony import */ var _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./match_faces/match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2399
|
+
/* harmony import */ var _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./match_faces/match_faces_request */ "./src/match_faces/match_faces_request.js");
|
|
2400
|
+
/* harmony import */ var _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./match_faces/match_faces_response */ "./src/match_faces/match_faces_response.js");
|
|
2401
|
+
/* harmony import */ var _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./person_database/edit_group_persons_request */ "./src/person_database/edit_group_persons_request.js");
|
|
2402
|
+
/* harmony import */ var _person_database_image_upload__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./person_database/image_upload */ "./src/person_database/image_upload.js");
|
|
2403
|
+
/* harmony import */ var _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./person_database/pageable_item_list */ "./src/person_database/pageable_item_list.js");
|
|
2404
|
+
/* harmony import */ var _person_database_person_database__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./person_database/person_database */ "./src/person_database/person_database.js");
|
|
2405
|
+
/* harmony import */ var _person_database_person_group__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./person_database/person_group */ "./src/person_database/person_group.js");
|
|
2406
|
+
/* harmony import */ var _person_database_person_image__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./person_database/person_image */ "./src/person_database/person_image.js");
|
|
2407
|
+
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./person_database/person */ "./src/person_database/person.js");
|
|
2408
|
+
/* harmony import */ var _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./person_database/search_person_detection */ "./src/person_database/search_person_detection.js");
|
|
2409
|
+
/* harmony import */ var _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./person_database/search_person_image */ "./src/person_database/search_person_image.js");
|
|
2410
|
+
/* harmony import */ var _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./person_database/search_person_request */ "./src/person_database/search_person_request.js");
|
|
2411
|
+
/* harmony import */ var _person_database_search_person_filter__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./person_database/search_person_filter */ "./src/person_database/search_person_filter.js");
|
|
2412
|
+
/* harmony import */ var _person_database_search_person__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./person_database/search_person */ "./src/person_database/search_person.js");
|
|
2415
2413
|
|
|
2416
2414
|
|
|
2417
2415
|
|
|
@@ -2474,8 +2472,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2474
2472
|
|
|
2475
2473
|
|
|
2476
2474
|
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
2475
|
;
|
|
2480
2476
|
|
|
2481
2477
|
|
|
@@ -2503,6 +2499,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2503
2499
|
|
|
2504
2500
|
|
|
2505
2501
|
|
|
2502
|
+
|
|
2506
2503
|
class FaceSDK {
|
|
2507
2504
|
static get instance() { return FaceSDK._instance }
|
|
2508
2505
|
static _instance = new FaceSDK()
|
|
@@ -2568,7 +2565,7 @@ class FaceSDK {
|
|
|
2568
2565
|
}
|
|
2569
2566
|
|
|
2570
2567
|
get personDatabase() { return this._personDatabase }
|
|
2571
|
-
_personDatabase = new
|
|
2568
|
+
_personDatabase = new _person_database_person_database__WEBPACK_IMPORTED_MODULE_59__.PersonDatabase()
|
|
2572
2569
|
|
|
2573
2570
|
async isInitialized() {
|
|
2574
2571
|
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("isInitialized", [])
|
|
@@ -2604,15 +2601,15 @@ class FaceSDK {
|
|
|
2604
2601
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(options?.cameraSwitchCallback)
|
|
2605
2602
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(options?.notificationCompletion)
|
|
2606
2603
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startLiveness", [options?.config])
|
|
2607
|
-
return
|
|
2604
|
+
return _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_40__.LivenessResponse.fromJson(JSON.parse(response))
|
|
2608
2605
|
}
|
|
2609
2606
|
|
|
2610
2607
|
async startEnrollment(config, options) {
|
|
2611
2608
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(options?.cameraSwitchCallback)
|
|
2612
2609
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(options?.notificationCompletion)
|
|
2613
2610
|
var response = JSON.parse(await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startEnrollment", [config]))
|
|
2614
|
-
var lr =
|
|
2615
|
-
var er =
|
|
2611
|
+
var lr = _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_40__.LivenessResponse.fromJson(response["livenessResponse"]);
|
|
2612
|
+
var er = _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_42__.EnrollmentResponse.fromJson(response["enrollmentResponse"]);
|
|
2616
2613
|
return [lr, er];
|
|
2617
2614
|
}
|
|
2618
2615
|
|
|
@@ -2620,28 +2617,23 @@ class FaceSDK {
|
|
|
2620
2617
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(options?.cameraSwitchCallback)
|
|
2621
2618
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(options?.notificationCompletion)
|
|
2622
2619
|
var response = JSON.parse(await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startVerification", [config]))
|
|
2623
|
-
var lr =
|
|
2624
|
-
var er =
|
|
2620
|
+
var lr = _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_40__.LivenessResponse.fromJson(response["livenessResponse"]);
|
|
2621
|
+
var er = _liveness_verification_response__WEBPACK_IMPORTED_MODULE_44__.VerificationResponse.fromJson(response["verificationResponse"]);
|
|
2625
2622
|
return [lr, er];
|
|
2626
2623
|
}
|
|
2627
2624
|
|
|
2628
|
-
async enrollWithTrustedPhoto(request) {
|
|
2629
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("enrollWithTrustedPhoto", [request])
|
|
2630
|
-
return _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__.EnrollmentResponse.fromJson(JSON.parse(response));
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
2625
|
stopLiveness() {
|
|
2634
2626
|
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopLiveness", [])
|
|
2635
2627
|
}
|
|
2636
2628
|
|
|
2637
2629
|
async matchFaces(request, options) {
|
|
2638
2630
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("matchFaces", [request, options?.config])
|
|
2639
|
-
return
|
|
2631
|
+
return _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_55__.MatchFacesResponse.fromJson(JSON.parse(response))
|
|
2640
2632
|
}
|
|
2641
2633
|
|
|
2642
2634
|
async splitComparedFaces(facesPairs, similarityThreshold) {
|
|
2643
2635
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("splitComparedFaces", [facesPairs, similarityThreshold])
|
|
2644
|
-
return
|
|
2636
|
+
return _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_47__.ComparedFacesSplit.fromJson(JSON.parse(response))
|
|
2645
2637
|
}
|
|
2646
2638
|
|
|
2647
2639
|
async detectFaces(request) {
|
|
@@ -3018,6 +3010,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3018
3010
|
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
3019
3011
|
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
3020
3012
|
/* harmony import */ var _liveness_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./liveness_config */ "./src/liveness/liveness_config.js");
|
|
3013
|
+
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../person_database/person */ "./src/person_database/person.js");
|
|
3014
|
+
/* harmony import */ var _person_database_search_person_filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../person_database/search_person_filter */ "./src/person_database/search_person_filter.js");
|
|
3015
|
+
|
|
3016
|
+
|
|
3021
3017
|
|
|
3022
3018
|
|
|
3023
3019
|
|
|
@@ -3039,10 +3035,8 @@ class EnrollmentConfig {
|
|
|
3039
3035
|
tag
|
|
3040
3036
|
skipStep
|
|
3041
3037
|
metadata
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
checkDuplicatesEnabled
|
|
3045
|
-
duplicatesThreshold
|
|
3038
|
+
person
|
|
3039
|
+
searchFilter
|
|
3046
3040
|
|
|
3047
3041
|
constructor(options) {
|
|
3048
3042
|
this.copyright = options?.copyright ?? true
|
|
@@ -3061,10 +3055,8 @@ class EnrollmentConfig {
|
|
|
3061
3055
|
this.tag = options?.tag
|
|
3062
3056
|
this.skipStep = options?.skipStep ?? []
|
|
3063
3057
|
this.metadata = options?.metadata
|
|
3064
|
-
this.
|
|
3065
|
-
this.
|
|
3066
|
-
this.checkDuplicatesEnabled = options?.checkDuplicatesEnabled
|
|
3067
|
-
this.duplicatesThreshold = options?.duplicatesThreshold
|
|
3058
|
+
this.person = _person_database_person__WEBPACK_IMPORTED_MODULE_3__.Person.fromJson(options?.person)
|
|
3059
|
+
this.searchFilter = _person_database_search_person_filter__WEBPACK_IMPORTED_MODULE_4__.SearchPersonFilter.fromJson(options?.searchFilter)
|
|
3068
3060
|
}
|
|
3069
3061
|
|
|
3070
3062
|
static fromJson(jsonObject) {
|
|
@@ -3087,10 +3079,8 @@ class EnrollmentConfig {
|
|
|
3087
3079
|
result.tag = jsonObject["tag"]
|
|
3088
3080
|
result.skipStep = jsonObject["skipStep"]
|
|
3089
3081
|
result.metadata = jsonObject["metadata"]
|
|
3090
|
-
result.
|
|
3091
|
-
result.
|
|
3092
|
-
result.checkDuplicatesEnabled = jsonObject["checkDuplicatesEnabled"]
|
|
3093
|
-
result.duplicatesThreshold = jsonObject["duplicatesThreshold"]
|
|
3082
|
+
result.person = _person_database_person__WEBPACK_IMPORTED_MODULE_3__.Person.fromJson(jsonObject["person"])
|
|
3083
|
+
result.searchFilter = _person_database_search_person_filter__WEBPACK_IMPORTED_MODULE_4__.SearchPersonFilter.fromJson(jsonObject["searchFilter"])
|
|
3094
3084
|
|
|
3095
3085
|
return result
|
|
3096
3086
|
}
|
|
@@ -3113,63 +3103,8 @@ class EnrollmentConfig {
|
|
|
3113
3103
|
"tag": this.tag,
|
|
3114
3104
|
"skipStep": this.skipStep,
|
|
3115
3105
|
"metadata": this.metadata,
|
|
3116
|
-
"
|
|
3117
|
-
"
|
|
3118
|
-
"checkDuplicatesEnabled": this.checkDuplicatesEnabled,
|
|
3119
|
-
"duplicatesThreshold": this.duplicatesThreshold,
|
|
3120
|
-
}
|
|
3121
|
-
}
|
|
3122
|
-
}
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
/***/ },
|
|
3126
|
-
|
|
3127
|
-
/***/ "./src/liveness/enrollment_request.js"
|
|
3128
|
-
/*!********************************************!*\
|
|
3129
|
-
!*** ./src/liveness/enrollment_request.js ***!
|
|
3130
|
-
\********************************************/
|
|
3131
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3132
|
-
|
|
3133
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3134
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3135
|
-
/* harmony export */ EnrollmentRequest: () => (/* binding */ EnrollmentRequest)
|
|
3136
|
-
/* harmony export */ });
|
|
3137
|
-
class EnrollmentRequest {
|
|
3138
|
-
externalId
|
|
3139
|
-
groupId
|
|
3140
|
-
trustedImage
|
|
3141
|
-
trustedImageUrl
|
|
3142
|
-
|
|
3143
|
-
static withImage(externalId, trustedImage, options) {
|
|
3144
|
-
this.externalId = externalId
|
|
3145
|
-
this.trustedImage = trustedImage
|
|
3146
|
-
this.groupId = options?.groupId
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
|
-
static withImageUrl(externalId, trustedImageUrl, options) {
|
|
3150
|
-
this.externalId = externalId
|
|
3151
|
-
this.trustedImageUrl = trustedImageUrl
|
|
3152
|
-
this.groupId = options?.groupId
|
|
3153
|
-
}
|
|
3154
|
-
|
|
3155
|
-
static fromJson(jsonObject) {
|
|
3156
|
-
if (jsonObject == null) return null
|
|
3157
|
-
const result = new EnrollmentRequest()
|
|
3158
|
-
|
|
3159
|
-
result.externalId = jsonObject["externalId"]
|
|
3160
|
-
result.groupId = jsonObject["groupId"]
|
|
3161
|
-
result.trustedImage = jsonObject["trustedImage"]
|
|
3162
|
-
result.trustedImageUrl = jsonObject["trustedImageUrl"]
|
|
3163
|
-
|
|
3164
|
-
return result
|
|
3165
|
-
}
|
|
3166
|
-
|
|
3167
|
-
toJson() {
|
|
3168
|
-
return {
|
|
3169
|
-
"externalId": this.externalId,
|
|
3170
|
-
"groupId": this.groupId,
|
|
3171
|
-
"trustedImage": this.trustedImage,
|
|
3172
|
-
"trustedImageUrl": this.trustedImageUrl,
|
|
3106
|
+
"person": this.person?.toJson(),
|
|
3107
|
+
"searchFilter": this.searchFilter?.toJson(),
|
|
3173
3108
|
}
|
|
3174
3109
|
}
|
|
3175
3110
|
}
|
|
@@ -3187,65 +3122,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3187
3122
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3188
3123
|
/* harmony export */ EnrollmentResponse: () => (/* binding */ EnrollmentResponse)
|
|
3189
3124
|
/* harmony export */ });
|
|
3190
|
-
/* harmony import */ var
|
|
3125
|
+
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../person_database/person */ "./src/person_database/person.js");
|
|
3126
|
+
/* harmony import */ var _person_database_search_person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../person_database/search_person */ "./src/person_database/search_person.js");
|
|
3127
|
+
|
|
3191
3128
|
|
|
3192
3129
|
|
|
3193
3130
|
class EnrollmentResponse {
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3131
|
+
enrolled
|
|
3132
|
+
person
|
|
3133
|
+
searchPersons
|
|
3197
3134
|
|
|
3198
3135
|
static fromJson(jsonObject) {
|
|
3199
3136
|
if (jsonObject == null) return null
|
|
3200
3137
|
const result = new EnrollmentResponse()
|
|
3201
3138
|
|
|
3202
|
-
result.
|
|
3203
|
-
result.
|
|
3204
|
-
result.
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
toJson() {
|
|
3210
|
-
return {
|
|
3211
|
-
"personId": this.personId,
|
|
3212
|
-
"externalId": this.externalId,
|
|
3213
|
-
"error": this.error?.toJson(),
|
|
3214
|
-
}
|
|
3215
|
-
}
|
|
3216
|
-
}
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
/***/ },
|
|
3220
|
-
|
|
3221
|
-
/***/ "./src/liveness/error_response.js"
|
|
3222
|
-
/*!****************************************!*\
|
|
3223
|
-
!*** ./src/liveness/error_response.js ***!
|
|
3224
|
-
\****************************************/
|
|
3225
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3226
|
-
|
|
3227
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3228
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3229
|
-
/* harmony export */ ErrorResponse: () => (/* binding */ ErrorResponse)
|
|
3230
|
-
/* harmony export */ });
|
|
3231
|
-
class ErrorResponse {
|
|
3232
|
-
code
|
|
3233
|
-
message
|
|
3234
|
-
|
|
3235
|
-
static fromJson(jsonObject) {
|
|
3236
|
-
if (jsonObject == null) return null
|
|
3237
|
-
const result = new ErrorResponse()
|
|
3238
|
-
|
|
3239
|
-
result.code = jsonObject["code"]
|
|
3240
|
-
result.message = jsonObject["message"]
|
|
3139
|
+
result.enrolled = jsonObject["enrolled"]
|
|
3140
|
+
result.person = _person_database_person__WEBPACK_IMPORTED_MODULE_0__.Person.fromJson(jsonObject["person"])
|
|
3141
|
+
result.searchPersons = []
|
|
3142
|
+
if (jsonObject["searchPersons"] != null)
|
|
3143
|
+
for (const item of jsonObject["searchPersons"])
|
|
3144
|
+
result.searchPersons.push(_person_database_search_person__WEBPACK_IMPORTED_MODULE_1__.SearchPerson.fromJson(item))
|
|
3241
3145
|
|
|
3242
3146
|
return result
|
|
3243
3147
|
}
|
|
3244
3148
|
|
|
3245
3149
|
toJson() {
|
|
3246
3150
|
return {
|
|
3247
|
-
"
|
|
3248
|
-
"
|
|
3151
|
+
"enrolled": this.enrolled,
|
|
3152
|
+
"person": this.person?.toJson(),
|
|
3153
|
+
"searchPersons": this.searchPersons?.map(e => e.toJson()),
|
|
3249
3154
|
}
|
|
3250
3155
|
}
|
|
3251
3156
|
}
|
|
@@ -3493,9 +3398,9 @@ const LivenessErrorCode = {
|
|
|
3493
3398
|
PROCESSING_FRAME_FAILED: 7,
|
|
3494
3399
|
APPLICATION_INACTIVE: 8,
|
|
3495
3400
|
BAD_FACE_QUALITY: 9,
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3401
|
+
CAMERA_NOT_AVAILABLE: 10,
|
|
3402
|
+
CAMERA_NO_PERMISSION: 11,
|
|
3403
|
+
BAD_FRAME_SIZE: 12,
|
|
3499
3404
|
CONTEXT_IS_NULL: 13,
|
|
3500
3405
|
IN_PROGRESS_ALREADY: 14,
|
|
3501
3406
|
ZOOM_NOT_SUPPORTED: 15,
|
|
@@ -3653,7 +3558,7 @@ class VerificationConfig {
|
|
|
3653
3558
|
skipStep
|
|
3654
3559
|
metadata
|
|
3655
3560
|
personId
|
|
3656
|
-
|
|
3561
|
+
externalId
|
|
3657
3562
|
threshold
|
|
3658
3563
|
|
|
3659
3564
|
constructor(options) {
|
|
@@ -3674,10 +3579,22 @@ class VerificationConfig {
|
|
|
3674
3579
|
this.skipStep = options?.skipStep ?? []
|
|
3675
3580
|
this.metadata = options?.metadata
|
|
3676
3581
|
this.personId = options?.personId
|
|
3677
|
-
this.
|
|
3582
|
+
this.externalId = options?.externalId
|
|
3678
3583
|
this.threshold = options?.threshold
|
|
3679
3584
|
}
|
|
3680
3585
|
|
|
3586
|
+
static withPersonId(personId, options) {
|
|
3587
|
+
const result = new VerificationConfig(options)
|
|
3588
|
+
result.personId = personId
|
|
3589
|
+
return result
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3592
|
+
static withExternalId(externalId, options) {
|
|
3593
|
+
const result = new VerificationConfig(options)
|
|
3594
|
+
result.externalId = externalId
|
|
3595
|
+
return result
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3681
3598
|
static fromJson(jsonObject) {
|
|
3682
3599
|
if (jsonObject == null) return null
|
|
3683
3600
|
const result = new VerificationConfig()
|
|
@@ -3699,7 +3616,7 @@ class VerificationConfig {
|
|
|
3699
3616
|
result.skipStep = jsonObject["skipStep"]
|
|
3700
3617
|
result.metadata = jsonObject["metadata"]
|
|
3701
3618
|
result.personId = jsonObject["personId"]
|
|
3702
|
-
result.
|
|
3619
|
+
result.externalId = jsonObject["externalId"]
|
|
3703
3620
|
result.threshold = jsonObject["threshold"]
|
|
3704
3621
|
|
|
3705
3622
|
return result
|
|
@@ -3724,7 +3641,7 @@ class VerificationConfig {
|
|
|
3724
3641
|
"skipStep": this.skipStep,
|
|
3725
3642
|
"metadata": this.metadata,
|
|
3726
3643
|
"personId": this.personId,
|
|
3727
|
-
"
|
|
3644
|
+
"externalId": this.externalId,
|
|
3728
3645
|
"threshold": this.threshold,
|
|
3729
3646
|
}
|
|
3730
3647
|
}
|
|
@@ -3733,42 +3650,34 @@ class VerificationConfig {
|
|
|
3733
3650
|
|
|
3734
3651
|
/***/ },
|
|
3735
3652
|
|
|
3736
|
-
/***/ "./src/liveness/
|
|
3737
|
-
|
|
3738
|
-
!*** ./src/liveness/
|
|
3739
|
-
|
|
3653
|
+
/***/ "./src/liveness/verification_match_response.js"
|
|
3654
|
+
/*!*****************************************************!*\
|
|
3655
|
+
!*** ./src/liveness/verification_match_response.js ***!
|
|
3656
|
+
\*****************************************************/
|
|
3740
3657
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3741
3658
|
|
|
3742
3659
|
__webpack_require__.r(__webpack_exports__);
|
|
3743
3660
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3744
|
-
/* harmony export */
|
|
3661
|
+
/* harmony export */ VerificationMatchResponse: () => (/* binding */ VerificationMatchResponse)
|
|
3745
3662
|
/* harmony export */ });
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
class VerificationResponse {
|
|
3752
|
-
passed
|
|
3753
|
-
match
|
|
3754
|
-
error
|
|
3663
|
+
class VerificationMatchResponse {
|
|
3664
|
+
verified
|
|
3665
|
+
similarity
|
|
3755
3666
|
|
|
3756
3667
|
static fromJson(jsonObject) {
|
|
3757
3668
|
if (jsonObject == null) return null
|
|
3758
|
-
const result = new
|
|
3669
|
+
const result = new VerificationMatchResponse()
|
|
3759
3670
|
|
|
3760
|
-
result.
|
|
3761
|
-
result.
|
|
3762
|
-
result.error = _error_response__WEBPACK_IMPORTED_MODULE_1__.ErrorResponse.fromJson(jsonObject["error"])
|
|
3671
|
+
result.verified = jsonObject["verified"]
|
|
3672
|
+
result.similarity = jsonObject["similarity"]
|
|
3763
3673
|
|
|
3764
3674
|
return result
|
|
3765
3675
|
}
|
|
3766
3676
|
|
|
3767
3677
|
toJson() {
|
|
3768
3678
|
return {
|
|
3769
|
-
"
|
|
3770
|
-
"
|
|
3771
|
-
"error": this.error?.toJson(),
|
|
3679
|
+
"verified": this.verified,
|
|
3680
|
+
"similarity": this.similarity,
|
|
3772
3681
|
}
|
|
3773
3682
|
}
|
|
3774
3683
|
}
|
|
@@ -3776,34 +3685,42 @@ class VerificationResponse {
|
|
|
3776
3685
|
|
|
3777
3686
|
/***/ },
|
|
3778
3687
|
|
|
3779
|
-
/***/ "./src/liveness/
|
|
3688
|
+
/***/ "./src/liveness/verification_response.js"
|
|
3780
3689
|
/*!***********************************************!*\
|
|
3781
|
-
!*** ./src/liveness/
|
|
3690
|
+
!*** ./src/liveness/verification_response.js ***!
|
|
3782
3691
|
\***********************************************/
|
|
3783
3692
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3784
3693
|
|
|
3785
3694
|
__webpack_require__.r(__webpack_exports__);
|
|
3786
3695
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3787
|
-
/* harmony export */
|
|
3696
|
+
/* harmony export */ VerificationResponse: () => (/* binding */ VerificationResponse)
|
|
3788
3697
|
/* harmony export */ });
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3698
|
+
/* harmony import */ var _verification_match_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./verification_match_response */ "./src/liveness/verification_match_response.js");
|
|
3699
|
+
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../person_database/person */ "./src/person_database/person.js");
|
|
3700
|
+
|
|
3701
|
+
|
|
3702
|
+
|
|
3703
|
+
class VerificationResponse {
|
|
3704
|
+
verified
|
|
3705
|
+
person
|
|
3706
|
+
match
|
|
3792
3707
|
|
|
3793
3708
|
static fromJson(jsonObject) {
|
|
3794
3709
|
if (jsonObject == null) return null
|
|
3795
|
-
const result = new
|
|
3710
|
+
const result = new VerificationResponse()
|
|
3796
3711
|
|
|
3797
|
-
result.
|
|
3798
|
-
result.
|
|
3712
|
+
result.verified = jsonObject["verified"]
|
|
3713
|
+
result.person = _person_database_person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson(jsonObject["person"])
|
|
3714
|
+
result.match = _verification_match_response__WEBPACK_IMPORTED_MODULE_0__.VerificationMatchResponse.fromJson(jsonObject["match"])
|
|
3799
3715
|
|
|
3800
3716
|
return result
|
|
3801
3717
|
}
|
|
3802
3718
|
|
|
3803
3719
|
toJson() {
|
|
3804
3720
|
return {
|
|
3805
|
-
"
|
|
3806
|
-
"
|
|
3721
|
+
"verified": this.verified,
|
|
3722
|
+
"person": this.person?.toJson(),
|
|
3723
|
+
"match": this.match?.toJson(),
|
|
3807
3724
|
}
|
|
3808
3725
|
}
|
|
3809
3726
|
}
|
|
@@ -4481,35 +4398,44 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4481
4398
|
|
|
4482
4399
|
|
|
4483
4400
|
class Person {
|
|
4401
|
+
id
|
|
4402
|
+
createdAt
|
|
4484
4403
|
name
|
|
4485
4404
|
updatedAt
|
|
4486
4405
|
groups
|
|
4487
|
-
id
|
|
4488
4406
|
metadata
|
|
4489
|
-
|
|
4407
|
+
externalId
|
|
4408
|
+
expireAt
|
|
4409
|
+
ttl
|
|
4490
4410
|
|
|
4491
4411
|
static fromJson(jsonObject) {
|
|
4492
4412
|
if (jsonObject == null) return null
|
|
4493
4413
|
var result = new Person()
|
|
4494
4414
|
|
|
4415
|
+
result.id = jsonObject["id"]
|
|
4416
|
+
result.createdAt = jsonObject["createdAt"] === null ? null : new Date(jsonObject["createdAt"]);
|
|
4495
4417
|
result.name = jsonObject["name"]
|
|
4496
|
-
result.updatedAt = new Date(jsonObject["updatedAt"])
|
|
4418
|
+
result.updatedAt = jsonObject["updatedAt"] === null ? null : new Date(jsonObject["updatedAt"]);
|
|
4497
4419
|
result.groups = jsonObject["groups"]
|
|
4498
|
-
result.id = jsonObject["id"]
|
|
4499
4420
|
result.metadata = jsonObject["metadata"]
|
|
4500
|
-
result.
|
|
4421
|
+
result.externalId = jsonObject["externalId"]
|
|
4422
|
+
result.expireAt = jsonObject["expireAt"] === null ? null : new Date(jsonObject["expireAt"]);
|
|
4423
|
+
result.ttl = jsonObject["ttl"]
|
|
4501
4424
|
|
|
4502
4425
|
return result
|
|
4503
4426
|
}
|
|
4504
4427
|
|
|
4505
4428
|
toJson() {
|
|
4506
4429
|
return {
|
|
4430
|
+
"id": this.id,
|
|
4431
|
+
"createdAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.createdAt),
|
|
4507
4432
|
"name": this.name,
|
|
4508
4433
|
"updatedAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.updatedAt),
|
|
4509
4434
|
"groups": this.groups,
|
|
4510
|
-
"id": this.id,
|
|
4511
4435
|
"metadata": this.metadata,
|
|
4512
|
-
"
|
|
4436
|
+
"externalId": this.externalId,
|
|
4437
|
+
"expireAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.expireAt),
|
|
4438
|
+
"ttl": this.ttl,
|
|
4513
4439
|
}
|
|
4514
4440
|
}
|
|
4515
4441
|
}
|
|
@@ -4802,6 +4728,9 @@ class SearchPerson {
|
|
|
4802
4728
|
id
|
|
4803
4729
|
metadata
|
|
4804
4730
|
createdAt
|
|
4731
|
+
externalId
|
|
4732
|
+
expireAt
|
|
4733
|
+
ttl
|
|
4805
4734
|
|
|
4806
4735
|
static fromJson(jsonObject) {
|
|
4807
4736
|
if (jsonObject == null) return null
|
|
@@ -4817,6 +4746,9 @@ class SearchPerson {
|
|
|
4817
4746
|
result.id = jsonObject["id"]
|
|
4818
4747
|
result.metadata = jsonObject["metadata"]
|
|
4819
4748
|
result.createdAt = new Date(jsonObject["createdAt"])
|
|
4749
|
+
result.externalId = jsonObject["externalId"]
|
|
4750
|
+
result.expireAt = new Date(jsonObject["expireAt"])
|
|
4751
|
+
result.ttl = jsonObject["ttl"]
|
|
4820
4752
|
|
|
4821
4753
|
return result
|
|
4822
4754
|
}
|
|
@@ -4831,6 +4763,9 @@ class SearchPerson {
|
|
|
4831
4763
|
"id": this.id,
|
|
4832
4764
|
"metadata": this.metadata,
|
|
4833
4765
|
"createdAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.createdAt),
|
|
4766
|
+
"externalId": this.externalId,
|
|
4767
|
+
"expireAt": (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.dateToString)(this.expireAt),
|
|
4768
|
+
"ttl": this.ttl,
|
|
4834
4769
|
}
|
|
4835
4770
|
}
|
|
4836
4771
|
}
|
|
@@ -4883,6 +4818,64 @@ class SearchPersonDetection {
|
|
|
4883
4818
|
}
|
|
4884
4819
|
|
|
4885
4820
|
|
|
4821
|
+
/***/ },
|
|
4822
|
+
|
|
4823
|
+
/***/ "./src/person_database/search_person_filter.js"
|
|
4824
|
+
/*!*****************************************************!*\
|
|
4825
|
+
!*** ./src/person_database/search_person_filter.js ***!
|
|
4826
|
+
\*****************************************************/
|
|
4827
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
4828
|
+
|
|
4829
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4830
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4831
|
+
/* harmony export */ SearchPersonFilter: () => (/* binding */ SearchPersonFilter)
|
|
4832
|
+
/* harmony export */ });
|
|
4833
|
+
class SearchPersonFilter {
|
|
4834
|
+
groups
|
|
4835
|
+
threshold
|
|
4836
|
+
limit
|
|
4837
|
+
fieldName
|
|
4838
|
+
fieldValues
|
|
4839
|
+
exclude
|
|
4840
|
+
|
|
4841
|
+
constructor(options) {
|
|
4842
|
+
this.groups = options?.groups ?? []
|
|
4843
|
+
this.threshold = options?.threshold ?? 0
|
|
4844
|
+
this.limit = options?.limit ?? 1
|
|
4845
|
+
}
|
|
4846
|
+
|
|
4847
|
+
filterField(fieldName, fieldValues, options) {
|
|
4848
|
+
this.fieldName = fieldName
|
|
4849
|
+
this.fieldValues = fieldValues
|
|
4850
|
+
this.exclude = options?.exclude ?? false
|
|
4851
|
+
}
|
|
4852
|
+
|
|
4853
|
+
static fromJson(jsonObject) {
|
|
4854
|
+
if (jsonObject == null) return null
|
|
4855
|
+
var result = new SearchPersonFilter({
|
|
4856
|
+
groups: jsonObject["groups"],
|
|
4857
|
+
threshold: jsonObject["threshold"],
|
|
4858
|
+
limit: jsonObject["limit"]
|
|
4859
|
+
})
|
|
4860
|
+
result.fieldName = jsonObject["fieldName"];
|
|
4861
|
+
result.fieldValues = jsonObject["fieldValues"];
|
|
4862
|
+
result.exclude = jsonObject["exclude"];
|
|
4863
|
+
return result
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4866
|
+
toJson() {
|
|
4867
|
+
return {
|
|
4868
|
+
"groups": this.groups,
|
|
4869
|
+
"threshold": this.threshold,
|
|
4870
|
+
"limit": this.limit,
|
|
4871
|
+
"fieldName": this.fieldName,
|
|
4872
|
+
"fieldValues": this.fieldValues,
|
|
4873
|
+
"exclude": this.exclude,
|
|
4874
|
+
}
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
|
|
4878
|
+
|
|
4886
4879
|
/***/ },
|
|
4887
4880
|
|
|
4888
4881
|
/***/ "./src/person_database/search_person_image.js"
|