{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tale-dev/json-schema/tale-dev-website-input-schema.json",
  "title": "WebsiteInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tale-dev-websites-api-openapi.yml#/components/schemas/WebsiteInput",
  "type": "object",
  "required": [
    "domain",
    "scanInterval"
  ],
  "additionalProperties": false,
  "properties": {
    "domain": {
      "type": "string",
      "maxLength": 2048,
      "description": "A public hostname or https URL (`docs.example.com`, `https://www.example.com/docs`); `http://` is refused (`WEBSITE_DOMAIN_INVALID`) — the crawler dials https only. The host is what is registered, spelled as given — `www.` is not stripped; case is folded, an internationalised name is stored in its punycode form and a trailing dot is dropped — and the `www.`/apex pair counts as one site (registering the sibling of a registered domain is the 409). Loopback, link-local, private-network and cloud metadata hosts are refused (`WEBSITE_DOMAIN_NOT_CRAWLABLE`) — the crawler dials the target from inside the deployment’s network — and so is a bare IP address of any kind (`WEBSITE_DOMAIN_INVALID`): the crawler dials by host name and verifies the certificate against it, which no IP literal can present."
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "description": {
      "type": "string",
      "maxLength": 2000
    },
    "scanInterval": {
      "type": "string",
      "enum": [
        "60m",
        "6h",
        "12h",
        "1d",
        "5d",
        "7d",
        "30d"
      ],
      "description": "How often the site is re-crawled"
    },
    "urls": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2048
      },
      "maxItems": 10000,
      "description": "Registers a curated URL list on the domain instead of a whole-site crawl. Every entry must be an http(s) URL on the domain or its www/apex sibling; re-posting merges new URLs into the existing list and answers 200 with the existing id."
    }
  }
}