@adobe/genstudio-extensibility-sdk
Version:
GenStudio Extensibility SDK
41 lines (40 loc) • 1.26 kB
TypeScript
import { Account } from "../account/Account";
import { Channel } from "../channel/Channel";
export type AppOptions = {
validation?: {
/**
* Use the single experience view mode for email experiences.
*/
singleExperienceViewMode?: boolean;
/**
* Open this app automatically after navigating to the draft.
*/
autoOpenApp?: boolean;
/**
* Reload the app automatically when the draft is updated.
*/
autoRefreshApp?: boolean;
};
selectContent?: {
/**
* Indicates that the provided content is protected by CORS. Defaults to true.
* When enabled in horizon canvas mode, the extension pre-uploads the content using an aio action rather than through the browser.
* Enabling will introduce a delay in the content selection process. (~5s)
*/
cors: boolean;
};
};
/** App Metadata */
export type AppMetadata = {
id: string;
extensionId: string;
iconDataUri: string;
supportedChannels: Channel[];
label: string;
accounts?: Account[];
options?: AppOptions;
};
/**
* @deprecated This type is deprecated. Please use AppMetadata instead.
*/
export type AppMetaData = AppMetadata;