{
"id": "rip.pds.account.resetPassword",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The account to issue a new password for."
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AccountNotFound",
"description": "No live account with that DID was minted by the caller."
},
{
"name": "ResetFailed",
"description": "The PDS refused the change."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"account",
"password",
"pdsEndpoint"
],
"properties": {
"account": {
"ref": "rip.pds.account.defs#accountView",
"type": "ref"
},
"password": {
"type": "string",
"description": "Shown once. The server does not store it in a recoverable form, so losing this means resetting again."
},
"pdsEndpoint": {
"type": "string",
"format": "uri"
}
}
},
"encoding": "application/json"
},
"description": "Issue a new password for an account the calling account owns. The old password is not recoverable and is replaced outright. Existing sessions on the account are not revoked."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}