{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-landing-page-response-schema.json",
  "title": "LandingPageResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-commitment-orchestrator-landing-page-api-openapi.yml#/components/schemas/LandingPageResponse",
  "type": "object",
  "required": [
    "ts",
    "success",
    "response"
  ],
  "properties": {
    "ts": {
      "type": "integer",
      "format": "int64",
      "description": "Timestamp of the response"
    },
    "success": {
      "type": "boolean",
      "description": "Indicates if the request was successful"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Error messages if any"
    },
    "response": {
      "type": "array",
      "description": "List of cloud accounts with their commitment details",
      "items": {
        "$ref": "#/$defs/CloudAccountCommitment"
      }
    }
  },
  "$defs": {
    "CloudAccountCommitment": {
      "type": "object",
      "required": [
        "provider_id",
        "name",
        "cloud_account_id",
        "connector_status",
        "services"
      ],
      "properties": {
        "provider_id": {
          "type": "string",
          "description": "Cloud provider account ID"
        },
        "name": {
          "type": "string",
          "description": "Display name of the cloud account"
        },
        "cloud_account_id": {
          "type": "string",
          "description": "Unique identifier for the cloud account"
        },
        "connector_status": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILURE",
            "UNKNOWN"
          ],
          "description": "Status of the connector (SUCCESS, FAILURE, UNKNOWN)"
        },
        "last_ping": {
          "type": "string",
          "format": "date-time",
          "description": "Last time the connector was pinged"
        },
        "services": {
          "type": "array",
          "description": "List of services with their commitment details",
          "items": {
            "$ref": "#/$defs/CommitmentService"
          }
        }
      }
    },
    "CommitmentService": {
      "type": "object",
      "required": [
        "name",
        "is_enabled",
        "coverage",
        "target_coverage",
        "annualized_savings"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the service"
        },
        "is_enabled": {
          "type": "boolean",
          "description": "Whether the service is enabled for commitment orchestration"
        },
        "coverage": {
          "type": "number",
          "format": "double",
          "description": "Current coverage percentage"
        },
        "target_coverage": {
          "type": "number",
          "format": "double",
          "description": "Target coverage percentage"
        },
        "annualized_savings": {
          "type": "string",
          "description": "Annualized savings amount as a string"
        },
        "approval_mode": {
          "type": "string",
          "description": "Approval mode for the service (auto or manual)"
        },
        "pending_actions_count": {
          "type": "integer",
          "format": "int64",
          "description": "Count of pending approval actions for the service in the last 30 days"
        },
        "atomization_enabled": {
          "type": "boolean",
          "description": "Whether Atom 2.0 (monthly seed purchase) is enabled. Present only for EC2 service."
        }
      }
    }
  }
}