@adobe/genstudio-extensibility-sdk
Version:
GenStudio Extensibility SDK
22 lines (21 loc) • 684 B
TypeScript
export type EmailRole = "headline" | "sub_headline" | "body" | "cta" | "other";
export type Role = EmailRole;
export type Mapping = Record<string, Role>;
export type Template = {
/** Unique identifier for the template */
id: string;
/** Title of the template */
title: string;
/** Raw HTML content of the template */
content: string;
/** Mapping of Handlebars variables to GenStudio roles */
mapping: Mapping;
/** Source of the template */
source: string;
/** URL of the template */
url?: string;
/** Additional metadata */
additionalMetadata?: Record<string, any>;
/** Keywords for searching */
keywords?: string[];
};