{"$type":"com.atproto.lexicon.schema","defs":{"main":{"key":"tid","record":{"description":"A vote record, representing a user's approval or disapproval of the referenced resource. The resource my be a proposal, a post, a web page, or anything that can be agreed or disagreed with.","properties":{"aid":{"description":"The persistent, anonymous identifier for the user casting the vote.","type":"string"},"cid":{"description":"Optionally, CID specifying the specific version of 'uri' resource this vote applies to.","format":"cid","type":"string"},"cts":{"description":"Timestamp when this vote was created.","format":"datetime","type":"string"},"reasons":{"description":"An optional array of predefined reasons justifying the vote.","items":{"type":"string"},"type":"array"},"sig":{"description":"Signature of dag-cbor encoded vote.","type":"bytes"},"src":{"description":"the account creating the vote, not necessarily the same as the user who voted","format":"did","type":"string"},"uri":{"description":"AT URI of the record, repository (account), or other resource that this vote applies to.","format":"uri","type":"string"},"val":{"description":"The value of the vote. The exact meaning depends on what is being voted on, but generally '+1' means 'approval', -1 means 'disapproval', and 0 indicates 'neutrality'.","type":"integer"}},"required":["src","uri","val","cts"],"type":"object"},"type":"record"}},"id":"social.pmsky.vote","lexicon":1}