@incodetech/welcome 1.76.0 → 1.76.1-rc.20241120215832

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.
Files changed (40) hide show
  1. package/dist/incode-welcome/src/DefaultComponent/DefaultComponent.d.ts +3 -2
  2. package/dist/incode-welcome/src/RememberMe/types.d.ts +0 -1
  3. package/dist/incode-welcome/src/auth/Login.d.ts +1 -1
  4. package/dist/incode-welcome/src/auth/identify.d.ts +3 -1
  5. package/dist/incode-welcome/src/auth/oneToOneIdentify.d.ts +3 -1
  6. package/dist/incode-welcome/src/auth/renderLogin.d.ts +2 -1
  7. package/dist/incode-welcome/src/auth/renderLoginDesktop.d.ts +2 -1
  8. package/dist/incode-welcome/src/auth/types.d.ts +1 -0
  9. package/dist/incode-welcome/src/camera/authRecorderRepository.d.ts +6 -0
  10. package/dist/incode-welcome/src/camera/mediaRecorderRepository.d.ts +0 -1
  11. package/dist/incode-welcome/src/camera/permissionSteps/styled.d.ts +1 -1
  12. package/dist/incode-welcome/src/camera/useMediaRecorder.d.ts +8 -0
  13. package/dist/incode-welcome/src/conference/Conference.d.ts +25 -1
  14. package/dist/incode-welcome/src/create.d.ts +1 -1
  15. package/dist/incode-welcome/src/detection/detectionSetup.d.ts +1 -2
  16. package/dist/incode-welcome/src/detection/onboardingAnalytics.d.ts +4 -2
  17. package/dist/incode-welcome/src/ekyc/InformationVerification.styled.d.ts +26 -1
  18. package/dist/incode-welcome/src/hooks/useModuleEvents.d.ts +1 -1
  19. package/dist/incode-welcome/src/hooks/useOnlineStatus.d.ts +8 -0
  20. package/dist/incode-welcome/src/index.d.ts +1 -0
  21. package/dist/incode-welcome/src/otp/OTP.styles.d.ts +25 -1
  22. package/dist/incode-welcome/src/recorder/OpenViduVideoSelfie.d.ts +1 -0
  23. package/dist/incode-welcome/src/recorder/SpeechRecommendations.d.ts +25 -1
  24. package/dist/incode-welcome/src/recorder/VideoSelfieErrors.d.ts +5 -0
  25. package/dist/incode-welcome/src/recorder/imgs/LockIcon.d.ts +6 -0
  26. package/dist/incode-welcome/src/recorder/imgs/NoInternetIcon.d.ts +6 -0
  27. package/dist/incode-welcome/src/recorder/openvidu.d.ts +1 -2
  28. package/dist/incode-welcome/src/recorder/useOpenVidu.d.ts +4 -1
  29. package/dist/incode-welcome/src/renderCamera.d.ts +2 -1
  30. package/dist/incode-welcome/src/setup.d.ts +3 -0
  31. package/dist/incode-welcome/src/tutorials/UI.d.ts +25 -1
  32. package/dist/incode-welcome/src/tutorials/styled.d.ts +25 -1
  33. package/dist/incode-welcome/src/wasmUtils/IdCaptureModelType.d.ts +5 -0
  34. package/dist/incode-welcome/src/wasmUtils/config.d.ts +1 -6
  35. package/dist/incode-welcome/src/wasmUtils/mlWasmJSApi.d.ts +7 -2
  36. package/dist/incode-welcome/src/wasmUtils/pipelineProfile.d.ts +4 -3
  37. package/dist/incode-welcome/src/wasmUtils/wasmPipelineType.d.ts +6 -5
  38. package/dist/onBoarding.mjs +65009 -81332
  39. package/dist/onBoarding.umd.js +997 -997
  40. package/package.json +5 -2
@@ -1,10 +1,11 @@
1
- import type { FC, ReactNode } from 'react';
1
+ import type { CSSProperties, FC, ReactNode } from 'react';
2
2
  import { PropsWithChildren } from 'react';
