vec-idp-web-sdk
Version:
VECU Identity Verification Web SDK - A secure, easy-to-integrate identity verification solution
70 lines • 3.46 kB
TypeScript
export { createVecuIDVSDK } from './core/VecuIDV';
export { APIClient } from './core/APIClient';
export type { VecuIDVSecureSDK } from './core/VecuIDV';
export interface IVecuIDVSDKGlobal {
launch: (sdkKey: string, transactionToken: string, containerSelector: string | HTMLElement, options?: {
onProgress?: (event: {
step: string;
percentage: number;
message?: string;
}) => void;
onSuccess?: (result: Record<string, unknown>) => void;
onError?: (error: Error) => void;
provider?: string;
mode?: 'modal' | 'embedded';
theme?: Record<string, unknown>;
language?: string;
config?: Record<string, unknown>;
verificationId?: string;
}) => Promise<() => void>;
startVerificationWithCustomer: (containerSelector: string | HTMLElement, options: {
customerInfo: {
firstName: string;
lastName: string;
middleName?: string;
email?: string;
phone?: string;
address: {
line1: string;
line2?: string;
locality: string;
minorAdminDivision?: string;
majorAdminDivision: string;
country: string;
postalCode: string;
type: string;
};
};
referenceId?: string;
onProgress?: (event: {
step: string;
percentage: number;
message?: string;
}) => void;
onSuccess?: (result: Record<string, unknown>) => void;
onError?: (error: Error) => void;
deploymentStage?: 'sandbox' | 'production' | 'preprod';
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;
}) => void;
}
export type { IVecuIDVConfig, IAPIConfig, Theme, LogLevel, IVerificationOptions, IUserData, IAddress, IVerificationSession, IVerificationResult, IDocumentData, ILivenessData, IFraudSignals, IFraudSignal, IProgress, IVerificationUI, VerificationStatus, VerificationDecision, IVerificationUIOptions, IVecuEvent, EventType, IEventHandler, IEventEmitter, IProgressEvent, IErrorEvent, IProvider, IProviderInitOptions, IProviderVerificationUI, IProviderWebhookResult, IProviderEvent, IProviderRegistry, IProviderLoader, IProviderConfig, ProviderName, ProviderFeature, IVecuError, IAPIResponse, ILogger, } from './types';
export { VecuError, ProviderError, TimeoutError, ErrorCodes } from './utils/errors';
export { SDK_VERSION, SDK_NAME, EVENTS } from './constants';
export { PROVIDER_FEATURES, SUPPORTED_PROVIDERS } from './types/providers';
export type { DeploymentStage } from './config/providerKeys';
export { Logger } from './utils/logger';
export { EventEmitter } from './core/EventEmitter';
export type { IAddressData, IAddressConfirmationOptions } from './components/AddressConfirmation';
export { AddressConfirmation } from './components/AddressConfirmation';
export { SocureAPIClient, createSocureFetchAddress, type ISocureEvaluationResponse, type ISocureAddressData, type ISocureDocumentData, } from './utils/socureApi';
//# sourceMappingURL=index.d.ts.map