# dev.roe.entity

> Published by [danielroe.dev](https://lexicon.garden/identity/did:plc:jbeaa5kdaladzwq3r7f5xgwe)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jbeaa5kdaladzwq3r7f5xgwe/dev.roe.entity)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jbeaa5kdaladzwq3r7f5xgwe/dev.roe.entity/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jbeaa5kdaladzwq3r7f5xgwe/dev.roe.entity/examples)

## Definitions

### `dev.roe.entity`

**Type**: `record`

A person or organisation referenced by AMA responses via @-mentions. Holds the canonical name plus per-platform social handles so the publisher can rewrite mentions correctly for each platform.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `website` | `string` (uri) | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `socialHandles` | `ref` → `#socialHandles` | No |  |

### `dev.roe.entity#socialHandles`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `bluesky` | `string` | No | Handle without leading @ (e.g. nuxt.bsky.social) |
| `linkedin` | `string` | No | Company or person handle (e.g. nuxtjs) |
| `mastodon` | `string` | No | Full handle including instance (e.g. nuxt@fosstodon.org) |

## Raw Schema

```json
{
  "id": "dev.roe.entity",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 2560,
            "maxGraphemes": 256
          },
          "website": {
            "type": "string",
            "format": "uri"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "socialHandles": {
            "ref": "#socialHandles",
            "type": "ref"
          }
        }
      },
      "description": "A person or organisation referenced by AMA responses via @-mentions. Holds the canonical name plus per-platform social handles so the publisher can rewrite mentions correctly for each platform."
    },
    "socialHandles": {
      "type": "object",
      "properties": {
        "bluesky": {
          "type": "string",
          "maxLength": 256,
          "description": "Handle without leading @ (e.g. nuxt.bsky.social)"
        },
        "linkedin": {
          "type": "string",
          "maxLength": 256,
          "description": "Company or person handle (e.g. nuxtjs)"
        },
        "mastodon": {
          "type": "string",
          "maxLength": 256,
          "description": "Full handle including instance (e.g. nuxt@fosstodon.org)"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
