{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "home_page",
  "description": "Bot ana sayfası (inkiSetHomePage): karşılama, hızlı karolar, bölümler.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "greeting"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "home_page"
      ]
    },
    "version": {
      "type": "integer",
      "enum": [
        1
      ]
    },
    "tone": {
      "type": "string",
      "enum": [
        "neutral",
        "success",
        "warning",
        "danger",
        "brand"
      ]
    },
    "brand_color": {
      "type": "string",
      "enum": [
        "mavi",
        "turuncu",
        "mor",
        "pembe",
        "altin",
        "yesil",
        "turkuaz"
      ]
    },
    "greeting": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "title": {
          "type": "string",
          "maxLength": 80,
          "minLength": 1
        },
        "text": {
          "type": "string",
          "maxLength": 200
        },
        "suggestions": {
          "type": "array",
          "minItems": 0,
          "maxItems": 8,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "value": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
                "description": "seçenek/öğe değeri; istemci bunu `inki_component_action.values` içinde geri gönderir"
              },
              "label": {
                "type": "string",
                "maxLength": 20,
                "minLength": 1
              }
            },
            "required": [
              "value",
              "label"
            ]
          }
        }
      },
      "required": [
        "title"
      ]
    },
    "tiles": {
      "type": "array",
      "minItems": 0,
      "maxItems": 6,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
            "description": "seçenek/öğe değeri; istemci bunu `inki_component_action.values` içinde geri gönderir"
          },
          "title": {
            "type": "string",
            "maxLength": 40,
            "minLength": 1
          },
          "subtitle": {
            "type": "string",
            "maxLength": 60
          },
          "icon": {
            "type": "string",
            "enum": [
              "calendar",
              "tag",
              "clock",
              "location",
              "cart",
              "chat",
              "phone",
              "info",
              "star",
              "gift",
              "ticket",
              "document",
              "heart",
              "user",
              "settings",
              "search"
            ]
          },
          "brand_color": {
            "type": "string",
            "enum": [
              "mavi",
              "turuncu",
              "mor",
              "pembe",
              "altin",
              "yesil",
              "turkuaz"
            ]
          }
        },
        "required": [
          "value",
          "title"
        ]
      }
    },
    "sections": {
      "type": "array",
      "minItems": 0,
      "maxItems": 4,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 60,
            "minLength": 1
          },
          "cards": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "value": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
                  "description": "seçenek/öğe değeri; istemci bunu `inki_component_action.values` içinde geri gönderir"
                },
                "title": {
                  "type": "string",
                  "maxLength": 80,
                  "minLength": 1
                },
                "subtitle": {
                  "type": "string",
                  "maxLength": 120
                },
                "date": {
                  "type": "string",
                  "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
                  "description": "YYYY-MM-DD"
                },
                "action_label": {
                  "type": "string",
                  "maxLength": 30
                }
              },
              "required": [
                "value",
                "title"
              ]
            }
          }
        },
        "required": [
          "title",
          "cards"
        ]
      }
    }
  },
  "x-inki-eylem": [
    {
      "action": "select",
      "values": {
        "value": "greeting.suggestions[].value | tiles[].value | sections[].cards[].value"
      }
    }
  ]
}
