{
"id": "app.tempomusic.staff.unsuspendAccount",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"reason": {
"type": "string",
"maxLength": 2000
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "Forbidden",
"description": "The caller is not an active moderator."
},
{
"name": "AccountNotSuspended",
"description": "No suspension exists for this account."
},
{
"name": "AccountBanned",
"description": "The account is banned — a ban cannot be lifted."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"auditEntryId"
],
"properties": {
"auditEntryId": {
"type": "integer",
"minimum": 1
}
}
},
"encoding": "application/json"
},
"description": "Lift an account suspension: deletes the current state row (history stays in the audit log) and instantly readmits the account's content on the public surface. Also accepts a LAPSED suspension (removes the stale row). Cannot lift a ban. Requires the `moderator` role. Writes an `accountUnsuspended` audit row."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}