@regulaforensics/face-sdk 8.3.1107-rc → 8.3.1112-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 +1 -1
- 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 +1 -1
- package/examples/ionic/package-lock.json +465 -472
- package/examples/ionic/package.json +13 -12
- package/examples/react_native/app.config.ts +1 -0
- package/examples/react_native/package-lock.json +11 -11
- package/examples/react_native/package.json +1 -1
- 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 +2 -2
- package/test/json.tsx +57 -134
- package/test/package-lock.json +5 -2
- 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
|
@@ -1,102 +0,0 @@
|
|
|
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 class EnrollmentConfig {
|
|
6
|
-
copyright
|
|
7
|
-
cameraSwitchEnabled
|
|
8
|
-
closeButtonEnabled
|
|
9
|
-
torchButtonEnabled
|
|
10
|
-
vibrateOnSteps
|
|
11
|
-
cameraPositionIOS
|
|
12
|
-
cameraPositionAndroid
|
|
13
|
-
screenOrientation
|
|
14
|
-
locationTrackingEnabled
|
|
15
|
-
preventScreenRecording
|
|
16
|
-
attemptsCount
|
|
17
|
-
recordingProcess
|
|
18
|
-
livenessType
|
|
19
|
-
tag
|
|
20
|
-
skipStep
|
|
21
|
-
metadata
|
|
22
|
-
externalId
|
|
23
|
-
groupId
|
|
24
|
-
checkDuplicatesEnabled
|
|
25
|
-
duplicatesThreshold
|
|
26
|
-
|
|
27
|
-
constructor(params) {
|
|
28
|
-
this.copyright = params?.copyright ?? true
|
|
29
|
-
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
30
|
-
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
31
|
-
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
32
|
-
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
33
|
-
this.cameraPositionIOS = params?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
34
|
-
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
35
|
-
this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
36
|
-
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
37
|
-
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
38
|
-
this.attemptsCount = params?.attemptsCount ?? 0
|
|
39
|
-
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
40
|
-
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
41
|
-
this.tag = params?.tag
|
|
42
|
-
this.skipStep = params?.skipStep ?? []
|
|
43
|
-
this.metadata = params?.metadata
|
|
44
|
-
this.externalId = params?.externalId
|
|
45
|
-
this.groupId = params?.groupId
|
|
46
|
-
this.checkDuplicatesEnabled = params?.checkDuplicatesEnabled
|
|
47
|
-
this.duplicatesThreshold = params?.duplicatesThreshold
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static fromJson(jsonObject) {
|
|
51
|
-
if (jsonObject == null) return null
|
|
52
|
-
const result = new EnrollmentConfig()
|
|
53
|
-
|
|
54
|
-
result.copyright = jsonObject["copyright"]
|
|
55
|
-
result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
|
|
56
|
-
result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
|
|
57
|
-
result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
|
|
58
|
-
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
59
|
-
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
60
|
-
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
61
|
-
result.screenOrientation = jsonObject["screenOrientation"]
|
|
62
|
-
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
63
|
-
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
64
|
-
result.attemptsCount = jsonObject["attemptsCount"]
|
|
65
|
-
result.recordingProcess = jsonObject["recordingProcess"]
|
|
66
|
-
result.livenessType = jsonObject["livenessType"]
|
|
67
|
-
result.tag = jsonObject["tag"]
|
|
68
|
-
result.skipStep = jsonObject["skipStep"]
|
|
69
|
-
result.metadata = jsonObject["metadata"]
|
|
70
|
-
result.externalId = jsonObject["externalId"]
|
|
71
|
-
result.groupId = jsonObject["groupId"]
|
|
72
|
-
result.checkDuplicatesEnabled = jsonObject["checkDuplicatesEnabled"]
|
|
73
|
-
result.duplicatesThreshold = jsonObject["duplicatesThreshold"]
|
|
74
|
-
|
|
75
|
-
return result
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
toJson() {
|
|
79
|
-
return {
|
|
80
|
-
"copyright": this.copyright,
|
|
81
|
-
"cameraSwitchEnabled": this.cameraSwitchEnabled,
|
|
82
|
-
"closeButtonEnabled": this.closeButtonEnabled,
|
|
83
|
-
"torchButtonEnabled": this.torchButtonEnabled,
|
|
84
|
-
"vibrateOnSteps": this.vibrateOnSteps,
|
|
85
|
-
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
86
|
-
"cameraPositionIOS": this.cameraPositionIOS,
|
|
87
|
-
"screenOrientation": this.screenOrientation,
|
|
88
|
-
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
89
|
-
"preventScreenRecording": this.preventScreenRecording,
|
|
90
|
-
"attemptsCount": this.attemptsCount,
|
|
91
|
-
"recordingProcess": this.recordingProcess,
|
|
92
|
-
"livenessType": this.livenessType,
|
|
93
|
-
"tag": this.tag,
|
|
94
|
-
"skipStep": this.skipStep,
|
|
95
|
-
"metadata": this.metadata,
|
|
96
|
-
"externalId": this.externalId,
|
|
97
|
-
"groupId": this.groupId,
|
|
98
|
-
"checkDuplicatesEnabled": this.checkDuplicatesEnabled,
|
|
99
|
-
"duplicatesThreshold": this.duplicatesThreshold,
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export class EnrollmentRequest {
|
|
2
|
-
externalId
|
|
3
|
-
groupId
|
|
4
|
-
trustedImage
|
|
5
|
-
trustedImageUrl
|
|
6
|
-
|
|
7
|
-
constructor(params) {
|
|
8
|
-
this.externalId = params?.externalId
|
|
9
|
-
this.groupId = params?.groupId
|
|
10
|
-
this.trustedImage = params?.trustedImage
|
|
11
|
-
this.trustedImageUrl = params?.trustedImageUrl
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
static fromJson(jsonObject) {
|
|
15
|
-
if (jsonObject == null) return null
|
|
16
|
-
const result = new EnrollmentRequest()
|
|
17
|
-
|
|
18
|
-
result.externalId = jsonObject["externalId"]
|
|
19
|
-
result.groupId = jsonObject["groupId"]
|
|
20
|
-
result.trustedImage = jsonObject["trustedImage"]
|
|
21
|
-
result.trustedImageUrl = jsonObject["trustedImageUrl"]
|
|
22
|
-
|
|
23
|
-
return result
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
toJson() {
|
|
27
|
-
return {
|
|
28
|
-
"externalId": this.externalId,
|
|
29
|
-
"groupId": this.groupId,
|
|
30
|
-
"trustedImage": this.trustedImage,
|
|
31
|
-
"trustedImageUrl": this.trustedImageUrl,
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ErrorResponse } from './error_response'
|
|
2
|
-
|
|
3
|
-
export class EnrollmentResponse {
|
|
4
|
-
personId
|
|
5
|
-
externalId
|
|
6
|
-
error
|
|
7
|
-
|
|
8
|
-
static fromJson(jsonObject) {
|
|
9
|
-
if (jsonObject == null) return null
|
|
10
|
-
const result = new EnrollmentResponse()
|
|
11
|
-
|
|
12
|
-
result.personId = jsonObject["personId"]
|
|
13
|
-
result.externalId = jsonObject["externalId"]
|
|
14
|
-
result.error = ErrorResponse.fromJson(jsonObject["error"])
|
|
15
|
-
|
|
16
|
-
return result
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
toJson() {
|
|
20
|
-
return {
|
|
21
|
-
"personId": this.personId,
|
|
22
|
-
"externalId": this.externalId,
|
|
23
|
-
"error": this.error?.toJson(),
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export class ErrorResponse {
|
|
2
|
-
code
|
|
3
|
-
message
|
|
4
|
-
|
|
5
|
-
static fromJson(jsonObject) {
|
|
6
|
-
if (jsonObject == null) return null
|
|
7
|
-
const result = new ErrorResponse()
|
|
8
|
-
|
|
9
|
-
result.code = jsonObject["code"]
|
|
10
|
-
result.message = jsonObject["message"]
|
|
11
|
-
|
|
12
|
-
return result
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
toJson() {
|
|
16
|
-
return {
|
|
17
|
-
"code": this.code,
|
|
18
|
-
"message": this.message,
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
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 class VerificationConfig {
|
|
6
|
-
copyright
|
|
7
|
-
cameraSwitchEnabled
|
|
8
|
-
closeButtonEnabled
|
|
9
|
-
torchButtonEnabled
|
|
10
|
-
vibrateOnSteps
|
|
11
|
-
cameraPositionIOS
|
|
12
|
-
cameraPositionAndroid
|
|
13
|
-
screenOrientation
|
|
14
|
-
locationTrackingEnabled
|
|
15
|
-
preventScreenRecording
|
|
16
|
-
attemptsCount
|
|
17
|
-
recordingProcess
|
|
18
|
-
livenessType
|
|
19
|
-
tag
|
|
20
|
-
skipStep
|
|
21
|
-
metadata
|
|
22
|
-
personId
|
|
23
|
-
groupId
|
|
24
|
-
threshold
|
|
25
|
-
|
|
26
|
-
constructor(params) {
|
|
27
|
-
this.copyright = params?.copyright ?? true
|
|
28
|
-
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
29
|
-
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
30
|
-
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
31
|
-
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
32
|
-
this.cameraPositionIOS = params?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
33
|
-
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
34
|
-
this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
35
|
-
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
36
|
-
this.preventScreenRecording = params?.preventScreenRecording ?? false
|
|
37
|
-
this.attemptsCount = params?.attemptsCount ?? 0
|
|
38
|
-
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
39
|
-
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
40
|
-
this.tag = params?.tag
|
|
41
|
-
this.skipStep = params?.skipStep ?? []
|
|
42
|
-
this.metadata = params?.metadata
|
|
43
|
-
this.personId = params?.personId
|
|
44
|
-
this.groupId = params?.groupId
|
|
45
|
-
this.threshold = params?.threshold
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
static fromJson(jsonObject) {
|
|
49
|
-
if (jsonObject == null) return null
|
|
50
|
-
const result = new VerificationConfig()
|
|
51
|
-
|
|
52
|
-
result.copyright = jsonObject["copyright"]
|
|
53
|
-
result.cameraSwitchEnabled = jsonObject["cameraSwitchEnabled"]
|
|
54
|
-
result.closeButtonEnabled = jsonObject["closeButtonEnabled"]
|
|
55
|
-
result.torchButtonEnabled = jsonObject["torchButtonEnabled"]
|
|
56
|
-
result.vibrateOnSteps = jsonObject["vibrateOnSteps"]
|
|
57
|
-
result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
|
|
58
|
-
result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
|
|
59
|
-
result.screenOrientation = jsonObject["screenOrientation"]
|
|
60
|
-
result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
|
|
61
|
-
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
62
|
-
result.attemptsCount = jsonObject["attemptsCount"]
|
|
63
|
-
result.recordingProcess = jsonObject["recordingProcess"]
|
|
64
|
-
result.livenessType = jsonObject["livenessType"]
|
|
65
|
-
result.tag = jsonObject["tag"]
|
|
66
|
-
result.skipStep = jsonObject["skipStep"]
|
|
67
|
-
result.metadata = jsonObject["metadata"]
|
|
68
|
-
result.personId = jsonObject["personId"]
|
|
69
|
-
result.groupId = jsonObject["groupId"]
|
|
70
|
-
result.threshold = jsonObject["threshold"]
|
|
71
|
-
|
|
72
|
-
return result
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
toJson() {
|
|
76
|
-
return {
|
|
77
|
-
"copyright": this.copyright,
|
|
78
|
-
"cameraSwitchEnabled": this.cameraSwitchEnabled,
|
|
79
|
-
"closeButtonEnabled": this.closeButtonEnabled,
|
|
80
|
-
"torchButtonEnabled": this.torchButtonEnabled,
|
|
81
|
-
"vibrateOnSteps": this.vibrateOnSteps,
|
|
82
|
-
"cameraPositionAndroid": this.cameraPositionAndroid,
|
|
83
|
-
"cameraPositionIOS": this.cameraPositionIOS,
|
|
84
|
-
"screenOrientation": this.screenOrientation,
|
|
85
|
-
"locationTrackingEnabled": this.locationTrackingEnabled,
|
|
86
|
-
"preventScreenRecording": this.preventScreenRecording,
|
|
87
|
-
"attemptsCount": this.attemptsCount,
|
|
88
|
-
"recordingProcess": this.recordingProcess,
|
|
89
|
-
"livenessType": this.livenessType,
|
|
90
|
-
"tag": this.tag,
|
|
91
|
-
"skipStep": this.skipStep,
|
|
92
|
-
"metadata": this.metadata,
|
|
93
|
-
"personId": this.personId,
|
|
94
|
-
"groupId": this.groupId,
|
|
95
|
-
"threshold": this.threshold,
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { VerifyMatchResponse } from './verify_match_response'
|
|
2
|
-
import { ErrorResponse } from './error_response'
|
|
3
|
-
|
|
4
|
-
export class VerificationResponse {
|
|
5
|
-
passed
|
|
6
|
-
match
|
|
7
|
-
error
|
|
8
|
-
|
|
9
|
-
static fromJson(jsonObject) {
|
|
10
|
-
if (jsonObject == null) return null
|
|
11
|
-
const result = new VerificationResponse()
|
|
12
|
-
|
|
13
|
-
result.passed = jsonObject["passed"]
|
|
14
|
-
result.match = VerifyMatchResponse.fromJson(jsonObject["match"])
|
|
15
|
-
result.error = ErrorResponse.fromJson(jsonObject["error"])
|
|
16
|
-
|
|
17
|
-
return result
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
toJson() {
|
|
21
|
-
return {
|
|
22
|
-
"passed": this.passed,
|
|
23
|
-
"match": this.match?.toJson(),
|
|
24
|
-
"error": this.error?.toJson(),
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export class VerifyMatchResponse {
|
|
2
|
-
passed
|
|
3
|
-
similarity
|
|
4
|
-
|
|
5
|
-
static fromJson(jsonObject) {
|
|
6
|
-
if (jsonObject == null) return null
|
|
7
|
-
const result = new VerifyMatchResponse()
|
|
8
|
-
|
|
9
|
-
result.passed = jsonObject["passed"]
|
|
10
|
-
result.similarity = jsonObject["similarity"]
|
|
11
|
-
|
|
12
|
-
return result
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
toJson() {
|
|
16
|
-
return {
|
|
17
|
-
"passed": this.passed,
|
|
18
|
-
"similarity": this.similarity,
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|