{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/teliax/main/json-schema/teliax-query-response-schema.json",
  "title": "QueryResponse",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teliax-telique-openapi.yml#/components/schemas/QueryResponse",
  "type": "object",
  "required": [
    "table",
    "count",
    "data"
  ],
  "properties": {
    "table": {
      "type": "string",
      "description": "Name of the queried table"
    },
    "count": {
      "type": "integer",
      "description": "Number of records returned"
    },
    "total_unique": {
      "type": "integer",
      "description": "Total unique records matching the query before pagination. Emitted by the fast LERG 6 endpoint and the generic GET query endpoint."
    },
    "offset": {
      "type": "integer",
      "description": "Pagination offset used for this response. Emitted by the fast LERG 6 endpoint only."
    },
    "limit": {
      "type": "integer",
      "description": "Pagination limit used for this response. Emitted by the fast LERG 6 endpoint only."
    },
    "data": {
      "type": "array",
      "description": "Query results — fields vary by request",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "joined_with": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the joined table when a join was applied. Always present on responses from `POST /v1/telique/lerg/query`; `null` when no join was requested."
    }
  }
}