{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "creator": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 4096,
            "type": "string"
          },
          "equipped": {
            "type": "boolean"
          },
          "giftFrom": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "giftUri": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "hidden": {
            "type": "boolean"
          },
          "icon": {
            "accept": [
              "image/*"
            ],
            "maxSize": 2000000,
            "type": "blob"
          },
          "itemType": {
            "enum": [
              "weapon",
              "armor",
              "consumable",
              "cosmetic",
              "material",
              "misc",
              "crate",
              "table",
              "toolkit",
              "helperCrate",
              "shovel",
              "glasses"
            ],
            "type": "string"
          },
          "levelRequirement": {
            "minimum": 0,
            "type": "integer"
          },
          "lootboxRkey": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "openedAt": {
            "format": "datetime",
            "type": "string"
          },
          "openedBy": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "rarity": {
            "enum": [
              "common",
              "uncommon",
              "rare",
              "epic",
              "legendary",
              "unusual"
            ],
            "type": "string"
          },
          "receivedAt": {
            "format": "datetime",
            "type": "string"
          },
          "sourceCrateRkey": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "stats": {
            "items": {
              "ref": "#stat",
              "type": "ref"
            },
            "maxLength": 50,
            "type": "array"
          },
          "tags": {
            "items": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "tradable": {
            "type": "boolean"
          },
          "unusualEffect": {
            "enum": [
              "burning_flames",
              "scorching_flames",
              "sunbeams",
              "cloud_9",
              "arcana",
              "chiroptera_inzanium",
              "dark_fate",
              "spellbound",
              "vivid_plasma",
              "purple_energy",
              "blue_phosphorus"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "rarity",
          "itemType",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "stat": {
      "properties": {
        "name": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "value": {
          "type": "integer"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "type": "object"
    }
  },
  "id": "systems.sister.item",
  "lexicon": 1
}
