@regulaforensics/face-sdk 8.5.1574-nightly → 8.5.1575-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.
Files changed (53) hide show
  1. package/Package.swift +1 -1
  2. package/android/build.gradle.kts +1 -1
  3. package/android/cordova.gradle.kts +1 -1
  4. package/android/src/main/kotlin/com/regula/plugin/face/sdk/Config.kt +19 -1
  5. package/android/src/main/kotlin/com/regula/plugin/face/sdk/JSONConstructor.kt +16 -16
  6. package/examples/capacitor/ios/App/App/Info.plist +2 -0
  7. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +4 -4
  8. package/examples/capacitor/package-lock.json +590 -209
  9. package/examples/capacitor/package.json +8 -3
  10. package/examples/ionic/config.xml +1 -1
  11. package/examples/ionic/package-lock.json +2136 -2488
  12. package/examples/ionic/package.json +20 -3
  13. package/examples/react_native/package-lock.json +571 -927
  14. package/examples/react_native/package.json +10 -3
  15. package/examples/react_native/scripts/withoutMetroServer.js +11 -8
  16. package/ios/Config.swift +21 -29
  17. package/ios/Decoder.swift +25 -21
  18. package/ios/Implementation.swift +3 -3
  19. package/package.json +1 -1
  20. package/plugin.xml +2 -2
  21. package/react-native-face-sdk.podspec +2 -2
  22. package/test/json.tsx +12 -0
  23. package/test/package-lock.json +5 -2
  24. package/test/test.tsx +66 -74
  25. package/www/capacitor/customization/customization_images.js +8 -0
  26. package/www/capacitor/customization/screen_orientation.js +2 -0
  27. package/www/capacitor/detect_faces/detect_faces_response.js +3 -0
  28. package/www/capacitor/face_capture/face_capture_config.js +12 -0
  29. package/www/capacitor/liveness/enrollment_config.js +8 -0
  30. package/www/capacitor/liveness/liveness_config.js +8 -0
  31. package/www/capacitor/liveness/liveness_notification.js +4 -2
  32. package/www/capacitor/liveness/verification_config.js +8 -0
  33. package/www/capacitor/match_faces/match_faces_response.js +3 -0
  34. package/www/cordova.js +56 -2
  35. package/www/react-native/customization/customization_images.js +8 -0
  36. package/www/react-native/customization/screen_orientation.js +2 -0
  37. package/www/react-native/detect_faces/detect_faces_response.js +3 -0
  38. package/www/react-native/face_capture/face_capture_config.js +12 -0
  39. package/www/react-native/liveness/enrollment_config.js +8 -0
  40. package/www/react-native/liveness/liveness_config.js +8 -0
  41. package/www/react-native/liveness/liveness_notification.js +4 -2
  42. package/www/react-native/liveness/verification_config.js +8 -0
  43. package/www/react-native/match_faces/match_faces_response.js +3 -0
  44. package/www/types/customization/customization_images.d.ts +1 -0
  45. package/www/types/customization/screen_orientation.d.ts +4 -0
  46. package/www/types/detect_faces/detect_faces_response.d.ts +3 -0
  47. package/www/types/face_capture/face_capture_config.d.ts +15 -0
  48. package/www/types/liveness/enrollment_config.d.ts +6 -0
  49. package/www/types/liveness/liveness_backend_exception.d.ts +1 -1
  50. package/www/types/liveness/liveness_config.d.ts +8 -0
  51. package/www/types/liveness/liveness_notification.d.ts +2 -0
  52. package/www/types/liveness/verification_config.d.ts +8 -0
  53. package/www/types/match_faces/match_faces_response.d.ts +3 -0
package/test/test.tsx CHANGED
@@ -1,136 +1,132 @@
1
1
  import { compare } from './utils'
