{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stormmcp/json-schema/stormmcp-paged-result-of-dynamic-gateway-inventory-list-response-schema.json",
  "title": "PagedResultOfDynamicGatewayInventoryListResponse",
  "description": "Generic paged result wrapper for API responses.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stormmcp-mcpgatewayinventory-api-openapi.yml#/components/schemas/PagedResultOfDynamicGatewayInventoryListResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DynamicGatewayInventoryListResponse"
      },
      "description": "Gets or sets the items in the current page."
    },
    "totalCount": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the total count of items across all pages.",
      "format": "int32"
    },
    "pageNumber": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the current page number (1-based).",
      "format": "int32"
    },
    "pageSize": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the number of items per page.",
      "format": "int32"
    },
    "hasMore": {
      "type": "boolean",
      "description": "Gets a value indicating whether there are more pages available."
    },
    "totalPages": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets the total number of pages.",
      "format": "int32"
    }
  },
  "$defs": {
    "ClientKind": {
      "type": "integer",
      "description": "The kind of MCP client that connected to a dynamic gateway (MCPG-1156), derived best-effort from the\nauthenticating bearer scheme at handshake time. Display-only; never an authorization input."
    },
    "DynamicGatewayInventoryListResponse": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "Gets or sets the subject user's identifier. An identifier rather than a display name and\nemail for the same reason as Guid AuxiliaryGatewayInventoryResponse.OwnerUserId.",
          "format": "uuid"
        },
        "clients": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GatewayInventoryClientResponse"
          },
          "description": "Gets or sets the clients this user has reached their Dynamic Gateway through, most recently\nseen first."
        },
        "radarCacheSize": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "description": "Gets or sets the user's Radar cache slot budget: their stored override, or the configured\ndefault when they have never set one.",
          "format": "int32"
        },
        "radarCacheUsed": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "description": "Gets or sets how many of those slots currently hold a tool.",
          "format": "int32"
        }
      },
      "description": "One Dynamic Gateway row on the MCP Gateway Inventory list page (MCPG-1879), indexed by the user\nwho owns it. Configuration only."
    },
    "GatewayInventoryClientResponse": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "null",
            "string"
          ],
          "description": "Gets or sets the client-supplied client name, or null when the client sent no\n`clientInfo` and is known only by its kind."
        },
        "kind": {
          "description": "Gets or sets the derived client kind.",
          "$ref": "#/$defs/ClientKind"
        },
        "lastSeen": {
          "type": "string",
          "description": "Gets or sets when this client was last active. The inventory reports recency rather than\nimplying it, because the two tables' registrations age differently: a Dynamic registration is\nreclaimed 24 hours after its last activity, while an Auxiliary one persists until the client\nterminates the session.",
          "format": "date-time"
        }
      },
      "description": "One MCP client a gateway has been reached through, as the durable session registry last recorded\nit (MCPG-1879). Display metadata only — nothing here identifies a session or lets the caller act\nas one."
    }
  }
}