UNPKG

mailora-ai

Version:

SDK for integrating with Mailora AI API to send bulk email data

25 lines (22 loc) 706 B
import { z } from 'zod'; declare const MailoraUserSchema: z.ZodObject<{ name: z.ZodString; email: z.ZodString; mobile: z.ZodOptional<z.ZodString>; location: z.ZodOptional<z.ZodString>; }, z.core.$strip>; type MailoraUser = z.infer<typeof MailoraUserSchema>; interface MailoraOptions { apiKey: string; baseUrl?: string; } declare class MailoraAI { private readonly axiosInstance; private readonly apiKey; private readonly baseUrl; constructor({ apiKey, baseUrl }: MailoraOptions); getVersion(): string; sendUser(user: MailoraUser): Promise<any>; sendBulk(users: MailoraUser[]): Promise<any>; } export { MailoraAI, type MailoraUser, MailoraUserSchema };