@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.
Files changed (118) hide show
  1. package/RNFaceSDK.podspec +2 -2
  2. package/android/build.gradle +2 -2
  3. package/android/cordova.gradle +2 -2
  4. package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +91 -0
  5. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +106 -3
  6. package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +39 -1
  7. package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +0 -1
  8. package/examples/capacitor/README.md +1 -1
  9. package/examples/capacitor/package.json +2 -2
  10. package/examples/capacitor/scripts/android.sh +3 -1
  11. package/examples/capacitor/scripts/ios.sh +3 -1
  12. package/examples/capacitor/scripts/setup.sh +2 -0
  13. package/examples/ionic/README.md +1 -1
  14. package/examples/ionic/config.xml +0 -2
  15. package/examples/ionic/index.tsx +1 -1
  16. package/examples/ionic/package-lock.json +2360 -1733
  17. package/examples/ionic/package.json +21 -25
  18. package/examples/ionic/scripts/android.sh +4 -1
  19. package/examples/ionic/scripts/ios.sh +4 -1
  20. package/examples/ionic/scripts/setup.sh +2 -0
  21. package/examples/ionic/tsconfig.json +1 -1
  22. package/examples/react_native/README.md +1 -1
  23. package/examples/react_native/package.json +2 -2
  24. package/examples/react_native/scripts/android.sh +5 -5
  25. package/examples/react_native/scripts/ios.sh +5 -5
  26. package/examples/react_native/scripts/setup.sh +2 -0
  27. package/ios/Config.swift +107 -1
  28. package/ios/Decoder.swift +71 -3
  29. package/ios/Main.swift +24 -4
  30. package/package.json +1 -1
  31. package/plugin.xml +2 -2
  32. package/test/json.tsx +135 -57
  33. package/test/package-lock.json +2 -5
  34. package/test/test.tsx +183 -60
  35. package/www/capacitor/customization/customization_images.js +48 -0
  36. package/www/capacitor/customization/font.js +3 -3
  37. package/www/capacitor/detect_faces/detect_faces_config.js +5 -5
  38. package/www/capacitor/detect_faces/detect_faces_request.js +2 -2
  39. package/www/capacitor/face_capture/face_capture_config.js +14 -14
  40. package/www/capacitor/image_params/output_image_crop.js +4 -4
  41. package/www/capacitor/image_params/output_image_params.js +3 -3
  42. package/www/capacitor/image_quality/image_quality_characteristic.js +4 -4
  43. package/www/capacitor/image_quality/image_quality_group.js +2 -2
  44. package/www/capacitor/index.js +153 -32
  45. package/www/capacitor/init/init_config.js +2 -2
  46. package/www/capacitor/internal/bridge.js +2 -2
  47. package/www/capacitor/internal/cordova.js +2 -2
  48. package/www/capacitor/liveness/enrollment_config.js +102 -0
  49. package/www/capacitor/liveness/enrollment_request.js +39 -0
  50. package/www/capacitor/liveness/enrollment_response.js +26 -0
  51. package/www/capacitor/liveness/error_response.js +21 -0
  52. package/www/capacitor/liveness/liveness_config.js +18 -17
  53. package/www/capacitor/liveness/liveness_exception.js +7 -5
  54. package/www/capacitor/liveness/liveness_notification.js +2 -0
  55. package/www/capacitor/liveness/verification_config.js +98 -0
  56. package/www/capacitor/liveness/verification_response.js +27 -0
  57. package/www/capacitor/liveness/verify_match_response.js +21 -0
  58. package/www/capacitor/match_faces/match_faces_config.js +3 -3
  59. package/www/capacitor/match_faces/match_faces_image.js +2 -2
  60. package/www/capacitor/match_faces/match_faces_request.js +4 -4
  61. package/www/capacitor/person_database/edit_group_persons_request.js +3 -3
  62. package/www/capacitor/person_database/person_database.js +4 -4
  63. package/www/capacitor/person_database/search_person_request.js +7 -7
  64. package/www/cordova.js +703 -173
  65. package/www/react-native/customization/customization_images.js +48 -0
  66. package/www/react-native/customization/font.js +3 -3
  67. package/www/react-native/detect_faces/detect_faces_config.js +5 -5
  68. package/www/react-native/detect_faces/detect_faces_request.js +2 -2
  69. package/www/react-native/face_capture/face_capture_config.js +14 -14
  70. package/www/react-native/image_params/output_image_crop.js +4 -4
  71. package/www/react-native/image_params/output_image_params.js +3 -3
  72. package/www/react-native/image_quality/image_quality_characteristic.js +4 -4
  73. package/www/react-native/image_quality/image_quality_group.js +2 -2
  74. package/www/react-native/index.js +153 -32
  75. package/www/react-native/init/init_config.js +2 -2
  76. package/www/react-native/internal/bridge.js +2 -2
  77. package/www/react-native/liveness/enrollment_config.js +102 -0
  78. package/www/react-native/liveness/enrollment_request.js +39 -0
  79. package/www/react-native/liveness/enrollment_response.js +26 -0
  80. package/www/react-native/liveness/error_response.js +21 -0
  81. package/www/react-native/liveness/liveness_config.js +18 -17
  82. package/www/react-native/liveness/liveness_exception.js +7 -5
  83. package/www/react-native/liveness/liveness_notification.js +2 -0
  84. package/www/react-native/liveness/verification_config.js +98 -0
  85. package/www/react-native/liveness/verification_response.js +27 -0
  86. package/www/react-native/liveness/verify_match_response.js +21 -0
  87. package/www/react-native/match_faces/match_faces_config.js +3 -3
  88. package/www/react-native/match_faces/match_faces_image.js +2 -2
  89. package/www/react-native/match_faces/match_faces_request.js +4 -4
  90. package/www/react-native/person_database/edit_group_persons_request.js +3 -3
  91. package/www/react-native/person_database/person_database.js +4 -4
  92. package/www/react-native/person_database/search_person_request.js +7 -7
  93. package/www/types/customization/customization_images.d.ts +6 -0
  94. package/www/types/customization/font.d.ts +1 -1
  95. package/www/types/detect_faces/detect_faces_config.d.ts +1 -1
  96. package/www/types/detect_faces/detect_faces_request.d.ts +1 -1
  97. package/www/types/face_capture/face_capture_config.d.ts +1 -1
  98. package/www/types/image_params/output_image_crop.d.ts +1 -1
  99. package/www/types/image_params/output_image_params.d.ts +1 -1
  100. package/www/types/image_quality/image_quality_group.d.ts +1 -1
  101. package/www/types/index.d.ts +137 -15
  102. package/www/types/init/init_config.d.ts +1 -1
  103. package/www/types/liveness/enrollment_config.d.ts +97 -0
  104. package/www/types/liveness/enrollment_request.d.ts +24 -0
  105. package/www/types/liveness/enrollment_response.d.ts +9 -0
  106. package/www/types/liveness/error_response.d.ts +6 -0
  107. package/www/types/liveness/liveness_config.d.ts +2 -1
  108. package/www/types/liveness/liveness_exception.d.ts +32 -2
  109. package/www/types/liveness/liveness_notification.d.ts +2 -0
  110. package/www/types/liveness/verification_config.d.ts +95 -0
  111. package/www/types/liveness/verification_response.d.ts +10 -0
  112. package/www/types/liveness/verify_match_response.d.ts +6 -0
  113. package/www/types/match_faces/match_faces_config.d.ts +1 -1
  114. package/www/types/match_faces/match_faces_image.d.ts +1 -1
  115. package/www/types/match_faces/match_faces_request.d.ts +1 -1
  116. package/www/types/person_database/edit_group_persons_request.d.ts +1 -1
  117. package/www/types/person_database/person_database.d.ts +2 -2
  118. package/www/types/person_database/search_person_request.d.ts +1 -1
