{
"id": "pub.chive.governance.listVotes",
"defs": {
"main": {
"type": "query",
"errors": [],
"output": {
"schema": {
"type": "object",
"required": [
"votes",
"total"
],
"properties": {
"total": {
"type": "integer",
"description": "Total number of votes"
},
"votes": {
"type": "array",
"items": {
"ref": "#voteView",
"type": "ref"
},
"description": "List of votes"
},
"cursor": {
"type": "string",
"description": "Cursor for next page"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"proposalId"
],
"properties": {
"limit": {
"type": "integer",
"default": 100,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of results to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor for next page"
},
"proposalId": {
"type": "string",
"description": "Proposal identifier"
}
}
},
"description": "List votes for a specific governance proposal"
},
"voteView": {
"type": "object",
"required": [
"id",
"uri",
"cid",
"proposalUri",
"voterDid",
"voterRole",
"vote",
"weight",
"createdAt"
],
"properties": {
"id": {
"type": "string",
"description": "Vote identifier"
},
"cid": {
"type": "string",
"description": "Content identifier"
},
"uri": {
"type": "string",
"format": "at-uri",
"description": "Vote AT-URI"
},
"vote": {
"type": "string",
"description": "Vote value",
"knownValues": [
"approve",
"reject",
"abstain",
"request-changes"
]
},
"weight": {
"type": "integer",
"maximum": 1000,
"minimum": 0,
"description": "Weighted vote value (scaled by 1000 for 0.0-1.0 range)"
},
"voterDid": {
"type": "string",
"format": "did",
"description": "Voter DID"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Vote timestamp"
},
"rationale": {
"type": "string",
"description": "Vote rationale"
},
"voterName": {
"type": "string",
"description": "Voter display name"
},
"voterRole": {
"type": "string",
"description": "Voter governance role",
"knownValues": [
"community-member",
"reviewer",
"domain-expert",
"administrator"
]
},
"proposalUri": {
"type": "string",
"format": "at-uri",
"description": "Proposal AT-URI"
}
},
"description": "View of a vote on a proposal"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}