# ai.newnal.illi.private.parentCredential

> 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 Agent Node at link time. rkey <homeId>-<slot>. Used to restore a parent account on a replaced device.

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

## Record (`ai.newnal.illi.private.parentCredential`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `handle` (string · handle, required)
- `home` (string · tid, required)
- `parentDid` (string · did, required)
- `password` (string): The parent's Newnal ID password (production: device-generated; absent in the PoC, where a family member typed it on the PDN's page).
  - Constraints: maxLength: 256
- `phoneMxid` (string): Parent 1 only: the device's Private Phone Matrix ID.
  - Constraints: maxLength: 255
- `phonePrivateKey` (bytes): Parent 1 only: the device's Private Phone did:key private key.
  - Constraints: maxLength: 256
- `slot` (integer, required)
  - Constraints: minimum: 1, maximum: 2
- `updatedAt` (string · datetime, required)

## 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 Agent 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
}
```
