{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Setting Post based auto labeling.",
      "key": "tid",
      "record": {
        "properties": {
          "action": {
            "description": "Required for 'account', It should be 'add' or 'remove'",
            "type": "string"
          },
          "appliedTo": {
            "description": "'account' or 'post'",
            "type": "string"
          },
          "condition": {
            "description": "Setting apply condition with regex",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "durationInHours": {
            "description": "Hour based label dulation. 0 will be no duration.",
            "type": "integer"
          },
          "label": {
            "description": "If condition are matched, which label are applyed or removed.",
            "type": "string"
          }
        },
        "required": [
          "label",
          "condition",
          "appliedTo",
          "durationInHours",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "blue.rito.label.auto.post",
  "lexicon": 1
}
