{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "location": {
      "properties": {
        "address": {
          "description": "Address of the location",
          "type": "string"
        },
        "name": {
          "description": "Name of the location",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "description": {
            "description": "Description of the event",
            "type": "string"
          },
          "end_utc": {
            "description": "End time of the entire event (use the 'timeslots' field for granular scheduling)",
            "format": "datetime",
            "type": "string"
          },
          "location": {
            "ref": "lex:org.devcon.event.vone#location",
            "type": "ref"
          },
          "metadata": {
            "ref": "lex:org.devcon.event.vone#metadata",
            "type": "ref"
          },
          "organizer": {
            "ref": "lex:org.devcon.event.vone#organizer",
            "type": "ref"
          },
          "start_utc": {
            "description": "Start time of the entire event (use the 'timeslots' field for granular scheduling)",
            "format": "datetime",
            "type": "string"
          },
          "timeslots": {
            "description": "Optional event timeslots - this may be useful for events that span multiple days, need to specify timeslots for each day, or otherwise need more granular scheduling.",
            "items": {
              "ref": "lex:org.devcon.event.vone#timeslot",
              "type": "ref"
            },
            "type": "array"
          },
          "title": {
            "description": "Title of the event",
            "type": "string"
          }
        },
        "required": [
          "start_utc",
          "end_utc",
          "title",
          "description",
          "organizer",
          "location"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "metadata": {
      "description": "Optional fields that can be used to provide less pertinent information about the event",
      "properties": {
        "capacity": {
          "description": "How many people can attend the event",
          "type": "integer"
        },
        "categories": {
          "description": "Categories of the event (e.g. defi, privacy, security, etc.)",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "expertise_level": {
          "description": "Expertise level of the event",
          "enum": [
            "all welcome",
            "beginner",
            "intermediate",
            "expert",
            "other"
          ],
          "type": "string"
        },
        "image_url": {
          "description": "Url referencing an image for this event. Image should be .png, squared, and we suggest at least 1024x1024px.",
          "type": "string"
        },
        "requires_ticket": {
          "description": "Whether the event requires tickets",
          "type": "boolean"
        },
        "socials": {
          "description": "Array of social media platforms with platform name and URL.",
          "items": {
            "ref": "lex:org.devcon.event.vone#social_platform",
            "type": "ref"
          },
          "type": "array"
        },
        "sold_out": {
          "description": "Whether the event is sold out",
          "type": "boolean"
        },
        "tags": {
          "description": "Useful when other options dont apply or for searching",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "type": {
          "description": "Type of event, e.g. conference, talks, hackathon, etc.",
          "type": "string"
        },
        "website": {
          "description": "Website/URL of the event",
          "type": "string"
        }
      },
      "type": "object"
    },
    "organizer": {
      "properties": {
        "contact": {
          "description": "Contact of the organizer (email, twitter, etc.)",
          "type": "string"
        },
        "name": {
          "description": "Name of the organizer",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "social_platform": {
      "properties": {
        "platform": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "platform",
        "url"
      ],
      "type": "object"
    },
    "timeslot": {
      "properties": {
        "description": {
          "description": "Description of the timeslot",
          "type": "string"
        },
        "end_utc": {
          "description": "End of the timeslot",
          "format": "datetime",
          "type": "string"
        },
        "event_uri": {
          "description": "If the timeslot is a more intricate/detailed event that needs more than the basic title and description, this would refer to the atproto record key of that event. The referenced event should follow the same parent schema (org.devcon.event.v1)",
          "type": "string"
        },
        "start_utc": {
          "description": "Start of the timeslot",
          "format": "datetime",
          "type": "string"
        },
        "title": {
          "description": "Title of the timeslot",
          "type": "string"
        }
      },
      "required": [
        "start_utc",
        "end_utc",
        "title"
      ],
      "type": "object"
    }
  },
  "id": "org.devcon.event.vone",
  "lexicon": 1
}
