{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The device's alarms to come: one card per reminder of each occurrence up to `until` (at most 7 days ahead), with the lines the device shows and the parents it is for. Device session of the home; the device's E08 execution reads this and nothing else. Emitted event scheduleChanged tells the device to read it again.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotDevice"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cards": {
              "items": {
                "ref": "ai.newnal.illi.schedule.defs#upcomingCard",
                "type": "ref"
              },
              "type": "array"
            },
            "timezone": {
              "type": "string"
            }
          },
          "required": [
            "timezone",
            "cards"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "homeId": {
            "format": "tid",
            "type": "string"
          },
          "until": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "homeId",
          "until"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.schedule.listUpcoming",
  "lexicon": 1
}
