club.hellyeah.invite
Spends one of the caller's invites to add an account to the allowlist. A handle is resolved to its DID now, and only the DID is stored. Requires service auth from a member.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hellyeah.club |
| Commit rev | 3mzz5zcndr22m |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Spends one of the caller's invites to add an account to the allowlist. A handle is resolved to its DID now, and only the DID is stored. Requires service auth from a member.",
"errors": [
{
"description": "The caller isn't on the allowlist.",
"name": "NotMember"
},
{
"description": "The caller has no unused invites.",
"name": "NoInvites"
},
{
"description": "The account is already on the allowlist. No invite was spent.",
"name": "AlreadyMember"
},
{
"description": "The account was removed; only an admin can add it back.",
"name": "Removed"
},
{
"name": "ActorNotFound"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"actor": {
"format": "at-identifier",
"type": "string"
}
},
"required": [
"actor"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"did": {
"description": "The account now on the allowlist.",
"format": "did",
"type": "string"
},
"invites": {
"description": "The caller's unused invites after this one.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"did",
"invites"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "club.hellyeah.invite",
"lexicon": 1
}