{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whenmeet-me/json-schema/whenmeet-me-host-booking-schema.json",
  "title": "HostBooking",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/whenmeet-me-api-openapi.json#/components/schemas/HostBooking",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "confirmed",
        "cancelled"
      ]
    },
    "startsAt": {
      "type": "integer",
      "description": "unix ms"
    },
    "endsAt": {
      "type": "integer",
      "description": "unix ms"
    },
    "eventTitle": {
      "type": "string"
    },
    "eventTypeId": {
      "type": [
        "string",
        "null"
      ]
    },
    "invitee": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    },
    "guests": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "answers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "answer": {
            "type": "string"
          }
        }
      }
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "assignedTo": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "meetingId": {
      "type": [
        "string",
        "null"
      ]
    },
    "meetingUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "cancelReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "cancelledBy": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "invitee",
        "host",
        null
      ]
    },
    "createdAt": {
      "type": "integer",
      "description": "unix ms"
    },
    "isOwner": {
      "type": "boolean"
    },
    "canModify": {
      "type": "boolean",
      "description": "Owner, organizer or the \"any\" assignee: may cancel / reschedule. An \"all\" teammate only sees it."
    }
  }
}