{
"id": "pub.chive.import.get",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "NotFound",
"description": "The imported eprint was not found"
}
],
"output": {
"schema": {
"ref": "#importedEprint",
"type": "ref"
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"source",
"externalId"
],
"properties": {
"source": {
"type": "string",
"maxLength": 50,
"minLength": 2,
"description": "External source identifier (e.g., arxiv, biorxiv, semanticscholar)"
},
"externalId": {
"type": "string",
"minLength": 1,
"description": "Source-specific identifier for the eprint"
}
}
},
"description": "Get an imported eprint by source and external ID"
},
"externalAuthor": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Author name"
},
"email": {
"type": "string",
"description": "Email address"
},
"orcid": {
"type": "string",
"description": "ORCID identifier"
},
"affiliation": {
"type": "string",
"description": "Institutional affiliation"
}
},
"description": "An author from an external source"
},
"importedEprint": {
"type": "object",
"required": [
"id",
"source",
"externalId",
"url",
"title",
"authors",
"importedByPlugin",
"importedAt",
"syncStatus",
"claimStatus"
],
"properties": {
"id": {
"type": "integer",
"description": "Internal import ID"
},
"doi": {
"type": "string",
"description": "DOI if assigned"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL to the eprint on the external source"
},
"title": {
"type": "string",
"description": "Eprint title"
},
"pdfUrl": {
"type": "string",
"format": "uri",
"description": "URL to PDF"
},
"source": {
"type": "string",
"description": "External source identifier"
},
"authors": {
"type": "array",
"items": {
"ref": "#externalAuthor",
"type": "ref"
},
"description": "Author list"
},
"abstract": {
"type": "string",
"description": "Abstract text"
},
"claimedAt": {
"type": "string",
"format": "datetime",
"description": "When the eprint was claimed"
},
"categories": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subject categories"
},
"externalId": {
"type": "string",
"description": "Source-specific identifier"
},
"importedAt": {
"type": "string",
"format": "datetime",
"description": "When the eprint was imported"
},
"syncStatus": {
"type": "string",
"description": "Current sync status",
"knownValues": [
"active",
"stale",
"unavailable"
]
},
"claimStatus": {
"type": "string",
"description": "Current claim status",
"knownValues": [
"unclaimed",
"pending",
"claimed"
]
},
"canonicalUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the canonical record if claimed"
},
"claimedByDid": {
"type": "string",
"format": "did",
"description": "DID of the user who claimed this eprint"
},
"lastSyncedAt": {
"type": "string",
"format": "datetime",
"description": "When the eprint was last synced"
},
"publicationDate": {
"type": "string",
"format": "datetime",
"description": "Publication date"
},
"importedByPlugin": {
"type": "string",
"description": "Plugin that imported this eprint"
}
},
"description": "An eprint imported from an external source"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}