{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A user's daily-games profile. Singleton per repo (rkey = 'self').",
      "key": "literal:self",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When this profile record was first created.",
            "format": "datetime",
            "type": "string"
          },
          "displayName": {
            "description": "Optional override of the user's Bluesky display name for this app.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "displayOrder": {
            "description": "Optional user-preferred ordering of game ids.",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 256,
            "type": "array"
          },
          "favorites": {
            "description": "Game ids that the user has favorited. Shown in a dedicated group on the home page.",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 256,
            "type": "array"
          },
          "games": {
            "description": "Game ids from the app catalog that the user plays.",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 256,
            "type": "array"
          },
          "timezone": {
            "description": "IANA timezone name used to compute daily resets for this user.",
            "maxLength": 128,
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.dailygame.profile",
  "lexicon": 1
}
