Atmosphere GroupsOpen specificationBeta
MenuClose

org.atgrp.mod.defs

Shared definitions

Kind
Shared definitions
Part of
The spec
Published
On the network, the same as the spec has it.

#appealEvent object

An appeal was filed.

FieldTypeDescription
notestring
  • maxLength: 20000
  • maxGraphemes: 2000

#ejectEvent object

The subject was ejected from the group.

No fields.

#eventView object

An event in a subject's moderation history.

FieldTypeDescription
eventId (required)string
  • minLength: 1
  • maxLength: 512
createdAt (required)string (datetime)
subject (required)string (uri)An account DID or record URI.
cidstring (cid)If set, a specific version of the record.
createdBystring (did)May be withheld to protect reporters and moderators.
event (required)union of #reportEvent, #appealEvent, #statusEvent, #tagEvent, #labelEvent, #ejectEvent

#labelEvent object

A label record was written or deleted.

FieldTypeDescription
uri (required)string (at-uri)The label record.
val (required)string
  • minLength: 1
  • maxLength: 128
deletedboolean
  • default: false

#reasonMisleading token

Misleading content, impersonation, or scams.

token

#reasonNsfw token

Unwanted or unlabeled NSFW content.

token

#reasonOther token

Anything else.

token

#reasonRude token

Rude, harassing, or hateful content.

token

#reasonSpam token

Spam or unwanted promotion.

token

#reasonType string

string

  • knownValues: org.atgrp.mod.defs#reasonSpam, org.atgrp.mod.defs#reasonViolation, org.atgrp.mod.defs#reasonMisleading, org.atgrp.mod.defs#reasonNsfw, org.atgrp.mod.defs#reasonRude, org.atgrp.mod.defs#reasonOther

#reasonViolation token

Breaks a group rule.

token

#reportEvent object

A report was filed.

FieldTypeDescription
reasonType (required)#reasonType
reasonstring
  • maxLength: 20000
  • maxGraphemes: 2000
rulestring (at-uri)

#statusEvent object

A moderator changed the subject's status or added a note.

FieldTypeDescription
status (required)string
  • enum: open, resolved
The status after this event.
notestring
  • maxLength: 20000
  • maxGraphemes: 2000
Only visible to moderators.

#subjectView object

A subject in the moderation queue.

FieldTypeDescription
subject (required)string (uri)An account DID or record URI.
cidstring (cid)If set, a specific version of the record.
status (required)string
  • enum: open, resolved
createdAt (required)string (datetime)
updatedAt (required)string (datetime)
reportCountinteger
  • minimum: 0
tagsarray of string
  • each item, minLength: 1
  • each item, maxLength: 128
Free-form moderator tags in label value syntax ([a-z-]+).

#tagEvent object

A moderator added or removed tags.

FieldTypeDescription
addarray of string
  • each item, minLength: 1
  • each item, maxLength: 128
removearray of string
  • each item, minLength: 1
  • each item, maxLength: 128
The schema in the spec
{
  "lexicon": 1,
  "id": "org.atgrp.mod.defs",
  "defs": {
    "reasonType": {
      "type": "string",
      "knownValues": [
        "org.atgrp.mod.defs#reasonSpam",
        "org.atgrp.mod.defs#reasonViolation",
        "org.atgrp.mod.defs#reasonMisleading",
        "org.atgrp.mod.defs#reasonNsfw",
        "org.atgrp.mod.defs#reasonRude",
        "org.atgrp.mod.defs#reasonOther"
      ]
    },
    "reasonSpam": {
      "type": "token",
      "description": "Spam or unwanted promotion."
    },
    "reasonViolation": {
      "type": "token",
      "description": "Breaks a group rule."
    },
    "reasonMisleading": {
      "type": "token",
      "description": "Misleading content, impersonation, or scams."
    },
    "reasonNsfw": {
      "type": "token",
      "description": "Unwanted or unlabeled NSFW content."
    },
    "reasonRude": {
      "type": "token",
      "description": "Rude, harassing, or hateful content."
    },
    "reasonOther": {
      "type": "token",
      "description": "Anything else."
    },
    "subjectView": {
      "type": "object",
      "description": "A subject in the moderation queue.",
      "required": [
        "subject",
        "status",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "subject": {
          "type": "string",
          "format": "uri",
          "description": "An account DID or record URI."
        },
        "cid": {
          "type": "string",
          "format": "cid",
          "description": "If set, a specific version of the record."
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "resolved"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "reportCount": {
          "type": "integer",
          "minimum": 0
        },
        "tags": {
          "type": "array",
          "description": "Free-form moderator tags in label value syntax ([a-z-]+).",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        }
      }
    },
    "eventView": {
      "type": "object",
      "description": "An event in a subject's moderation history.",
      "required": [
        "eventId",
        "createdAt",
        "subject",
        "event"
      ],
      "properties": {
        "eventId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "subject": {
          "type": "string",
          "format": "uri",
          "description": "An account DID or record URI."
        },
        "cid": {
          "type": "string",
          "format": "cid",
          "description": "If set, a specific version of the record."
        },
        "createdBy": {
          "type": "string",
          "format": "did",
          "description": "May be withheld to protect reporters and moderators."
        },
        "event": {
          "type": "union",
          "refs": [
            "#reportEvent",
            "#appealEvent",
            "#statusEvent",
            "#tagEvent",
            "#labelEvent",
            "#ejectEvent"
          ]
        }
      }
    },
    "reportEvent": {
      "type": "object",
      "description": "A report was filed.",
      "required": [
        "reasonType"
      ],
      "properties": {
        "reasonType": {
          "type": "ref",
          "ref": "#reasonType"
        },
        "reason": {
          "type": "string",
          "maxGraphemes": 2000,
          "maxLength": 20000
        },
        "rule": {
          "type": "string",
          "format": "at-uri"
        }
      }
    },
    "appealEvent": {
      "type": "object",
      "description": "An appeal was filed.",
      "properties": {
        "note": {
          "type": "string",
          "maxGraphemes": 2000,
          "maxLength": 20000
        }
      }
    },
    "statusEvent": {
      "type": "object",
      "description": "A moderator changed the subject's status or added a note.",
      "required": [
        "status"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "open",
            "resolved"
          ],
          "description": "The status after this event."
        },
        "note": {
          "type": "string",
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "description": "Only visible to moderators."
        }
      }
    },
    "tagEvent": {
      "type": "object",
      "description": "A moderator added or removed tags.",
      "properties": {
        "add": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "remove": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        }
      }
    },
    "labelEvent": {
      "type": "object",
      "description": "A label record was written or deleted.",
      "required": [
        "uri",
        "val"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "The label record."
        },
        "val": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "deleted": {
          "type": "boolean",
          "default": false
        }
      }
    },
    "ejectEvent": {
      "type": "object",
      "description": "The subject was ejected from the group.",
      "properties": {}
    }
  }
}

All of the spec's lexicons