# xyz.opnshelf.profile

> Published by [rowanpaul.opnshelf.social](https://lexicon.garden/identity/did:plc:u5ggziwgin2unsdw74yntrw7)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:u5ggziwgin2unsdw74yntrw7/xyz.opnshelf.profile)
- [Documentation](https://lexicon.garden/lexicon/did:plc:u5ggziwgin2unsdw74yntrw7/xyz.opnshelf.profile/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:u5ggziwgin2unsdw74yntrw7/xyz.opnshelf.profile/examples)

## Definitions

### `xyz.opnshelf.profile`

**Type**: `record`

An OpnShelf profile record

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `avatar` | `blob` | No | Profile photo stored in the user's PDS |
| `createdAt` | `string` (datetime) | Yes | Record creation timestamp |
| `updatedAt` | `string` (datetime) | Yes | Record update timestamp |
| `displayName` | `string` | No | Display name shown in OpnShelf |

## Raw Schema

```json
{
  "id": "xyz.opnshelf.profile",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "avatar": {
            "type": "blob",
            "accept": [
              "image/jpeg",
              "image/png",
              "image/webp"
            ],
            "maxSize": 5242880,
            "description": "Profile photo stored in the user's PDS"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Record creation timestamp"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Record update timestamp"
          },
          "displayName": {
            "type": "string",
            "maxLength": 64,
            "description": "Display name shown in OpnShelf"
          }
        }
      },
      "description": "An OpnShelf profile record"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