2
2
  import {
3
- ComparedFace,
4
- ComparedFacesPair,
5
- ComparedFacesSplit,
6
3
  Customization,
7
- DetectFaceResult,
4
+ Point,
5
+ Rect,
6
+ Size,
7
+ OutputImageCrop,
8
+ OutputImageParams,
9
+ ImageQualityRange,
10
+ ImageQualityResult,
11
+ ImageQualityCharacteristic,
12
+ FaceSDKVersion,
13
+ InitConfig,
14
+ LicenseException,
15
+ InitException,
8
16
  DetectFacesAttributeResult,
9
- DetectFacesBackendException,
17
+ DetectFaceResult,
10
18
  DetectFacesConfig,
11
- DetectFacesException,
12
19
  DetectFacesRequest,
20
+ DetectFacesBackendException,
21
+ DetectFacesException,
13
22
  DetectFacesResponse,
14
- EditGroupPersonsRequest,
15
23
  FaceCaptureConfig,
16
- FaceCaptureException,
17
24
  FaceCaptureImage,
25
+ FaceCaptureException,
18
26
  FaceCaptureResponse,
19
- FaceSDKVersion,
20
- ImageQualityCharacteristic,
21
- ImageQualityRange,
22
- ImageQualityResult,
23
- ImageUpload,
24
- InitConfig,
25
- InitException,
26
- LicenseException,
27
- LivenessBackendException,
28
27
  LivenessConfig,
28
+ EnrollmentConfig,
29
+ VerificationConfig,
30
+ LivenessBackendException,
29
31
  LivenessException,
30
- LivenessNotification,
31
32
  LivenessResponse,
32
- MatchFacesBackendException,
33
+ LivenessNotification,
34
+ EnrollmentResponse,
35
+ VerificationMatchResponse,
36
+ VerificationResponse,
33
37
  MatchFacesConfig,
34
- MatchFacesDetection,
35
- MatchFacesDetectionFace,
36
- MatchFacesException,
37
38
  MatchFacesImage,
38
39
  MatchFacesRequest,
40
+ MatchFacesDetectionFace,
41
+ MatchFacesBackendException,
42
+ MatchFacesException,
43
+ MatchFacesDetection,
44
+ ComparedFace,
45
+ ComparedFacesPair,
39
46
  MatchFacesResponse,
40
- OutputImageCrop,
41
- OutputImageParams,
47
+ ComparedFacesSplit,
48
+ EditGroupPersonsRequest,
49
+ ImageUpload,
42
50
  Person,
43
51
  PersonGroup,
44
52
  PersonImage,
45
- Point,
46
- Rect,
47
- SearchPerson,
48
53
  SearchPersonDetection,
49
54
  SearchPersonImage,
55
+ SearchPerson,
50
56
  SearchPersonRequest,
51
- Size,
52
- EnrollmentConfig,
53
- VerificationConfig,
54
- EnrollmentResponse,
55
- VerificationMatchResponse,
56
- VerificationResponse,
57
57
  SearchPersonFilter,
58
58
  } from '@regulaforensics/face-sdk/www/capacitor'
59
59
  import {
60
- comparedFace,
61
- comparedFacesPair,
62
- comparedFacesSplit,
63
60
  customization,
64
- detectFaceResult,
61
+ point,
62
+ rect,
63
+ size,
64
+ outputImageCrop,
65
+ outputImageParams,
66
+ imageQualityRange,
67
+ imageQualityResult,
68
+ imageQualityCharacteristic,
69
+ faceSDKVersion,
70
+ initConfig,
71
+ licenseException,
72
+ initException,
65
73
  detectFacesAttributeResult,
66
- detectFacesBackendException,
74
+ detectFaceResult,
67
75
  detectFacesConfig,
68
- detectFacesException,
69
76
  detectFacesRequest,
77
+ detectFacesBackendException,
78
+ detectFacesException,
70
79
  detectFacesResponse,
71
- editGroupPersonsRequest,
72
80
  faceCaptureConfig,
73
- faceCaptureException,
74
81
  faceCaptureImage,
82
+ faceCaptureException,
75
83
  faceCaptureResponse,
76
- faceSDKVersion,
77
- imageQualityCharacteristic,
78
- imageQualityRange,
79
- imageQualityResult,
80
- imageUpload,
81
- initConfig,
82
- initException,
83
- licenseException,
84
- livenessBackendException,
85
84
  livenessConfig,
85
+ enrollmentConfig,
86
+ verificationConfig,
87
+ livenessBackendException,
86
88
  livenessException,
87
- livenessNotification,
88
89
  livenessResponse,
89
- matchFacesBackendException,
90
+ livenessNotification,
91
+ enrollmentResponse,
92
+ verificationMatchResponse,
93
+ verificationResponse,
90
94
  matchFacesConfig,
91
- matchFacesDetection,
92
- matchFacesDetectionFace,
93
- matchFacesException,
94
95
  matchFacesImage,
95
96
  matchFacesRequest,
97
+ matchFacesDetectionFace,
98
+ matchFacesBackendException,
99
+ matchFacesException,
100
+ matchFacesDetection,
101
+ comparedFace,
102
+ comparedFacesPair,
96
103
  matchFacesResponse,
97
- outputImageCrop,
98
- outputImageParams,
104
+ comparedFacesSplit,
105
+ editGroupPersonsRequest,
106
+ imageUpload,
99
107
  person,
100
108
  personGroup,
101
109
  personImage,
102
- point,
103
- rect,
104
- searchPerson,
105
110
  searchPersonDetection,
106
111
  searchPersonImage,
112
+ searchPerson,
107
113
  searchPersonRequest,
108
- size,
109
- enrollmentConfig,
110
- verificationConfig,
111
- enrollmentResponse,
112
- verificationMatchResponse,
113
- verificationResponse,
114
114
  searchPersonFilter,
115
115
  } from './json'
