{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unicum-gg/json-schema/unicum-gg-calendar-response-schema.json",
  "title": "CalendarResponse",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unicum-gg-calendar-api-openapi.yml#/components/schemas/CalendarResponse",
  "type": "object",
  "properties": {
    "region": {
      "type": "string",
      "description": "Game server region.",
      "enum": [
        "eu",
        "na",
        "asia",
        "cn"
      ]
    },
    "recordedSince": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The earliest date this region's calendar is known from: the first monthly article with a calendar (March 2025), or the first capture of the home page widget if earlier."
    },
    "entries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CalendarEntry"
      },
      "description": "Oldest first."
    }
  },
  "required": [
    "region",
    "recordedSince",
    "entries"
  ],
  "$defs": {
    "CalendarEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Stable identifier: the article path and the start."
        },
        "source": {
          "type": "string",
          "enum": [
            "widget",
            "monthly"
          ],
          "description": "Where the entry was read: `widget` is the portal home page's calendar (dated to the minute), `monthly` the month's \"WoT Monthly\" article (dated by the day). An entry both carry is returned once, as `widget`, with the monthly article's text."
        },
        "title": {
          "type": "string",
          "description": "The English title."
        },
        "titles": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "propertyNames": {
            "type": "string"
          },
          "description": "Every title read, keyed by the portal's own language code (`en`, `fr`, `pt-br`, `zh-tw`...). Only the languages the region's portal publishes the calendar in."
        },
        "descriptions": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "propertyNames": {
            "type": "string"
          },
          "description": "The entry's text, keyed like `titles`. Empty when the entry has none (the home page widget carries no text)."
        },
        "category": {
          "type": "string",
          "description": "The English category label, e.g. Specials, Battle Pass, Update, Event."
        },
        "color": {
          "type": "string",
          "description": "The portal widget's own colour token."
        },
        "icon": {
          "type": "string",
          "description": "The portal widget's own icon token."
        },
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time",
          "description": "Exclusive. An update is published as a one-minute entry marking the moment it goes live; an all-day entry ends at midnight UTC after its last day."
        },
        "allDay": {
          "type": "boolean",
          "description": "Dated by the day rather than the minute (`monthly` entries)."
        },
        "link": {
          "type": [
            "string",
            "null"
          ],
          "description": "The official page the entry leads to, when it has one."
        },
        "banner": {
          "type": [
            "string",
            "null"
          ],
          "description": "The article's full-size banner, when it has one."
        },
        "thumbnail": {
          "type": [
            "string",
            "null"
          ],
          "description": "The calendar widget's own small image."
        },
        "discordEventId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The scheduled event this entry is published as on the unicum.gg community server, when it is."
        }
      },
      "required": [
        "id",
        "source",
        "title",
        "titles",
        "descriptions",
        "category",
        "color",
        "icon",
        "start",
        "end",
        "allDay",
        "link",
        "banner",
        "thumbnail",
        "discordEventId"
      ],
      "description": "One entry of the official calendar."
    }
  }
}