{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "itemSnapshot": {
      "properties": {
        "creator": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "description": {
          "maxLength": 4096,
          "type": "string"
        },
        "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"
        },
        "rarity": {
          "enum": [
            "common",
            "uncommon",
            "rare",
            "epic",
            "legendary",
            "unusual"
          ],
          "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"
        }
      },
      "required": [
        "name",
        "rarity",
        "itemType"
      ],
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "from": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "isReturn": {
            "type": "boolean"
          },
          "itemCid": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "itemRkey": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "itemSnapshot": {
            "ref": "#itemSnapshot",
            "type": "ref"
          },
          "message": {
            "maxLength": 512,
            "type": "string"
          },
          "originalGiftUri": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "returnedAt": {
            "format": "datetime",
            "type": "string"
          },
          "to": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "from",
          "to",
          "itemRkey",
          "itemSnapshot",
          "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.gift",
  "lexicon": 1
}
