{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "precedence",
    "definition"
  ],
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "personal",
        "workspace"
      ],
      "default": "personal"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "precedence": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "definition": {
      "$ref": "#/components/schemas/InboxAttentionPolicyDefinition"
    }
  }
}