AssetPreview
AssetPreview =
object
Link preview metadata for an asset. Generated automatically by the platform when a URL or media file is processed. Contains a title, description, thumbnail images, and type-specific details.
Properties
description
description:
string
The preview description (e.g., the meta description for a webpage).
details
details: {
audio:AssetPreviewAudio;oneofKind:"audio"; } | {oneofKind:"video";video:AssetPreviewVideo; } | {oneofKind:"webpage";webpage:AssetPreviewWebpage; } | {oneofKind:undefined; }
A discriminated union with type-specific preview metadata. Check oneofKind to determine the type:
"audio"— AnAssetPreviewAudiowith codec, bitrate, and duration."video"— AnAssetPreviewVideowith dimensions, codec, bitrate, and duration."webpage"— AnAssetPreviewWebpagewith favicon, embed URL, and site name.undefined— No type-specific details are available.
previews
previews:
AssetPreviewImage[]
An array of AssetPreviewImage thumbnail images for the preview. Optional.
title
title:
string
The preview title (e.g., the page title for a webpage, or the track name for audio).
type
type:
AssetPreviewType
The type of preview. See AssetPreviewType.
updatedAt?
optionalupdatedAt:Date
When the preview was last generated. Optional.