pub.chive.governance.getUserVote
Get a user's vote on a specific proposal, if they have voted
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · query
| Kind | query |
|---|---|
| Authority | governance.chive.pub |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.proposalIdNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.voteView.properties.cidNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.voteView.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.voteView.properties.rationaleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.voteView.properties.voteNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.voteView.properties.voterRoleNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get a user's vote on a specific proposal, if they have voted",
"errors": [
{
"name": "NotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"vote": {
"description": "Vote if found, or null",
"refs": [
"#voteView"
],
"type": "union"
}
},
"required": [
"vote"
],
"type": "object"
}
},
"parameters": {
"properties": {
"proposalId": {
"description": "Proposal identifier",
"type": "string"
},
"userDid": {
"description": "User DID",
"format": "did",
"type": "string"
}
},
"required": [
"proposalId",
"userDid"
],
"type": "params"
},
"type": "query"
},
"voteView": {
"description": "View of a vote on a proposal",
"properties": {
"cid": {
"description": "Content identifier",
"type": "string"
},
"createdAt": {
"description": "Vote timestamp",
"format": "datetime",
"type": "string"
},
"id": {
"description": "Vote identifier",
"type": "string"
},
"proposalUri": {
"description": "Proposal AT-URI",
"format": "at-uri",
"type": "string"
},
"rationale": {
"description": "Vote rationale",
"type": "string"
},
"uri": {
"description": "Vote AT-URI",
"format": "at-uri",
"type": "string"
},
"vote": {
"description": "Vote value",
"knownValues": [
"approve",
"reject",
"abstain",
"request-changes"
],
"type": "string"
},
"voterDid": {
"description": "Voter DID",
"format": "did",
"type": "string"
},
"voterRole": {
"description": "Voter governance role",
"knownValues": [
"community-member",
"reviewer",
"domain-expert",
"administrator"
],
"type": "string"
},
"weight": {
"description": "Weighted vote value (scaled by 1000 for 0.0-1.0 range)",
"maximum": 1000,
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"uri",
"cid",
"proposalUri",
"voterDid",
"voterRole",
"vote",
"weight",
"createdAt"
],
"type": "object"
}
},
"id": "pub.chive.governance.getUserVote",
"lexicon": 1,
"revision": 1
}