package/test/test.tsx CHANGED
@@ -1,61 +1,184 @@
1
1
  import { compare } from './utils'
2
- import { ComparedFace, ComparedFacesPair, ComparedFacesSplit, Customization, DetectFaceResult, DetectFacesAttributeResult, DetectFacesBackendException, DetectFacesConfig, DetectFacesException, DetectFacesRequest, DetectFacesResponse, EditGroupPersonsRequest, FaceCaptureConfig, FaceCaptureException, FaceCaptureImage, FaceCaptureResponse, FaceSDKVersion, ImageQualityCharacteristic, ImageQualityRange, ImageQualityResult, ImageUpload, InitConfig, InitException, LicenseException, LivenessBackendException, LivenessConfig, LivenessException, LivenessNotification, LivenessResponse, MatchFacesBackendException, MatchFacesConfig, MatchFacesDetection, MatchFacesDetectionFace, MatchFacesException, MatchFacesImage, MatchFacesRequest, MatchFacesResponse, OutputImageCrop, OutputImageParams, Person, PersonGroup, PersonImage, Point, Rect, SearchPerson, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, Size } from '@regulaforensics/face-sdk/www/capacitor'
3
- import { comparedFace, comparedFacesPair, comparedFacesSplit, customization, detectFaceResult, detectFacesAttributeResult, detectFacesBackendException, detectFacesConfig, detectFacesException, detectFacesRequest, detectFacesResponse, editGroupPersonsRequest, faceCaptureConfig, faceCaptureException, faceCaptureImage, faceCaptureResponse, faceSDKVersion, imageQualityCharacteristic, imageQualityRange, imageQualityResult, imageUpload, initConfig, initException, licenseException, livenessBackendException, livenessConfig, livenessException, livenessNotification, livenessResponse, matchFacesBackendException, matchFacesConfig, matchFacesDetection, matchFacesDetectionFace, matchFacesException, matchFacesImage, matchFacesRequest, matchFacesResponse, outputImageCrop, outputImageParams, person, personGroup, personImage, point, rect, searchPerson, searchPersonDetection, searchPersonImage, searchPersonRequest, size } from './json'
4
-
5
- compare('customization', customization, Customization.fromJson)
6
-
7
- compare('point', point, Point.fromJson)
8
- compare('rect', rect, Rect.fromJson)
9
- compare('size', size, Size.fromJson)
10
- compare('outputImageCrop', outputImageCrop, OutputImageCrop.fromJson)
11
- compare('outputImageParams', outputImageParams, OutputImageParams.fromJson)
12
-
13
- compare('imageQualityRange', imageQualityRange, ImageQualityRange.fromJson)
14
- compare('imageQualityResult', imageQualityResult, ImageQualityResult.fromJson)
15
- compare('imageQualityCharacteristic', imageQualityCharacteristic, ImageQualityCharacteristic.fromJson)
16
-
17
- compare('faceSDKVersion', faceSDKVersion, FaceSDKVersion.fromJson)
18
- compare('initConfig', initConfig, InitConfig.fromJson)
19
- compare('licenseException', licenseException, LicenseException.fromJson)
20
- compare('initException', initException, InitException.fromJson)
21
-
22
- compare('detectFacesAttributeResult', detectFacesAttributeResult, DetectFacesAttributeResult.fromJson)
23
- compare('detectFaceResult', detectFaceResult, DetectFaceResult.fromJson)
24
- compare('detectFacesConfig', detectFacesConfig, DetectFacesConfig.fromJson)
25
- compare('detectFacesRequest', detectFacesRequest, DetectFacesRequest.fromJson)
26
- compare('detectFacesBackendException', detectFacesBackendException, DetectFacesBackendException.fromJson)
27
- compare('detectFacesException', detectFacesException, DetectFacesException.fromJson)
28
- compare('detectFacesResponse', detectFacesResponse, DetectFacesResponse.fromJson)
29
-
30
- compare('faceCaptureConfig', faceCaptureConfig, FaceCaptureConfig.fromJson)
31
- compare('faceCaptureImage', faceCaptureImage, FaceCaptureImage.fromJson)
32
- compare('faceCaptureException', faceCaptureException, FaceCaptureException.fromJson)
33
- compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson)
34
-
35
- compare('livenessConfig', livenessConfig, LivenessConfig.fromJson)
36
- compare('livenessBackendException', livenessBackendException, LivenessBackendException.fromJson)
37
- compare('livenessException', livenessException, LivenessException.fromJson)
38
- compare('livenessResponse', livenessResponse, LivenessResponse.fromJson)
39
- compare('livenessNotification', livenessNotification, LivenessNotification.fromJson)
40
-
41
- compare('matchFacesConfig', matchFacesConfig, MatchFacesConfig.fromJson)
42
- compare('matchFacesImage', matchFacesImage, MatchFacesImage.fromJson)
43
- compare('matchFacesRequest', matchFacesRequest, MatchFacesRequest.fromJson)
44
- compare('matchFacesDetectionFace', matchFacesDetectionFace, MatchFacesDetectionFace.fromJson)
45
- compare('matchFacesBackendException', matchFacesBackendException, MatchFacesBackendException.fromJson)
46
- compare('matchFacesException', matchFacesException, MatchFacesException.fromJson)
47
- compare('matchFacesDetection', matchFacesDetection, MatchFacesDetection.fromJson)
48
- compare('comparedFace', comparedFace, ComparedFace.fromJson)
49
- compare('comparedFacesPair', comparedFacesPair, ComparedFacesPair.fromJson)
50
- compare('matchFacesResponse', matchFacesResponse, MatchFacesResponse.fromJson)
51
- compare('comparedFacesSplit', comparedFacesSplit, ComparedFacesSplit.fromJson)
52
-
53
- compare('editGroupPersonsRequest', editGroupPersonsRequest, EditGroupPersonsRequest.fromJson)
54
- compare('imageUpload', imageUpload, ImageUpload.fromJson)
55
- compare('person', person, Person.fromJson)
56
- compare('personGroup', personGroup, PersonGroup.fromJson)
57
- compare('personImage', personImage, PersonImage.fromJson)
58
- compare('searchPersonDetection', searchPersonDetection, SearchPersonDetection.fromJson)
59
- compare('searchPersonImage', searchPersonImage, SearchPersonImage.fromJson)
60
- compare('searchPerson', searchPerson, SearchPerson.fromJson)
61
- compare('searchPersonRequest', searchPersonRequest, SearchPersonRequest.fromJson)
2
+ import {
3
+ ComparedFace,
4
+ ComparedFacesPair,
5
+ ComparedFacesSplit,
6
+ Customization,
7
+ DetectFaceResult,
8
+ DetectFacesAttributeResult,
9
+ DetectFacesBackendException,
10
+ DetectFacesConfig,
11
+ DetectFacesException,
12
+ DetectFacesRequest,
13
+ DetectFacesResponse,
14
+ EditGroupPersonsRequest,
15
+ FaceCaptureConfig,
16
+ FaceCaptureException,
17
+ FaceCaptureImage,
18
+ FaceCaptureResponse,
19
+ FaceSDKVersion,
20
+ ImageQualityCharacteristic,
21
+ ImageQualityRange,
22
+ ImageQualityResult,
23
+ ImageUpload,
24
+ InitConfig,
25
+ InitException,
26
+ LicenseException,
27
+ LivenessBackendException,
28
+ LivenessConfig,
29
+ LivenessException,
30
+ LivenessNotification,
31
+ LivenessResponse,
32
+ MatchFacesBackendException,
33
+ MatchFacesConfig,
34
+ MatchFacesDetection,
35
+ MatchFacesDetectionFace,
36
+ MatchFacesException,
37
+ MatchFacesImage,
38
+ MatchFacesRequest,
39
+ MatchFacesResponse,
40
+ OutputImageCrop,
41
+ OutputImageParams,
42
+ Person,
43
+ PersonGroup,
44
+ PersonImage,
45
+ Point,
46
+ Rect,
47
+ SearchPerson,
48
+ SearchPersonDetection,
49
+ SearchPersonImage,
50
+ SearchPersonRequest,
51
+ Size,
52
+ // EnrollmentConfig,
53
+ // VerificationConfig,
54
+ // EnrollmentRequest,
55
+ // ErrorResponse,
56
+ // EnrollmentResponse,
57
+ // VerifyMatchResponse,
58
+ // VerificationResponse,
59
+ } from '@regulaforensics/face-sdk/www/capacitor'
60
+ import {
61
+ comparedFace,
62
+ comparedFacesPair,
63
+ comparedFacesSplit,
64
+ customization,
65
+ detectFaceResult,
66
+ detectFacesAttributeResult,
67
+ detectFacesBackendException,
68
+ detectFacesConfig,
69
+ detectFacesException,
70
+ detectFacesRequest,
71
+ detectFacesResponse,
72
+ editGroupPersonsRequest,
73
+ faceCaptureConfig,
74
+ faceCaptureException,
75
+ faceCaptureImage,
76
+ faceCaptureResponse,
77
+ faceSDKVersion,
78
+ imageQualityCharacteristic,
79
+ imageQualityRange,
80
+ imageQualityResult,
81
+ imageUpload,
82
+ initConfig,
83
+ initException,
84
+ licenseException,
85
+ livenessBackendException,
86
+ livenessConfig,
87
+ livenessException,
88
+ livenessNotification,
89
+ livenessResponse,
90
+ matchFacesBackendException,
91
+ matchFacesConfig,
92
+ matchFacesDetection,
93
+ matchFacesDetectionFace,
94
+ matchFacesException,
95
+ matchFacesImage,
96
+ matchFacesRequest,
97
+ matchFacesResponse,
98
+ outputImageCrop,
99
+ outputImageParams,
100
+ person,
101
+ personGroup,
102
+ personImage,
103
+ point,
104
+ rect,
105
+ searchPerson,
106
+ searchPersonDetection,
107
+ searchPersonImage,
108
+ searchPersonRequest,
109
+ size,
110
+ enrollmentConfig,
111
+ verificationConfig,
112
+ enrollmentRequest,
113
+ enrollmentRequest2,
114
+ errorResponse,
115
+ enrollmentResponse,
116
+ verifyMatchResponse,
117
+ verificationResponse,
118
+ } from './json'
119
+
120
+ compare('customization', customization, Customization.fromJson);
121
+
122
+ compare('point', point, Point.fromJson);
123
+ compare('rect', rect, Rect.fromJson);
124
+ compare('size', size, Size.fromJson);
125
+ compare('outputImageCrop', outputImageCrop, OutputImageCrop.fromJson);
126
+ compare('outputImageParams', outputImageParams, OutputImageParams.fromJson);
127
+
128
+ compare('imageQualityRange', imageQualityRange, ImageQualityRange.fromJson);
129
+ compare('imageQualityResult', imageQualityResult, ImageQualityResult.fromJson);
130
+ compare('imageQualityCharacteristic', imageQualityCharacteristic, ImageQualityCharacteristic.fromJson);
131
+
132
+ compare('faceSDKVersion', faceSDKVersion, FaceSDKVersion.fromJson);
133
+ compare('initConfig', initConfig, InitConfig.fromJson);
134
+ compare('licenseException', licenseException, LicenseException.fromJson);
135
+ compare('initException', initException, InitException.fromJson);
136
+
137
+ compare('detectFacesAttributeResult', detectFacesAttributeResult, DetectFacesAttributeResult.fromJson);
138
+ compare('detectFaceResult', detectFaceResult, DetectFaceResult.fromJson);
139
+ compare('detectFacesConfig', detectFacesConfig, DetectFacesConfig.fromJson);
140
+ compare('detectFacesRequest', detectFacesRequest, DetectFacesRequest.fromJson);
141
+ compare('detectFacesBackendException', detectFacesBackendException, DetectFacesBackendException.fromJson);
142
+ compare('detectFacesException', detectFacesException, DetectFacesException.fromJson);
143
+ compare('detectFacesResponse', detectFacesResponse, DetectFacesResponse.fromJson);
144
+
145
+ compare('faceCaptureConfig', faceCaptureConfig, FaceCaptureConfig.fromJson);
146
+ compare('faceCaptureImage', faceCaptureImage, FaceCaptureImage.fromJson);
147
+ compare('faceCaptureException', faceCaptureException, FaceCaptureException.fromJson);
148
+ compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson);
149
+
150
+ compare('livenessConfig', livenessConfig, LivenessConfig.fromJson);
151
+ // compare('enrollmentConfig', enrollmentConfig, EnrollmentConfig.fromJson);
152
+ // compare('verificationConfig', verificationConfig, VerificationConfig.fromJson);
153
+ // compare('enrollmentRequest', enrollmentRequest, EnrollmentRequest.fromJson);
154
+ // compare('enrollmentRequest2', enrollmentRequest2, EnrollmentRequest.fromJson);
155
+ compare('livenessBackendException', livenessBackendException, LivenessBackendException.fromJson);
156
+ compare('livenessException', livenessException, LivenessException.fromJson);
157
+ compare('livenessResponse', livenessResponse, LivenessResponse.fromJson);
158
+ compare('livenessNotification', livenessNotification, LivenessNotification.fromJson);
159
+ // compare('errorResponse', errorResponse, ErrorResponse.fromJson);
160
+ // compare('enrollmentResponse', enrollmentResponse, EnrollmentResponse.fromJson);
161
+ // compare('verifyMatchResponse', verifyMatchResponse, VerifyMatchResponse.fromJson);
162
+ // compare('verificationResponse', verificationResponse, VerificationResponse.fromJson);
163
+
164
+ compare('matchFacesConfig', matchFacesConfig, MatchFacesConfig.fromJson);
165
+ compare('matchFacesImage', matchFacesImage, MatchFacesImage.fromJson);
166
+ compare('matchFacesRequest', matchFacesRequest, MatchFacesRequest.fromJson);
167
+ compare('matchFacesDetectionFace', matchFacesDetectionFace, MatchFacesDetectionFace.fromJson);
168
+ compare('matchFacesBackendException', matchFacesBackendException, MatchFacesBackendException.fromJson);
169
+ compare('matchFacesException', matchFacesException, MatchFacesException.fromJson);
170
+ compare('matchFacesDetection', matchFacesDetection, MatchFacesDetection.fromJson);
171
+ compare('comparedFace', comparedFace, ComparedFace.fromJson);
172
+ compare('comparedFacesPair', comparedFacesPair, ComparedFacesPair.fromJson);
173
+ compare('matchFacesResponse', matchFacesResponse, MatchFacesResponse.fromJson);
174
+ compare('comparedFacesSplit', comparedFacesSplit, ComparedFacesSplit.fromJson);
175
+
176
+ compare('editGroupPersonsRequest', editGroupPersonsRequest, EditGroupPersonsRequest.fromJson);
177
+ compare('imageUpload', imageUpload, ImageUpload.fromJson);
178
+ compare('person', person, Person.fromJson);
179
+ compare('personGroup', personGroup, PersonGroup.fromJson);
180
+ compare('personImage', personImage, PersonImage.fromJson);
181
+ compare('searchPersonDetection', searchPersonDetection, SearchPersonDetection.fromJson);
182
+ compare('searchPersonImage', searchPersonImage, SearchPersonImage.fromJson);
183
+ compare('searchPerson', searchPerson, SearchPerson.fromJson);
184
+ compare('searchPersonRequest', searchPersonRequest, SearchPersonRequest.fromJson);
@@ -73,6 +73,42 @@ export class CustomizationImages {
73
73
  this._set({ "retryScreenHintGeo": val })
74
74
  }
