{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-twinmaker/json-schema/amazon-iot-twinmaker-get-property-value-history-response-schema.json",
  "title": "GetPropertyValueHistoryResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-twinmaker-entity-properties-api-openapi.yml#/components/schemas/GetPropertyValueHistoryResponse",
  "type": "object",
  "properties": {
    "propertyValues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PropertyValueHistory"
      },
      "description": "An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object."
    },
    "nextToken": {
      "type": "string",
      "description": "The string that specifies the next page of results."
    }
  },
  "required": [
    "propertyValues"
  ],
  "$defs": {
    "DataValue": {
      "type": "object",
      "properties": {
        "booleanValue": {
          "type": "boolean",
          "description": "A Boolean value."
        },
        "doubleValue": {
          "type": "number",
          "description": "A double value."
        },
        "integerValue": {
          "type": "integer",
          "description": "An integer value."
        },
        "longValue": {
          "type": "integer",
          "description": "A long value."
        },
        "stringValue": {
          "type": "string",
          "description": "A string value."
        },
        "listValue": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataValue"
          },
          "description": "A list of multiple values."
        },
        "mapValue": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DataValue"
          },
          "description": "An object that maps strings to multiple DataValue objects."
        },
        "relationshipValue": {
          "$ref": "#/$defs/RelationshipValue"
        },
        "expression": {
          "type": "string",
          "description": "An expression that produces the value."
        }
      }
    },
    "EntityPropertyReference": {
      "type": "object",
      "properties": {
        "componentName": {
          "type": "string",
          "description": "The name of the component."
        },
        "componentPath": {
          "type": "string",
          "description": "This string specifies the path to the composite component, starting from the top-level component."
        },
        "externalIdProperty": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A mapping of external IDs to property names. External IDs uniquely identify properties from external data stores."
        },
        "entityId": {
          "type": "string",
          "description": "The ID of the entity."
        },
        "propertyName": {
          "type": "string",
          "description": "The name of the property."
        }
      },
      "required": [
        "propertyName"
      ]
    },
    "PropertyValue": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of a value for a time series property."
        },
        "value": {
          "$ref": "#/$defs/DataValue"
        },
        "time": {
          "type": "string",
          "description": "ISO8601 DateTime of a value for a time series property. The time for when the property value was recorded in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.SSSSSSSSS][Z/±HH:mm]. [YYYY]: year [MM]: month [DD]: day [hh]: hour [mm]: minute [ss]: seconds [.SSSSSSSSS]: additional precision, where precedence is maintained. For example: [.573123] is equal to 573123000 nanoseconds. Z: default timezone UTC ± HH:mm: time zone offset in Hours and Minutes. Required sub-fields: YYYY-MM-DDThh:mm:ss and [Z/±HH:mm]"
        }
      },
      "required": [
        "value"
      ]
    },
    "PropertyValueHistory": {
      "type": "object",
      "properties": {
        "entityPropertyReference": {
          "$ref": "#/$defs/EntityPropertyReference"
        },
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PropertyValue"
          },
          "description": "A list of objects that contain information about the values in the history of a time series property."
        }
      },
      "required": [
        "entityPropertyReference"
      ]
    },
    "RelationshipValue": {
      "type": "object",
      "properties": {
        "targetEntityId": {
          "type": "string",
          "description": "The ID of the target entity associated with this relationship value."
        },
        "targetComponentName": {
          "type": "string",
          "description": "The name of the target component associated with the relationship value."
        }
      }
    }
  }
}