{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/muse-space/json-schema/muse-space-calendar-find-free-time-input-schema.json",
  "title": "calendar_find_free_time_input",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/muse-space-openapi.json#/components/schemas/calendar_find_free_time_input",
  "type": "object",
  "properties": {
    "from": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "string"
        }
      ],
      "description": "Start: a date (from its first moment in `time_zone`), or a date and time, with an offset or in `time_zone`."
    },
    "to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "string"
        }
      ],
      "description": "End, at most 31 days after `from`: a date means its first moment in `time_zone`."
    },
    "time_zone": {
      "type": "string",
      "maxLength": 64,
      "description": "The person’s IANA time zone: the clock the day’s hours and the answer are on."
    },
    "day_start": {
      "default": "08:00",
      "description": "Free time starts no earlier than this each day, HH:MM in `time_zone`.",
      "type": "string"
    },
    "day_end": {
      "default": "20:00",
      "description": "Free time ends no later than this each day, HH:MM; 24:00 for midnight.",
      "type": "string"
    },
    "min_minutes": {
      "default": 30,
      "description": "Only gaps at least this long, in minutes.",
      "type": "integer",
      "minimum": 5,
      "maximum": 720
    },
    "calendar_ids": {
      "description": "Only events in these calendars count, by id from list_calendars; omit for all.",
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 200
      }
    },
    "limit": {
      "default": 50,
      "description": "How many free spans to return at most, earliest first.",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "from",
    "to",
    "time_zone"
  ],
  "additionalProperties": false
}