{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-approvals-list-request-v2-schema.json",
  "title": "ApprovalsListRequestV2",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-commitment-orchestrator-user-approval-apis-api-openapi.yml#/components/schemas/ApprovalsListRequestV2",
  "type": "object",
  "properties": {
    "pagination": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "Number of items per page"
        },
        "page": {
          "type": "integer",
          "description": "Page number (starting from 1)"
        }
      }
    },
    "service": {
      "type": "string",
      "description": "Filter by service name"
    },
    "statuses": {
      "type": "array",
      "description": "Filter by event statuses",
      "items": {
        "type": "string",
        "enum": [
          "PENDING",
          "COMPLETED",
          "EXPIRED",
          "REJECTED",
          "QUEUED",
          "APPROVED",
          "APPROVAL_PENDING"
        ]
      }
    },
    "cloud_account_id": {
      "type": "string",
      "description": "Filter by cloud account ID"
    },
    "event_types": {
      "type": "array",
      "description": "Filter by event types",
      "items": {
        "type": "string",
        "enum": [
          "Reserved Instance Exchange",
          "Atom RI Purchase",
          "Savings Plan Purchase",
          "RDS Reserved Instance Purchase"
        ]
      }
    },
    "regions": {
      "type": "array",
      "description": "Filter by regions",
      "items": {
        "type": "string"
      }
    }
  }
}