{
  "$id": "https://kubri.dev/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "apk": {
      "additionalProperties": false,
      "properties": {
        "disabled": {
          "type": "boolean"
        },
        "folder": {
          "type": "string"
        },
        "key-name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "appinstaller": {
      "additionalProperties": false,
      "properties": {
        "automatic-background-task": {
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean"
        },
        "folder": {
          "type": "string"
        },
        "force-update-from-any-version": {
          "type": "boolean"
        },
        "on-launch": {
          "additionalProperties": false,
          "properties": {
            "hours-between-update-checks": {
              "maximum": 255,
              "minimum": 0,
              "type": "integer"
            },
            "show-prompt": {
              "type": "boolean"
            },
            "update-blocks-activation": {
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "apt": {
      "additionalProperties": false,
      "properties": {
        "compress": {
          "items": {
            "enum": [
              "none",
              "gzip",
              "bzip2",
              "xz",
              "lzma",
              "lz4",
              "zstd"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "disabled": {
          "type": "boolean"
        },
        "folder": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "description": {
      "type": "string"
    },
    "prerelease": {
      "type": "boolean"
    },
    "source": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "bucket": {
              "type": "string"
            },
            "folder": {
              "type": "string"
            },
            "type": {
              "const": "azureblob",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "bucket"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "bucket": {
              "type": "string"
            },
            "folder": {
              "type": "string"
            },
            "type": {
              "const": "gcs",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "bucket"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "bucket": {
              "type": "string"
            },
            "disable-ssl": {
              "type": "boolean"
            },
            "endpoint": {
              "type": "string"
            },
            "folder": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "type": {
              "const": "s3",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "bucket"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "path": {
              "type": "string"
            },
            "type": {
              "const": "file",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "path"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "owner": {
              "type": "string"
            },
            "repo": {
              "type": "string"
            },
            "type": {
              "const": "github",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "repo"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "owner": {
              "type": "string"
            },
            "repo": {
              "type": "string"
            },
            "type": {
              "const": "gitlab",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "owner",
            "repo"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "path": {
              "type": "string"
            },
            "type": {
              "const": "local",
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "path",
            "version"
          ],
          "type": "object"
        }
      ]
    },
    "sparkle": {
      "additionalProperties": false,
      "properties": {
        "description": {
          "type": "string"
        },
        "detect-os": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "disabled": {
          "type": "boolean"
        },
        "filename": {
          "type": "string"
        },
        "folder": {
          "type": "string"
        },
        "params": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "critical-update": {
                "type": "boolean"
              },
              "critical-update-below-version": {
                "type": "string"
              },
              "ignore-skipped-upgrades-below-version": {
                "type": "string"
              },
              "installer-arguments": {
                "type": "string"
              },
              "minimum-autoupdate-version": {
                "type": "string"
              },
              "minimum-system-version": {
                "type": "string"
              },
              "os": {
                "enum": [
                  "macos",
                  "windows",
                  "windows-x86",
                  "windows-x64"
                ],
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "title": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "target": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "bucket": {
              "type": "string"
            },
            "folder": {
              "type": "string"
            },
            "type": {
              "const": "azureblob",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "bucket"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "bucket": {
              "type": "string"
            },
            "folder": {
              "type": "string"
            },
            "type": {
              "const": "gcs",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "bucket"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "bucket": {
              "type": "string"
            },
            "disable-ssl": {
              "type": "boolean"
            },
            "endpoint": {
              "type": "string"
            },
            "folder": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "type": {
              "const": "s3",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "bucket"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "path": {
              "type": "string"
            },
            "type": {
              "const": "file",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "path"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "branch": {
              "type": "string"
            },
            "folder": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            },
            "repo": {
              "type": "string"
            },
            "type": {
              "const": "github",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "repo"
          ],
          "type": "object"
        }
      ]
    },
    "title": {
      "type": "string"
    },
    "upload-packages": {
      "type": "boolean"
    },
    "version": {
      "type": "string"
    },
    "yum": {
      "additionalProperties": false,
      "properties": {
        "disabled": {
          "type": "boolean"
        },
        "folder": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "source",
    "target"
  ],
  "type": "object"
}