{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Whether a lowercase Community name is free. Names are globally unique at the AppView, and a record whose name is taken is rejected at projection time rather than at write time, so clients check before writing.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"available": {
"type": "boolean"
},
"name": {
"type": "string"
},
"reason": {
"description": "Why the name is unavailable. Absent when available.",
"knownValues": [
"taken",
"invalid",
"reserved"
],
"type": "string"
}
},
"required": [
"name",
"available"
],
"type": "object"
}
},
"parameters": {
"properties": {
"name": {
"maxLength": 63,
"minLength": 2,
"type": "string"
}
},
"required": [
"name"
],
"type": "params"
},
"type": "query"
}
},
"id": "com.getorbyt.community.checkName",
"lexicon": 1
}