# social.respawn.defs

> Published by [respawn.social](https://lexicon.garden/identity/did:plc:hiabolqnnpdnrb5grmdaaepg)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.defs/examples)

## Definitions

### `social.respawn.defs#cover`

**Type**: `object`

A game cover image with optional extracted colors.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `image` | `blob` | Yes |  |
| `colors` | `ref` → `#colors` | No |  |

### `social.respawn.defs#colors`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `dominant` | `string` | No | Dominant cover color as a hex string, e.g. #1a2b3c. |

### `social.respawn.defs#gameRef`

**Type**: `object`

Denormalized reference to a game title, keyed by its IGDB id, so records are self-describing without an IGDB lookup.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `slug` | `string` | Yes |  |
| `title` | `string` | Yes |  |
| `igdbId` | `integer` | Yes |  |

### `social.respawn.defs#playState`

**Type**: `string`

Play state. Absent means not played.

**Known Values**:
- `played`
- `completed`
- `abandoned`
- `retired`
- `shelved`

## Raw Schema

```json
{
  "id": "social.respawn.defs",
  "defs": {
    "cover": {
      "type": "object",
      "required": [
        "image"
      ],
      "properties": {
        "image": {
          "type": "blob",
          "accept": [
            "image/png",
            "image/jpeg",
            "image/webp"
          ],
          "maxSize": 1000000
        },
        "colors": {
          "ref": "#colors",
          "type": "ref"
        }
      },
      "description": "A game cover image with optional extracted colors."
    },
    "colors": {
      "type": "object",
      "properties": {
        "dominant": {
          "type": "string",
          "description": "Dominant cover color as a hex string, e.g. #1a2b3c."
        }
      }
    },
    "gameRef": {
      "type": "object",
      "required": [
        "igdbId",
        "slug",
        "title"
      ],
      "properties": {
        "slug": {
          "type": "string",
          "maxLength": 200
        },
        "title": {
          "type": "string",
          "maxLength": 2000,
          "maxGraphemes": 200
        },
        "igdbId": {
          "type": "integer",
          "minimum": 1
        }
      },
      "description": "Denormalized reference to a game title, keyed by its IGDB id, so records are self-describing without an IGDB lookup."
    },
    "playState": {
      "type": "string",
      "description": "Play state. Absent means not played.",
      "knownValues": [
        "played",
        "completed",
        "abandoned",
        "retired",
        "shelved"
      ]
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
