pub.chive.governance.getUserVote

lexicons.governance.chive.pub

{
  "$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
}

Validate Record

Validate a record against pub.chive.governance.getUserVote

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:egjghlwgts2hlcer2txilxeh
CID
bafyreiehhalelzvg4lhniiqurudq77ijmnipvhoiy2dfzmyghb6m27lrr4
Indexed At
2026-06-18 13:14 UTC
AT-URI
at://did:plc:egjghlwgts2hlcer2txilxeh/com.atproto.lexicon.schema/pub.chive.governance.getUserVote

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@