vec-idp-web-sdk
Version:
VECU Identity Verification Web SDK - A secure, easy-to-integrate identity verification solution
52 lines • 1.94 kB
TypeScript
import type { IVerificationResult, ICustomerInfo } from './types';
import { type DeploymentStage } from './config/providerKeys';
interface IVecuIDVSDKGlobal {
launch: (sdkKey: string, transactionToken: string, containerSelector: string | HTMLElement, options?: {
onProgress?: (event: {
step: string;
percentage: number;
message?: string;
}) => void;
onSuccess?: (result: IVerificationResult) => void;
onError?: (error: Error) => void;
provider?: string;
mode?: 'modal' | 'embedded';
theme?: Record<string, unknown>;
language?: string;
config?: Record<string, unknown>;
}) => Promise<() => void>;
startVerificationWithCustomer: (sdkKey: string, containerSelector: string | HTMLElement, options: {
customerInfo: ICustomerInfo;
referenceId?: string;
onProgress?: (event: {
step: string;
percentage: number;
message?: string;
}) => void;
onSuccess?: (result: IVerificationResult) => void;
onError?: (error: Error) => void;
deploymentStage?: DeploymentStage;
mode?: 'modal' | 'embedded';
theme?: Record<string, unknown>;
language?: string;
config?: Record<string, unknown>;
}) => Promise<() => void>;
configure: (options: {
apiUrl?: string;
timeout?: number;
maxRetries?: number;
logLevel?: 'debug' | 'info' | 'warn' | 'error';
debug?: boolean;
enableDirectAPI?: boolean;
deploymentStage?: DeploymentStage;
bearerToken?: string;
apiEndpoints?: {
startVerification?: string;
};
}) => void;
}
declare const VecuIDVSDK: IVecuIDVSDKGlobal;
export default VecuIDVSDK;
export { VecuIDVSDK };
export type { IVerificationResult, ICustomerInfo } from './types';
//# sourceMappingURL=sdk-bundle.d.ts.map