@regulaforensics/face-sdk 8.3.1174-rc → 8.3.1176-nightly
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/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/README.md +1 -1
- package/examples/capacitor/package.json +2 -2
- package/examples/capacitor/scripts/android.sh +3 -1
- package/examples/capacitor/scripts/ios.sh +3 -1
- package/examples/capacitor/scripts/setup.sh +2 -0
- package/examples/ionic/README.md +1 -1
- package/examples/ionic/config.xml +0 -2
- package/examples/ionic/index.tsx +1 -1
- package/examples/ionic/package-lock.json +2360 -1733
- package/examples/ionic/package.json +21 -25
- package/examples/ionic/scripts/android.sh +4 -1
- package/examples/ionic/scripts/ios.sh +4 -1
- package/examples/ionic/scripts/setup.sh +2 -0
- package/examples/ionic/tsconfig.json +1 -1
- package/examples/react_native/README.md +1 -1
- package/examples/react_native/package.json +2 -2
- package/examples/react_native/scripts/android.sh +5 -5
- package/examples/react_native/scripts/ios.sh +5 -5
- package/examples/react_native/scripts/setup.sh +2 -0
- package/ios/Config.swift +107 -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 +135 -57
- package/test/package-lock.json +2 -5
- package/test/test.tsx +183 -60
- package/www/capacitor/customization/customization_images.js +48 -0
- package/www/capacitor/customization/font.js +3 -3
- package/www/capacitor/detect_faces/detect_faces_config.js +5 -5
- package/www/capacitor/detect_faces/detect_faces_request.js +2 -2
- package/www/capacitor/face_capture/face_capture_config.js +14 -14
- package/www/capacitor/image_params/output_image_crop.js +4 -4
- package/www/capacitor/image_params/output_image_params.js +3 -3
- package/www/capacitor/image_quality/image_quality_characteristic.js +4 -4
- package/www/capacitor/image_quality/image_quality_group.js +2 -2
- package/www/capacitor/index.js +153 -32
- package/www/capacitor/init/init_config.js +2 -2
- package/www/capacitor/internal/bridge.js +2 -2
- package/www/capacitor/internal/cordova.js +2 -2
- package/www/capacitor/liveness/enrollment_config.js +102 -0
- package/www/capacitor/liveness/enrollment_request.js +39 -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 +18 -17
- package/www/capacitor/liveness/liveness_exception.js +7 -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/capacitor/match_faces/match_faces_config.js +3 -3
- package/www/capacitor/match_faces/match_faces_image.js +2 -2
- package/www/capacitor/match_faces/match_faces_request.js +4 -4
- package/www/capacitor/person_database/edit_group_persons_request.js +3 -3
- package/www/capacitor/person_database/person_database.js +4 -4
- package/www/capacitor/person_database/search_person_request.js +7 -7
- package/www/cordova.js +703 -173
- package/www/react-native/customization/customization_images.js +48 -0
- package/www/react-native/customization/font.js +3 -3
- package/www/react-native/detect_faces/detect_faces_config.js +5 -5
- package/www/react-native/detect_faces/detect_faces_request.js +2 -2
- package/www/react-native/face_capture/face_capture_config.js +14 -14
- package/www/react-native/image_params/output_image_crop.js +4 -4
- package/www/react-native/image_params/output_image_params.js +3 -3
- package/www/react-native/image_quality/image_quality_characteristic.js +4 -4
- package/www/react-native/image_quality/image_quality_group.js +2 -2
- package/www/react-native/index.js +153 -32
- package/www/react-native/init/init_config.js +2 -2
- package/www/react-native/internal/bridge.js +2 -2
- package/www/react-native/liveness/enrollment_config.js +102 -0
- package/www/react-native/liveness/enrollment_request.js +39 -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 +18 -17
- package/www/react-native/liveness/liveness_exception.js +7 -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/react-native/match_faces/match_faces_config.js +3 -3
- package/www/react-native/match_faces/match_faces_image.js +2 -2
- package/www/react-native/match_faces/match_faces_request.js +4 -4
- package/www/react-native/person_database/edit_group_persons_request.js +3 -3
- package/www/react-native/person_database/person_database.js +4 -4
- package/www/react-native/person_database/search_person_request.js +7 -7
- package/www/types/customization/customization_images.d.ts +6 -0
- package/www/types/customization/font.d.ts +1 -1
- package/www/types/detect_faces/detect_faces_config.d.ts +1 -1
- package/www/types/detect_faces/detect_faces_request.d.ts +1 -1
- package/www/types/face_capture/face_capture_config.d.ts +1 -1
- package/www/types/image_params/output_image_crop.d.ts +1 -1
- package/www/types/image_params/output_image_params.d.ts +1 -1
- package/www/types/image_quality/image_quality_group.d.ts +1 -1
- package/www/types/index.d.ts +137 -15
- package/www/types/init/init_config.d.ts +1 -1
- package/www/types/liveness/enrollment_config.d.ts +97 -0
- package/www/types/liveness/enrollment_request.d.ts +24 -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 +2 -1
- package/www/types/liveness/liveness_exception.d.ts +32 -2
- 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/types/match_faces/match_faces_config.d.ts +1 -1
- package/www/types/match_faces/match_faces_image.d.ts +1 -1
- package/www/types/match_faces/match_faces_request.d.ts +1 -1
- package/www/types/person_database/edit_group_persons_request.d.ts +1 -1
- package/www/types/person_database/person_database.d.ts +2 -2
- package/www/types/person_database/search_person_request.d.ts +1 -1
package/www/cordova.js
CHANGED
|
@@ -557,6 +557,42 @@ 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
|
+
|
|
590
|
+
_retryScreenHintCovering
|
|
591
|
+
set retryScreenHintCovering(val) {
|
|
592
|
+
this._retryScreenHintCovering = val
|
|
593
|
+
this._set({ "retryScreenHintCovering": val })
|
|
594
|
+
}
|
|
595
|
+
|
|
560
596
|
_processingScreenCloseButton
|
|
561
597
|
set processingScreenCloseButton(val) {
|
|
562
598
|
this._processingScreenCloseButton = val
|
|
@@ -584,6 +620,12 @@ class CustomizationImages {
|
|
|
584
620
|
result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
|
|
585
621
|
result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
|
|
586
622
|
result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
|
|
623
|
+
result._retryScreenHintBadSelfieQuality = jsonObject["retryScreenHintBadSelfieQuality"]
|
|
624
|
+
result._retryScreenHintCleanLens = jsonObject["retryScreenHintCleanLens"]
|
|
625
|
+
result._retryScreenHintAddIllumination = jsonObject["retryScreenHintAddIllumination"]
|
|
626
|
+
result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
|
|
627
|
+
result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
|
|
628
|
+
result._retryScreenHintCovering = jsonObject["retryScreenHintCovering"]
|
|
587
629
|
result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
|
|
588
630
|
result._successScreenImage = jsonObject["successScreenImage"]
|
|
589
631
|
|
|
@@ -604,6 +646,12 @@ class CustomizationImages {
|
|
|
604
646
|
"retryScreenHintEnvironment": this._retryScreenHintEnvironment,
|
|
605
647
|
"retryScreenHintSubject": this._retryScreenHintSubject,
|
|
606
648
|
"retryScreenHintGeo": this._retryScreenHintGeo,
|
|
649
|
+
"retryScreenHintBadSelfieQuality": this._retryScreenHintBadSelfieQuality,
|
|
650
|
+
"retryScreenHintCleanLens": this._retryScreenHintCleanLens,
|
|
651
|
+
"retryScreenHintAddIllumination": this._retryScreenHintAddIllumination,
|
|
652
|
+
"retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
|
|
653
|
+
"retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
|
|
654
|
+
"retryScreenHintCovering": this._retryScreenHintCovering,
|
|
607
655
|
"processingScreenCloseButton": this._processingScreenCloseButton,
|
|
608
656
|
"successScreenImage": this._successScreenImage,
|
|
609
657
|
}
|
|
@@ -639,10 +687,10 @@ class Font {
|
|
|
639
687
|
size
|
|
640
688
|
style
|
|
641
689
|
|
|
642
|
-
constructor(name,
|
|
690
|
+
constructor(name, options) {
|
|
643
691
|
this.name = name
|
|
644
|
-
this.size =
|
|
645
|
-
this.style =
|
|
692
|
+
this.size = options?.size
|
|
693
|
+
this.style = options?.style
|
|
646
694
|
}
|
|
647
695
|
|
|
648
696
|
static fromJson(jsonObject) {
|
|
@@ -895,12 +943,12 @@ class DetectFacesConfig {
|
|
|
895
943
|
outputImageParams
|
|
896
944
|
onlyCentralFace
|
|
897
945
|
|
|
898
|
-
constructor(
|
|
946
|
+
constructor(options) {
|
|
899
947
|
this.onlyCentralFace = false
|
|
900
|
-
this.attributes =
|
|
901
|
-
this.customQuality =
|
|
902
|
-
this.outputImageParams =
|
|
903
|
-
this.onlyCentralFace =
|
|
948
|
+
this.attributes = options?.attributes
|
|
949
|
+
this.customQuality = options?.customQuality
|
|
950
|
+
this.outputImageParams = options?.outputImageParams
|
|
951
|
+
this.onlyCentralFace = options?.onlyCentralFace ?? this.onlyCentralFace
|
|
904
952
|
}
|
|
905
953
|
|
|
906
954
|
static fromJson(jsonObject) {
|
|
@@ -1010,10 +1058,10 @@ class DetectFacesRequest {
|
|
|
1010
1058
|
configuration
|
|
1011
1059
|
tag
|
|
1012
1060
|
|
|
1013
|
-
constructor(image, configuration,
|
|
1061
|
+
constructor(image, configuration, options) {
|
|
1014
1062
|
this.image = image
|
|
1015
1063
|
this.configuration = configuration
|
|
1016
|
-
this.tag =
|
|
1064
|
+
this.tag = options?.tag
|
|
1017
1065
|
}
|
|
1018
1066
|
|
|
1019
1067
|
static qualityFull(image) {
|
|
@@ -1197,20 +1245,20 @@ class FaceCaptureConfig {
|
|
|
1197
1245
|
timeout
|
|
1198
1246
|
holdStillDuration
|
|
1199
1247
|
|
|
1200
|
-
constructor(
|
|
1201
|
-
this.copyright =
|
|
1202
|
-
this.cameraSwitchEnabled =
|
|
1203
|
-
this.closeButtonEnabled =
|
|
1204
|
-
this.torchButtonEnabled =
|
|
1205
|
-
this.vibrateOnSteps =
|
|
1206
|
-
this.detectOcclusion =
|
|
1207
|
-
this.showFaceAnimation =
|
|
1208
|
-
this.preventScreenRecording =
|
|
1209
|
-
this.cameraPositionIOS =
|
|
1210
|
-
this.cameraPositionAndroid =
|
|
1211
|
-
this.screenOrientation =
|
|
1212
|
-
this.timeout =
|
|
1213
|
-
this.holdStillDuration =
|
|
1248
|
+
constructor(options) {
|
|
1249
|
+
this.copyright = options?.copyright ?? true
|
|
1250
|
+
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
1251
|
+
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
1252
|
+
this.torchButtonEnabled = options?.torchButtonEnabled ?? true
|
|
1253
|
+
this.vibrateOnSteps = options?.vibrateOnSteps ?? true
|
|
1254
|
+
this.detectOcclusion = options?.detectOcclusion ?? true
|
|
1255
|
+
this.showFaceAnimation = options?.showFaceAnimation ?? true
|
|
1256
|
+
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
1257
|
+
this.cameraPositionIOS = options?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
1258
|
+
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
1259
|
+
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
1260
|
+
this.timeout = options?.timeout
|
|
1261
|
+
this.holdStillDuration = options?.holdStillDuration
|
|
1214
1262
|
}
|
|
1215
1263
|
|
|
1216
1264
|
static fromJson(jsonObject) {
|
|
@@ -1408,11 +1456,11 @@ class OutputImageCrop {
|
|
|
1408
1456
|
padColor
|
|
1409
1457
|
returnOriginalRect
|
|
1410
1458
|
|
|
1411
|
-
constructor(type,
|
|
1459
|
+
constructor(type, options) {
|
|
1412
1460
|
this.type = type
|
|
1413
|
-
this.size =
|
|
1414
|
-
this.padColor =
|
|
1415
|
-
this.returnOriginalRect =
|
|
1461
|
+
this.size = options?.size
|
|
1462
|
+
this.padColor = options?.padColor
|
|
1463
|
+
this.returnOriginalRect = options?.returnOriginalRect ?? false
|
|
1416
1464
|
}
|
|
1417
1465
|
|
|
1418
1466
|
static fromJson(jsonObject) {
|
|
@@ -1464,9 +1512,9 @@ class OutputImageParams {
|
|
|
1464
1512
|
crop
|
|
1465
1513
|
backgroundColor
|
|
1466
1514
|
|
|
1467
|
-
constructor(
|
|
1468
|
-
this.crop =
|
|
1469
|
-
this.backgroundColor =
|
|
1515
|
+
constructor(options) {
|
|
1516
|
+
this.crop = options?.crop
|
|
1517
|
+
this.backgroundColor = options?.backgroundColor
|
|
1470
1518
|
}
|
|
1471
1519
|
|
|
1472
1520
|
static fromJson(jsonObject) {
|
|
@@ -1616,12 +1664,12 @@ class ImageQualityCharacteristic {
|
|
|
1616
1664
|
customRange
|
|
1617
1665
|
color
|
|
1618
1666
|
|
|
1619
|
-
static _create(name,
|
|
1667
|
+
static _create(name, options) {
|
|
1620
1668
|
var result = new ImageQualityCharacteristic()
|
|
1621
1669
|
result.characteristicName = name
|
|
1622
|
-
result.recommendedRange =
|
|
1623
|
-
result.customRange =
|
|
1624
|
-
result.color =
|
|
1670
|
+
result.recommendedRange = options?.recommended
|
|
1671
|
+
result.customRange = options?.custom
|
|
1672
|
+
result.color = options?.color
|
|
1625
1673
|
return result
|
|
1626
1674
|
}
|
|
1627
1675
|
|
|
@@ -2042,10 +2090,10 @@ class _Background {
|
|
|
2042
2090
|
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_1__.ImageQualityCharacteristic._create(_image_quality_characteristic_name__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristicName.OTHER_FACES)
|
|
2043
2091
|
}
|
|
2044
2092
|
|
|
2045
|
-
backgroundColorMatch(
|
|
2093
|
+
backgroundColorMatch(options) {
|
|
2046
2094
|
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_1__.ImageQualityCharacteristic._create(
|
|
2047
2095
|
_image_quality_characteristic_name__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristicName.BACKGROUND_COLOR_MATCH,
|
|
2048
|
-
{ color:
|
|
2096
|
+
{ color: options?.color }
|
|
2049
2097
|
)
|
|
2050
2098
|
}
|
|
2051
2099
|
|
|
@@ -2208,9 +2256,9 @@ const ImageQualityResultStatus = {
|
|
|
2208
2256
|
__webpack_require__.r(__webpack_exports__);
|
|
2209
2257
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2210
2258
|
/* 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 */
|
|
2259
|
+
/* harmony export */ ComparedFace: () => (/* reexport safe */ _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_47__.ComparedFace),
|
|
2260
|
+
/* harmony export */ ComparedFacesPair: () => (/* reexport safe */ _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_48__.ComparedFacesPair),
|
|
2261
|
+
/* harmony export */ ComparedFacesSplit: () => (/* reexport safe */ _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_49__.ComparedFacesSplit),
|
|
2214
2262
|
/* harmony export */ Customization: () => (/* reexport safe */ _customization_customization__WEBPACK_IMPORTED_MODULE_5__.Customization),
|
|
2215
2263
|
/* harmony export */ CustomizationColors: () => (/* reexport safe */ _customization_customization_colors__WEBPACK_IMPORTED_MODULE_2__.CustomizationColors),
|
|
2216
2264
|
/* harmony export */ CustomizationFonts: () => (/* reexport safe */ _customization_customization_fonts__WEBPACK_IMPORTED_MODULE_3__.CustomizationFonts),
|
|
@@ -2226,7 +2274,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2226
2274
|
/* harmony export */ DetectFacesRequest: () => (/* reexport safe */ _detect_faces_detect_faces_request__WEBPACK_IMPORTED_MODULE_18__.DetectFacesRequest),
|
|
2227
2275
|
/* harmony export */ DetectFacesResponse: () => (/* reexport safe */ _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__.DetectFacesResponse),
|
|
2228
2276
|
/* harmony export */ DetectFacesScenario: () => (/* reexport safe */ _detect_faces_detect_faces_scenario__WEBPACK_IMPORTED_MODULE_20__.DetectFacesScenario),
|
|
2229
|
-
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */
|
|
2277
|
+
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */ _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_58__.EditGroupPersonsRequest),
|
|
2278
|
+
/* harmony export */ EnrollmentConfig: () => (/* reexport safe */ _liveness_enrollment_config__WEBPACK_IMPORTED_MODULE_36__.EnrollmentConfig),
|
|
2279
|
+
/* harmony export */ EnrollmentRequest: () => (/* reexport safe */ _liveness_enrollment_request__WEBPACK_IMPORTED_MODULE_37__.EnrollmentRequest),
|
|
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),
|
|
2230
2282
|
/* harmony export */ FaceCaptureConfig: () => (/* reexport safe */ _face_capture_face_capture_config__WEBPACK_IMPORTED_MODULE_21__.FaceCaptureConfig),
|
|
2231
2283
|
/* harmony export */ FaceCaptureErrorCode: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureErrorCode),
|
|
2232
2284
|
/* harmony export */ FaceCaptureException: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureException),
|
|
@@ -2243,50 +2295,53 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2243
2295
|
/* harmony export */ ImageQualityResult: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResult),
|
|
2244
2296
|
/* harmony export */ ImageQualityResultStatus: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResultStatus),
|
|
2245
2297
|
/* harmony export */ ImageType: () => (/* reexport safe */ _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__.ImageType),
|
|
2246
|
-
/* harmony export */ ImageUpload: () => (/* reexport safe */
|
|
2298
|
+
/* harmony export */ ImageUpload: () => (/* reexport safe */ _person_database_image_upload__WEBPACK_IMPORTED_MODULE_59__.ImageUpload),
|
|
2247
2299
|
/* harmony export */ InitConfig: () => (/* reexport safe */ _init_init_config__WEBPACK_IMPORTED_MODULE_9__.InitConfig),
|
|
2248
2300
|
/* harmony export */ InitErrorCode: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitErrorCode),
|
|
2249
2301
|
/* harmony export */ InitException: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException),
|
|
2250
2302
|
/* harmony export */ LicenseException: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicenseException),
|
|
2251
2303
|
/* 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 */
|
|
2304
|
+
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_39__.LivenessBackendErrorCode),
|
|
2305
|
+
/* harmony export */ LivenessBackendException: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_39__.LivenessBackendException),
|
|
2306
|
+
/* harmony export */ LivenessConfig: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessConfig),
|
|
2307
|
+
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_40__.LivenessErrorCode),
|
|
2308
|
+
/* harmony export */ LivenessException: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_40__.LivenessException),
|
|
2309
|
+
/* harmony export */ LivenessNotification: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_42__.LivenessNotification),
|
|
2310
|
+
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_42__.LivenessProcessStatus),
|
|
2311
|
+
/* harmony export */ LivenessResponse: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse),
|
|
2312
|
+
/* harmony export */ LivenessSkipStep: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessSkipStep),
|
|
2313
|
+
/* harmony export */ LivenessStatus: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessStatus),
|
|
2314
|
+
/* harmony export */ LivenessType: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.LivenessType),
|
|
2315
|
+
/* harmony export */ MatchFacesBackendException: () => (/* reexport safe */ _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_50__.MatchFacesBackendException),
|
|
2316
|
+
/* harmony export */ MatchFacesConfig: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_51__.MatchFacesConfig),
|
|
2317
|
+
/* harmony export */ MatchFacesDetection: () => (/* reexport safe */ _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_53__.MatchFacesDetection),
|
|
2318
|
+
/* harmony export */ MatchFacesDetectionFace: () => (/* reexport safe */ _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_52__.MatchFacesDetectionFace),
|
|
2319
|
+
/* harmony export */ MatchFacesErrorCode: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_54__.MatchFacesErrorCode),
|
|
2320
|
+
/* harmony export */ MatchFacesException: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_54__.MatchFacesException),
|
|
2321
|
+
/* harmony export */ MatchFacesImage: () => (/* reexport safe */ _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_55__.MatchFacesImage),
|
|
2322
|
+
/* harmony export */ MatchFacesRequest: () => (/* reexport safe */ _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_56__.MatchFacesRequest),
|
|
2323
|
+
/* harmony export */ MatchFacesResponse: () => (/* reexport safe */ _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_57__.MatchFacesResponse),
|
|
2272
2324
|
/* harmony export */ OutputImageCrop: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCrop),
|
|
2273
2325
|
/* harmony export */ OutputImageCropAspectRatio: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCropAspectRatio),
|
|
2274
2326
|
/* 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 */
|
|
2327
|
+
/* harmony export */ PageableItemList: () => (/* reexport safe */ _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_60__.PageableItemList),
|
|
2328
|
+
/* harmony export */ Person: () => (/* reexport safe */ _person_database_person__WEBPACK_IMPORTED_MODULE_64__.Person),
|
|
2329
|
+
/* harmony export */ PersonDatabase: () => (/* reexport safe */ _person_database_person_database__WEBPACK_IMPORTED_MODULE_61__.PersonDatabase),
|
|
2330
|
+
/* harmony export */ PersonGroup: () => (/* reexport safe */ _person_database_person_group__WEBPACK_IMPORTED_MODULE_62__.PersonGroup),
|
|
2331
|
+
/* harmony export */ PersonImage: () => (/* reexport safe */ _person_database_person_image__WEBPACK_IMPORTED_MODULE_63__.PersonImage),
|
|
2280
2332
|
/* 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 */
|
|
2333
|
+
/* harmony export */ ProcessingMode: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_51__.ProcessingMode),
|
|
2334
|
+
/* harmony export */ RecordingProcess: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__.RecordingProcess),
|
|
2283
2335
|
/* harmony export */ Rect: () => (/* reexport safe */ _image_params_rect__WEBPACK_IMPORTED_MODULE_28__.Rect),
|
|
2284
2336
|
/* 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)
|
|
2337
|
+
/* harmony export */ SearchPerson: () => (/* reexport safe */ _person_database_search_person__WEBPACK_IMPORTED_MODULE_68__.SearchPerson),
|
|
2338
|
+
/* harmony export */ SearchPersonDetection: () => (/* reexport safe */ _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_65__.SearchPersonDetection),
|
|
2339
|
+
/* harmony export */ SearchPersonImage: () => (/* reexport safe */ _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_66__.SearchPersonImage),
|
|
2340
|
+
/* harmony export */ SearchPersonRequest: () => (/* reexport safe */ _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_67__.SearchPersonRequest),
|
|
2341
|
+
/* harmony export */ Size: () => (/* reexport safe */ _image_params_size__WEBPACK_IMPORTED_MODULE_29__.Size),
|
|
2342
|
+
/* harmony export */ VerificationConfig: () => (/* reexport safe */ _liveness_verification_config__WEBPACK_IMPORTED_MODULE_38__.VerificationConfig),
|
|
2343
|
+
/* harmony export */ VerificationResponse: () => (/* reexport safe */ _liveness_verification_response__WEBPACK_IMPORTED_MODULE_46__.VerificationResponse),
|
|
2344
|
+
/* harmony export */ VerifyMatchResponse: () => (/* reexport safe */ _liveness_verify_match_response__WEBPACK_IMPORTED_MODULE_45__.VerifyMatchResponse)
|
|
2290
2345
|
/* harmony export */ });
|
|
2291
2346
|
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/bridge */ "./src/internal/bridge.js");
|
|
2292
2347
|
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customization/camera_position */ "./src/customization/camera_position.js");
|
|
@@ -2323,34 +2378,40 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2323
2378
|
/* 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
2379
|
/* 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
2380
|
/* 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
|
-
|
|
2381
|
+
/* harmony import */ var _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./liveness/liveness_config */ "./src/liveness/liveness_config.js");
|
|
2382
|
+
/* harmony import */ var _liveness_enrollment_config__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./liveness/enrollment_config */ "./src/liveness/enrollment_config.js");
|
|
2383
|
+
/* harmony import */ var _liveness_enrollment_request__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./liveness/enrollment_request */ "./src/liveness/enrollment_request.js");
|
|
2384
|
+
/* harmony import */ var _liveness_verification_config__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./liveness/verification_config */ "./src/liveness/verification_config.js");
|
|
2385
|
+
/* harmony import */ var _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./liveness/liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
2386
|
+
/* harmony import */ var _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./liveness/liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
2387
|
+
/* harmony import */ var _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./liveness/liveness_response */ "./src/liveness/liveness_response.js");
|
|
2388
|
+
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
2389
|
+
/* harmony import */ var _liveness_error_response__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./liveness/error_response */ "./src/liveness/error_response.js");
|
|
2390
|
+
/* harmony import */ var _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./liveness/enrollment_response */ "./src/liveness/enrollment_response.js");
|
|
2391
|
+
/* harmony import */ var _liveness_verify_match_response__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./liveness/verify_match_response */ "./src/liveness/verify_match_response.js");
|
|
2392
|
+
/* harmony import */ var _liveness_verification_response__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./liveness/verification_response */ "./src/liveness/verification_response.js");
|
|
2393
|
+
/* harmony import */ var _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./match_faces/compared_face */ "./src/match_faces/compared_face.js");
|
|
2394
|
+
/* 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");
|
|
2395
|
+
/* 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");
|
|
2396
|
+
/* 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");
|
|
2397
|
+
/* 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");
|
|
2398
|
+
/* 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");
|
|
2399
|
+
/* 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");
|
|
2400
|
+
/* 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");
|
|
2401
|
+
/* 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");
|
|
2402
|
+
/* 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");
|
|
2403
|
+
/* 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");
|
|
2404
|
+
/* 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");
|
|
2405
|
+
/* harmony import */ var _person_database_image_upload__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./person_database/image_upload */ "./src/person_database/image_upload.js");
|
|
2406
|
+
/* 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");
|
|
2407
|
+
/* harmony import */ var _person_database_person_database__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./person_database/person_database */ "./src/person_database/person_database.js");
|
|
2408
|
+
/* harmony import */ var _person_database_person_group__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./person_database/person_group */ "./src/person_database/person_group.js");
|
|
2409
|
+
/* harmony import */ var _person_database_person_image__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./person_database/person_image */ "./src/person_database/person_image.js");
|
|
2410
|
+
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./person_database/person */ "./src/person_database/person.js");
|
|
2411
|
+
/* 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");
|
|
2412
|
+
/* 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");
|
|
2413
|
+
/* 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");
|
|
2414
|
+
/* harmony import */ var _person_database_search_person__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./person_database/search_person */ "./src/person_database/search_person.js");
|
|
2354
2415
|
|
|
2355
2416
|
|
|
2356
2417
|
|
|
@@ -2370,7 +2431,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2370
2431
|
|
|
2371
2432
|
|
|
2372
2433
|
|
|
2373
|
-
|
|
2374
2434
|
;
|
|
2375
2435
|
|
|
2376
2436
|
|
|
@@ -2382,6 +2442,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2382
2442
|
|
|
2383
2443
|
|
|
2384
2444
|
|
|
2445
|
+
;
|
|
2446
|
+
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
|
|
2385
2450
|
|
|
2386
2451
|
;
|
|
2387
2452
|
|
|
@@ -2397,7 +2462,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2397
2462
|
|
|
2398
2463
|
|
|
2399
2464
|
|
|
2400
|
-
|
|
2401
2465
|
;
|
|
2402
2466
|
|
|
2403
2467
|
|
|
@@ -2406,8 +2470,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2406
2470
|
|
|
2407
2471
|
|
|
2408
2472
|
|
|
2409
|
-
;
|
|
2410
|
-
|
|
2411
2473
|
|
|
2412
2474
|
|
|
2413
2475
|
|
|
@@ -2427,7 +2489,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2427
2489
|
|
|
2428
2490
|
|
|
2429
2491
|
|
|
2430
|
-
|
|
2431
2492
|
;
|
|
2432
2493
|
|
|
2433
2494
|
|
|
@@ -2442,7 +2503,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2442
2503
|
|
|
2443
2504
|
|
|
2444
2505
|
|
|
2445
|
-
|
|
2446
2506
|
class FaceSDK {
|
|
2447
2507
|
static get instance() { return FaceSDK._instance }
|
|
2448
2508
|
static _instance = new FaceSDK()
|
|
@@ -2508,14 +2568,14 @@ class FaceSDK {
|
|
|
2508
2568
|
}
|
|
2509
2569
|
|
|
2510
2570
|
get personDatabase() { return this._personDatabase }
|
|
2511
|
-
_personDatabase = new
|
|
2571
|
+
_personDatabase = new _person_database_person_database__WEBPACK_IMPORTED_MODULE_61__.PersonDatabase()
|
|
2512
2572
|
|
|
2513
2573
|
async isInitialized() {
|
|
2514
2574
|
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("isInitialized", [])
|
|
2515
2575
|
}
|
|
2516
2576
|
|
|
2517
|
-
async initialize(
|
|
2518
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [
|
|
2577
|
+
async initialize(options) {
|
|
2578
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [options?.config])
|
|
2519
2579
|
|
|
2520
2580
|
var jsonObject = JSON.parse(response)
|
|
2521
2581
|
var success = jsonObject["success"]
|
|
@@ -2530,9 +2590,9 @@ class FaceSDK {
|
|
|
2530
2590
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deinitialize", [])
|
|
2531
2591
|
}
|
|
2532
2592
|
|
|
2533
|
-
async startFaceCapture(
|
|
2534
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(
|
|
2535
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startFaceCapture", [
|
|
2593
|
+
async startFaceCapture(options) {
|
|
2594
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(options?.cameraSwitchCallback)
|
|
2595
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startFaceCapture", [options?.config])
|
|
2536
2596
|
return _face_capture_face_capture_response__WEBPACK_IMPORTED_MODULE_24__.FaceCaptureResponse.fromJson(JSON.parse(response))
|
|
2537
2597
|
}
|
|
2538
2598
|
|
|
@@ -2540,25 +2600,48 @@ class FaceSDK {
|
|
|
2540
2600
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopFaceCapture", [])
|
|
2541
2601
|
}
|
|
2542
2602
|
|
|
2543
|
-
async startLiveness(
|
|
2544
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(
|
|
2545
|
-
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(
|
|
2546
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startLiveness", [
|
|
2547
|
-
return
|
|
2603
|
+
async startLiveness(options) {
|
|
2604
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(options?.cameraSwitchCallback)
|
|
2605
|
+
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(options?.notificationCompletion)
|
|
2606
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startLiveness", [options?.config])
|
|
2607
|
+
return _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse.fromJson(JSON.parse(response))
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
async startEnrollment(config, options) {
|
|
2611
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(options?.cameraSwitchCallback)
|
|
2612
|
+
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(options?.notificationCompletion)
|
|
2613
|
+
var response = JSON.parse(await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startEnrollment", [config]))
|
|
2614
|
+
var lr = _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse.fromJson(response["livenessResponse"]);
|
|
2615
|
+
var er = _liveness_enrollment_response__WEBPACK_IMPORTED_MODULE_44__.EnrollmentResponse.fromJson(response["enrollmentResponse"]);
|
|
2616
|
+
return [lr, er];
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
async startVerification(config, options) {
|
|
2620
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(options?.cameraSwitchCallback)
|
|
2621
|
+
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(options?.notificationCompletion)
|
|
2622
|
+
var response = JSON.parse(await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startVerification", [config]))
|
|
2623
|
+
var lr = _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_41__.LivenessResponse.fromJson(response["livenessResponse"]);
|
|
2624
|
+
var er = _liveness_verification_response__WEBPACK_IMPORTED_MODULE_46__.VerificationResponse.fromJson(response["verificationResponse"]);
|
|
2625
|
+
return [lr, er];
|
|
2626
|
+
}
|
|
2627
|
+
|
|
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));
|
|
2548
2631
|
}
|
|
2549
2632
|
|
|
2550
2633
|
stopLiveness() {
|
|
2551
2634
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopLiveness", [])
|
|
2552
2635
|
}
|
|
2553
2636
|
|
|
2554
|
-
async matchFaces(request,
|
|
2555
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("matchFaces", [request,
|
|
2556
|
-
return
|
|
2637
|
+
async matchFaces(request, options) {
|
|
2638
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("matchFaces", [request, options?.config])
|
|
2639
|
+
return _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_57__.MatchFacesResponse.fromJson(JSON.parse(response))
|
|
2557
2640
|
}
|
|
2558
2641
|
|
|
2559
2642
|
async splitComparedFaces(facesPairs, similarityThreshold) {
|
|
2560
2643
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("splitComparedFaces", [facesPairs, similarityThreshold])
|
|
2561
|
-
return
|
|
2644
|
+
return _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_49__.ComparedFacesSplit.fromJson(JSON.parse(response))
|
|
2562
2645
|
}
|
|
2563
2646
|
|
|
2564
2647
|
async detectFaces(request) {
|
|
@@ -2681,9 +2764,9 @@ class InitConfig {
|
|
|
2681
2764
|
return result
|
|
2682
2765
|
}
|
|
2683
2766
|
|
|
2684
|
-
constructor(license,
|
|
2767
|
+
constructor(license, options) {
|
|
2685
2768
|
this.license = license
|
|
2686
|
-
this.licenseUpdate =
|
|
2769
|
+
this.licenseUpdate = options?.licenseUpdate
|
|
2687
2770
|
this.useBleDevice = false
|
|
2688
2771
|
}
|
|
2689
2772
|
|
|
@@ -2834,8 +2917,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2834
2917
|
const { RNFaceSDK } = _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeModules
|
|
2835
2918
|
var eventManager = new _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeEventEmitter(RNFaceSDK)
|
|
2836
2919
|
|
|
2837
|
-
async function exec(name,
|
|
2838
|
-
return RNFaceSDK.exec(name,
|
|
2920
|
+
async function exec(name, options) {
|
|
2921
|
+
return RNFaceSDK.exec(name, options)
|
|
2839
2922
|
}
|
|
2840
2923
|
|
|
2841
2924
|
function _setEvent(id, completion, fromJson) {
|
|
@@ -2902,11 +2985,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2902
2985
|
/* harmony export */ NativeEventEmitter: () => (/* binding */ NativeEventEmitter),
|
|
2903
2986
|
/* harmony export */ NativeModules: () => (/* binding */ NativeModules)
|
|
2904
2987
|
/* harmony export */ });
|
|
2905
|
-
var _exec = (completion,
|
|
2988
|
+
var _exec = (completion, options) => cordova.exec(completion, null, "FaceSDK", "exec", options)
|
|
2906
2989
|
|
|
2907
2990
|
const NativeModules = {
|
|
2908
2991
|
RNFaceSDK: {
|
|
2909
|
-
exec: async (name,
|
|
2992
|
+
exec: async (name, options) => new Promise((resolve, _) => _exec(data => resolve(data), [name, ...options]))
|
|
2910
2993
|
}
|
|
2911
2994
|
}
|
|
2912
2995
|
|
|
@@ -2920,6 +3003,254 @@ class NativeEventEmitter {
|
|
|
2920
3003
|
}
|
|
2921
3004
|
}
|
|
2922
3005
|
|
|
3006
|
+
/***/ },
|
|
3007
|
+
|
|
3008
|
+
/***/ "./src/liveness/enrollment_config.js"
|
|
3009
|
+
/*!*******************************************!*\
|
|
3010
|
+
!*** ./src/liveness/enrollment_config.js ***!
|
|
3011
|
+
\*******************************************/
|
|
3012
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3013
|
+
|
|
3014
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3015
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3016
|
+
/* harmony export */ EnrollmentConfig: () => (/* binding */ EnrollmentConfig)
|
|
3017
|
+
/* harmony export */ });
|
|
3018
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
3019
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
3020
|
+
/* harmony import */ var _liveness_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./liveness_config */ "./src/liveness/liveness_config.js");
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
class EnrollmentConfig {
|
|
3026
|
+
copyright
|
|
3027
|
+
cameraSwitchEnabled
|
|
3028
|
+
closeButtonEnabled
|
|
3029
|
+
torchButtonEnabled
|
|
3030
|
+
vibrateOnSteps
|
|
3031
|
+
cameraPositionIOS
|
|
3032
|
+
cameraPositionAndroid
|
|
3033
|
+
screenOrientation
|
|
3034
|
+
locationTrackingEnabled
|
|
3035
|
+
preventScreenRecording
|
|
3036
|
+
attemptsCount
|
|
3037
|
+
recordingProcess
|
|
3038
|
+
livenessType
|
|
3039
|
+
tag
|
|
3040
|
+
skipStep
|
|
3041
|
+
metadata
|
|
3042
|
+
externalId
|
|
3043
|
+
groupId
|
|
3044
|
+
checkDuplicatesEnabled
|
|
3045
|
+
duplicatesThreshold
|
|
3046
|
+
|
|
3047
|
+
constructor(options) {
|
|
3048
|
+
this.copyright = options?.copyright ?? true
|
|
3049
|
+
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
3050
|
+
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
3051
|
+
this.torchButtonEnabled = options?.torchButtonEnabled ?? true
|
|
3052
|
+
this.vibrateOnSteps = options?.vibrateOnSteps ?? true
|
|
3053
|
+
this.cameraPositionIOS = options?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
3054
|
+
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
3055
|
+
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3056
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
3057
|
+
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
3058
|
+
this.attemptsCount = options?.attemptsCount ?? 0
|
|
3059
|
+
this.recordingProcess = options?.recordingProcess ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3060
|
+
this.livenessType = options?.livenessType ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.LivenessType.ACTIVE
|
|
3061
|
+
this.tag = options?.tag
|
|
3062
|
+
this.skipStep = options?.skipStep ?? []
|
|
3063
|
+
this.metadata = options?.metadata
|
|
3064
|
+
this.externalId = options?.externalId
|
|
3065
|
+
this.groupId = options?.groupId
|
|
3066
|
+
this.checkDuplicatesEnabled = options?.checkDuplicatesEnabled
|
|
3067
|
+
this.duplicatesThreshold = options?.duplicatesThreshold
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
static fromJson(jsonObject) {
|
|
3071
|
+
if (jsonObject == null) return null
|
|
3072
|
+
const result = new EnrollmentConfig()
|
|
3073
|
+
|
|
3074
|
+
result.copyright = jsonObject["copyright"]
|
|
3075
|
+
result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
|
|
3076
|
+
result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
|
|
3077
|
+
result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
|
|
3078
|
+
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
3079
|
+
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
3080
|
+
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
3081
|
+
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3082
|
+
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3083
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3084
|
+
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3085
|
+
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3086
|
+
result.livenessType = jsonObject["livenessType"]
|
|
3087
|
+
result.tag = jsonObject["tag"]
|
|
3088
|
+
result.skipStep = jsonObject["skipStep"]
|
|
3089
|
+
result.metadata = jsonObject["metadata"]
|
|
3090
|
+
result.externalId = jsonObject["externalId"]
|
|
3091
|
+
result.groupId = jsonObject["groupId"]
|
|
3092
|
+
result.checkDuplicatesEnabled = jsonObject["checkDuplicatesEnabled"]
|
|
3093
|
+
result.duplicatesThreshold = jsonObject["duplicatesThreshold"]
|
|
3094
|
+
|
|
3095
|
+
return result
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
toJson() {
|
|
3099
|
+
return {
|
|
3100
|
+
"copyright": this.copyright,
|
|
3101
|
+
"cameraSwitchEnabled": this.cameraSwitchEnabled,
|
|
3102
|
+
"closeButtonEnabled": this.closeButtonEnabled,
|
|
3103
|
+
"torchButtonEnabled": this.torchButtonEnabled,
|
|
3104
|
+
"vibrateOnSteps": this.vibrateOnSteps,
|
|
3105
|
+
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
3106
|
+
"cameraPositionIOS": this.cameraPositionIOS,
|
|
3107
|
+
"screenOrientation": this.screenOrientation,
|
|
3108
|
+
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3109
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
3110
|
+
"attemptsCount": this.attemptsCount,
|
|
3111
|
+
"recordingProcess": this.recordingProcess,
|
|
3112
|
+
"livenessType": this.livenessType,
|
|
3113
|
+
"tag": this.tag,
|
|
3114
|
+
"skipStep": this.skipStep,
|
|
3115
|
+
"metadata": this.metadata,
|
|
3116
|
+
"externalId": this.externalId,
|
|
3117
|
+
"groupId": this.groupId,
|
|
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,
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
/***/ },
|
|
3179
|
+
|
|
3180
|
+
/***/ "./src/liveness/enrollment_response.js"
|
|
3181
|
+
/*!*********************************************!*\
|
|
3182
|
+
!*** ./src/liveness/enrollment_response.js ***!
|
|
3183
|
+
\*********************************************/
|
|
3184
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3185
|
+
|
|
3186
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3187
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3188
|
+
/* harmony export */ EnrollmentResponse: () => (/* binding */ EnrollmentResponse)
|
|
3189
|
+
/* harmony export */ });
|
|
3190
|
+
/* harmony import */ var _error_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./error_response */ "./src/liveness/error_response.js");
|
|
3191
|
+
|
|
3192
|
+
|
|
3193
|
+
class EnrollmentResponse {
|
|
3194
|
+
personId
|
|
3195
|
+
externalId
|
|
3196
|
+
error
|
|
3197
|
+
|
|
3198
|
+
static fromJson(jsonObject) {
|
|
3199
|
+
if (jsonObject == null) return null
|
|
3200
|
+
const result = new EnrollmentResponse()
|
|
3201
|
+
|
|
3202
|
+
result.personId = jsonObject["personId"]
|
|
3203
|
+
result.externalId = jsonObject["externalId"]
|
|
3204
|
+
result.error = _error_response__WEBPACK_IMPORTED_MODULE_0__.ErrorResponse.fromJson(jsonObject["error"])
|
|
3205
|
+
|
|
3206
|
+
return result
|
|
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"]
|
|
3241
|
+
|
|
3242
|
+
return result
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
toJson() {
|
|
3246
|
+
return {
|
|
3247
|
+
"code": this.code,
|
|
3248
|
+
"message": this.message,
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
|
|
2923
3254
|
/***/ },
|
|
2924
3255
|
|
|
2925
3256
|
/***/ "./src/liveness/liveness_backend_exception.js"
|
|
@@ -3028,23 +3359,23 @@ class LivenessConfig {
|
|
|
3028
3359
|
skipStep
|
|
3029
3360
|
metadata
|
|
3030
3361
|
|
|
3031
|
-
constructor(
|
|
3032
|
-
this.copyright =
|
|
3033
|
-
this.cameraSwitchEnabled =
|
|
3034
|
-
this.closeButtonEnabled =
|
|
3035
|
-
this.torchButtonEnabled =
|
|
3036
|
-
this.vibrateOnSteps =
|
|
3037
|
-
this.cameraPositionIOS =
|
|
3038
|
-
this.cameraPositionAndroid =
|
|
3039
|
-
this.screenOrientation =
|
|
3040
|
-
this.locationTrackingEnabled =
|
|
3041
|
-
this.preventScreenRecording =
|
|
3042
|
-
this.attemptsCount =
|
|
3043
|
-
this.recordingProcess =
|
|
3044
|
-
this.livenessType =
|
|
3045
|
-
this.tag =
|
|
3046
|
-
this.skipStep =
|
|
3047
|
-
this.metadata =
|
|
3362
|
+
constructor(options) {
|
|
3363
|
+
this.copyright = options?.copyright ?? true
|
|
3364
|
+
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
3365
|
+
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
3366
|
+
this.torchButtonEnabled = options?.torchButtonEnabled ?? true
|
|
3367
|
+
this.vibrateOnSteps = options?.vibrateOnSteps ?? true
|
|
3368
|
+
this.cameraPositionIOS = options?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
3369
|
+
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
3370
|
+
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3371
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
3372
|
+
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
3373
|
+
this.attemptsCount = options?.attemptsCount ?? 0
|
|
3374
|
+
this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3375
|
+
this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
|
|
3376
|
+
this.tag = options?.tag
|
|
3377
|
+
this.skipStep = options?.skipStep ?? []
|
|
3378
|
+
this.metadata = options?.metadata
|
|
3048
3379
|
}
|
|
3049
3380
|
|
|
3050
3381
|
static fromJson(jsonObject) {
|
|
@@ -3102,6 +3433,7 @@ const RecordingProcess = {
|
|
|
3102
3433
|
const LivenessType = {
|
|
3103
3434
|
ACTIVE: 0,
|
|
3104
3435
|
PASSIVE: 1,
|
|
3436
|
+
PASSIVE_WITH_BLINK: 2,
|
|
3105
3437
|
}
|
|
3106
3438
|
|
|
3107
3439
|
const LivenessSkipStep = {
|
|
@@ -3160,13 +3492,16 @@ const LivenessErrorCode = {
|
|
|
3160
3492
|
PROCESSING_FAILED: 6,
|
|
3161
3493
|
PROCESSING_FRAME_FAILED: 7,
|
|
3162
3494
|
APPLICATION_INACTIVE: 8,
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3495
|
+
BAD_FACE_QUALITY: 9,
|
|
3496
|
+
BAD_FRAME_SIZE: 10,
|
|
3497
|
+
CAMERA_NOT_AVAILABLE: 11,
|
|
3166
3498
|
CAMERA_NO_PERMISSION: 12,
|
|
3167
|
-
|
|
3499
|
+
CONTEXT_IS_NULL: 13,
|
|
3500
|
+
IN_PROGRESS_ALREADY: 14,
|
|
3501
|
+
ZOOM_NOT_SUPPORTED: 15,
|
|
3168
3502
|
}
|
|
3169
3503
|
|
|
3504
|
+
|
|
3170
3505
|
/***/ },
|
|
3171
3506
|
|
|
3172
3507
|
/***/ "./src/liveness/liveness_notification.js"
|
|
@@ -3221,6 +3556,8 @@ const LivenessProcessStatus = {
|
|
|
3221
3556
|
FAILED: 12,
|
|
3222
3557
|
RETRY: 13,
|
|
3223
3558
|
SUCCESS: 14,
|
|
3559
|
+
BLINK: 15,
|
|
3560
|
+
BAD_FACE_QUALITY: 16,
|
|
3224
3561
|
}
|
|
3225
3562
|
|
|
3226
3563
|
/***/ },
|
|
@@ -3279,6 +3616,199 @@ const LivenessStatus = {
|
|
|
3279
3616
|
UNKNOWN: 1,
|
|
3280
3617
|
}
|
|
3281
3618
|
|
|
3619
|
+
/***/ },
|
|
3620
|
+
|
|
3621
|
+
/***/ "./src/liveness/verification_config.js"
|
|
3622
|
+
/*!*********************************************!*\
|
|
3623
|
+
!*** ./src/liveness/verification_config.js ***!
|
|
3624
|
+
\*********************************************/
|
|
3625
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3626
|
+
|
|
3627
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3628
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3629
|
+
/* harmony export */ VerificationConfig: () => (/* binding */ VerificationConfig)
|
|
3630
|
+
/* harmony export */ });
|
|
3631
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
3632
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
3633
|
+
/* harmony import */ var _liveness_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./liveness_config */ "./src/liveness/liveness_config.js");
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
class VerificationConfig {
|
|
3639
|
+
copyright
|
|
3640
|
+
cameraSwitchEnabled
|
|
3641
|
+
closeButtonEnabled
|
|
3642
|
+
torchButtonEnabled
|
|
3643
|
+
vibrateOnSteps
|
|
3644
|
+
cameraPositionIOS
|
|
3645
|
+
cameraPositionAndroid
|
|
3646
|
+
screenOrientation
|
|
3647
|
+
locationTrackingEnabled
|
|
3648
|
+
preventScreenRecording
|
|
3649
|
+
attemptsCount
|
|
3650
|
+
recordingProcess
|
|
3651
|
+
livenessType
|
|
3652
|
+
tag
|
|
3653
|
+
skipStep
|
|
3654
|
+
metadata
|
|
3655
|
+
personId
|
|
3656
|
+
groupId
|
|
3657
|
+
threshold
|
|
3658
|
+
|
|
3659
|
+
constructor(options) {
|
|
3660
|
+
this.copyright = options?.copyright ?? true
|
|
3661
|
+
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
3662
|
+
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
3663
|
+
this.torchButtonEnabled = options?.torchButtonEnabled ?? true
|
|
3664
|
+
this.vibrateOnSteps = options?.vibrateOnSteps ?? true
|
|
3665
|
+
this.cameraPositionIOS = options?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
3666
|
+
this.cameraPositionAndroid = options?.cameraPositionAndroid
|
|
3667
|
+
this.screenOrientation = options?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
3668
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
3669
|
+
this.preventScreenRecording = options?.preventScreenRecording ?? false
|
|
3670
|
+
this.attemptsCount = options?.attemptsCount ?? 0
|
|
3671
|
+
this.recordingProcess = options?.recordingProcess ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
3672
|
+
this.livenessType = options?.livenessType ?? _liveness_config__WEBPACK_IMPORTED_MODULE_2__.LivenessType.ACTIVE
|
|
3673
|
+
this.tag = options?.tag
|
|
3674
|
+
this.skipStep = options?.skipStep ?? []
|
|
3675
|
+
this.metadata = options?.metadata
|
|
3676
|
+
this.personId = options?.personId
|
|
3677
|
+
this.groupId = options?.groupId
|
|
3678
|
+
this.threshold = options?.threshold
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
static fromJson(jsonObject) {
|
|
3682
|
+
if (jsonObject == null) return null
|
|
3683
|
+
const result = new VerificationConfig()
|
|
3684
|
+
|
|
3685
|
+
result.copyright = jsonObject["copyright"]
|
|
3686
|
+
result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
|
|
3687
|
+
result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
|
|
3688
|
+
result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
|
|
3689
|
+
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
3690
|
+
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
3691
|
+
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
3692
|
+
result.screenOrientation = jsonObject["screenOrientation"]
|
|
3693
|
+
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
3694
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
3695
|
+
result.attemptsCount = jsonObject["attemptsCount"]
|
|
3696
|
+
result.recordingProcess = jsonObject["recordingProcess"]
|
|
3697
|
+
result.livenessType = jsonObject["livenessType"]
|
|
3698
|
+
result.tag = jsonObject["tag"]
|
|
3699
|
+
result.skipStep = jsonObject["skipStep"]
|
|
3700
|
+
result.metadata = jsonObject["metadata"]
|
|
3701
|
+
result.personId = jsonObject["personId"]
|
|
3702
|
+
result.groupId = jsonObject["groupId"]
|
|
3703
|
+
result.threshold = jsonObject["threshold"]
|
|
3704
|
+
|
|
3705
|
+
return result
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
toJson() {
|
|
3709
|
+
return {
|
|
3710
|
+
"copyright": this.copyright,
|
|
3711
|
+
"cameraSwitchEnabled": this.cameraSwitchEnabled,
|
|
3712
|
+
"closeButtonEnabled": this.closeButtonEnabled,
|
|
3713
|
+
"torchButtonEnabled": this.torchButtonEnabled,
|
|
3714
|
+
"vibrateOnSteps": this.vibrateOnSteps,
|
|
3715
|
+
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
3716
|
+
"cameraPositionIOS": this.cameraPositionIOS,
|
|
3717
|
+
"screenOrientation": this.screenOrientation,
|
|
3718
|
+
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
3719
|
+
"preventScreenRecording": this.preventScreenRecording,
|
|
3720
|
+
"attemptsCount": this.attemptsCount,
|
|
3721
|
+
"recordingProcess": this.recordingProcess,
|
|
3722
|
+
"livenessType": this.livenessType,
|
|
3723
|
+
"tag": this.tag,
|
|
3724
|
+
"skipStep": this.skipStep,
|
|
3725
|
+
"metadata": this.metadata,
|
|
3726
|
+
"personId": this.personId,
|
|
3727
|
+
"groupId": this.groupId,
|
|
3728
|
+
"threshold": this.threshold,
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
|
|
3734
|
+
/***/ },
|
|
3735
|
+
|
|
3736
|
+
/***/ "./src/liveness/verification_response.js"
|
|
3737
|
+
/*!***********************************************!*\
|
|
3738
|
+
!*** ./src/liveness/verification_response.js ***!
|
|
3739
|
+
\***********************************************/
|
|
3740
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3741
|
+
|
|
3742
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3743
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3744
|
+
/* harmony export */ VerificationResponse: () => (/* binding */ VerificationResponse)
|
|
3745
|
+
/* harmony export */ });
|
|
3746
|
+
/* harmony import */ var _verify_match_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./verify_match_response */ "./src/liveness/verify_match_response.js");
|
|
3747
|
+
/* harmony import */ var _error_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./error_response */ "./src/liveness/error_response.js");
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
class VerificationResponse {
|
|
3752
|
+
passed
|
|
3753
|
+
match
|
|
3754
|
+
error
|
|
3755
|
+
|
|
3756
|
+
static fromJson(jsonObject) {
|
|
3757
|
+
if (jsonObject == null) return null
|
|
3758
|
+
const result = new VerificationResponse()
|
|
3759
|
+
|
|
3760
|
+
result.passed = jsonObject["passed"]
|
|
3761
|
+
result.match = _verify_match_response__WEBPACK_IMPORTED_MODULE_0__.VerifyMatchResponse.fromJson(jsonObject["match"])
|
|
3762
|
+
result.error = _error_response__WEBPACK_IMPORTED_MODULE_1__.ErrorResponse.fromJson(jsonObject["error"])
|
|
3763
|
+
|
|
3764
|
+
return result
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
toJson() {
|
|
3768
|
+
return {
|
|
3769
|
+
"passed": this.passed,
|
|
3770
|
+
"match": this.match?.toJson(),
|
|
3771
|
+
"error": this.error?.toJson(),
|
|
3772
|
+
}
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
/***/ },
|
|
3778
|
+
|
|
3779
|
+
/***/ "./src/liveness/verify_match_response.js"
|
|
3780
|
+
/*!***********************************************!*\
|
|
3781
|
+
!*** ./src/liveness/verify_match_response.js ***!
|
|
3782
|
+
\***********************************************/
|
|
3783
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3784
|
+
|
|
3785
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3786
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3787
|
+
/* harmony export */ VerifyMatchResponse: () => (/* binding */ VerifyMatchResponse)
|
|
3788
|
+
/* harmony export */ });
|
|
3789
|
+
class VerifyMatchResponse {
|
|
3790
|
+
passed
|
|
3791
|
+
similarity
|
|
3792
|
+
|
|
3793
|
+
static fromJson(jsonObject) {
|
|
3794
|
+
if (jsonObject == null) return null
|
|
3795
|
+
const result = new VerifyMatchResponse()
|
|
3796
|
+
|
|
3797
|
+
result.passed = jsonObject["passed"]
|
|
3798
|
+
result.similarity = jsonObject["similarity"]
|
|
3799
|
+
|
|
3800
|
+
return result
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
toJson() {
|
|
3804
|
+
return {
|
|
3805
|
+
"passed": this.passed,
|
|
3806
|
+
"similarity": this.similarity,
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
|
|
3282
3812
|
/***/ },
|
|
3283
3813
|
|
|
3284
3814
|
/***/ "./src/match_faces/compared_face.js"
|
|
@@ -3466,9 +3996,9 @@ class MatchFacesConfig {
|
|
|
3466
3996
|
processingMode
|
|
3467
3997
|
locationTrackingEnabled
|
|
3468
3998
|
|
|
3469
|
-
constructor(
|
|
3470
|
-
this.processingMode =
|
|
3471
|
-
this.locationTrackingEnabled =
|
|
3999
|
+
constructor(options) {
|
|
4000
|
+
this.processingMode = options?.processingMode ?? ProcessingMode.ONLINE
|
|
4001
|
+
this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
|
|
3472
4002
|
}
|
|
3473
4003
|
|
|
3474
4004
|
static fromJson(jsonObject) {
|
|
@@ -3669,10 +4199,10 @@ class MatchFacesImage {
|
|
|
3669
4199
|
detectAll
|
|
3670
4200
|
identifier
|
|
3671
4201
|
|
|
3672
|
-
constructor(image, imageType,
|
|
4202
|
+
constructor(image, imageType, options) {
|
|
3673
4203
|
this.image = image
|
|
3674
4204
|
this.imageType = imageType
|
|
3675
|
-
this.detectAll =
|
|
4205
|
+
this.detectAll = options?.detectAll ?? false
|
|
3676
4206
|
this.identifier = ""
|
|
3677
4207
|
}
|
|
3678
4208
|
|
|
@@ -3721,11 +4251,11 @@ class MatchFacesRequest {
|
|
|
3721
4251
|
tag
|
|
3722
4252
|
metadata
|
|
3723
4253
|
|
|
3724
|
-
constructor(images,
|
|
4254
|
+
constructor(images, options) {
|
|
3725
4255
|
this.images = images
|
|
3726
|
-
this.outputImageParams =
|
|
3727
|
-
this.tag =
|
|
3728
|
-
this.metadata =
|
|
4256
|
+
this.outputImageParams = options?.outputImageParams
|
|
4257
|
+
this.tag = options?.tag
|
|
4258
|
+
this.metadata = options?.metadata
|
|
3729
4259
|
}
|
|
3730
4260
|
|
|
3731
4261
|
static fromJson(jsonObject) {
|
|
@@ -3822,9 +4352,9 @@ class EditGroupPersonsRequest {
|
|
|
3822
4352
|
personIdsToAdd
|
|
3823
4353
|
personIdsToRemove
|
|
3824
4354
|
|
|
3825
|
-
constructor(
|
|
3826
|
-
this.personIdsToAdd =
|
|
3827
|
-
this.personIdsToRemove =
|
|
4355
|
+
constructor(options) {
|
|
4356
|
+
this.personIdsToAdd = options?.personIdsToAdd
|
|
4357
|
+
this.personIdsToRemove = options?.personIdsToRemove
|
|
3828
4358
|
}
|
|
3829
4359
|
|
|
3830
4360
|
static fromJson(jsonObject) {
|
|
@@ -4011,8 +4541,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4011
4541
|
|
|
4012
4542
|
|
|
4013
4543
|
class PersonDatabase {
|
|
4014
|
-
async createPerson(name,
|
|
4015
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createPerson", [name,
|
|
4544
|
+
async createPerson(name, options) {
|
|
4545
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createPerson", [name, options?.groupIds, options?.metadata])
|
|
4016
4546
|
return this._itemResponseFromJson(response, _person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson)
|
|
4017
4547
|
}
|
|
4018
4548
|
|
|
@@ -4056,8 +4586,8 @@ class PersonDatabase {
|
|
|
4056
4586
|
return this._listResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
4057
4587
|
}
|
|
4058
4588
|
|
|
4059
|
-
async createGroup(name,
|
|
4060
|
-
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createGroup", [name,
|
|
4589
|
+
async createGroup(name, options) {
|
|
4590
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createGroup", [name, options?.metadata])
|
|
4061
4591
|
return this._itemResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
4062
4592
|
}
|
|
4063
4593
|
|
|
@@ -4435,14 +4965,14 @@ class SearchPersonRequest {
|
|
|
4435
4965
|
detectAll
|
|
4436
4966
|
outputImageParams
|
|
4437
4967
|
|
|
4438
|
-
constructor(image,
|
|
4968
|
+
constructor(image, options) {
|
|
4439
4969
|
this.imageUpload = image
|
|
4440
|
-
this.groupIdsForSearch =
|
|
4441
|
-
this.threshold =
|
|
4442
|
-
this.limit =
|
|
4443
|
-
this.tag =
|
|
4444
|
-
this.detectAll =
|
|
4445
|
-
this.outputImageParams =
|
|
4970
|
+
this.groupIdsForSearch = options?.groupIdsForSearch
|
|
4971
|
+
this.threshold = options?.threshold
|
|
4972
|
+
this.limit = options?.limit
|
|
4973
|
+
this.tag = options?.tag
|
|
4974
|
+
this.detectAll = options?.detectAll ?? false
|
|
4975
|
+
this.outputImageParams = options?.outputImageParams
|
|
4446
4976
|
}
|
|
4447
4977
|
|
|
4448
4978
|
static fromJson(jsonObject) {
|