{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-approval-events-success-response-schema.json",
  "title": "ApprovalEventsSuccessResponse",
  "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/ApprovalEventsSuccessResponse",
  "type": "object",
  "properties": {
    "ts": {
      "type": "integer",
      "description": "Response timestamp"
    },
    "success": {
      "type": "boolean",
      "description": "Specifies if the operation is successful"
    },
    "errors": {
      "type": "string",
      "description": "Specifies the error if the operation failed"
    },
    "response": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "pages": {
          "type": "integer"
        },
        "events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ApprovalEvent"
          }
        }
      }
    }
  },
  "$defs": {
    "ApprovalEvent": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "category": {
          "type": "string"
        },
        "cloud_account_id": {
          "type": "string"
        },
        "account_id": {
          "type": "string"
        },
        "evaluated_at": {
          "type": "string"
        },
        "metadata": {
          "type": "object",
          "description": "Map of key and value with data specific to the event type"
        }
      }
    }
  }
}