uqudosdk-web 3.4.2 → 3.6.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.
- package/CHANGELOG.md +12 -0
- package/index.d.ts +65 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 3.6.0
|
|
2
|
+
- Introduced support for Qatar Vehicle License.
|
|
3
|
+
- Enhanced the facial recognition step to provide a smoother experience for end users.
|
|
4
|
+
- Fixed an issue where the selfie output in facial recognition appeared squeezed on some devices.
|
|
5
|
+
- Introduced support for the Analytics functionality. For more details, visit https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/analytics.
|
|
6
|
+
|
|
7
|
+
## 3.5.0
|
|
8
|
+
- Updated the facial recognition layout for desktop to address the issue on Windows where the default zoom is set to 150%. We've added and updated some styles: for a complete list, please refer to the style configuration documentation https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/ui-customisation/styles-configuration.
|
|
9
|
+
- Enhanced the facial recognition layout for mobile and tablet. Fixed the oval's position, which sometimes misled users into placing their faces incorrectly.
|
|
10
|
+
- Changed the image format to JPEG for the document photo-taking step.
|
|
11
|
+
- Added virtual camera detection. If a virtual camera is detected, the SDK terminates the session with the error code MEDIA_VIRTUAL_CAMERA_DETECTED. For more details, see the operation error documentation https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/operation-error.
|
|
12
|
+
|
|
1
13
|
## 3.4.2
|
|
2
14
|
|
|
3
15
|
- Introducing the new document type UAE_ID_DIGITAL aimed at clearly distinguishing between the digital and physical versions. If you want to accept the digital version, it is necessary to treat this as a separate document type in your configuration. It's important to note that starting from this version onwards, selecting the document type UAE_ID while the user provides the digital version will result in rejection. Likewise, selecting UAE_ID_DIGITAL while the user provides the physical version will yield the same outcome.
|
package/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export enum ErrorCode {
|
|
|
39
39
|
MEDIA_NOT_ALLOWED_ERROR = "MEDIA_NOT_ALLOWED_ERROR",
|
|
40
40
|
MEDIA_NOT_FOUND_ERROR = "MEDIA_NOT_FOUND_ERROR",
|
|
41
41
|
MEDIA_SECURITY_ERROR = "MEDIA_SECURITY_ERROR",
|
|
42
|
+
MEDIA_VIRTUAL_CAMERA_DETECTED = "MEDIA_VIRTUAL_CAMERA_DETECTED",
|
|
42
43
|
MEDIA_UNKNOWN_ERROR = "MEDIA_UNKNOWN_ERROR",
|
|
43
44
|
USER_CANCEL = "USER_CANCEL",
|
|
44
45
|
INVALID_CONFIG = "INVALID_CONFIG",
|
|
@@ -98,8 +99,8 @@ export enum DocumentType {
|
|
|
98
99
|
SEN_ID = "SEN_ID",
|
|
99
100
|
DZA_ID = "DZA_ID",
|
|
100
101
|
TUR_ID = "TUR_ID",
|
|
101
|
-
COD_DL = "COD_DL",
|
|
102
102
|
GBR_ID = "GBR_ID",
|
|
103
|
+
COD_DL = "COD_DL",
|
|
103
104
|
COD_VOTER_ID = "COD_VOTER_ID",
|
|
104
105
|
OMN_VL = "OMN_VL",
|
|
105
106
|
OMN_DL = "OMN_DL",
|
|
@@ -114,6 +115,7 @@ export enum DocumentType {
|
|
|
114
115
|
IRQ_ID = "IRQ_ID",
|
|
115
116
|
MRZ = "MRZ",
|
|
116
117
|
UAE_ID_DIGITAL = "UAE_ID_DIGITAL",
|
|
118
|
+
QAT_VL = "QAT_VL",
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
export enum BackgroundCheckType {
|
|
@@ -221,6 +223,7 @@ export type IObservableFunctionsType<R = IResultInfo, E = OperationError> = {
|
|
|
221
223
|
onSuccess?: (result: R) => void;
|
|
222
224
|
onError?: (error: E) => void;
|
|
223
225
|
onFinally?: () => void;
|
|
226
|
+
onTrace?: TOnTrace;
|
|
224
227
|
};
|
|
225
228
|
|
|
226
229
|
export type IResource = {
|
|
@@ -297,3 +300,64 @@ export type IAccountRecoveryConfig = IConfigProcess &
|
|
|
297
300
|
maxAttempts?: number;
|
|
298
301
|
minimumMatchLevel?: number;
|
|
299
302
|
};
|
|
303
|
+
|
|
304
|
+
// ---------- Tracing mechanism type --------- //
|
|
305
|
+
|
|
306
|
+
export enum TraceCategory {
|
|
307
|
+
ENROLLMENT = "ENROLLMENT",
|
|
308
|
+
FACE_SESSION = "FACE_SESSION",
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export enum TracePage {
|
|
312
|
+
SCAN = "SCAN",
|
|
313
|
+
FACE = "FACE",
|
|
314
|
+
BACKGROUND_CHECK = "BACKGROUND_CHECK",
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export enum TraceEvent {
|
|
318
|
+
VIEW = "VIEW",
|
|
319
|
+
START = "START",
|
|
320
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
321
|
+
SKIP = "SKIP",
|
|
322
|
+
COMPLETE = "COMPLETE",
|
|
323
|
+
FINISH = "FINISH",
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export enum TraceStatus {
|
|
327
|
+
SUCCESS = "SUCCESS",
|
|
328
|
+
FAILURE = "FAILURE",
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export enum TraceStatusCode {
|
|
332
|
+
USER_CANCEL = "USER_CANCEL",
|
|
333
|
+
SESSION_EXPIRED = "SESSION_EXPIRED",
|
|
334
|
+
UNEXPECTED_ERROR = "UNEXPECTED_ERROR",
|
|
335
|
+
CAMERA_NOT_AVAILABLE = "CAMERA_NOT_AVAILABLE",
|
|
336
|
+
CAMERA_PERMISSION_NOT_GRANTED = "CAMERA_PERMISSION_NOT_GRANTED",
|
|
337
|
+
SCAN_DOCUMENT_FRONT_PROCESSED = "SCAN_DOCUMENT_FRONT_PROCESSED",
|
|
338
|
+
SCAN_DOCUMENT_BACK_PROCESSED = "SCAN_DOCUMENT_BACK_PROCESSED",
|
|
339
|
+
SCAN_DOCUMENT_FRONT_BACK_MISMATCH = "SCAN_DOCUMENT_FRONT_BACK_MISMATCH",
|
|
340
|
+
SCAN_DOCUMENT_NOT_RECOGNIZED = "SCAN_DOCUMENT_NOT_RECOGNIZED",
|
|
341
|
+
SCAN_DOCUMENT_EXPIRED = "SCAN_DOCUMENT_EXPIRED",
|
|
342
|
+
SCAN_DOCUMENT_AGE_VERIFICATION_FAILED = "SCAN_DOCUMENT_AGE_VERIFICATION_FAILED",
|
|
343
|
+
FACE_LIVENESS_FAILED = "FACE_LIVENESS_FAILED",
|
|
344
|
+
FACE_NO_MATCH = "FACE_NO_MATCH",
|
|
345
|
+
FACE_TIMEOUT = "FACE_TIMEOUT",
|
|
346
|
+
FACE_RECOGNITION_TOO_MANY_ATTEMPTS = "FACE_RECOGNITION_TOO_MANY_ATTEMPTS",
|
|
347
|
+
FACE_INCORRECT_POSITION_DETECTED = "FACE_INCORRECT_POSITION_DETECTED",
|
|
348
|
+
FACE_INCORRECT_DISTANCE_DETECTED = "FACE_INCORRECT_DISTANCE_DETECTED",
|
|
349
|
+
FACE_EYES_CLOSED_DETECTED = "FACE_EYES_CLOSED_DETECTED",
|
|
350
|
+
MEDIA_VIRTUAL_CAMERA_DETECTED = "MEDIA_VIRTUAL_CAMERA_DETECTED",
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export type ITrace = {
|
|
354
|
+
sessionId: string;
|
|
355
|
+
category: TraceCategory;
|
|
356
|
+
event: TraceEvent;
|
|
357
|
+
status: TraceStatus;
|
|
358
|
+
page?: TracePage;
|
|
359
|
+
statusCode?: TraceStatusCode;
|
|
360
|
+
statusMessage?: string;
|
|
361
|
+
documentType?: string;
|
|
362
|
+
timestamp: Date;
|
|
363
|
+
};
|