# ai.newnal.illi.private.parentCredential

> 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.private.parentCredential)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.private.parentCredential/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.private.parentCredential/examples)

## Definitions

### `ai.newnal.illi.private.parentCredential`

**Type**: `record`

Custody record kept by a home's root admin in their own Private Sphere: the credentials of one of the home's parent accounts, generated on the ILLI device and handed over through the Service Node at link time. rkey <homeId>-<slot>. Used to restore a parent account on a replaced device.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `handle` | `string` (handle) | Yes |  |
| `home` | `string` (tid) | Yes |  |
| `parentDid` | `string` (did) | Yes |  |
| `password` | `string` | No | The parent's Newnal ID password (production: device-generated; absent in the PoC, where a family member typed it on the PDN's page). |
| `phoneMxid` | `string` | No | Parent 1 only: the device's Private Phone Matrix ID. |
| `phonePrivateKey` | `bytes` | No | Parent 1 only: the device's Private Phone did:key private key. |
| `slot` | `integer` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Custody record kept by a home's root admin in their own Private Sphere: the credentials of one of the home's parent accounts, generated on the ILLI device and handed over through the Service Node at link time. rkey <homeId>-<slot>. Used to restore a parent account on a replaced device.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "handle": {
            "format": "handle",
            "type": "string"
          },
          "home": {
            "format": "tid",
            "type": "string"
          },
          "parentDid": {
            "format": "did",
            "type": "string"
          },
          "password": {
            "description": "The parent's Newnal ID password (production: device-generated; absent in the PoC, where a family member typed it on the PDN's page).",
            "maxLength": 256,
            "type": "string"
          },
          "phoneMxid": {
            "description": "Parent 1 only: the device's Private Phone Matrix ID.",
            "maxLength": 255,
            "type": "string"
          },
          "phonePrivateKey": {
            "description": "Parent 1 only: the device's Private Phone did:key private key.",
            "maxLength": 256,
            "type": "bytes"
          },
          "slot": {
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "home",
          "slot",
          "parentDid",
          "handle",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.illi.private.parentCredential",
  "lexicon": 1
}
```
