{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asobeast-com/json-schema/asobeast-com-create-email-alert-dto-schema.json",
  "title": "CreateEmailAlertDto",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asobeast-com-email-alerts-api-openapi.yml#/components/schemas/CreateEmailAlertDto",
  "type": "object",
  "properties": {
    "reviewScores": {
      "type": "array",
      "items": {
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4,
          5
        ]
      },
      "description": "The stars a review.new alert is raised for. Empty or omitted means every star."
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "events": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "enum": [
          "metadata.changed",
          "rank.dropped",
          "rank.improved",
          "rank.milestone",
          "rank.first",
          "rank.overtaken",
          "review.negative",
          "digest.weekly",
          "serp.entrant",
          "action.opened",
          "chart.entered",
          "chart.left",
          "chart.milestone",
          "review.new"
        ]
      }
    },
    "confirmDrops": {
      "type": "boolean"
    }
  },
  "required": [
    "email",
    "events"
  ]
}