idmission-web-sdk 1.0.201 → 1.0.202
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/CompositeWizard.d.ts +3 -3
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +2 -6
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -6
- package/dist/components/customer_flows/CustomerIdentification.d.ts +2 -6
- package/dist/components/customer_flows/CustomerVerification.d.ts +2 -6
- package/dist/components/customer_flows/DocumentCapture.d.ts +2 -4
- package/dist/components/customer_flows/FaceValidation.d.ts +2 -6
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -6
- package/dist/components/customer_flows/IdValidation.d.ts +2 -6
- package/dist/components/customer_flows/SignatureKYC.d.ts +2 -6
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -6
- package/dist/components/submission/Errors.d.ts +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +5 -9
- package/dist/components/submission/TokenIssuerNotAllowedErrorOverlay.d.ts +2 -0
- package/dist/components/submission/TokenMissingErrorOverlay.d.ts +2 -0
- package/dist/components/submission/TokenPublicKeyErrorOverlay.d.ts +5 -0
- package/dist/contexts/SubmissionContext.d.ts +3 -3
- package/dist/index.d.ts +1 -7
- package/dist/lib/utils/dataUrlToBase64.d.ts +0 -1
- package/dist/sdk2.cjs.development.js +517 -620
- 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 +520 -620
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +517 -620
- 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/CompositeWizard/FaceLivenessAndIdCapture.stories.d.ts +9 -0
- package/dist/stories/CustomerFlows/CustomerBiometricsEnrollment.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/CustomerIdentification.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/CustomerVerification.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/DocumentCapture.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/FaceValidation.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/SignatureKYC.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +1 -14
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/submission/AuthUrlNotAllowedOverlay.d.ts +0 -2
- package/dist/components/submission/SessionIdMissingOverlay.d.ts +0 -2
- package/dist/components/submission/SessionValidationErrorOverlay.d.ts +0 -6
- package/dist/components/submission/SessionValidationFailedOverlay.d.ts +0 -2
- package/dist/contexts/AuthStateContext.d.ts +0 -33
- package/dist/stories/Auth.stories.d.ts +0 -8
- package/dist/stories/utils/sessions.d.ts +0 -13
- package/dist/stories/utils/useLocalStorage.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IdCaptureWizardProps } from './id_capture/IdCaptureWizard';
|
|
3
3
|
import { FaceLivenessWizardProps } from './face_liveness/FaceLivenessWizard';
|
|
4
|
-
import { SubmissionAction, SubmissionResponse } from '../contexts/SubmissionContext';
|
|
4
|
+
import { SubmissionAction, SubmissionEnvironment, SubmissionResponse } from '../contexts/SubmissionContext';
|
|
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';
|
|
@@ -20,10 +20,10 @@ export type CompositeWizardComponentProps = {
|
|
|
20
20
|
debugMode?: boolean;
|
|
21
21
|
};
|
|
22
22
|
export type CompositeWizardProps = CompositeWizardComponentProps & {
|
|
23
|
-
|
|
23
|
+
submissionToken: string;
|
|
24
24
|
submissionAction?: SubmissionAction;
|
|
25
|
+
submissionEnvironment?: SubmissionEnvironment;
|
|
25
26
|
submissionUrl?: string;
|
|
26
|
-
authUrl?: string;
|
|
27
27
|
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
28
28
|
};
|
|
29
29
|
export declare const CompositeWizard: (props: CompositeWizardProps) => ReactElement;
|
|
@@ -31,14 +31,10 @@ export interface CustomerBiometricsEnrollmentProps extends PropsWithChildren {
|
|
|
31
31
|
enrollmentId: string;
|
|
32
32
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
33
33
|
lang?: LangOption;
|
|
34
|
-
/** A
|
|
35
|
-
|
|
34
|
+
/** A token generated with your IDmission credentials. */
|
|
35
|
+
submissionToken: string;
|
|
36
36
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
37
37
|
submissionUrl?: string;
|
|
38
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
39
|
-
authUrl?: string;
|
|
40
|
-
/** URL to upload captured documents to via Tus. */
|
|
41
|
-
documentServiceUrl?: string;
|
|
42
38
|
/** Company identifier to include with submission. */
|
|
43
39
|
companyId?: string;
|
|
44
40
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -38,14 +38,10 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
38
38
|
enrollmentId: string;
|
|
39
39
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
40
40
|
lang?: LangOption;
|
|
41
|
-
/** A
|
|
42
|
-
|
|
41
|
+
/** A token generated with your IDmission credentials. */
|
|
42
|
+
submissionToken: string;
|
|
43
43
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
44
44
|
submissionUrl?: string;
|
|
45
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
46
|
-
authUrl?: string;
|
|
47
|
-
/** URL to upload captured documents to via Tus. */
|
|
48
|
-
documentServiceUrl?: string;
|
|
49
45
|
/** Company identifier to include with submission. */
|
|
50
46
|
companyId?: string;
|
|
51
47
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -6,14 +6,10 @@ import { ThemeInput } from '../../themes';
|
|
|
6
6
|
export interface CustomerIdentificationProps extends PropsWithChildren {
|
|
7
7
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
8
8
|
lang?: LangOption;
|
|
9
|
-
/** A
|
|
10
|
-
|
|
9
|
+
/** A token generated with your IDmission credentials. */
|
|
10
|
+
submissionToken: string;
|
|
11
11
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
12
12
|
submissionUrl?: string;
|
|
13
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
14
|
-
authUrl?: string;
|
|
15
|
-
/** URL to upload captured documents to via Tus. */
|
|
16
|
-
documentServiceUrl?: string;
|
|
17
13
|
/** Company identifier to include with submission. */
|
|
18
14
|
companyId?: string;
|
|
19
15
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -8,14 +8,10 @@ export interface CustomerVerificationProps extends PropsWithChildren {
|
|
|
8
8
|
enrollmentId: string;
|
|
9
9
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
10
10
|
lang?: LangOption;
|
|
11
|
-
/** A
|
|
12
|
-
|
|
11
|
+
/** A token generated with your IDmission credentials. */
|
|
12
|
+
submissionToken: string;
|
|
13
13
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
14
14
|
submissionUrl?: string;
|
|
15
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
16
|
-
authUrl?: string;
|
|
17
|
-
/** URL to upload captured documents to via Tus. */
|
|
18
|
-
documentServiceUrl?: string;
|
|
19
15
|
/** Company identifier to include with submission. */
|
|
20
16
|
companyId?: string;
|
|
21
17
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -9,12 +9,10 @@ export type DocumentCaptureVerbiage = DocumentCaptureWizardVerbiage;
|
|
|
9
9
|
export interface DocumentCaptureProps extends PropsWithChildren {
|
|
10
10
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
11
11
|
lang?: LangOption;
|
|
12
|
-
/** A
|
|
13
|
-
|
|
12
|
+
/** A token generated with your IDmission credentials. */
|
|
13
|
+
submissionToken: string;
|
|
14
14
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
15
15
|
submissionUrl?: string;
|
|
16
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
17
|
-
authUrl?: string;
|
|
18
16
|
/** URL to upload captured documents to via Tus. */
|
|
19
17
|
documentServiceUrl?: string;
|
|
20
18
|
/** Callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned. */
|
|
@@ -10,14 +10,10 @@ export type FaceValidationVerbiage = FaceLivenessVerbiage;
|
|
|
10
10
|
export interface FaceValidationProps extends PropsWithChildren {
|
|
11
11
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
12
12
|
lang?: LangOption;
|
|
13
|
-
/** A
|
|
14
|
-
|
|
13
|
+
/** A token generated with your IDmission credentials. */
|
|
14
|
+
submissionToken: string;
|
|
15
15
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
16
16
|
submissionUrl?: string;
|
|
17
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
18
|
-
authUrl?: string;
|
|
19
|
-
/** URL to upload captured documents to via Tus. */
|
|
20
|
-
documentServiceUrl?: string;
|
|
21
17
|
/** Company identifier to include with submission. */
|
|
22
18
|
companyId?: string;
|
|
23
19
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -37,14 +37,10 @@ export type IdAndFaceValidationVerbiage = {
|
|
|
37
37
|
export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
38
38
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
39
39
|
lang?: LangOption;
|
|
40
|
-
/** A
|
|
41
|
-
|
|
40
|
+
/** A token generated with your IDmission credentials. */
|
|
41
|
+
submissionToken: string;
|
|
42
42
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
43
43
|
submissionUrl?: string;
|
|
44
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
45
|
-
authUrl?: string;
|
|
46
|
-
/** URL to upload captured documents to via Tus. */
|
|
47
|
-
documentServiceUrl?: string;
|
|
48
44
|
/** Company identifier to include with submission. */
|
|
49
45
|
companyId?: string;
|
|
50
46
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -27,14 +27,10 @@ export type IdValidationVerbiage = IdCaptureWizardVerbiage & {
|
|
|
27
27
|
export interface IdValidationProps extends PropsWithChildren {
|
|
28
28
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
29
29
|
lang?: LangOption;
|
|
30
|
-
/** A
|
|
31
|
-
|
|
30
|
+
/** A token generated with your IDmission credentials. */
|
|
31
|
+
submissionToken: string;
|
|
32
32
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
33
33
|
submissionUrl?: string;
|
|
34
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
35
|
-
authUrl?: string;
|
|
36
|
-
/** URL to upload captured documents to via Tus. */
|
|
37
|
-
documentServiceUrl?: string;
|
|
38
34
|
/** Company identifier to include with submission. */
|
|
39
35
|
companyId?: string;
|
|
40
36
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -6,14 +6,10 @@ import { ThemeInput } from '../../themes';
|
|
|
6
6
|
export interface SignatureKYCProps extends PropsWithChildren {
|
|
7
7
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
8
8
|
lang?: LangOption;
|
|
9
|
-
/** A
|
|
10
|
-
|
|
9
|
+
/** A token generated with your IDmission credentials. */
|
|
10
|
+
submissionToken: string;
|
|
11
11
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
12
12
|
submissionUrl?: string;
|
|
13
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
14
|
-
authUrl?: string;
|
|
15
|
-
/** URL to upload captured documents to via Tus. */
|
|
16
|
-
documentServiceUrl?: string;
|
|
17
13
|
/** Callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned. */
|
|
18
14
|
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
19
15
|
/** Callback function that fires when the user has completed the flow instead of making a call to IDmission's servers, allowing customers to specify their own submission logic. Arguments: the request payload that would have been dispatched to IDmission's API, which contains the images/documents/video submitted by the user. Note that when this parameter is supplied, `onComplete` will never fire, and the customer will need to implement their own error handling/retry logic. Use at your own risk! */
|
|
@@ -27,14 +27,10 @@ export type VideoIdValidationVerbiage = VideoIdWizardVerbiage & {
|
|
|
27
27
|
export interface VideoIdValidationProps extends PropsWithChildren {
|
|
28
28
|
/** Language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto. */
|
|
29
29
|
lang?: LangOption;
|
|
30
|
-
/** A
|
|
31
|
-
|
|
30
|
+
/** A token generated with your IDmission credentials. */
|
|
31
|
+
submissionToken: string;
|
|
32
32
|
/** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
|
|
33
33
|
submissionUrl?: string;
|
|
34
|
-
/** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
|
|
35
|
-
authUrl?: string;
|
|
36
|
-
/** URL to upload captured documents to via Tus. */
|
|
37
|
-
documentServiceUrl?: string;
|
|
38
34
|
/** Company identifier to include with submission. */
|
|
39
35
|
companyId?: string;
|
|
40
36
|
/** Boolean flag to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true. */
|
|
@@ -5,7 +5,7 @@ export declare class SubmissionError extends Error {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class NetworkError extends Error {
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class TokenPublicKeyError extends Error {
|
|
9
9
|
err: Error;
|
|
10
10
|
host: string;
|
|
11
11
|
constructor(err: Error, host: string);
|
|
@@ -4,11 +4,7 @@ import { UploadedDocument } from '../additional_document_capture/AdditionalDocum
|
|
|
4
4
|
import { SignatureData } from '../signature_capture/data';
|
|
5
5
|
import { NetworkError, SubmissionError } from './Errors';
|
|
6
6
|
import { CapturedDocuments } from '../id_capture/CapturedDocuments';
|
|
7
|
-
export
|
|
8
|
-
type DocumentMetadata = {
|
|
9
|
-
filename?: string;
|
|
10
|
-
filetype?: string;
|
|
11
|
-
};
|
|
7
|
+
export type TokenState = 'NOT_PARSED' | 'PARSING' | 'GOOD' | 'MISSING' | 'EXPIRED' | 'INVALID_FORMAT' | 'INVALID_SIGNATURE' | 'ISSUER_NOT_ALLOWED' | 'PUBLIC_KEY_LOAD_FAILED';
|
|
12
8
|
export type SubmissionState = {
|
|
13
9
|
submit: () => Promise<SubmissionResponse | null>;
|
|
14
10
|
submissionStatus: SubmissionStatus;
|
|
@@ -36,7 +32,7 @@ export type SubmissionState = {
|
|
|
36
32
|
setIdCaptureVideoIdFrontImage: (image: string) => void;
|
|
37
33
|
setIdCaptureVideoIdBackImage: (image: string) => void;
|
|
38
34
|
setAdditionalDocuments: (uploadedDocuments: UploadedDocument[]) => void;
|
|
39
|
-
uploadDocument: (blob: Blob
|
|
35
|
+
uploadDocument: (blob: Blob) => Promise<string>;
|
|
40
36
|
logIdFrontCaptureAttempt: (attempt: CaptureAttemptMetadata) => void;
|
|
41
37
|
logIdBackCaptureAttempt: (attempt: CaptureAttemptMetadata) => void;
|
|
42
38
|
logSelfieCaptureAttempt: (attempt: CaptureAttemptMetadata) => void;
|
|
@@ -48,7 +44,8 @@ export declare const SubmissionContext: React.Context<SubmissionState>;
|
|
|
48
44
|
export type SubmissionProviderProps = {
|
|
49
45
|
action: SubmissionAction;
|
|
50
46
|
children: ReactElement;
|
|
51
|
-
|
|
47
|
+
token: string;
|
|
48
|
+
url?: string;
|
|
52
49
|
environment?: SubmissionEnvironment;
|
|
53
50
|
companyId?: string;
|
|
54
51
|
enrollmentId?: string;
|
|
@@ -79,5 +76,4 @@ export type SubmissionProviderProps = {
|
|
|
79
76
|
onResponseReceived?: (res: SubmissionResponse, req: SubmissionRequest) => void;
|
|
80
77
|
onRequestFailure?: (err: Error) => void;
|
|
81
78
|
};
|
|
82
|
-
export declare const SubmissionProvider: ({ action, children,
|
|
83
|
-
export {};
|
|
79
|
+
export declare const SubmissionProvider: ({ action, children, url, environment, token, companyId, enrollmentId, personalData, cardData, bypassAgeValidation, bypassNameMatching, needImmediateResponse, manualReviewRequired, idBackImageRequired, idImageResolutionCheck, verifyIdWithExternalDatabases, deduplicationEnabled, deduplicationSynchronous, geolocationEnabled, geolocationRequired, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, webhooksSendInputImages, webhooksSendProcessedImages, webhooksFireOnReview, precapturedDocuments, documentServiceUrl, onSubmit, onBeforeSubmit, onBeforeLivenessCheck, onResponseReceived, onRequestFailure, }: SubmissionProviderProps) => ReactElement;
|
|
@@ -156,9 +156,9 @@ export type LiveCheckResponse = {
|
|
|
156
156
|
};
|
|
157
157
|
export declare function parseJwt(token: string): Record<string, unknown>;
|
|
158
158
|
export declare function determineSubmissionHost(environment: SubmissionEnvironment, token?: string): string;
|
|
159
|
-
export declare function determineSubmissionEndpoint(action: SubmissionAction, hasId: boolean, hasSelfie: boolean): string;
|
|
160
|
-
export declare function liveCheckEndpoint(): string;
|
|
161
|
-
export declare function apiHeaders(
|
|
159
|
+
export declare function determineSubmissionEndpoint(action: SubmissionAction, hasId: boolean, hasSelfie: boolean, hasToken: boolean): string;
|
|
160
|
+
export declare function liveCheckEndpoint(hasToken: boolean): string;
|
|
161
|
+
export declare function apiHeaders(token?: string): HeadersInit;
|
|
162
162
|
export declare function attachMetadataToRequest(request: SubmissionRequest | LivenessCheckRequest, { selfieCaptureAttempts, idFrontCaptureAttempts, idBackCaptureAttempts, geolocationResult, }: {
|
|
163
163
|
selfieCaptureAttempts: CaptureAttemptMetadata[];
|
|
164
164
|
idFrontCaptureAttempts: CaptureAttemptMetadata[];
|
package/dist/index.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ import { Theme, themes } from './themes';
|
|
|
12
12
|
import { SubmissionRequest, SubmissionResponse } from './contexts/SubmissionContext';
|
|
13
13
|
import { DocumentCapture, DocumentCaptureProps } from './components/customer_flows/DocumentCapture';
|
|
14
14
|
import { CapturedDocumentImg } from './components/common/CapturedDocumentImg';
|
|
15
|
-
import { defaultSubmissionUrl } from './components/submission/SubmissionProvider';
|
|
16
|
-
import { defaultAuthUrl, allowedAuthUrls } from './contexts/AuthStateContext';
|
|
17
15
|
type TargetElement = Element | DocumentFragment | string | undefined;
|
|
18
16
|
export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => Element | DocumentFragment;
|
|
19
17
|
export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => Element | DocumentFragment;
|
|
@@ -40,12 +38,8 @@ export type IDmissionSDK = {
|
|
|
40
38
|
themes: typeof themes;
|
|
41
39
|
version: string;
|
|
42
40
|
ready: boolean;
|
|
43
|
-
authMode?: 'session';
|
|
44
|
-
allowedAuthUrls?: string[];
|
|
45
|
-
defaultAuthUrl?: string;
|
|
46
|
-
defaultSubmissionUrl?: string;
|
|
47
41
|
};
|
|
48
42
|
declare global {
|
|
49
43
|
var IDmissionSDK: IDmissionSDK;
|
|
50
44
|
}
|
|
51
|
-
export { preloadModels, themes, Theme, IdValidation, FaceValidation, IdAndFaceValidation, CustomerIdAndBiometricsEnrollment, CustomerBiometricsEnrollment, CustomerVerification, CustomerIdentification, SignatureKYC, VideoIdValidation, DocumentCapture, SubmissionRequest, SubmissionResponse, CapturedDocumentImg,
|
|
45
|
+
export { preloadModels, themes, Theme, IdValidation, FaceValidation, IdAndFaceValidation, CustomerIdAndBiometricsEnrollment, CustomerBiometricsEnrollment, CustomerVerification, CustomerIdentification, SignatureKYC, VideoIdValidation, DocumentCapture, SubmissionRequest, SubmissionResponse, CapturedDocumentImg, };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function dataUrlToBase64(url: string): Promise<string>;
|
|
2
2
|
export declare function dataUrlToBase64Sync(url: string): string;
|
|
3
3
|
export declare function contentDispositionFromDataUrl(url: string): string;
|
|
4
|
-
export declare function b64toBlob(b64Data: string, contentType?: string, sliceSize?: number): Blob;
|