# ai.newnal.illi.home.defs

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

## #deviceView (`ai.newnal.illi.home.defs#deviceView`)

Type: object

### Properties

- `deviceId` (string, required)
  - Constraints: maxLength: 64
- `firmwareVersion` (string): Version of the ILLI unit's OS image (the firmware build), reported by the device itself; not verified. Trusted software state comes from the key attestation.
- `lastSeenAt` (string · datetime)
- `model` (string)
- `online` (boolean)
- `status` (string, required)
  - Constraints: knownValues: registered | awaitingLink | active | unlinked | retired

## #homeSummary (`ai.newnal.illi.home.defs#homeSummary`)

Type: object

### Properties

- `changesUntil` (string · datetime): Upload-window end while the next-day draft may change. Omitted at/after local midnight and for immediate debug days.
- `device` (ref)
  - Reference: `#deviceView`
- `homeId` (string · tid, required)
- `name` (string, required)
- `parents` (array)
  - `items` (ref)
    - Reference: `#parentView`
- `role` (string, required)
  - Constraints: knownValues: rootAdmin | mainAdmin | member | parent

## #inviteView (`ai.newnal.illi.home.defs#inviteView`)

Type: object

### Properties

- `createdAt` (string · datetime, required)
- `expiresAt` (string · datetime, required)
- `inviteId` (string, required)
- `maxUses` (integer, required)
- `note` (string)
  - Constraints: maxLength: 120
- `uses` (integer, required)

## #limit (`ai.newnal.illi.home.defs#limit`)

Type: object

### Properties

- `max` (integer, required)
- `used` (integer, required)

## #limits (`ai.newnal.illi.home.defs#limits`)

Type: object

### Properties

- `admins` (ref, required)
  - Reference: `#limit`
- `parents` (ref, required)
  - Reference: `#limit`

## #memberView (`ai.newnal.illi.home.defs#memberView`)

Type: object

### Properties

- `custodyKeyId` (string)
- `did` (string · did, required)
- `displayName` (string)
  - Constraints: maxLength: 64
- `handle` (string · handle)
- `joinedAt` (string · datetime, required)
- `parentSlot` (integer)
  - Constraints: minimum: 1, maximum: 2
- `photoUrl` (string · uri)
- `relationship` (string)
  - Constraints: maxLength: 32
- `role` (string, required)
  - Constraints: knownValues: rootAdmin | mainAdmin | member | parent
- `status` (string, required)
  - Constraints: knownValues: active | removed

## #parentView (`ai.newnal.illi.home.defs#parentView`)

Type: object

### Properties

- `delegation` (string)
  - Constraints: knownValues: ok | unavailable | none
- `honorific` (string)
- `linked` (boolean, required)
- `linkedDid` (string · did)
- `linkedHandle` (string · handle)
- `name` (string)
- `photoUrl` (string · uri)
- `slot` (integer, required)
  - Constraints: minimum: 1, maximum: 2

## #syncView (`ai.newnal.illi.home.defs#syncView`)

Type: object

### Properties

- `lastReconciledAt` (string · datetime)
- `spaceRev` (string · tid)
- `status` (string, required)
  - Constraints: knownValues: active | paused | deleted

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "deviceView": {
      "properties": {
        "deviceId": {
          "maxLength": 64,
          "type": "string"
        },
        "firmwareVersion": {
          "description": "Version of the ILLI unit's OS image (the firmware build), reported by the device itself; not verified. Trusted software state comes from the key attestation.",
          "type": "string"
        },
        "lastSeenAt": {
          "format": "datetime",
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "online": {
          "type": "boolean"
        },
        "status": {
          "knownValues": [
            "registered",
            "awaitingLink",
            "active",
            "unlinked",
            "retired"
          ],
          "type": "string"
        }
      },
      "required": [
        "deviceId",
        "status"
      ],
      "type": "object"
    },
    "homeSummary": {
      "properties": {
        "changesUntil": {
          "description": "Upload-window end while the next-day draft may change. Omitted at/after local midnight and for immediate debug days.",
          "format": "datetime",
          "type": "string"
        },
        "device": {
          "ref": "#deviceView",
          "type": "ref"
        },
        "homeId": {
          "format": "tid",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "parents": {
          "items": {
            "ref": "#parentView",
            "type": "ref"
          },
          "type": "array"
        },
        "role": {
          "knownValues": [
            "rootAdmin",
            "mainAdmin",
            "member",
            "parent"
          ],
          "type": "string"
        }
      },
      "required": [
        "homeId",
        "name",
        "role"
      ],
      "type": "object"
    },
    "inviteView": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "expiresAt": {
          "format": "datetime",
          "type": "string"
        },
        "inviteId": {
          "type": "string"
        },
        "maxUses": {
          "type": "integer"
        },
        "note": {
          "maxLength": 120,
          "type": "string"
        },
        "uses": {
          "type": "integer"
        }
      },
      "required": [
        "inviteId",
        "createdAt",
        "expiresAt",
        "maxUses",
        "uses"
      ],
      "type": "object"
    },
    "limit": {
      "properties": {
        "max": {
          "type": "integer"
        },
        "used": {
          "type": "integer"
        }
      },
      "required": [
        "used",
        "max"
      ],
      "type": "object"
    },
    "limits": {
      "properties": {
        "admins": {
          "ref": "#limit",
          "type": "ref"
        },
        "parents": {
          "ref": "#limit",
          "type": "ref"
        }
      },
      "required": [
        "parents",
        "admins"
      ],
      "type": "object"
    },
    "memberView": {
      "properties": {
        "custodyKeyId": {
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "maxLength": 64,
          "type": "string"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        },
        "joinedAt": {
          "format": "datetime",
          "type": "string"
        },
        "parentSlot": {
          "maximum": 2,
          "minimum": 1,
          "type": "integer"
        },
        "photoUrl": {
          "format": "uri",
          "type": "string"
        },
        "relationship": {
          "maxLength": 32,
          "type": "string"
        },
        "role": {
          "knownValues": [
            "rootAdmin",
            "mainAdmin",
            "member",
            "parent"
          ],
          "type": "string"
        },
        "status": {
          "knownValues": [
            "active",
            "removed"
          ],
          "type": "string"
        }
      },
      "required": [
        "did",
        "role",
        "status",
        "joinedAt"
      ],
      "type": "object"
    },
    "parentView": {
      "properties": {
        "delegation": {
          "knownValues": [
            "ok",
            "unavailable",
            "none"
          ],
          "type": "string"
        },
        "honorific": {
          "type": "string"
        },
        "linked": {
          "type": "boolean"
        },
        "linkedDid": {
          "format": "did",
          "type": "string"
        },
        "linkedHandle": {
          "format": "handle",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "photoUrl": {
          "format": "uri",
          "type": "string"
        },
        "slot": {
          "maximum": 2,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "slot",
        "linked"
      ],
      "type": "object"
    },
    "syncView": {
      "properties": {
        "lastReconciledAt": {
          "format": "datetime",
          "type": "string"
        },
        "spaceRev": {
          "format": "tid",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "active",
            "paused",
            "deleted"
          ],
          "type": "string"
        }
      },
      "required": [
        "status"
      ],
      "type": "object"
    }
  },
  "id": "ai.newnal.illi.home.defs",
  "lexicon": 1
}
```
