{
"id": "pub.chive.claiming.getSubmissionData",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "NotFound"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"title",
"abstract",
"authors",
"keywords",
"source",
"externalId",
"externalUrl"
],
"properties": {
"doi": {
"type": "string",
"description": "DOI if available"
},
"title": {
"type": "string",
"description": "Prefilled title"
},
"pdfUrl": {
"type": "string",
"format": "uri",
"description": "PDF URL if available"
},
"source": {
"type": "string",
"description": "Source system"
},
"authors": {
"type": "array",
"items": {
"ref": "#submissionAuthor",
"type": "ref"
},
"description": "Prefilled authors"
},
"abstract": {
"type": "string",
"description": "Prefilled abstract"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
},
"description": "Prefilled keywords/categories"
},
"externalId": {
"type": "string",
"description": "Source-specific external ID"
},
"externalIds": {
"ref": "#externalIds",
"type": "ref"
},
"externalUrl": {
"type": "string",
"format": "uri",
"description": "External URL to the paper"
},
"publicationDate": {
"type": "string",
"format": "datetime",
"description": "Publication date"
},
"existingChivePaper": {
"ref": "#existingChivePaper",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"source",
"externalId"
],
"properties": {
"source": {
"type": "string",
"maxLength": 50,
"minLength": 2,
"description": "External source (e.g., arxiv, semanticscholar)"
},
"externalId": {
"type": "string",
"description": "Source-specific identifier"
}
}
},
"description": "Get prefilled form data for claiming a paper from an external source"
},
"externalIds": {
"type": "object",
"properties": {
"doi": {
"type": "string",
"description": "DOI"
},
"arxivId": {
"type": "string",
"description": "arXiv identifier"
}
}
},
"existingAuthor": {
"type": "object",
"required": [
"name"
],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "Author DID if claimed"
},
"name": {
"type": "string",
"description": "Author name"
}
}
},
"submissionAuthor": {
"type": "object",
"required": [
"order",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Author name"
},
"email": {
"type": "string",
"description": "Email address"
},
"orcid": {
"type": "string",
"description": "ORCID identifier"
},
"order": {
"type": "integer",
"minimum": 1,
"description": "Author order (1-indexed)"
},
"affiliation": {
"type": "string",
"description": "Institution affiliation"
}
}
},
"existingChivePaper": {
"type": "object",
"required": [
"uri",
"title",
"authors",
"createdAt"
],
"properties": {
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the existing paper"
},
"title": {
"type": "string",
"description": "Paper title"
},
"authors": {
"type": "array",
"items": {
"ref": "#existingAuthor",
"type": "ref"
},
"description": "Author list"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When the paper was indexed"
}
},
"description": "Existing Chive paper if this is a duplicate"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}