{
  "$schema": "http://json.schemastore.org/install",
  "hooks": [
    {
      "endpoint": "https://api.hanami.run/v1/hook/cf",
      "events": ["option-change:account", "item-add", "new-install"],
      "block": false,
      "authenticate": ["account"],
      "failure": {
        "action": "notify",
        "message": "There was an error communicating with hanami"
      }
    }
  ],
  "dns": [
    {
      "type": "TXT",
      "content": "v=spf1 include:spf.hanami.run ~all",
      "name": "@",
      "ttl": 120
    },
    {
      "type": "MX",
      "name": "@",
      "content": "mx1.hanami.run",
      "priority": 1
    },
    {
      "type": "MX",
      "name": "@",
      "content": "mx2.hanami.run",
      "priority": 5
    },
    {
      "type": "CNAME",
      "name": "hanamicloudflare._domainkey",
      "content": "hanami_cf.dkim.hanami.run",
      "proxied": false
    }
  ],

  "preview": {
    "hide": true
  },

  "options": {
    "properties": {
      "default_alias": {
        "title": "Forward All Email On This Domain To",
        "description": "You need to register with <a target=\"_blank\" href='https://hanami.run?from=cloudflare'>hanami.run</a> later on to finish setting up email forwarding. This app helps pre-configure all the DNS records and pre-populate data on hanami.run platform to make this integration easier.",
        "type": "string",
        "format": "email",
        "order": 0,
        "default": ""
      }
    }
  }
}
