UNPKG

@adobe/genstudio-extensibility-sdk

Version:
38 lines (37 loc) 1.1 kB
/** * Represents a GenStudio Asset entity in the Experience. */ export type Asset = { /** The unique identifier of the asset. */ id: string; /** the mimetype detected from the asset */ mimeType: string; /** the name of the asset */ name: string; /** the size of the asset in bytes */ size: number; /** Extension information */ extensionInfo: ExtensionInfo; /** the source of the asset */ externalAssetInfo: ExternalAssetInfo; /** Metadata for the asset */ additionalMetadata?: Record<string, any>; /** keywords for the asset */ keywords?: string[]; }; export type ExternalAssetInfo = { /** the source url of the asset */ sourceUrl: string; /** the signed url of the asset for download */ signedUrl: string; /** the signed thumbnail url of the asset for download and display */ signedThumbnailUrl: string; }; export type ExtensionInfo = { /** the id of the extension */ id: string; /** the name of the extension */ name: string; /** the icon url of the extension */ iconUrl?: string; };