UNPKG

@davidbolaji/termii-node

Version:

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

25 lines 851 B
import { HttpClient } from "../../http/HttpClient"; import { InAppTokenRequest, InAppTokenResponse } from "../../types/inAppTokenService.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 generating in-app OTP tokens */ export declare class InAppTokenService { private http; constructor(http: HttpClient); /** * Generate a new in-app OTP token * * @param payload - Request payload containing apiKey, pinType, phoneNumber, and OTP settings * @returns Expanded `InAppTokenResponse` with OTP details */ generate(payload: Expand<InAppTokenRequest>): Promise<Expand<InAppTokenResponse>>; } export {}; //# sourceMappingURL=InAppTokenService.d.ts.map