{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-pages-list-schema.json",
  "title": "PagesList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-pages-api-openapi.yml#/components/schemas/PagesList",
  "type": "object",
  "properties": {
    "routes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PageRow"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` (with the same `limit`) for the next page; null on the last page."
    },
    "routesListTotal": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Rows that match the filter. `null` when the list is a partial window."
    },
    "partial": {
      "type": "boolean",
      "description": "True when the list is a window of the site rather than all of it."
    },
    "indexing": {
      "type": "object",
      "properties": {
        "pending": {
          "type": "integer",
          "description": "Pages whose structure is not indexed yet."
        },
        "running": {
          "type": "boolean",
          "description": "Indexing is still running."
        }
      },
      "required": [
        "pending",
        "running"
      ]
    }
  },
  "required": [
    "routes",
    "nextCursor",
    "routesListTotal",
    "partial",
    "indexing"
  ],
  "$defs": {
    "PagePart": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "section",
            "menu",
            "list",
            "slot",
            "chrome"
          ],
          "description": "`section`: a shared fragment. `menu`: a navigation block. `list`: a collection listing. `slot`: where the page body goes. `chrome`: the page's own header or footer."
        },
        "name": {
          "type": "string"
        },
        "dynamic": {
          "type": "boolean",
          "enum": [
            true
          ]
        }
      },
      "required": [
        "kind"
      ]
    },
    "PageRow": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "description": "The URL path. For a page with no route, the path its file name serves."
        },
        "contentKey": {
          "type": [
            "string",
            "null"
          ]
        },
        "layout": {
          "type": [
            "string",
            "null"
          ],
          "description": "The layout's file key."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The route title, else the page's `<title>`."
        },
        "parts": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PagePart"
          },
          "description": "What the page places (sections, menus, listings). `null` until the page is indexed."
        },
        "ownChrome": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "The page carries its own header or footer. `null` until indexed."
        },
        "noindex": {
          "type": "boolean"
        },
        "experiment": {
          "type": "boolean",
          "description": "The page has a draft or running A/B test."
        },
        "hasChanges": {
          "type": "boolean",
          "description": "The page has a staged change."
        },
        "published": {
          "type": "boolean",
          "description": "False for a page that was never published."
        },
        "pattern": {
          "type": "object",
          "properties": {
            "count": {
              "type": "integer"
            },
            "collection": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "count",
            "collection"
          ],
          "description": "A dynamic route that stands for several pages."
        },
        "noRoute": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "The page exists as a file but no route points at it."
        }
      },
      "required": [
        "path",
        "contentKey",
        "layout",
        "title",
        "parts",
        "ownChrome",
        "noindex",
        "experiment",
        "hasChanges",
        "published"
      ]
    }
  }
}