@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
@@ -0,0 +1,26 @@
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
+ }
@@ -0,0 +1,21 @@
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
+ }
@@ -19,23 +19,23 @@ export class LivenessConfig {
19
19
  skipStep
20
20
  metadata
21
21
 
22
- constructor(params) {
23
- this.copyright = params?.copyright ?? true
24
- this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
25
- this.closeButtonEnabled = params?.closeButtonEnabled ?? true
26
- this.torchButtonEnabled = params?.torchButtonEnabled ?? true
27
- this.vibrateOnSteps = params?.vibrateOnSteps ?? true
28
- this.cameraPositionIOS = params?.cameraPositionIOS ?? CameraPosition.FRONT
29
- this.cameraPositionAndroid = params?.cameraPositionAndroid
30
- this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
31
- this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
32
- this.preventScreenRecording = params?.preventScreenRecording ?? false
33
- this.attemptsCount = params?.attemptsCount ?? 0
34
- this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
35
- this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
36
- this.tag = params?.tag
37
- this.skipStep = params?.skipStep ?? []
38
- this.metadata = params?.metadata
22
+ constructor(options) {
23
+ this.copyright = options?.copyright ?? true
24
+ this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
25
+ this.closeButtonEnabled = options?.closeButtonEnabled ?? true
26
+ this.torchButtonEnabled = options?.torchButtonEnabled ?? true
27
+ this.vibrateOnSteps = options?.vibrateOnSteps ?? true
28
+ this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
29
+ this.cameraPositionAndroid = options?.cameraPositionAndroid
30
+ this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
31
+ this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
32
+ this.preventScreenRecording = options?.preventScreenRecording ?? false
33
+ this.attemptsCount = options?.attemptsCount ?? 0
34
+ this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
35
+ this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
36
+ this.tag = options?.tag
37
+ this.skipStep = options?.skipStep ?? []
38
+ this.metadata = options?.metadata
39
39
  }
40
40
 
41
41
  static fromJson(jsonObject) {
@@ -93,6 +93,7 @@ export const RecordingProcess = {
93
93
  export const LivenessType = {
94
94
  ACTIVE: 0,
95
95
  PASSIVE: 1,
96
+ PASSIVE_WITH_BLINK: 2,
96
97
  }
97
98
 
98
99
  export const LivenessSkipStep = {
@@ -35,9 +35,11 @@ export const LivenessErrorCode = {
35
35
  PROCESSING_FAILED: 6,
36
36
  PROCESSING_FRAME_FAILED: 7,
37
37
  APPLICATION_INACTIVE: 8,
38
- CONTEXT_IS_NULL: 9,
39
- IN_PROGRESS_ALREADY: 10,
40
- ZOOM_NOT_SUPPORTED: 11,
38
+ BAD_FACE_QUALITY: 9,
39
+ BAD_FRAME_SIZE: 10,
40
+ CAMERA_NOT_AVAILABLE: 11,
41
41
  CAMERA_NO_PERMISSION: 12,
42
- CAMERA_NOT_AVAILABLE: 13,
43
- }
42
+ CONTEXT_IS_NULL: 13,
43
+ IN_PROGRESS_ALREADY: 14,
44
+ ZOOM_NOT_SUPPORTED: 15,
45
+ }
@@ -38,4 +38,6 @@ export const LivenessProcessStatus = {
38
38
  FAILED: 12,
39
39
  RETRY: 13,
40
40
  SUCCESS: 14,
41
+ BLINK: 15,
42
+ BAD_FACE_QUALITY: 16,
41
43
  }
@@ -0,0 +1,98 @@
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(options) {
27
+ this.copyright = options?.copyright ?? true
28
+ this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
29
+ this.closeButtonEnabled = options?.closeButtonEnabled ?? true
30
+ this.torchButtonEnabled = options?.torchButtonEnabled ?? true
31
+ this.vibrateOnSteps = options?.vibrateOnSteps ?? true
32
+ this.cameraPositionIOS = options?.cameraPositionIOS ?? CameraPosition.FRONT
33
+ this.cameraPositionAndroid = options?.cameraPositionAndroid
34
+ this.screenOrientation = options?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
35
+ this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
36
+ this.preventScreenRecording = options?.preventScreenRecording ?? false
37
+ this.attemptsCount = options?.attemptsCount ?? 0
38
+ this.recordingProcess = options?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
39
+ this.livenessType = options?.livenessType ?? LivenessType.ACTIVE
40
+ this.tag = options?.tag
41
+ this.skipStep = options?.skipStep ?? []
42
+ this.metadata = options?.metadata
43
+ this.personId = options?.personId
44
+ this.groupId = options?.groupId
45
+ this.threshold = options?.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
+ }
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,21 @@
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
+ }
@@ -2,9 +2,9 @@ export class MatchFacesConfig {
2
2
  processingMode
3
3
  locationTrackingEnabled
4
4
 
5
- constructor(params) {
6
- this.processingMode = params?.processingMode ?? ProcessingMode.ONLINE
7
- this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
5
+ constructor(options) {
6
+ this.processingMode = options?.processingMode ?? ProcessingMode.ONLINE
7
+ this.locationTrackingEnabled = options?.locationTrackingEnabled ?? true
8
8
  }
9
9
 
10
10
  static fromJson(jsonObject) {
@@ -4,10 +4,10 @@ export class MatchFacesImage {
4
4
  detectAll
5
5
  identifier
6
6
 
7
- constructor(image, imageType, params) {
7
+ constructor(image, imageType, options) {
8
8
  this.image = image
9
9
  this.imageType = imageType
10
- this.detectAll = params?.detectAll ?? false
10
+ this.detectAll = options?.detectAll ?? false
11
11
  this.identifier = ""
12
12
  }
13
13
 
@@ -7,11 +7,11 @@ export class MatchFacesRequest {
7
7
  tag
8
8
  metadata
9
9
 
10
- constructor(images, params) {
10
+ constructor(images, options) {
11
11
  this.images = images
12
- this.outputImageParams = params?.outputImageParams
13
- this.tag = params?.tag
14
- this.metadata = params?.metadata
12
+ this.outputImageParams = options?.outputImageParams
13
+ this.tag = options?.tag
14
+ this.metadata = options?.metadata
15
15
  }
16
16
 
17
17
  static fromJson(jsonObject) {
@@ -2,9 +2,9 @@ export class EditGroupPersonsRequest {
2
2
  personIdsToAdd
3
3
  personIdsToRemove
4
4
 
5
- constructor(params) {
6
- this.personIdsToAdd = params?.personIdsToAdd
7
- this.personIdsToRemove = params?.personIdsToRemove
5
+ constructor(options) {
6
+ this.personIdsToAdd = options?.personIdsToAdd
7
+ this.personIdsToRemove = options?.personIdsToRemove
8
8
  }
9
9
 
10
10
  static fromJson(jsonObject) {
@@ -6,8 +6,8 @@ import { PersonGroup } from './person_group'
6
6
  import { SearchPerson } from './search_person'
7
7
 
8
8
  export class PersonDatabase {
9
- async createPerson(name, params) {
10
- var response = await exec("createPerson", [name, params?.groupIds, params?.metadata])
9
+ async createPerson(name, options) {
10
+ var response = await exec("createPerson", [name, options?.groupIds, options?.metadata])
11
11
  return this._itemResponseFromJson(response, Person.fromJson)
12
12
  }
13
13
 
@@ -51,8 +51,8 @@ export class PersonDatabase {
51
51
  return this._listResponseFromJson(response, PersonImage.fromJson)
52
52
  }
53
53
 
54
- async createGroup(name, params) {
55
- var response = await exec("createGroup", [name, params?.metadata])
54
+ async createGroup(name, options) {
55
+ var response = await exec("createGroup", [name, options?.metadata])
56
56
  return this._itemResponseFromJson(response, PersonGroup.fromJson)
57
57
  }
58
58
 
@@ -10,14 +10,14 @@ export class SearchPersonRequest {
10
10
  detectAll
11
11
  outputImageParams
12
12
 
13
- constructor(image, params) {
13
+ constructor(image, options) {
14
14
  this.imageUpload = image
15
- this.groupIdsForSearch = params?.groupIdsForSearch
16
- this.threshold = params?.threshold
17
- this.limit = params?.limit
18
- this.tag = params?.tag
19
- this.detectAll = params?.detectAll ?? false
20
- this.outputImageParams = params?.outputImageParams
15
+ this.groupIdsForSearch = options?.groupIdsForSearch
16
+ this.threshold = options?.threshold
17
+ this.limit = options?.limit
18
+ this.tag = options?.tag
19
+ this.detectAll = options?.detectAll ?? false
20
+ this.outputImageParams = options?.outputImageParams
21
21
  }
22
22
 
23
23
  static fromJson(jsonObject) {
@@ -11,6 +11,12 @@ export class CustomizationImages {
11
11
  set retryScreenHintEnvironment(val: string)
12
12
  set retryScreenHintSubject(val: string)
13
13
  set retryScreenHintGeo(val: string)
14
+ set retryScreenHintBadSelfieQuality(val: string)
15
+ set retryScreenHintCleanLens(val: string)
16
+ set retryScreenHintAddIllumination(val: string)
17
+ set retryScreenHintChangeBackground(val: string)
18
+ set retryScreenHintFaceOcclusions(val: string)
19
+ set retryScreenHintCovering(val: string)
14
20
  set processingScreenCloseButton(val: string)
15
21
  set successScreenImage(val: string)
16
22
 
@@ -21,7 +21,7 @@ export class Font {
21
21
 
22
22
  constructor(
23
23
  name: string,
24
- params?: {
24
+ options?: {
25
25
  size?: number,
26
26
  style?: FontStyle
27
27
  }
@@ -27,7 +27,7 @@ export class DetectFacesConfig {
27
27
  onlyCentralFace: boolean
28
28
 
29
29
  constructor(
30
- params?: {
30
+ options?: {
31
31
  attributes?: Array<DetectFacesAttribute>,
32
32
  customQuality?: Array<ImageQualityCharacteristic>,
33
33
  outputImageParams?: OutputImageParams,
@@ -17,7 +17,7 @@ export class DetectFacesRequest {
17
17
  constructor(
18
18
  image: string,
19
19
  config: DetectFacesConfig,
20
- params?: {
20
+ options?: {
21
21
  tag?: string,
22
22
  }
23
23
  )
@@ -32,7 +32,7 @@ export class FaceCaptureConfig {
32
32
  holdStillDuration?: number
33
33
 
34
34
  constructor(
35
- params?: {
35
+ options?: {
36
36
  copyright?: boolean
37
37
  cameraSwitchEnabled?: boolean
38
38
  closeButtonEnabled?: boolean
@@ -29,7 +29,7 @@ export class OutputImageCrop {
29
29
 
30
30
  constructor(
31
31
  type: OutputImageCropAspectRatio,
32
- params?: {
32
+ options?: {
33
33
  size?: Size,
34
34
  padColor?: number,
35
35
  returnOriginalRect?: boolean,
@@ -20,7 +20,7 @@ export class OutputImageParams {
20
20
  get backgroundColor(): number | null
21
21
 
22
22
  constructor(
23
- params?: {
23
+ options?: {
24
24
  crop?: OutputImageCrop,
25
25
  backgroundColor?: number,
26
26
  }
@@ -406,7 +406,7 @@ export class _Background {
406
406
  * Default color is white (RGB(255,255,255) or hex #FFFFFF)
407
407
  * The range is from 0 to 1 where 1 is full background color match.
408
408
  */
409
- backgroundColorMatch(params?: { color?: number }): ImageQualityCharacteristic
409
+ backgroundColorMatch(options?: { color?: number }): ImageQualityCharacteristic
410
410
 
411
411
  /**
412
412
  * Whether the background color matches the required color.