{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zvid-io/json-schema/zvid-io-library-list-schema.json",
  "title": "LibraryList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zvid-io-library-api-openapi.yml#/components/schemas/LibraryList",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LibraryItem"
      }
    },
    "total": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "hasMore": {
      "type": "boolean"
    }
  },
  "required": [
    "kind",
    "items"
  ],
  "additionalProperties": true,
  "$defs": {
    "LibraryItem": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "meta": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "version": {
          "type": "integer"
        },
        "sortOrder": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        },
        "contentUrl": {
          "type": "string",
          "description": "Omitted for premium items; use the content endpoint."
        },
        "contentHash": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "slug",
        "title"
      ],
      "additionalProperties": true
    }
  }
}