@regulaforensics/face-sdk 8.4.1338-nightly → 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.
- package/RNFaceSDK.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/Config.kt +94 -90
- package/android/src/main/{java/com/regula/plugin/facesdk/Main.kt → kotlin/com/regula/plugin/facesdk/Implementation.kt} +63 -41
- package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/JSONConstructor.kt +123 -75
- package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/Utils.kt +18 -2
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/react_native/package.json +2 -2
- package/ios/Config.swift +100 -104
- package/ios/Decoder.swift +85 -64
- package/ios/Utils.swift +3 -0
- package/package.json +1 -1
- package/plugin.xml +7 -7
- package/test/json.tsx +73 -61
- package/test/test.tsx +8 -11
- package/www/capacitor/index.js +4 -11
- package/www/capacitor/liveness/enrollment_config.js +10 -16
- package/www/capacitor/liveness/enrollment_response.js +14 -10
- package/www/capacitor/liveness/liveness_exception.js +3 -3
- package/www/capacitor/liveness/verification_config.js +16 -4
- package/www/capacitor/liveness/{verify_match_response.js → verification_match_response.js} +5 -5
- package/www/capacitor/liveness/verification_response.js +9 -9
- package/www/capacitor/person_database/person.js +16 -7
- package/www/capacitor/person_database/search_person.js +9 -0
- package/www/capacitor/person_database/search_person_filter.js +44 -0
- package/www/cordova.js +238 -245
- package/www/react-native/index.js +4 -11
- package/www/react-native/liveness/enrollment_config.js +10 -16
- package/www/react-native/liveness/enrollment_response.js +14 -10
- package/www/react-native/liveness/liveness_exception.js +3 -3
- package/www/react-native/liveness/verification_config.js +16 -4
- package/www/react-native/liveness/{verify_match_response.js → verification_match_response.js} +5 -5
- package/www/react-native/liveness/verification_response.js +9 -9
- package/www/react-native/person_database/person.js +16 -7
- package/www/react-native/person_database/search_person.js +9 -0
- package/www/react-native/person_database/search_person_filter.js +44 -0
- package/www/types/index.d.ts +4 -8
- package/www/types/liveness/enrollment_config.d.ts +4 -6
- package/www/types/liveness/enrollment_response.d.ts +5 -4
- package/www/types/liveness/liveness_exception.d.ts +2 -2
- package/www/types/liveness/verification_config.d.ts +49 -5
- package/www/types/liveness/verification_match_response.d.ts +6 -0
- package/www/types/liveness/verification_response.d.ts +5 -5
- package/www/types/person_database/person.d.ts +12 -8
- package/www/types/person_database/search_person.d.ts +6 -0
- package/www/types/person_database/search_person_filter.d.ts +16 -0
- package/www/capacitor/liveness/enrollment_request.js +0 -39
- package/www/capacitor/liveness/error_response.js +0 -21
- package/www/react-native/liveness/enrollment_request.js +0 -39
- package/www/react-native/liveness/error_response.js +0 -21
- package/www/types/liveness/enrollment_request.d.ts +0 -24
- package/www/types/liveness/error_response.d.ts +0 -6
- package/www/types/liveness/verify_match_response.d.ts +0 -6
- /package/android/src/main/{java → kotlin}/com/regula/plugin/facesdk/RNFaceApiModule.kt +0 -0
- /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
|
-
}
|
|
File without changes
|
|
File without changes
|