Type Alias MediaAttachment
MediaAttachment:
| {
blurhash: string
| null;
description: string;
id: string;
meta: {
focus?: { x: number; y: number };
original?: {
aspect: number | null;
height: number;
size: string | null;
width: number;
};
small?: {
aspect: number
| null;
height: number;
size: string | null;
width: number;
};
};
mime_type: string
| null;
preview_url: string;
remote_url: string | null;
type: "image";
url: string;
}
| {
blurhash: string
| null;
description: string;
id: string;
meta: {
duration?: number;
original?: {
aspect: number | null;
duration: number | null;
frame_rate: string | null;
height: number;
size: string | null;
width: number;
};
small?: {
aspect: number
| null;
height: number;
size: string | null;
width: number;
};
};
mime_type: string
| null;
preview_url: string;
remote_url: string | null;
type: "video";
url: string;
}
| {
blurhash: string
| null;
description: string;
id: string;
meta: {
duration?: number;
focus?: { x: number; y: number };
original?: {
aspect: number | null;
height: number;
size: string | null;
width: number;
};
};
mime_type: string
| null;
preview_url: string;
remote_url: string | null;
type: "gifv";
url: string;
}
| {
blurhash: string
| null;
description: string;
id: string;
meta: {
colors?: {
accent?: string;
background?: string;
duration?: number;
foreground?: string;
};
duration?: number;
original?: { bitrate?: number; duration?: number };
};
mime_type: string
| null;
preview_url: string;
remote_url: string | null;
type: "audio";
url: string;
}
| {
blurhash: string
| null;
description: string;
id: string;
mime_type: string | null;
preview_url: string;
remote_url: string | null;
type: "unknown";
url: string;
}