{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "Cal.com Booking",
  "description": "Embeddable booking calendar powered by Cal.com",
  "properties": {
    "username": {
      "type": "string",
      "title": "Cal.com Username",
      "description": "Your Cal.com username (e.g., 'johndoe')",
      "x-editor": "text"
    },
    "eventTypeSlug": {
      "type": "string",
      "title": "Event Type",
      "description": "The event type slug (e.g., '30min', 'consultation')",
      "x-editor": "text"
    },
    "title": {
      "type": "string",
      "title": "Widget Title",
      "description": "Title shown above the booking widget",
      "x-editor": "text"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "Optional description text",
      "x-editor": "textarea"
    },
    "weeksToShow": {
      "type": "integer",
      "title": "Weeks to Display",
      "description": "Number of weeks to show in the calendar",
      "default": 2,
      "minimum": 1,
      "maximum": 8,
      "x-editor": "number"
    },
    "showTimezone": {
      "type": "boolean",
      "title": "Show Timezone",
      "description": "Allow visitors to select their timezone",
      "default": true,
      "x-editor": "checkbox"
    },
    "captchaEnabled": {
      "type": "boolean",
      "title": "Enable captcha",
      "description": "Require visitors to solve a privacy-friendly proof-of-work captcha before booking (spam protection)",
      "default": false,
      "x-editor": "checkbox"
    }
  },
  "required": ["eventTypeSlug"]
}
