export interface WebhookHeader {
  key: string
  value: string
}

export interface Webhook {
  id: string
  name: string
  url: string
  template: string
  customBody: string
  headers: WebhookHeader[]
  subscribedActions: string[]
  verifySSL: boolean
  enabled: boolean
  createdAt?: string
  updatedAt?: string
}

export const mockWebhooks: Webhook[] = [
  {
    id: '1',
    name: 'Slack Alerts',
    url: 'https://hooks.slack.com/services/xxx/yyy/zzz',
    template: 'slack',
    customBody: '',
    headers: [{ key: 'Content-Type', value: 'application/json' }],
    subscribedActions: ['peer.connected', 'peer.disconnected'],
    verifySSL: true,
    enabled: true,
    createdAt: '2026-04-15T08:30:00Z',
    updatedAt: '2026-05-01T14:20:00Z'
  },
  {
    id: '2',
    name: 'Discord Notifications',
    url: 'https://discord.com/api/webhooks/xxx/yyy',
    template: 'discord',
    customBody: '',
    headers: [{ key: 'Content-Type', value: 'application/json' }],
    subscribedActions: ['policy.updated', 'server.started'],
    verifySSL: true,
    enabled: false,
    createdAt: '2026-04-20T10:15:00Z',
    updatedAt: '2026-04-28T09:45:00Z'
  }
]
