{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dream-sports/json-schema/dream-sports-console-user-list-api-response-schema.json",
  "title": "ConsoleUserListApiResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dream-sports-console-users-api-openapi.yml#/components/schemas/ConsoleUserListApiResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "$ref": "#/$defs/ConsoleUserListData"
    }
  },
  "$defs": {
    "ConsoleUserListData": {
      "type": "object",
      "properties": {
        "records": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConsoleUserRecord"
          }
        },
        "pagination": {
          "$ref": "#/$defs/ConsoleUserPagination"
        }
      }
    },
    "ConsoleUserPagination": {
      "type": "object",
      "properties": {
        "pageSize": {
          "type": "integer"
        },
        "recordCount": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Total matching records. Present only when id/email filters are used."
        },
        "nextPageToken": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for fetching the next page. Null when there are no more results."
        }
      }
    },
    "ConsoleUserRecord": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "displayName": {
          "type": "string"
        },
        "photoUrl": {
          "type": "string"
        },
        "emailVerified": {
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean"
        },
        "projectIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Project IDs from Firebase custom claims (allowedProjectIds). Omitted or empty when none set."
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "lastLoginAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "lastRefreshAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}