{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-list-contacts-response-schema.json",
  "title": "ListContactsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-contact-api-openapi.yml#/components/schemas/ListContactsResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "Next token returned in the response of a previous ListContacts call. Used to get the next page of results."
    },
    "contactList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContactData"
      },
      "description": "List of contacts."
    }
  },
  "$defs": {
    "ContactData": {
      "type": "object",
      "properties": {
        "contactId": {
          "type": "string",
          "description": "UUID of a contact."
        },
        "missionProfileArn": {
          "type": "string",
          "description": "ARN of a mission profile."
        },
        "satelliteArn": {
          "type": "string",
          "description": "ARN of a satellite."
        },
        "startTime": {
          "type": "string",
          "description": "Start time of a contact in UTC."
        },
        "endTime": {
          "type": "string",
          "description": "End time of a contact in UTC."
        },
        "prePassStartTime": {
          "type": "string",
          "description": "Start time in UTC of the pre-pass period, at which you receive a CloudWatch event indicating an upcoming pass."
        },
        "postPassEndTime": {
          "type": "string",
          "description": "End time in UTC of the post-pass period, at which you receive a CloudWatch event indicating the pass has finished."
        },
        "groundStation": {
          "type": "string",
          "description": "Name of a ground station."
        },
        "contactStatus": {
          "type": "string",
          "enum": [
            "SCHEDULING",
            "FAILED_TO_SCHEDULE",
            "SCHEDULED",
            "CANCELLED",
            "AWS_CANCELLED",
            "PREPASS",
            "PASS",
            "POSTPASS",
            "COMPLETED",
            "FAILED",
            "AVAILABLE",
            "CANCELLING",
            "AWS_FAILED"
          ],
          "description": "Status of a contact."
        },
        "errorMessage": {
          "type": "string",
          "description": "Error message of a contact."
        },
        "maximumElevation": {
          "$ref": "#/$defs/Elevation"
        },
        "region": {
          "type": "string",
          "description": "Region of a contact."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Tags assigned to a contact."
        },
        "visibilityStartTime": {
          "type": "string",
          "description": "Projected time in UTC your satellite will rise above the receive mask. This time is based on the satellite's current active ephemeris for future contacts and the ephemeris that was active during contact execution for completed contacts. This field is not present for contacts with a SCHEDULING or SCHEDULED status."
        },
        "visibilityEndTime": {
          "type": "string",
          "description": "Projected time in UTC your satellite will set below the receive mask. This time is based on the satellite's current active ephemeris for future contacts and the ephemeris that was active during contact execution for completed contacts. This field is not present for contacts with a SCHEDULING or SCHEDULED status."
        },
        "ephemeris": {
          "$ref": "#/$defs/EphemerisResponseData"
        },
        "version": {
          "$ref": "#/$defs/ContactVersion"
        }
      }
    },
    "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."
        }
      }
    },
    "Elevation": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number",
          "description": "Elevation angle value."
        },
        "unit": {
          "type": "string",
          "enum": [
            "DEGREE_ANGLE",
            "RADIAN"
          ],
          "description": "Elevation angle units."
        }
      },
      "required": [
        "value",
        "unit"
      ]
    },
    "EphemerisResponseData": {
      "type": "object",
      "properties": {
        "ephemerisId": {
          "type": "string",
          "description": "Unique identifier of the ephemeris. Appears only for custom ephemerides."
        },
        "ephemerisType": {
          "type": "string",
          "enum": [
            "TLE",
            "OEM",
            "AZ_EL",
            "SERVICE_MANAGED"
          ],
          "description": "Type of ephemeris."
        }
      },
      "required": [
        "ephemerisType"
      ]
    }
  }
}