us.off-the-clock.automod.rule

One automod rule of a pair, in its management half (D95). The feed generator runs a pair's rules over each new or changed record version in its content half, highest priority first and oldest first on a tie, and applies the labels of each rule that matches.

Details · record, key tid
Kindrecord
Record keytid
Authorityautomod.off-the-clock.us
Indexed

Showing version bafyreibtif6lqlt4moce442i6llhh3xkqxiprfjbdb7oda3k6descg7yha. Show the latest

cid bafyreibtif6lqlt4moce442i6llhh3xkqxiprfjbdb7oda3k6descg7yha

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One automod rule of a pair, in its management half (D95). The feed generator runs a pair's rules over each new or changed record version in its content half, highest priority first and oldest first on a tie, and applies the labels of each rule that matches.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "enabled": {
            "description": "False turns the rule off; absent is on.",
            "type": "boolean"
          },
          "engine": {
            "knownValues": [
              "datalogic",
              "jev"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "labels": {
            "description": "The labels a match applies.",
            "items": {
              "knownValues": [
                "nsfw-suggestive",
                "nsfw-explicit",
                "spoiler",
                "content-warning"
              ],
              "maxLength": 128,
              "type": "string"
            },
            "maxLength": 8,
            "minLength": 1,
            "type": "array"
          },
          "name": {
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "precondition": {
            "ref": "#precondition",
            "type": "ref"
          },
          "priority": {
            "description": "Rules run from the highest priority to the lowest.",
            "type": "integer"
          },
          "rule": {
            "description": "The engine's fields: a JSON Logic object for datalogic; for jev, {kind: noul|choice, instructions, criteria?, options?, matches?, threshold} with threshold a whole percent from 1 to 100.",
            "type": "unknown"
          },
          "stackKey": {
            "description": "Once a rule with this key matches, later rules with the same key are skipped for that record.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "name",
          "priority",
          "engine",
          "rule",
          "labels",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "precondition": {
      "description": "Checked before the rule runs (AUT-9): when `when` holds over the rule's document, `rule` skips this rule alone and `stack` skips it and every later rule sharing its stackKey.",
      "properties": {
        "stop": {
          "knownValues": [
            "rule",
            "stack"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "when": {
          "description": "A JSON Logic object over the record's document, its labels included.",
          "type": "unknown"
        }
      },
      "required": [
        "stop",
        "when"
      ],
      "type": "object"
    }
  },
  "id": "us.off-the-clock.automod.rule",
  "lexicon": 1
}