{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-interactive-video-service/json-schema/amazon-interactive-video-service-list-stream-sessions-response-schema.json",
  "title": "ListStreamSessionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-interactive-video-service-liststreamsessions-api-openapi.yml#/components/schemas/ListStreamSessionsResponse",
  "type": "object",
  "properties": {
    "streamSessions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StreamSessionSummary"
      },
      "description": "List of stream sessions."
    },
    "nextToken": {
      "type": "string",
      "description": "If there are more streams than maxResults, use nextToken in the request to get the next set."
    }
  },
  "required": [
    "streamSessions"
  ],
  "$defs": {
    "StreamSessionSummary": {
      "type": "object",
      "properties": {
        "streamId": {
          "type": "string",
          "description": "Unique identifier for a live or previously live stream in the specified channel."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a string. For live streams, this is NULL."
        },
        "hasErrorEvent": {
          "type": "boolean",
          "description": "If true, this stream encountered a quota breach or failure."
        }
      }
    }
  }
}