{
"id": "social.colibri.beta.community.registerCredentials",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"community",
"identifier",
"password"
],
"properties": {
"password": {
"type": "string",
"description": "The password or app password used to authenticate with the community's PDS."
},
"community": {
"type": "string",
"format": "did",
"description": "The community the credentials belong to."
},
"identifier": {
"type": "string",
"description": "The identifier used to authenticate with the community's PDS, such as its handle or DID."
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthRequired",
"description": "The request is missing, malformed, or unverifiable service auth."
},
{
"name": "Forbidden",
"description": "The requesting user lacks permission to register credentials for this community."
},
{
"name": "InvalidRequest",
"description": "The arguments are inconsistent or malformed beyond schema validation."
},
{
"name": "CredentialsRejected",
"description": "The PDS refused the identifier and password."
},
{
"name": "UpstreamFailure",
"description": "A PDS or third-party call the AppView depends on failed."
}
],
"output": {
"schema": {
"type": "object",
"required": [],
"properties": {}
},
"encoding": "application/json"
},
"description": "Hands the AppView credentials for a community hosted elsewhere, so it can administer a community it did not create. The password is stored encrypted at rest."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}