@regulaforensics/vp-frontend-face-components 3.0.1 → 6.2.1303-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/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,15 +88,11 @@ 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'
98
- | 'APP_INACTIVE';
94
+ | 'APP_INACTIVE'
95
+ | 'HTTP_NOT_SUPPORTED';
99
96
 
100
97
  type FaceEventActions =
101
98
  | 'ELEMENT_VISIBLE'
@@ -159,7 +156,6 @@ export interface IFaceDetection {
159
156
  export interface IFaceLiveness extends IFaceDetection {
160
157
  url?: string;
161
158
  'device-orientation'?: boolean;
162
- 'video-recording'?: boolean;
163
159
  }
164
160
 
165
161
  export type ComputedCss = {
@@ -186,6 +182,18 @@ export type ComputedCss = {
186
182
  retryScreenEnvironmentImage?: string;
187
183
  retryScreenPersonImage?: string;
188
184
  };
185
+
186
+ declare enum RecordingProcess {
187
+ ASYNCHRONOUS_UPLOAD = 0,
188
+ SYNCHRONOUS_UPLOAD = 1,
189
+ NOT_UPLOAD = 2,
190
+ }
191
+
192
+ declare enum FaceLivenessType {
193
+ ACTIVE = 0,
194
+ PASSIVE = 1,
195
+ }
196
+
189
197
  interface FaceDetectionSettings {
190
198
  url?: string;
191
199
  debug?: boolean;
@@ -198,6 +206,7 @@ interface FaceDetectionSettings {
198
206
  startScreen?: boolean;
199
207
  customization?: ComputedCss;
200
208
  nonce?: string;
209
+ rotationAngle?: number;
201
210
  holdStillDuration?: number;
202
211
  timeoutInterval?: number;
203
212
  }
@@ -209,6 +218,9 @@ interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDur
209
218
  tag?: string;
210
219
  headers?: Record<string, string>;
211
220
  retryCount?: number;
221
+ metadata?: Record<string, any>;
222
+ recordingProcess?: RecordingProcess;
223
+ livenessType?: FaceLivenessType;
212
224
  }
213
225
 
214
226
  export type FaceLivenessDetailType = DetailEvent<FaceEventActions, FaceLivenessResponseType>;
@@ -223,6 +235,7 @@ export class FaceDetectionWebComponent extends HTMLElement {
223
235
  get settings(): FaceDetectionSettings;
224
236
  set settings(params: FaceDetectionSettings);
225
237
  }
238
+
226
239
  export class FaceLivenessWebComponent extends HTMLElement {
227
240
  get version(): string;
228
241
  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.1",
3
+ "version": "6.2.1303-nightly",
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",
@@ -12,11 +12,11 @@
12
12
  "license": "MIT",
13
13
  "homepage": "https://storybook-face.regulaforensics.com/",
14
14
  "scripts": {
15
- "build": "webpack --config webpack-umd.js",
15
+ "build": "npm run test && webpack --config webpack-umd.js",
16
16
  "test": "jest --testPathPattern=src/tests"
17
17
  },
18
18
  "dependencies": {
19
- "@regulaforensics/facesdk-webclient": "^3.1.2",
19
+ "@regulaforensics/facesdk-webclient": "^6.1.1-beta.5",
20
20
  "zustand": "^4.3.7"
21
21
  }
22
22
  }