{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-renewal-events-success-response-schema.json",
  "title": "RenewalEventsSuccessResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-commitment-orchestrator-events-apis-api-openapi.yml#/components/schemas/RenewalEventsSuccessResponse",
  "type": "object",
  "properties": {
    "ts": {
      "type": "integer",
      "description": "Response timestamp"
    },
    "success": {
      "type": "boolean",
      "description": "Specifies if the operation is successful"
    },
    "errors": {
      "type": [
        "string",
        "null"
      ],
      "description": "Specifies the error if the operation failed"
    },
    "response": {
      "type": "object",
      "properties": {
        "events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RenewalEvent"
          },
          "description": "Auto-renewal events in the requested range and filters"
        }
      }
    }
  },
  "$defs": {
    "RenewalEvent": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "Activity row identifier"
        },
        "cloud_account_id": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "Activity status (e.g. pending, complete)"
        },
        "expiry_date": {
          "type": "string",
          "format": "date",
          "description": "Reservation expiry date from activity metadata (YYYY-MM-DD)"
        },
        "renewal_scheduled_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Present when status indicates renewal scheduling completed; mirrors last update time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the activity was last updated"
        },
        "description": {
          "type": "string",
          "description": "Human-readable activity description"
        }
      }
    }
  }
}