export const NOTIFICATION_CATEGORIES = [
"security_alert",
"vulnerability_report",
"ci",
"ci_watching",
"deploy",
"quota",
"runner",
"import",
"mergefix",
"integration",
] as const;
export type NotificationCategory = (typeof NOTIFICATION_CATEGORIES)[number];
export const DIGEST_MODES = ["off", "daily"] as const;
export type DigestMode = (typeof DIGEST_MODES)[number];
export type CategoryInfo = {
label: string;
description: string;
web: boolean;
email: boolean;
/** Noisy categories can be batched into a daily digest email instead of one email per event. */
digestable: boolean;
};
export const CATEGORY_INFO: Record<NotificationCategory, CategoryInfo> = {
security_alert: {
label: "Security alerts",
description: "Secret scanning, push-protection bypasses and code scanning alerts in repositories you administer.",
web: true,
email: true,
digestable: true,
},
vulnerability_report: {
label: "Vulnerability reports",
description: "Private vulnerability reports and advisory updates you administer or reported.",
web: true,
email: true,
digestable: false,