116
116
 
117
117
  compare('customization', customization, Customization.fromJson);
118
-
119
118
  compare('point', point, Point.fromJson);
120
119
  compare('rect', rect, Rect.fromJson);
121
120
  compare('size', size, Size.fromJson);
122
121
  compare('outputImageCrop', outputImageCrop, OutputImageCrop.fromJson);
123
122
  compare('outputImageParams', outputImageParams, OutputImageParams.fromJson);
124
-
125
123
  compare('imageQualityRange', imageQualityRange, ImageQualityRange.fromJson);
126
124
  compare('imageQualityResult', imageQualityResult, ImageQualityResult.fromJson);
127
125
  compare('imageQualityCharacteristic', imageQualityCharacteristic, ImageQualityCharacteristic.fromJson);
128
-
129
126
  compare('faceSDKVersion', faceSDKVersion, FaceSDKVersion.fromJson);
130
127
  compare('initConfig', initConfig, InitConfig.fromJson);
131
128
  compare('licenseException', licenseException, LicenseException.fromJson);
132
129
  compare('initException', initException, InitException.fromJson);
133
-
134
130
  compare('detectFacesAttributeResult', detectFacesAttributeResult, DetectFacesAttributeResult.fromJson);
135
131
  compare('detectFaceResult', detectFaceResult, DetectFaceResult.fromJson);
136
132
  compare('detectFacesConfig', detectFacesConfig, DetectFacesConfig.fromJson);
@@ -138,12 +134,10 @@ compare('detectFacesRequest', detectFacesRequest, DetectFacesRequest.fromJson);
138
134
  compare('detectFacesBackendException', detectFacesBackendException, DetectFacesBackendException.fromJson);
139
135
  compare('detectFacesException', detectFacesException, DetectFacesException.fromJson);
140
136
  compare('detectFacesResponse', detectFacesResponse, DetectFacesResponse.fromJson);
141
-
142
137
  compare('faceCaptureConfig', faceCaptureConfig, FaceCaptureConfig.fromJson);
143
138
  compare('faceCaptureImage', faceCaptureImage, FaceCaptureImage.fromJson);
144
139
  compare('faceCaptureException', faceCaptureException, FaceCaptureException.fromJson);
145
140
  compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson);
146
-
147
141
  compare('livenessConfig', livenessConfig, LivenessConfig.fromJson);
148
142
  compare('enrollmentConfig', enrollmentConfig, EnrollmentConfig.fromJson);
149
143
  compare('verificationConfig', verificationConfig, VerificationConfig.fromJson);
