# ai.newnal.illi.home.defs

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

✓ This is the authoritative definition for this NSID.

## Links

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

## Definitions

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `deviceId` | `string` | Yes |  |
| `firmwareVersion` | `string` | No |  |
| `lastSeenAt` | `string` (datetime) | No |  |
| `model` | `string` | No |  |
| `online` | `boolean` | No |  |
| `status` | `string` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `device` | `ref` → `#deviceView` | No |  |
| `homeId` | `string` (tid) | Yes |  |
| `name` | `string` | Yes |  |
| `parents` | `array` | No |  |
| `role` | `string` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `expiresAt` | `string` (datetime) | Yes |  |
| `inviteId` | `string` | Yes |  |
| `maxUses` | `integer` | Yes |  |
| `note` | `string` | No |  |
| `uses` | `integer` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `max` | `integer` | Yes |  |
| `used` | `integer` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `admins` | `ref` → `#limit` | Yes |  |
| `parents` | `ref` → `#limit` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `custodyKeyId` | `string` | No |  |
| `did` | `string` (did) | Yes |  |
| `displayName` | `string` | No |  |
| `handle` | `string` (handle) | No |  |
| `joinedAt` | `string` (datetime) | Yes |  |
| `parentSlot` | `integer` | No |  |
| `photoUrl` | `string` (uri) | No |  |
| `relationship` | `string` | No |  |
| `role` | `string` | Yes |  |
| `status` | `string` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `delegation` | `string` | No |  |
| `honorific` | `string` | No |  |
| `linked` | `boolean` | Yes |  |
| `linkedDid` | `string` (did) | No |  |
| `linkedHandle` | `string` (handle) | No |  |
| `name` | `string` | No |  |
| `photoUrl` | `string` (uri) | No |  |
| `slot` | `integer` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `lastReconciledAt` | `string` (datetime) | No |  |
| `spaceRev` | `string` (tid) | No |  |
| `status` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "deviceView": {
      "properties": {
        "deviceId": {
          "maxLength": 64,
          "type": "string"
        },
        "firmwareVersion": {
          "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": {
        "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
}
```
