feat(notifications): native support for pushover

This commit is contained in:
Nicolas Meienberger
2025-11-22 17:48:19 +01:00
parent a622b5e689
commit 8c4939af4e
6 changed files with 130 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ export const NOTIFICATION_TYPES = {
discord: "discord",
gotify: "gotify",
ntfy: "ntfy",
pushover: "pushover",
custom: "custom",
} as const;
@@ -52,6 +53,14 @@ export const ntfyNotificationConfigSchema = type({
priority: "'max' | 'high' | 'default' | 'low' | 'min'",
});
export const pushoverNotificationConfigSchema = type({
type: "'pushover'",
userKey: "string",
apiToken: "string",
devices: "string?",
priority: "-1 | 0 | 1",
});
export const customNotificationConfigSchema = type({
type: "'custom'",
shoutrrrUrl: "string",
@@ -62,6 +71,7 @@ export const notificationConfigSchema = emailNotificationConfigSchema
.or(discordNotificationConfigSchema)
.or(gotifyNotificationConfigSchema)
.or(ntfyNotificationConfigSchema)
.or(pushoverNotificationConfigSchema)
.or(customNotificationConfigSchema);
export type NotificationConfig = typeof notificationConfigSchema.infer;