# ai.newnal.illi.schedule.listUpcoming

> 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.

- Kind: query
- Authority: schedule.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.listUpcoming)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.listUpcoming/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.listUpcoming/analytics)

## Query (`ai.newnal.illi.schedule.listUpcoming`)

Type: query · GET

### Parameters (query string)

- `homeId` (string · tid, required)
- `until` (string · datetime, required)

### Output (application/json)

- `cards` (array, required)
  - `items` (ref)
    - Reference: `ai.newnal.illi.schedule.defs#upcomingCard`
- `timezone` (string, required)

### Errors

- `NotMember`: No description in schema.
- `NotDevice`: No description in schema.
- `HomeNotFound`: No description in schema.

## Schema

```json
{
  "$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
}
```
