social.colibri.moderation

A moderation event scoped to the community that owns this repo. Acts as an append-only audit log; current state is derived from the action history per subject.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritycolibri.social
Indexed
cid bafyreig725sx2b7imjp5ff2ilfec353qugfmd4r4tyrfaxhq6nn5axpjw4

Checks

Valid
  • field-name-syntax defs.main.record.properties.$typeThe field name $type should be letters and digits, starting with a letter.
  • unlimited-string defs.main.record.properties.actionNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A moderation event scoped to the community that owns this repo. Acts as an append-only audit log; current state is derived from the action history per subject.",
      "key": "tid",
      "record": {
        "properties": {
          "$type": {
            "description": "The type of the record.",
            "format": "nsid",
            "type": "string"
          },
          "action": {
            "description": "The moderation action being recorded.",
            "knownValues": [
              "ban",
              "unban",
              "hideMessage",
              "unhideMessage",
              "kick",
              "suppressEmbeds",
              "unsuppressEmbeds"
            ],
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "createdBy": {
            "description": "DID of the issuer (typically a member with the required permission).",
            "format": "did",
            "type": "string"
          },
          "embeds": {
            "description": "URLs this action applies to, used by suppressEmbeds and unsuppressEmbeds. Ignored by every other action.",
            "items": {
              "format": "uri",
              "type": "string"
            },
            "type": "array"
          },
          "reason": {
            "description": "Optional human-readable reason for the action.",
            "maxLength": 512,
            "type": "string"
          },
          "subject": {
            "ref": "lex:social.colibri.moderation#subject",
            "type": "ref"
          }
        },
        "required": [
          "action",
          "subject",
          "createdBy",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "subject": {
      "description": "Target of the moderation action. Use `did` for user-targeted actions, `uri` for content-targeted actions.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "social.colibri.moderation",
  "lexicon": 1,
  "revision": 2
}