uqudosdk-web 3.5.0 → 3.6.1

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 CHANGED
@@ -1,9 +1,21 @@
1
+ ## 3.6.1
2
+
3
+ - Enhanced SDK initialization to ensure that any resources from a previous SDK instance, such as the camera stream, are properly released. Additionally, a new method, `dispose()`, has been added to the `UqudoSdk` class, allowing you to forcibly release any resources related to the SDK.
4
+ - Added support for a new document type: UAE_PASSPORT_DIGITAL, representing the digital version of the UAE passport. To accept this type, configure it as a separate document in your Enrollment Builder Configuration. For manual upload, we support the original 6-page PDF version and automatically extract the document from the third page.
5
+
6
+ ## 3.6.0
7
+
8
+ - Introduced support for Qatar Vehicle License.
9
+ - Enhanced the facial recognition step to provide a smoother experience for end users.
10
+ - Fixed an issue where the selfie output in facial recognition appeared squeezed on some devices.
11
+ - Introduced support for the Analytics functionality. For more details, visit <https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/analytics>.
12
+
1
13
  ## 3.5.0
2
14
 
3
- - 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.
15
+ - 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>.
4
16
  - Enhanced the facial recognition layout for mobile and tablet. Fixed the oval's position, which sometimes misled users into placing their faces incorrectly.
5
17
  - Changed the image format to JPEG for the document photo-taking step.
6
- - 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.
18
+ - 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>.
7
19
 
8
20
  ## 3.4.2
9
21
 
package/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export declare class UqudoSdk {
23
23
  faceSession(
24
24
  configProcess: IFaceSessionConfig
25
25
  ): Promise<ReturnFaceSessionType>;
26
+ dispose(): Promise<void>;
26
27
  }
27
28
 
28
29
  declare class UqudoSdkFactory {
@@ -99,8 +100,8 @@ export enum DocumentType {
99
100
  SEN_ID = "SEN_ID",
100
101
  DZA_ID = "DZA_ID",
101
102
  TUR_ID = "TUR_ID",
102
- COD_DL = "COD_DL",
103
103
  GBR_ID = "GBR_ID",
104
+ COD_DL = "COD_DL",
104
105
  COD_VOTER_ID = "COD_VOTER_ID",
105
106
  OMN_VL = "OMN_VL",
106
107
  OMN_DL = "OMN_DL",
@@ -115,6 +116,8 @@ export enum DocumentType {
115
116
  IRQ_ID = "IRQ_ID",
116
117
  MRZ = "MRZ",
117
118
  UAE_ID_DIGITAL = "UAE_ID_DIGITAL",
119
+ QAT_VL = "QAT_VL",
120
+ UAE_PASSPORT_DIGITAL = "UAE_PASSPORT_DIGITAL",
118
121
  }
119
122
 
120
123
  export enum BackgroundCheckType {
@@ -222,6 +225,7 @@ export type IObservableFunctionsType<R = IResultInfo, E = OperationError> = {
222
225
  onSuccess?: (result: R) => void;
223
226
  onError?: (error: E) => void;
224
227
  onFinally?: () => void;
228
+ onTrace?: (trace: ITrace) => void;
225
229
  };
226
230
 
227
231
  export type IResource = {
@@ -236,6 +240,7 @@ export type IConfigProcess = IResource & {
236
240
  // ---------- uqudo sdk type --------- //
237
241
 
238
242
  export type IUqudoSdkConfig = IResource & {
243
+ debug?: boolean;
239
244
  baseURL?: string;
240
245
  accessToken: string;
241
246
  nonce?: string;
@@ -298,3 +303,64 @@ export type IAccountRecoveryConfig = IConfigProcess &
298
303
  maxAttempts?: number;
299
304
  minimumMatchLevel?: number;
300
305
  };
306
+
307
+ // ---------- Tracing mechanism type --------- //
308
+
309
+ export enum TraceCategory {
310
+ ENROLLMENT = "ENROLLMENT",
311
+ FACE_SESSION = "FACE_SESSION",
312
+ }
313
+
314
+ export enum TracePage {
315
+ SCAN = "SCAN",
316
+ FACE = "FACE",
317
+ BACKGROUND_CHECK = "BACKGROUND_CHECK",
318
+ }
319
+
320
+ export enum TraceEvent {
321
+ VIEW = "VIEW",
322
+ START = "START",
323
+ IN_PROGRESS = "IN_PROGRESS",
324
+ SKIP = "SKIP",
325
+ COMPLETE = "COMPLETE",
326
+ FINISH = "FINISH",
327
+ }
328
+
329
+ export enum TraceStatus {
330
+ SUCCESS = "SUCCESS",
331
+ FAILURE = "FAILURE",
332
+ }
333
+
334
+ export enum TraceStatusCode {
335
+ USER_CANCEL = "USER_CANCEL",
336
+ SESSION_EXPIRED = "SESSION_EXPIRED",
337
+ UNEXPECTED_ERROR = "UNEXPECTED_ERROR",
338
+ CAMERA_NOT_AVAILABLE = "CAMERA_NOT_AVAILABLE",
339
+ CAMERA_PERMISSION_NOT_GRANTED = "CAMERA_PERMISSION_NOT_GRANTED",
340
+ SCAN_DOCUMENT_FRONT_PROCESSED = "SCAN_DOCUMENT_FRONT_PROCESSED",
341
+ SCAN_DOCUMENT_BACK_PROCESSED = "SCAN_DOCUMENT_BACK_PROCESSED",
342
+ SCAN_DOCUMENT_FRONT_BACK_MISMATCH = "SCAN_DOCUMENT_FRONT_BACK_MISMATCH",
343
+ SCAN_DOCUMENT_NOT_RECOGNIZED = "SCAN_DOCUMENT_NOT_RECOGNIZED",
344
+ SCAN_DOCUMENT_EXPIRED = "SCAN_DOCUMENT_EXPIRED",
345
+ SCAN_DOCUMENT_AGE_VERIFICATION_FAILED = "SCAN_DOCUMENT_AGE_VERIFICATION_FAILED",
346
+ FACE_LIVENESS_FAILED = "FACE_LIVENESS_FAILED",
347
+ FACE_NO_MATCH = "FACE_NO_MATCH",
348
+ FACE_TIMEOUT = "FACE_TIMEOUT",
349
+ FACE_RECOGNITION_TOO_MANY_ATTEMPTS = "FACE_RECOGNITION_TOO_MANY_ATTEMPTS",
350
+ FACE_INCORRECT_POSITION_DETECTED = "FACE_INCORRECT_POSITION_DETECTED",
351
+ FACE_INCORRECT_DISTANCE_DETECTED = "FACE_INCORRECT_DISTANCE_DETECTED",
352
+ FACE_EYES_CLOSED_DETECTED = "FACE_EYES_CLOSED_DETECTED",
353
+ MEDIA_VIRTUAL_CAMERA_DETECTED = "MEDIA_VIRTUAL_CAMERA_DETECTED",
354
+ }
355
+
356
+ export type ITrace = {
357
+ sessionId: string;
358
+ category: TraceCategory;
359
+ event: TraceEvent;
360
+ status: TraceStatus;
361
+ page?: TracePage;
362
+ statusCode?: TraceStatusCode;
363
+ statusMessage?: string;
364
+ documentType?: string;
365
+ timestamp: Date;
366
+ };