/**
 * Serviço de SMS
 */

import { apiClient } from "../api/client";
import type { SendSmsInput, SendSmsResponse } from "./types";

class SmsService {
  /**
   * Envia SMS via Twilio
   */
  async sendSms(data: SendSmsInput): Promise<SendSmsResponse> {
    const response = await apiClient.post<SendSmsResponse>("/send-sms", data);
    return response.data;
  }
}

export const smsService = new SmsService();
