{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revyl/json-schema/revyl-build-resolution-response-schema.json",
  "title": "BuildResolutionResponse",
  "description": "Response with resolved build information.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revyl-apps-api-openapi.yml#/components/schemas/BuildResolutionResponse",
  "properties": {
    "app_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The app's name, for messages that name it",
      "title": "App Name"
    },
    "artifact_kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Artifact Kind"
    },
    "artifact_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Artifact Url"
    },
    "branch_id": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Branch Id"
    },
    "branch_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Branch Name"
    },
    "build_var_id": {
      "format": "uuid",
      "title": "Build Var Id",
      "type": "string"
    },
    "deploy_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deploy Url"
    },
    "download_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Download Url"
    },
    "platform": {
      "title": "Platform",
      "type": "string"
    },
    "resolution_status": {
      "anyOf": [
        {
          "enum": [
            "resolved",
            "branch_has_no_builds",
            "no_compatible_build"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolution Status"
    },
    "static_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Static Url"
    },
    "version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Version"
    },
    "version_id": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Resolved build row ID for fetching build details",
      "title": "Version Id"
    }
  },
  "required": [
    "build_var_id",
    "platform"
  ],
  "type": "object"
}