@regulaforensics/vp-frontend-face-components 3.0.0 → 3.1.0

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.
@@ -59,13 +59,3 @@
59
59
  * This source code is licensed under the MIT license found in the
60
60
  * LICENSE file in the root directory of this source tree.
61
61
  */
62
-
63
- /**
64
- @license @nocompile
65
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
66
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
67
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
68
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
69
- Code distributed by Google as part of the polymer project is also
70
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
71
- */
package/lib/index.d.ts CHANGED
@@ -32,6 +32,7 @@ type Locales =
32
32
  | 'hr'
33
33
  | 'no'
34
34
  | string;
35
+
35
36
  interface FaceTranslations {
36
37
  showOnlyOneFace?: string;
37
38
  preparingCamera?: string;
@@ -87,11 +88,6 @@ type ErrorTypes =
87
88
  | 'INCORRECT_CAMERA_ID'
88
89
  | 'CONNECTION_ERROR'
89
90
  | 'LANDSCAPE_MODE_RESTRICTED'
90
- | 'NOT_PREPARED'
91
- | 'NOT_INITIALIZED'
92
- | 'IN_PROCESS'
93
- | 'ALREADY_PREPARED'
94
- | 'ALREADY_INITIALIZED'
95
91
  | 'TIMEOUT_ERROR'
96
92
  | 'CHANGE_CAMERA'
97
93
  | 'DEVICE_ROTATE'
@@ -159,7 +155,6 @@ export interface IFaceDetection {
159
155
  export interface IFaceLiveness extends IFaceDetection {
160
156
  url?: string;
161
157
  'device-orientation'?: boolean;
162
- 'video-recording'?: boolean;
163
158
  }
164
159
 
165
160
  export type ComputedCss = {
@@ -186,6 +181,18 @@ export type ComputedCss = {
186
181
  retryScreenEnvironmentImage?: string;
187
182
  retryScreenPersonImage?: string;
188
183
  };
184
+
185
+ declare enum RecordingProcess {
186
+ ASYNCHRONOUS_UPLOAD = 0,
187
+ SYNCHRONOUS_UPLOAD = 1,
188
+ NOT_UPLOAD = 2,
189
+ }
190
+
191
+ declare enum FaceLivenessType {
192
+ ACTIVE = 0,
193
+ PASSIVE = 1,
194
+ }
195
+
189
196
  interface FaceDetectionSettings {
190
197
  url?: string;
191
198
  debug?: boolean;
@@ -197,15 +204,21 @@ interface FaceDetectionSettings {
197
204
  finishScreen?: boolean;
198
205
  startScreen?: boolean;
199
206
  customization?: ComputedCss;
207
+ nonce?: string;
208
+ rotationAngle?: number;
209
+ holdStillDuration?: number;
210
+ timeoutInterval?: number;
200
211
  }
201
212
 
202
- interface FaceLivenessSettings extends FaceDetectionSettings {
213
+ interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDuration' | 'timeoutInterval'> {
203
214
  url?: string;
204
215
  deviceOrientation?: boolean;
205
216
  videoRecording?: boolean;
206
217
  tag?: string;
207
218
  headers?: Record<string, string>;
208
219
  retryCount?: number;
220
+ recordingProcess?: RecordingProcess;
221
+ livenessType?: FaceLivenessType;
209
222
  }
210
223
 
211
224
  export type FaceLivenessDetailType = DetailEvent<FaceEventActions, FaceLivenessResponseType>;
@@ -220,6 +233,7 @@ export class FaceDetectionWebComponent extends HTMLElement {
220
233
  get settings(): FaceDetectionSettings;
221
234
  set settings(params: FaceDetectionSettings);
222
235
  }
236
+
223
237
  export class FaceLivenessWebComponent extends HTMLElement {
224
238
  get version(): string;
225
239
  set translations(dictionary: FaceDictionaries | null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/vp-frontend-face-components",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Regula framework agnostic web components to work with webcamera",
5
5
  "types": "lib/index.d.ts",
6
6
  "main": "dist/main.js",
@@ -16,7 +16,7 @@
16
16
  "test": "jest --testPathPattern=src/tests"
17
17
  },
18
18
  "dependencies": {
19
- "@regulaforensics/facesdk-webclient": "^3.1.2",
19
+ "@regulaforensics/facesdk-webclient": "^5.2.7",
20
20
  "zustand": "^4.3.7"
21
21
  }
22
22
  }