idmission-web-sdk 1.0.17 → 1.0.18

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.
@@ -306,8 +306,9 @@ export type DetectedObjectDebugBoxProps = {
306
306
  obj: DetectedObject;
307
307
  scaling: DebugScalingDetails;
308
308
  flipX?: boolean;
309
+ color?: string;
309
310
  };
310
- export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, scaling: { horizontal, pageWidth, pageHeight, scaledWidth, scaledHeight, xOffset, yOffset, }, }: DetectedObjectDebugBoxProps): ReactElement;
311
+ export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, color, scaling: { horizontal, pageWidth, pageHeight, scaledWidth, scaledHeight, xOffset, yOffset, }, }: DetectedObjectDebugBoxProps): ReactElement;
311
312
  export type SelfieCaptureFaceDebugBoxProps = {
312
313
  face: Face;
313
314
  scaling: DebugScalingDetails;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
4
4
  import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
@@ -19,7 +19,7 @@ export type CustomerBiometricsEnrollmentVerbiage = {
19
19
  signatureCapture?: SignatureCaptureVerbiage;
20
20
  videoSignatureCapture?: VideoSignatureVerbiage;
21
21
  };
22
- export type CustomerBiometricsEnrollmentProps = {
22
+ export interface CustomerBiometricsEnrollmentProps extends PropsWithChildren {
23
23
  enrollmentId: string;
24
24
  lang?: LangOption;
25
25
  submissionToken: string;
@@ -47,5 +47,5 @@ export type CustomerBiometricsEnrollmentProps = {
47
47
  geolocationEnabled?: boolean;
48
48
  geolocationRequired?: boolean;
49
49
  debugMode?: boolean;
50
- };
51
- export declare const CustomerBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl, companyId, deduplicationEnabled, deduplicationSynchronous, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, timeoutDurationMs, skipSuccessScreen, onBeforeSubmit, onComplete, onEnrolled, onDenied, onExitAfterFailure, captureAdditionalDocuments, captureSignature, captureSignatureVideo, assets, colors, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: CustomerBiometricsEnrollmentProps) => ReactElement;
50
+ }
51
+ export declare const CustomerBiometricsEnrollment: FC<CustomerBiometricsEnrollmentProps>;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { CardData, PersonalData, SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
4
4
  import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
@@ -23,7 +23,7 @@ export type CustomerEnrollmentVerbiage = {
23
23
  signatureCapture?: SignatureCaptureVerbiage;
24
24
  videoSignatureCapture?: VideoSignatureVerbiage;
25
25
  };
26
- export type CustomerEnrollmentProps = {
26
+ export interface CustomerEnrollmentProps extends PropsWithChildren {
27
27
  enrollmentId: string;
28
28
  lang?: LangOption;
29
29
  submissionToken: string;
@@ -61,5 +61,5 @@ export type CustomerEnrollmentProps = {
61
61
  geolocationEnabled?: boolean;
62
62
  geolocationRequired?: boolean;
63
63
  debugMode?: boolean;
64
- };
65
- export declare const CustomerIdAndBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl, companyId, manualReviewRequired, verifyIdWithExternalDatabases, personalData, cardData, deduplicationEnabled, deduplicationSynchronous, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, faceLivenessTimeoutDurationMs, skipSuccessScreen, onBeforeSubmit, onComplete, onEnrolled, onDenied, onExitAfterFailure, captureAdditionalDocuments, captureSignature, captureSignatureVideo, assets, colors, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: CustomerEnrollmentProps) => ReactElement;
64
+ }
65
+ export declare const CustomerIdAndBiometricsEnrollment: FC<CustomerEnrollmentProps>;
@@ -1,8 +1,8 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { CustomerIdentificationAssets, CustomerIdentificationColors, CustomerIdentificationVerbiage } from '../customer_identification/CustomerIdentificationWizard';
4
4
  import { LangOption } from '../../lib/locales';
5
- export type CustomerIdentificationProps = {
5
+ export interface CustomerIdentificationProps extends PropsWithChildren {
6
6
  lang?: LangOption;
7
7
  submissionToken: string;
8
8
  submissionEnvironment?: SubmissionEnvironment;
@@ -25,5 +25,5 @@ export type CustomerIdentificationProps = {
25
25
  geolocationEnabled?: boolean;
26
26
  geolocationRequired?: boolean;
27
27
  debugMode?: boolean;
28
- };
29
- export declare const CustomerIdentification: ({ lang, submissionToken, submissionEnvironment, submissionUrl, companyId, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, timeoutDurationMs, skipSuccessScreen, onBeforeSubmit, onComplete, onCustomerMatched, onCustomerNotMatched, onCaptureGuidanceTimeout, onExitAfterFailure, assets, colors, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: CustomerIdentificationProps) => ReactElement;
28
+ }
29
+ export declare const CustomerIdentification: FC<CustomerIdentificationProps>;
@@ -1,8 +1,8 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { LangOption } from '../../lib/locales';
4
4
  import { CustomerVerificationAssets, CustomerVerificationColors, CustomerVerificationVerbiage } from '../customer_verification/CustomerVerificationWizard';
5
- export type CustomerVerificationProps = {
5
+ export interface CustomerVerificationProps extends PropsWithChildren {
6
6
  enrollmentId: string;
7
7
  lang?: LangOption;
8
8
  submissionToken: string;
@@ -25,5 +25,5 @@ export type CustomerVerificationProps = {
25
25
  geolocationEnabled?: boolean;
26
26
  geolocationRequired?: boolean;
27
27
  debugMode?: boolean;
28
- };
29
- export declare const CustomerVerification: ({ lang, enrollmentId, submissionToken, submissionEnvironment, submissionUrl, companyId, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, timeoutDurationMs, skipSuccessScreen, assets, colors, verbiage, onBeforeSubmit, onComplete, onCustomerMatched, onCustomerNotMatched, onExitAfterFailure, geolocationEnabled, geolocationRequired, debugMode, }: CustomerVerificationProps) => ReactElement;
28
+ }
29
+ export declare const CustomerVerification: FC<CustomerVerificationProps>;
@@ -1,8 +1,8 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
4
4
  import { LangOption } from '../../lib/locales';
5
- export type FaceValidationProps = {
5
+ export interface FaceValidationProps extends PropsWithChildren {
6
6
  lang?: LangOption;
7
7
  submissionToken: string;
8
8
  submissionEnvironment?: SubmissionEnvironment;
@@ -24,5 +24,5 @@ export type FaceValidationProps = {
24
24
  geolocationEnabled?: boolean;
25
25
  geolocationRequired?: boolean;
26
26
  debugMode?: boolean;
27
- };
28
- export declare const FaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, companyId, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, timeoutDurationMs, skipSuccessScreen, onBeforeSubmit, onComplete, onApproved, onDenied, onExitAfterFailure, assets, colors, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: FaceValidationProps) => ReactElement;
27
+ }
28
+ export declare const FaceValidation: FC<FaceValidationProps>;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { CardData, PersonalData, SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { FaceLivenessAssets, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
4
4
  import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
@@ -23,7 +23,7 @@ export type IdAndFaceValidationVerbiage = {
23
23
  signatureCapture?: SignatureCaptureVerbiage;
24
24
  videoSignatureCapture?: VideoSignatureVerbiage;
25
25
  };
26
- export type IdAndFaceValidationProps = {
26
+ export interface IdAndFaceValidationProps extends PropsWithChildren {
27
27
  lang?: LangOption;
28
28
  submissionToken: string;
29
29
  submissionEnvironment?: SubmissionEnvironment;
@@ -58,5 +58,5 @@ export type IdAndFaceValidationProps = {
58
58
  geolocationEnabled?: boolean;
59
59
  geolocationRequired?: boolean;
60
60
  debugMode?: boolean;
61
- };
62
- export declare const IdAndFaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, companyId, manualReviewRequired, verifyIdWithExternalDatabases, personalData, cardData, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, faceLivenessTimeoutDurationMs, skipSuccessScreen, onBeforeSubmit, onComplete, onApproved, onDenied, onExitAfterFailure, captureSignature, captureSignatureVideo, captureAdditionalDocuments, assets, colors, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: IdAndFaceValidationProps) => ReactElement;
61
+ }
62
+ export declare const IdAndFaceValidation: FC<IdAndFaceValidationProps>;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { CardData, PersonalData, SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
3
  import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
4
4
  import { AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
@@ -15,7 +15,7 @@ export type IdValidationVerbiage = IdCaptureWizardVerbiage & {
15
15
  signatureCapture?: SignatureCaptureVerbiage;
16
16
  videoSignatureCapture?: VideoSignatureVerbiage;
17
17
  };
18
- export type IdValidationProps = {
18
+ export interface IdValidationProps extends PropsWithChildren {
19
19
  lang?: LangOption;
20
20
  submissionToken: string;
21
21
  submissionEnvironment?: SubmissionEnvironment;
@@ -47,5 +47,5 @@ export type IdValidationProps = {
47
47
  geolocationEnabled?: boolean;
48
48
  geolocationRequired?: boolean;
49
49
  debugMode?: boolean;
50
- };
51
- export declare const IdValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, companyId, manualReviewRequired, verifyIdWithExternalDatabases, personalData, cardData, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, skipSuccessScreen, onBeforeSubmit, onComplete, onApproved, onDenied, assets, colors, verbiage, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: IdValidationProps) => ReactElement;
50
+ }
51
+ export declare const IdValidation: FC<IdValidationProps>;
@@ -1,8 +1,8 @@
1
- import { ReactElement } from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { LangOption } from '../../lib/locales';
3
3
  import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
4
4
  import { VideoSignatureColors, VideoSignatureVerbiage } from '../video_signature_capture/VideoSignatureWizard';
5
- export type SignatureKYCProps = {
5
+ export interface SignatureKYCProps extends PropsWithChildren {
6
6
  lang?: LangOption;
7
7
  submissionToken: string;
8
8
  submissionEnvironment?: SubmissionEnvironment;
@@ -15,5 +15,5 @@ export type SignatureKYCProps = {
15
15
  geolocationEnabled?: boolean;
16
16
  geolocationRequired?: boolean;
17
17
  debugMode?: boolean;
18
- };
19
- export declare const SignatureKYC: ({ submissionToken, submissionEnvironment, submissionUrl, onBeforeSubmit, onComplete, skipSuccessScreen, colors, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: SignatureKYCProps) => ReactElement;
18
+ }
19
+ export declare const SignatureKYC: FC<SignatureKYCProps>;
@@ -0,0 +1,16 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { SubmissionEnvironment, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
3
+ import { LangOption } from '../../lib/locales';
4
+ export interface VideoIdValidationProps extends PropsWithChildren {
5
+ lang?: LangOption;
6
+ submissionToken: string;
7
+ submissionEnvironment?: SubmissionEnvironment;
8
+ submissionUrl?: string;
9
+ onBeforeSubmit?: (request: SubmissionRequest) => Promise<SubmissionRequest>;
10
+ onComplete?: (submissionResponse: SubmissionResponse) => void;
11
+ skipSuccessScreen?: boolean | (() => Promise<boolean>);
12
+ geolocationEnabled?: boolean;
13
+ geolocationRequired?: boolean;
14
+ debugMode?: boolean;
15
+ }
16
+ export declare const VideoIdValidation: FC<VideoIdValidationProps>;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ export type IdVideoCaptureProps = {
3
+ onFaceNotDetected?: () => void;
4
+ debugMode?: boolean;
5
+ };
6
+ export declare const IdVideoCapture: ({ onFaceNotDetected, debugMode, }: IdVideoCaptureProps) => ReactElement;
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ export type IdVideoCaptureGuidesProps = {
3
+ borderWidth?: number;
4
+ borderColor?: string;
5
+ guideImageUrl?: string;
6
+ };
7
+ export declare const IdVideoCaptureGuides: ({ borderWidth, borderColor, guideImageUrl, }: IdVideoCaptureGuidesProps) => ReactElement;
@@ -0,0 +1,23 @@
1
+ import { ReactElement } from 'react';
2
+ import { IdCaptureWizardAssets, IdCaptureWizardColors, IdCaptureWizardProps, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
3
+ import { FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
4
+ export type VideoIdWizardAssets = {
5
+ idCapture?: IdCaptureWizardAssets;
6
+ };
7
+ export type VideoIdWizardColors = {
8
+ idCapture?: IdCaptureWizardColors;
9
+ faceLiveness?: FaceLivenessColors;
10
+ };
11
+ export type VideoIdWizardVerbiage = {
12
+ idCapture?: IdCaptureWizardVerbiage;
13
+ faceLiveness?: FaceLivenessVerbiage;
14
+ };
15
+ export type VideoIdWizardProps = {
16
+ idCaptureProps?: IdCaptureWizardProps;
17
+ skipSuccessScreen?: boolean | (() => Promise<boolean>);
18
+ assets?: VideoIdWizardAssets;
19
+ colors?: VideoIdWizardColors;
20
+ verbiage?: VideoIdWizardVerbiage;
21
+ debugMode?: boolean;
22
+ };
23
+ export declare const VideoIdWizard: ({ idCaptureProps, assets, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
package/dist/index.d.ts CHANGED
@@ -1,21 +1,23 @@
1
1
  import { IdValidation, IdValidationProps } from './components/customer_flows/IdValidation';
2
2
  import { FaceValidation, FaceValidationProps } from './components/customer_flows/FaceValidation';
3
3
  import { IdAndFaceValidation, IdAndFaceValidationProps } from './components/customer_flows/IdAndFaceValidation';
4
- import { CustomerIdAndBiometricsEnrollment, CustomerEnrollmentProps } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
4
+ import { CustomerEnrollmentProps, CustomerIdAndBiometricsEnrollment } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
5
5
  import { CustomerVerification, CustomerVerificationProps } from './components/customer_flows/CustomerVerification';
6
6
  import { CustomerIdentification, CustomerIdentificationProps } from './components/customer_flows/CustomerIdentification';
7
+ import { SignatureKYC, SignatureKYCProps } from './components/customer_flows/SignatureKYC';
8
+ import { VideoIdValidation, VideoIdValidationProps } from './components/customer_flows/VideoIdValidation';
7
9
  import { preloadModels } from './lib/models/preloadModels';
8
10
  import { CustomerBiometricsEnrollment } from './components/customer_flows/CustomerBiometricsEnrollment';
9
- import { SignatureKYC, SignatureKYCProps } from './components/customer_flows/SignatureKYC';
10
- type TargetElement = Element | DocumentFragment | string;
11
- export declare const renderIdValidation: (targetElement: TargetElement, options: IdValidationProps) => void;
12
- export declare const renderFaceValidation: (targetElement: TargetElement, options: FaceValidationProps) => void;
13
- export declare const renderIdAndFaceValidation: (targetElement: TargetElement, options: IdAndFaceValidationProps) => void;
14
- export declare const renderCustomerIdAndBiometricsEnrollment: (targetElement: TargetElement, options: CustomerEnrollmentProps) => void;
15
- export declare const renderCustomerBiometricsEnrollment: (targetElement: TargetElement, options: CustomerEnrollmentProps) => void;
16
- export declare const renderCustomerVerification: (targetElement: TargetElement, options: CustomerVerificationProps) => void;
17
- export declare const renderCustomerIdentification: (targetElement: TargetElement, options: CustomerIdentificationProps) => void;
18
- export declare const renderSignatureKYC: (targetElement: TargetElement, options: SignatureKYCProps) => void;
11
+ type TargetElement = Element | DocumentFragment | string | undefined;
12
+ export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => HTMLDivElement;
13
+ export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => HTMLDivElement;
14
+ export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) => HTMLDivElement;
15
+ export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => HTMLDivElement;
16
+ export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => HTMLDivElement;
17
+ export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) => HTMLDivElement;
18
+ export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) => HTMLDivElement;
19
+ export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) => HTMLDivElement;
20
+ export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) => HTMLDivElement;
19
21
  export type IDmissionSDK = {
20
22
  renderIdValidation: typeof renderIdValidation;
21
23
  renderFaceValidation: typeof renderFaceValidation;
@@ -25,6 +27,7 @@ export type IDmissionSDK = {
25
27
  renderCustomerVerification: typeof renderCustomerVerification;
26
28
  renderCustomerIdentification: typeof renderCustomerIdentification;
27
29
  renderSignatureKYC: typeof renderSignatureKYC;
30
+ renderVideoIdValidation: typeof renderVideoIdValidation;
28
31
  preloadModels: typeof preloadModels;
29
32
  version: string;
30
33
  ready: boolean;
@@ -32,4 +35,4 @@ export type IDmissionSDK = {
32
35
  declare global {
33
36
  var IDmissionSDK: IDmissionSDK;
34
37
  }
35
- export { preloadModels, IdValidation, FaceValidation, IdAndFaceValidation, CustomerIdAndBiometricsEnrollment, CustomerBiometricsEnrollment, CustomerVerification, CustomerIdentification, SignatureKYC, };
38
+ export { preloadModels, IdValidation, FaceValidation, IdAndFaceValidation, CustomerIdAndBiometricsEnrollment, CustomerBiometricsEnrollment, CustomerVerification, CustomerIdentification, SignatureKYC, VideoIdValidation, };