{
"id": "town.muni.arbiter.createArbiter",
"defs": {
"main": {
"type": "procedure",
"errors": [
{
"name": "ErrPermissionDenied",
"description": "The requesting user is not allowed to create an arbiter."
},
{
"name": "ErrProvisioningFailed",
"description": "Account creation or initial record writes failed."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
}
}
},
"encoding": "application/json"
},
"description": "Provision a brand-new stewarded PDS account and bring its arbiter online.\n\nThe caller authenticates via serviceAuth (aud = arbiter-server DID,\nlxm = town.muni.arbiter.createArbiter). The server creates a new account\non the configured default PDS using an invite code + random password,\nstores the credentials, writes the service + recovery records from the\nnew account's session, and loads the (default/empty) policies."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}