2023-09-11 05:46:20 +02:00
|
|
|
export interface Sub {
|
2023-09-11 05:31:08 +02:00
|
|
|
// For Image, Gifv, and Video
|
|
|
|
|
width?: number;
|
|
|
|
|
height?: number;
|
|
|
|
|
size?: string;
|
|
|
|
|
aspect?: number;
|
|
|
|
|
|
|
|
|
|
// For Gifv and Video
|
|
|
|
|
frame_rate?: string;
|
|
|
|
|
|
|
|
|
|
// For Audio, Gifv, and Video
|
|
|
|
|
duration?: number;
|
|
|
|
|
bitrate?: number;
|
2023-09-11 05:46:20 +02:00
|
|
|
}
|
2023-09-11 05:31:08 +02:00
|
|
|
|
2023-09-11 05:46:20 +02:00
|
|
|
export interface Focus {
|
2023-09-11 05:31:08 +02:00
|
|
|
x: number;
|
|
|
|
|
y: number;
|
2023-09-11 05:46:20 +02:00
|
|
|
}
|
2023-09-11 05:31:08 +02:00
|
|
|
|
2023-09-11 05:46:20 +02:00
|
|
|
export interface Meta {
|
2023-09-11 05:31:08 +02:00
|
|
|
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;
|
2023-09-11 05:46:20 +02:00
|
|
|
}
|
2023-09-11 05:31:08 +02:00
|
|
|
|
2023-09-11 05:46:20 +02:00
|
|
|
export interface Attachment {
|
2023-09-11 05:31:08 +02:00
|
|
|
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;
|
2023-09-11 05:46:20 +02:00
|
|
|
}
|