# ai.newnal.illi.schedule.defs

- Kind: defs
- 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.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.defs/analytics)

## #alarmView (`ai.newnal.illi.schedule.defs#alarmView`)

Type: object

### Properties

- `acknowledgedAt` (string · datetime)
- `alarmId` (string, required)
- `at` (string · datetime, required)
- `offset` (string, required): The reminder's ISO 8601 duration before the start; PT0S is the start.

## #category (`ai.newnal.illi.schedule.defs#category`)

Type: string

The platform's schedule category token for the seven ILLI entry types: medication 복약, birthday 생일, anniversary 기념일, family_event 가족행사, medical_visit 병원, appointment 기타 약속, routine 생활 알람.

Constraints: knownValues: medication | birthday | anniversary | family_event | medical_visit | appointment | routine

## #entryView (`ai.newnal.illi.schedule.defs#entryView`)

Type: object

### Properties

- `category` (ref, required)
  - Reference: `#category`
- `cid` (string · cid, required)
- `description` (string)
- `grade` (ref, required)
  - Reference: `#grade`
- `group` (string)
- `imageUrl` (string)
- `location` (string)
- `nextOccurrences` (array, required)
  - `items` (ref)
    - Reference: `#occurrenceView`
- `recurrenceRule` (string)
- `relatedRecords` (array)
  - `items` (string · at-uri)
- `reminderTime` (string)
  - Constraints: maxLength: 5
- `reminders` (array, required): ISO 8601 durations before the start.
  - `items` (string)
- `rkey` (string · record-key, required)
- `slot` (integer, required): The parent slot, 1 or 2.
  - Constraints: minimum: 1, maximum: 2
- `template` (ref, required)
  - Reference: `#template`
- `time` (ref, required)
  - Reference: `#time`
- `title` (string, required): The schedule entry's eventName, the completed sentence.
- `updatedAt` (string · datetime): When the entry was last changed by the family app; later than listEntries.deviceSyncedAt means the device has not read it yet.
- `uri` (string · at-uri, required)

## #grade (`ai.newnal.illi.schedule.defs#grade`)

Type: string

Constraints: knownValues: priority | normal | none

## #occurrenceView (`ai.newnal.illi.schedule.defs#occurrenceView`)

Type: object

### Properties

- `alarms` (array, required)
  - `items` (ref)
    - Reference: `#alarmView`
- `occurrenceId` (string, required)
- `startAt` (string · datetime, required)

## #template (`ai.newnal.illi.schedule.defs#template`)

Type: object

### Properties

- `blank` (string, required)
  - Constraints: maxLength: 600, maxGraphemes: 60
- `category` (ref, required)
  - Reference: `#category`

## #time (`ai.newnal.illi.schedule.defs#time`)

Type: object

### Properties

- `pointAt` (string · datetime, required)
- `precision` (string): day for a date-only entry (birthday, anniversary); the reminders then fire at reminderTime.
  - Constraints: knownValues: minute | day
- `timezone` (string)
  - Constraints: maxLength: 64

## #upcomingCard (`ai.newnal.illi.schedule.defs#upcomingCard`)

Type: object

### Properties

- `acknowledgedAt` (string · datetime)
- `alarmId` (string, required)
- `at` (string · datetime, required)
- `category` (ref, required)
  - Reference: `#category`
- `dateLine` (string)
- `extraLines` (array): Place, note and guidance lines, only those entered.
  - `items` (string)
- `grade` (ref, required)
  - Reference: `#grade`
- `imageUrl` (string)
- `occurrenceId` (string, required)
- `slots` (array, required): The parents the entry is for.
  - `items` (integer): The parent slot, 1 or 2.
    - Constraints: minimum: 1, maximum: 2
- `template` (ref): The category and the blank the guardian typed, for a device that composes its own wording.
  - Reference: `#template`
