idmission-web-sdk 1.0.73 → 1.0.74
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/README.md +3 -0
- package/dist/components/CompositeWizard.d.ts +5 -3
- package/dist/components/customer_flows/VideoIdValidation.d.ts +23 -3
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +4 -3
- package/dist/sdk2.cjs.development.js +2599 -2541
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +2599 -2541
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +2599 -2541
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -660,6 +660,9 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
660
660
|
<tr><td><code>onExitCapture</code> (optional)</td><td>callback function that fires when the user clicks the X button during capture.</td></tr>
|
|
661
661
|
<tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after failing the realness check.</td></tr>
|
|
662
662
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
663
|
+
<tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
|
|
664
|
+
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
665
|
+
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
663
666
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
664
667
|
<tr><td><code>needImmediateResponse</code> (optional)</td><td>boolean to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true.</td></tr>
|
|
665
668
|
<tr><td><code>manualReviewRequired</code> (optional)</td><td>boolean flag to indicate whether responses should always be reviewed by a human. Defaults to false.</td></tr>
|
|
@@ -5,14 +5,16 @@ import { SubmissionAction, SubmissionEnvironment, SubmissionResponse } from '../
|
|
|
5
5
|
import { AdditionalDocumentCaptureWizardProps } from './additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
6
6
|
import { SignatureCaptureProps } from './signature_capture/SignatureCapture';
|
|
7
7
|
import { VideoSignatureWizardProps } from './video_signature_capture/VideoSignatureWizard';
|
|
8
|
-
|
|
8
|
+
import { VideoIdWizardProps } from './video_id/IdVideoCaptureWizard';
|
|
9
|
+
export type CompositeWizardCheck = 'IdCapture' | 'FaceLiveness' | 'SignatureCapture' | 'VideoSignatureCapture' | 'AdditionalDocumentCapture' | 'VideoIdCapture';
|
|
9
10
|
export type CompositeWizardComponentProps = {
|
|
10
11
|
checks: CompositeWizardCheck[];
|
|
11
12
|
idCaptureProps?: IdCaptureWizardProps;
|
|
12
13
|
faceLivenessProps?: FaceLivenessWizardProps;
|
|
14
|
+
additionalDocumentCaptureProps?: AdditionalDocumentCaptureWizardProps;
|
|
13
15
|
signatureCaptureProps?: SignatureCaptureProps;
|
|
14
16
|
videoSignatureCaptureProps?: VideoSignatureWizardProps;
|
|
15
|
-
|
|
17
|
+
videoIdCaptureProps?: VideoIdWizardProps;
|
|
16
18
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
17
19
|
captureSignatureVideo?: boolean | (() => Promise<boolean>);
|
|
18
20
|
debugMode?: boolean;
|
|
@@ -25,4 +27,4 @@ export type CompositeWizardProps = CompositeWizardComponentProps & {
|
|
|
25
27
|
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
26
28
|
};
|
|
27
29
|
export declare const CompositeWizard: (props: CompositeWizardProps) => ReactElement;
|
|
28
|
-
export declare const CompositeWizardComponent: ({ checks: userChecks, idCaptureProps, faceLivenessProps, signatureCaptureProps, videoSignatureCaptureProps,
|
|
30
|
+
export declare const CompositeWizardComponent: ({ checks: userChecks, idCaptureProps, faceLivenessProps, additionalDocumentCaptureProps, signatureCaptureProps, videoSignatureCaptureProps, videoIdCaptureProps, captureSignature, captureSignatureVideo, debugMode, }: CompositeWizardComponentProps) => ReactElement;
|
|
@@ -5,10 +5,24 @@ import { VideoIdWizardAssets, VideoIdWizardClassNames, VideoIdWizardColors, Vide
|
|
|
5
5
|
import { IdCaptureWizardProps } from '../id_capture/IdCaptureWizard';
|
|
6
6
|
import { FaceLivenessWizardProps } from '../face_liveness/FaceLivenessWizard';
|
|
7
7
|
import { ThemeInput } from '../../themes';
|
|
8
|
+
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
9
|
+
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
10
|
+
import { SignatureCaptureClassNames, SignatureCaptureVerbiage } from '../signature_capture/SignatureCapture';
|
|
11
|
+
import { VideoSignatureClassNames, VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
|
|
8
12
|
export type VideoIdValidationAssets = VideoIdWizardAssets;
|
|
9
|
-
export type VideoIdValidationClassNames = VideoIdWizardClassNames
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
export type VideoIdValidationClassNames = VideoIdWizardClassNames & {
|
|
14
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardClassNames;
|
|
15
|
+
signatureCapture?: SignatureCaptureClassNames;
|
|
16
|
+
videoSignatureCapture?: VideoSignatureClassNames;
|
|
17
|
+
};
|
|
18
|
+
export type VideoIdValidationColors = VideoIdWizardColors & {
|
|
19
|
+
videoSignatureCapture?: VideoSignatureColors;
|
|
20
|
+
};
|
|
21
|
+
export type VideoIdValidationVerbiage = VideoIdWizardVerbiage & {
|
|
22
|
+
additionalDocumentCapture?: AdditionalDocumentCaptureWizardVerbiage;
|
|
23
|
+
signatureCapture?: SignatureCaptureVerbiage;
|
|
24
|
+
videoSignatureCapture?: VideoSignatureVerbiage;
|
|
25
|
+
};
|
|
12
26
|
export interface VideoIdValidationProps extends PropsWithChildren {
|
|
13
27
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
14
28
|
lang?: LangOption;
|
|
@@ -58,6 +72,12 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
58
72
|
idCaptureProps?: IdCaptureWizardProps;
|
|
59
73
|
/** Object containing any overrides for FaceLiveness. */
|
|
60
74
|
faceLivenessProps?: FaceLivenessWizardProps;
|
|
75
|
+
/** Boolean or async function indicating whether the user should be prompted to sign the screen before submission. Defaults to `false`. */
|
|
76
|
+
captureSignature?: boolean | (() => Promise<boolean>);
|
|
77
|
+
/** Boolean or async function indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to `false`. */
|
|
78
|
+
captureSignatureVideo?: boolean | (() => Promise<boolean>);
|
|
79
|
+
/** Array of additional documents to be captured. Each element includes a name and description. */
|
|
80
|
+
captureAdditionalDocuments?: AdditionalDocument[];
|
|
61
81
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for the ID card front during video capture. */
|
|
62
82
|
idCardFrontDetectionThreshold?: number;
|
|
63
83
|
/** Number between 0 and 1 at which focus guidance score condition is considered to be met for the ID card front during video capture. */
|
|
@@ -27,10 +27,11 @@ export type VideoIdWizardVerbiage = {
|
|
|
27
27
|
success?: IdVideoCaptureSuccessVerbiage;
|
|
28
28
|
};
|
|
29
29
|
export type VideoIdWizardProps = {
|
|
30
|
-
|
|
31
|
-
faceLivenessProps?: FaceLivenessWizardProps;
|
|
30
|
+
onComplete?: () => void;
|
|
32
31
|
onExitCapture?: () => void;
|
|
33
32
|
onExitAfterFailure?: (resp: SubmissionResponse | null, req: LivenessCheckRequest | null) => void;
|
|
33
|
+
idCaptureProps?: IdCaptureWizardProps;
|
|
34
|
+
faceLivenessProps?: FaceLivenessWizardProps;
|
|
34
35
|
idCardFrontDetectionThreshold?: number;
|
|
35
36
|
idCardFrontFocusThreshold?: number;
|
|
36
37
|
goodIdCardFrontFramesThreshold?: number;
|
|
@@ -46,4 +47,4 @@ export type VideoIdWizardProps = {
|
|
|
46
47
|
verbiage?: VideoIdWizardVerbiage;
|
|
47
48
|
debugMode?: boolean;
|
|
48
49
|
};
|
|
49
|
-
export declare const VideoIdWizard: ({
|
|
50
|
+
export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, idCaptureProps, faceLivenessProps, idCardFrontDetectionThreshold, idCardFrontFocusThreshold, goodIdCardFrontFramesThreshold, showIdCardBackDurationMs, readTextPrompt, readTextTimeoutDurationMs, skipIdCapture, skipShowIdCardBack, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
|