UNPKG

@adobe/genstudio-uix-sdk

Version:
43 lines (42 loc) 1.01 kB
import { Channel } from "../channel/Channel"; /** Generation Context */ export type Brand = { id: string; name?: string; }; export type Persona = { id: string; name?: string; }; export type Product = { id: string; name?: string; }; export type Claim = { id: string; description: string; }; export declare enum AdditionalContextTypes { Claims = "claims" } export type AdditionalContextValues<T> = T[]; export type AdditionalContext<T> = { extensionId: string; additionalContextType: AdditionalContextTypes; additionalContextValues: AdditionalContextValues<T>; }; export type SectionGenerationContext = { id: string; additionalContexts?: AdditionalContext<any>[]; product?: Product; }; export type GenerationContext = { id: string; userPrompt: string; channel?: Channel; additionalContexts?: AdditionalContext<any>[]; brand?: Brand; product?: Product; persona?: Persona; sections?: SectionGenerationContext[] | undefined; };