3
3
  type DefaultComponentProps = {
4
4
  disableFullScreen?: boolean;
5
- children: ReactNode;
5
+ children?: ReactNode;
6
6
  isKiosk?: boolean;
7
7
  token?: string;
8
+ style?: CSSProperties;
8
9
  };
9
10
  declare const App: FC<PropsWithChildren<DefaultComponentProps>>;
10
11
  export default App;
@@ -25,7 +25,6 @@ export declare const instantVerifyScope: {
25
25
  readonly EMAIL: "EMAIL";
26
26
  readonly PHONE: "PHONE";
27
27
  readonly ADDRESS: "ADDRESS";
28
- readonly ID_ATTESTATION: "ID_ATTESTATION";
29
28
  };
30
29
  export type InstantVerifyScope = keyof typeof instantVerifyScope;
31
30
  export type InstantVerifyPrivacyData = {
@@ -18,4 +18,4 @@ export type IdentifyResponse = {
18
18
  path: string;
19
19
  };
20
20
  };
21
- export default function Login({ onError, onSuccess, onCapture, timeout, stopAtError, stopAtAccessDenied, isOneToOne, oneToOneProps, accessDeniedNotificationText, token, isInstantVerify, showCustomCameraPermissionScreen, isKiosk, }: LoginProps): import("react/jsx-runtime").JSX.Element;
21
+ export default function Login({ onError, onSuccess, onCapture, timeout, stopAtError, stopAtAccessDenied, isOneToOne, oneToOneProps, accessDeniedNotificationText, token, isInstantVerify, showCustomCameraPermissionScreen, isKiosk, recordingsToken, }: LoginProps): import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,8 @@ type IdentityProps = {
3
3
  base64Image: string;
4
4
  faceCoordinates: FaceCoordinates;
5
5
  authReference: string;
6
+ videoRecordingId?: string;
7
+ videoRecordingToken?: string;
6
8
  };
7
- declare function identify({ base64Image, faceCoordinates, authReference, }: IdentityProps): Promise<any>;
9
+ declare function identify({ base64Image, faceCoordinates, authReference, videoRecordingId, videoRecordingToken, }: IdentityProps): Promise<any>;
8
10
  export default identify;
@@ -7,6 +7,8 @@ type OneToOneIdentityProps = {
7
7
  authReference?: string;
8
8
  uuid?: string;
9
9
  nationalNumber?: string;
10
+ videoRecordingId?: string;
11
+ videoRecordingToken?: string;
10
12
  };
11
- declare function oneToOneIdentify({ base64Image, phone, email, authReference, uuid, nationalNumber, }: OneToOneIdentityProps): Promise<any>;
13
+ declare function oneToOneIdentify({ base64Image, phone, email, authReference, uuid, nationalNumber, videoRecordingId, videoRecordingToken, }: OneToOneIdentityProps): Promise<any>;
12
14
  export default oneToOneIdentify;
@@ -14,8 +14,9 @@ type RenderLoginOptionProps = {
14
14
  };
15
15
  showCustomCameraPermissionScreen?: boolean;
16
16
  isKiosk?: boolean;
17
+ recordingsToken?: string;
17
18
  };
