{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Runs a pair's automod rules, or draft rules in their place, over a sample record as a new version, writing and queuing nothing (D95). The AppView asks the feed generator under its own service auth. Effective admins, the community identity and the pair's own admins.",
      "errors": [
        {
          "name": "NotAdmin"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "InvalidRule"
        },
        {
          "name": "AutomodUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "record": {
              "properties": {
                "collection": {
                  "format": "nsid",
                  "type": "string"
                },
                "labels": {
                  "description": "Labels the sample already carries.",
                  "items": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "type": "array"
                },
                "value": {
                  "type": "unknown"
                }
              },
              "required": [
                "collection",
                "value"
              ],
              "type": "object"
            },
            "rules": {
              "description": "Draft rules, each a us.off-the-clock.automod.rule value with an optional rkey, run in place of the pair's rules with the same rkeys.",
              "items": {
                "type": "unknown"
              },
              "maxLength": 100,
              "type": "array"
            },
            "space": {
              "description": "The pair's TID.",
              "format": "tid",
              "type": "string"
            }
          },
          "required": [
            "space",
            "record"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "labels": {
              "items": {
                "maxLength": 128,
                "type": "string"
              },
              "type": "array"
            },
            "outcomes": {
              "items": {
                "ref": "us.off-the-clock.admin.defs#automodOutcome",
                "type": "ref"
              },
              "type": "array"
            },
            "warning": {
              "description": "The types of the content warning the run would write beside the content-warning it adds, the matching rules' in rule order, each once (CW-9).",
              "ref": "us.off-the-clock.automod.rule#warning",
              "type": "ref"
            }
          },
          "required": [
            "outcomes",
            "labels"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.admin.testAutomod",
  "lexicon": 1
}
