@regulaforensics/face-sdk 6.3.109-beta → 6.4.18-beta

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 CHANGED
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNFaceSDK'
8
- s.version = package['version']
8
+ s.version = '6.4.18-beta'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
16
16
  s.ios.deployment_target = '11.0'
17
17
  s.source_files = 'ios/**/*.{h,m}'
18
18
  s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
19
- s.dependency 'FaceSDK', '6.3.2151'
19
+ s.dependency 'FaceSDK', '6.3.2181'
20
20
  s.dependency 'React'
21
21
  end
@@ -193,13 +193,15 @@ fun generateLivenessException(input: LivenessErrorException?) = input?.let {
193
193
  }
194
194
 
195
195
  fun livenessBackendExceptionFromJSON(input: JSONObject?) = input?.let {
196
- LivenessBackendException(LivenessBackendErrorCode.createValue(it.getInt("code")))
196
+ LivenessBackendException(LivenessBackendErrorCode.createValue(it.getInt("code")), "")
197
197
  }
198
198
 
199
199
  fun generateLivenessBackendException(input: LivenessBackendException?) = input?.let {
200
+ var message = it.message!!
201
+ if (message.startsWith(": ")) message = message.substring(2)
200
202
  mapOf(
201
203
  "code" to it.errorCode.value,
202
- "message" to it.message
204
+ "message" to message
203
205
  ).toJson()
204
206
  }
205
207
 
@@ -15,7 +15,7 @@
15
15
  "lint": "eslint"
16
16
  },
