@regulaforensics/face-sdk 8.3.1171-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,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) {