Feat/test channel (#371)

* add: test btn

* fix

* fix

---------

Co-authored-by: Théo LAGACHE <theo.lagache@soluce-technologies.com>
This commit is contained in:
Théo LAGACHE
2026-07-13 15:33:46 +02:00
committed by GitHub
co-authored by Théo LAGACHE
parent 3349bfaf3f
commit 1971ff69e3
58 changed files with 78 additions and 58 deletions
@@ -0,0 +1,16 @@
import {z} from "zod";
export const PUSHOVER_PRIORITIES = [
{value: "-2", label: "Lowest - no sound, no vibration, no alert"},
{value: "-1", label: "Low - quiet notification, no sound"},
{value: "0", label: "Normal - default sound and alert"},
{value: "1", label: "High - bypass quiet hours"},
{value: "2", label: "Emergency - repeat until acknowledged"},
] as const;
export const PushoverChannelConfigSchema = z.object({
pushoverUserKey: z.string().min(30, "User key must be 30 characters").max(30, "User key must be 30 characters"),
pushoverApiToken: z.string().min(30, "API token must be 30 characters").max(30, "API token must be 30 characters"),
pushoverPriority: z.enum(["-2", "-1", "0", "1", "2"]).default("0"),
pushoverDevice: z.string().max(25, "Device name must be at most 25 characters").optional().or(z.literal("")),
});