@@ -154,7 +148,6 @@ compare('livenessNotification', livenessNotification, LivenessNotification.fromJ
154
148
  compare('enrollmentResponse', enrollmentResponse, EnrollmentResponse.fromJson);
155
149
  compare('verificationMatchResponse', verificationMatchResponse, VerificationMatchResponse.fromJson);
156
150
  compare('verificationResponse', verificationResponse, VerificationResponse.fromJson);
157
-
158
151
  compare('matchFacesConfig', matchFacesConfig, MatchFacesConfig.fromJson);
159
152
  compare('matchFacesImage', matchFacesImage, MatchFacesImage.fromJson);
160
153
  compare('matchFacesRequest', matchFacesRequest, MatchFacesRequest.fromJson);
@@ -166,7 +159,6 @@ compare('comparedFace', comparedFace, ComparedFace.fromJson);
166
159
  compare('comparedFacesPair', comparedFacesPair, ComparedFacesPair.fromJson);
167
160
  compare('matchFacesResponse', matchFacesResponse, MatchFacesResponse.fromJson);
168
161
  compare('comparedFacesSplit', comparedFacesSplit, ComparedFacesSplit.fromJson);
169
-
170
162
  compare('editGroupPersonsRequest', editGroupPersonsRequest, EditGroupPersonsRequest.fromJson);
171
163
  compare('imageUpload', imageUpload, ImageUpload.fromJson);
172
164
  compare('person', person, Person.fromJson);
@@ -109,6 +109,12 @@ export class CustomizationImages {
109
109
  this._set({ "retryScreenHintCovering": val })
110
110
  }
111
111
 
112
+ _retryScreenHintRejectMultipleFaces
113
+ set retryScreenHintRejectMultipleFaces(val) {
114
+ this._retryScreenHintRejectMultipleFaces = val
115
+ this._set({ "retryScreenHintRejectMultipleFaces": val })
116
+ }
117
+
112
118
  _processingScreenCloseButton
113
119
  set processingScreenCloseButton(val) {
114
120
  this._processingScreenCloseButton = val
@@ -142,6 +148,7 @@ export class CustomizationImages {
142
148
  result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
143
149
  result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
144
150
  result._retryScreenHintCovering = jsonObject["retryScreenHintCovering"]
151
+ result._retryScreenHintRejectMultipleFaces = jsonObject["retryScreenHintRejectMultipleFaces"]
145
152
  result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
146
153
  result._successScreenImage = jsonObject["successScreenImage"]
147
154
 
@@ -168,6 +175,7 @@ export class CustomizationImages {
168
175
  "retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
169
176
  "retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
170
177
  "retryScreenHintCovering": this._retryScreenHintCovering,
178
+ "retryScreenHintRejectMultipleFaces": this._retryScreenHintRejectMultipleFaces,
171
179
  "processingScreenCloseButton": this._processingScreenCloseButton,
172
180
  "successScreenImage": this._successScreenImage,
173
181
  }
@@ -1,4 +1,6 @@
1
1
  export const ScreenOrientation = {
2
2
  PORTRAIT: 0,
3
3
  LANDSCAPE: 1,
4
+ REVERSE_PORTRAIT: 2,
5
+ REVERSE_LANDSCAPE: 3,
4
6
  }
@@ -4,6 +4,7 @@ import { DetectFacesException } from './detect_faces_exception'
4
4
  export class DetectFacesResponse {
5
5
  detection
6
6
  scenario
7
+ transactionId
7
8
  error
8
9
  allDetections
9
10
 
@@ -13,6 +14,7 @@ export class DetectFacesResponse {
13
14
 
14
15
  result.detection = DetectFaceResult.fromJson(jsonObject["detection"])
15
16
  result.scenario = jsonObject["scenario"]
17
+ result.transactionId = jsonObject["transactionId"]
16
18
  result.error = DetectFacesException.fromJson(jsonObject["error"])
17
19
  result.allDetections = []
18
20
  if (jsonObject["allDetections"] != null)
@@ -27,6 +29,7 @@ export class DetectFacesResponse {
27
29
  "detection": this.detection?.toJson(),
28
30
  "allDetections": this.allDetections?.map(e => e.toJson()),
29
31
  "scenario": this.scenario,
32
+ "transactionId": this.transactionId,
30
33
  "error": this.error?.toJson(),
31
34
  }
32
35
  }
@@ -10,6 +10,9 @@ export class FaceCaptureConfig {
10
10
  detectOcclusion
11
11
  showFaceAnimation
12
12
  preventScreenRecording
13
+ usbCamera
14
+ usbCameraMirrorPreview
15
+ rejectMultipleFaces
13
16
  cameraPositionIOS
14
17
  cameraPositionAndroid
15
18
  screenOrientation
@@ -25,6 +28,9 @@ export class FaceCaptureConfig {
25
28
  this.detectOcclusion = options?.detectOcclusion ?? true
26
29
  this.showFaceAnimation = options?.showFaceAnimation ?? true
27
30
  this.preventScreenRecording = options?.preventScreenRecording ?? false
31
+ this.usbCamera = options?.usbCamera ?? false
32
+ this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
33
+ this.rejectMultipleFaces = options?.rejectMultipleFaces ?? false
28
34
  this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
29
35
  this.cameraPositionAndroid = options?.cameraPositionAndroid
30
36
  this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
@@ -44,6 +50,9 @@ export class FaceCaptureConfig {
44
50
  result.detectOcclusion = jsonObject["detectOcclusion"]
45
51
  result.showFaceAnimation = jsonObject["showFaceAnimation"]
46
52
  result.preventScreenRecording = jsonObject["preventScreenRecording"]
53
+ result.usbCamera = jsonObject["usbCamera"]
54
+ result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
55
+ result.rejectMultipleFaces = jsonObject["rejectMultipleFaces"]
47
56
  result.cameraPositionAndroid = jsonObject["cameraPositionAndroid"]
48
57
  result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
49
58
  result.screenOrientation = jsonObject["screenOrientation"]
@@ -63,6 +72,9 @@ export class FaceCaptureConfig {
63
72
  "detectOcclusion": this.detectOcclusion,
64
73
  "showFaceAnimation": this.showFaceAnimation,
65
74
  "preventScreenRecording": this.preventScreenRecording,
75
+ "usbCamera": this.usbCamera,
76
+ "usbCameraMirrorPreview": this.usbCameraMirrorPreview,
77
+ "rejectMultipleFaces": this.rejectMultipleFaces,
66
78
  "cameraPositionAndroid": this.cameraPositionAndroid,
67
79
  "cameraPositionIOS": this.cameraPositionIOS,
68
80
  "screenOrientation": this.screenOrientation,
@@ -15,6 +15,8 @@ export class EnrollmentConfig {
15
15
  screenOrientation
16
16
  locationTrackingEnabled
17
17
  preventScreenRecording
18
+ usbCamera
19
+ usbCameraMirrorPreview
18
20
  attemptsCount
19
21
  recordingProcess
20
22
  livenessType
@@ -35,6 +37,8 @@ export class EnrollmentConfig {
35
37
  this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
36
38
  this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
37
39
  this.preventScreenRecording = options?.preventScreenRecording ?? false
40
+ this.usbCamera = options?.usbCamera ?? false
41
+ this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
38
42
  this.attemptsCount = options?.attemptsCount ?? 0
39
43
  this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
40
44
  this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
@@ -59,6 +63,8 @@ export class EnrollmentConfig {
59
63
  result.screenOrientation = jsonObject["screenOrientation"]
60
64
  result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
61
65
  result.preventScreenRecording = jsonObject["preventScreenRecording"]
66
+ result.usbCamera = jsonObject["usbCamera"]
67
+ result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
62
68
  result.attemptsCount = jsonObject["attemptsCount"]
63
69
  result.recordingProcess = jsonObject["recordingProcess"]
64
70
  result.livenessType = jsonObject["livenessType"]
@@ -83,6 +89,8 @@ export class EnrollmentConfig {
83
89
  "screenOrientation": this.screenOrientation,
84
90
  "locationTrackingEnabled": this.locationTrackingEnabled,
85
91
  "preventScreenRecording": this.preventScreenRecording,
92
+ "usbCamera": this.usbCamera,
93
+ "usbCameraMirrorPreview": this.usbCameraMirrorPreview,
86
94
  "attemptsCount": this.attemptsCount,
87
95
  "recordingProcess": this.recordingProcess,
88
96
  "livenessType": this.livenessType,
@@ -12,6 +12,8 @@ export class LivenessConfig {
12
12
  screenOrientation
13
13
  locationTrackingEnabled
14
14
  preventScreenRecording
15
+ usbCamera
16
+ usbCameraMirrorPreview
15
17
  attemptsCount
16
18
  recordingProcess
17
19
  livenessType
@@ -30,6 +32,8 @@ export class LivenessConfig {
30
32
  this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
31
33
  this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
32
34
  this.preventScreenRecording = options?.preventScreenRecording ?? false
35
+ this.usbCamera = options?.usbCamera ?? false
36
+ this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
33
37
  this.attemptsCount = options?.attemptsCount ?? 0
34
38
  this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
35
39
  this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
@@ -52,6 +56,8 @@ export class LivenessConfig {
52
56
  result.screenOrientation = jsonObject["screenOrientation"]
53
57
  result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
54
58
  result.preventScreenRecording = jsonObject["preventScreenRecording"]
59
+ result.usbCamera = jsonObject["usbCamera"]
60
+ result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
55
61
  result.attemptsCount = jsonObject["attemptsCount"]
56
62
  result.recordingProcess = jsonObject["recordingProcess"]
57
63
  result.livenessType = jsonObject["livenessType"]
@@ -74,6 +80,8 @@ export class LivenessConfig {
74
80
  "screenOrientation": this.screenOrientation,
75
81
  "locationTrackingEnabled": this.locationTrackingEnabled,
76
82
  "preventScreenRecording": this.preventScreenRecording,
83
+ "usbCamera": this.usbCamera,
84
+ "usbCameraMirrorPreview": this.usbCameraMirrorPreview,
77
85
  "attemptsCount": this.attemptsCount,
78
86
  "recordingProcess": this.recordingProcess,
79
87
  "livenessType": this.livenessType,
@@ -38,6 +38,8 @@ export const LivenessProcessStatus = {
38
38
  FAILED: 12,
39
39
  RETRY: 13,
40
40
  SUCCESS: 14,
41
- BLINK: 15,
42
- BAD_FACE_QUALITY: 16,
41
+ REMOVE_OCCLUSION: 15,
42
+ BLINK: 16,
43
+ BAD_FACE_QUALITY: 17,
44
+ TOO_MANY_FACES: 18,
43
45
  }
@@ -13,6 +13,8 @@ export class VerificationConfig {
13
13
  screenOrientation
14
14
  locationTrackingEnabled
15
15
  preventScreenRecording
16
+ usbCamera
17
+ usbCameraMirrorPreview
16
18
  attemptsCount
17
19
  recordingProcess
18
20
  livenessType
@@ -34,6 +36,8 @@ export class VerificationConfig {
34
36
  this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
35
37
  this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
36
38
  this.preventScreenRecording = options?.preventScreenRecording ?? false
39
+ this.usbCamera = options?.usbCamera ?? false
40
+ this.usbCameraMirrorPreview = options?.usbCameraMirrorPreview ?? true
37
41
  this.attemptsCount = options?.attemptsCount ?? 0
38
42
  this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
39
43
  this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
@@ -57,6 +61,8 @@ export class VerificationConfig {
57
61
  result.screenOrientation = jsonObject["screenOrientation"]
58
62
  result.locationTrackingEnabled = jsonObject["locationTrackingEnabled"]
59
63
  result.preventScreenRecording = jsonObject["preventScreenRecording"]
64
+ result.usbCamera = jsonObject["usbCamera"]
65
+ result.usbCameraMirrorPreview = jsonObject["usbCameraMirrorPreview"]
60
66
  result.attemptsCount = jsonObject["attemptsCount"]
61
67
  result.recordingProcess = jsonObject["recordingProcess"]
62
68
  result.livenessType = jsonObject["livenessType"]
@@ -81,6 +87,8 @@ export class VerificationConfig {
81
87
  "screenOrientation": this.screenOrientation,
82
88
  "locationTrackingEnabled": this.locationTrackingEnabled,
83
89
  "preventScreenRecording": this.preventScreenRecording,
90
+ "usbCamera": this.usbCamera,
91
+ "usbCameraMirrorPreview": this.usbCameraMirrorPreview,
84
92
  "attemptsCount": this.attemptsCount,
85
93
  "recordingProcess": this.recordingProcess,
86
94
  "livenessType": this.livenessType,
@@ -6,6 +6,7 @@ export class MatchFacesResponse {
6
6
  results
7
7
  detections
8
8
  tag
9
+ transactionId
9
10
  error
10
11
 
11
12
  static fromJson(jsonObject) {
@@ -21,6 +22,7 @@ export class MatchFacesResponse {
21
22
  for (const item of jsonObject["detections"])
22
23
  result.detections.push(MatchFacesDetection.fromJson(item))
23
24
  result.tag = jsonObject["tag"]
25
+ result.transactionId = jsonObject["transactionId"]
24
26
  result.error = MatchFacesException.fromJson(jsonObject["error"])
25
27
 
26
28
  return result
@@ -31,6 +33,7 @@ export class MatchFacesResponse {
31
33
  "results": this.results?.map(e => e.toJson()),
32
34
  "detections": this.detections?.map(e => e.toJson()),
33
35
  "tag": this.tag,
36
+ "transactionId": this.transactionId,
34
37
  "error": this.error?.toJson(),
35
38
  }
36
39
  }