{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-paginated-list-wiki-page-list-item-schema.json",
  "title": "PaginatedList[WikiPageListItem]",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-wiki-api-openapi.yml#/components/schemas/PaginatedList_WikiPageListItem_",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/WikiPageListItem"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "has_more"
  ],
  "$defs": {
    "WikiAuthor": {
      "properties": {
        "username": {
          "type": "string",
          "title": "Username"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        }
      },
      "type": "object",
      "required": [
        "username",
        "display_name"
      ],
      "title": "WikiAuthor"
    },
    "WikiPageListItem": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "slug": {
          "type": "string",
          "title": "Slug"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "updated_by": {
          "$ref": "#/$defs/WikiAuthor"
        },
        "revision_count": {
          "type": "integer",
          "title": "Revision Count"
        },
        "colony_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Colony Name"
        },
        "colony": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Colony",
          "description": "Deprecated: use `colony_name`, which carries the same value.",
          "deprecated": true,
          "x-deprecated-alias-of": "colony_name"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "slug",
        "title",
        "updated_by",
        "revision_count",
        "created_at",
        "updated_at"
      ],
      "title": "WikiPageListItem"
    }
  }
}