18
- declare function renderLogin(element: Element, { onSuccess, onError, timeout, stopAtAccessDenied, stopAtError, isOneToOne, oneToOneProps, showCustomCameraPermissionScreen, isKiosk, }: RenderLoginOptionProps): {
19
+ declare function renderLogin(element: Element, { onSuccess, onError, timeout, stopAtAccessDenied, stopAtError, isOneToOne, oneToOneProps, showCustomCameraPermissionScreen, isKiosk, recordingsToken, }: RenderLoginOptionProps): {
19
20
  close: (...props: unknown[]) => void;
20
21
  };
21
22
  export default renderLogin;
@@ -3,6 +3,7 @@ type RenderLoginOptionProps = {
3
3
  onError: (...args: unknown[]) => void;
4
4
  timeout?: number;
5
5
  stopAtAccessDenied?: boolean;
6
+ recordingsToken?: string;
6
7
  };
7
- declare function renderLoginDesktop(element: HTMLElement, { onSuccess, onError, timeout, stopAtAccessDenied }: RenderLoginOptionProps): void;
8
+ declare function renderLoginDesktop(element: HTMLElement, { onSuccess, onError, timeout, stopAtAccessDenied, recordingsToken, }: RenderLoginOptionProps): void;
8
9
  export default renderLoginDesktop;
@@ -40,4 +40,5 @@ export type LoginProps = {
40
40
  showCustomCameraPermissionScreen?: boolean;
41
41
  isKiosk?: boolean;
42
42
  deviceId?: string;
43
+ recordingsToken?: string;
43
44
  };
@@ -0,0 +1,6 @@
1
+ export declare const createAuthRecordingSession: (token: string) => Promise<{
2
+ token: string;
3
+ videoRecordingId: string;
4
+ }>;
5
+ export declare const startAuthRecording: (videoRecordingId: string, token: string, type?: string, resolution?: string, hasAudio?: boolean) => Promise<any>;
6
+ export declare const stopAuthRecording: (videoRecordingId: string, token: string) => Promise<any>;
@@ -1,5 +1,4 @@
1
1
  export declare const createRecordingSession: (type: string, token: string, recorderProvider?: string) => Promise<{
2
- sessionId: string;
3
2
  token: string;
4
3
  videoRecordingId: string;
5
4
  }>;
@@ -1,7 +1,7 @@
1
1
  export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const Title: import("styled-components").StyledComponent<"h2", any, {}, never>;
3
3
  export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const List: import("styled-components").StyledComponent<"ul", any, {
4
+ export declare const List: import("styled-components").StyledComponent<"ol", any, {
5
5
  desktop?: boolean;
6
6
  }, never>;
7
7
  export declare const MenuContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -6,3 +6,11 @@ export declare function useMediaRecorder({ token, type }: {
6
6
  stopRecording: () => Promise<void>;
7
7
  recordingStarted: boolean;
8
8
  };
9
+ export declare const useAuthenticationRecorder: ({ token, type, setVideoRecordingId, }: {
10
+ token: any;
11
+ type: any;
12
+ setVideoRecordingId: any;
13
+ }) => {
14
+ startRecording: (stream: MediaStream) => Promise<void>;
15
+ stopRecording: () => Promise<void>;
16
+ };
@@ -1,5 +1,29 @@
1
1
  export const ModalTitle: import("styled-components").StyledComponent<"h1", any, {}, never>;
2
- export const ModalButton: import("styled-components").StyledComponent<"button", any, {}, never>;
2
+ export const ModalButton: import("styled-components").StyledComponent<{
3
+ ({ onClick, disabled, ...props }: {
4
+ [x: string]: any;
5
+ [x: number]: any;
6
+ [x: symbol]: any;
7
+ } & {
8
+ theme?: any;
9
+ } & {
10
+ as?: string | import("react").ComponentType<any>;
11
+ forwardedAs?: string | import("react").ComponentType<any>;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ defaultProps: {
14
+ theme: {
15
+ main: string;
16
+ active: string;
17
+ buttonBorderRadius: string;
18
+ buttonColor: string;
19
+ modal: {};
20
+ mainButton: {};
21
+ secondaryButton: {};
22
+ minWidth: string;
23
+ fontSize: string;
24
+ };
25
+ };
26
+ }, any, {}, never>;
3
27
  export const DisconnectButton: import("styled-components").StyledComponent<"button", any, {}, never>;
4
28
  declare const _default: import("@incodetech/opentok-react/node_modules/@types/react").ComponentType<import("@incodetech/opentok-react").PreloadScriptProps>;
5
29
  export default _default;
@@ -433,6 +433,7 @@ declare function create({ apiKey, apiURL, lang, encrypt, translations, theme: _t
433
433
  readonly ekycProgress: "EKYC_PROGRESS";
434
434
  readonly ekycSucceeded: "EKYC_SUCCEEDED";
435
435
  readonly ekycFailed: "EKYC_FAILED";
436
+ readonly forms: "FORMS";
436
437
  readonly globalWatchListInput: "GLOBAL_WATCHLIST_INPUT";
437
438
  readonly globalWatchListProgress: "GLOBAL_WATCHLIST_PROGRESS";
438
439
  readonly globalWatchListSuccess: "GLOBAL_WATCHLIST_SUCCEEDED";
@@ -444,7 +445,6 @@ declare function create({ apiKey, apiURL, lang, encrypt, translations, theme: _t
444
445
  readonly emailInput: "EMAIL_INPUT";
445
446
  readonly phoneInput: "PHONE_INPUT";
446
447
  readonly instantVerify: "INSTANT_VERIFY";
447
- readonly forms: "FORMS";
448
448
  };
449
449
  addScreenEvent: ({ module, token, screen, payload, shouldOpen, }: {
450
450
  module: string;
@@ -3,13 +3,12 @@ import { DetectionType } from './detectionType';
3
3
  declare class DetectionSetup {
4
4
  private setupDetectPromise;
5
5
  private isSetupDetect;
6
- private pipelinesBundle;
7
6
  private profiles;
8
7
  private static instance;
9
8
  static getInstance(): DetectionSetup;
10
9
  private setIsIPhone14OrHigher;
11
10
  setupDetect(): Promise<void>;
12
- getPipelinesBundle(): string | null;
11
+ getProfiles(): Map<DetectionType, PipelineProfile> | null;
13
12
  getProfile(type: DetectionType): PipelineProfile | null;
14
13
  warmup(): Promise<void>;
15
14
  _runSetupDetect(): Promise<void>;
@@ -1,3 +1,5 @@
1
+ import { PipelineProfile } from '../wasmUtils/pipelineProfile';
2
+ import { DetectionType } from './detectionType';
1
3
  export interface CameraLabelInspectionResult {
2
4
  isDetected: boolean;
3
5
  hasPriorDetection: boolean;
@@ -8,16 +10,16 @@ declare class OnboardingAnalytics {
8
10
  private analysisStatus;
9
11
  private motionStatus;
10
12
  private pipelineLogs;
11
- private pipelinesBundle;
12
13
  private simdIsEnabled;
13
14
  private wasmVersion;
15
+ private profiles;
14
16
  private isVirtualCameraDetectedByLabel;
15
17
  private static instance;
16
18
  static getInstance(): OnboardingAnalytics;
17
19
  constructor();
18
- setPipelinesBundle(pipelinesBundle: string): void;
19
20
  setSimdIsEnabled(simdIsEnabled: boolean): void;
20
21
  setWasmVersion(wasmVersion: string): void;
22
+ setProfiles(profiles: Map<DetectionType, PipelineProfile>): void;
21
23
  getPipelineLogs(): object;
22
24
  getMotionStatus(): string;
23
25
  getAnalysisStatus(): string;
@@ -2,7 +2,31 @@ export const InformationVerificationTitle: import("styled-components").StyledCom
2
2
  export const InformationVerificationForm: import("styled-components").StyledComponent<"form", any, {}, never>;
3
3
  export const InformationVerificationResults: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export const VerificationContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export const StyledButton: import("styled-components").StyledComponent<"button", any, {}, never>;
5
+ export const StyledButton: import("styled-components").StyledComponent<{
6
+ ({ onClick, disabled, ...props }: {
7
+ [x: string]: any;
8
+ [x: number]: any;
9
+ [x: symbol]: any;
10
+ } & {
11
+ theme?: any;
12
+ } & {
13
+ as?: string | import("react").ComponentType<any>;
14
+ forwardedAs?: string | import("react").ComponentType<any>;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ defaultProps: {
17
+ theme: {
18
+ main: string;
19
+ active: string;
20
+ buttonBorderRadius: string;
21
+ buttonColor: string;
22
+ modal: {};
23
+ mainButton: {};
24
+ secondaryButton: {};
25
+ minWidth: string;
26
+ fontSize: string;
27
+ };
28
+ };
29
+ }, any, {}, never>;
6
30
  export const Label: import("styled-components").StyledComponent<"label", any, {}, never>;
7
31
  export const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
8
32
  export const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -10,3 +34,4 @@ export const CountryWrapper: import("styled-components").StyledComponent<"div",
10
34
  export const ErrorMessage: import("styled-components").StyledComponent<"p", any, {}, never>;
11
35
  export const SkipButton: import("styled-components").StyledComponent<"button", any, {}, never>;
12
36
  export const PhoneContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
37
+ export const ButtonsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -91,6 +91,7 @@ export declare const eventScreenNames: {
91
91
  readonly ekycProgress: "EKYC_PROGRESS";
92
92
  readonly ekycSucceeded: "EKYC_SUCCEEDED";
93
93
  readonly ekycFailed: "EKYC_FAILED";
94
+ readonly forms: "FORMS";
94
95
  readonly globalWatchListInput: "GLOBAL_WATCHLIST_INPUT";
95
96
  readonly globalWatchListProgress: "GLOBAL_WATCHLIST_PROGRESS";
96
97
  readonly globalWatchListSuccess: "GLOBAL_WATCHLIST_SUCCEEDED";
@@ -102,7 +103,6 @@ export declare const eventScreenNames: {
102
103
  readonly emailInput: "EMAIL_INPUT";
103
104
  readonly phoneInput: "PHONE_INPUT";
104
105
  readonly instantVerify: "INSTANT_VERIFY";
105
- readonly forms: "FORMS";
106
106
  };
107
107
  export declare const videoSelfieEvents: {
108
108
  readonly imageTooBlurry: "imageTooBlurry";
@@ -0,0 +1,8 @@
1
+ type UseOnlineStatusProps = {
2
+ onOffline?: () => void;
3
+ onOnline?: () => void;
4
+ };
5
+ export declare const useOnlineStatus: ({ onOffline, onOnline, }?: UseOnlineStatusProps) => {
6
+ isOnline: boolean;
7
+ };
8
+ export {};
@@ -93,3 +93,4 @@ export { default as IneCheck } from './ine/IneCheck';
93
93
  export { default as renderLogin } from './auth/renderLogin';
94
94
  export { default as renderLoginDesktop } from './auth/renderLoginDesktop';
95
95
  export { default as renderRetrySteps } from './retries/renderRetrySteps';
96
+ export { renderVideoSelfie } from './recorder/renderVideoSelfie';
@@ -4,7 +4,31 @@ export declare const InfoLabel: import("styled-components").StyledComponent<"p",
4
4
  timeout?: number;
5
5
  type: 'timer' | 'code';
6
6
  }, never>;
7
- export declare const Button: import("styled-components").StyledComponent<"button", any, {}, never>;
7
+ export declare const Button: import("styled-components").StyledComponent<{
8
+ ({ onClick, disabled, ...props }: {
9
+ [x: string]: any;
10
+ [x: number]: any;
11
+ [x: symbol]: any;
12
+ } & {
13
+ theme?: any;
14
+ } & {
15
+ as?: string | import("react").ComponentType<any>;
16
+ forwardedAs?: string | import("react").ComponentType<any>;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ defaultProps: {
19
+ theme: {
20
+ main: string;
21
+ active: string;
22
+ buttonBorderRadius: string;
23
+ buttonColor: string;
24
+ modal: {};
25
+ mainButton: {};
26
+ secondaryButton: {};
27
+ minWidth: string;
28
+ fontSize: string;
29
+ };
30
+ };
31
+ }, any, {}, never>;
8
32
  export declare const ErrorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
9
33
  export declare const ErrorLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
10
34
  export declare const Text: import("styled-components").StyledComponent<"p", any, {
@@ -4,6 +4,7 @@ type VideoRecorderModules = 'selfie' | 'front' | 'back' | 'poa' | 'questions' |
4
4
  type Props = {
5
5
  onSuccess: () => void;
6
6
  onError: (text?: string) => void;
7
+ onRetry: () => void;
7
8
  token: Session;
8
9
  modules: VideoRecorderModules[];
9
10
  speechToTextCheck: boolean;
@@ -2,5 +2,29 @@ export function SpeechRecommendations({ tryAgain }: {
2
2
  tryAgain?: typeof emptyFunc;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
4
  export const List: import("styled-components").StyledComponent<"ul", any, {}, never>;
5
- export const StyledButton: import("styled-components").StyledComponent<"button", any, {}, never>;
5
+ export const StyledButton: import("styled-components").StyledComponent<{
6
+ ({ onClick, disabled, ...props }: {
7
+ [x: string]: any;
8
+ [x: number]: any;
9
+ [x: symbol]: any;
10
+ } & {
11
+ theme?: any;
12
+ } & {
13
+ as?: string | import("react").ComponentType<any>;
14
+ forwardedAs?: string | import("react").ComponentType<any>;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ defaultProps: {
17
+ theme: {
18
+ main: string;
19
+ active: string;
20
+ buttonBorderRadius: string;
21
+ buttonColor: string;
22
+ modal: {};
23
+ mainButton: {};
24
+ secondaryButton: {};
25
+ minWidth: string;
26
+ fontSize: string;
27
+ };
28
+ };
29
+ }, any, {}, never>;
6
30
  import { emptyFunc } from "../../../incode-utils/src/utils";
@@ -0,0 +1,5 @@
1
+ export declare const NoInternetError: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare const UnexpectedError: ({ onRetry, onQuit, }: {
3
+ onRetry: () => void;
4
+ onQuit: () => void;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ type LockIconProps = {
3
+ className?: string;
4
+ };
5
+ export declare const LockIcon: FC<LockIconProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ type NoInternetIconProps = {
3
+ className?: string;
4
+ };
5
+ export declare const NoInternetIcon: FC<NoInternetIconProps>;
6
+ export {};
@@ -1,3 +1,2 @@
1
1
  import { OpenVidu } from 'openvidu-browser';
2
- import { OpenVidu as OpenViduV3 } from 'openvidu-browser-v2compatibility';
3
- export declare const getOpenViduInstance: () => OpenVidu | OpenViduV3;
2
+ export declare const getOpenViduInstance: () => OpenVidu;
@@ -1,7 +1,10 @@
1
+ type Status = 'connecting' | 'recording' | 'stopped' | 'error' | 'streamDestroyed';
1
2
  export declare const useOpenVidu: ({ token }: {
2
3
  token: string;
3
4
  }) => {
4
- isRecording: boolean;
5
5
  publishAndStartRecording: (stream: MediaStream) => Promise<void>;
6
6
  stopRecording: () => Promise<void>;
7
+ isOnline: boolean;
8
+ status: Status;
7
9
  };
10
+ export {};
@@ -44,9 +44,10 @@ export type RenderCameraProps = {
44
44
  ageAssurance?: boolean;
45
45
  publishAudio?: boolean;
46
46
  zoomLevel?: number;
47
+ idDetectedTimeout?: number;
47
48
  };
48
49
  export declare function App(props: any): import("react/jsx-runtime").JSX.Element;
49
- declare function renderCamera(type: string, element: Element, { onSuccess, onError, numberOfTries, onLog, permissionMessage, permissionBackgroundColor, token, timeout, sendBase64, documentType, showPreview, stream, nativeCamera, hideRetake, showTutorial, showPaperDLTutorial, onlyCapture, scanPdf417, videoTutorialSrc, showCustomCameraPermissionScreen, isSecondId, fullScreen, assistedOnboarding, isRecordingEnabled, onRestartOnboarding, showDoublePermissionsRequest, onlyAllowCapture, disableFullScreen, onStreamReady, showAutoCaptureIDOverlay, showManualCaptureIDOverlay, skipProcessFace, defaultHorizontalMask, isFixedMask, blurrinessStrictMode, isKiosk, ageAssurance, publishAudio, zoomLevel, }: RenderCameraProps): {
50
+ declare function renderCamera(type: string, element: Element, { onSuccess, onError, numberOfTries, onLog, permissionMessage, permissionBackgroundColor, token, timeout, sendBase64, documentType, showPreview, stream, nativeCamera, hideRetake, showTutorial, showPaperDLTutorial, onlyCapture, scanPdf417, videoTutorialSrc, showCustomCameraPermissionScreen, isSecondId, fullScreen, assistedOnboarding, isRecordingEnabled, onRestartOnboarding, showDoublePermissionsRequest, onlyAllowCapture, disableFullScreen, onStreamReady, showAutoCaptureIDOverlay, showManualCaptureIDOverlay, skipProcessFace, defaultHorizontalMask, isFixedMask, blurrinessStrictMode, isKiosk, ageAssurance, publishAudio, zoomLevel, idDetectedTimeout, }: RenderCameraProps): {
50
51
  close: (...props: unknown[]) => void;
51
52
  };
52
53
  export default renderCamera;
@@ -1,5 +1,8 @@
1
1
  import type { IncodeOptions, IncodeTheme } from '../../types/src';
2
2
  import type { AxiosRequestConfig } from 'axios';
3
+ declare global {
4
+ let FEATURE_FLAGS_VALUES: Record<string, boolean>;
5
+ }
3
6
  type SetupParams = {
4
7
  theme?: IncodeTheme;
5
8
  clientId?: string;
@@ -1,3 +1,27 @@
1
1
  export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const StyledButton: import("styled-components").StyledComponent<"button", any, {}, never>;
2
+ export declare const StyledButton: import("styled-components").StyledComponent<{
3
+ ({ onClick, disabled, ...props }: {
4
+ [x: string]: any;
5
+ [x: number]: any;
6
+ [x: symbol]: any;
7
+ } & {
8
+ theme?: any;
9
+ } & {
10
+ as?: string | import("react").ComponentType<any>;
11
+ forwardedAs?: string | import("react").ComponentType<any>;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ defaultProps: {
14
+ theme: {
15
+ main: string;
16
+ active: string;
17
+ buttonBorderRadius: string;
18
+ buttonColor: string;
19
+ modal: {};
20
+ mainButton: {};
21
+ secondaryButton: {};
22
+ minWidth: string;
23
+ fontSize: string;
24
+ };
25
+ };
26
+ }, any, {}, never>;
3
27
  export declare const TutorialSHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,28 @@
1
- export declare const StyledButton: import("styled-components").StyledComponent<"button", any, {}, never>;
1
+ export declare const StyledButton: import("styled-components").StyledComponent<{
2
+ ({ onClick, disabled, ...props }: {
3
+ [x: string]: any;
4
+ [x: number]: any;
5
+ [x: symbol]: any;
6
+ } & {
7
+ theme?: any;
8
+ } & {
9
+ as?: string | import("react").ComponentType<any>;
10
+ forwardedAs?: string | import("react").ComponentType<any>;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ defaultProps: {
13
+ theme: {
14
+ main: string;
15
+ active: string;
16
+ buttonBorderRadius: string;
17
+ buttonColor: string;
18
+ modal: {};
19
+ mainButton: {};
20
+ secondaryButton: {};
21
+ minWidth: string;
22
+ fontSize: string;
23
+ };
24
+ };
25
+ }, any, {}, never>;
2
26
  export declare const FrontTutorialAction: import("styled-components").StyledComponent<"div", any, {}, never>;
3
27
  export declare const TutorialAction: import("styled-components").StyledComponent<"div", any, {}, never>;
4
28
  export declare const VideoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,5 @@
1
+ export declare enum IdCaptureModelType {
2
+ IdCaptureV1x = 0,
3
+ IdCaptureV2x = 1,
4
+ IdCaptureV3x = 2
5
+ }
@@ -1,10 +1,6 @@
1
1
  import { WasmPipelineType } from './wasmPipelineType';
2
2
  import { PipelineProfile } from './pipelineProfile';
3
3
  import { DetectionType } from '../detection/detectionType';
4
- export declare enum BundleNames {
5
- SelfieAggregationMetrics = "selfieAggregationMetrics",
6
- SelfieQualityMetrics = "selfieQualityMetrics"
7
- }
8
4
  interface InitializationParams {
9
5
  wasmModulePath: string;
10
6
  wasmSimdModulePath: string;
@@ -12,9 +8,8 @@ interface InitializationParams {
12
8
  versionsFilePath: string;
13
9
  pipelineModels: Map<WasmPipelineType, Array<string>>;
14
10
  enableSIMD: boolean;
15
- bundle: string;
16
11
  profiles: Map<DetectionType, PipelineProfile>;
17
12
  wasmVersion: string;
18
13
  }
19
- export declare function getInitializationParams(enableAB: boolean): InitializationParams;
14
+ export declare function getInitializationParams(enableABForSelfie: boolean): InitializationParams;
20
15
  export {};
@@ -1,4 +1,5 @@
1
1
  import { WasmPipelineType } from './wasmPipelineType';
2
+ import { IdCaptureModelType } from './IdCaptureModelType';
2
3
  declare global {
3
4
  interface Window {
4
5
  wasmArrayBuffer: Uint8Array | null;
@@ -37,6 +38,7 @@ interface IdCapturePipelineResult {
37
38
  blur: number;
38
39
  glare: number;
39
40
  quad: Point[];
41
+ barQuad: Point[];
40
42
  side: string;
41
43
  size: number;
42
44
  idType: string;
@@ -118,6 +120,7 @@ declare class MlWasmJSApi {
118
120
  setIdCaptureCallbacks(type: WasmPipelineType, onFarAway: Function, onDetectionStarted: Function, onMaskChange: Function, onBlur: Function, onGlare: Function, onCapturing: Function, onIDNotDetected: Function, onSwitchToManualCapture: Function, onIDTypeChange: Function, onIDSideChange: Function): Promise<void>;
119
121
  setIdCaptureGeometryParams(type: WasmPipelineType, areaDown: number, areaUp: number, areaIOSPassportUp: number, areaIOSPassportDown: number, widthIOSUp: number, widthIOSDown: number, widthDown: number, widthUp: number, windowOuterWidth: number, windowOuterHeight: number, windowInnerWidth: number, windowInnerHeight: number): Promise<void>;
120
122
  setIdCaptureConfigParams(type: WasmPipelineType, isFixedMask: boolean, isIPhone14OrHigher: boolean, idType: string, isBlurCheckEnabled: boolean, isGlareCheckEnabled: boolean): Promise<void>;
123
+ setIdCaptureModelType(pipelineType: WasmPipelineType, modelType: IdCaptureModelType): void;
121
124
  getVersions(): Promise<any>;
122
125
  private loadWasm;
123
126
  loadModels(): Promise<void>;
@@ -125,8 +128,10 @@ declare class MlWasmJSApi {
125
128
  setProductionMode(productionMode: Boolean): Promise<void>;
126
129
  getPipelineState(): string;
127
130
  getCurrentPipeline(): WasmPipelineType;
128
- private toWasmEnum;
129
- private fromWasmEnum;
131
+ private pipelineTypeToWasmEnum;
132
+ private pipelineTypeFromWasmEnum;
133
+ private IdCaptureModelTypeToWasmEnum;
134
+ private IdCaptureModelTypeFromWasmEnum;
130
135
  private checkWasmInitialization;
131
136
  }
132
137
  declare const _default: MlWasmJSApi;
@@ -2,9 +2,10 @@ import { WasmPipelineType } from './wasmPipelineType';
2
2
  import { DetectionType } from '../detection/detectionType';
3
3
  export declare enum PipelineProfileName {
4
4
  IdCapture_2_01 = 0,
5
- IdVideoSelfie_2_01 = 1,
6
- SelfieWithAggregationMetrics = 2,
7
- SelfieWithQualityMetrics = 3
5
+ IdCapture_3_01 = 1,
6
+ IdVideoSelfie_2_01 = 2,
7
+ SelfieWithAggregationMetrics = 3,
8
+ SelfieWithQualityMetrics = 4
8
9
  }
9
10
  export declare class PipelineProfile {
10
11
  readonly name: PipelineProfileName;
@@ -1,7 +1,8 @@
1
1
  export declare enum WasmPipelineType {
2
- IdCapturePipeline = 0,
3
- IdVideoSelfiePipeline = 1,
4
- SelfieWithAggregationMetrics = 2,
5
- SelfieWithQualityMetrics = 3,
6
- IdFaceDetectionPipeline = 4
2
+ IdBlurGlarePipeline = 0,
3
+ IdBarcodeAndTextQualityPipeline = 1,
4
+ IdVideoSelfiePipeline = 2,
5
+ SelfieWithAggregationMetrics = 3,
6
+ SelfieWithQualityMetrics = 4,
7
+ IdFaceDetectionPipeline = 5
7
8
  }