{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SMProxy provider settings v1",
  "type": "object",
  "required": [
    "version",
    "settings"
  ],
  "properties": {
    "version": {
      "const": 1,
      "type": "integer"
    },
    "settings": {
      "type": "object",
      "properties": {
        "autoConnect": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "autoConnectOnWifi": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "autoConnectOnMobile": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "launchAtLogin": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "liveActivityEnabled": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "silentReconnect": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "enableTrafficStats": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "appTextSize": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": -3,
          "maximum": 3
        },
        "theme": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 4096,
          "enum": [
            "system",
            "light",
            "dark",
            null
          ]
        },
        "subAutoRefresh": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "subRefreshOnOpen": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "collapsibleSubs": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "showSpeed": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "showSessionTraffic": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "launchAtBoot": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "autoConnectDelaySeconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "maximum": 300
        },
        "appLanguage": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 4096,
          "enum": [
            "system",
            "ru",
            "en",
            null
          ]
        },
        "showInMenuBar": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
