vd-plugins/plugins/defs.d.ts

49 lines
942 B
TypeScript
Raw Normal View History

export type Activity = {
2023-04-03 22:54:15 +08:00
name: string;
application_id: string;
flags: number;
type: number;
details?: string;
state?: string;
timestamps?: {
2023-04-27 14:37:08 +08:00
_enabled?: boolean;
start: number | string;
end?: number | string;
2023-04-03 22:54:15 +08:00
};
assets: ActivityAssets;
buttons: ActivityButton[];
2023-04-03 22:54:15 +08:00
};
export type ActivityButton = {
2023-04-03 22:54:15 +08:00
label: string;
url: string;
};
export type ActivityAssets = {
2023-04-03 22:54:15 +08:00
large_image?: string;
large_text?: string;
small_image?: string;
small_text?: string;
};
2023-04-05 17:43:33 +08:00
export type LFMSettings = {
2023-04-05 17:43:33 +08:00
appName: string;
username: string;
showTimestamp: boolean;
2023-04-07 22:02:32 +08:00
timeInterval: number | string;
2023-04-05 17:43:33 +08:00
listeningTo: boolean;
ignoreSpotify: boolean;
verboseLogging: boolean;
};
export type Track = {
2023-04-05 17:43:33 +08:00
name: string;
artist: string;
album: string;
albumArt: string;
url: string;
date: string;
nowPlaying: boolean;
loved: boolean;
}