# social.tophhie.profile

> Published by [tophhie.cloud](https://lexicon.garden/identity/did:plc:ggobmtqnjirtchpwgydxoecb)

✓ This is the authoritative definition for this NSID.

## Description

Tophhie Social: profile record containing various PDS specific settings.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ggobmtqnjirtchpwgydxoecb/social.tophhie.profile)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ggobmtqnjirtchpwgydxoecb/social.tophhie.profile/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ggobmtqnjirtchpwgydxoecb/social.tophhie.profile/examples)

## Definitions

### `social.tophhie.profile`

**Type**: `record`

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes | ISO 8601 timestamp when this profile record was created. |
| `updatedAt` | `string` (datetime) | No | ISO 8601 timestamp when this profile record was updated. |
| `pdsPreferences` | `ref` → `#pdsPreferences` | Yes | User's opt-in/out preferences for PDS features. |
| `communicationPreferences` | `ref` → `#communicationPreferences` | Yes | User's opt-in/out preferences for communications. |

### `social.tophhie.profile#pdsPreferences`

**Type**: `object`

Granular PDS preference consent flags.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `showOnHomepage` | `boolean` | Yes | True if the user is shown on the Tophhie Social homepage. |
| `accessibilityScoring` | `boolean` | Yes | True if the user participates in accessibility scoring. |

### `social.tophhie.profile#communicationPreferences`

**Type**: `object`

Granular communication consent flags.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `marketing` | `boolean` | Yes | True if the user consents to receive marketing communications. |

## Raw Schema

```json
{
  "id": "social.tophhie.profile",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "createdAt",
          "pdsPreferences",
          "communicationPreferences"
        ],
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "ISO 8601 timestamp when this profile record was created."
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "ISO 8601 timestamp when this profile record was updated."
          },
          "pdsPreferences": {
            "ref": "#pdsPreferences",
            "type": "ref",
            "description": "User's opt-in/out preferences for PDS features."
          },
          "communicationPreferences": {
            "ref": "#communicationPreferences",
            "type": "ref",
            "description": "User's opt-in/out preferences for communications."
          }
        },
        "description": "Tophhie profile record"
      }
    },
    "pdsPreferences": {
      "type": "object",
      "required": [
        "showOnHomepage",
        "accessibilityScoring"
      ],
      "properties": {
        "showOnHomepage": {
          "type": "boolean",
          "description": "True if the user is shown on the Tophhie Social homepage."
        },
        "accessibilityScoring": {
          "type": "boolean",
          "description": "True if the user participates in accessibility scoring."
        }
      },
      "description": "Granular PDS preference consent flags."
    },
    "communicationPreferences": {
      "type": "object",
      "required": [
        "marketing"
      ],
      "properties": {
        "marketing": {
          "type": "boolean",
          "description": "True if the user consents to receive marketing communications."
        }
      },
      "description": "Granular communication consent flags."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 0,
  "description": "Tophhie Social: profile record containing various PDS specific settings."
}
```
