{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mcpgate/json-schema/mcpgate-active-customers-response-schema.json",
  "title": "ActiveCustomersResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mcpgate-support-admin-api-openapi.yml#/components/schemas/ActiveCustomersResponse",
  "properties": {
    "active": {
      "items": {
        "$ref": "#/$defs/ActiveCustomerRow"
      },
      "type": "array",
      "title": "Active"
    }
  },
  "type": "object",
  "required": [
    "active"
  ],
  "$defs": {
    "ActiveCustomerRow": {
      "properties": {
        "customer_id": {
          "type": "string",
          "title": "Customer Id"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        },
        "instance_url": {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri",
          "title": "Instance Url"
        },
        "session_id": {
          "type": "integer",
          "title": "Session Id"
        },
        "started_at": {
          "type": "string",
          "format": "date-time",
          "title": "Started At"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time",
          "title": "Expires At"
        },
        "unread_count": {
          "type": "integer",
          "title": "Unread Count"
        }
      },
      "type": "object",
      "required": [
        "customer_id",
        "display_name",
        "instance_url",
        "session_id",
        "started_at",
        "expires_at",
        "unread_count"
      ],
      "title": "ActiveCustomerRow"
    }
  }
}