{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-meeting-booking-dto-schema.json",
  "title": "MeetingBookingDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-booking-pages-api-openapi.yml#/components/schemas/MeetingBookingDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "meetingTypeId": {
      "type": "string"
    },
    "bookingMode": {
      "allOf": [
        {
          "$ref": "#/$defs/MeetingKind"
        }
      ]
    },
    "maxAttendees": {
      "type": "number"
    },
    "attendees": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MeetingAttendeeDto"
      }
    },
    "start": {
      "type": "string"
    },
    "end": {
      "type": "string"
    },
    "bookerName": {
      "type": "string"
    },
    "bookerEmail": {
      "type": "string"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/MeetingBookingStatus"
        }
      ]
    },
    "hostIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "organizerHostId": {
      "type": "string",
      "description": "The host whose calendar and mailbox hold this booking"
    },
    "needsHost": {
      "type": "boolean",
      "description": "That host's mailbox is gone: someone else must take it"
    },
    "meetingLink": {
      "type": "string"
    },
    "contactId": {
      "type": "string"
    },
    "companyId": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "responses": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "id",
    "meetingTypeId",
    "start",
    "end",
    "bookerName",
    "bookerEmail",
    "status",
    "hostIds"
  ],
  "$defs": {
    "MeetingAttendeeDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "guestOf": {
          "type": "string",
          "description": "Invited by a booker or host: the booker's id"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/MeetingAttendeeStatus"
            }
          ]
        },
        "responses": {
          "type": "object",
          "additionalProperties": true
        },
        "notes": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "email",
        "status"
      ]
    },
    "MeetingAttendeeStatus": {
      "type": "string",
      "enum": [
        "confirmed",
        "cancelled"
      ]
    },
    "MeetingBookingStatus": {
      "type": "string",
      "enum": [
        "confirmed",
        "cancelled",
        "failed"
      ]
    },
    "MeetingKind": {
      "type": "string",
      "enum": [
        "appointment",
        "event"
      ]
    }
  }
}