# ing.opn.booking.defs

- Kind: defs
- Authority: booking.opn.ing
- Lexicon: 1
- Published by [opn.ing](https://lexicon.garden/identity/did:plc:fd7yovynbzbli5i7m6tu76cl), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.defs/analytics)

## #attendeeView (`ing.opn.booking.defs#attendeeView`)

Type: object

### Properties

- `did` (string · did)
- `email` (string, required)
  - Constraints: maxLength: 320
- `name` (string)
  - Constraints: maxLength: 256
- `primary` (boolean, required): The guest who booked, rather than someone they added.
- `timeZone` (string): An IANA timezone name, such as Europe/Lisbon.
  - Constraints: maxLength: 64

## #bookingView (`ing.opn.booking.defs#bookingView`)

Type: object

### Properties

- `answers` (unknown): Answers to the event type's questions, keyed by question key.
- `attendees` (array, required)
  - `items` (ref)
    - Reference: `#attendeeView`
- `cancellationReason` (string)
  - Constraints: maxLength: 2000
- `createdAt` (string · datetime, required)
- `end` (string · datetime, required)
- `eventType` (string · at-uri, required)
- `host` (string · did, required)
- `location` (ref)
  - Reference: `#locationView`
- `notes` (string)
  - Constraints: maxLength: 10000
- `rescheduledFrom` (string): The booking's id.
  - Constraints: maxLength: 64
- `rescheduledTo` (string): The booking's id.
  - Constraints: maxLength: 64
- `start` (string · datetime, required)
- `status` (string, required)
  - Constraints: maxLength: 16, knownValues: pending | accepted | cancelled | declined
- `title` (string, required)
  - Constraints: maxLength: 1000
- `uid` (string, required): The booking's id.
  - Constraints: maxLength: 64

## #eventTypeView (`ing.opn.booking.defs#eventTypeView`)

Type: object

### Properties

- `cid` (string · cid, required)
- `uri` (string · at-uri, required)
- `value` (unknown, required): The ing.opn.booking.eventType record.

## #locationView (`ing.opn.booking.defs#locationView`)

Type: object

### Properties

- `kind` (string, required)
  - Constraints: maxLength: 16, knownValues: videoCall | phone | inPerson | link
- `label` (string, required): How to show it, such as Google Meet or the address.
  - Constraints: maxLength: 2000
- `value` (string): The joining detail: a meeting link, a phone number or an address. Shown to the host and the guest only.
  - Constraints: maxLength: 2000

## Schema

```json
{
  "$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
}
```
