{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "imunify.backup.v1.AcronisStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_system": {
          "const": "acronis",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "type": "string"
        },
        "state": {
          "enum": [
            "backup",
            "done",
            "not_running"
          ],
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "error",
        "log_path",
        "state",
        "timestamp",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.BackupDisabledStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_system": {
          "type": "null"
        },
        "enabled": {
          "const": false,
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "type": "null"
        },
        "state": {
          "const": "not_running",
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "log_path",
        "state"
      ],
      "type": "object"
    },
    "imunify.backup.v1.BackupEndpointStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_system": {
          "enum": [
            "acronis",
            "cloudlinux",
            "cloudlinux_on_premise",
            "r1soft"
          ],
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "state": {
          "enum": [
            "activation",
            "backup",
            "done",
            "init",
            "not_running"
          ],
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "error",
        "log_path",
        "state"
      ],
      "type": "object"
    },
    "imunify.backup.v1.BackupInitStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_system": {
          "enum": [
            "acronis",
            "cloudlinux",
            "cloudlinux_on_premise",
            "clusterlogics"
          ],
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "description": "The frozen StatusInitData leaves error unconstrained."
        },
        "log_path": {
          "type": "string"
        },
        "state": {
          "const": "init",
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "error",
        "log_path",
        "state"
      ],
      "type": "object"
    },
    "imunify.backup.v1.BackupLocalStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_system": {
          "enum": [
            "cpanel",
            "directadmin",
            "plesk",
            "sample"
          ],
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "description": "The frozen BackupSystemLocalStatusData leaves error unconstrained."
        },
        "log_path": {
          "type": "null"
        },
        "state": {
          "enum": [
            "activation",
            "backup",
            "done",
            "init",
            "not_running"
          ],
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "error",
        "log_path",
        "state"
      ],
      "type": "object"
    },
    "imunify.backup.v1.BackupSchedule": {
      "anyOf": [
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleMonthlyByDaysOfMonth"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleMonthlyByDaysOfWeek"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleWeekly"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleDaily"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleHourly"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleTimeSinceBackup"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleOnStartup"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleOnShutdown"
        },
        {
          "type": "null"
        }
      ]
    },
    "imunify.backup.v1.CloudlinuxBackupStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_space_used_bytes": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "backup_system": {
          "const": "cloudlinux",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "type": "string"
        },
        "login_url": {
          "type": "string"
        },
        "progress": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "purchased_backup_gb": {
          "type": "number"
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "resize_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "schedule": {
          "$ref": "#/definitions/imunify.backup.v1.BackupSchedule"
        },
        "state": {
          "const": "backup",
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_space_used_bytes",
        "backup_system",
        "enabled",
        "error",
        "login_url",
        "purchased_backup_gb",
        "region",
        "resize_url",
        "schedule",
        "state",
        "timestamp",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.CloudlinuxDoneStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_space_used_bytes": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "backup_system": {
          "const": "cloudlinux",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "type": "string"
        },
        "login_url": {
          "type": "string"
        },
        "purchased_backup_gb": {
          "type": "number"
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "resize_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "schedule": {
          "$ref": "#/definitions/imunify.backup.v1.BackupSchedule"
        },
        "state": {
          "const": "done",
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_space_used_bytes",
        "backup_system",
        "enabled",
        "error",
        "login_url",
        "purchased_backup_gb",
        "region",
        "resize_url",
        "schedule",
        "state",
        "timestamp",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.CloudlinuxNotRunningStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_space_used_bytes": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "backup_system": {
          "const": "cloudlinux",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "type": "string"
        },
        "log_path": {
          "type": "string"
        },
        "login_url": {
          "type": "string"
        },
        "purchased_backup_gb": {
          "type": "number"
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "resize_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "schedule": {
          "$ref": "#/definitions/imunify.backup.v1.BackupSchedule"
        },
        "state": {
          "const": "not_running",
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_space_used_bytes",
        "backup_system",
        "enabled",
        "error",
        "login_url",
        "purchased_backup_gb",
        "region",
        "resize_url",
        "schedule",
        "state",
        "timestamp",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.CloudlinuxOnPremiseBackupStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_space_used_bytes": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "backup_system": {
          "const": "cloudlinux_on_premise",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "type": "string"
        },
        "login_url": {
          "type": "string"
        },
        "progress": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "schedule": {
          "$ref": "#/definitions/imunify.backup.v1.BackupSchedule"
        },
        "state": {
          "const": "backup",
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "error",
        "login_url",
        "schedule",
        "state",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.CloudlinuxOnPremiseDoneStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_space_used_bytes": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "backup_system": {
          "const": "cloudlinux_on_premise",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "type": "string"
        },
        "login_url": {
          "type": "string"
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "schedule": {
          "$ref": "#/definitions/imunify.backup.v1.BackupSchedule"
        },
        "state": {
          "const": "done",
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "error",
        "login_url",
        "schedule",
        "state",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.CloudlinuxOnPremiseNotRunningStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_space_used_bytes": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "backup_system": {
          "const": "cloudlinux_on_premise",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "type": "string"
        },
        "log_path": {
          "type": "string"
        },
        "login_url": {
          "type": "string"
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "schedule": {
          "$ref": "#/definitions/imunify.backup.v1.BackupSchedule"
        },
        "state": {
          "const": "not_running",
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_space_used_bytes",
        "backup_system",
        "enabled",
        "error",
        "log_path",
        "login_url",
        "region",
        "schedule",
        "state",
        "timestamp",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ClusterLogicsDoneStatus": {
      "additionalProperties": false,
      "properties": {
        "apikey": {
          "type": "string"
        },
        "backup_system": {
          "const": "clusterlogics",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "log_path": {
          "type": "null"
        },
        "state": {
          "const": "done",
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "apikey",
        "backup_system",
        "enabled",
        "error",
        "log_path",
        "state",
        "url",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ExtendedBackupSystemStatus": {
      "anyOf": [
        {
          "$ref": "#/definitions/imunify.backup.v1.BackupLocalStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.BackupDisabledStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.BackupInitStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.CloudlinuxOnPremiseDoneStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.CloudlinuxOnPremiseBackupStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.CloudlinuxDoneStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.CloudlinuxNotRunningStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.CloudlinuxBackupStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.AcronisStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.ClusterLogicsDoneStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.CloudlinuxOnPremiseNotRunningStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.R1softStatus"
        },
        {
          "$ref": "#/definitions/imunify.backup.v1.BackupEndpointStatus"
        }
      ]
    },
    "imunify.backup.v1.R1softStatus": {
      "additionalProperties": false,
      "properties": {
        "backup_system": {
          "const": "r1soft",
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "ip": {
          "type": "string"
        },
        "log_path": {
          "type": "null"
        },
        "state": {
          "enum": [
            "backup",
            "done"
          ],
          "type": "string"
        },
        "timestamp": {
          "type": "number"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "backup_system",
        "enabled",
        "error",
        "ip",
        "log_path",
        "state",
        "timestamp",
        "username"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleDaily": {
      "additionalProperties": false,
      "properties": {
        "daysOfWeek": {
          "items": {
            "enum": [
              "friday",
              "monday",
              "saturday",
              "sunday",
              "thursday",
              "tuesday",
              "wednesday"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "effectiveDates": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleEffectiveDates"
        },
        "machineWake": {
          "type": "boolean"
        },
        "preventFromSleeping": {
          "type": "boolean"
        },
        "runLater": {
          "type": "boolean"
        },
        "startAt": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleTime"
        },
        "type": {
          "const": "daily",
          "type": "string"
        }
      },
      "required": [
        "daysOfWeek",
        "effectiveDates",
        "machineWake",
        "preventFromSleeping",
        "runLater",
        "startAt",
        "type"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleDate": {
      "additionalProperties": false,
      "properties": {
        "day": {
          "type": "number"
        },
        "month": {
          "type": "number"
        },
        "year": {
          "type": "number"
        }
      },
      "required": [
        "day",
        "month",
        "year"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleDayNumber": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    },
    "imunify.backup.v1.ScheduleEffectiveDates": {
      "additionalProperties": false,
      "properties": {
        "from": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleDate"
        },
        "to": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleDate"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleHourly": {
      "additionalProperties": false,
      "properties": {
        "daysOfWeek": {
          "items": {
            "enum": [
              "friday",
              "monday",
              "saturday",
              "sunday",
              "thursday",
              "tuesday",
              "wednesday"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "effectiveDates": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleEffectiveDates"
        },
        "from": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleTime"
        },
        "machineWake": {
          "type": "boolean"
        },
        "preventFromSleeping": {
          "type": "boolean"
        },
        "repeatInterval": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleRepeatInterval"
        },
        "runLater": {
          "type": "boolean"
        },
        "to": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleTime"
        },
        "type": {
          "const": "hourly",
          "type": "string"
        }
      },
      "required": [
        "daysOfWeek",
        "effectiveDates",
        "from",
        "machineWake",
        "preventFromSleeping",
        "repeatInterval",
        "runLater",
        "to",
        "type"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleMonthlyByDaysOfMonth": {
      "additionalProperties": false,
      "properties": {
        "dayNumbers": {
          "items": {
            "$ref": "#/definitions/imunify.backup.v1.ScheduleDayNumber"
          },
          "type": "array"
        },
        "effectiveDates": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleEffectiveDates"
        },
        "machineWake": {
          "type": "boolean"
        },
        "multipleDaysAllowed": {
          "const": true,
          "type": "boolean"
        },
        "preventFromSleeping": {
          "type": "boolean"
        },
        "runLater": {
          "type": "boolean"
        },
        "startAt": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleTime"
        },
        "type": {
          "const": "monthlyByDaysOfMonth",
          "type": "string"
        }
      },
      "required": [
        "dayNumbers",
        "effectiveDates",
        "machineWake",
        "multipleDaysAllowed",
        "preventFromSleeping",
        "runLater",
        "startAt",
        "type"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleMonthlyByDaysOfWeek": {
      "additionalProperties": false,
      "properties": {
        "daysOfWeek": {
          "items": {
            "enum": [
              "friday",
              "monday",
              "saturday",
              "sunday",
              "thursday",
              "tuesday",
              "wednesday"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "effectiveDates": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleEffectiveDates"
        },
        "machineWake": {
          "type": "boolean"
        },
        "multipleDaysAllowed": {
          "const": true,
          "type": "boolean"
        },
        "occurence": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleOccurrence"
        },
        "preventFromSleeping": {
          "type": "boolean"
        },
        "runLater": {
          "type": "boolean"
        },
        "startAt": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleTime"
        },
        "type": {
          "const": "monthlyByDaysOfWeek",
          "type": "string"
        }
      },
      "required": [
        "daysOfWeek",
        "effectiveDates",
        "machineWake",
        "multipleDaysAllowed",
        "occurence",
        "preventFromSleeping",
        "runLater",
        "startAt",
        "type"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleOccurrence": {
      "items": [
        {
          "const": "second",
          "type": "string"
        },
        {
          "const": "last",
          "type": "string"
        }
      ],
      "maxItems": 2,
      "minItems": 2,
      "type": "array"
    },
    "imunify.backup.v1.ScheduleOnShutdown": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "onShutdown",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleOnStartup": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "onStartup",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleRepeatInterval": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "enum": [
            "hours",
            "minutes"
          ],
          "type": "string"
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "value"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleSinceInterval": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "enum": [
            "days",
            "hours"
          ],
          "type": "string"
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "value"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleTime": {
      "additionalProperties": false,
      "properties": {
        "hour": {
          "type": "number"
        },
        "minute": {
          "type": "number"
        },
        "second": {
          "type": "number"
        }
      },
      "required": [
        "hour",
        "minute",
        "second"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleTimeSinceBackup": {
      "additionalProperties": false,
      "properties": {
        "intervalSinceLastBackup": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleSinceInterval"
        },
        "machineWake": {
          "type": "boolean"
        },
        "preventFromSleeping": {
          "type": "boolean"
        },
        "runLater": {
          "type": "boolean"
        },
        "type": {
          "const": "timeSinceBackup",
          "type": "string"
        }
      },
      "required": [
        "intervalSinceLastBackup",
        "machineWake",
        "preventFromSleeping",
        "runLater",
        "type"
      ],
      "type": "object"
    },
    "imunify.backup.v1.ScheduleWeekly": {
      "additionalProperties": false,
      "properties": {
        "daysOfWeek": {
          "items": {
            "enum": [
              "friday",
              "monday",
              "saturday",
              "sunday",
              "thursday",
              "tuesday",
              "wednesday"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "effectiveDates": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleEffectiveDates"
        },
        "machineWake": {
          "type": "boolean"
        },
        "preventFromSleeping": {
          "type": "boolean"
        },
        "runLater": {
          "type": "boolean"
        },
        "startAt": {
          "$ref": "#/definitions/imunify.backup.v1.ScheduleTime"
        },
        "type": {
          "const": "weekly",
          "type": "string"
        }
      },
      "required": [
        "daysOfWeek",
        "effectiveDates",
        "machineWake",
        "preventFromSleeping",
        "runLater",
        "startAt",
        "type"
      ],
      "type": "object"
    },
    "imunify.core.rpc.v1.Messages": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/definitions/imunify.core.rpc.v1.StringList"
        }
      ]
    },
    "imunify.core.rpc.v1.StringList": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "imunify.license.v1.Eula": {
      "additionalProperties": false,
      "properties": {
        "message": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "updated": {
          "type": "string"
        }
      },
      "required": [
        "message",
        "text",
        "updated"
      ],
      "type": "object"
    },
    "imunify.license.v1.FullLicense": {
      "additionalProperties": false,
      "properties": {
        "demo": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "eligible_for_imunify_patch": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "expiration": {
          "description": "Legacy license expiration accepts any JSON value in AgentResponseData."
        },
        "id": {
          "type": "string"
        },
        "ip_license": {
          "type": "boolean"
        },
        "license_type": {
          "anyOf": [
            {
              "enum": [
                "imunifyAV",
                "imunifyAVPlus",
                "imunify360Trial",
                "imunify360"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pricing": {
          "$ref": "#/definitions/imunify.license.v1.LicensePricing"
        },
        "redirect_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "boolean"
        },
        "upgrade_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "upgrade_url_360": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_count": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "user_limit": {
          "type": "number"
        }
      },
      "required": [
        "eligible_for_imunify_patch",
        "id",
        "license_type",
        "message",
        "status",
        "upgrade_url",
        "upgrade_url_360",
        "user_count",
        "user_limit"
      ],
      "type": "object"
    },
    "imunify.license.v1.License": {
      "anyOf": [
        {
          "$ref": "#/definitions/imunify.license.v1.FullLicense"
        },
        {
          "$ref": "#/definitions/imunify.license.v1.Unlicensed"
        },
        {
          "$ref": "#/definitions/imunify.license.v1.UserLicense"
        }
      ]
    },
    "imunify.license.v1.LicensePrice": {
      "additionalProperties": false,
      "properties": {
        "bulk": {
          "type": "string"
        },
        "standard": {
          "type": "string"
        }
      },
      "required": [
        "standard"
      ],
      "type": "object"
    },
    "imunify.license.v1.LicensePricing": {
      "additionalProperties": false,
      "properties": {
        "im_360_1": {
          "$ref": "#/definitions/imunify.license.v1.LicensePrice"
        },
        "im_360_250": {
          "$ref": "#/definitions/imunify.license.v1.LicensePrice"
        },
        "im_360_30": {
          "$ref": "#/definitions/imunify.license.v1.LicensePrice"
        },
        "im_360_unlimited": {
          "$ref": "#/definitions/imunify.license.v1.LicensePrice"
        },
        "im_av": {
          "$ref": "#/definitions/imunify.license.v1.LicensePrice"
        }
      },
      "type": "object"
    },
    "imunify.license.v1.Unlicensed": {
      "additionalProperties": false,
      "properties": {
        "eligible_for_imunify_patch": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "expiration": {
          "description": "Legacy license expiration accepts any JSON value in AgentResponseData."
        },
        "redirect_url": {
          "type": "null"
        },
        "status": {
          "const": false,
          "type": "boolean"
        },
        "upgrade_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "upgrade_url_360": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "eligible_for_imunify_patch",
        "redirect_url",
        "status",
        "upgrade_url",
        "upgrade_url_360"
      ],
      "type": "object"
    },
    "imunify.license.v1.UserLicense": {
      "additionalProperties": false,
      "properties": {
        "eligible_for_imunify_patch": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "expiration": {
          "description": "Legacy license expiration accepts any JSON value in AgentResponseData."
        },
        "license_type": {
          "anyOf": [
            {
              "enum": [
                "imunifyAV",
                "imunifyAVPlus",
                "imunify360Trial",
                "imunify360"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "boolean"
        }
      },
      "required": [
        "eligible_for_imunify_patch",
        "license_type",
        "status"
      ],
      "type": "object"
    }
  },
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "eula": {
          "anyOf": [
            {
              "$ref": "#/definitions/imunify.license.v1.Eula"
            },
            {
              "type": "null"
            }
          ]
        },
        "items": {
          "$ref": "#/definitions/imunify.backup.v1.ExtendedBackupSystemStatus"
        },
        "license": {
          "$ref": "#/definitions/imunify.license.v1.License"
        },
        "strategy": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "warnings": {
          "$ref": "#/definitions/imunify.core.rpc.v1.StringList"
        }
      },
      "required": [
        "items",
        "license",
        "version"
      ],
      "type": "object"
    },
    "messages": {
      "$ref": "#/definitions/imunify.core.rpc.v1.Messages"
    },
    "result": {
      "enum": [
        "success",
        "error",
        "warnings"
      ],
      "type": "string"
    },
    "status": {
      "enum": [
        "running",
        "downgrading",
        "installing",
        "upgrading",
        "not_installed",
        "failed_to_install",
        "socket_inaccessible",
        "stopped"
      ],
      "type": "string"
    }
  },
  "required": [
    "data",
    "messages",
    "result"
  ],
  "type": "object"
}
