{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-list-datasets-response-schema.json",
  "title": "ListDatasetsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-datasets-api-openapi.yml#/components/schemas/ListDatasetsResponse",
  "type": "object",
  "properties": {
    "datasetSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DatasetSummary"
      },
      "description": "A list that summarizes the dataset response."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results, or null if there are no additional results."
    },
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace."
    }
  },
  "required": [
    "datasetSummaries"
  ],
  "$defs": {
    "DatasetEnrichment": {
      "type": "object",
      "properties": {
        "video": {
          "$ref": "#/$defs/DatasetEnrichmentEntry"
        }
      }
    },
    "DatasetEnrichmentEntry": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "FULLY_ENRICHED",
            "PARTIALLY_ENRICHED",
            "NOT_ENRICHED"
          ],
          "description": "The enrichment status of the data type in the dataset."
        },
        "lastEnrichedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date the data was last enriched, in Unix epoch time."
        }
      },
      "required": [
        "status"
      ]
    },
    "DatasetStatus": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "FAILED"
          ],
          "description": "The current status of the dataset."
        },
        "error": {
          "$ref": "#/$defs/ErrorDetails"
        }
      },
      "required": [
        "state"
      ]
    },
    "DatasetSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the dataset."
        },
        "arn": {
          "type": "string",
          "description": "The ARN of the dataset. The format is arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}."
        },
        "name": {
          "type": "string",
          "description": "The name of the dataset."
        },
        "description": {
          "type": "string",
          "description": "A description about the dataset, and its functionality."
        },
        "sourceType": {
          "type": "string",
          "enum": [
            "KENDRA",
            "SITEWISE"
          ],
          "description": "The data source type of the dataset."
        },
        "datasetType": {
          "type": "string",
          "enum": [
            "SESSION",
            "CURATED",
            "EXTERNAL"
          ],
          "description": "The type of dataset: a session dataset, a curated dataset, or a connection to an external datasource."
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The dataset creation date, in Unix epoch time."
        },
        "lastUpdateDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date the dataset was last updated, in Unix epoch time."
        },
        "status": {
          "$ref": "#/$defs/DatasetStatus"
        },
        "enrichmentStatus": {
          "$ref": "#/$defs/DatasetEnrichment"
        }
      },
      "required": [
        "id",
        "arn",
        "name",
        "description",
        "creationDate",
        "lastUpdateDate",
        "status"
      ]
    },
    "DetailedError": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "INCOMPATIBLE_COMPUTE_LOCATION",
            "INCOMPATIBLE_FORWARDING_CONFIGURATION"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "VALIDATION_ERROR",
            "INTERNAL_FAILURE"
          ],
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DetailedError"
          },
          "description": "A list of detailed errors."
        }
      },
      "required": [
        "code",
        "message"
      ]
    }
  }
}