{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/livelike/main/json-schema/livelike-collection-items-response-schema.json",
  "title": "CollectionItemsResponse",
  "description": "The list of reports and dashboards in your collection.",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/livelike-analytics-api-openapi.yml#/components/schemas/CollectionItemsResponse",
  "type": "object",
  "properties": {
    "total": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Total number of items."
    },
    "data": {
      "type": "array",
      "description": "Your reports and dashboards.",
      "items": {
        "$ref": "#/$defs/CollectionItem"
      }
    }
  },
  "$defs": {
    "CollectionItem": {
      "type": "object",
      "description": "A report (Card) or dashboard inside your collection.",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Report or dashboard ID. Use this to download data or get more details."
        },
        "name": {
          "type": "string",
          "description": "Report or dashboard name."
        },
        "model": {
          "type": "string",
          "enum": [
            "card",
            "dashboard",
            "document"
          ],
          "description": "`\"card\"` = a report you can download, `\"dashboard\"` = a dashboard."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "What this report covers."
        }
      }
    }
  }
}