{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daycal-io/json-schema/daycal-io-page-schema.json",
  "title": "Page",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daycal-io-openapi.json#/components/schemas/Page",
  "type": "object",
  "properties": {
    "handle": {
      "type": "string"
    },
    "ownerName": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    },
    "eventTypes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "duration": {
            "type": "integer",
            "description": "Minutes"
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "conferencing": {
            "type": "string",
            "enum": [
              "google-meet",
              "link",
              "none"
            ]
          }
        },
        "required": [
          "slug",
          "title",
          "description",
          "duration",
          "location",
          "conferencing"
        ]
      }
    },
    "booking": {
      "type": "object",
      "properties": {
        "note": {
          "type": "boolean"
        },
        "confirmation": {
          "type": "string"
        }
      },
      "required": [
        "note",
        "confirmation"
      ]
    },
    "footer": {
      "type": "boolean"
    },
    "turnstileSiteKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "pageId": {
      "type": "string",
      "description": "Opaque; send it back as the booking's pageId"
    }
  },
  "required": [
    "handle",
    "ownerName",
    "timezone",
    "eventTypes",
    "booking",
    "footer",
    "turnstileSiteKey",
    "pageId"
  ]
}