feat: notifications for media_available and media_approved

This commit is contained in:
sct
2020-11-23 10:34:53 +00:00
parent d8e542e5fe
commit a6c5e65bbf
8 changed files with 234 additions and 29 deletions

View File

@@ -55,9 +55,18 @@ interface NotificationAgent {
types: number;
options: Record<string, unknown>;
}
interface NotificationAgentDiscord extends NotificationAgent {
options: {
webhookUrl: string;
};
}
interface NotificationAgents {
discord: NotificationAgentDiscord;
}
interface NotificationSettings {
agents: Record<string, NotificationAgent>;
agents: NotificationAgents;
}
interface AllSettings {