{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-list-contact-versions-response-schema.json",
  "title": "ListContactVersionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-versions-api-openapi.yml#/components/schemas/ListContactVersionsResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "Next token to be used in a subsequent ListContactVersions call to retrieve the next page of results."
    },
    "contactVersionsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContactVersion"
      },
      "description": "List of contact versions."
    }
  },
  "$defs": {
    "ContactVersion": {
      "type": "object",
      "properties": {
        "versionId": {
          "type": "integer",
          "description": "Version ID of a contact."
        },
        "created": {
          "type": "string",
          "description": "Time the contact version was created in UTC."
        },
        "activated": {
          "type": "string",
          "description": "Time the contact version was activated in UTC. A version is activated when it becomes the current active version of the contact."
        },
        "superseded": {
          "type": "string",
          "description": "Time the contact version was superseded in UTC. A version is superseded when a newer version becomes active."
        },
        "lastUpdated": {
          "type": "string",
          "description": "Time the contact version was last updated in UTC."
        },
        "status": {
          "type": "string",
          "enum": [
            "UPDATING",
            "ACTIVE",
            "SUPERSEDED",
            "FAILED_TO_UPDATE"
          ],
          "description": "Status of the contact version."
        },
        "failureCodes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "INTERNAL_ERROR",
              "INVALID_SATELLITE_ARN",
              "INVALID_UPDATE_CONTACT_REQUEST",
              "EPHEMERIS_NOT_FOUND",
              "EPHEMERIS_TIME_RANGE_INVALID",
              "EPHEMERIS_NOT_ENABLED",
              "SATELLITE_DOES_NOT_MATCH_EPHEMERIS",
              "NOT_ONBOARDED_TO_AZEL_EPHEMERIS",
              "AZEL_EPHEMERIS_NOT_FOUND",
              "AZEL_EPHEMERIS_WRONG_GROUND_STATION",
              "AZEL_EPHEMERIS_INVALID_STATUS",
              "AZEL_EPHEMERIS_TIME_RANGE_INVALID"
            ]
          },
          "description": "List of failure codes for the contact version."
        },
        "failureMessage": {
          "type": "string",
          "description": "Failure message for the contact version."
        }
      }
    }
  }
}