{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "countdown",
  "description": "Geri sayım; kalan süreyi istemci `ends_at`'ten hesaplar.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "ends_at"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "countdown"
      ]
    },
    "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
    },
    "ends_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4102444800,
      "description": "Unix saniye (UTC)"
    },
    "finished_text": {
      "type": "string",
      "maxLength": 120
    }
  }
}
