{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subcue-ai/json-schema/subcue-ai-latest-release-response-schema.json",
  "title": "LatestReleaseResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subcue-ai-openapi.yml#/components/schemas/LatestReleaseResponse",
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "hasUpdate"
      ],
      "properties": {
        "hasUpdate": {
          "const": false
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "hasUpdate",
        "forceUpdate",
        "latest"
      ],
      "properties": {
        "hasUpdate": {
          "const": true
        },
        "forceUpdate": {
          "type": "boolean"
        },
        "latest": {
          "$ref": "#/$defs/Release"
        }
      }
    }
  ],
  "$defs": {
    "Release": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "platform",
        "version",
        "changelog",
        "downloadURL",
        "size",
        "date"
      ],
      "properties": {
        "platform": {
          "type": "string",
          "enum": [
            "macos",
            "windows"
          ]
        },
        "version": {
          "type": "string"
        },
        "changelog": {
          "type": "string"
        },
        "downloadURL": {
          "type": "string",
          "format": "uri"
        },
        "size": {
          "type": "string",
          "description": "Installer size in bytes when known; otherwise an empty string."
        },
        "date": {
          "type": "string",
          "description": "Release date supplied by SubcueAI."
        }
      }
    }
  }
}