75
75
 
76
+ _retryScreenHintBadSelfieQuality
77
+ set retryScreenHintBadSelfieQuality(val) {
78
+ this._retryScreenHintBadSelfieQuality = val
79
+ this._set({ "retryScreenHintBadSelfieQuality": val })
80
+ }
81
+
82
+ _retryScreenHintCleanLens
83
+ set retryScreenHintCleanLens(val) {
84
+ this._retryScreenHintCleanLens = val
85
+ this._set({ "retryScreenHintCleanLens": val })
86
+ }
87
+
88
+ _retryScreenHintAddIllumination
89
+ set retryScreenHintAddIllumination(val) {
90
+ this._retryScreenHintAddIllumination = val
91
+ this._set({ "retryScreenHintAddIllumination": val })
92
+ }
93
+
94
+ _retryScreenHintChangeBackground
95
+ set retryScreenHintChangeBackground(val) {
96
+ this._retryScreenHintChangeBackground = val
97
+ this._set({ "retryScreenHintChangeBackground": val })
98
+ }
99
+
100
+ _retryScreenHintFaceOcclusions
101
+ set retryScreenHintFaceOcclusions(val) {
102
+ this._retryScreenHintFaceOcclusions = val
103
+ this._set({ "retryScreenHintFaceOcclusions": val })
104
+ }
105
+
106
+ _retryScreenHintCovering
107
+ set retryScreenHintCovering(val) {
108
+ this._retryScreenHintCovering = val
109
+ this._set({ "retryScreenHintCovering": val })
110
+ }
111
+
76
112
  _processingScreenCloseButton
