email/contracts.ts

LaunchStack · pipelines/src/email/contracts.ts · typescript · Apache-2.0
email

contracts.ts from Deodat-Lawson/LaunchStack

// Source: https://github.com/Deodat-Lawson/LaunchStack | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { EmailTemplate, Recipient, RenderedEmail, TemplateReview } from "./types";

/**
 * Pipeline interfaces (the frozen seam member.md builds against).
 */

/** Generate a company-grounded template for a company. */
export type GenerateTemplateFn = (args: {
    companyId: number;
    goal?: string;
}) => Promise<{ template: EmailTemplate; companyContext: string }>;

/** Review a template with an LLM (scores only). */
export type ReviewTemplateFn = (args: {
    template: EmailTemplate;
    companyContext: string;
}) => Promise<TemplateReview>;

/** Render one recipient's 

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

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

Get a free API key