@regulaforensics/face-sdk 8.4.1336-rc → 8.4.1343-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 (58) 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 → kotlin}/com/regula/plugin/facesdk/Config.kt +94 -90
  5. package/android/src/main/{java/com/regula/plugin/facesdk/Main.kt → kotlin/com/regula/plugin/facesdk/Implementation.kt} +63 -41
  6. package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/JSONConstructor.kt +123 -75
  7. package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/Utils.kt +18 -2
  8. package/examples/capacitor/package.json +2 -2
  9. package/examples/ionic/package.json +2 -2
  10. package/examples/react_native/package.json +2 -2
  11. package/ios/Config.swift +100 -104
  12. package/ios/Decoder.swift +85 -64
  13. package/ios/Utils.swift +3 -0
  14. package/package.json +1 -1
  15. package/plugin.xml +8 -8
  16. package/test/json.tsx +73 -61
  17. package/test/package-lock.json +2 -5
  18. package/test/test.tsx +8 -11
  19. package/www/capacitor/index.js +4 -11
  20. package/www/capacitor/liveness/enrollment_config.js +10 -16
  21. package/www/capacitor/liveness/enrollment_response.js +14 -10
  22. package/www/capacitor/liveness/liveness_exception.js +3 -3
  23. package/www/capacitor/liveness/verification_config.js +16 -4
  24. package/www/capacitor/liveness/{verify_match_response.js → verification_match_response.js} +5 -5
  25. package/www/capacitor/liveness/verification_response.js +9 -9
  26. package/www/capacitor/person_database/person.js +16 -7
  27. package/www/capacitor/person_database/search_person.js +9 -0
  28. package/www/capacitor/person_database/search_person_filter.js +44 -0
  29. package/www/cordova.js +238 -245
  30. package/www/react-native/index.js +4 -11
  31. package/www/react-native/liveness/enrollment_config.js +10 -16
  32. package/www/react-native/liveness/enrollment_response.js +14 -10
  33. package/www/react-native/liveness/liveness_exception.js +3 -3
  34. package/www/react-native/liveness/verification_config.js +16 -4
  35. package/www/react-native/liveness/{verify_match_response.js → verification_match_response.js} +5 -5
  36. package/www/react-native/liveness/verification_response.js +9 -9
  37. package/www/react-native/person_database/person.js +16 -7
  38. package/www/react-native/person_database/search_person.js +9 -0
  39. package/www/react-native/person_database/search_person_filter.js +44 -0
  40. package/www/types/index.d.ts +4 -8
  41. package/www/types/liveness/enrollment_config.d.ts +4 -6
  42. package/www/types/liveness/enrollment_response.d.ts +5 -4
  43. package/www/types/liveness/liveness_exception.d.ts +2 -2
  44. package/www/types/liveness/verification_config.d.ts +49 -5
  45. package/www/types/liveness/verification_match_response.d.ts +6 -0
  46. package/www/types/liveness/verification_response.d.ts +5 -5
  47. package/www/types/person_database/person.d.ts +12 -8
  48. package/www/types/person_database/search_person.d.ts +6 -0
  49. package/www/types/person_database/search_person_filter.d.ts +16 -0
  50. package/www/capacitor/liveness/enrollment_request.js +0 -39
  51. package/www/capacitor/liveness/error_response.js +0 -21
  52. package/www/react-native/liveness/enrollment_request.js +0 -39
  53. package/www/react-native/liveness/error_response.js +0 -21
  54. package/www/types/liveness/enrollment_request.d.ts +0 -24
  55. package/www/types/liveness/error_response.d.ts +0 -6
  56. package/www/types/liveness/verify_match_response.d.ts +0 -6
  57. /package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/RNFaceApiModule.kt +0 -0
  58. /package/ios/{Main.swift → Implementation.swift} +0 -0
