export const whatsappSubscriptionOptions = [
  {
    key: 'message.inbound',
    label: 'messages',
    description: 'Inbound customer messages',
  },
  {
    key: 'message.delivered',
    label: 'message_deliveries',
    description: 'Delivery status updates',
  },
  {
    key: 'message.read',
    label: 'message_read',
    description: 'Read receipt updates',
  },
  {
    key: 'account.updated',
    label: 'account_update',
    description: 'WhatsApp account health or policy changes',
  },
  {
    key: 'template.updated',
    label: 'template_category_update',
    description: 'Template review or category updates',
  },
  {
    key: 'message.failed',
    label: 'message_failed',
    description: 'Failed message status updates',
  },
  {
    key: 'message.sent',
    label: 'message_sent',
    description: 'Outbound sent acknowledgements',
  },
] as const;

export const defaultWhatsappSubscriptions = whatsappSubscriptionOptions.map((item) => item.key);

export type WhatsappSubscriptionKey = (typeof whatsappSubscriptionOptions)[number]['key'];
