pub.chive.eprint.listRelatedWorks
List user-curated related works for an eprint
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · query
| Kind | query |
|---|---|
| Authority | eprint.chive.pub |
| Indexed |
Showing version bafyreihjfcdezxj2w24tby4e3lvz5heq3eaz2muo63ixtxge3ifbslkt3m. Show the latest
Checks
Validunlimited-stringdefs.main.parameters.properties.cursorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.cursorNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.relatedWorkView.properties.descriptionNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.relatedWorkView.properties.relationTypeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.relatedWorkView.properties.targetTitleNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "List user-curated related works for an eprint",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cursor": {
"description": "Pagination cursor for next page",
"type": "string"
},
"relatedWorks": {
"items": {
"ref": "#relatedWorkView",
"type": "ref"
},
"type": "array"
},
"total": {
"description": "Total number of related works",
"type": "integer"
}
},
"required": [
"relatedWorks"
],
"type": "object"
}
},
"parameters": {
"properties": {
"cursor": {
"description": "Pagination cursor",
"type": "string"
},
"eprintUri": {
"description": "AT-URI of the eprint to list related works for",
"format": "at-uri",
"type": "string"
},
"limit": {
"default": 50,
"description": "Maximum number of related works to return",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"required": [
"eprintUri"
],
"type": "params"
},
"type": "query"
},
"relatedWorkView": {
"properties": {
"createdAt": {
"description": "When this related work link was created",
"format": "datetime",
"type": "string"
},
"curatorDid": {
"description": "DID of the user who created this link",
"format": "did",
"type": "string"
},
"description": {
"description": "Description of the relationship",
"type": "string"
},
"relationType": {
"description": "Type of relationship",
"type": "string"
},
"sourceEprintUri": {
"description": "AT-URI of the source eprint",
"format": "at-uri",
"type": "string"
},
"targetEprintUri": {
"description": "AT-URI of the related eprint",
"format": "at-uri",
"type": "string"
},
"targetTitle": {
"description": "Title of the related eprint (resolved from index)",
"type": "string"
},
"uri": {
"description": "AT-URI of the related work record",
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"sourceEprintUri",
"targetEprintUri",
"relationType",
"curatorDid",
"createdAt"
],
"type": "object"
}
},
"id": "pub.chive.eprint.listRelatedWorks",
"lexicon": 1,
"revision": 1
}