{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://prbot.ucmod.com/ai-settings.v1.json",
  "title": "UC PR Bot group settings v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema"],
  "properties": {
    "schema": {"const": "ucprbot.settings.v1"},
    "group_language": {
      "type": "string",
      "enum": ["ru", "en", "de", "hi", "id", "tr", "fr", "es", "pt", "uk", "uz", "vi", "zh-hans", "ar", "kk", "sr"]
    },
    "logic": {"type": "string", "enum": ["sub_only", "invite_only", "and", "or"]},
    "subscriptions": {
      "type": "array",
      "maxItems": 5,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["ref"],
        "properties": {
          "ref": {"type": "string", "maxLength": 256},
          "enabled": {"type": "boolean"}
        }
      }
    },
    "invite_count": {"type": "integer", "enum": [0, 1, 2, 3]},
    "invite_watch": {"type": "string", "enum": ["now", "1d", "3d", "7d", "14d"]},
    "access_days": {"type": ["integer", "null"], "enum": [30, 60, 90, 180, null]},
    "scope": {"type": "string", "enum": ["new", "all"]},
    "recheck": {"type": "boolean"},
    "welcome": {"type": "boolean"},
    "notice_ttl": {"type": ["integer", "string"]},
    "antispam": {"type": "boolean"},
    "prompt_text": {"type": ["string", "null"], "maxLength": 200}
  }
}
