full diff

pub.chive.claiming.fetchExternalPdf

From
bafyreiactzn5urkdrutltkgwuwxwrm3raqwrmjv7wsxdewhg5oh2llv3l4 indexed 2026-06-18 13:14 UTC View this version
To
bafyreiactzn5urkdrutltkgwuwxwrm3raqwrmjv7wsxdewhg5oh2llv3l4 indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Fetch external PDF through proxy to avoid CORS issues. Returns PDF binary data. Only allows fetching from trusted academic sources.",
66 "errors": [
77 {
88 "description": "Authentication is required to fetch PDFs",
99 "name": "AuthenticationRequired"
1010 },
1111 {
1212 "description": "Missing source or externalId parameter",
1313 "name": "InvalidParameters"
1414 },
1515 {
1616 "description": "The specified eprint does not exist in the external source",
1717 "name": "EprintNotFound"
1818 },
1919 {
2020 "description": "No PDF is available for this eprint",
2121 "name": "PdfNotAvailable"
2222 },
2323 {
2424 "description": "PDF URL is not from an allowed academic domain",
2525 "name": "DomainNotAllowed"
2626 },
2727 {
2828 "description": "Failed to fetch PDF from external source",
2929 "name": "FetchFailed"
3030 }
3131 ],
3232 "output": {
3333 "description": "PDF binary data with Content-Disposition header for download",
3434 "encoding": "application/pdf"
3535 },
3636 "parameters": {
3737 "properties": {
3838 "externalId": {
3939 "description": "Source-specific identifier for the eprint",
4040 "type": "string"
4141 },
4242 "source": {
4343 "description": "External source identifier (e.g., arxiv, biorxiv, medrxiv)",
4444 "type": "string"
4545 }
4646 },
4747 "required": [
4848 "source",
4949 "externalId"
5050 ],
5151 "type": "params"
5252 },
5353 "type": "query"
5454 }
5555 },
5656 "id": "pub.chive.claiming.fetchExternalPdf",
5757 "lexicon": 1,
5858 "revision": 1
5959}