Files
moshing-mammut/src/lib/mastodon/response.ts

41 lines
635 B
TypeScript

import type { SongInfo } from '$lib/odesliResponse';
export interface TimelineEvent {
event: string;
payload: string;
}
export interface Post {
id: string;
created_at: string;
tags: Tag[];
url: string;
content: string;
account: Account;
card?: PreviewCard;
songs?: SongInfo[];
}
export interface PreviewCard {
url: string;
title: string;
image?: string;
blurhash?: string;
width: number;
height: number;
}
export interface Tag {
name: string;
url: string;
}
export interface Account {
id: string;
acct: string;
username: string;
display_name: string;
url: string;
avatar: string;
}