{
"id": "pub.chive.claiming.getPendingClaims",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "Forbidden"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"claims",
"hasMore"
],
"properties": {
"claims": {
"type": "array",
"items": {
"ref": "#claimRequest",
"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"
},
"maxScore": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Maximum match score filter (0-100)"
},
"minScore": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Minimum match score filter (0-100)"
}
}
},
"description": "Get pending claims for admin review. Admin only."
},
"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
}