@visulima/email
Version:
A comprehensive email library with multi-provider support, crypto utilities, and template engines
44 lines (43 loc) • 1.09 kB
TypeScript
import type { BaseConfig, EmailOptions, EmailTag } from "../../types.d.ts";
/**
* Resend configuration
*/
export interface ResendConfig extends BaseConfig {
apiKey: string;
endpoint?: string;
}
/**
* Resend-specific email tag type with additional constraints
*/
export interface ResendEmailTag extends EmailTag {
/**
* Tag name - must only contain ASCII letters, numbers, underscores, or dashes
* Max length: 256 characters
*/
name: string;
/**
* Tag value - must only contain ASCII letters, numbers, underscores, or dashes
*/
value: string;
}
/**
* Resend-specific email options
*/
export interface ResendEmailOptions extends Omit<EmailOptions, "tags"> {
/**
* Schedule email for delivery at a specific time
*/
scheduledAt?: Date | string;
/**
* Tags for categorizing emails
*/
tags?: ResendEmailTag[];
/**
* Template data for template-based emails
*/
templateData?: Record<string, unknown>;
/**
* Template ID for template-based emails
*/
templateId?: string;
}