apps/meteor/client/components/message/content/urlPreviews/OEmbedPreviewMetadata.ts
type PreviewType = 'photo' | 'video' | 'link' | 'rich';
export type OEmbedPreviewMetadata = Partial<{
siteName: string; // nome
siteUrl: string; // parsedUrl.host
siteColor: string; // ogColor
title: string; // ogTitle
description: string; // ogDescription
authorName: string;
authorUrl?: string;
image: {
// preview?: string; // base64 low res preview
url: string;
dimensions: {
width?: number;
height?: number;
};
};
url: string;
type: PreviewType;
html?: string; // for embedded OembedType
}>;