{
 "openapi": "3.1.0",
 "info": {
  "title": "Velora delivery API",
  "version": "1",
  "description": "Published content of a Site Velora hosts. Send the Site's read key as `Authorization: Bearer <key>`. Answers are kept until a change touches what they show; the revalidate webhook names the requests that changed."
 },
 "servers": [
  {
   "url": "https://delivery.velora.build"
  }
 ],
 "paths": {
  "/{site_id}/site": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Site",
    "description": "Everything that renders around the content: name, address, settings,\nnavigation, sections, entity types and the article details a site keeps.",
    "operationId": "delivery_site_v1_public_delivery__site_id__site_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SiteView"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/home": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Home",
    "description": "The front page's sections, in the order the Site set.",
    "operationId": "delivery_home_v1_public_delivery__site_id__home_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HomeView"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/articles": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Articles",
    "description": "Live articles, newest first. Filters: `category`, `tag`, `author` (slugs),\n`type`, an entity as `entity_type` plus `entity` (its type's slug and\nits own), and an article detail as `detail` plus `value` (`/site`'s\n`article_details`: `detail=Sponsored&value=true`; a link detail takes the\nlinked entity's slug). `category`, `tag` and `type` take several, comma\nseparated (`type=news,race`), and match any of them. An article must match\nevery filter, or any of category, tag and type with `match=any`\n(`category=tech&type=consumer&match=any`).\n\n`cursor` reads on from a listing's `next_cursor` instead of a numbered\npage, as far back as the archive goes: \"load more\", or every article in\nturn. An ISO time instead starts at the articles published before it\n(`cursor=2019-06-01T00:00:00Z`). A read with a cursor is never kept or\ncached.",
    "operationId": "delivery_articles_v1_public_delivery__site_id__articles_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "default": 12,
       "title": "Limit"
      }
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Category"
      }
     },
     {
      "name": "tag",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tag"
      }
     },
     {
      "name": "author",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Author"
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Type"
      }
     },
     {
      "name": "entity_type",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Entity Type"
      }
     },
     {
      "name": "entity",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Entity"
      }
     },
     {
      "name": "detail",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Detail"
      }
     },
     {
      "name": "value",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Value"
      }
     },
     {
      "name": "match",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "any"
       ],
       "type": "string",
       "default": "all",
       "title": "Match"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 100
        },
        {
         "type": "null"
        }
       ],
       "title": "Cursor"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticlePage"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/articles/{slug}": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Article",
    "description": "One live article. `?format=markdown` adds the body as markdown.",
    "operationId": "delivery_article_v1_public_delivery__site_id__articles__slug__get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Slug"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Format"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticleDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/changes": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Changes",
    "description": "What changed for readers after `cursor`, oldest first: for a search\nindex, a cache or an agent keeping a copy in step. Start with no cursor (or\nan ISO time) and pass back `next_cursor`. Never cached.",
    "operationId": "delivery_changes_v1_public_delivery__site_id__changes_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "1970-01-01T00:00:00Z",
       "title": "Cursor"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 100,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChangesView"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/preview/{article_id}": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Preview",
    "description": "A draft, rendered without writing anything, through a link that expires\n(`exp`). Never cached.",
    "operationId": "delivery_preview_v1_public_delivery__site_id__preview__article_id__get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "article_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Article Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "sig",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Sig"
      }
     },
     {
      "name": "exp",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Exp"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticleDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/categories": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Categories",
    "description": "Every section, in the Site's order.",
    "operationId": "delivery_categories_v1_public_delivery__site_id__categories_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/CategoryView"
         },
         "title": "Response Delivery Categories V1 Public Delivery  Site Id  Categories Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/categories/{slug}": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Category",
    "description": "A section and a page of its articles.",
    "operationId": "delivery_category_v1_public_delivery__site_id__categories__slug__get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Slug"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "default": 12,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CategoryPage"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/tags": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Tags",
    "description": "Tags on live articles, most used first.",
    "operationId": "delivery_tags_v1_public_delivery__site_id__tags_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 100,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/TagCountView"
         },
         "title": "Response Delivery Tags V1 Public Delivery  Site Id  Tags Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/authors": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Authors",
    "description": "The Site's writers.",
    "operationId": "delivery_authors_v1_public_delivery__site_id__authors_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AuthorView"
         },
         "title": "Response Delivery Authors V1 Public Delivery  Site Id  Authors Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/authors/{slug}": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Author",
    "description": "A writer and a page of their articles.",
    "operationId": "delivery_author_v1_public_delivery__site_id__authors__slug__get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Slug"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "default": 12,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AuthorPage"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/entities/{type_slug}": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Entity Type",
    "description": "The type's entities with a page, or with `via` and `to` every one whose\n`via` detail links to the entity `to` names, with a page or not.",
    "operationId": "delivery_entity_type_v1_public_delivery__site_id__entities__type_slug__get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "type_slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Type Slug"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "default": 48,
       "title": "Limit"
      }
     },
     {
      "name": "via",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 60
        },
        {
         "type": "null"
        }
       ],
       "description": "A link detail of the type",
       "title": "Via"
      },
      "description": "A link detail of the type"
     },
     {
      "name": "to",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 200
        },
        {
         "type": "null"
        }
       ],
       "description": "The linked entity's slug",
       "title": "To"
      },
      "description": "The linked entity's slug"
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EntityTypePage"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/entities/{type_slug}/{slug}": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Entity",
    "description": "One entity: its details, bio, a page of the articles about it, and\nthe entities linking to it.",
    "operationId": "delivery_entity_v1_public_delivery__site_id__entities__type_slug___slug__get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "type_slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Type Slug"
      }
     },
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Slug"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "default": 12,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EntityDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/pages/{slug}": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Page",
    "description": "A static page, such as About.",
    "operationId": "delivery_page_v1_public_delivery__site_id__pages__slug__get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Slug"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PageView"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/resolve": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Resolve",
    "description": "What lives at a path: an article, a page, a category, an entity type\nindex or an entity, with the slug its own endpoint takes and the content\nitself (a listing's `page` of `limit`); or a redirect from an old address;\nor nothing. Front ends serve every path from this one call.",
    "operationId": "delivery_resolve_v1_public_delivery__site_id__resolve_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "path",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Path"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "default": 12,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ResolvedPath"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/sitemap": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Sitemap",
    "description": "Every address on the Site, with when it last changed.",
    "operationId": "delivery_sitemap_v1_public_delivery__site_id__sitemap_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Sitemap"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/llms.txt": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Llms Txt",
    "description": "The publication as an `llms.txt` index (llmstxt.org): what it is, its\nsections and topics, and its latest articles with links to their markdown.\nA front end serves it at its own `/llms.txt`.",
    "operationId": "delivery_llms_txt_v1_public_delivery__site_id__llms_txt_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/search": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Search",
    "description": "Live articles matching `q` (words, \"quoted phrases\", -excluded), best first.",
    "operationId": "delivery_search_v1_public_delivery__site_id__search_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "minLength": 2,
       "maxLength": 200,
       "title": "Q"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "default": 12,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ArticlePage"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/{site_id}/many": {
   "get": {
    "tags": [
     "delivery"
    ],
    "summary": "Delivery Many",
    "description": "Several reads in one call. Each `r` is a request as its own endpoint\ntakes it, from the Site on (`r=/articles?category=news&limit=3`), and is\nanswered exactly as that endpoint answers it, in the order asked. The\nanswer is kept until a change touches any of them.",
    "operationId": "delivery_many_v1_public_delivery__site_id__many_get",
    "parameters": [
     {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Site Id"
      }
     },
     {
      "name": "r",
      "in": "query",
      "required": true,
      "schema": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "minItems": 1,
       "maxItems": 10,
       "title": "R"
      }
     },
     {
      "name": "key",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Key"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BatchView"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "ArticleCard": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "excerpt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Excerpt"
     },
     "eyebrow": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Eyebrow"
     },
     "cover": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     },
     "published_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "reading_minutes": {
      "type": "integer",
      "title": "Reading Minutes",
      "default": 1
     },
     "article_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Article Type"
     },
     "category": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CategoryRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "authors": {
      "items": {
       "$ref": "#/components/schemas/AuthorRef"
      },
      "type": "array",
      "title": "Authors"
     },
     "tags": {
      "items": {
       "$ref": "#/components/schemas/TagRef"
      },
      "type": "array",
      "title": "Tags"
     },
     "details": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        },
        {
         "type": "number"
        },
        {
         "type": "boolean"
        },
        {
         "$ref": "#/components/schemas/LinkedEntity"
        },
        {
         "items": {
          "$ref": "#/components/schemas/LinkedEntity"
         },
         "type": "array"
        }
       ]
      },
      "type": "object",
      "title": "Details"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "path",
     "title",
     "excerpt",
     "eyebrow",
     "cover",
     "published_at",
     "updated_at",
     "reading_minutes",
     "article_type",
     "category",
     "authors",
     "tags",
     "details"
    ],
    "title": "ArticleCard"
   },
   "ArticleDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "excerpt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Excerpt"
     },
     "eyebrow": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Eyebrow"
     },
     "cover": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     },
     "published_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "reading_minutes": {
      "type": "integer",
      "title": "Reading Minutes",
      "default": 1
     },
     "article_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Article Type"
     },
     "category": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CategoryRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "authors": {
      "items": {
       "$ref": "#/components/schemas/AuthorView"
      },
      "type": "array",
      "title": "Authors"
     },
     "tags": {
      "items": {
       "$ref": "#/components/schemas/TagRef"
      },
      "type": "array",
      "title": "Tags"
     },
     "details": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        },
        {
         "type": "number"
        },
        {
         "type": "boolean"
        },
        {
         "$ref": "#/components/schemas/LinkedEntity"
        },
        {
         "items": {
          "$ref": "#/components/schemas/LinkedEntity"
         },
         "type": "array"
        }
       ]
      },
      "type": "object",
      "title": "Details"
     },
     "body": {
      "items": {
       "oneOf": [
        {
         "$ref": "#/components/schemas/TextBlock"
        },
        {
         "$ref": "#/components/schemas/ImageBlock"
        },
        {
         "$ref": "#/components/schemas/TableBlock"
        },
        {
         "$ref": "#/components/schemas/CodeBlock"
        },
        {
         "$ref": "#/components/schemas/BreakBlock"
        },
        {
         "$ref": "#/components/schemas/EmbedBlock"
        },
        {
         "$ref": "#/components/schemas/GalleryBlock"
        },
        {
         "$ref": "#/components/schemas/QuoteBlock"
        },
        {
         "$ref": "#/components/schemas/CalloutBlock"
        },
        {
         "$ref": "#/components/schemas/GraphicBlock"
        },
        {
         "$ref": "#/components/schemas/CustomBlock"
        }
       ]
      },
      "type": "array",
      "title": "Body"
     },
     "html": {
      "type": "string",
      "title": "Html",
      "default": ""
     },
     "markdown": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Markdown"
     },
     "word_count": {
      "type": "integer",
      "title": "Word Count",
      "default": 0
     },
     "seo": {
      "$ref": "#/components/schemas/ArticleSeo"
     },
     "entities": {
      "items": {
       "$ref": "#/components/schemas/EntityRef"
      },
      "type": "array",
      "title": "Entities"
     },
     "corrections": {
      "items": {
       "$ref": "#/components/schemas/Correction"
      },
      "type": "array",
      "title": "Corrections"
     },
     "related": {
      "items": {
       "$ref": "#/components/schemas/ArticleCard"
      },
      "type": "array",
      "title": "Related"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "path",
     "title",
     "excerpt",
     "eyebrow",
     "cover",
     "published_at",
     "updated_at",
     "reading_minutes",
     "article_type",
     "category",
     "authors",
     "tags",
     "details",
     "body",
     "html",
     "markdown",
     "word_count",
     "seo",
     "entities",
     "corrections",
     "related"
    ],
    "title": "ArticleDetail"
   },
   "ArticlePage": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/ArticleCard"
      },
      "type": "array",
      "title": "Items"
     },
     "page": {
      "type": "integer",
      "title": "Page"
     },
     "pages": {
      "type": "integer",
      "title": "Pages"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "next_cursor": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next Cursor",
      "description": "Where the next page starts, or null on the last: pass it as `cursor` to `/articles` with the same filters and `limit` (a category's, tag's, author's or entity's listing is `/articles` filtered by it). Pages read this way cost the same at any depth and go on past page 500. Always null from `/search`, which pages by number."
     }
    },
    "type": "object",
    "required": [
     "items",
     "page",
     "pages",
     "total",
     "next_cursor"
    ],
    "title": "ArticlePage",
    "description": "A page of article cards."
   },
   "ArticleSeo": {
    "properties": {
     "title": {
      "type": "string",
      "title": "Title"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Image Url"
     },
     "canonical_path": {
      "type": "string",
      "title": "Canonical Path"
     }
    },
    "type": "object",
    "required": [
     "title",
     "description",
     "image_url",
     "canonical_path"
    ],
    "title": "ArticleSeo"
   },
   "AuthorPage": {
    "properties": {
     "author": {
      "$ref": "#/components/schemas/AuthorView"
     },
     "articles": {
      "$ref": "#/components/schemas/ArticlePage"
     }
    },
    "type": "object",
    "required": [
     "author",
     "articles"
    ],
    "title": "AuthorPage"
   },
   "AuthorRef": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "avatar": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "path",
     "avatar",
     "title"
    ],
    "title": "AuthorRef"
   },
   "AuthorView": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "avatar": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "bio": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Bio"
     },
     "social": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Social"
     },
     "articles": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Articles"
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "path",
     "avatar",
     "title",
     "bio",
     "social",
     "articles"
    ],
    "title": "AuthorView",
    "description": "An author in full: on their own page, the author list and an\narticle's byline."
   },
   "BatchItem": {
    "properties": {
     "request": {
      "type": "string",
      "title": "Request"
     },
     "status": {
      "type": "integer",
      "title": "Status"
     },
     "body": {
      "title": "Body"
     }
    },
    "type": "object",
    "required": [
     "request",
     "status",
     "body"
    ],
    "title": "BatchItem"
   },
   "BatchView": {
    "properties": {
     "results": {
      "items": {
       "$ref": "#/components/schemas/BatchItem"
      },
      "type": "array",
      "title": "Results"
     }
    },
    "type": "object",
    "required": [
     "results"
    ],
    "title": "BatchView",
    "description": "Several reads in one call, answered in the order they were asked."
   },
   "BreakBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "break",
      "title": "Type"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type"
    ],
    "title": "BreakBlock"
   },
   "CalloutBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "callout",
      "title": "Type"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "text": {
      "type": "string",
      "title": "Text"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "title",
     "text"
    ],
    "title": "CalloutBlock"
   },
   "CategoryPage": {
    "properties": {
     "category": {
      "$ref": "#/components/schemas/CategoryView"
     },
     "articles": {
      "$ref": "#/components/schemas/ArticlePage"
     }
    },
    "type": "object",
    "required": [
     "category",
     "articles"
    ],
    "title": "CategoryPage"
   },
   "CategoryParent": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "path": {
      "type": "string",
      "title": "Path"
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "path"
    ],
    "title": "CategoryParent",
    "description": "The top-level category one sits inside, for a breadcrumb."
   },
   "CategoryRef": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "parent": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CategoryParent"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "path",
     "parent"
    ],
    "title": "CategoryRef"
   },
   "CategoryView": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "parent": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CategoryParent"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "path",
     "description",
     "parent"
    ],
    "title": "CategoryView"
   },
   "ChangeView": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "state": {
      "type": "string",
      "enum": [
       "live",
       "removed"
      ],
      "title": "State"
     },
     "published_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Published At"
     },
     "changed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Changed At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "path",
     "state",
     "published_at",
     "changed_at"
    ],
    "title": "ChangeView",
    "description": "One entry whose reader-facing state changed: `live` (published or\nupdated) or `removed` (taken down). Poll with the last `changed_at` seen."
   },
   "ChangesView": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/ChangeView"
      },
      "type": "array",
      "title": "Items"
     },
     "next_cursor": {
      "type": "string",
      "title": "Next Cursor"
     }
    },
    "type": "object",
    "required": [
     "items",
     "next_cursor"
    ],
    "title": "ChangesView"
   },
   "CodeBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "code",
      "title": "Type"
     },
     "code": {
      "type": "string",
      "title": "Code"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "code",
     "language"
    ],
    "title": "CodeBlock"
   },
   "Correction": {
    "properties": {
     "at": {
      "type": "string",
      "format": "date-time",
      "title": "At"
     },
     "note": {
      "type": "string",
      "maxLength": 1000,
      "minLength": 1,
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "at",
     "note"
    ],
    "title": "Correction",
    "description": "A dated note on a published article, shown to readers."
   },
   "CustomBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "title": "Type"
     }
    },
    "additionalProperties": true,
    "type": "object",
    "required": [
     "_key",
     "_type"
    ],
    "title": "CustomBlock",
    "description": "One of the Site's own blocks: `_type` is its name, and the fields its\ndefinition names sit beside it."
   },
   "DetailView": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "links_to": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Links To"
     },
     "many": {
      "type": "boolean",
      "title": "Many",
      "default": false
     },
     "options": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Options"
     }
    },
    "type": "object",
    "required": [
     "key",
     "kind",
     "links_to",
     "many",
     "options"
    ],
    "title": "DetailView",
    "description": "One detail every entity of a type (or every article) has, so a front\nend knows the shape of its values before it reads one."
   },
   "EmbedBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "embed",
      "title": "Type"
     },
     "provider": {
      "type": "string",
      "enum": [
       "twitter",
       "instagram",
       "youtube",
       "tiktok",
       "bluesky",
       "threads",
       "facebook",
       "linkedin",
       "vimeo",
       "strava",
       "other"
      ],
      "title": "Provider"
     },
     "url": {
      "type": "string",
      "title": "Url"
     },
     "caption": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caption"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "provider",
     "url",
     "caption"
    ],
    "title": "EmbedBlock",
    "description": "A post or video from another service, by its public URL."
   },
   "EntityCard": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "summary": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Summary"
     },
     "image": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     },
     "articles": {
      "type": "integer",
      "title": "Articles",
      "default": 0
     },
     "fields": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        },
        {
         "type": "number"
        },
        {
         "type": "boolean"
        },
        {
         "$ref": "#/components/schemas/LinkedEntity"
        },
        {
         "items": {
          "$ref": "#/components/schemas/LinkedEntity"
         },
         "type": "array"
        }
       ]
      },
      "type": "object",
      "title": "Fields"
     },
     "path": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Path"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "name",
     "summary",
     "image",
     "articles",
     "fields",
     "path"
    ],
    "title": "EntityCard"
   },
   "EntityDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "summary": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Summary"
     },
     "image": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     },
     "articles": {
      "type": "integer",
      "title": "Articles",
      "default": 0
     },
     "fields": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        },
        {
         "type": "number"
        },
        {
         "type": "boolean"
        },
        {
         "$ref": "#/components/schemas/LinkedEntity"
        },
        {
         "items": {
          "$ref": "#/components/schemas/LinkedEntity"
         },
         "type": "array"
        }
       ]
      },
      "type": "object",
      "title": "Fields"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "type": {
      "$ref": "#/components/schemas/EntityTypeView"
     },
     "bio_html": {
      "type": "string",
      "title": "Bio Html",
      "default": ""
     },
     "bio": {
      "items": {
       "oneOf": [
        {
         "$ref": "#/components/schemas/TextBlock"
        },
        {
         "$ref": "#/components/schemas/ImageBlock"
        },
        {
         "$ref": "#/components/schemas/TableBlock"
        },
        {
         "$ref": "#/components/schemas/CodeBlock"
        },
        {
         "$ref": "#/components/schemas/BreakBlock"
        },
        {
         "$ref": "#/components/schemas/EmbedBlock"
        },
        {
         "$ref": "#/components/schemas/GalleryBlock"
        },
        {
         "$ref": "#/components/schemas/QuoteBlock"
        },
        {
         "$ref": "#/components/schemas/CalloutBlock"
        },
        {
         "$ref": "#/components/schemas/GraphicBlock"
        },
        {
         "$ref": "#/components/schemas/CustomBlock"
        }
       ]
      },
      "type": "array",
      "title": "Bio"
     },
     "articles_page": {
      "$ref": "#/components/schemas/ArticlePage"
     },
     "seo": {
      "$ref": "#/components/schemas/EntitySeo"
     },
     "linked_from": {
      "items": {
       "$ref": "#/components/schemas/LinkedGroupView"
      },
      "type": "array",
      "title": "Linked From"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "name",
     "summary",
     "image",
     "articles",
     "fields",
     "path",
     "type",
     "bio_html",
     "bio",
     "articles_page",
     "seo",
     "linked_from"
    ],
    "title": "EntityDetail"
   },
   "EntityRef": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "type_slug": {
      "type": "string",
      "title": "Type Slug"
     },
     "type_name": {
      "type": "string",
      "title": "Type Name"
     },
     "image": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "path",
     "type_slug",
     "type_name",
     "image"
    ],
    "title": "EntityRef"
   },
   "EntitySeo": {
    "properties": {
     "index": {
      "type": "boolean",
      "title": "Index"
     },
     "canonical_path": {
      "type": "string",
      "title": "Canonical Path"
     }
    },
    "type": "object",
    "required": [
     "index",
     "canonical_path"
    ],
    "title": "EntitySeo"
   },
   "EntityTypePage": {
    "properties": {
     "type": {
      "$ref": "#/components/schemas/EntityTypeView"
     },
     "items": {
      "items": {
       "$ref": "#/components/schemas/EntityCard"
      },
      "type": "array",
      "title": "Items"
     },
     "page": {
      "type": "integer",
      "title": "Page"
     },
     "pages": {
      "type": "integer",
      "title": "Pages"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     }
    },
    "type": "object",
    "required": [
     "type",
     "items",
     "page",
     "pages",
     "total"
    ],
    "title": "EntityTypePage"
   },
   "EntityTypeView": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "singular_name": {
      "type": "string",
      "title": "Singular Name"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "details": {
      "items": {
       "$ref": "#/components/schemas/DetailView"
      },
      "type": "array",
      "title": "Details"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "name",
     "singular_name",
     "kind",
     "path",
     "details"
    ],
    "title": "EntityTypeView"
   },
   "GalleryBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "gallery",
      "title": "Type"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "images": {
      "items": {
       "$ref": "#/components/schemas/ImageBlock"
      },
      "type": "array",
      "title": "Images"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "title",
     "images"
    ],
    "title": "GalleryBlock"
   },
   "GraphicBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "graphic",
      "title": "Type"
     },
     "id": {
      "type": "string",
      "title": "Id"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "alt": {
      "type": "string",
      "title": "Alt"
     },
     "caption": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caption"
     },
     "image": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RenderedImage"
       },
       {
        "type": "null"
       }
      ]
     },
     "markup": {
      "type": "string",
      "title": "Markup"
     },
     "script": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Script"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "id",
     "title",
     "alt",
     "caption",
     "image",
     "markup",
     "script"
    ],
    "title": "GraphicBlock",
    "description": "An interactive graphic: `markup` (and `script`) to draw it, `image` for\nanywhere that cannot run it."
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "HomeSection": {
    "properties": {
     "kind": {
      "type": "string",
      "enum": [
       "articles",
       "entity_type"
      ],
      "title": "Kind"
     },
     "key": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Key"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "path": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Path"
     },
     "articles": {
      "items": {
       "$ref": "#/components/schemas/ArticleCard"
      },
      "type": "array",
      "title": "Articles"
     },
     "entities": {
      "items": {
       "$ref": "#/components/schemas/EntityCard"
      },
      "type": "array",
      "title": "Entities"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "key",
     "title",
     "path",
     "articles",
     "entities"
    ],
    "title": "HomeSection"
   },
   "HomeView": {
    "properties": {
     "sections": {
      "items": {
       "$ref": "#/components/schemas/HomeSection"
      },
      "type": "array",
      "title": "Sections"
     }
    },
    "type": "object",
    "required": [
     "sections"
    ],
    "title": "HomeView"
   },
   "ImageBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "url": {
      "type": "string",
      "title": "Url"
     },
     "alt": {
      "type": "string",
      "title": "Alt",
      "default": ""
     },
     "caption": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caption"
     },
     "credit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Credit"
     },
     "width": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Width"
     },
     "height": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Height"
     },
     "focalPoint": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ImageFocalPoint"
       },
       {
        "type": "null"
       }
      ]
     },
     "placeholder": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Placeholder"
     },
     "_type": {
      "type": "string",
      "const": "image",
      "title": "Type"
     },
     "link": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Link"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "url",
     "alt",
     "caption",
     "credit",
     "width",
     "height",
     "focalPoint",
     "placeholder",
     "_type",
     "link"
    ],
    "title": "ImageBlock",
    "description": "An image in a body or a gallery: an image with a place and a link."
   },
   "ImageFocalPoint": {
    "properties": {
     "x": {
      "type": "number",
      "title": "X"
     },
     "y": {
      "type": "number",
      "title": "Y"
     }
    },
    "type": "object",
    "required": [
     "x",
     "y"
    ],
    "title": "ImageFocalPoint",
    "description": "0-1 from the left and the top of the image."
   },
   "LinkMark": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "link",
      "title": "Type"
     },
     "href": {
      "type": "string",
      "title": "Href"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "href"
    ],
    "title": "LinkMark"
   },
   "LinkedEntity": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "type_slug": {
      "type": "string",
      "title": "Type Slug"
     },
     "path": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Path"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "name",
     "type_slug",
     "path"
    ],
    "title": "LinkedEntity",
    "description": "An entity a detail links to."
   },
   "LinkedGroupView": {
    "properties": {
     "type_slug": {
      "type": "string",
      "title": "Type Slug"
     },
     "type_name": {
      "type": "string",
      "title": "Type Name"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "items": {
      "items": {
       "$ref": "#/components/schemas/EntityCard"
      },
      "type": "array",
      "title": "Items"
     }
    },
    "type": "object",
    "required": [
     "type_slug",
     "type_name",
     "detail",
     "total",
     "items"
    ],
    "title": "LinkedGroupView",
    "description": "The entities of one type linking to an entity through one of their\ndetails: a team's riders, by Team."
   },
   "NavItem": {
    "properties": {
     "label": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1,
      "title": "Label"
     },
     "url": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Url"
     }
    },
    "type": "object",
    "required": [
     "label",
     "url"
    ],
    "title": "NavItem"
   },
   "Navigation": {
    "properties": {
     "primary": {
      "items": {
       "$ref": "#/components/schemas/NavItem"
      },
      "type": "array",
      "maxItems": 12,
      "title": "Primary"
     },
     "footer": {
      "items": {
       "$ref": "#/components/schemas/NavItem"
      },
      "type": "array",
      "maxItems": 24,
      "title": "Footer"
     }
    },
    "type": "object",
    "title": "Navigation"
   },
   "PageView": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "body": {
      "items": {
       "oneOf": [
        {
         "$ref": "#/components/schemas/TextBlock"
        },
        {
         "$ref": "#/components/schemas/ImageBlock"
        },
        {
         "$ref": "#/components/schemas/TableBlock"
        },
        {
         "$ref": "#/components/schemas/CodeBlock"
        },
        {
         "$ref": "#/components/schemas/BreakBlock"
        },
        {
         "$ref": "#/components/schemas/EmbedBlock"
        },
        {
         "$ref": "#/components/schemas/GalleryBlock"
        },
        {
         "$ref": "#/components/schemas/QuoteBlock"
        },
        {
         "$ref": "#/components/schemas/CalloutBlock"
        },
        {
         "$ref": "#/components/schemas/GraphicBlock"
        },
        {
         "$ref": "#/components/schemas/CustomBlock"
        }
       ]
      },
      "type": "array",
      "title": "Body"
     },
     "html": {
      "type": "string",
      "title": "Html",
      "default": ""
     },
     "seo_title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seo Title"
     },
     "seo_description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seo Description"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "slug",
     "path",
     "title",
     "body",
     "html",
     "seo_title",
     "seo_description",
     "updated_at"
    ],
    "title": "PageView"
   },
   "QuoteBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "quote",
      "title": "Type"
     },
     "text": {
      "type": "string",
      "title": "Text"
     },
     "credit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Credit"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "text",
     "credit"
    ],
    "title": "QuoteBlock"
   },
   "RenderedImage": {
    "properties": {
     "url": {
      "type": "string",
      "title": "Url"
     },
     "alt": {
      "type": "string",
      "title": "Alt",
      "default": ""
     },
     "caption": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caption"
     },
     "credit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Credit"
     },
     "width": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Width"
     },
     "height": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Height"
     },
     "focalPoint": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ImageFocalPoint"
       },
       {
        "type": "null"
       }
      ]
     },
     "placeholder": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Placeholder"
     }
    },
    "type": "object",
    "required": [
     "url",
     "alt",
     "caption",
     "credit",
     "width",
     "height",
     "focalPoint",
     "placeholder"
    ],
    "title": "RenderedImage",
    "description": "An image as readers get it: a cover, a product's picture, a graphic's,\nan author's or an entity's."
   },
   "ResolvedPath": {
    "properties": {
     "kind": {
      "type": "string",
      "enum": [
       "article",
       "page",
       "category",
       "entity_type",
       "entity",
       "redirect",
       "not_found"
      ],
      "title": "Kind"
     },
     "path": {
      "type": "string",
      "title": "Path"
     },
     "to": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "To"
     },
     "slug": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Slug"
     },
     "type_slug": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Type Slug"
     },
     "article": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ArticleDetail"
       },
       {
        "type": "null"
       }
      ]
     },
     "page": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PageView"
       },
       {
        "type": "null"
       }
      ]
     },
     "category": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CategoryPage"
       },
       {
        "type": "null"
       }
      ]
     },
     "entity_type": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/EntityTypePage"
       },
       {
        "type": "null"
       }
      ]
     },
     "entity": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/EntityDetail"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "kind",
     "path",
     "to",
     "slug",
     "type_slug",
     "article",
     "page",
     "category",
     "entity_type",
     "entity"
    ],
    "title": "ResolvedPath",
    "description": "What lives at a path. ``slug`` (and ``type_slug`` for an entity) is\nwhat its own endpoint takes: `/articles/{slug}`, `/pages/{slug}`,\n`/categories/{slug}`, `/entities/{type_slug}` or\n`/entities/{type_slug}/{slug}`. A redirect says where to (``to``)."
   },
   "SeoDefaults": {
    "properties": {
     "title_suffix": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Title Suffix"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     }
    },
    "type": "object",
    "title": "SeoDefaults"
   },
   "SiteSettings": {
    "properties": {
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "logo_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Logo Url"
     },
     "default_share_image_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Default Share Image Url"
     },
     "social": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Social"
     },
     "seo": {
      "$ref": "#/components/schemas/SeoDefaults"
     },
     "time_zone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Time Zone"
     }
    },
    "type": "object",
    "title": "SiteSettings",
    "description": "What renders around the content: name, logo, links, defaults."
   },
   "SiteView": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     },
     "language": {
      "type": "string",
      "title": "Language"
     },
     "settings": {
      "$ref": "#/components/schemas/SiteSettings"
     },
     "navigation": {
      "$ref": "#/components/schemas/Navigation"
     },
     "categories": {
      "items": {
       "$ref": "#/components/schemas/CategoryView"
      },
      "type": "array",
      "title": "Categories"
     },
     "entity_types": {
      "items": {
       "$ref": "#/components/schemas/EntityTypeView"
      },
      "type": "array",
      "title": "Entity Types"
     },
     "article_details": {
      "items": {
       "$ref": "#/components/schemas/DetailView"
      },
      "type": "array",
      "title": "Article Details"
     }
    },
    "type": "object",
    "required": [
     "name",
     "url",
     "language",
     "settings",
     "navigation",
     "categories",
     "entity_types",
     "article_details"
    ],
    "title": "SiteView",
    "description": "Everything that renders around the content: one call per page load,\ncached like the rest."
   },
   "Sitemap": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/SitemapItem"
      },
      "type": "array",
      "title": "Items"
     }
    },
    "type": "object",
    "required": [
     "items"
    ],
    "title": "Sitemap"
   },
   "SitemapItem": {
    "properties": {
     "path": {
      "type": "string",
      "title": "Path"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "path",
     "updated_at"
    ],
    "title": "SitemapItem"
   },
   "Span": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "span",
      "title": "Type"
     },
     "text": {
      "type": "string",
      "title": "Text"
     },
     "marks": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Marks"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "text",
     "marks"
    ],
    "title": "Span"
   },
   "TableBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "table",
      "title": "Type"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "subtitle": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subtitle"
     },
     "columns": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Columns"
     },
     "rows": {
      "items": {
       "$ref": "#/components/schemas/TableRow"
      },
      "type": "array",
      "title": "Rows"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "title",
     "subtitle",
     "columns",
     "rows"
    ],
    "title": "TableBlock",
    "description": "Any table: a markdown table in the body, or a data, results or stage\ntable a writer filled in. `cells` line up with `columns`."
   },
   "TableRow": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "cells": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Cells"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "cells"
    ],
    "title": "TableRow"
   },
   "TagCountView": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "articles": {
      "type": "integer",
      "title": "Articles"
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "articles"
    ],
    "title": "TagCountView"
   },
   "TagRef": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name"
    ],
    "title": "TagRef",
    "description": "A label on an article. Tags filter listings but have no page."
   },
   "TextBlock": {
    "properties": {
     "_key": {
      "type": "string",
      "title": "Key"
     },
     "_type": {
      "type": "string",
      "const": "block",
      "title": "Type"
     },
     "style": {
      "type": "string",
      "enum": [
       "normal",
       "h2",
       "h3",
       "h4",
       "h5",
       "h6",
       "blockquote"
      ],
      "title": "Style",
      "default": "normal"
     },
     "listItem": {
      "type": "string",
      "enum": [
       "bullet",
       "number"
      ],
      "title": "Listitem"
     },
     "level": {
      "type": "integer",
      "title": "Level"
     },
     "markDefs": {
      "items": {
       "$ref": "#/components/schemas/LinkMark"
      },
      "type": "array",
      "title": "Markdefs"
     },
     "children": {
      "items": {
       "$ref": "#/components/schemas/Span"
      },
      "type": "array",
      "title": "Children"
     }
    },
    "type": "object",
    "required": [
     "_key",
     "_type",
     "style",
     "markDefs",
     "children"
    ],
    "title": "TextBlock",
    "description": "A paragraph, heading, quote or list item (`listItem`, `level`)."
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   }
  },
  "securitySchemes": {
   "readKey": {
    "type": "http",
    "scheme": "bearer"
   }
  }
 },
 "security": [
  {
   "readKey": []
  }
 ]
}
