UNPKG

@seontechnologies/seon-id-verification

Version:

An advanced SDK for natural person identification through document scanning, facial recognition, designed for secure and efficient user verification.

30 lines (29 loc) 1.08 kB
import { CustomerData } from './CustomerData'; import { ThemeConfiguration } from './ThemeConfiguration'; export type FlowConfigurationBase = { baseUrl: "https://idv-eu.seon.io" | "https://idv-us.seon.io" | string; licenseKey: string; referenceId: string; language?: string; type?: string; templateId?: string; customerData?: CustomerData; theme?: ThemeConfiguration; alwaysTransferFromDesktop?: boolean; }; export type InlineConfig = { renderingMode: "inline"; containerId: string; }; export type FullscreenConfig = { renderingMode: "fullscreen"; }; export type PopupConfig = { renderingMode: "popup"; }; export type NoRenderingModeConfig = { renderingMode?: undefined; }; export type RenderingModeConfig = InlineConfig | FullscreenConfig | PopupConfig | NoRenderingModeConfig; export type RenderingModes = InlineConfig["renderingMode"] | FullscreenConfig["renderingMode"] | PopupConfig["renderingMode"] | NoRenderingModeConfig["renderingMode"]; export type FlowConfiguration = FlowConfigurationBase & RenderingModeConfig;