2026-09-23 09:40:59 +08:00
|
|
|
|
import type { NotifyType, WebhookProvider } from '../api/types'
|
|
|
|
|
|
|
|
|
|
|
|
export const NOTIFY_TYPE_OPTIONS: { label: string; value: NotifyType }[] = [
|
|
|
|
|
|
{ label: '关闭', value: '' },
|
|
|
|
|
|
{ label: '邮件(SMTP)', value: 'email' },
|
|
|
|
|
|
{ label: 'Webhook', value: 'webhook' },
|
|
|
|
|
|
{ label: 'Telegram 机器人', value: 'telegram' },
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
export const WEBHOOK_PROVIDER_OPTIONS: { label: string; value: WebhookProvider }[] = [
|
|
|
|
|
|
{ label: 'Bark', value: 'bark' },
|
|
|
|
|
|
{ label: 'ntfy', value: 'ntfy' },
|
|
|
|
|
|
{ label: 'Gotify', value: 'gotify' },
|
2026-09-24 20:50:17 +08:00
|
|
|
|
{ label: '企业微信机器人', value: 'wecom' },
|
|
|
|
|
|
{ label: '钉钉机器人', value: 'dingtalk' },
|
|
|
|
|
|
{ label: '飞书机器人', value: 'feishu' },
|
2026-09-23 09:40:59 +08:00
|
|
|
|
{ label: '自定义 Webhook', value: 'custom' },
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_BARK_SERVER = 'https://api.day.app'
|
|
|
|
|
|
export const DEFAULT_NTFY_SERVER = 'https://ntfy.sh'
|
2026-09-24 20:50:17 +08:00
|
|
|
|
export const DEFAULT_WECOM_SERVER = 'https://qyapi.weixin.qq.com'
|
|
|
|
|
|
export const DEFAULT_DINGTALK_SERVER = 'https://oapi.dingtalk.com'
|
|
|
|
|
|
export const DEFAULT_FEISHU_SERVER = 'https://open.feishu.cn'
|
2026-09-23 09:40:59 +08:00
|
|
|
|
export const MASKED_SECRET = '********'
|