{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The schedule entries of the home's parents with ILLI's extras and the occurrences in the window (default: the next 31 days in the home's time zone). Members of the home; a general manager only when dataSharing allows the schedule category.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deviceSyncedAt": {
              "description": "When the home's device last read its alarm list (schedule.listUpcoming); absent until it has. An entry whose updatedAt is earlier is on the device.",
              "format": "datetime",
              "type": "string"
            },
            "entries": {
              "items": {
                "ref": "ai.newnal.illi.schedule.defs#entryView",
                "type": "ref"
              },
              "type": "array"
            },
            "timezone": {
              "type": "string"
            }
          },
          "required": [
            "timezone",
            "entries"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "fromDate": {
            "description": "Start of the window (YYYY-MM-DD, the home's zone); defaults to today. May lie in the past: occurrences of the last 30 days are kept with their acknowledgements.",
            "maxLength": 10,
            "type": "string"
          },
          "homeId": {
            "format": "tid",
            "type": "string"
          },
          "slot": {
            "description": "The parent slot, 1 or 2.",
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          },
          "toDate": {
            "description": "End of the window (YYYY-MM-DD, inclusive); defaults to 31 days after fromDate.",
            "maxLength": 10,
            "type": "string"
          }
        },
        "required": [
          "homeId"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.schedule.listEntries",
  "lexicon": 1
}
