{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "video",
  "description": "Video. `animation:true` ise sessiz döngü (Telegram animasyonu).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "source"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "video"
      ]
    },
    "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"
      ]
    },
    "source": {
      "type": "string",
      "pattern": "^(https://[^\\s\\x00-\\x1f\\x7f]{1,2040}|[A-Za-z0-9_.:-]{8,256})$",
      "x-inki-medya": "video",
      "description": "Telegram sözleşmesi: file_id ya da https URL (sunucu egress ile indirip yeniden barındırır)"
    },
    "poster": {
      "type": "string",
      "pattern": "^(https://[^\\s\\x00-\\x1f\\x7f]{1,2040}|[A-Za-z0-9_.:-]{8,256})$",
      "x-inki-medya": "photo",
      "description": "Telegram sözleşmesi: file_id ya da https URL (sunucu egress ile indirip yeniden barındırır)"
    },
    "duration_seconds": {
      "type": "integer",
      "minimum": 0,
      "maximum": 86400
    },
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "animation": {
      "type": "boolean"
    }
  }
}
