AssetInformation
AssetInformation =
object
Metadata for a single asset. Returned by AssetClient.get() and included in message events via MessageReferenceMaps. Contains the asset's download link, ID, and optional preview data.
Properties
assetId
assetId:
AssetGuid
The unique identifier of the asset.
link
link: {
oneofKind:"url";url:string; } | {image:AssetImage;oneofKind:"image"; } | {oneofKind:"video";video:AssetVideo; } | {invalid:AssetInvalid;oneofKind:"invalid"; } | {file:AssetFile;oneofKind:"file"; } | {oneofKind:undefined; }
A discriminated union describing the asset content. Check oneofKind to determine the type:
"url"— A direct download URL (string)."image"— AnAssetImagewith resolution variants and thumbnail."video"— AnAssetVideowith streaming and download URLs."file"— AnAssetFilewith download URL, MIME type, and size."invalid"— The asset failed processing. SeeAssetInvalidfor the reason.undefined— No link data is available.
linkExpiresAt?
optionallinkExpiresAt:Date
When the download links expire. Optional. After this time, call AssetClient.get() again to obtain fresh URLs.
preview?
optionalpreview:AssetPreview
Optional preview metadata for the asset. See AssetPreview.