@incodetech/welcome 1.85.0-20251119174014.0 → 1.85.0-20251121102600.0
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/incode-welcome/src/Face/api/sendFaceImage.d.ts +2 -1
- package/dist/incode-welcome/src/create.d.ts +2 -1
- package/dist/incode-welcome/src/flow/Flow.d.ts +2 -1
- package/dist/incode-welcome/src/flow/executeFlow.d.ts +2 -1
- package/dist/incode-welcome/src/flow/modules/Authentication.d.ts +1 -1
- package/dist/incode-welcome/src/flow/modules/index.d.ts +2 -1
- package/dist/incode-welcome/src/flow/modules/types.d.ts +1 -0
- package/dist/incode-welcome/src/redirect/FlowRedirect.d.ts +1 -0
- package/dist/incode-welcome/src/utils/faceErrorMessages.d.ts +10 -0
- package/dist/incode-welcome/src/workflows/modules/RedirectToMobile.d.ts +2 -1
- package/dist/onBoarding.mjs +838 -842
- package/dist/onBoarding.umd.js +33 -33
- package/package.json +1 -1
|
@@ -56,8 +56,9 @@ export type SendFaceImageResponse = {
|
|
|
56
56
|
sessionStatus: string;
|
|
57
57
|
};
|
|
58
58
|
export declare const isKnownError: (error: Error) => boolean;
|
|
59
|
-
export declare const sendFaceImage: ({ canvas, faceCoordinates, sessionToken, }: {
|
|
59
|
+
export declare const sendFaceImage: ({ canvas, faceCoordinates, sessionToken, imageType, }: {
|
|
60
60
|
canvas: IncodeCanvas;
|
|
61
61
|
faceCoordinates?: FaceCoordinates;
|
|
62
62
|
sessionToken: string;
|
|
63
|
+
imageType?: 'selfie' | 'videoSelfie';
|
|
63
64
|
}) => Promise<SendFaceImageResponse>;
|
|
@@ -537,7 +537,7 @@ tokboxApiKey, darkMode, hostingApp, unsafeMode, customHeaders, fingerprintApiKey
|
|
|
537
537
|
getPhone: typeof getPhone;
|
|
538
538
|
renderCaptureFace: typeof renderCaptureFace;
|
|
539
539
|
renderAuthFace: typeof renderAuthFace;
|
|
540
|
-
executeFlow: ({ element, token, onSuccess, onError, onEvent, flow, uiConfig, config, }: {
|
|
540
|
+
executeFlow: ({ element, token, onSuccess, onError, onEvent, flow, uiConfig, config, authHint, }: {
|
|
541
541
|
element: HTMLElement;
|
|
542
542
|
token: string;
|
|
543
543
|
onSuccess: ({ redirectionUrl }: {
|
|
@@ -548,6 +548,7 @@ tokboxApiKey, darkMode, hostingApp, unsafeMode, customHeaders, fingerprintApiKey
|
|
|
548
548
|
flow?: import('.').Flow;
|
|
549
549
|
uiConfig?: import('./ui/types').UiConfig;
|
|
550
550
|
config?: import('./flow/Flow').FlowConfig;
|
|
551
|
+
authHint?: string;
|
|
551
552
|
}) => Promise<void>;
|
|
552
553
|
executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, qrUuid, uuid, redirectUrl, clientId, showFinishScreen, skipDesktopRedirect, }: import('./workflows/executeWorkflow').WorkflowPropsWithToken | import('./workflows/executeWorkflow').WorkflowPropsWithoutToken) => Promise<void>;
|
|
553
554
|
getWorkflowConfig: ({ token }: {
|
|
@@ -17,5 +17,6 @@ type FlowRendererProps = {
|
|
|
17
17
|
flow?: Flow;
|
|
18
18
|
uiConfig?: UiConfig;
|
|
19
19
|
config?: FlowConfig;
|
|
20
|
+
authHint?: string;
|
|
20
21
|
};
|
|
21
|
-
export declare function FlowRenderer({ token, onError, onSuccess, onEvent, flow: flowFromProps, uiConfig, config, }: FlowRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function FlowRenderer({ token, onError, onSuccess, onEvent, flow: flowFromProps, uiConfig, config, authHint, }: FlowRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,7 @@ type ExecuteFlowProps = {
|
|
|
14
14
|
flow?: Flow;
|
|
15
15
|
uiConfig?: UiConfig;
|
|
16
16
|
config?: FlowConfig;
|
|
17
|
+
authHint?: string;
|
|
17
18
|
};
|
|
18
|
-
declare const executeFlow: ({ element, token, onSuccess, onError, onEvent, flow, uiConfig, config, }: ExecuteFlowProps) => Promise<void>;
|
|
19
|
+
declare const executeFlow: ({ element, token, onSuccess, onError, onEvent, flow, uiConfig, config, authHint, }: ExecuteFlowProps) => Promise<void>;
|
|
19
20
|
export default executeFlow;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FlowModuleConfig } from '../services/flowService';
|
|
2
2
|
import { ModuleProps } from './types';
|
|
3
3
|
|
|
4
|
-
export default function AuthenticationModule({ onSuccess, token, finishWithError, }: ModuleProps<FlowModuleConfig['AUTHENTICATION']>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default function AuthenticationModule({ onSuccess, token, finishWithError, authHint, }: ModuleProps<FlowModuleConfig['AUTHENTICATION']>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,7 @@ type ModuleRendererProps<K extends keyof FlowModuleConfig> = {
|
|
|
13
13
|
flow: Flow;
|
|
14
14
|
uiConfig?: UiConfig;
|
|
15
15
|
finishWithError: (err: FlowRendererError) => void;
|
|
16
|
+
authHint?: string;
|
|
16
17
|
};
|
|
17
|
-
declare function ModuleRenderer<K extends keyof FlowModuleConfig>({ module, onSuccess, emit, token, onError, flow, uiConfig, finishWithError, }: ModuleRendererProps<K>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ModuleRenderer<K extends keyof FlowModuleConfig>({ module, onSuccess, emit, token, onError, flow, uiConfig, finishWithError, authHint, }: ModuleRendererProps<K>): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export { ModuleRenderer };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SendFaceImageError } from '../Face/api/sendFaceImage';
|
|
2
|
+
|
|
3
|
+
export declare const defaultError: {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const errorContent: Record<SendFaceImageError['message'], {
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}>;
|
|
@@ -16,6 +16,7 @@ type Props = {
|
|
|
16
16
|
qrPhishingResistance?: boolean;
|
|
17
17
|
url?: string;
|
|
18
18
|
showFinishScreen?: boolean;
|
|
19
|
+
authHint?: string;
|
|
19
20
|
};
|
|
20
|
-
declare const RedirectToMobile: ({ session, disableSmsOption, skipDesktopRedirect, allowSkipRedirect, expired, allowReEnrollment, displayOnboardingResultOnDesktop, qrPhishingResistance, url, showFinishScreen, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const RedirectToMobile: ({ session, disableSmsOption, skipDesktopRedirect, allowSkipRedirect, expired, allowReEnrollment, displayOnboardingResultOnDesktop, qrPhishingResistance, url, showFinishScreen, authHint, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export default RedirectToMobile;
|