idmission-web-sdk 2.1.13 → 2.1.15
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/components/camera/CameraVideoTag.d.ts +4 -4
- package/dist/components/common/ButtonsRow.d.ts +1 -274
- package/dist/components/common/CapturedDocumentImg.d.ts +2 -2
- package/dist/components/common/ExitCaptureButton.d.ts +3 -284
- package/dist/components/common/GuidanceMessage.d.ts +9 -9
- package/dist/components/common/InvisibleCanvas.d.ts +1 -276
- package/dist/components/common/Page.d.ts +9 -9
- package/dist/components/common/debug.d.ts +14 -285
- package/dist/components/common/overlay.d.ts +19 -826
- package/dist/components/common/signature.d.ts +6 -1090
- package/dist/components/common/spinner.d.ts +5 -6
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +6 -2
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +6 -2
- package/dist/components/customer_flows/IdValidation.d.ts +6 -2
- package/dist/components/customer_flows/VideoIdValidation.d.ts +6 -2
- package/dist/components/document_capture/DocumentCaptureStateProvider.d.ts +7 -10
- package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts +27 -1108
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureSuccess.d.ts +1 -272
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +1 -1
- package/dist/components/submission/SessionValidationErrorOverlay.d.ts +1 -1
- package/dist/components/submission/SessionValidationFailedOverlay.d.ts +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +4 -2
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +8 -547
- package/dist/contexts/SubmissionContext.d.ts +17 -0
- package/dist/lib/camera/CameraFeedWrapper.d.ts +2 -3
- package/dist/lib/models/DocumentDetection.d.ts +0 -1
- package/dist/lib/models/FaceDetection.d.ts +0 -1
- package/dist/lib/models/Focus.d.ts +0 -1
- package/dist/lib/models/preloadModels.d.ts +3 -3
- package/dist/sdk2.esm.js +2661 -416
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +25749 -17818
- 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/stories/Components/FaceLiveness/Capture.stories.d.ts +1 -1
- package/dist/stories/Components/HighPerformanceObjectDetection/Minimal.stories.d.ts +2 -2
- package/dist/stories/Components/IdCapture/LicenseBackCapture.stories.d.ts +1 -1
- package/dist/stories/Components/IdCapture/LicenseFrontCapture.stories.d.ts +1 -1
- package/dist/stories/Components/IdCapture/PassportCapture.stories.d.ts +1 -1
- package/dist/stories/Components/IdCapture/Wizard.stories.d.ts +1 -1
- package/dist/stories/CustomerFlows/CustomerBiometricsEnrollment.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/CustomerIdentification.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/CustomerVerification.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/FaceValidation.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/SignatureKYC.stories.d.ts +0 -1
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +0 -1
- package/dist/stories/Experiments/Camera.stories.d.ts +1 -1
- package/dist/stories/Experiments/CameraEnumerationTool.stories.d.ts +1 -1
- package/dist/stories/Experiments/MultiCamera.stories.d.ts +1 -1
- package/dist/stories/Experiments/MultiStreamVideoCapture.stories.d.ts +1 -1
- package/dist/stories/Experiments/VideoCapture.stories.d.ts +1 -1
- package/dist/stories/utils/test_photos/cat1.d.ts +3 -3
- package/dist/stories/utils/test_photos/cat2.d.ts +3 -3
- package/dist/stories/utils/test_photos/cat3.d.ts +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +32 -50
- package/dist/sdk2.cjs.development.js +0 -14166
- package/dist/sdk2.cjs.development.js.map +0 -1
- package/dist/sdk2.cjs.production.js +0 -2
- package/dist/sdk2.cjs.production.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$
|
|
4
|
-
$
|
|
5
|
-
|
|
6
|
-
}>>;
|
|
1
|
+
export declare const Spinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$size?: number;
|
|
3
|
+
$thickness?: number;
|
|
4
|
+
$color?: string;
|
|
5
|
+
}>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { OnBeforeDocumentUpload, OnDocumentUploaded, OnDocumentUploadFailed, OnDocumentUploadProgress } from '../submission/SubmissionProvider';
|
|
3
|
-
import { CardData, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
+
import { CardData, CustomerDataMatchConfig, IdData, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
4
|
import { FaceLivenessAssets, FaceLivenessClassNames, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
5
5
|
import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
6
6
|
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
@@ -70,6 +70,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
70
70
|
personalData?: PersonalData;
|
|
71
71
|
/** Object of credit/debit card data to store with the submitted ID. Valid keys: `cardToken`, `cardLast4`, `cardExpDate`, `nameOnCard`. */
|
|
72
72
|
cardData?: CardData;
|
|
73
|
+
/** Object of ID data to validate against the submitted ID. Valid keys: `issueDate`, `expDate`. */
|
|
74
|
+
idData?: IdData;
|
|
73
75
|
/** Boolean flag indicating whether submissions from the same user should be de-duplicated. */
|
|
74
76
|
deduplicationEnabled?: boolean;
|
|
75
77
|
/** Boolean flag indicating whether to wait for de-duplication to complete before allowing the user to proceed. */
|
|
@@ -88,6 +90,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
88
90
|
webhooksFireOnReview?: boolean;
|
|
89
91
|
/** Boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false. */
|
|
90
92
|
sendBase64DocumentsInSwaggerProxy?: boolean;
|
|
93
|
+
/** Object of configuration flags to send for data matching on the server against the data extracted from the ID. */
|
|
94
|
+
customerDataMatchConfig?: CustomerDataMatchConfig;
|
|
91
95
|
/** String indicating which ID capture loading overlay screen should be used. Supported values: 'default' and 'legacy'. Defaults to 'default'. */
|
|
92
96
|
idCaptureLoadingOverlayMode?: IdCaptureLoadingOverlayMode;
|
|
93
97
|
/** String to indicate which types of ID documents should be captured. Valid values: `idCard`, `passport`, `idCardOrPassport`, `idCardAndPassport`. Default is `idCardOrPassport`. */
|
|
@@ -104,7 +108,7 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
104
108
|
idCaptureInstructions?: ReactNode;
|
|
105
109
|
/** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
|
|
106
110
|
idCaptureGuideType?: IdCaptureGuideType;
|
|
107
|
-
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `
|
|
111
|
+
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
|
|
108
112
|
idCapturePortraitGuidesOnMobile?: boolean;
|
|
109
113
|
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
110
114
|
idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { OnBeforeDocumentUpload, OnDocumentUploaded, OnDocumentUploadFailed, OnDocumentUploadProgress } from '../submission/SubmissionProvider';
|
|
3
|
-
import { CardData, LivenessCheckRequest, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
+
import { CardData, CustomerDataMatchConfig, IdData, LivenessCheckRequest, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
4
|
import { FaceLivenessAssets, FaceLivenessClassNames, FaceLivenessColors, FaceLivenessVerbiage } from '../face_liveness/FaceLivenessWizard';
|
|
5
5
|
import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
6
6
|
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
@@ -67,6 +67,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
67
67
|
personalData?: PersonalData;
|
|
68
68
|
/** Object of credit/debit card data to store with the submitted ID. Valid keys: `cardToken`, `cardLast4`, `cardExpDate`, `nameOnCard`. */
|
|
69
69
|
cardData?: CardData;
|
|
70
|
+
/** Object of ID data to validate against the submitted ID. Valid keys: `issueDate`, `expDate`. */
|
|
71
|
+
idData?: IdData;
|
|
70
72
|
/** Boolean flag to indicate whether customer-configured webhooks should be invoked after submission. */
|
|
71
73
|
webhooksEnabled?: boolean;
|
|
72
74
|
/** A customer provided trace id to use when invoking customer-configured webhooks. */
|
|
@@ -81,6 +83,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
81
83
|
webhooksFireOnReview?: boolean;
|
|
82
84
|
/** Boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false. */
|
|
83
85
|
sendBase64DocumentsInSwaggerProxy?: boolean;
|
|
86
|
+
/** Object of configuration flags to send for data matching on the server against the data extracted from the ID. */
|
|
87
|
+
customerDataMatchConfig?: CustomerDataMatchConfig;
|
|
84
88
|
/** Object to allow documents that have been previously captured to be submitted. Valid keys: `idCardFront`, `idCardBack`, `passport`. */
|
|
85
89
|
precapturedDocuments?: CapturedDocuments & {
|
|
86
90
|
selfie: CapturedDocument;
|
|
@@ -101,7 +105,7 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
101
105
|
idCaptureInstructions?: ReactNode;
|
|
102
106
|
/** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
|
|
103
107
|
idCaptureGuideType?: IdCaptureGuideType;
|
|
104
|
-
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `
|
|
108
|
+
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
|
|
105
109
|
idCapturePortraitGuidesOnMobile?: boolean;
|
|
106
110
|
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
107
111
|
idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { OnBeforeDocumentUpload, OnDocumentUploaded, OnDocumentUploadFailed, OnDocumentUploadProgress } from '../submission/SubmissionProvider';
|
|
3
|
-
import { CardData, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
|
+
import { CardData, CustomerDataMatchConfig, IdData, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
4
4
|
import { IdCaptureWizardAssets, IdCaptureWizardClassNames, IdCaptureWizardColors, IdCaptureWizardVerbiage } from '../id_capture/IdCaptureWizard';
|
|
5
5
|
import { AdditionalDocumentCaptureWizardClassNames, AdditionalDocumentCaptureWizardVerbiage } from '../additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
6
6
|
import { AdditionalDocument } from '../additional_document_capture/AdditionalDocumentCapture';
|
|
@@ -58,6 +58,8 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
58
58
|
personalData?: PersonalData;
|
|
59
59
|
/** Object of credit/debit card data to store with the submitted ID. Valid keys: `cardToken`, `cardLast4`, `cardExpDate`, `nameOnCard`. */
|
|
60
60
|
cardData?: CardData;
|
|
61
|
+
/** Object of ID data to validate against the submitted ID. Valid keys: `issueDate`, `expDate`. */
|
|
62
|
+
idData?: IdData;
|
|
61
63
|
/** Boolean flag to indicate whether customer-configured webhooks should be invoked after submission. */
|
|
62
64
|
webhooksEnabled?: boolean;
|
|
63
65
|
/** A customer provided trace id to use when invoking customer-configured webhooks. */
|
|
@@ -72,6 +74,8 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
72
74
|
webhooksFireOnReview?: boolean;
|
|
73
75
|
/** Boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false. */
|
|
74
76
|
sendBase64DocumentsInSwaggerProxy?: boolean;
|
|
77
|
+
/** Object of configuration flags to send for data matching on the server against the data extracted from the ID. */
|
|
78
|
+
customerDataMatchConfig?: CustomerDataMatchConfig;
|
|
75
79
|
/** String indicating which ID capture loading overlay screen should be used. Supported values: 'default' and 'legacy'. Defaults to 'default'. */
|
|
76
80
|
loadingOverlayMode?: IdCaptureLoadingOverlayMode;
|
|
77
81
|
/** String to indicate which types of documents should be captured. Valid values: `idCard`, `passport`, `idCardOrPassport`, `idCardAndPassport`. Default is `idCardOrPassport`. */
|
|
@@ -86,7 +90,7 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
86
90
|
instructions?: ReactNode;
|
|
87
91
|
/** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
|
|
88
92
|
guideType?: IdCaptureGuideType;
|
|
89
|
-
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `
|
|
93
|
+
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
|
|
90
94
|
portraitGuidesOnMobile?: boolean;
|
|
91
95
|
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
92
96
|
rotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { CardData, LivenessCheckRequest, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
2
|
+
import { CardData, CustomerDataMatchConfig, IdData, LivenessCheckRequest, PersonalData, SubmissionRequest, SubmissionResponse } from '../../contexts/SubmissionContext';
|
|
3
3
|
import { OnBeforeDocumentUpload, OnDocumentUploaded, OnDocumentUploadFailed, OnDocumentUploadProgress } from '../submission/SubmissionProvider';
|
|
4
4
|
import { CustomerSuppliedVerbiage, LangOption } from '../../lib/locales';
|
|
5
5
|
import { VideoIdWizardAssets, VideoIdWizardClassNames, VideoIdWizardColors, VideoIdWizardVerbiage } from '../video_id/IdVideoCaptureWizard';
|
|
@@ -59,6 +59,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
59
59
|
personalData?: PersonalData;
|
|
60
60
|
/** Object of credit/debit card data to store with the submitted ID. Valid keys: `cardToken`, `cardLast4`, `cardExpDate`, `nameOnCard`. */
|
|
61
61
|
cardData?: CardData;
|
|
62
|
+
/** Object of ID data to validate against the submitted ID. Valid keys: `issueDate`, `expDate`. */
|
|
63
|
+
idData?: IdData;
|
|
62
64
|
/** Boolean flag to indicate whether customer-configured webhooks should be invoked after submission. */
|
|
63
65
|
webhooksEnabled?: boolean;
|
|
64
66
|
/** A customer provided trace id to use when invoking customer-configured webhooks. */
|
|
@@ -73,6 +75,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
73
75
|
webhooksFireOnReview?: boolean;
|
|
74
76
|
/** Boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false. */
|
|
75
77
|
sendBase64DocumentsInSwaggerProxy?: boolean;
|
|
78
|
+
/** Object of configuration flags to send for data matching on the server against the data extracted from the ID. */
|
|
79
|
+
customerDataMatchConfig?: CustomerDataMatchConfig;
|
|
76
80
|
/** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
|
|
77
81
|
onBeforeDocumentUpload?: OnBeforeDocumentUpload;
|
|
78
82
|
/** Callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters. */
|
|
@@ -127,7 +131,7 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
127
131
|
idCaptureLoadingOverlayMode?: IdCaptureLoadingOverlayMode;
|
|
128
132
|
/** String to indicate what type of guides to use during capture. Using `fit` is highly recommended in order to capture the best quality image. Valid values: `fit`, `overlay`. Defaults to `fit`. */
|
|
129
133
|
idCaptureGuideType?: IdCaptureGuideType;
|
|
130
|
-
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `
|
|
134
|
+
/** Boolean to indicate whether guide images should be rotated on mobile. Defaults to `true`. */
|
|
131
135
|
idCapturePortraitGuidesOnMobile?: boolean;
|
|
132
136
|
/** Boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to `true`. */
|
|
133
137
|
idCaptureRotateLoadingOverlayImageWhenPortrait?: boolean;
|
|
@@ -96,17 +96,14 @@ export type DocumentCaptureDispatch = Dispatch<DocumentCaptureAction>;
|
|
|
96
96
|
export declare const DocumentCaptureDispatchContext: React.Context<DocumentCaptureDispatch>;
|
|
97
97
|
export declare const documentCaptureStateReducer: (state: DocumentCaptureState, action: DocumentCaptureAction) => DocumentCaptureState;
|
|
98
98
|
export declare const DocumentCaptureStateProvider: ({ documents, aspectRatio, cameraFeedMode, instructions, onDocumentCaptured, onDocumentUploaded, onAllDocumentsUploaded, children, }: {
|
|
99
|
-
documents?: CapturedDocument[]
|
|
100
|
-
aspectRatio?: number
|
|
101
|
-
cameraFeedMode?: CameraFeedMode
|
|
99
|
+
documents?: CapturedDocument[];
|
|
100
|
+
aspectRatio?: number;
|
|
101
|
+
cameraFeedMode?: CameraFeedMode;
|
|
102
102
|
instructions?: ReactNode;
|
|
103
|
-
onDocumentCaptured?: OnDocumentCaptured
|
|
104
|
-
onDocumentUploaded?: OnDocumentUploaded
|
|
105
|
-
onAllDocumentsUploaded?: OnAllDocumentsUploaded
|
|
103
|
+
onDocumentCaptured?: OnDocumentCaptured;
|
|
104
|
+
onDocumentUploaded?: OnDocumentUploaded;
|
|
105
|
+
onAllDocumentsUploaded?: OnAllDocumentsUploaded;
|
|
106
106
|
children: ReactNode;
|
|
107
107
|
}) => React.JSX.Element;
|
|
108
|
-
export declare const useDocumentCaptureState: () => [
|
|
109
|
-
DocumentCaptureStateWithActions,
|
|
110
|
-
DocumentCaptureDispatch
|
|
111
|
-
];
|
|
108
|
+
export declare const useDocumentCaptureState: () => [DocumentCaptureStateWithActions, DocumentCaptureDispatch];
|
|
112
109
|
export {};
|