{
"id": "pub.chive.endorsement.listForAuthorPapers",
"defs": {
"main": {
"type": "query",
"errors": [],
"output": {
"schema": {
"type": "object",
"required": [
"endorsements",
"hasMore"
],
"properties": {
"total": {
"type": "integer",
"description": "Total number of endorsements"
},
"cursor": {
"type": "string",
"description": "Cursor for next page"
},
"hasMore": {
"type": "boolean",
"description": "Whether more results are available"
},
"endorsements": {
"type": "array",
"items": {
"ref": "#endorsementView",
"type": "ref"
},
"description": "List of endorsements on the author's papers"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"authorDid"
],
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of results to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor for next page"
},
"authorDid": {
"type": "string",
"format": "did",
"description": "DID of the paper author"
}
}
},
"description": "List endorsements received on an author's papers"
},
"authorRef": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"avatar": {
"type": "string",
"format": "uri"
},
"handle": {
"type": "string"
},
"displayName": {
"type": "string"
}
}
},
"endorsementView": {
"type": "object",
"required": [
"uri",
"cid",
"eprintUri",
"endorser",
"contributions",
"createdAt"
],
"properties": {
"cid": {
"type": "string",
"description": "Content identifier"
},
"uri": {
"type": "string",
"format": "at-uri",
"description": "Endorsement AT-URI"
},
"comment": {
"type": "string",
"maxLength": 1000,
"description": "Optional comment"
},
"endorser": {
"ref": "#authorRef",
"type": "ref"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Creation timestamp"
},
"eprintUri": {
"type": "string",
"format": "at-uri",
"description": "Endorsed eprint AT-URI"
},
"eprintTitle": {
"type": "string",
"description": "Title of the endorsed eprint"
},
"contributions": {
"type": "array",
"items": {
"type": "string",
"knownValues": [
"methodological",
"analytical",
"theoretical",
"empirical",
"conceptual",
"technical",
"data",
"replication",
"reproducibility",
"synthesis",
"interdisciplinary",
"pedagogical",
"visualization",
"societal-impact",
"clinical"
]
},
"minLength": 1,
"description": "Contribution types being endorsed"
}
},
"description": "View of an endorsement received"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}