{
"id": "systems.sister.gift",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"from",
"to",
"itemRkey",
"itemSnapshot",
"createdAt"
],
"properties": {
"to": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"from": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"itemCid": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"message": {
"type": "string",
"maxLength": 512
},
"isReturn": {
"type": "boolean"
},
"itemRkey": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"returnedAt": {
"type": "string",
"format": "datetime"
},
"itemSnapshot": {
"ref": "#itemSnapshot",
"type": "ref"
},
"originalGiftUri": {
"type": "string",
"maxLength": 512,
"minLength": 1
}
}
}
},
"stat": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"value": {
"type": "integer"
}
}
},
"itemSnapshot": {
"type": "object",
"required": [
"name",
"rarity",
"itemType"
],
"properties": {
"name": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"tags": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"maxLength": 50
},
"stats": {
"type": "array",
"items": {
"ref": "#stat",
"type": "ref"
},
"maxLength": 50
},
"rarity": {
"enum": [
"common",
"uncommon",
"rare",
"epic",
"legendary",
"unusual"
],
"type": "string"
},
"creator": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"itemType": {
"enum": [
"weapon",
"armor",
"consumable",
"cosmetic",
"material",
"misc",
"crate",
"table",
"toolkit",
"helperCrate",
"shovel",
"glasses"
],
"type": "string"
},
"tradable": {
"type": "boolean"
},
"description": {
"type": "string",
"maxLength": 4096
},
"lootboxRkey": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"levelRequirement": {
"type": "integer",
"minimum": 0
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}