17
17
  "dependencies": {
18
- "@regulaforensics/face-sdk": "6.3.109-beta",
18
+ "@regulaforensics/face-sdk": "6.4.18-beta",
19
19
  "@regulaforensics/face-core-basic": "6.3.12-beta",
20
20
  "@awesome-cordova-plugins/camera": "6.6.0",
21
21
  "@awesome-cordova-plugins/file": "6.6.0",
@@ -14,7 +14,7 @@
14
14
  "author": "Regula Forensics Inc.",
15
15
  "license": "commercial",
16
16
  "dependencies": {
17
- "@regulaforensics/face-sdk": "6.3.109-beta",
17
+ "@regulaforensics/face-sdk": "6.4.18-beta",
18
18
  "@regulaforensics/face-core-basic": "6.3.12-beta",
19
19
  "cordova-android": "12.0.1",
20
20
  "cordova-ios": "7.0.1",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "private": true,
18
18
  "dependencies": {
19
- "@regulaforensics/face-sdk": "6.3.109-beta",
19
+ "@regulaforensics/face-sdk": "6.4.18-beta",
20
20
  "@regulaforensics/face-core-basic": "6.3.12-beta",
21
21
  "cordova-plugin-camera": "7.0.0",
22
22
  "@awesome-cordova-plugins/camera": "6.6.0",
@@ -12,7 +12,7 @@
12
12
  "test": "jest"
13
13
  },
14
14
  "dependencies": {
15
- "@regulaforensics/face-sdk": "6.3.109-beta",
15
+ "@regulaforensics/face-sdk": "6.4.18-beta",
16
16
  "@regulaforensics/face-core-basic": "6.3.12-beta",
17
17
  "react": "18.3.1",
18
18
  "react-native": "0.75.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "6.3.109-beta",
3
+ "version": "6.4.18-beta",
4
4
  "description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/face-sdk" version="6.3.109-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/face-sdk" version="6.4.18-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>FaceSDK</name>
4
4
  <description>Cordova plugin for Regula Face SDK</description>
5
5
  <license>commercial</license>
@@ -27,7 +27,7 @@
27
27
  <config>
28
28
  </config>
29
29
  <pods>
30
- <pod name="FaceSDK" spec="6.3.2151" />
30
+ <pod name="FaceSDK" spec="6.3.2181" />
31
31
  </pods>
32
32
  </podspec>
33
33
  </platform>
@@ -16,6 +16,9 @@ export class LivenessBackendException {
16
16
  export const LivenessBackendErrorCode = {
17
17
  UNDEFINED: -1,
18
18
  NO_LICENSE: 200,
19
+ NOT_INITIALIZED: 201,
20
+ COMMAND_IS_NOT_SUPPORTED: 202,
21
+ PARAMS_READ_ERROR: 203,
19
22
  LOW_QUALITY: 231,
20
23
  TRACK_BREAK: 246,
21
24
  CLOSED_EYES_DETECTED: 230,
package/www/cordova.js CHANGED
@@ -2525,6 +2525,9 @@ class LivenessBackendException {
2525
2525
  const LivenessBackendErrorCode = {
2526
2526
  UNDEFINED: -1,
2527
2527
  NO_LICENSE: 200,
2528
+ NOT_INITIALIZED: 201,
2529
+ COMMAND_IS_NOT_SUPPORTED: 202,
2530
+ PARAMS_READ_ERROR: 203,
2528
2531
  LOW_QUALITY: 231,
2529
2532
  TRACK_BREAK: 246,
2530
2533
  CLOSED_EYES_DETECTED: 230,
@@ -3740,7 +3743,7 @@ class SearchPersonRequest {
3740
3743
  /******/ // This entry module is referenced by other modules so it can't be inlined
3741
3744
  /******/ var __webpack_exports__ = __webpack_require__("./src/index.js");
3742
3745
  /******/ var __webpack_export_target__ = exports;
3743
- /******/ for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
3746
+ /******/ for(var __webpack_i__ in __webpack_exports__) __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
3744
3747
  /******/ if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
3745
3748
  /******/
3746
3749
  /******/ })()
@@ -16,6 +16,9 @@ export class LivenessBackendException {
16
16
  export const LivenessBackendErrorCode = {
17
17
  UNDEFINED: -1,
18
18
  NO_LICENSE: 200,
19
+ NOT_INITIALIZED: 201,
20
+ COMMAND_IS_NOT_SUPPORTED: 202,
21
+ PARAMS_READ_ERROR: 203,
19
22
  LOW_QUALITY: 231,
20
23
  TRACK_BREAK: 246,
21
24
  CLOSED_EYES_DETECTED: 230,
@@ -5,7 +5,6 @@ import { CustomizationImages } from './customization/customization_images'
5
5
  import { Customization, CustomButtonTappedCompletion } from './customization/customization'
6
6
  import { Font } from './customization/font'
7
7
  import { ScreenOrientation } from './customization/screen_orientation'
8
-
9
8
  export { CameraPosition, CustomizationColors, CustomizationFonts, CustomizationImages, Customization, CustomButtonTappedCompletion, Font, ScreenOrientation }
10
9
 
11
10
  import { FaceSDKVersion } from './init/face_sdk_version'
@@ -14,7 +13,6 @@ import { InitException } from './init/init_exception'
14
13
  import { InitErrorCode } from './init/init_exception'
15
14
  import { LicenseException } from './init/license_exception'
16
15
  import { LicensingResultCode } from './init/license_exception'
17
-
18
16
  export { FaceSDKVersion, InitConfig, InitException, InitErrorCode, LicenseException, LicensingResultCode }
19
17
 
20
18
  import { DetectFaceResult } from './detect_faces/detect_face_result'
@@ -26,14 +24,12 @@ import { DetectFacesException, DetectFacesErrorCode } from './detect_faces/detec
26
24
  import { DetectFacesRequest } from './detect_faces/detect_faces_request'
27
25
  import { DetectFacesResponse } from './detect_faces/detect_faces_response'
28
26
  import { DetectFacesScenario } from './detect_faces/detect_faces_scenario'
29
-
30
27
  export { DetectFaceResult, DetectFacesAttributeResult, DetectFacesAttribute, DetectFacesBackendException, DetectFacesBackendErrorCode, DetectFacesConfig, DetectFacesException, DetectFacesErrorCode, DetectFacesRequest, DetectFacesResponse, DetectFacesScenario }
31
28
 
32
29
  import { FaceCaptureConfig } from './face_capture/face_capture_config'
33
30
  import { FaceCaptureException, FaceCaptureErrorCode } from './face_capture/face_capture_exception'
34
31
  import { FaceCaptureImage, ImageType } from './face_capture/face_capture_image'
35
32
  import { FaceCaptureResponse } from './face_capture/face_capture_response'
36
-
37
33
  export { FaceCaptureConfig, FaceCaptureException, FaceCaptureErrorCode, FaceCaptureImage, ImageType, FaceCaptureResponse }
38
34
 
39
35
  import { OutputImageCrop, OutputImageCropAspectRatio } from './image_params/output_image_crop'
@@ -41,7 +37,6 @@ import { OutputImageParams } from './image_params/output_image_params'
41
37
  import { Point } from './image_params/point'
42
38
  import { Rect } from './image_params/rect'
43
39
  import { Size } from './image_params/size'
44
-
45
40
  export { OutputImageCrop, OutputImageCropAspectRatio, OutputImageParams, Point, Rect, Size }
46
41
 
47
42
  import { ImageQualityCharacteristicName } from './image_quality/image_quality_characteristic_name'
@@ -49,7 +44,6 @@ import { ImageQualityCharacteristic } from './image_quality/image_quality_charac
49
44
  import { ImageQualityGroup } from './image_quality/image_quality_group'
50
45
  import { ImageQualityRange } from './image_quality/image_quality_range'
51
46
  import { ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus } from './image_quality/image_quality_result'
52
-
53
47
  export { ImageQualityCharacteristicName, ImageQualityCharacteristic, ImageQualityGroup, ImageQualityRange, ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus }
54
48
 
55
49
  import { LivenessBackendException, LivenessBackendErrorCode } from './liveness/liveness_backend_exception'
@@ -57,7 +51,6 @@ import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from
57
51
  import { LivenessException, LivenessErrorCode } from './liveness/liveness_exception'
58
52
  import { LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion } from './liveness/liveness_notification'
59
53
  import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
60
-
61
54
  export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion, LivenessResponse, LivenessStatus }
62
55
 
63
56
  import { ComparedFace } from './match_faces/compared_face'
@@ -71,7 +64,6 @@ import { MatchFacesException, MatchFacesErrorCode } from './match_faces/match_fa
71
64
  import { MatchFacesImage } from './match_faces/match_faces_image'
72
65
  import { MatchFacesRequest } from './match_faces/match_faces_request'
73
66
  import { MatchFacesResponse } from './match_faces/match_faces_response'
74
-
75
67
  export { ComparedFace, ComparedFacesPair, ComparedFacesSplit, MatchFacesBackendException, MatchFacesConfig, ProcessingMode, MatchFacesDetectionFace, MatchFacesDetection, MatchFacesException, MatchFacesErrorCode, MatchFacesImage, MatchFacesRequest, MatchFacesResponse }
76
68
 
77
69
  import { EditGroupPersonsRequest } from './person_database/edit_group_persons_request'
@@ -85,7 +77,6 @@ import { SearchPersonDetection } from './person_database/search_person_detection
85
77
  import { SearchPersonImage } from './person_database/search_person_image'
86
78
  import { SearchPersonRequest } from './person_database/search_person_request'
87
79
  import { SearchPerson } from './person_database/search_person'
88
-
89
80
  export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase, PersonGroup, PersonImage, Person, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, SearchPerson }
90
81
 
91
82
  /**
@@ -109,8 +100,10 @@ export class FaceSDK {
109
100
  * A localization dictionary to override default localization logic.
110
101
  * Allows to replace any string of FaceSDK with an arbitrary string.
111
102
  *
112
- * To see all the localization keys, look up the `RegulaSDK.strings` file at
113
- * `ios/Pods/FaceSDK/FaceSDK.xcframework/ios-arm64/FaceSDK.framework/FaceSDK.bundle/en.lproj/FaceSDK.strings`.
103
+ * To see all the localization keys, look up the RegulaSDK.strings file at
104
+ * ios/Pods/FaceSDK/FaceSDK.xcframework/ios-arm64/FaceSDK.framework/FaceSDK.bundle/en.lproj/FaceSDK.strings.
105
+ *
106
+ * Immutable property. Use setter instead of editing.
114
107
  */
115
108
  get localizationDictionary(): Record<string, string> | null
116
109
  set localizationDictionary(val: Record<string, string> | null)
@@ -141,7 +134,7 @@ export class FaceSDK {
141
134
  *
142
135
  * @param params.config - configuration file for FaceSDK initialization.
143
136
  *
144
- * Returns `boolean` indicating success of initialization
137
+ * @returns Returns boolean indicating success of initialization
145
138
  * and a nullable {@link InitException}.
146
139
  */
147
140
  initialize(
@@ -8,6 +8,9 @@ export class LivenessBackendException {
8
8
  export enum LivenessBackendErrorCode {
9
9
  UNDEFINED,
10
10
  NO_LICENSE,
11
+ NOT_INITIALIZED,
12
+ COMMAND_IS_NOT_SUPPORTED,
13
+ PARAMS_READ_ERROR,
11
14
  LOW_QUALITY,
12
15
  TRACK_BREAK,
13
16
  CLOSED_EYES_DETECTED,