@regulaforensics/face-sdk 8.3.1107-rc → 8.3.1111-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 +0 -91
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +3 -106
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +1 -39
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +1 -0
- package/app.plugin.js +42 -0
- package/examples/capacitor/ios/App/Podfile +2 -1
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package-lock.json +465 -472
- package/examples/ionic/package.json +14 -13
- package/examples/react_native/app.config.ts +1 -0
- package/examples/react_native/package-lock.json +11 -11
- package/examples/react_native/package.json +2 -2
- package/ios/Config.swift +1 -109
- package/ios/Decoder.swift +3 -71
- package/ios/Main.swift +4 -24
- package/package.json +4 -1
- package/plugin.xml +3 -3
- package/test/json.tsx +57 -134
- package/test/package-lock.json +1 -1
- package/test/test.tsx +60 -68
- package/www/capacitor/customization/customization_images.js +0 -40
- package/www/capacitor/index.js +12 -33
- package/www/capacitor/liveness/liveness_config.js +0 -1
- package/www/capacitor/liveness/liveness_exception.js +5 -6
- package/www/capacitor/liveness/liveness_notification.js +0 -2
- package/www/cordova.js +106 -606
- package/www/react-native/customization/customization_images.js +0 -40
- package/www/react-native/index.js +12 -33
- package/www/react-native/liveness/liveness_config.js +0 -1
- package/www/react-native/liveness/liveness_exception.js +5 -6
- package/www/react-native/liveness/liveness_notification.js +0 -2
- package/www/types/customization/customization_images.d.ts +0 -5
- package/www/types/index.d.ts +3 -28
- package/www/types/liveness/liveness_config.d.ts +0 -1
- package/www/types/liveness/liveness_exception.d.ts +0 -1
- package/www/types/liveness/liveness_notification.d.ts +0 -2
- package/www/capacitor/liveness/enrollment_config.js +0 -102
- package/www/capacitor/liveness/enrollment_request.js +0 -34
- package/www/capacitor/liveness/enrollment_response.js +0 -26
- package/www/capacitor/liveness/error_response.js +0 -21
- package/www/capacitor/liveness/verification_config.js +0 -98
- package/www/capacitor/liveness/verification_response.js +0 -27
- package/www/capacitor/liveness/verify_match_response.js +0 -21
- package/www/react-native/liveness/enrollment_config.js +0 -102
- package/www/react-native/liveness/enrollment_request.js +0 -34
- package/www/react-native/liveness/enrollment_response.js +0 -26
- package/www/react-native/liveness/error_response.js +0 -21
- package/www/react-native/liveness/verification_config.js +0 -98
- package/www/react-native/liveness/verification_response.js +0 -27
- package/www/react-native/liveness/verify_match_response.js +0 -21
- package/www/types/liveness/enrollment_config.d.ts +0 -97
- package/www/types/liveness/enrollment_request.d.ts +0 -6
- package/www/types/liveness/enrollment_response.d.ts +0 -9
- package/www/types/liveness/error_response.d.ts +0 -6
- package/www/types/liveness/verification_config.d.ts +0 -95
- package/www/types/liveness/verification_response.d.ts +0 -10
- package/www/types/liveness/verify_match_response.d.ts +0 -6
package/www/capacitor/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { CustomizationImages } from './customization/customization_images'
|
|
|
7
7
|
import { Customization } from './customization/customization'
|
|
8
8
|
import { Font } from './customization/font'
|
|
9
9
|
import { ScreenOrientation } from './customization/screen_orientation'
|
|
10
|
+
|
|
10
11
|
export { CameraPosition, CustomizationColors, CustomizationFonts, CustomizationImages, Customization, Font, ScreenOrientation }
|
|
11
12
|
|
|
12
13
|
import { FaceSDKVersion } from './init/face_sdk_version'
|
|
@@ -15,6 +16,7 @@ import { InitException } from './init/init_exception'
|
|
|
15
16
|
import { InitErrorCode } from './init/init_exception'
|
|
16
17
|
import { LicenseException } from './init/license_exception'
|
|
17
18
|
import { LicensingResultCode } from './init/license_exception'
|
|
19
|
+
|
|
18
20
|
export { FaceSDKVersion, InitConfig, InitException, InitErrorCode, LicenseException, LicensingResultCode }
|
|
19
21
|
|
|
20
22
|
import { DetectFaceResult } from './detect_faces/detect_face_result'
|
|
@@ -26,12 +28,14 @@ import { DetectFacesException, DetectFacesErrorCode } from './detect_faces/detec
|
|
|
26
28
|
import { DetectFacesRequest } from './detect_faces/detect_faces_request'
|
|
27
29
|
import { DetectFacesResponse } from './detect_faces/detect_faces_response'
|
|
28
30
|
import { DetectFacesScenario } from './detect_faces/detect_faces_scenario'
|
|
31
|
+
|
|
29
32
|
export { DetectFaceResult, DetectFacesAttributeResult, DetectFacesAttribute, DetectFacesBackendException, DetectFacesBackendErrorCode, DetectFacesConfig, DetectFacesException, DetectFacesErrorCode, DetectFacesRequest, DetectFacesResponse, DetectFacesScenario }
|
|
30
33
|
|
|
31
34
|
import { FaceCaptureConfig } from './face_capture/face_capture_config'
|
|
32
35
|
import { FaceCaptureException, FaceCaptureErrorCode } from './face_capture/face_capture_exception'
|
|
33
36
|
import { FaceCaptureImage, ImageType } from './face_capture/face_capture_image'
|
|
34
37
|
import { FaceCaptureResponse } from './face_capture/face_capture_response'
|
|
38
|
+
|
|
35
39
|
export { FaceCaptureConfig, FaceCaptureException, FaceCaptureErrorCode, FaceCaptureImage, ImageType, FaceCaptureResponse }
|
|
36
40
|
|
|
37
41
|
import { OutputImageCrop, OutputImageCropAspectRatio } from './image_params/output_image_crop'
|
|
@@ -39,6 +43,7 @@ import { OutputImageParams } from './image_params/output_image_params'
|
|
|
39
43
|
import { Point } from './image_params/point'
|
|
40
44
|
import { Rect } from './image_params/rect'
|
|
41
45
|
import { Size } from './image_params/size'
|
|
46
|
+
|
|
42
47
|
export { OutputImageCrop, OutputImageCropAspectRatio, OutputImageParams, Point, Rect, Size }
|
|
43
48
|
|
|
44
49
|
import { ImageQualityCharacteristicName } from './image_quality/image_quality_characteristic_name'
|
|
@@ -46,21 +51,16 @@ import { ImageQualityCharacteristic } from './image_quality/image_quality_charac
|
|
|
46
51
|
import { ImageQualityGroup } from './image_quality/image_quality_group'
|
|
47
52
|
import { ImageQualityRange } from './image_quality/image_quality_range'
|
|
48
53
|
import { ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus } from './image_quality/image_quality_result'
|
|
54
|
+
|
|
49
55
|
export { ImageQualityCharacteristicName, ImageQualityCharacteristic, ImageQualityGroup, ImageQualityRange, ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus }
|
|
50
56
|
|
|
51
|
-
import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from './liveness/liveness_config'
|
|
52
|
-
import { EnrollmentConfig } from './liveness/enrollment_config'
|
|
53
|
-
import { EnrollmentRequest } from './liveness/enrollment_request'
|
|
54
|
-
import { VerificationConfig } from './liveness/verification_config'
|
|
55
57
|
import { LivenessBackendException, LivenessBackendErrorCode } from './liveness/liveness_backend_exception'
|
|
58
|
+
import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from './liveness/liveness_config'
|
|
56
59
|
import { LivenessException, LivenessErrorCode } from './liveness/liveness_exception'
|
|
57
|
-
import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
|
|
58
60
|
import { LivenessNotification, LivenessProcessStatus } from './liveness/liveness_notification'
|
|
59
|
-
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
import { VerificationResponse } from './liveness/verification_response'
|
|
63
|
-
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessResponse, LivenessStatus, EnrollmentConfig, EnrollmentRequest, VerificationConfig, ErrorResponse, EnrollmentResponse, VerifyMatchResponse, VerificationResponse }
|
|
61
|
+
import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
|
|
62
|
+
|
|
63
|
+
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessResponse, LivenessStatus }
|
|
64
64
|
|
|
65
65
|
import { ComparedFace } from './match_faces/compared_face'
|
|
66
66
|
import { ComparedFacesPair } from './match_faces/compared_faces_pair'
|
|
@@ -73,6 +73,7 @@ import { MatchFacesException, MatchFacesErrorCode } from './match_faces/match_fa
|
|
|
73
73
|
import { MatchFacesImage } from './match_faces/match_faces_image'
|
|
74
74
|
import { MatchFacesRequest } from './match_faces/match_faces_request'
|
|
75
75
|
import { MatchFacesResponse } from './match_faces/match_faces_response'
|
|
76
|
+
|
|
76
77
|
export { ComparedFace, ComparedFacesPair, ComparedFacesSplit, MatchFacesBackendException, MatchFacesConfig, ProcessingMode, MatchFacesDetectionFace, MatchFacesDetection, MatchFacesException, MatchFacesErrorCode, MatchFacesImage, MatchFacesRequest, MatchFacesResponse }
|
|
77
78
|
|
|
78
79
|
import { EditGroupPersonsRequest } from './person_database/edit_group_persons_request'
|
|
@@ -86,6 +87,7 @@ import { SearchPersonDetection } from './person_database/search_person_detection
|
|
|
86
87
|
import { SearchPersonImage } from './person_database/search_person_image'
|
|
87
88
|
import { SearchPersonRequest } from './person_database/search_person_request'
|
|
88
89
|
import { SearchPerson } from './person_database/search_person'
|
|
90
|
+
|
|
89
91
|
export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase, PersonGroup, PersonImage, Person, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, SearchPerson }
|
|
90
92
|
|
|
91
93
|
|
|
@@ -193,29 +195,6 @@ export class FaceSDK {
|
|
|
193
195
|
return LivenessResponse.fromJson(JSON.parse(response))
|
|
194
196
|
}
|
|
195
197
|
|
|
196
|
-
async startEnrollment(params) {
|
|
197
|
-
_setCameraSwitchCallback(params?.cameraSwitchCallback)
|
|
198
|
-
_setLivenessNotificationCompletion(params?.notificationCompletion)
|
|
199
|
-
var response = JSON.parse(await exec("startEnrollment", [params.config]))
|
|
200
|
-
var lr = LivenessResponse.fromJson(response["livenessResponse"]);
|
|
201
|
-
var er = EnrollmentResponse.fromJson(response["enrollmentResponse"]);
|
|
202
|
-
return [lr, er];
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
async startVerification(params) {
|
|
206
|
-
_setCameraSwitchCallback(params?.cameraSwitchCallback)
|
|
207
|
-
_setLivenessNotificationCompletion(params?.notificationCompletion)
|
|
208
|
-
var response = JSON.parse(await exec("startVerification", [params.config]))
|
|
209
|
-
var lr = LivenessResponse.fromJson(response["livenessResponse"]);
|
|
210
|
-
var er = VerificationResponse.fromJson(response["verificationResponse"]);
|
|
211
|
-
return [lr, er];
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
async enrollWithTrustedPhoto(request) {
|
|
215
|
-
var response = await exec("enrollWithTrustedPhoto", [request])
|
|
216
|
-
return EnrollmentResponse.fromJson(JSON.parse(response));
|
|
217
|
-
}
|
|
218
|
-
|
|
219
198
|
stopLiveness() {
|
|
220
199
|
exec("stopLiveness", [])
|
|
221
200
|
}
|
|
@@ -35,10 +35,9 @@ export const LivenessErrorCode = {
|
|
|
35
35
|
PROCESSING_FAILED: 6,
|
|
36
36
|
PROCESSING_FRAME_FAILED: 7,
|
|
37
37
|
APPLICATION_INACTIVE: 8,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
CAMERA_NOT_AVAILABLE: 14,
|
|
38
|
+
CONTEXT_IS_NULL: 9,
|
|
39
|
+
IN_PROGRESS_ALREADY: 10,
|
|
40
|
+
ZOOM_NOT_SUPPORTED: 11,
|
|
41
|
+
CAMERA_NO_PERMISSION: 12,
|
|
42
|
+
CAMERA_NOT_AVAILABLE: 13,
|
|
44
43
|
}
|