@regulaforensics/face-sdk 8.3.1105-nightly → 8.3.1107-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +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/package-lock.json +227 -221
- package/examples/capacitor/package.json +5 -2
- package/examples/ionic/package-lock.json +1579 -2369
- package/examples/ionic/package.json +16 -13
- package/examples/react_native/package-lock.json +138 -169
- package/examples/react_native/package.json +4 -3
- package/ios/Config.swift +109 -1
- package/ios/Decoder.swift +71 -3
- package/ios/Main.swift +24 -4
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +134 -57
- package/test/package-lock.json +1 -1
- package/test/test.tsx +68 -60
- package/www/capacitor/customization/customization_images.js +40 -0
- package/www/capacitor/index.js +33 -12
- package/www/capacitor/liveness/enrollment_config.js +102 -0
- package/www/capacitor/liveness/enrollment_request.js +34 -0
- package/www/capacitor/liveness/enrollment_response.js +26 -0
- package/www/capacitor/liveness/error_response.js +21 -0
- package/www/capacitor/liveness/liveness_config.js +1 -0
- package/www/capacitor/liveness/liveness_exception.js +6 -5
- package/www/capacitor/liveness/liveness_notification.js +2 -0
- package/www/capacitor/liveness/verification_config.js +98 -0
- package/www/capacitor/liveness/verification_response.js +27 -0
- package/www/capacitor/liveness/verify_match_response.js +21 -0
- package/www/cordova.js +595 -80
- package/www/react-native/customization/customization_images.js +40 -0
- package/www/react-native/index.js +33 -12
- package/www/react-native/liveness/enrollment_config.js +102 -0
- package/www/react-native/liveness/enrollment_request.js +34 -0
- package/www/react-native/liveness/enrollment_response.js +26 -0
- package/www/react-native/liveness/error_response.js +21 -0
- package/www/react-native/liveness/liveness_config.js +1 -0
- package/www/react-native/liveness/liveness_exception.js +6 -5
- package/www/react-native/liveness/liveness_notification.js +2 -0
- package/www/react-native/liveness/verification_config.js +98 -0
- package/www/react-native/liveness/verification_response.js +27 -0
- package/www/react-native/liveness/verify_match_response.js +21 -0
- package/www/types/customization/customization_images.d.ts +5 -0
- package/www/types/index.d.ts +28 -3
- package/www/types/liveness/enrollment_config.d.ts +97 -0
- package/www/types/liveness/enrollment_request.d.ts +6 -0
- package/www/types/liveness/enrollment_response.d.ts +9 -0
- package/www/types/liveness/error_response.d.ts +6 -0
- package/www/types/liveness/liveness_config.d.ts +1 -0
- package/www/types/liveness/liveness_exception.d.ts +1 -0
- package/www/types/liveness/liveness_notification.d.ts +2 -0
- package/www/types/liveness/verification_config.d.ts +95 -0
- package/www/types/liveness/verification_response.d.ts +10 -0
- package/www/types/liveness/verify_match_response.d.ts +6 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { CameraPosition } from '../customization/camera_position'
|
|
2
|
+
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
|
+
import { RecordingProcess, LivenessType, LivenessSkipStep } from './liveness_config'
|
|
4
|
+
|
|
5
|
+
export interface EnrollmentConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Defines, whether the logo is visible on the bottom of Liveness UI screens. Defaults to `true`.
|
|
8
|
+
*/
|
|
9
|
+
copyright?: boolean
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Defines, whether the camera's toolbar switch camera button is available on the Liveness UI. Defaults to `false`.
|
|
13
|
+
* When set to `true` the CameraToolbarView will contain a button to change current `cameraPosition`.
|
|
14
|
+
* Only for livenessType = {@link LivenessType.PASSIVE}.
|
|
15
|
+
*/
|
|
16
|
+
cameraSwitchEnabled?: boolean
|
|
17
|
+
|
|
18
|
+
closeButtonEnabled?: boolean
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Defines, whether the camera's toolbar torch button is available on the Liveness UI. Defaults to `true`.
|
|
22
|
+
* When set to `false` the CameraToolbarView won't contain a button to toggle camera's flashlight.
|
|
23
|
+
* Only for livenessType = {@link LivenessType.PASSIVE}.
|
|
24
|
+
*/
|
|
25
|
+
torchButtonEnabled?: boolean
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Enables vibration during Liveness processing. Defaults to `true`.
|
|
29
|
+
*/
|
|
30
|
+
vibrateOnSteps?: boolean
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Android only.
|
|
34
|
+
*/
|
|
35
|
+
cameraPositionAndroid?: number
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* IOS only.
|
|
39
|
+
*/
|
|
40
|
+
cameraPositionIOS?: CameraPosition
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Allows you to specify an orientation of the camera view controller.
|
|
44
|
+
*/
|
|
45
|
+
screenOrientation?: Array<ScreenOrientation>
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Defines whether the liveness request sends a location of a device. Defaults to `true`.
|
|
49
|
+
* When set to `true` the liveness request to web service will contain the `location`
|
|
50
|
+
* object within the json `metadata` object.
|
|
51
|
+
* The location is used only when permissions are granted and the location is available.
|
|
52
|
+
*/
|
|
53
|
+
locationTrackingEnabled?: boolean
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Prevents screenshots and screen recording while FaceCapture camera screen is displayed.
|
|
57
|
+
* Defaults to `false`.
|
|
58
|
+
*/
|
|
59
|
+
preventScreenRecording?: boolean
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The number of attempts to pass the Liveness before completing with error. Defaults to `0`.
|
|
63
|
+
* When set to `0` the Liveness will always ask to retry on error.
|
|
64
|
+
*/
|
|
65
|
+
attemptsCount?: number
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Defines whether the liveness recording video of processing.
|
|
69
|
+
* Defaults to {@link RecordingProcess.ASYNCHRONOUS_UPLOAD}.
|
|
70
|
+
*/
|
|
71
|
+
recordingProcess?: RecordingProcess
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Defines whether the liveness processing type. Defaults to {@link LivenessType.ACTIVE}.
|
|
75
|
+
*/
|
|
76
|
+
livenessType?: LivenessType
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Defines tag that can be used in Liveness processing. Defaults to `null`.
|
|
80
|
+
*/
|
|
81
|
+
tag?: string
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Defines which steps of the user interface can be omitted. See {@link LivenessSkipStep} enum for details.
|
|
85
|
+
*/
|
|
86
|
+
skipStep?: Array<LivenessSkipStep>
|
|
87
|
+
|
|
88
|
+
metadata?: Record<string, any>
|
|
89
|
+
|
|
90
|
+
externalId: string
|
|
91
|
+
|
|
92
|
+
groupId?: string
|
|
93
|
+
|
|
94
|
+
checkDuplicatesEnabled?: boolean
|
|
95
|
+
|
|
96
|
+
duplicatesThreshold?: number
|
|
97
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { CameraPosition } from '../customization/camera_position'
|
|
2
|
+
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
|
+
import { RecordingProcess, LivenessType, LivenessSkipStep } from './liveness_config'
|
|
4
|
+
|
|
5
|
+
export interface VerificationConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Defines, whether the logo is visible on the bottom of Liveness UI screens. Defaults to `true`.
|
|
8
|
+
*/
|
|
9
|
+
copyright?: boolean
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Defines, whether the camera's toolbar switch camera button is available on the Liveness UI. Defaults to `false`.
|
|
13
|
+
* When set to `true` the CameraToolbarView will contain a button to change current `cameraPosition`.
|
|
14
|
+
* Only for livenessType = {@link LivenessType.PASSIVE}.
|
|
15
|
+
*/
|
|
16
|
+
cameraSwitchEnabled?: boolean
|
|
17
|
+
|
|
18
|
+
closeButtonEnabled?: boolean
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Defines, whether the camera's toolbar torch button is available on the Liveness UI. Defaults to `true`.
|
|
22
|
+
* When set to `false` the CameraToolbarView won't contain a button to toggle camera's flashlight.
|
|
23
|
+
* Only for livenessType = {@link LivenessType.PASSIVE}.
|
|
24
|
+
*/
|
|
25
|
+
torchButtonEnabled?: boolean
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Enables vibration during Liveness processing. Defaults to `true`.
|
|
29
|
+
*/
|
|
30
|
+
vibrateOnSteps?: boolean
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Android only.
|
|
34
|
+
*/
|
|
35
|
+
cameraPositionAndroid?: number
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* IOS only.
|
|
39
|
+
*/
|
|
40
|
+
cameraPositionIOS?: CameraPosition
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Allows you to specify an orientation of the camera view controller.
|
|
44
|
+
*/
|
|
45
|
+
screenOrientation?: Array<ScreenOrientation>
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Defines whether the liveness request sends a location of a device. Defaults to `true`.
|
|
49
|
+
* When set to `true` the liveness request to web service will contain the `location`
|
|
50
|
+
* object within the json `metadata` object.
|
|
51
|
+
* The location is used only when permissions are granted and the location is available.
|
|
52
|
+
*/
|
|
53
|
+
locationTrackingEnabled?: boolean
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Prevents screenshots and screen recording while FaceCapture camera screen is displayed.
|
|
57
|
+
* Defaults to `false`.
|
|
58
|
+
*/
|
|
59
|
+
preventScreenRecording?: boolean
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The number of attempts to pass the Liveness before completing with error. Defaults to `0`.
|
|
63
|
+
* When set to `0` the Liveness will always ask to retry on error.
|
|
64
|
+
*/
|
|
65
|
+
attemptsCount?: number
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Defines whether the liveness recording video of processing.
|
|
69
|
+
* Defaults to {@link RecordingProcess.ASYNCHRONOUS_UPLOAD}.
|
|
70
|
+
*/
|
|
71
|
+
recordingProcess?: RecordingProcess
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Defines whether the liveness processing type. Defaults to {@link LivenessType.ACTIVE}.
|
|
75
|
+
*/
|
|
76
|
+
livenessType?: LivenessType
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Defines tag that can be used in Liveness processing. Defaults to `null`.
|
|
80
|
+
*/
|
|
81
|
+
tag?: string
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Defines which steps of the user interface can be omitted. See {@link LivenessSkipStep} enum for details.
|
|
85
|
+
*/
|
|
86
|
+
skipStep?: Array<LivenessSkipStep>
|
|
87
|
+
|
|
88
|
+
metadata?: Record<string, any>
|
|
89
|
+
|
|
90
|
+
personId: string
|
|
91
|
+
|
|
92
|
+
groupId?: string
|
|
93
|
+
|
|
94
|
+
threshold?: number
|
|
95
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VerifyMatchResponse } from './verify_match_response'
|
|
2
|
+
import { ErrorResponse } from './error_response'
|
|
3
|
+
|
|
4
|
+
export class VerificationResponse {
|
|
5
|
+
readonly passed?: boolean
|
|
6
|
+
readonly match?: VerifyMatchResponse
|
|
7
|
+
readonly error?: ErrorResponse
|
|
8
|
+
|
|
9
|
+
private constructor()
|
|
10
|
+
}
|