{
"id": "pub.chive.claiming.getUserClaims",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"claims",
"hasMore"
],
"properties": {
"claims": {
"type": "array",
"items": {
"ref": "#claimWithPaper",
"type": "ref"
}
},
"cursor": {
"type": "string",
"description": "Pagination cursor for next page"
},
"hasMore": {
"type": "boolean",
"description": "Whether more results are available"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of claims to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor"
},
"status": {
"type": "string",
"description": "Filter by claim status",
"knownValues": [
"pending",
"approved",
"rejected",
"expired"
]
}
}
},
"description": "Get claims for the authenticated user"
},
"paperDetails": {
"type": "object",
"required": [
"source",
"externalId",
"externalUrl",
"title",
"authors"
],
"properties": {
"doi": {
"type": "string",
"description": "DOI if assigned"
},
"title": {
"type": "string",
"description": "Eprint title"
},
"source": {
"type": "string",
"description": "Source system"
},
"authors": {
"type": "array",
"items": {
"ref": "#externalAuthor",
"type": "ref"
},
"description": "Author list"
},
"externalId": {
"type": "string",
"description": "Source-specific identifier"
},
"externalUrl": {
"type": "string",
"format": "uri",
"description": "URL to the eprint"
},
"publicationDate": {
"type": "string",
"description": "Publication date"
}
}
},
"claimWithPaper": {
"type": "object",
"required": [
"id",
"importId",
"claimantDid",
"status",
"createdAt",
"paper"
],
"properties": {
"id": {
"type": "integer",
"description": "Claim request ID"
},
"paper": {
"ref": "#paperDetails",
"type": "ref"
},
"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"
}
}
},
"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": "Institution affiliation"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}