{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "invite",
  "description": "Davet / paylaş. Paylaşım kullanıcının sohbetlerine istemciden gider (bota gitmez).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "title",
    "link"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "invite"
      ]
    },
    "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"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
    },
    "text": {
      "type": "string",
      "maxLength": 300
    },
    "link": {
      "type": "string",
      "pattern": "^https://[^\\s\\x00-\\x1f\\x7f]{1,2040}$"
    },
    "share_label": {
      "type": "string",
      "maxLength": 40
    }
  }
}
