{
"id": "pub.chive.claiming.startClaimFromExternal",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"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"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "NotFound"
},
{
"name": "InvalidRequest"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"claim"
],
"properties": {
"claim": {
"ref": "#claimRequest",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Start a claim directly from an external search result, importing on demand if needed"
},
"claimRequest": {
"type": "object",
"required": [
"id",
"importId",
"claimantDid",
"status",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"description": "Claim request ID"
},
"status": {
"type": "string",
"description": "Claim status",
"knownValues": [
"pending",
"approved",
"rejected",
"expired"
]
},
"importId": {
"type": "integer",
"description": "ID of the imported eprint"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When the claim was created"
},
"expiresAt": {
"type": "string",
"format": "datetime",
"description": "When the claim expires"
},
"reviewedAt": {
"type": "string",
"format": "datetime",
"description": "When the claim was reviewed"
},
"reviewedBy": {
"type": "string",
"format": "did",
"description": "DID of the admin who reviewed"
},
"claimantDid": {
"type": "string",
"format": "did",
"description": "DID of the claimant"
},
"canonicalUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the canonical record in user PDS"
},
"rejectionReason": {
"type": "string",
"description": "Reason for rejection if rejected"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}