{
"id": "dev.cartridge.claims.setupAdmin",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"properties": {
"adminDid": {
"type": "string",
"format": "did",
"description": "DID to add as admin. Omit on first call to just create the space."
}
}
},
"encoding": "application/json"
},
"output": {
"schema": {
"type": "object",
"required": [
"spaceUri"
],
"properties": {
"created": {
"type": "boolean",
"description": "True if the admin space was created by this call"
},
"spaceUri": {
"type": "string",
"format": "at-uri"
},
"memberAdded": {
"type": "boolean",
"description": "True if adminDid was added as a member"
}
}
},
"encoding": "application/json"
},
"description": "Bootstrap the claims admin space or add a member to it. Creates the admin space on first call; subsequent calls can add new admin DIDs."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}