Allows for a opt-in strategy for notifications rather than opt-out.

Signed-off-by: Henrik Edegård <henrik.edegard@fortnox.se>
This commit is contained in:
Henrik Edegård
2025-10-01 09:10:45 +00:00
parent 7a26c0947e
commit 87e597c406
8 changed files with 476 additions and 13 deletions
+7
View File
@@ -34,6 +34,13 @@ export interface Config {
defaultSettings?: {
channels?: {
id: string;
/**
* Optional flag to enable/disable the channel by default.
* If not set, defaults to true for backwards compatibility.
* When set to false, the channel uses an opt-in strategy where
* origins are disabled by default unless explicitly enabled.
*/
enabled?: boolean;
origins?: {
id: string;
enabled: boolean;