{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-list-enrichment-jobs-response-schema.json",
  "title": "ListEnrichmentJobsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-enrichment-jobs-api-openapi.yml#/components/schemas/ListEnrichmentJobsResponse",
  "type": "object",
  "properties": {
    "jobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnrichmentJobSummary"
      },
      "description": "Array of job summaries matching the filter criteria, ordered by creation time descending (newest first). Each summary includes key identifiers (jobId, datasetId, propertyAlias/timeSeriesId) and status information without the full job configuration. Use DescribeEnrichmentJob to retrieve complete details."
    },
    "nextToken": {
      "type": "string",
      "description": "Pagination token to retrieve the next page of results. If present, more jobs exist that match the filter criteria. Include this token in a subsequent ListEnrichmentJobs request to retrieve the next page. If absent, you have retrieved all matching jobs."
    }
  },
  "required": [
    "jobs"
  ],
  "$defs": {
    "EnrichmentJobSummary": {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string",
          "description": "Unique identifier for the enrichment job."
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "TIMED_OUT",
            "CANCELLED"
          ],
          "description": "Current status of the job: PENDING, RUNNING, COMPLETED, FAILED, TIMED_OUT, or CANCELLED. Use this to quickly identify active jobs or jobs requiring attention."
        },
        "workspaceName": {
          "type": "string",
          "description": "The name of the IoT SiteWise workspace containing this job."
        },
        "jobType": {
          "type": "string",
          "enum": [
            "EVENT_DETECTION"
          ],
          "description": "The type of enrichment job. Currently EVENT_DETECTION is the only supported type."
        },
        "datasetId": {
          "type": "string",
          "description": "The dataset being enriched. Useful for filtering and identifying jobs without fetching the full configuration. This allows you to quickly find all jobs related to a specific dataset."
        },
        "propertyAlias": {
          "type": "string",
          "description": "The property alias (human-readable sensor name) of the time series being enriched. Present when the job was created using a propertyAlias. Use this to identify which sensor the job analyzes."
        },
        "timeSeriesId": {
          "type": "string",
          "description": "The system identifier of the time series being enriched. Present when the job was created using a timeSeriesId. Use this to identify which time series the job analyzes."
        },
        "createdAt": {
          "type": "string",
          "description": "Timestamp when the job was created in ISO 8601 format."
        },
        "updatedAt": {
          "type": "string",
          "description": "Timestamp of the last job status change in ISO 8601 format. Use this to track recent activity and identify stale jobs. For active jobs, this shows the last time the job transitioned to a new status."
        }
      },
      "required": [
        "jobId",
        "status",
        "workspaceName",
        "jobType",
        "datasetId",
        "createdAt"
      ]
    }
  }
}