- `title` (string, required): The card's title line for this alarm, composed by the Service Agent Node from the category's sentence, the blank and the reminder offset (feature spec A-E04-18, ILLI 표시): before the start "혈압약 드실 시간까지 10분 남았어요", at the start "혈압약 드실 시간이에요".

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "alarmView": {
      "properties": {
        "acknowledgedAt": {
          "format": "datetime",
          "type": "string"
        },
        "alarmId": {
          "type": "string"
        },
        "at": {
          "format": "datetime",
          "type": "string"
        },
        "offset": {
          "description": "The reminder's ISO 8601 duration before the start; PT0S is the start.",
          "type": "string"
        }
      },
      "required": [
        "alarmId",
        "at",
        "offset"
      ],
      "type": "object"
    },
    "category": {
      "description": "The platform's schedule category token for the seven ILLI entry types: medication 복약, birthday 생일, anniversary 기념일, family_event 가족행사, medical_visit 병원, appointment 기타 약속, routine 생활 알람.",
      "knownValues": [
        "medication",
        "birthday",
        "anniversary",
        "family_event",
        "medical_visit",
        "appointment",
        "routine"
      ],
      "type": "string"
    },
    "entryView": {
      "properties": {
        "category": {
          "ref": "#category",
          "type": "ref"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "grade": {
          "ref": "#grade",
          "type": "ref"
        },
        "group": {
          "type": "string"
        },
        "imageUrl": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "nextOccurrences": {
          "items": {
            "ref": "#occurrenceView",
            "type": "ref"
          },
          "type": "array"
        },
        "recurrenceRule": {
          "type": "string"
        },
        "relatedRecords": {
          "items": {
            "format": "at-uri",
            "type": "string"
          },
          "type": "array"
        },
        "reminderTime": {
          "maxLength": 5,
          "type": "string"
        },
        "reminders": {
          "description": "ISO 8601 durations before the start.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "rkey": {
          "format": "record-key",
          "type": "string"
        },
        "slot": {
          "description": "The parent slot, 1 or 2.",
          "maximum": 2,
          "minimum": 1,
          "type": "integer"
        },
        "template": {
          "ref": "#template",
          "type": "ref"
        },
        "time": {
          "ref": "#time",
          "type": "ref"
        },
        "title": {
          "description": "The schedule entry's eventName, the completed sentence.",
          "type": "string"
        },
        "updatedAt": {
          "description": "When the entry was last changed by the family app; later than listEntries.deviceSyncedAt means the device has not read it yet.",
          "format": "datetime",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "rkey",
        "slot",
        "uri",
        "cid",
        "category",
        "title",
        "time",
        "reminders",
        "grade",
        "template",
        "nextOccurrences"
      ],
      "type": "object"
    },
    "grade": {
      "knownValues": [
        "priority",
        "normal",
        "none"
      ],
      "type": "string"
    },
    "occurrenceView": {
      "properties": {
        "alarms": {
          "items": {
            "ref": "#alarmView",
            "type": "ref"
          },
          "type": "array"
        },
        "occurrenceId": {
          "type": "string"
        },
        "startAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "occurrenceId",
        "startAt",
        "alarms"
      ],
      "type": "object"
    },
    "template": {
      "properties": {
        "blank": {
          "maxGraphemes": 60,
          "maxLength": 600,
          "type": "string"
        },
        "category": {
          "ref": "#category",
          "type": "ref"
        }
      },
      "required": [
        "category",
        "blank"
      ],
      "type": "object"
    },
    "time": {
      "properties": {
        "pointAt": {
          "format": "datetime",
          "type": "string"
        },
        "precision": {
          "description": "day for a date-only entry (birthday, anniversary); the reminders then fire at reminderTime.",
          "knownValues": [
            "minute",
            "day"
          ],
          "type": "string"
        },
        "timezone": {
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "pointAt"
      ],
      "type": "object"
    },
    "upcomingCard": {
      "properties": {
        "acknowledgedAt": {
          "format": "datetime",
          "type": "string"
        },
        "alarmId": {
          "type": "string"
        },
        "at": {
          "format": "datetime",
          "type": "string"
        },
        "category": {
          "ref": "#category",
          "type": "ref"
        },
        "dateLine": {
          "type": "string"
        },
        "extraLines": {
          "description": "Place, note and guidance lines, only those entered.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "grade": {
          "ref": "#grade",
          "type": "ref"
        },
        "imageUrl": {
          "type": "string"
        },
        "occurrenceId": {
          "type": "string"
        },
        "slots": {
          "description": "The parents the entry is for.",
          "items": {
            "description": "The parent slot, 1 or 2.",
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          },
          "type": "array"
        },
        "template": {
          "description": "The category and the blank the guardian typed, for a device that composes its own wording.",
          "ref": "#template",
          "type": "ref"
        },
        "title": {
          "description": "The card's title line for this alarm, composed by the Service Agent Node from the category's sentence, the blank and the reminder offset (feature spec A-E04-18, ILLI 표시): before the start \"혈압약 드실 시간까지 10분 남았어요\", at the start \"혈압약 드실 시간이에요\".",
          "type": "string"
        }
      },
      "required": [
        "occurrenceId",
        "alarmId",
        "at",
        "grade",
        "category",
        "title",
        "slots"
      ],
      "type": "object"
    }
  },
  "id": "ai.newnal.illi.schedule.defs",
  "lexicon": 1
}
```
