{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-v1-recent-deployment-query-schema.json",
  "title": "RecentDeploymentQuery",
  "description": "RecentDeploymentQuery",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-dashboard-aggregates-api-openapi.yml#/components/schemas/v1RecentDeploymentQuery",
  "type": "object",
  "properties": {
    "accountIdentifier": {
      "type": "string",
      "description": "Account Identifier for the Entity."
    },
    "projectIdentifier": {
      "type": "string",
      "description": "Project Identifier for the Entity."
    },
    "orgIdentifier": {
      "type": "string",
      "description": "Organization Identifier for the Entity."
    },
    "operationPhase": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/v1OperationPhase"
      }
    },
    "applicationName": {
      "type": "string"
    },
    "startTime": {
      "type": "integer",
      "format": "int32"
    },
    "endTime": {
      "type": "integer",
      "format": "int32"
    },
    "searchTerm": {
      "type": "string"
    },
    "agentIdentifier": {
      "type": "string"
    },
    "serviceRef": {
      "type": "string"
    },
    "envRef": {
      "type": "string"
    }
  },
  "required": [
    "accountIdentifier"
  ],
  "$defs": {
    "v1OperationPhase": {
      "type": "string",
      "enum": [
        "OPERATION_PHASE_UNSET",
        "RUNNING",
        "FAILED",
        "SUCCEEDED"
      ],
      "default": "OPERATION_PHASE_UNSET"
    }
  }
}