@@ -0,0 +1,16 @@
1
+ export class SearchPersonFilter {
2
+ groups: string[]
3
+ threshold: number
4
+ limit: number
5
+ get fieldName(): string | null
6
+ get fieldValues(): string[] | null
7
+ get exclude(): boolean
8
+
9
+ constructor(options?: {
10
+ groups?: string[]
11
+ threshold?: number
12
+ limit?: number
13
+ })
14
+
15
+ filterField(fieldName: string, fieldValues: string[], options?: { exclude?: boolean }): void
16
+ }
@@ -1,39 +0,0 @@
1
- export class EnrollmentRequest {
2
- externalId
3
- groupId
4
- trustedImage
5
- trustedImageUrl
6
-
7
- static withImage(externalId, trustedImage, options) {
8
- this.externalId = externalId
9
- this.trustedImage = trustedImage
10
- this.groupId = options?.groupId
11
- }
12
-
13
- static withImageUrl(externalId, trustedImageUrl, options) {
14
- this.externalId = externalId
15
- this.trustedImageUrl = trustedImageUrl
16
- this.groupId = options?.groupId
17
- }
18
-
19
- static fromJson(jsonObject) {
20
- if (jsonObject == null) return null
21
- const result = new EnrollmentRequest()
22
-
23
- result.externalId = jsonObject["externalId"]
24
- result.groupId = jsonObject["groupId"]
25
- result.trustedImage = jsonObject["trustedImage"]
26
- result.trustedImageUrl = jsonObject["trustedImageUrl"]
27
-
28
- return result
29
- }
30
-
31
- toJson() {
32
- return {
33
- "externalId": this.externalId,
34
- "groupId": this.groupId,
35
- "trustedImage": this.trustedImage,
36
- "trustedImageUrl": this.trustedImageUrl,
37
- }
38
- }
39
- }
@@ -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,39 +0,0 @@
1
- export class EnrollmentRequest {
2
- externalId
3
- groupId
4
- trustedImage
5
- trustedImageUrl
6
-
7
- static withImage(externalId, trustedImage, options) {
8
- this.externalId = externalId
9
- this.trustedImage = trustedImage
10
- this.groupId = options?.groupId
11
- }
12
-
13
- static withImageUrl(externalId, trustedImageUrl, options) {
14
- this.externalId = externalId
15
- this.trustedImageUrl = trustedImageUrl
16
- this.groupId = options?.groupId
17
- }
18
-
19
- static fromJson(jsonObject) {
20
- if (jsonObject == null) return null
21
- const result = new EnrollmentRequest()
22
-
23
- result.externalId = jsonObject["externalId"]
24
- result.groupId = jsonObject["groupId"]
25
- result.trustedImage = jsonObject["trustedImage"]
26
- result.trustedImageUrl = jsonObject["trustedImageUrl"]
27
-
28
- return result
29
- }
30
-
31
- toJson() {
32
- return {
33
- "externalId": this.externalId,
34
- "groupId": this.groupId,
35
- "trustedImage": this.trustedImage,
36
- "trustedImageUrl": this.trustedImageUrl,
37
- }
38
- }
39
- }
@@ -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,24 +0,0 @@
1
- export class EnrollmentRequest {
2
- readonly externalId: string
3
- readonly groupId?: string
4
- readonly trustedImage?: string
5
- readonly trustedImageUrl?: string
6
-
7
- static withImage(
8
- externalId: string,
9
- trustedImage: string,
10
- options?: {
11
- groupId?: string
12
- }
13
- ): EnrollmentRequest;
14
-
15
- static withImageUrl(
16
- externalId: string,
17
- trustedImageUrl: string,
18
- options?: {
19
- groupId?: string
20
- }
21
- ): EnrollmentRequest;
22
-
23
- private constructor()
24
- }
@@ -1,6 +0,0 @@
1
- export class ErrorResponse {
2
- readonly code: number
3
- readonly message: string
4
-
5
- private constructor()
6
- }
@@ -1,6 +0,0 @@
1
- export class VerifyMatchResponse {
2
- readonly passed: boolean
3
- readonly similarity: number
4
-
5
- private constructor()
6
- }
File without changes