/** * Parameters for sending an OTP */ export interface SendOtpParams { /** Template ID from MSG91 dashboard */ templateId: string; /** Mobile number with country code (e.g., "919876543210") */ mobile: string; /** OTP expiry time in minutes (default: 5) */ otpExpiry?: number; /** OTP length: 4 or 6 digits (default: 6) */ otpLength?: 4 | 6; /** Enable real-time response */ realTimeResponse?: boolean; /** Custom OTP value (for testing only) */ otp?: string; /** Additional template variables (e.g., { VAR1: "value" }) */ vars?: Record; } /** * Response from send OTP API */ export interface SendOtpResponse { type: "success" | "error"; message: string; request_id?: string; } /** * Parameters for verifying an OTP */ export interface VerifyOtpParams { /** OTP entered by user */ otp: string; /** Mobile number with country code */ mobile: string; } /** * Response from verify OTP API */ export interface VerifyOtpResponse { type: "success" | "error"; message: string; } /** * Parameters for resending an OTP */ export interface ResendOtpParams { /** Mobile number with country code */ mobile: string; /** Retry type: text SMS or voice call */ retryType: "text" | "voice"; } /** * Response from resend OTP API */ export interface ResendOtpResponse { type: "success" | "error"; message: string; request_id?: string; } //# sourceMappingURL=types.d.ts.map