idmission-web-sdk 0.0.16 → 0.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.
- package/README.md +0 -3
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +1 -2
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +1 -2
- package/dist/components/customer_flows/IdValidation.d.ts +1 -2
- package/dist/components/id_capture/IdCapture.d.ts +1 -2
- package/dist/components/id_capture/IdCaptureWizard.d.ts +1 -2
- package/dist/contexts/IdCaptureModelsContext.d.ts +2 -0
- package/dist/lib/tfworker/Actions.d.ts +3 -2
- package/dist/sdk2.cjs.development.js +362 -277
- 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 +362 -277
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +362 -277
- 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/IdCapture/LicenseBackCapture.stories.d.ts +0 -1
- package/dist/stories/IdCapture/LicenseFrontCapture.stories.d.ts +0 -1
- package/dist/stories/IdCapture/PassportCapture.stories.d.ts +0 -1
- package/dist/stories/IdCapture/Wizard.stories.d.ts +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,6 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
53
53
|
<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>
|
|
54
54
|
<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>
|
|
55
55
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
56
|
-
<tr><td><code>documentDetectionNonMaxSuppressionEnabled</code> (optional)</td><td>boolean to indicate whether to remove document predictions below the max score.</td></tr>
|
|
57
56
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
58
57
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards.</td></tr>
|
|
59
58
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports.</td></tr>
|
|
@@ -213,7 +212,6 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
213
212
|
<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>
|
|
214
213
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
215
214
|
<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>
|
|
216
|
-
<tr><td><code>documentDetectionNonMaxSuppressionEnabled</code> (optional)</td><td>boolean to indicate whether to remove document predictions below the max score.</td></tr>
|
|
217
215
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
218
216
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards.</td></tr>
|
|
219
217
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports.</td></tr>
|
|
@@ -262,7 +260,6 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
262
260
|
<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>
|
|
263
261
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
264
262
|
<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>
|
|
265
|
-
<tr><td><code>documentDetectionNonMaxSuppressionEnabled</code> (optional)</td><td>boolean to indicate whether to remove document predictions below the max score.</td></tr>
|
|
266
263
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
267
264
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards.</td></tr>
|
|
268
265
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports.</td></tr>
|
|
@@ -11,7 +11,6 @@ export type CustomerEnrollmentProps = {
|
|
|
11
11
|
submissionToken: string;
|
|
12
12
|
submissionEnvironment?: SubmissionEnvironment;
|
|
13
13
|
submissionUrl?: string;
|
|
14
|
-
documentDetectionNonMaxSuppressionEnabled?: boolean;
|
|
15
14
|
idAutoCaptureEnabled?: boolean;
|
|
16
15
|
idCardAutoCaptureScoreThreshold?: number;
|
|
17
16
|
mrzDetectionScoreThreshold?: number;
|
|
@@ -35,4 +34,4 @@ export type CustomerEnrollmentProps = {
|
|
|
35
34
|
geolocationRequired?: boolean;
|
|
36
35
|
debugMode?: boolean;
|
|
37
36
|
};
|
|
38
|
-
export declare const CustomerIdAndBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl,
|
|
37
|
+
export declare const CustomerIdAndBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, idCaptureAssets, idCaptureVerbiage, faceLivenessTimeoutDurationMs, faceLivenessAssets, faceLivenessVerbiage, onBeforeSubmit, onComplete, onEnrolled, onDenied, onExitAfterFailure, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: CustomerEnrollmentProps) => ReactElement;
|
|
@@ -10,7 +10,6 @@ export type IdAndFaceValidationProps = {
|
|
|
10
10
|
submissionToken: string;
|
|
11
11
|
submissionEnvironment?: SubmissionEnvironment;
|
|
12
12
|
submissionUrl?: string;
|
|
13
|
-
documentDetectionNonMaxSuppressionEnabled?: boolean;
|
|
14
13
|
idAutoCaptureEnabled?: boolean;
|
|
15
14
|
idCardAutoCaptureScoreThreshold?: number;
|
|
16
15
|
mrzDetectionScoreThreshold?: number;
|
|
@@ -34,4 +33,4 @@ export type IdAndFaceValidationProps = {
|
|
|
34
33
|
geolocationRequired?: boolean;
|
|
35
34
|
debugMode?: boolean;
|
|
36
35
|
};
|
|
37
|
-
export declare const IdAndFaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl,
|
|
36
|
+
export declare const IdAndFaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, idCaptureAssets, idCaptureVerbiage, faceLivenessTimeoutDurationMs, faceLivenessAssets, faceLivenessVerbiage, onBeforeSubmit, onComplete, onApproved, onDenied, onExitAfterFailure, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: IdAndFaceValidationProps) => ReactElement;
|
|
@@ -11,7 +11,6 @@ export type IdValidationProps = {
|
|
|
11
11
|
submissionToken: string;
|
|
12
12
|
submissionEnvironment?: SubmissionEnvironment;
|
|
13
13
|
submissionUrl?: string;
|
|
14
|
-
documentDetectionNonMaxSuppressionEnabled?: boolean;
|
|
15
14
|
idAutoCaptureEnabled?: boolean;
|
|
16
15
|
idCardAutoCaptureScoreThreshold?: number;
|
|
17
16
|
passportAutoCaptureScoreThreshold?: number;
|
|
@@ -30,4 +29,4 @@ export type IdValidationProps = {
|
|
|
30
29
|
geolocationRequired?: boolean;
|
|
31
30
|
debugMode?: boolean;
|
|
32
31
|
};
|
|
33
|
-
export declare const IdValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl,
|
|
32
|
+
export declare const IdValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, onBeforeSubmit, onComplete, onApproved, onDenied, assets, verbiage, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: IdValidationProps) => ReactElement;
|
|
@@ -22,7 +22,6 @@ export type IdCaptureVerbiage = {
|
|
|
22
22
|
captureFailedText?: string;
|
|
23
23
|
};
|
|
24
24
|
export type IdCaptureProps = {
|
|
25
|
-
documentDetectionNonMaxSuppressionEnabled: boolean;
|
|
26
25
|
requiredDocumentType?: DocumentType;
|
|
27
26
|
autoCaptureEnabled?: boolean;
|
|
28
27
|
autoCaptureScoreThreshold?: number;
|
|
@@ -43,4 +42,4 @@ export type IdCaptureProps = {
|
|
|
43
42
|
verbiage?: IdCaptureVerbiage;
|
|
44
43
|
debugMode?: boolean;
|
|
45
44
|
};
|
|
46
|
-
export declare const IdCapture: ({
|
|
45
|
+
export declare const IdCapture: ({ requiredDocumentType, autoCaptureEnabled, autoCaptureScoreThreshold, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, mrzDetectionScoreThreshold, passportPageDetectionThreshold, pdf417DetectionThreshold, focusScoreThreshold, barcodeScanningEnabled, maxBarcodeScanAttempts, onPrediction, onBarcodeScanned, onCapture, processingScreen, processingDelay, assets, verbiage, debugMode, }: IdCaptureProps) => React.ReactElement;
|
|
@@ -39,7 +39,6 @@ export type IdCaptureSubmission = {
|
|
|
39
39
|
};
|
|
40
40
|
export type IdCaptureWizardProps = {
|
|
41
41
|
onSuccess?: (submission: IdCaptureSubmission) => void;
|
|
42
|
-
documentDetectionNonMaxSuppressionEnabled?: boolean;
|
|
43
42
|
autoCaptureEnabled?: boolean;
|
|
44
43
|
autoCaptureGoodFramesRequired?: number;
|
|
45
44
|
autoCaptureBarcodeRequired?: 'mobile' | boolean;
|
|
@@ -53,4 +52,4 @@ export type IdCaptureWizardProps = {
|
|
|
53
52
|
assets?: IdCaptureAssets;
|
|
54
53
|
debugMode?: boolean;
|
|
55
54
|
};
|
|
56
|
-
export declare const IdCaptureWizard: ({ onSuccess,
|
|
55
|
+
export declare const IdCaptureWizard: ({ onSuccess, autoCaptureEnabled, autoCaptureGoodFramesRequired, autoCaptureBarcodeRequired, barcodeScanningEnabled, idCardAutoCaptureScoreThreshold, passportAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, assets, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
@@ -7,5 +7,7 @@ export type IdCaptureModelsState = {
|
|
|
7
7
|
onPredictionMade: (handler: (prediction: Prediction) => void) => void;
|
|
8
8
|
documentDetectionPredictionTime: number;
|
|
9
9
|
focusPredictionTime: number;
|
|
10
|
+
getBestFrame: () => Promise<Blob | null>;
|
|
11
|
+
resetBestFrame: () => void;
|
|
10
12
|
};
|
|
11
13
|
export declare const IdCaptureModelsContext: import("react").Context<IdCaptureModelsState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DetectedObject } from '../models/DocumentDetection';
|
|
2
2
|
import { FocusPrediction } from '../models/Focus';
|
|
3
3
|
export type Action = {
|
|
4
4
|
type: 'loadModel';
|
|
@@ -24,6 +24,7 @@ export type Action = {
|
|
|
24
24
|
};
|
|
25
25
|
export type Prediction = {
|
|
26
26
|
image: ImageBitmap;
|
|
27
|
-
|
|
27
|
+
detectedObjects: DetectedObject[];
|
|
28
|
+
detectionScore: number;
|
|
28
29
|
focus: FocusPrediction;
|
|
29
30
|
};
|