social.colibri.beta.bridge.getMember
Gets an account's standing in a community for the bridge that holds the registration: whether it is a member, whether it owns the community, its roles and its effective permissions. Bridges use it to decide who may run their commands.
Details · query
| Kind | query |
|---|---|
| Authority | bridge.beta.colibri.social |
| Commit rev | 3n32ie2c7jp2x |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.channelNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.permissions.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.memberRole.properties.nameNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Gets an account's standing in a community for the bridge that holds the registration: whether it is a member, whether it owns the community, its roles and its effective permissions. Bridges use it to decide who may run their commands.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "The caller is not the bridge this registration belongs to.",
"name": "Forbidden"
},
{
"description": "No community exists at the given DID.",
"name": "CommunityNotFound"
},
{
"description": "The community has no bridge registration with that id.",
"name": "RegistrationNotFound"
},
{
"description": "The channel is neither linked nor open to the registration.",
"name": "ChannelNotLinked"
},
{
"description": "The bridge sent too many requests. Retry after the interval in the response headers.",
"name": "RateLimited"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"did": {
"description": "The account.",
"format": "did",
"type": "string"
},
"member": {
"description": "Whether the account is an admitted member that is not banned.",
"type": "boolean"
},
"owner": {
"description": "Whether the account owns the community.",
"type": "boolean"
},
"permissions": {
"description": "Effective permissions, in the community or in the given channel. Empty when the account is not a member.",
"items": {
"description": "A permission identifier.",
"type": "string"
},
"type": "array"
},
"roles": {
"description": "Roles held, highest first. Empty when the account is not a member.",
"items": {
"ref": "#memberRole",
"type": "ref"
},
"type": "array"
}
},
"required": [
"did",
"member",
"owner",
"roles",
"permissions"
],
"type": "object"
}
},
"parameters": {
"properties": {
"channel": {
"description": "A linked or open channel of the registration. When given, permissions include that channel's overrides.",
"type": "string"
},
"community": {
"description": "The community the registration belongs to.",
"format": "did",
"type": "string"
},
"did": {
"description": "The account to look up.",
"format": "did",
"type": "string"
},
"registration": {
"description": "Record key of the registration.",
"format": "tid",
"type": "string"
}
},
"required": [
"community",
"registration",
"did"
],
"type": "params"
},
"type": "query"
},
"memberRole": {
"description": "A role an account holds.",
"properties": {
"name": {
"description": "Display name.",
"type": "string"
},
"position": {
"description": "Hierarchy position. Higher outranks lower.",
"type": "integer"
},
"rkey": {
"description": "The role's record key.",
"format": "record-key",
"type": "string"
}
},
"required": [
"rkey",
"name",
"position"
],
"type": "object"
}
},
"id": "social.colibri.beta.bridge.getMember",
"lexicon": 1
}