{
  "id": "guardian",
  "name": "WAHA Guardian",
  "tagline": "Automated session protection and rate limiting",
  "description": "Guardian monitors your WhatsApp sessions in real time. It auto-stops runaway message floods, alerts you on suspicious activity, and prevents your account from being flagged for spam. Runs as an independent background service — always watching, even if the main plugin restarts.",
  "icon": "ShieldCheck",
  "price": "free",
  "faq": [
    {
      "question": "Will Guardian affect normal message sending?",
      "answer": "No. Guardian observes outbound messages but never blocks them below your configured thresholds."
    },
    {
      "question": "What happens when a threshold is exceeded?",
      "answer": "Guardian automatically stops the affected session and optionally sends a notification to your alert webhook URL."
    },
    {
      "question": "Does Guardian need to be restarted after config changes?",
      "answer": "Yes. After saving configuration in the wizard, disable and re-enable Guardian to apply the new settings."
    }
  ],
  "configSchema": [
    {
      "key": "sessions",
      "label": "Watched Sessions",
      "tooltip": "Select which WhatsApp sessions Guardian should protect. All selected sessions will be monitored for rate threshold violations.",
      "type": "multiselect",
      "options": [],
      "default": []
    },
    {
      "key": "outboundMsgThreshold",
      "label": "Outbound Message Limit (per 60s)",
      "tooltip": "Maximum messages a session can send in 60 seconds before Guardian auto-stops it. Default: 20. Lower values are more conservative.",
      "type": "number",
      "default": 20
    },
    {
      "key": "recipientThreshold",
      "label": "Unique Recipient Limit (per 60s)",
      "tooltip": "Maximum unique contacts a session can message in 60 seconds. Prevents bulk-message spam patterns. Default: 10.",
      "type": "number",
      "default": 10
    },
    {
      "key": "alertWebhookUrl",
      "label": "Alert Webhook URL",
      "tooltip": "Optional URL to receive a POST notification whenever Guardian stops a session. Leave empty to disable alerts.",
      "type": "text",
      "default": ""
    }
  ],
  "defaultConfig": {
    "sessions": [],
    "outboundMsgThreshold": 20,
    "recipientThreshold": 10,
    "alertWebhookUrl": ""
  },
  "rating": 5.0
}
