{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "attendeeView": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "email": {
          "maxLength": 320,
          "type": "string"
        },
        "name": {
          "maxLength": 256,
          "type": "string"
        },
        "primary": {
          "description": "The guest who booked, rather than someone they added.",
          "type": "boolean"
        },
        "timeZone": {
          "description": "An IANA timezone name, such as Europe/Lisbon.",
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "email",
        "primary"
      ],
      "type": "object"
    },
    "bookingView": {
      "properties": {
        "answers": {
          "description": "Answers to the event type's questions, keyed by question key.",
          "type": "unknown"
        },
        "attendees": {
          "items": {
            "ref": "#attendeeView",
            "type": "ref"
          },
          "type": "array"
        },
        "cancellationReason": {
          "maxLength": 2000,
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "end": {
          "format": "datetime",
          "type": "string"
        },
        "eventType": {
          "format": "at-uri",
          "type": "string"
        },
        "host": {
          "format": "did",
          "type": "string"
        },
        "location": {
          "ref": "#locationView",
          "type": "ref"
        },
        "notes": {
          "maxLength": 10000,
          "type": "string"
        },
        "rescheduledFrom": {
          "description": "The booking's id.",
          "maxLength": 64,
          "type": "string"
        },
        "rescheduledTo": {
          "description": "The booking's id.",
          "maxLength": 64,
          "type": "string"
        },
        "start": {
          "format": "datetime",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "pending",
            "accepted",
            "cancelled",
            "declined"
          ],
          "maxLength": 16,
          "type": "string"
        },
        "title": {
          "maxLength": 1000,
          "type": "string"
        },
        "uid": {
          "description": "The booking's id.",
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "uid",
        "host",
        "eventType",
        "title",
        "start",
        "end",
        "status",
        "attendees",
        "createdAt"
      ],
      "type": "object"
    },
    "eventTypeView": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "value": {
          "description": "The ing.opn.booking.eventType record.",
          "type": "unknown"
        }
      },
      "required": [
        "uri",
        "cid",
        "value"
      ],
      "type": "object"
    },
    "locationView": {
      "properties": {
        "kind": {
          "knownValues": [
            "videoCall",
            "phone",
            "inPerson",
            "link"
          ],
          "maxLength": 16,
          "type": "string"
        },
        "label": {
          "description": "How to show it, such as Google Meet or the address.",
          "maxLength": 2000,
          "type": "string"
        },
        "value": {
          "description": "The joining detail: a meeting link, a phone number or an address. Shown to the host and the guest only.",
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "label"
      ],
      "type": "object"
    }
  },
  "id": "ing.opn.booking.defs",
  "lexicon": 1
}
