# ai.newnal.illi.service.device

> Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.service.device)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.service.device/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.service.device/examples)

## Definitions

### `ai.newnal.illi.service.device`

**Type**: `record`

One ILLI device. The rkey is the device serial. Onboarding sub-states, one-time codes and online state live only in the Service Node database.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `firmwareVersion` | `string` | No |  |
| `home` | `string` (tid) | No | homeId the device is bound to while status is active. |
| `linkedAt` | `string` (datetime) | No |  |
| `model` | `string` | Yes |  |
| `partner` | `string` | No | Partner brand the unit was sold under. Reserved for multi-tenancy. |
| `registeredAt` | `string` (datetime) | Yes |  |
| `serial` | `string` | Yes | Device serial, e.g. A7K9-2847. |
| `status` | `string` | Yes |  |
| `unlinkedAt` | `string` (datetime) | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One ILLI device. The rkey is the device serial. Onboarding sub-states, one-time codes and online state live only in the Service Node database.",
      "key": "any",
      "record": {
        "properties": {
          "firmwareVersion": {
            "maxLength": 32,
            "type": "string"
          },
          "home": {
            "description": "homeId the device is bound to while status is active.",
            "format": "tid",
            "type": "string"
          },
          "linkedAt": {
            "format": "datetime",
            "type": "string"
          },
          "model": {
            "maxLength": 64,
            "type": "string"
          },
          "partner": {
            "description": "Partner brand the unit was sold under. Reserved for multi-tenancy.",
            "maxLength": 64,
            "type": "string"
          },
          "registeredAt": {
            "format": "datetime",
            "type": "string"
          },
          "serial": {
            "description": "Device serial, e.g. A7K9-2847.",
            "maxLength": 32,
            "type": "string"
          },
          "status": {
            "knownValues": [
              "registered",
              "active",
              "unlinked",
              "retired"
            ],
            "type": "string"
          },
          "unlinkedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "serial",
          "model",
          "status",
          "registeredAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.illi.service.device",
  "lexicon": 1
}
```
