mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
48 lines
965 B
TypeScript
48 lines
965 B
TypeScript
export interface APISub {
|
|
// 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;
|
|
}
|
|
|
|
export interface APIFocus {
|
|
x: number;
|
|
y: number;
|
|
}
|
|
|
|
export interface APIMeta {
|
|
original?: APISub;
|
|
small?: APISub;
|
|
focus?: APIFocus;
|
|
length?: string;
|
|
duration?: number;
|
|
fps?: number;
|
|
size?: string;
|
|
width?: number;
|
|
height?: number;
|
|
aspect?: number;
|
|
audio_encode?: string;
|
|
audio_bitrate?: string;
|
|
audio_channel?: string;
|
|
}
|
|
|
|
export interface APIAttachment {
|
|
id: string;
|
|
type: "unknown" | "image" | "gifv" | "video" | "audio";
|
|
url: string;
|
|
remote_url: string | null;
|
|
preview_url: string | null;
|
|
text_url: string | null;
|
|
meta: APIMeta | null;
|
|
description: string | null;
|
|
blurhash: string | null;
|
|
}
|