{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-describe-ephemeris-response-schema.json",
  "title": "DescribeEphemerisResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-ephemeris-api-openapi.yml#/components/schemas/DescribeEphemerisResponse",
  "type": "object",
  "properties": {
    "ephemerisId": {
      "type": "string",
      "description": "The AWS Ground Station ephemeris ID."
    },
    "satelliteId": {
      "type": "string",
      "description": "The AWS Ground Station satellite ID associated with ephemeris."
    },
    "status": {
      "type": "string",
      "enum": [
        "VALIDATING",
        "INVALID",
        "ERROR",
        "ENABLED",
        "DISABLED",
        "EXPIRED"
      ],
      "description": "The status of the ephemeris."
    },
    "priority": {
      "type": "integer",
      "description": "A priority score that determines which ephemeris to use when multiple ephemerides overlap. Higher numbers take precedence. The default is 1. Must be 1 or greater."
    },
    "creationTime": {
      "type": "string",
      "description": "The time the ephemeris was uploaded in UTC."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether or not the ephemeris is enabled."
    },
    "name": {
      "type": "string",
      "description": "A name that you can use to identify the ephemeris."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags assigned to an ephemeris."
    },
    "suppliedData": {
      "$ref": "#/$defs/EphemerisTypeDescription"
    },
    "invalidReason": {
      "type": "string",
      "enum": [
        "METADATA_INVALID",
        "TIME_RANGE_INVALID",
        "TRAJECTORY_INVALID",
        "KMS_KEY_INVALID",
        "VALIDATION_ERROR"
      ],
      "description": "Reason that an ephemeris failed validation. Appears only when the status is INVALID."
    },
    "errorReasons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EphemerisErrorReason"
      },
      "description": "Detailed error information for ephemerides with INVALID status. Provides specific error codes and messages to help diagnose validation failures."
    }
  },
  "$defs": {
    "EphemerisDescription": {
      "type": "object",
      "properties": {
        "sourceS3Object": {
          "$ref": "#/$defs/S3Object"
        },
        "ephemerisData": {
          "type": "string",
          "description": "Supplied ephemeris data."
        }
      }
    },
    "EphemerisErrorReason": {
      "type": "object",
      "properties": {
        "errorCode": {
          "type": "string",
          "enum": [
            "INTERNAL_ERROR",
            "MISMATCHED_SATCAT_ID",
            "OEM_VERSION_UNSUPPORTED",
            "ORIGINATOR_MISSING",
            "CREATION_DATE_MISSING",
            "OBJECT_NAME_MISSING",
            "OBJECT_ID_MISSING",
            "REF_FRAME_UNSUPPORTED",
            "REF_FRAME_EPOCH_UNSUPPORTED",
            "TIME_SYSTEM_UNSUPPORTED",
            "CENTER_BODY_UNSUPPORTED",
            "INTERPOLATION_MISSING",
            "INTERPOLATION_DEGREE_INVALID",
            "AZ_EL_SEGMENT_LIST_MISSING",
            "INSUFFICIENT_TIME_AZ_EL",
            "START_TIME_IN_FUTURE",
            "END_TIME_IN_PAST",
            "EXPIRATION_TIME_TOO_EARLY",
            "START_TIME_METADATA_TOO_EARLY",
            "STOP_TIME_METADATA_TOO_LATE",
            "AZ_EL_SEGMENT_END_TIME_BEFORE_START_TIME",
            "AZ_EL_SEGMENT_TIMES_OVERLAP",
            "AZ_EL_SEGMENTS_OUT_OF_ORDER",
            "TIME_AZ_EL_ITEMS_OUT_OF_ORDER",
            "MEAN_MOTION_INVALID",
            "TIME_AZ_EL_AZ_RADIAN_RANGE_INVALID",
            "TIME_AZ_EL_EL_RADIAN_RANGE_INVALID",
            "TIME_AZ_EL_AZ_DEGREE_RANGE_INVALID",
            "TIME_AZ_EL_EL_DEGREE_RANGE_INVALID",
            "TIME_AZ_EL_ANGLE_UNITS_INVALID",
            "INSUFFICIENT_KMS_PERMISSIONS",
            "FILE_FORMAT_INVALID",
            "AZ_EL_SEGMENT_REFERENCE_EPOCH_INVALID",
            "AZ_EL_SEGMENT_START_TIME_INVALID",
            "AZ_EL_SEGMENT_END_TIME_INVALID",
            "AZ_EL_SEGMENT_VALID_TIME_RANGE_INVALID",
            "AZ_EL_SEGMENT_END_TIME_TOO_LATE",
            "AZ_EL_TOTAL_DURATION_EXCEEDED"
          ],
          "description": "The error code identifying the type of validation failure. See the Troubleshooting Invalid Ephemerides guide for error code details."
        },
        "errorMessage": {
          "type": "string",
          "description": "A human-readable message describing the validation failure. Provides specific details about what failed and may include suggestions for remediation."
        }
      },
      "required": [
        "errorCode",
        "errorMessage"
      ]
    },
    "EphemerisTypeDescription": {
      "type": "object",
      "properties": {
        "tle": {
          "$ref": "#/$defs/EphemerisDescription"
        },
        "oem": {
          "$ref": "#/$defs/EphemerisDescription"
        },
        "azEl": {
          "$ref": "#/$defs/EphemerisDescription"
        }
      },
      "description": "Exactly one member is set."
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "bucket": {
          "type": "string",
          "description": "An Amazon S3 Bucket name."
        },
        "key": {
          "type": "string",
          "description": "An Amazon S3 key for the ephemeris."
        },
        "version": {
          "type": "string",
          "description": "For versioned Amazon S3 objects, the version to use for the ephemeris."
        }
      }
    }
  }
}