{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces-web/json-schema/amazon-workspaces-web-list-sessions-response-schema.json",
  "title": "ListSessionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-web-sessions-api-openapi.yml#/components/schemas/ListSessionsResponse",
  "type": "object",
  "properties": {
    "sessions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SessionSummary"
      },
      "description": "The sessions in a list."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token used to retrieve the next page of results for this operation."
    }
  },
  "required": [
    "sessions"
  ],
  "$defs": {
    "SessionSummary": {
      "type": "object",
      "properties": {
        "portalArn": {
          "type": "string",
          "description": "The ARN of the web portal."
        },
        "sessionId": {
          "type": "string",
          "description": "The ID of the session."
        },
        "username": {
          "type": "string",
          "description": "The username of the session."
        },
        "status": {
          "type": "string",
          "enum": [
            "Active",
            "Terminated"
          ],
          "description": "The status of the session."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time of the session."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time of the session."
        }
      }
    }
  }
}