# com.livtet.readingList.role

> An owner-defined role for one reading list, written in the list owner's repo inside the list space. The record key is a slug of `name`, so renaming is create-new plus delete-old. The three built-ins (Owner, Moderator, Member) exist without a record; `Owner` can never have one.

- Kind: record
- Record key: tid
- Authority: readingList.livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.readingList.role)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.readingList.role/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.readingList.role/analytics)

## Record (`com.livtet.readingList.role`)

Type: record · key tid

### Properties

- `name` (string, required): Display name. Immutable for the life of the record.
  - Constraints: maxLength: 64
- `permissions` (array, required): Permission keys from the list catalogue.
  - Constraints: maxLength: 64
  - `items` (string)
    - Constraints: maxLength: 64
- `rank` (integer, required): Ordering for management. 100 is the owner's alone.
  - Constraints: minimum: 1, maximum: 99
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An owner-defined role for one reading list, written in the list owner's repo inside the list space. The record key is a slug of `name`, so renaming is create-new plus delete-old. The three built-ins (Owner, Moderator, Member) exist without a record; `Owner` can never have one.",
      "key": "tid",
      "record": {
        "properties": {
          "name": {
            "description": "Display name. Immutable for the life of the record.",
            "maxLength": 64,
            "type": "string"
          },
          "permissions": {
            "description": "Permission keys from the list catalogue.",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 64,
            "type": "array"
          },
          "rank": {
            "description": "Ordering for management. 100 is the owner's alone.",
            "maximum": 99,
            "minimum": 1,
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "permissions",
          "rank",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.livtet.readingList.role",
  "lexicon": 1
}
```
