{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whenmeet-me/json-schema/whenmeet-me-managed-booking-schema.json",
  "title": "ManagedBooking",
  "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/ManagedBooking",
  "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"
    },
    "eventType": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string"
            },
            "durationMin": {
              "type": "integer"
            },
            "maxDaysAhead": {
              "type": "integer"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "host": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "assignedTo": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "attendees": {
      "type": "array",
      "description": "Complete invitation roster; does not grant access to attendee calendars.",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "organizer",
              "invitee",
              "guest",
              "member"
            ]
          }
        },
        "required": [
          "email",
          "name",
          "role"
        ]
      }
    },
    "invitee": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    },
    "guests": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "conferenceUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "meetingId": {
      "type": [
        "string",
        "null"
      ]
    },
    "meetingUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "canModify": {
      "type": "boolean",
      "description": "Cancel / reschedule allowed (confirmed, not started, caller may modify)."
    }
  }
}