{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Holds a time for a few minutes while the guest fills in the form, so nobody else takes it.",
      "errors": [
        {
          "name": "EventTypeNotFound"
        },
        {
          "name": "SlotUnavailable"
        },
        {
          "name": "DurationNotOffered"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "duration": {
              "maximum": 1440,
              "minimum": 1,
              "type": "integer"
            },
            "eventType": {
              "format": "at-uri",
              "type": "string"
            },
            "holder": {
              "description": "An earlier hold to move, so one guest keeps one hold.",
              "maxLength": 64,
              "type": "string"
            },
            "start": {
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "eventType",
            "start"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "holder": {
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "holder",
            "expiresAt"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ing.opn.booking.holdSlot",
  "lexicon": 1
}
