type: "email";packages/client/src/core/surfaces.ts:13
Surface types for type-safe template interactions. These are generic types that get specialized by the generated client. Built payload for the outbox pattern. Contains all validated information needed to send later.
import type { BuiltEmailPayload } from '@usepapier/client/base';export interface BuiltEmailPayload<TPayload = any> {
type: "email";
templateName: string;
projectName: string;
to: string | string[];
subject?: string;
template?: string;
data: TPayload;
}Source: packages/client/src/core/surfaces.ts:12
type: "email";packages/client/src/core/surfaces.ts:13
templateName: string;packages/client/src/core/surfaces.ts:14
projectName: string;packages/client/src/core/surfaces.ts:15
to: string | string[];packages/client/src/core/surfaces.ts:16
subject?: string;packages/client/src/core/surfaces.ts:17
template?: string;packages/client/src/core/surfaces.ts:18
data: TPayload;packages/client/src/core/surfaces.ts:19
d65ea8f71fbf