diff --git a/src/types.ts b/src/types.ts index d0450d31e..8ca77c680 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1486,6 +1486,7 @@ export type Attachment< file_size?: number | string; footer?: string; footer_icon?: string; + giphy?: GiphyData; image_url?: string; mime_type?: string; og_scrape_url?: string; @@ -1777,6 +1778,25 @@ export type FirebaseConfig = { notification_template?: string; }; +type GiphyVersionInfo = { + height: string; + url: string; + width: string; +}; + +type GiphyVersions = + | 'original' + | 'fixed_height' + | 'fixed_height_still' + | 'fixed_height_downsampled' + | 'fixed_width' + | 'fixed_width_still' + | 'fixed_width_downsampled'; + +type GiphyData = { + [key in GiphyVersions]: GiphyVersionInfo; +}; + export type HuaweiConfig = { enabled?: boolean; };