UNPKG

vec-idp-web-sdk

Version:

VECU Identity Verification Web SDK - A secure, easy-to-integrate identity verification solution

41 lines 1.42 kB
import { IAddressData } from '@/components/AddressConfirmation'; import { type DeploymentStage } from '@/config/providerKeys'; export interface ISocureEvaluationResponse { id: string; eval_id: string; decision: string; status: string; data_enrichments?: Array<{ enrichment_name: string; enrichment_endpoint: string; enrichment_provider: string; status_code: number; response?: unknown; }>; } export interface ISocureAddressData { physicalAddress?: string; city?: string; state?: string; zip?: string; country?: string; } export interface ISocureDocumentData { fullName?: string; firstName?: string; surName?: string; address?: string; parsedAddress?: ISocureAddressData; } export declare class SocureAPIClient { private baseUrl; private apiToken; constructor(apiToken: string, environment?: DeploymentStage); fetchEvaluation(evalId: string): Promise<ISocureEvaluationResponse>; extractAddressFromEvaluation(evaluationData: ISocureEvaluationResponse): IAddressData | null; private transformSocureAddress; private parseRawAddress; fetchAddressFromEvaluation(evalId: string): Promise<IAddressData>; } export declare function createSocureFetchAddress(apiToken: string, environment?: DeploymentStage): (evalId: string) => Promise<IAddressData>; //# sourceMappingURL=socureApi.d.ts.map