{
  "openapi": "3.1.1",
  "info": {
    "title": "Dayweave API",
    "version": "1.0.0",
    "summary": "Deterministic tools for people and AI agents.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://dayweave.usefulweb.app"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "Catalog of all tools",
        "responses": {
          "200": {
            "description": "Tool list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{id}": {
      "get": {
        "operationId": "getTool",
        "summary": "Definition of one tool",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "dayweave-capacity-planner",
                "dayweave-time-block-scheduler",
                "dayweave-recurrence-expander",
                "dayweave-ics-validator",
                "timefair",
                "timeslice-duration-parser"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/dayweave-capacity-planner/calculate": {
      "post": {
        "operationId": "calculateDayweaveCapacityPlanner",
        "summary": "Planned hours vs. working hours per person and day, with time zones and over-allocation warnings.",
        "description": "Lists each person’s working hours (days, hours, time zone, days away) and their planned meetings and work blocks, then shows per person and day how many hours are available, planned and still free, the load in percent, double bookings and every day that is over-allocated. Paste lines or a whole Dayweave plan.\n\nMethodology:\n- Capacity per day = length of the working hours on a working day (or the daily capacity you give), 0 on other days and on days away.\n- Planned time = the union of the person’s timed items on that local day in their own time zone; double-booked time counts once and each overlapping pair is reported. Items over midnight count on both days. All-day items do not use working time.\n- Load = planned ÷ capacity. Status: free (nothing planned), ok (\u003c 85 %), busy (85–100 %), over (\u003e 100 %, or anything planned on a day without capacity).\n- Local times are converted with the IANA time zone database of the runtime; a time in a daylight-saving gap moves forward by the gap.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "dayweave_capacity_planner",
        "x-owner-app": "dayweave",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DayweaveCapacityPlannerInput"
              },
              "examples": {
                "example1": {
                  "summary": "Product team week across three time zones",
                  "value": {
                    "people": "Ana, Europe/Berlin, Mon-Fri, 09:00-17:00\nBen, Europe/London, Mon-Fri, 08:30-16:30\nChloé, Europe/Berlin, Mon-Thu, 09:00-15:00\nDev, Asia/Kolkata, Mon-Fri, 10:00-18:30, away 2026-12-10..2026-12-11",
                    "items": "Ana, 2026-12-07, 10:00, 11:30, Sprint planning\nBen, 2026-12-07, 10:00, 11:30, Sprint planning\nChloé, 2026-12-07, 10:00, 11:30, Sprint planning\nBen, 2026-12-07, 13:00, 16:00, Checkout API\nChloé, 2026-12-08, 09:00, 12:00, Onboarding screens\nBen, 2026-12-08, 13:00, 16:30, Load test\nBen, 2026-12-08, 15:00, 16:30, Bug bash\nAna, 2026-12-08, 13:00, 17:30, Release notes\nChloé, 2026-12-09, 09:00, 6h, Accessibility fixes\nDev, 2026-12-10, 11:00, 1h, Customer call",
                    "from": "2026-12-07",
                    "to": "2026-12-11"
                  }
                },
                "example2": {
                  "summary": "Part-timer with a 4-hour daily capacity",
                  "value": {
                    "people": "Sam, Europe/Paris, Mon-Fri, 08:00-18:00, 4h",
                    "items": "Sam, 2026-12-07, 09:00, 3h, Reports\nSam, 2026-12-08, 09:00, 5h, Workshop\nSam, 2026-12-09, 14:00, 1h, Call",
                    "from": "2026-12-07",
                    "to": "2026-12-09"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DayweaveCapacityPlannerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/dayweave-time-block-scheduler/calculate": {
      "post": {
        "operationId": "calculateDayweaveTimeBlockScheduler",
        "summary": "Fit your tasks into the free time around your meetings: deadline first, split into blocks.",
        "description": "Give your working hours, the appointments you already have and a list of tasks with estimates, due dates and priorities: the scheduler places the tasks as time blocks into your free working time, earliest deadline first, optionally split into chunks of a minimum length with a buffer around meetings, and says what does not fit or ends after its due date.\n\nMethodology:\n- Free time = working hours on working days minus existing appointments (each widened by the buffer), in your time zone, from the first day (and the “not before” time) on.\n- Order: earliest due date first (tasks without a due date last), then priority (high first), then the longer task, then input order. The order is fixed, so the same input always gives the same plan.\n- Each task takes the earliest free gaps. With splitting, a task fills gaps of at least the minimum block length until its estimate is used up; without splitting it waits for the first gap long enough for the whole task. Blocks start on the chosen grid.\n- A block that ends after the due day is marked late; with “also plan after the due date” switched off such blocks are not placed and the task is listed as not scheduled.\n- This is a greedy earliest-deadline-first plan, not an optimum: it never moves existing appointments and does not reorder already placed tasks.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "dayweave_time_block_scheduler",
        "x-owner-app": "dayweave",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DayweaveTimeBlockSchedulerInput"
              },
              "examples": {
                "example1": {
                  "summary": "A week of tasks around stand-ups and meetings",
                  "value": {
                    "tasks": "Write migration guide, 2h, 2026-12-09, high\nAccessibility fixes, 3h, 2026-12-10, high\nUpdate dependencies, 1h30, -, normal\nCustomer interview notes, 45m, 2026-12-08, normal\nExpense report, 30m, 2026-12-11, low",
                    "busy": "2026-12-07, 09:30, 09:45, Stand-up\n2026-12-07, 10:00, 11:30, Sprint planning\n2026-12-08, 09:30, 09:45, Stand-up\n2026-12-08, 13:00, 15:00, Workshop\n2026-12-09, 09:30, 09:45, Stand-up\n2026-12-09, 14:00, 15:00, Design review",
                    "from": "2026-12-07"
                  }
                },
                "example2": {
                  "summary": "No splitting, 10-minute buffer, half-hour grid",
                  "value": {
                    "tasks": "Write migration guide, 2h, 2026-12-09, high\nAccessibility fixes, 3h, 2026-12-10, high\nUpdate dependencies, 1h30, -, normal\nCustomer interview notes, 45m, 2026-12-08, normal\nExpense report, 30m, 2026-12-11, low",
                    "busy": "2026-12-07, 09:30, 09:45, Stand-up\n2026-12-07, 10:00, 11:30, Sprint planning\n2026-12-08, 09:30, 09:45, Stand-up\n2026-12-08, 13:00, 15:00, Workshop\n2026-12-09, 09:30, 09:45, Stand-up\n2026-12-09, 14:00, 15:00, Design review",
                    "from": "2026-12-07",
                    "minChunkMinutes": 0,
                    "bufferMinutes": 10,
                    "slotMinutes": "30"
                  }
                },
                "example3": {
                  "summary": "Too much for two days",
                  "value": {
                    "tasks": "Report, 8h, 2026-12-08, high\nSlides, 4h, 2026-12-08, normal\nReview, 3h, -, low",
                    "busy": "2026-12-07, 12:00, 13:00, Lunch\n2026-12-08, 12:00, 13:00, Lunch",
                    "from": "2026-12-07",
                    "daysAhead": 2,
                    "allowAfterDue": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DayweaveTimeBlockSchedulerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/dayweave-recurrence-expander/calculate": {
      "post": {
        "operationId": "calculateDayweaveRecurrenceExpander",
        "summary": "List the dates of an iCalendar RRULE in any time zone, with daylight saving and exceptions.",
        "description": "Expands a recurrence rule from a calendar (RRULE, RFC 5545) — daily, weekly, monthly or yearly with INTERVAL, COUNT, UNTIL, BYDAY (also “last Friday”), BYMONTH, BYMONTHDAY and BYSETPOS — from a local start time in an IANA time zone, skips exception dates and lists every occurrence in local time and UTC with the offset, plus the rule in plain English.\n\nMethodology:\n- The rule is expanded on local calendar days (RFC 5545 §3.3.10): the period of FREQ × INTERVAL is enumerated, then BYMONTH, BYMONTHDAY and BYDAY (ordinals like 1MO or −1FR count within the month, or the year for yearly rules) filter days, BYSETPOS picks positions inside each period, COUNT and UNTIL end the series. The first start always counts as the first occurrence.\n- Every occurrence keeps the same local wall-clock time in the chosen zone, so its UTC time moves when daylight saving starts or ends. A local time that does not exist (spring-forward gap) moves forward by the gap; an ambiguous one (fall-back) takes the first of the two moments.\n- UNTIL with a time ending in Z is a UTC moment; without Z (or date-only, then the whole day) it is read in the series’ time zone. Exception dates remove occurrences with exactly that local start.\n- Not supported: BYHOUR/BYMINUTE/BYSECOND, BYWEEKNO, BYYEARDAY and sub-daily frequencies; at most 20 years after the first start are expanded.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "dayweave_recurrence_expander",
        "x-owner-app": "dayweave",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DayweaveRecurrenceExpanderInput"
              },
              "examples": {
                "example1": {
                  "summary": "Last Friday of each month across the clock change",
                  "value": {
                    "rrule": "FREQ=MONTHLY;BYDAY=-1FR;COUNT=6",
                    "start": "2026-09-25 16:00",
                    "timeZone": "Europe/Berlin"
                  }
                },
                "example2": {
                  "summary": "Every other week Monday and Thursday, with a skipped date",
                  "value": {
                    "rrule": "FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,TH;UNTIL=20270228",
                    "start": "2026-12-07 09:30",
                    "duration": "30m",
                    "timeZone": "America/New_York",
                    "exdates": "2026-12-21"
                  }
                },
                "example3": {
                  "summary": "Last working day of the month",
                  "value": {
                    "rrule": "FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1;COUNT=12",
                    "start": "2026-12-31 17:00",
                    "duration": "15m",
                    "timeZone": "Asia/Tokyo"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DayweaveRecurrenceExpanderResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/dayweave-ics-validator/calculate": {
      "post": {
        "operationId": "calculateDayweaveIcsValidator",
        "summary": "Check an .ics calendar file against RFC 5545 and preview the next dates of every event.",
        "description": "Paste the text of an .ics file: the validator checks its structure (BEGIN/END, content lines, folding, CRLF), required properties (VERSION, PRODID, UID, DTSTAMP), duplicates, time zones without VTIMEZONE, dates, durations and recurrence rules, and lists every event with its time zone and next occurrences — the same reader Dayweave uses for its calendar import.\n\nMethodology:\n- Lines are unfolded (a line starting with a space or tab continues the previous one) and split into NAME;PARAM=value:VALUE content lines; components must nest with matching BEGIN/END.\n- Errors: missing VCALENDAR, VERSION:2.0 or PRODID, VEVENT without UID or DTSTAMP, single-value properties given twice, unreadable dates, DTEND before DTSTART, DTEND together with DURATION, recurrence rules outside the supported subset. Warnings: LF-only line ends, lines over 75 octets, TZIDs without VTIMEZONE, repeated UIDs, cancelled events and changed single occurrences (RECURRENCE-ID).\n- Times with Z are UTC; TZID times use that IANA zone (or the X-LIC-LOCATION of a VTIMEZONE with a Windows name); floating times are read in the zone you choose. The preview expands each event with the Dayweave recurrence engine.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "dayweave_ics_validator",
        "x-owner-app": "dayweave",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DayweaveIcsValidatorInput"
              },
              "examples": {
                "example1": {
                  "summary": "Team calendar with a repeating stand-up and a missing DTSTAMP",
                  "value": {
                    "ics": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Example//Team calendar//EN\r\nBEGIN:VEVENT\r\nUID:standup-1@example.org\r\nDTSTAMP:20261201T080000Z\r\nDTSTART;TZID=Europe/Berlin:20261207T093000\r\nDTEND;TZID=Europe/Berlin:20261207T094500\r\nRRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR\r\nEXDATE;TZID=Europe/Berlin:20261224T093000\r\nSUMMARY:Daily stand-up\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:launch@example.org\r\nDTSTART:20261210T140000Z\r\nDURATION:PT2H\r\nSUMMARY:Launch review\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:holiday@example.org\r\nDTSTAMP:20261201T080000Z\r\nDTSTART;VALUE=DATE:20261225\r\nSUMMARY:Office closed\r\nEND:VEVENT\r\nEND:VCALENDAR"
                  }
                },
                "example2": {
                  "summary": "Broken file: unclosed event and an unsupported rule",
                  "value": {
                    "ics": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//x//y//EN\r\nBEGIN:VEVENT\r\nUID:a\r\nDTSTAMP:20261201T000000Z\r\nDTSTART:20261207T090000Z\r\nRRULE:FREQ=HOURLY\r\nSUMMARY:Ping\r\nEND:VCALENDAR"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DayweaveIcsValidatorResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/timefair/calculate": {
      "post": {
        "operationId": "calculateTimefair",
        "summary": "Find fair meeting times across time zones, with DST-exact local times and rotation.",
        "description": "Enter participants with their IANA time zone and working hours. TimeFair scores every candidate slot by how far it falls outside each person’s working day (extra penalty at night), ranks slots by total and worst-case inconvenience, and builds a rotation plan for recurring meetings so the pain is shared. Exports an .ics calendar file.\n\nMethodology:\n- Time zones are IANA names validated with Intl.DateTimeFormat; every UTC↔local conversion uses the runtime’s tz database, so DST changes and +05:30 / +05:45 offsets are exact for each individual minute.\n- Candidate slots start at the organiser’s local midnight of the first day and step by the chosen granularity (in UTC) until the last slot ends before midnight after the last day.\n- Inconvenience per participant = weight × (distance-weighted minutes outside the working window + 2 × minutes outside the window between 22:00 and 07:00 local) ÷ 60. Distance weighting: a minute in the first hour past the window’s nearest edge counts 1, in the second hour 1.5, third 2, fourth 2.5, and 4 hours or more past the edge 3. So 17:30–18:15 after a 17:30 end costs 0.75 points, while 21:15–22:00 costs 2.125 points. A day that is not a working day counts entirely as outside at the top weight (3 points per hour, plus the night penalty).\n- Overnight windows (end earlier than start) belong to the day they start on; e.g. 22:00–06:00 on a Friday covers Friday 22:00 to Saturday 06:00.\n- Fairness cost of a slot = total + 1 × worst individual inconvenience + 0.5 × standard deviation (population). Lower is better; ties go to the earliest slot.\n- Rotation (deterministic greedy): the pool holds the lowest-cost slot of each distinct organiser-local wall time (up to 48 wall times, so the plan can move between genuinely different times); each occurrence repeats the slot’s organiser-local wall time every N days, re-scored for that exact date (DST-aware). For each occurrence the slot minimising the worst cumulative burden, then the total cumulative burden, then its own cost, then start time, is picked. The burden therefore moves to whoever has carried least so far; someone stays at 0 only when every alternative would cost the others more than it saves.\n- The .ics file uses UTC (Z) times, RFC 5545 escaping and 75-octet line folding; UID is a SHA-256 hash of the slot, participants and title (stable across re-imports); DTSTAMP is the computation time.",
        "tags": [
          "developer"
        ],
        "x-mcp-tool": "timefair",
        "x-owner-app": "opsdeck",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimefairInput"
              },
              "examples": {
                "example1": {
                  "summary": "Berlin, New York, Bengaluru, Kathmandu",
                  "value": {
                    "title": "Platform sync",
                    "startDate": "2026-10-19",
                    "days": 5,
                    "durationMinutes": 60,
                    "granularity": "30",
                    "recurrences": 4,
                    "participants": [
                      {
                        "name": "Anna",
                        "timeZone": "Europe/Berlin",
                        "workStart": "09:00",
                        "workEnd": "17:30"
                      },
                      {
                        "name": "Ben",
                        "timeZone": "America/New_York",
                        "workStart": "09:00",
                        "workEnd": "17:00"
                      },
                      {
                        "name": "Chitra",
                        "timeZone": "Asia/Kolkata",
                        "workStart": "10:00",
                        "workEnd": "18:30"
                      },
                      {
                        "name": "Dev",
                        "timeZone": "Asia/Kathmandu",
                        "workStart": "10:00",
                        "workEnd": "17:00"
                      }
                    ]
                  }
                },
                "example2": {
                  "summary": "San Francisco, London, Sydney (no comfortable slot → rotation)",
                  "value": {
                    "startDate": "2026-11-02",
                    "days": 5,
                    "durationMinutes": 45,
                    "granularity": "15",
                    "recurrences": 6,
                    "participants": [
                      {
                        "name": "Sam",
                        "timeZone": "America/Los_Angeles",
                        "workStart": "08:00",
                        "workEnd": "17:00"
                      },
                      {
                        "name": "Lea",
                        "timeZone": "Europe/London",
                        "workStart": "09:00",
                        "workEnd": "17:30"
                      },
                      {
                        "name": "Kai",
                        "timeZone": "Australia/Sydney",
                        "workStart": "08:30",
                        "workEnd": "17:00"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimefairResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/timeslice-duration-parser/calculate": {
      "post": {
        "operationId": "calculateTimesliceDurationParser",
        "summary": "Turn 1h30, 90m, 1:30, 9-10:30 or 9am to 1pm into h:mm, decimal hours and ISO 8601.",
        "description": "Reads durations and time ranges the way people type them — 1h30, 1 hour 30 minutes, 90m, 1:30, 1,5 h, PT1H30M, 9-10:30, 9am to 1pm, 22:00-02:00, 14:00 + 45m — one per line, and returns each as h:mm, decimal hours and an ISO 8601 duration, with the total and how every line was read.\n\nMethodology:\n- Each line is tried as a time range first (start–end, “to”, “until”, “bis”, or start + duration), then as a duration, then as a single time of day. An end at or before the start means the range ends on the next day.\n- Durations: number + unit tokens (d, h, hr, hour, min, m, s, also German Std/Min) from large to small; a trailing bare number after hours means minutes (1h30); h:mm and h:mm:ss; ISO 8601 PnDTnHnMnS. A bare number up to 10 counts as hours, a larger whole number as minutes.\n- Times: 9, 930, 9:30, 9.30, 9h30, 21h, 9:30 pm, 12 am = 00:00, 12 pm = noon, noon and midnight; 24:00 is the end of the day. A meridiem on the end time also applies to the start when the start has none (9-11am).\n- Decimal hours are rounded to two places for display; totals use exact seconds. Optional rounding applies to each line before the total.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "timeslice_duration_parser",
        "x-owner-app": "timeslice",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimesliceDurationParserInput"
              },
              "examples": {
                "example1": {
                  "summary": "Mixed ways of writing time",
                  "value": {
                    "lines": "1h30\n90m\n2:15\n1,5 h\n9-10:30\n9am to 1pm\n22:00-02:00\n14:00 + 45m"
                  }
                },
                "example2": {
                  "summary": "A paper time card in 12-hour times",
                  "value": {
                    "lines": "8:30am to 12pm\n12:45pm-5:15pm\n6pm for 1h15",
                    "clock": "12"
                  }
                },
                "example3": {
                  "summary": "Tenths of an hour for billing",
                  "value": {
                    "lines": "17m\n1h04\n2 hours 41 minutes\n0:52",
                    "roundMinutes": "6"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimesliceDurationParserResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows": {
      "get": {
        "operationId": "listWorkflows",
        "summary": "Multi-tool workflows",
        "responses": {
          "200": {
            "description": "Workflow list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "DayweaveCapacityPlannerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "people": {
            "title": "People (one per line: name, time zone, days, hours[, daily capacity][, away from..to])",
            "description": "Example: Ana, Europe/Berlin, Mon-Fri, 09:00-17:00. Days like Mon-Fri, Tue-Sat or Mon+Wed+Fri. An optional daily capacity such as 6h replaces the length of the hours.",
            "type": "string",
            "maxLength": 20000,
            "default": "Ana, Europe/Berlin, Mon-Fri, 09:00-17:00\nBen, Europe/London, Mon-Fri, 08:30-16:30\nChloé, Europe/Berlin, Mon-Thu, 09:00-15:00\nDev, Asia/Kolkata, Mon-Fri, 10:00-18:30, away 2026-12-10..2026-12-11"
          },
          "items": {
            "title": "Planned items (one per line: person, date, start, end or duration, title)",
            "description": "Times are read in that person’s time zone. The end can be a time (16:30) or a duration (1h30, 90m). An end before the start runs past midnight.",
            "type": "string",
            "maxLength": 400000,
            "default": "Ana, 2026-12-07, 10:00, 11:30, Sprint planning\nBen, 2026-12-07, 10:00, 11:30, Sprint planning\nChloé, 2026-12-07, 10:00, 11:30, Sprint planning\nBen, 2026-12-07, 13:00, 16:00, Checkout API\nChloé, 2026-12-08, 09:00, 12:00, Onboarding screens\nBen, 2026-12-08, 13:00, 16:30, Load test\nBen, 2026-12-08, 15:00, 16:30, Bug bash\nAna, 2026-12-08, 13:00, 17:30, Release notes\nChloé, 2026-12-09, 09:00, 6h, Accessibility fixes\nDev, 2026-12-10, 11:00, 1h, Customer call"
          },
          "from": {
            "title": "From (YYYY-MM-DD)",
            "type": "string",
            "maxLength": 10,
            "default": "2026-12-07"
          },
          "to": {
            "title": "To (YYYY-MM-DD, at most 93 days)",
            "type": "string",
            "maxLength": 10,
            "default": "2026-12-11"
          },
          "timeZone": {
            "title": "Time zone for people without one",
            "type": "string",
            "maxLength": 64,
            "default": "Europe/Berlin"
          },
          "plan": {
            "title": "Or a Dayweave plan (JSON, replaces the lines above)",
            "description": "A .dayweave.json file: its people, events and blocks (with repeats) are used.",
            "type": "string",
            "maxLength": 2000000,
            "default": ""
          }
        },
        "required": []
      },
      "DayweaveCapacityPlannerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "DayweaveTimeBlockSchedulerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tasks": {
            "title": "Tasks (one per line: title, estimate, due date or -, priority)",
            "description": "Estimates like 2h, 1h30, 45m. Priority high, normal or low. Tasks are placed by due date, then priority, then longest first.",
            "type": "string",
            "maxLength": 60000,
            "default": "Write migration guide, 2h, 2026-12-09, high\nAccessibility fixes, 3h, 2026-12-10, high\nUpdate dependencies, 1h30, -, normal\nCustomer interview notes, 45m, 2026-12-08, normal\nExpense report, 30m, 2026-12-11, low"
          },
          "busy": {
            "title": "Existing appointments (one per line: date, start, end or duration, title)",
            "type": "string",
            "maxLength": 200000,
            "default": "2026-12-07, 09:30, 09:45, Stand-up\n2026-12-07, 10:00, 11:30, Sprint planning\n2026-12-08, 09:30, 09:45, Stand-up\n2026-12-08, 13:00, 15:00, Workshop\n2026-12-09, 09:30, 09:45, Stand-up\n2026-12-09, 14:00, 15:00, Design review"
          },
          "from": {
            "title": "Plan from (YYYY-MM-DD)",
            "type": "string",
            "maxLength": 10,
            "default": "2026-12-07"
          },
          "daysAhead": {
            "title": "Days to plan",
            "type": "number",
            "minimum": 1,
            "maximum": 62,
            "default": 5
          },
          "days": {
            "title": "Working days",
            "type": "string",
            "maxLength": 40,
            "default": "Mon-Fri"
          },
          "hours": {
            "title": "Working hours",
            "type": "string",
            "maxLength": 20,
            "default": "09:00-17:00"
          },
          "timeZone": {
            "title": "Time zone",
            "type": "string",
            "maxLength": 64,
            "default": "Europe/Berlin"
          },
          "minChunkMinutes": {
            "title": "Split tasks into blocks of at least (minutes, 0 = never split)",
            "type": "number",
            "minimum": 0,
            "maximum": 480,
            "default": 30
          },
          "bufferMinutes": {
            "title": "Buffer around appointments (minutes)",
            "type": "number",
            "minimum": 0,
            "maximum": 120,
            "default": 0
          },
          "slotMinutes": {
            "title": "Blocks start on a grid of",
            "type": "string",
            "enum": [
              "5",
              "15",
              "30",
              "60"
            ],
            "default": "15"
          },
          "allowAfterDue": {
            "title": "Also plan blocks after the due date (marked late)",
            "type": "boolean",
            "default": true
          },
          "notBefore": {
            "title": "Not before (HH:MM on the first day, optional)",
            "type": "string",
            "maxLength": 5,
            "default": ""
          }
        },
        "required": []
      },
      "DayweaveTimeBlockSchedulerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "DayweaveRecurrenceExpanderInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "rrule": {
            "title": "Rule (RRULE)",
            "description": "Example: FREQ=WEEKLY;BYDAY=MO,WE;UNTIL=20270331 or FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1 (last working day).",
            "type": "string",
            "maxLength": 300,
            "default": "FREQ=MONTHLY;BYDAY=-1FR;COUNT=6"
          },
          "start": {
            "title": "First start (YYYY-MM-DD HH:MM, local time)",
            "type": "string",
            "maxLength": 16,
            "default": "2026-09-25 16:00"
          },
          "duration": {
            "title": "Duration",
            "type": "string",
            "maxLength": 20,
            "default": "1h"
          },
          "timeZone": {
            "title": "Time zone (IANA)",
            "type": "string",
            "maxLength": 64,
            "default": "Europe/Berlin"
          },
          "exdates": {
            "title": "Skip these starts (one per line, YYYY-MM-DD or YYYY-MM-DD HH:MM)",
            "type": "string",
            "maxLength": 6000,
            "default": ""
          },
          "from": {
            "title": "Show from (YYYY-MM-DD, empty = first start)",
            "type": "string",
            "maxLength": 10,
            "default": ""
          },
          "limit": {
            "title": "Show at most",
            "type": "number",
            "minimum": 1,
            "maximum": 500,
            "default": 20
          }
        },
        "required": []
      },
      "DayweaveRecurrenceExpanderResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "DayweaveIcsValidatorInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ics": {
            "title": "Calendar file text (.ics)",
            "type": "string",
            "maxLength": 2000000,
            "default": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Example//Team calendar//EN\r\nBEGIN:VEVENT\r\nUID:standup-1@example.org\r\nDTSTAMP:20261201T080000Z\r\nDTSTART;TZID=Europe/Berlin:20261207T093000\r\nDTEND;TZID=Europe/Berlin:20261207T094500\r\nRRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR\r\nEXDATE;TZID=Europe/Berlin:20261224T093000\r\nSUMMARY:Daily stand-up\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:launch@example.org\r\nDTSTART:20261210T140000Z\r\nDURATION:PT2H\r\nSUMMARY:Launch review\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:holiday@example.org\r\nDTSTAMP:20261201T080000Z\r\nDTSTART;VALUE=DATE:20261225\r\nSUMMARY:Office closed\r\nEND:VEVENT\r\nEND:VCALENDAR"
          },
          "timeZone": {
            "title": "Time zone for floating times and the preview",
            "type": "string",
            "maxLength": 64,
            "default": "Europe/Berlin"
          },
          "from": {
            "title": "Preview occurrences from (YYYY-MM-DD)",
            "type": "string",
            "maxLength": 10,
            "default": "2026-12-07"
          },
          "nextCount": {
            "title": "Occurrences per event",
            "type": "number",
            "minimum": 1,
            "maximum": 10,
            "default": 3
          }
        },
        "required": []
      },
      "DayweaveIcsValidatorResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "TimefairInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "title": "Meeting title",
            "type": "string",
            "maxLength": 120,
            "default": "Team meeting"
          },
          "participants": {
            "title": "Participants",
            "description": "IANA time zone such as Europe/Berlin, America/New_York, Asia/Kolkata. Work end earlier than start means an overnight shift. The first participant is the organiser (date range uses their calendar).",
            "type": "array",
            "minItems": 2,
            "maxItems": 20,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "title": "Name",
                  "type": "string",
                  "maxLength": 80
                },
                "timeZone": {
                  "title": "Time zone",
                  "type": "string",
                  "maxLength": 64
                },
                "workStart": {
                  "title": "Work start",
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                  "default": "09:00"
                },
                "workEnd": {
                  "title": "Work end",
                  "type": "string",
                  "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                  "default": "17:00"
                },
                "weight": {
                  "title": "Weight",
                  "type": "number",
                  "minimum": 0.1,
                  "maximum": 10,
                  "default": 1
                }
              },
              "required": [
                "name",
                "timeZone"
              ]
            }
          },
          "startDate": {
            "title": "First day",
            "description": "In the organiser’s time zone. Defaults to today (UTC date).",
            "type": "string",
            "format": "date"
          },
          "days": {
            "title": "Number of days",
            "type": "integer",
            "minimum": 1,
            "maximum": 14,
            "default": 5
          },
          "durationMinutes": {
            "title": "Meeting length",
            "type": "integer",
            "minimum": 15,
            "maximum": 480,
            "default": 60,
            "x-unit": "min"
          },
          "granularity": {
            "title": "Slot granularity",
            "type": "string",
            "enum": [
              "15",
              "30",
              "60"
            ],
            "default": "30"
          },
          "workdays": {
            "title": "Working days (local to each participant)",
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sun",
                "mon",
                "tue",
                "wed",
                "thu",
                "fri",
                "sat"
              ]
            },
            "default": [
              "mon",
              "tue",
              "wed",
              "thu",
              "fri"
            ]
          },
          "recurrences": {
            "title": "Occurrences to rotate",
            "type": "integer",
            "minimum": 1,
            "maximum": 12,
            "default": 4
          },
          "intervalDays": {
            "title": "Repeat every",
            "type": "integer",
            "minimum": 1,
            "maximum": 28,
            "default": 7,
            "x-unit": "days"
          }
        },
        "required": [
          "participants"
        ]
      },
      "TimefairResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "organizerTimeZone",
              "rangeStartUtc",
              "rangeEndUtc",
              "durationMinutes",
              "granularityMinutes",
              "candidatesEvaluated",
              "participants",
              "bestSlots",
              "rotation",
              "rotationTotals",
              "chosen"
            ],
            "properties": {
              "organizerTimeZone": {
                "type": "string"
              },
              "rangeStartUtc": {
                "type": "string",
                "format": "date-time"
              },
              "rangeEndUtc": {
                "type": "string",
                "format": "date-time"
              },
              "durationMinutes": {
                "type": "integer"
              },
              "granularityMinutes": {
                "type": "integer"
              },
              "candidatesEvaluated": {
                "type": "integer",
                "minimum": 1
              },
              "participants": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "timeZone",
                    "workStart",
                    "workEnd",
                    "overnight",
                    "weight"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "timeZone": {
                      "type": "string"
                    },
                    "workStart": {
                      "type": "string"
                    },
                    "workEnd": {
                      "type": "string"
                    },
                    "overnight": {
                      "type": "boolean"
                    },
                    "weight": {
                      "type": "number"
                    }
                  }
                }
              },
              "bestSlots": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "rank",
                    "startUtc",
                    "endUtc",
                    "cost",
                    "totalInconvenience",
                    "maxInconvenience",
                    "stdDevInconvenience",
                    "local"
                  ],
                  "properties": {
                    "rank": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "startUtc": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "endUtc": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "cost": {
                      "type": "number",
                      "minimum": 0
                    },
                    "totalInconvenience": {
                      "type": "number",
                      "minimum": 0
                    },
                    "maxInconvenience": {
                      "type": "number",
                      "minimum": 0
                    },
                    "stdDevInconvenience": {
                      "type": "number",
                      "minimum": 0
                    },
                    "local": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "name",
                          "timeZone",
                          "localStart",
                          "localEnd",
                          "utcOffset",
                          "weekday",
                          "inconvenience",
                          "outsideMinutes",
                          "nightMinutes"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "timeZone": {
                            "type": "string"
                          },
                          "localStart": {
                            "type": "string",
                            "description": "Local wall time YYYY-MM-DDTHH:MM"
                          },
                          "localEnd": {
                            "type": "string"
                          },
                          "utcOffset": {
                            "type": "string",
                            "pattern": "^[+-]\\d{2}:\\d{2}$"
                          },
                          "weekday": {
                            "type": "string"
                          },
                          "inconvenience": {
                            "type": "number",
                            "minimum": 0
                          },
                          "outsideMinutes": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "nightMinutes": {
                            "type": "integer",
                            "minimum": 0
                          }
                        }
                      }
                    }
                  }
                }
              },
              "rotation": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "occurrence",
                    "startUtc",
                    "endUtc",
                    "local",
                    "cumulative"
                  ],
                  "properties": {
                    "occurrence": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "startUtc": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "endUtc": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "local": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "name",
                          "timeZone",
                          "localStart",
                          "localEnd",
                          "utcOffset",
                          "weekday",
                          "inconvenience",
                          "outsideMinutes",
                          "nightMinutes"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "timeZone": {
                            "type": "string"
                          },
                          "localStart": {
                            "type": "string",
                            "description": "Local wall time YYYY-MM-DDTHH:MM"
                          },
                          "localEnd": {
                            "type": "string"
                          },
                          "utcOffset": {
                            "type": "string",
                            "pattern": "^[+-]\\d{2}:\\d{2}$"
                          },
                          "weekday": {
                            "type": "string"
                          },
                          "inconvenience": {
                            "type": "number",
                            "minimum": 0
                          },
                          "outsideMinutes": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "nightMinutes": {
                            "type": "integer",
                            "minimum": 0
                          }
                        }
                      }
                    },
                    "cumulative": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "name",
                          "total"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "total": {
                            "type": "number"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "rotationTotals": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "total"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              },
              "chosen": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "startUtc",
                  "endUtc"
                ],
                "properties": {
                  "startUtc": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "endUtc": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "TimesliceDurationParserInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "lines": {
            "title": "Durations or time ranges (one per line)",
            "description": "Durations: 1h30, 1h 30m, 90m, 1:30, 1.5 (a bare number up to 10 is hours, larger whole numbers are minutes), PT1H30M. Ranges: 9-10:30, 9:00–17:30, 9am to 1pm, 14:00 + 45m.",
            "type": "string",
            "maxLength": 20000,
            "default": "1h30\n90m\n2:15\n1,5 h\n9-10:30\n9am to 1pm\n22:00-02:00\n14:00 + 45m"
          },
          "clock": {
            "title": "Show times as",
            "type": "string",
            "enum": [
              "24",
              "12"
            ],
            "default": "24"
          },
          "roundMinutes": {
            "title": "Round each line to",
            "type": "string",
            "enum": [
              "0",
              "5",
              "6",
              "15",
              "30"
            ],
            "default": "0"
          }
        },
        "required": []
      },
      "TimesliceDurationParserResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}