{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/operatornest-com/json-schema/operatornest-com-meeting-time-zone-planner-result-schema.json",
  "title": "meeting-time-zone-planner-result",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/operatornest-com-openapi.json#/components/schemas/meeting-time-zone-planner-result",
  "type": "object",
  "properties": {
    "tool": {
      "const": "meeting-time-zone-planner"
    },
    "input": {
      "$ref": "#/$defs/meeting-time-zone-planner-input"
    },
    "units": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "method": {
      "type": "string"
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "provenance": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "start": {
            "type": "integer",
            "description": "Unix epoch milliseconds."
          },
          "startUtc": {
            "type": "string",
            "format": "date-time"
          },
          "inside": {
            "type": "array",
            "items": {
              "type": "boolean"
            }
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "score": {
            "type": "number"
          }
        },
        "required": [
          "start",
          "startUtc",
          "inside",
          "labels",
          "score"
        ],
        "additionalProperties": false
      }
    },
    "overlapCount": {
      "type": "integer",
      "minimum": 0
    },
    "bestSlots": {
      "type": "array",
      "maxItems": 3,
      "items": {
        "type": "object",
        "properties": {
          "start": {
            "type": "integer",
            "description": "Unix epoch milliseconds."
          },
          "startUtc": {
            "type": "string",
            "format": "date-time"
          },
          "inside": {
            "type": "array",
            "items": {
              "type": "boolean"
            }
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "score": {
            "type": "number"
          }
        },
        "required": [
          "start",
          "startUtc",
          "inside",
          "labels",
          "score"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "tool",
    "input",
    "units",
    "method",
    "assumptions",
    "provenance",
    "rows",
    "overlapCount",
    "bestSlots"
  ],
  "additionalProperties": false,
  "$defs": {
    "meeting-time-zone-planner-input": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "date": {
          "type": "string",
          "format": "date",
          "minLength": 10,
          "maxLength": 10,
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Meeting date in the first person’s local time zone, from 2000-01-01 to 2100-12-31."
        },
        "people": {
          "type": "array",
          "minItems": 2,
          "maxItems": 8,
          "description": "Participants in display order. The first person determines the local date; all must fit a full half-hour inside 09:00–17:00.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "pattern": "\\S",
                "description": "Participant label used in the returned local-time display."
              },
              "zone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "\\S",
                "description": "IANA time zone supported by Intl.DateTimeFormat."
              }
            },
            "required": [
              "name",
              "zone"
            ]
          }
        }
      },
      "required": [
        "date",
        "people"
      ]
    }
  }
}