{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "damla_link",
  "description": "Damla’ya bağla: etkinlik takvime eklenir / Damla hatırlatır (istemci yerel; kullanıcı izniyle, bota veri gitmez).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "title",
    "starts_at",
    "buttons"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "damla_link"
      ]
    },
    "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
    },
    "starts_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4102444800,
      "description": "Unix saniye (UTC)"
    },
    "ends_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4102444800,
      "description": "Unix saniye (UTC)"
    },
    "location": {
      "type": "string",
      "maxLength": 120
    },
    "buttons": {
      "type": "array",
      "minItems": 1,
      "maxItems": 2,
      "items": {
        "type": "string",
        "enum": [
          "add_to_calendar",
          "remind"
        ]
      }
    }
  }
}
