src/types.ts

builderbot · packages/provider-email/src/types.ts · typescript · MIT
email

Defines TypeScript interfaces for email provider configuration and context, used in email handling modules.

// Source: https://github.com/codigoencasa/builderbot | License: MIT | Copyright 2022 Leifer Mendez
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * LAYER: Domain
 * Contains: ImapConfig, MessageSource, SmtpConfig, IEmailProviderArgs
 * Rules: No external dependencies. Pure business logic.
 * BigO: O(1) score:5
 * keywords: [ImapConfig, MessageSource, SmtpConfig, IEmailProviderArgs]
 * GOAL: Own the "types" concern of the provider-email package.
 */
import type { BotContext, GlobalVendorArgs } from '@builderbot/bot/dist/types'

/**
 * IMAP server configuration
 */
export interface ImapConfig {
    /** IMAP server host (e.g., 'imap.gmail.com') */
    host: string
    /** IMAP server port (e.g., 993 for SSL) */
    port: number
    /** Use secure connection (SSL/TLS) *

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key