{
"id": "pub.chive.claiming.requestCoauthorship",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"eprintUri",
"eprintOwnerDid",
"claimantName",
"authorIndex",
"authorName"
],
"properties": {
"message": {
"type": "string",
"maxLength": 1000,
"description": "Optional message to PDS owner"
},
"eprintUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the eprint record"
},
"authorName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Name of the author entry being claimed"
},
"authorIndex": {
"type": "integer",
"minimum": 0,
"description": "Index of the author entry being claimed (0-based)"
},
"claimantName": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Display name for the request"
},
"eprintOwnerDid": {
"type": "string",
"format": "did",
"description": "DID of the PDS owner"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "NotFound"
},
{
"name": "InvalidRequest"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"request"
],
"properties": {
"request": {
"ref": "#coauthorRequest",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Request co-authorship on an existing eprint in another user's PDS"
},
"coauthorRequest": {
"type": "object",
"required": [
"id",
"eprintUri",
"eprintOwnerDid",
"claimantDid",
"claimantName",
"authorIndex",
"authorName",
"status",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"description": "Request ID"
},
"status": {
"type": "string",
"description": "Request status",
"knownValues": [
"pending",
"approved",
"rejected"
]
},
"message": {
"type": "string",
"description": "Message from claimant"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When the request was created"
},
"eprintUri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the eprint record"
},
"authorName": {
"type": "string",
"description": "Name of the author entry being claimed"
},
"reviewedAt": {
"type": "string",
"format": "datetime",
"description": "When the request was reviewed"
},
"authorIndex": {
"type": "integer",
"description": "Index of the author entry being claimed (0-based)"
},
"claimantDid": {
"type": "string",
"format": "did",
"description": "DID of the claimant"
},
"claimantName": {
"type": "string",
"description": "Display name at time of request"
},
"eprintOwnerDid": {
"type": "string",
"format": "did",
"description": "DID of the PDS owner"
},
"rejectionReason": {
"type": "string",
"description": "Rejection reason if rejected"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}