app.protoimsg.chat.role

Assign a moderator role to a user for a specific room.

Details · record, key tid
Kindrecord
Record keytid
Authoritychat.protoimsg.app
Indexed
cid bafyreiflbrt7sls5vdbvoouk75keqwiq2mdjhuczw6gnsssw7qirjxz52i

Checks

Valid
  • unlimited-string defs.main.record.properties.roleNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Assign a moderator role to a user for a specific room.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "Timestamp of role assignment.",
            "format": "datetime",
            "type": "string"
          },
          "role": {
            "description": "The role being assigned.",
            "knownValues": [
              "moderator",
              "owner"
            ],
            "type": "string"
          },
          "room": {
            "description": "AT-URI of the room.",
            "format": "at-uri",
            "type": "string"
          },
          "subject": {
            "description": "DID of the user being assigned the role.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "room",
          "subject",
          "role",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.protoimsg.chat.role",
  "lexicon": 1
}