# app.chavatar.settings

> Published by [chavatar.app](https://lexicon.garden/identity/did:web:chavatar.app)

✓ This is the authoritative definition for this NSID.

## Description

User settings for avatar rotation.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:chavatar.app/app.chavatar.settings)
- [Documentation](https://lexicon.garden/lexicon/did:web:chavatar.app/app.chavatar.settings/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:chavatar.app/app.chavatar.settings/examples)

## Definitions

### `app.chavatar.settings`

**Type**: `record`

Rotation configuration for a user.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `mode` | `string` | Yes |  |
| `avatars` | `array` | Yes |  |
| `enabled` | `boolean` | Yes |  |
| `interval` | `string` | Yes |  |

### `app.chavatar.settings#avatarItem`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `image` | `ref` → `com.atproto.repo.strongRef` | Yes |  |

## Raw Schema

```json
{
  "id": "app.chavatar.settings",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "enabled",
          "interval",
          "mode",
          "avatars"
        ],
        "properties": {
          "mode": {
            "type": "string",
            "maxLength": 20,
            "knownValues": [
              "sequential",
              "random"
            ]
          },
          "avatars": {
            "type": "array",
            "items": {
              "ref": "#avatarItem",
              "type": "ref"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "interval": {
            "type": "string",
            "maxLength": 6,
            "knownValues": [
              "1h",
              "3h",
              "6h",
              "12h",
              "1d",
              "1w",
              "1mo"
            ]
          }
        }
      },
      "description": "Rotation configuration for a user."
    },
    "avatarItem": {
      "type": "object",
      "required": [
        "id",
        "image"
      ],
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 13
        },
        "image": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "User settings for avatar rotation."
}
```
