Atmosphere GroupsOpen specificationBeta
MenuClose

org.atgrp.labeler

The group's label values and the reports it accepts. Written by the group in the members space.

Kind
A record
Part of
The spec
Published
On the network, the same as the spec has it.
On the reference host
fyi.opensocial.labeler, its schema of the same name. It may differ from this one.

main record

Record key: literal:self

FieldTypeDescription
policies (required)#policies
reasonTypesarray of org.atgrp.mod.defs#reasonTypeAccepted report reasons. Omit to accept all.
subjectTypesarray of string
  • each item, knownValues: account, record
Accepted report subject types. Omit to accept all.
subjectCollectionsarray of string (nsid)Accepted report record types. Omit to accept all.

#policies object

The group's label values and their definitions.

FieldTypeDescription
labelValues (required)array of com.atproto.label.defs#labelValueLabel values the group applies.
labelValueDefinitionsarray of com.atproto.label.defs#labelValueDefinitionDefinitions for group-defined label values.
The schema in the spec
{
  "lexicon": 1,
  "id": "org.atgrp.labeler",
  "defs": {
    "main": {
      "type": "record",
      "description": "The group's label values and the reports it accepts. Written by the group in the members space.",
      "key": "literal:self",
      "record": {
        "type": "object",
        "required": [
          "policies"
        ],
        "properties": {
          "policies": {
            "type": "ref",
            "ref": "#policies"
          },
          "reasonTypes": {
            "type": "array",
            "description": "Accepted report reasons. Omit to accept all.",
            "items": {
              "type": "ref",
              "ref": "org.atgrp.mod.defs#reasonType"
            }
          },
          "subjectTypes": {
            "type": "array",
            "description": "Accepted report subject types. Omit to accept all.",
            "items": {
              "type": "string",
              "knownValues": [
                "account",
                "record"
              ]
            }
          },
          "subjectCollections": {
            "type": "array",
            "description": "Accepted report record types. Omit to accept all.",
            "items": {
              "type": "string",
              "format": "nsid"
            }
          }
        }
      }
    },
    "policies": {
      "type": "object",
      "description": "The group's label values and their definitions.",
      "required": [
        "labelValues"
      ],
      "properties": {
        "labelValues": {
          "type": "array",
          "description": "Label values the group applies.",
          "items": {
            "type": "ref",
            "ref": "com.atproto.label.defs#labelValue"
          }
        },
        "labelValueDefinitions": {
          "type": "array",
          "description": "Definitions for group-defined label values.",
          "items": {
            "type": "ref",
            "ref": "com.atproto.label.defs#labelValueDefinition"
          }
        }
      }
    }
  }
}

All of the spec's lexicons