forked from mirrors/firefish
42 lines
991 B
TypeScript
42 lines
991 B
TypeScript
declare namespace Entity {
|
|
type Sub = {
|
|
width?: number;
|
|
height?: number;
|
|
size?: string;
|
|
aspect?: number;
|
|
frame_rate?: string;
|
|
duration?: number;
|
|
bitrate?: number;
|
|
};
|
|
type Focus = {
|
|
x: number;
|
|
y: number;
|
|
};
|
|
type Meta = {
|
|
original?: Sub;
|
|
small?: Sub;
|
|
focus?: Focus;
|
|
length?: string;
|
|
duration?: number;
|
|
fps?: number;
|
|
size?: string;
|
|
width?: number;
|
|
height?: number;
|
|
aspect?: number;
|
|
audio_encode?: string;
|
|
audio_bitrate?: string;
|
|
audio_channel?: string;
|
|
};
|
|
type Attachment = {
|
|
id: string;
|
|
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio';
|
|
url: string;
|
|
remote_url: string | null;
|
|
preview_url: string | null;
|
|
text_url: string | null;
|
|
meta: Meta | null;
|
|
description: string | null;
|
|
blurhash: string | null;
|
|
};
|
|
}
|