UNPKG

@davidbolaji/termii-node

Version:

Node.js SDK for Termii API – send SMS, voice, OTP, and manage messaging with ease.

25 lines 861 B
import { HttpClient } from "../../http/HttpClient"; import { VerifyTokenRequest, VerifyTokenResponse } from "../../types/verifyTokenService.types"; /** * Utility type that forces TypeScript to expand an interface * so IntelliSense shows its full shape instead of just the alias. */ type Expand<T> = { [K in keyof T]: T[K]; } & {}; /** * Service for verifying OTP tokens */ export declare class VerifyTokenService { private http; constructor(http: HttpClient); /** * Verify an OTP token by checking its pinId and PIN code * * @param payload - Request payload containing apiKey, pinId, and pin * @returns Expanded `VerifyTokenResponse` with verification status */ verifyToken(payload: Expand<VerifyTokenRequest>): Promise<Expand<VerifyTokenResponse>>; } export {}; //# sourceMappingURL=VerifyTokenService.d.ts.map