feat: allow defining default notification settings via config

Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
This commit is contained in:
Hellgren Heikki
2025-03-17 15:50:34 +02:00
parent 58cb0452a9
commit 4401dfbf80
4 changed files with 205 additions and 23 deletions
+16
View File
@@ -28,5 +28,21 @@ export interface Config {
* Throttle duration between notification sending, defaults to 50ms
*/
throttleInterval?: HumanDuration | string;
/**
* Default settings for user specific notification settings
*/
defaultSettings?: {
channels?: {
id: string;
origins?: {
id: string;
enabled: boolean;
topics?: {
id: string;
enabled: boolean;
}[];
}[];
}[];
};
};
}