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