UNPKG

@complycube/api

Version:

ComplyCube's Node.js library for the AML/KYC API

25 lines (24 loc) 724 B
import { AxiosInstance } from "axios"; import { Resource } from "../Resource"; export type FlowRequest = { clientId?: string; checkTypes?: string[]; workflowTemplateId?: string; successUrl: string; cancelUrl: string; enableMonitoring?: boolean; allowDocumentUpload?: boolean; supportEmail?: string; language?: string; theme?: string; messages?: object; documentTypes?: object; shortUrl?: boolean; }; export type FlowSession = { redirectUrl: string; }; export declare class Flow extends Resource<FlowRequest> { constructor(axiosInstance: AxiosInstance); createSession(clientId: string, flowRequest: FlowRequest): Promise<FlowSession>; }