{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "document",
  "description": "Belge (indir). Boyut sınırı Bot API belge sınırıdır (50 MB).",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "file",
    "file_name"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "document"
      ]
    },
    "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"
      ]
    },
    "file": {
      "type": "string",
      "pattern": "^(https://[^\\s\\x00-\\x1f\\x7f]{1,2040}|[A-Za-z0-9_.:-]{8,256})$",
      "x-inki-medya": "document",
      "description": "Telegram sözleşmesi: file_id ya da https URL (sunucu egress ile indirip yeniden barındırır)"
    },
    "file_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
    },
    "size_bytes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 52428800
    },
    "pages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "mime_type": {
      "type": "string",
      "pattern": "^[a-z]+/[A-Za-z0-9.+-]{1,100}$"
    }
  }
}