77
113
  set processingScreenCloseButton(val) {
78
114
  this._processingScreenCloseButton = val
@@ -100,6 +136,12 @@ export class CustomizationImages {
100
136
  result._retryScreenHintEnvironment = jsonObject["retryScreenHintEnvironment"]
101
137
  result._retryScreenHintSubject = jsonObject["retryScreenHintSubject"]
102
138
  result._retryScreenHintGeo = jsonObject["retryScreenHintGeo"]
139
+ result._retryScreenHintBadSelfieQuality = jsonObject["retryScreenHintBadSelfieQuality"]
140
+ result._retryScreenHintCleanLens = jsonObject["retryScreenHintCleanLens"]
141
+ result._retryScreenHintAddIllumination = jsonObject["retryScreenHintAddIllumination"]
142
+ result._retryScreenHintChangeBackground = jsonObject["retryScreenHintChangeBackground"]
143
+ result._retryScreenHintFaceOcclusions = jsonObject["retryScreenHintFaceOcclusions"]
144
+ result._retryScreenHintCovering = jsonObject["retryScreenHintCovering"]
103
145
  result._processingScreenCloseButton = jsonObject["processingScreenCloseButton"]
104
146
  result._successScreenImage = jsonObject["successScreenImage"]
105
147
 
@@ -120,6 +162,12 @@ export class CustomizationImages {
120
162
  "retryScreenHintEnvironment": this._retryScreenHintEnvironment,
121
163
  "retryScreenHintSubject": this._retryScreenHintSubject,
122
164
  "retryScreenHintGeo": this._retryScreenHintGeo,
165
+ "retryScreenHintBadSelfieQuality": this._retryScreenHintBadSelfieQuality,
166
+ "retryScreenHintCleanLens": this._retryScreenHintCleanLens,
167
+ "retryScreenHintAddIllumination": this._retryScreenHintAddIllumination,
168
+ "retryScreenHintChangeBackground": this._retryScreenHintChangeBackground,
169
+ "retryScreenHintFaceOcclusions": this._retryScreenHintFaceOcclusions,
170
+ "retryScreenHintCovering": this._retryScreenHintCovering,
123
171
  "processingScreenCloseButton": this._processingScreenCloseButton,
124
172
  "successScreenImage": this._successScreenImage,
125
173
  }
@@ -3,10 +3,10 @@ export class Font {
3
3
  size
4
4
  style
5
5
 
6
- constructor(name, params) {
6
+ constructor(name, options) {
7
7
  this.name = name
8
- this.size = params?.size
9
- this.style = params?.style
8
+ this.size = options?.size
9
+ this.style = options?.style
10
10
  }
11
11
 
12
12
  static fromJson(jsonObject) {
@@ -7,12 +7,12 @@ export class DetectFacesConfig {
7
7
  outputImageParams
8
8
  onlyCentralFace
9
9
 
10
- constructor(params) {
10
+ constructor(options) {
11
11
  this.onlyCentralFace = false
12
- this.attributes = params?.attributes
13
- this.customQuality = params?.customQuality
14
- this.outputImageParams = params?.outputImageParams
15
- this.onlyCentralFace = params?.onlyCentralFace ?? this.onlyCentralFace
12
+ this.attributes = options?.attributes
13
+ this.customQuality = options?.customQuality
14
+ this.outputImageParams = options?.outputImageParams
15
+ this.onlyCentralFace = options?.onlyCentralFace ?? this.onlyCentralFace
16
16
  }
17
17
 
18
18
  static fromJson(jsonObject) {
@@ -6,10 +6,10 @@ export class DetectFacesRequest {
6
6
  configuration
7
7
  tag
8
8
 
9
- constructor(image, configuration, params) {
9
+ constructor(image, configuration, options) {
10
10
  this.image = image
11
11
  this.configuration = configuration
12
- this.tag = params?.tag
12
+ this.tag = options?.tag
13
13
  }
14
14
 
15
15
  static qualityFull(image) {
@@ -16,20 +16,20 @@ export class FaceCaptureConfig {
16
16
  timeout
17
17
  holdStillDuration
18
18
 
19
- constructor(params) {
20
- this.copyright = params?.copyright ?? true
21
- this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
22
- this.closeButtonEnabled = params?.closeButtonEnabled ?? true
23
- this.torchButtonEnabled = params?.torchButtonEnabled ?? true
24
- this.vibrateOnSteps = params?.vibrateOnSteps ?? true
25
- this.detectOcclusion = params?.detectOcclusion ?? true
26
- this.showFaceAnimation = params?.showFaceAnimation ?? true
27
- this.preventScreenRecording = params?.preventScreenRecording ?? false
28
- this.cameraPositionIOS = params?.cameraPositionIOS ?? CameraPosition.FRONT
29
- this.cameraPositionAndroid = params?.cameraPositionAndroid
30
- this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
31
- this.timeout = params?.timeout
32
- this.holdStillDuration = params?.holdStillDuration
19
+ constructor(options) {
20
+ this.copyright = options?.copyright ?? true
21
+ this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
22
+ this.closeButtonEnabled = options?.closeButtonEnabled ?? true
23
+ this.torchButtonEnabled = options?.torchButtonEnabled ?? true
24
+ this.vibrateOnSteps = options?.vibrateOnSteps ?? true
25
+ this.detectOcclusion = options?.detectOcclusion ?? true
26
+ this.showFaceAnimation = options?.showFaceAnimation ?? true
27
+ this.preventScreenRecording = options?.preventScreenRecording ?? false
28
+ this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
29
+ this.cameraPositionAndroid = options?.cameraPositionAndroid
30
+ this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
31
+ this.timeout = options?.timeout
32
+ this.holdStillDuration = options?.holdStillDuration
33
33
  }
34
34
 
35
35
  static fromJson(jsonObject) {
@@ -6,11 +6,11 @@ export class OutputImageCrop {
6
6
  padColor
7
7
  returnOriginalRect
8
8
 
9
- constructor(type, params) {
9
+ constructor(type, options) {
10
10
  this.type = type
11
- this.size = params?.size
12
- this.padColor = params?.padColor
13
- this.returnOriginalRect = params?.returnOriginalRect ?? false
11
+ this.size = options?.size
12
+ this.padColor = options?.padColor
13
+ this.returnOriginalRect = options?.returnOriginalRect ?? false
14
14
  }
15
15
 
16
16
  static fromJson(jsonObject) {
@@ -4,9 +4,9 @@ export class OutputImageParams {
4
4
  crop
5
5
  backgroundColor
6
6
 
7
- constructor(params) {
8
- this.crop = params?.crop
9
- this.backgroundColor = params?.backgroundColor
7
+ constructor(options) {
8
+ this.crop = options?.crop
9
+ this.backgroundColor = options?.backgroundColor
10
10
  }
11
11
 
12
12
  static fromJson(jsonObject) {
@@ -6,12 +6,12 @@ export class ImageQualityCharacteristic {
6
6
  customRange
7
7
  color
8
8
 
9
- static _create(name, params) {
9
+ static _create(name, options) {
10
10
  var result = new ImageQualityCharacteristic()
11
11
  result.characteristicName = name
12
- result.recommendedRange = params?.recommended
13
- result.customRange = params?.custom
14
- result.color = params?.color
12
+ result.recommendedRange = options?.recommended
13
+ result.customRange = options?.custom
14
+ result.color = options?.color
15
15
  return result
16
16
  }
17
17
 
@@ -289,10 +289,10 @@ export class _Background {
289
289
  return ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OTHER_FACES)
290
290
  }
291
291
 
292
- backgroundColorMatch(params) {
292
+ backgroundColorMatch(options) {
293
293
  return ImageQualityCharacteristic._create(
294
294
  ImageQualityCharacteristicName.BACKGROUND_COLOR_MATCH,
295
- { color: params?.color }
295
+ { color: options?.color }
296
296
  )
297
297
  }
298
298