UNPKG

@mirad-work/sms-core

Version:

A framework-agnostic TypeScript SMS service core with provider abstraction for Iranian SMS providers

25 lines 920 B
import { BaseSmsDriver } from "./base-driver"; import { ISmsMessage, ISmsResponse } from "../interfaces/sms-driver.interface"; import { IKavenegarConfig } from "../interfaces/sms-config.interface"; import { IHttpClient } from "../interfaces/http-client.interface"; /** * Kavenegar SMS driver implementation * Implements the Iranian Kavenegar SMS API */ export declare class KavenegarDriver extends BaseSmsDriver { private readonly kavenegarConfig; constructor(config: IKavenegarConfig, httpClient: IHttpClient); /** * Send a template-based SMS message (OTP/verification) */ verify(message: ISmsMessage): Promise<ISmsResponse>; /** * Build payload for verify/OTP requests */ private buildVerifyPayload; /** * Process Kavenegar API response and convert to standard format */ private processKavenegarResponse; } //# sourceMappingURL=kavenegar-driver.d.ts.map