@regulaforensics/vp-frontend-face-components 6.5.1635-nightly → 6.5.1637-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/dist/index.d.ts +61 -18
- package/dist/main.iife.js +21 -21
- package/dist/main.js +10699 -11583
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -42,7 +42,26 @@ export declare interface DetailEvent<A, R> {
|
|
42
42
|
data: CustomEventDataType<R> | null;
|
43
43
|
}
|
44
44
|
|
45
|
-
export declare
|
45
|
+
export declare const ErrorTypes: {
|
46
|
+
readonly WASM_ERROR: "WASM_ERROR";
|
47
|
+
readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
48
|
+
readonly NOT_SUPPORTED: "NOT_SUPPORTED";
|
49
|
+
readonly CAMERA_UNKNOWN_ERROR: "CAMERA_UNKNOWN_ERROR";
|
50
|
+
readonly CAMERA_PERMISSION_DENIED: "CAMERA_PERMISSION_DENIED";
|
51
|
+
readonly NO_CAMERA: "NO_CAMERA";
|
52
|
+
readonly INCORRECT_CAMERA_ID: "INCORRECT_CAMERA_ID";
|
53
|
+
readonly CONNECTION_ERROR: "CONNECTION_ERROR";
|
54
|
+
readonly LANDSCAPE_MODE_RESTRICTED: "LANDSCAPE_MODE_RESTRICTED";
|
55
|
+
readonly TIMEOUT_ERROR: "TIMEOUT_ERROR";
|
56
|
+
readonly CHANGE_CAMERA: "CHANGE_CAMERA";
|
57
|
+
readonly DEVICE_ROTATE: "DEVICE_ROTATE";
|
58
|
+
readonly APP_INACTIVE: "APP_INACTIVE";
|
59
|
+
readonly HTTP_NOT_SUPPORTED: "HTTP_NOT_SUPPORTED";
|
60
|
+
readonly WEBSERVICE_NOT_COMPATIBLE: "WEBSERVICE_NOT_COMPATIBLE";
|
61
|
+
readonly CANCELLED: "CANCELLED";
|
62
|
+
};
|
63
|
+
|
64
|
+
export declare type ErrorTypes = (typeof ErrorTypes)[keyof typeof ErrorTypes];
|
46
65
|
|
47
66
|
export declare type FaceCaptureDetailType = Omit<DetailEvent<FaceEventActions, FaceDetectionResponseType>, 'transactionId'>;
|
48
67
|
|
@@ -90,21 +109,40 @@ export declare class FaceDetectionWebComponent extends HTMLElement {
|
|
90
109
|
|
91
110
|
export declare type FaceDictionaries = Partial<Record<Locales, FaceTranslations>>;
|
92
111
|
|
93
|
-
export declare
|
112
|
+
export declare const FaceEventActions: {
|
113
|
+
readonly ELEMENT_VISIBLE: "ELEMENT_VISIBLE";
|
114
|
+
readonly PRESS_START_BUTTON: "PRESS_START_BUTTON";
|
115
|
+
readonly PRESS_RETRY_BUTTON: "PRESS_RETRY_BUTTON";
|
116
|
+
readonly CLOSE: "CLOSE";
|
117
|
+
readonly PROCESS_FINISHED: "PROCESS_FINISHED";
|
118
|
+
readonly SERVICE_INITIALIZED: "SERVICE_INITIALIZED";
|
119
|
+
readonly RETRY_COUNTER_EXCEEDED: "RETRY_COUNTER_EXCEEDED";
|
120
|
+
};
|
121
|
+
|
122
|
+
export declare type FaceEventActions = (typeof FaceEventActions)[keyof typeof FaceEventActions];
|
94
123
|
|
95
124
|
export declare type FaceLivenessDetailType = DetailEvent<FaceEventActions, FaceLivenessResponseType>;
|
96
125
|
|
126
|
+
/** web component response */
|
97
127
|
export declare type FaceLivenessResponseType = {
|
98
128
|
images: Array<string>;
|
99
129
|
code: number;
|
100
130
|
metadata: Record<string, any>;
|
101
131
|
estimatedAge: number | null;
|
102
132
|
tag: string;
|
103
|
-
status:
|
133
|
+
status: FaceLivenessResultStatus;
|
104
134
|
transactionId: string;
|
105
135
|
type: number;
|
106
136
|
};
|
107
137
|
|
138
|
+
export declare const FaceLivenessResultStatus: {
|
139
|
+
readonly CONFIRMED: 0;
|
140
|
+
readonly NOT_CONFIRMED: 1;
|
141
|
+
readonly UNKNOWN: 2;
|
142
|
+
};
|
143
|
+
|
144
|
+
export declare type FaceLivenessResultStatus = (typeof FaceLivenessResultStatus)[keyof typeof FaceLivenessResultStatus];
|
145
|
+
|
108
146
|
export declare interface FaceLivenessSettings extends Omit<FaceDetectionSettings, 'holdStillDuration' | 'timeoutInterval' | 'showFaceAnimation'> {
|
109
147
|
url?: string;
|
110
148
|
deviceOrientation?: boolean;
|
@@ -117,10 +155,12 @@ export declare interface FaceLivenessSettings extends Omit<FaceDetectionSettings
|
|
117
155
|
livenessType?: FaceLivenessType;
|
118
156
|
}
|
119
157
|
|
120
|
-
export declare
|
121
|
-
ACTIVE
|
122
|
-
PASSIVE
|
123
|
-
}
|
158
|
+
export declare const FaceLivenessType: {
|
159
|
+
readonly ACTIVE: 0;
|
160
|
+
readonly PASSIVE: 1;
|
161
|
+
};
|
162
|
+
|
163
|
+
export declare type FaceLivenessType = (typeof FaceLivenessType)[keyof typeof FaceLivenessType];
|
124
164
|
|
125
165
|
export declare class FaceLivenessWebComponent extends HTMLElement {
|
126
166
|
private _root;
|
@@ -205,18 +245,21 @@ export declare interface IFaceLiveness extends IFaceDetection {
|
|
205
245
|
|
206
246
|
export declare type Locales = 'ru' | 'en' | 'de' | 'pl' | 'it' | 'hu' | 'zh' | 'sk' | 'uk' | 'fr' | 'es' | 'pt' | 'ar' | 'nl' | 'id' | 'vi' | 'ko' | 'ms' | 'ro' | 'el' | 'tr' | 'ja' | 'cs' | 'th' | 'hi' | 'bn' | 'he' | 'fi' | 'sv' | 'da' | 'hr' | 'no' | string;
|
207
247
|
|
208
|
-
export declare
|
209
|
-
ASYNCHRONOUS_UPLOAD
|
210
|
-
SYNCHRONOUS_UPLOAD
|
211
|
-
NOT_UPLOAD
|
212
|
-
}
|
248
|
+
export declare const RecordingProcess: {
|
249
|
+
readonly ASYNCHRONOUS_UPLOAD: 0;
|
250
|
+
readonly SYNCHRONOUS_UPLOAD: 1;
|
251
|
+
readonly NOT_UPLOAD: 2;
|
252
|
+
};
|
213
253
|
|
214
|
-
declare
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
254
|
+
export declare type RecordingProcess = (typeof RecordingProcess)[keyof typeof RecordingProcess];
|
255
|
+
|
256
|
+
export declare const ResponseCode: {
|
257
|
+
readonly EMPTY: -1;
|
258
|
+
readonly ERROR: 0;
|
259
|
+
readonly OK: 1;
|
260
|
+
};
|
261
|
+
|
262
|
+
export declare type ResponseCode = (typeof ResponseCode)[keyof typeof ResponseCode];
|
220
263
|
|
221
264
|
export { }
|
222
265
|
|