{
  "additionalProperties": false,
  "properties": {
    "attach": {
      "type": "boolean"
    },
    "fields": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "default": {
            "type": "string",
            "x-lumen-widget": "field-picker"
          },
          "label": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "options": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "message": {
      "type": "string",
      "x-lumen-widget": "field-picker"
    },
    "onTimeout": {
      "additionalProperties": false,
      "properties": {
        "message": {
          "type": "string",
          "x-lumen-description": {
            "en": "Empty is Lumen's own text, in the email's language.",
            "he": "ריק הוא הנוסח של Lumen, בשפת המייל."
          },
          "x-lumen-title": {
            "en": "Notice text",
            "he": "נוסח ההודעה"
          },
          "x-lumen-widget": "field-picker"
        },
        "notify": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-lumen-description": {
            "en": "Addresses told when nobody answered in time; {email.from} is the sender of the email that started the run.",
            "he": "כתובות שמקבלות הודעה כשלא ענו בזמן; {email.from} הוא שולח המייל שהתחיל את ההרצה."
          },
          "x-lumen-title": {
            "en": "Tell",
            "he": "להודיע ל"
          },
          "x-lumen-widget": "email-list"
        }
      },
      "type": "object",
      "x-lumen-title": {
        "en": "When nobody answers",
        "he": "כשלא עונים"
      }
    },
    "reminders": {
      "additionalProperties": false,
      "properties": {
        "after": {
          "items": {
            "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$",
            "type": "string"
          },
          "type": "array",
          "x-lumen-description": {
            "en": "How long after the email went out, such as 24h. Each one sends a reminder if nobody answered by then; at most three, each shorter than the timeout.",
            "he": "כמה זמן אחרי שהמייל נשלח, למשל 24h. כל אחד שולח תזכורת אם עוד לא ענו; עד שלוש, כל אחת קצרה מזמן ההמתנה."
          },
          "x-lumen-title": {
            "en": "Remind after",
            "he": "להזכיר אחרי"
          }
        },
        "message": {
          "type": "string",
          "x-lumen-description": {
            "en": "Empty is Lumen's own text, in the email's language.",
            "he": "ריק הוא הנוסח של Lumen, בשפת המייל."
          },
          "x-lumen-title": {
            "en": "Reminder text",
            "he": "נוסח התזכורת"
          },
          "x-lumen-widget": "field-picker"
        }
      },
      "type": "object",
      "x-lumen-title": {
        "en": "Reminders",
        "he": "תזכורות"
      }
    },
    "subject": {
      "type": "string",
      "x-lumen-widget": "field-picker"
    },
    "timeZone": {
      "type": "string"
    },
    "timeout": {
      "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$",
      "type": "string"
    },
    "to": {
      "type": "string",
      "x-lumen-widget": "field-picker"
    }
  },
  "required": [
    "to",
    "fields"
  ],
  "type": "object"
}
