UNPKG

apacuana-sdk-web

Version:

Apacuana SDK for Web

37 lines (36 loc) 2.31 kB
import { ApacuanaConfig, IAddSigner, IDocsByCustomer, IExportedCertificateInJSON, IGetCertRequerimentsByType, IRequestRevocation, ISignDocument, IUploadSignatureVariant } from "./types/index.js"; import { ApacuanaSuccess } from "./lib/responses.js"; import "./components/apacuana-liveness-detector.js"; import "./components/liveness-amplify.js"; export declare class ApacuanaWeb { private isInitialized; init(config: ApacuanaConfig): Promise<object>; getCustomer(): Promise<import("apacuana-sdk-core/dist/api/users.js").GetCustomerResponse>; getRevocationReasons(): Promise<import("apacuana-sdk-core/dist/types/revocations.js").GetRevocationReasonsResponse>; getCertStatus(): Promise<import("apacuana-sdk-core/dist/types/certs.js").GetCertStatusResponse>; generateCert(pin: string): Promise<import("apacuana-sdk-core/dist/types/certs.js").GenerateCertResponse | undefined>; getCertTypes(): Promise<import("apacuana-sdk-core/dist/types/certs.js").GetCertTypesResponse>; getCertRequerimentsByType(params: IGetCertRequerimentsByType): Promise<import("apacuana-sdk-core/dist/types/certs.js").GetRequirementsResponse>; uploadSignatureVariant(params: IUploadSignatureVariant): Promise<object>; getSignatureVariant(): Promise<object>; deleteSignatureVariant(): Promise<object>; getDocsByCustomer(params: IDocsByCustomer): Promise<import("apacuana-sdk-core/dist/types/signatures.js").GetDocsResponse>; addSigner(params: IAddSigner): Promise<import("apacuana-sdk-core/dist/types/signatures.js").AddSignerResponse>; requestRevocation(params: IRequestRevocation): Promise<import("apacuana-sdk-core/dist/types/revocations.js").RequestRevocationResponse>; isCertificateInDevice(): Promise<ApacuanaSuccess<{ isExist: boolean; }>>; close(): Promise<void>; signDocument(params: ISignDocument): Promise<object | undefined>; exportCertificateInJSON(params: IExportedCertificateInJSON): Promise<ApacuanaSuccess<{ isExport: boolean; }>>; startLivenessCheck(container?: HTMLElement): Promise<unknown>; private handleLivenessSuccess; private importCertificate; private getConfig; private ensureInitialized; private exportCertificateInP12; private readFileAsText; } export declare const apacuanaWeb: ApacuanaWeb;