{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An event on a calendar at spaces.computer: in your home space, private to you, or in a shared calendar space (computer.spaces.calendar), where everyone in the calendar can read it and only you can change it. Days and times are wall-clock in the time zone the event was written in. Record key: a TID.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When the event was added to the calendar.",
            "format": "datetime",
            "type": "string"
          },
          "day": {
            "description": "The day it is on, or starts on, as YYYY-MM-DD.",
            "maxLength": 10,
            "type": "string"
          },
          "end": {
            "description": "When it ends, as HH:MM in 24-hour time, on the same day. Absent when there is no set end.",
            "maxLength": 5,
            "type": "string"
          },
          "endDay": {
            "description": "For an event spanning days: the last day, as YYYY-MM-DD. Absent for a single day.",
            "maxLength": 10,
            "type": "string"
          },
          "location": {
            "description": "Where it is.",
            "maxGraphemes": 3000,
            "maxLength": 9000,
            "type": "string"
          },
          "notes": {
            "description": "Anything else about it.",
            "maxGraphemes": 20000,
            "maxLength": 60000,
            "type": "string"
          },
          "repeat": {
            "description": "How the event comes back. \"yearly\": on the same month and day every year from its day on, for a birthday or an anniversary. Absent for a one-off.",
            "knownValues": [
              "yearly"
            ],
            "type": "string"
          },
          "source": {
            "description": "The original note's space-record URI, including its space, writer DID, collection and record key.",
            "format": "uri",
            "type": "string"
          },
          "start": {
            "description": "When it starts, as HH:MM in 24-hour time. Absent for an all-day event.",
            "maxLength": 5,
            "type": "string"
          },
          "title": {
            "description": "What the event is.",
            "maxGraphemes": 2000,
            "maxLength": 6000,
            "type": "string"
          },
          "tz": {
            "description": "The IANA time zone the day and times were written in, e.g. America/New_York.",
            "maxLength": 100,
            "type": "string"
          },
          "updatedAt": {
            "description": "When it was last changed.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "day",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.spaces.event",
  "lexicon": 1
}
