{
  "additionalProperties": false,
  "properties": {
    "buttons": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "x-lumen-title": {
              "en": "Answer id",
              "he": "מזהה התשובה"
            }
          },
          "title": {
            "maxLength": 20,
            "minLength": 1,
            "type": "string",
            "x-lumen-title": {
              "en": "Button",
              "he": "כפתור"
            }
          }
        },
        "required": [
          "id",
          "title"
        ],
        "type": "object"
      },
      "maxItems": 3,
      "minItems": 1,
      "type": "array",
      "x-lumen-title": {
        "en": "Answers",
        "he": "תשובות"
      }
    },
    "connectorRef": {
      "minLength": 1,
      "type": "string",
      "x-lumen-title": {
        "en": "Send from",
        "he": "לשלוח מ"
      },
      "x-lumen-widget": "connector-ref"
    },
    "language": {
      "maxLength": 15,
      "type": "string",
      "x-lumen-title": {
        "en": "Template language",
        "he": "שפת התבנית"
      }
    },
    "params": {
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "type": "array",
      "x-lumen-title": {
        "en": "Template values",
        "he": "ערכי התבנית"
      }
    },
    "reasonMinutes": {
      "default": 30,
      "maximum": 120,
      "minimum": 1,
      "type": "integer",
      "x-lumen-title": {
        "en": "Wait for the reason (minutes)",
        "he": "להמתין לסיבה (דקות)"
      }
    },
    "reasonOn": {
      "items": {
        "type": "string"
      },
      "maxItems": 3,
      "type": "array",
      "x-lumen-description": {
        "en": "Answer ids. After such a tap the person is asked why, and their next message is the reason.",
        "he": "מזהי תשובות. אחרי לחיצה כזו שואלים למה, וההודעה הבאה שלהם היא הסיבה."
      },
      "x-lumen-title": {
        "en": "Ask why after these answers",
        "he": "לשאול למה אחרי התשובות האלה"
      }
    },
    "reasonPrompt": {
      "maxLength": 200,
      "type": "string",
      "x-lumen-title": {
        "en": "Why question",
        "he": "שאלת הלמה"
      }
    },
    "template": {
      "maxLength": 512,
      "type": "string",
      "x-lumen-title": {
        "en": "Template outside 24 hours",
        "he": "תבנית אחרי 24 שעות"
      }
    },
    "text": {
      "maxLength": 1024,
      "minLength": 1,
      "type": "string",
      "x-lumen-title": {
        "en": "Question",
        "he": "שאלה"
      },
      "x-lumen-widget": "field-picker"
    },
    "timeoutHours": {
      "default": 72,
      "maximum": 720,
      "minimum": 1,
      "type": "integer",
      "x-lumen-title": {
        "en": "Wait up to (hours)",
        "he": "להמתין עד (שעות)"
      }
    },
    "to": {
      "maxLength": 200,
      "type": "string",
      "x-lumen-title": {
        "en": "To",
        "he": "אל"
      },
      "x-lumen-widget": "field-picker"
    },
    "toMember": {
      "maxLength": 320,
      "type": "string",
      "x-lumen-description": {
        "en": "Their email. They must have joined this number with their phone (Profile, WhatsApp).",
        "he": "האימייל שלהם. עליהם להצטרף למספר הזה עם הטלפון (פרופיל, וואטסאפ)."
      },
      "x-lumen-title": {
        "en": "To a member",
        "he": "אל חבר/ה בסביבת העבודה"
      },
      "x-lumen-widget": "field-picker"
    }
  },
  "required": [
    "text",
    "buttons"
  ],
  "type": "object"
}
