{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An event on Jeff's timeline (/timeline/). Records are public, so until it's over an event holds only its kind, its days and its city, unless it's announced; the title, times, place, note and link are added after (docs/v4/timeline.md).",
      "key": "tid",
      "record": {
        "properties": {
          "announced": {
            "description": "Its details are public before it's over, e.g. a talk.",
            "type": "boolean"
          },
          "city": {
            "description": "Where, roughly: the city, e.g. 'Paris'.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "endTime": {
            "description": "A time (HH:MM) on the last day, in the event's time zone.",
            "maxLength": 5,
            "type": "string"
          },
          "endsOn": {
            "description": "A date (YYYY-MM-DD): the last day. Leave it empty for a one-day event.",
            "maxLength": 10,
            "type": "string"
          },
          "kind": {
            "description": "What kind of event, shown as its label while it has no title.",
            "knownValues": [
              "trip",
              "flight",
              "talk",
              "class",
              "meeting",
              "deadline",
              "milestone",
              "personal",
              "other"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "link": {
            "description": "A path on skiddle.id, e.g. a post written about it (/posts/…/), or a full URL.",
            "maxLength": 2000,
            "type": "string"
          },
          "note": {
            "description": "Markdown, rendered like a post's text: paragraphs, links, bold and italics.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "place": {
            "description": "The venue, e.g. 'Don Mueang airport'.",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "startTime": {
            "description": "A time (HH:MM) on the first day, in the event's time zone. Leave it empty for all day.",
            "maxLength": 5,
            "type": "string"
          },
          "startsOn": {
            "description": "A date (YYYY-MM-DD): the first day.",
            "maxLength": 10,
            "type": "string"
          },
          "timeZone": {
            "description": "IANA time zone for its times, e.g. 'Europe/Paris'. Bangkok's if empty.",
            "maxLength": 64,
            "type": "string"
          },
          "title": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "startsOn",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "id.skiddle.event",
  "lexicon": 1
}
