A community based topic aggregation platform built on atproto

refactor(lexicon): remove vote XRPC procedure definitions

Remove createVote and deleteVote XRPC procedure lexicons. These
endpoints are no longer exposed by the AppView.

Clients use standard atProto repo operations instead:
- com.atproto.repo.createRecord
- com.atproto.repo.deleteRecord

Keep social.coves.interaction.vote.json (record type definition)
as it's still needed for Jetstream indexing.

Deleted:
- social.coves.interaction.createVote.json (67 lines)
- social.coves.interaction.deleteVote.json (37 lines)

Changed files
-104
internal
atproto
lexicon
social
coves
-67
internal/atproto/lexicon/social/coves/interaction/createVote.json
···
-
{
-
"lexicon": 1,
-
"id": "social.coves.interaction.createVote",
-
"defs": {
-
"main": {
-
"type": "procedure",
-
"description": "Vote on a post or comment",
-
"input": {
-
"encoding": "application/json",
-
"schema": {
-
"type": "object",
-
"required": ["subject", "direction"],
-
"properties": {
-
"subject": {
-
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the post or comment to vote on"
-
},
-
"direction": {
-
"type": "string",
-
"enum": ["up", "down"],
-
"description": "Vote direction"
-
}
-
}
-
}
-
},
-
"output": {
-
"encoding": "application/json",
-
"schema": {
-
"type": "object",
-
"required": ["uri", "cid"],
-
"properties": {
-
"uri": {
-
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the created vote record"
-
},
-
"cid": {
-
"type": "string",
-
"format": "cid",
-
"description": "CID of the created vote record"
-
},
-
"existing": {
-
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of existing vote if updating"
-
}
-
}
-
}
-
},
-
"errors": [
-
{
-
"name": "SubjectNotFound",
-
"description": "Post or comment not found"
-
},
-
{
-
"name": "NotAuthorized",
-
"description": "User is not authorized to vote"
-
},
-
{
-
"name": "Banned",
-
"description": "User is banned from this community"
-
}
-
]
-
}
-
}
-
}
-37
internal/atproto/lexicon/social/coves/interaction/deleteVote.json
···
-
{
-
"lexicon": 1,
-
"id": "social.coves.interaction.deleteVote",
-
"defs": {
-
"main": {
-
"type": "procedure",
-
"description": "Remove a vote from a post or comment",
-
"input": {
-
"encoding": "application/json",
-
"schema": {
-
"type": "object",
-
"required": ["subject"],
-
"properties": {
-
"subject": {
-
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the post or comment to remove vote from"
-
}
-
}
-
}
-
},
-
"output": {
-
"encoding": "application/json",
-
"schema": {
-
"type": "object",
-
"properties": {}
-
}
-
},
-
"errors": [
-
{
-
"name": "VoteNotFound",
-
"description": "No vote found on this subject"
-
}
-
]
-
}
-
}
-
}