{
  "$schema": "../schemas/gateway-config.schema.json",
  "enabled": false,
  "pollIntervalMs": 2000,
  "adapters": {
    "telegram": {
      "enabled": false,
      "token": "${TELEGRAM_BOT_TOKEN}",
      "allowedUsers": [],
      "homeChat": null
    },
    "discord": {
      "enabled": false,
      "token": "${DISCORD_BOT_TOKEN}",
      "guildId": null,
      "channelId": null
    },
    "webhook": {
      "enabled": false,
      "url": "${WEBHOOK_URL}",
      "secret": "${WEBHOOK_SECRET}"
    },
    "whatsapp": {
      "enabled": false,
      "mode": "business",
      "token": "${WHATSAPP_TOKEN}",
      "phoneId": "${WHATSAPP_PHONE_ID}",
      "defaultChat": null
    },
    "slack": {
      "enabled": false,
      "token": "${SLACK_BOT_TOKEN}",
      "signingSecret": "${SLACK_SIGNING_SECRET}",
      "appToken": "${SLACK_APP_TOKEN}",
      "defaultChannel": null
    },
    "email": {
      "enabled": false,
      "mode": "api",
      "service": "sendgrid",
      "apiKey": "${EMAIL_API_KEY}",
      "from": "${EMAIL_FROM}",
      "defaultTo": null,
      "smtpHost": "${SMTP_HOST}",
      "smtpPort": 587,
      "smtpUser": "${SMTP_USER}",
      "smtpPass": "${SMTP_PASS}"
    }
  },
  "notifications": {
    "onSessionComplete": true,
    "onCheckpoint": true,
    "onError": true,
    "onRelease": true,
    "onBuildFail": true
  },
  "relay": {
    "enabled": false,
    "platforms": {
      "telegram": {
        "enabled": false,
        "allowedUsers": []
      },
      "discord": {
        "enabled": false,
        "allowedUsers": []
      },
      "webhook": {
        "enabled": false,
        "allowedUsers": []
      }
    },
    "rateLimit": {
      "maxPerMinute": 10
    }
  }
}
