{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stormmcp/json-schema/stormmcp-active-session-response-schema.json",
  "title": "ActiveSessionResponse",
  "description": "Response model for active session information.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stormmcp-activesessions-api-openapi.yml#/components/schemas/ActiveSessionResponse",
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "Gets or sets the session ID (grain primary key)."
    },
    "gatewayId": {
      "type": "string",
      "description": "Gets or sets the gateway configuration ID.",
      "format": "uuid"
    },
    "registeredAt": {
      "type": "string",
      "description": "Gets or sets the timestamp when the session was registered.",
      "format": "date-time"
    },
    "lastActiveAt": {
      "type": "string",
      "description": "Gets or sets the timestamp when the session was last active.",
      "format": "date-time"
    },
    "durationMinutes": {
      "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
      "type": [
        "number",
        "string"
      ],
      "description": "Gets or sets the duration of the session in minutes.",
      "format": "double"
    },
    "totalRequests": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the total number of requests made in this session.",
      "format": "int32"
    },
    "methodCounts": {
      "type": "object",
      "additionalProperties": {
        "pattern": "^-?(?:0|[1-9]\\d*)$",
        "type": [
          "integer",
          "string"
        ],
        "format": "int32"
      },
      "description": "Gets or sets the methods called during this session."
    },
    "toolUsage": {
      "type": "object",
      "additionalProperties": {
        "pattern": "^-?(?:0|[1-9]\\d*)$",
        "type": [
          "integer",
          "string"
        ],
        "format": "int32"
      },
      "description": "Gets or sets the specific tools/assets used in this session."
    },
    "lastUsedTool": {
      "type": [
        "null",
        "string"
      ],
      "description": "Gets or sets the most recently used tool/asset."
    },
    "lastToolUsedAt": {
      "type": [
        "null",
        "string"
      ],
      "description": "Gets or sets the timestamp of the last tool usage.",
      "format": "date-time"
    }
  }
}