{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "preview": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "Resource identifier returned by the operation."
        },
        "projectId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "domain": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "expiresAt": {
          "type": "string"
        },
        "state": {
          "type": "string",
          "enum": [
            "pending",
            "complete"
          ],
          "description": "Saved lifecycle or evidence state, as enumerated for this record."
        },
        "urls": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "documents": {
          "maxItems": 13,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "requestedUrl": {
                "type": "string"
              },
              "finalUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "checkedAt": {
                "type": "string"
              },
              "sha256": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991,
                    "description": "Resource lifecycle status."
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Resource lifecycle status."
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Recorded explanation; null when no explanation applies."
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Recorded explanation; null when no explanation applies."
              },
              "kind": {
                "type": "string",
                "enum": [
                  "robots",
                  "index",
                  "urlset",
                  "unknown"
                ]
              }
            },
            "required": [
              "requestedUrl",
              "finalUrl",
              "checkedAt",
              "sha256",
              "status",
              "reason",
              "kind"
            ],
            "additionalProperties": false
          }
        },
        "coverage": {
          "type": "object",
          "properties": {
            "completeSiteCensus": {
              "type": "boolean",
              "const": false
            },
            "truncated": {
              "type": "boolean"
            },
            "reasons": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "completeSiteCensus",
            "truncated",
            "reasons"
          ],
          "additionalProperties": false,
          "description": "Dataset scope and completeness, including limits on what these results establish."
        }
      },
      "required": [
        "id",
        "projectId",
        "domain",
        "createdAt",
        "expiresAt",
        "state",
        "urls",
        "documents",
        "coverage"
      ],
      "additionalProperties": false
    },
    "limits": {
      "type": "object",
      "properties": {
        "sitemapDocuments": {
          "type": "number",
          "const": 3
        },
        "indexDepth": {
          "type": "number",
          "const": 2
        },
        "timeoutMs": {
          "type": "number",
          "const": 20000
        },
        "documentBytes": {
          "type": "number",
          "const": 2097152
        },
        "offeredUrls": {
          "type": "number",
          "const": 100
        },
        "inventoryUrlBytes": {
          "type": "number",
          "const": 131072
        },
        "requests": {
          "type": "number",
          "const": 10
        },
        "retentionMs": {
          "type": "number",
          "const": 900000
        },
        "startsPerMinute": {
          "type": "number",
          "const": 3
        }
      },
      "required": [
        "sitemapDocuments",
        "indexDepth",
        "timeoutMs",
        "documentBytes",
        "offeredUrls",
        "inventoryUrlBytes",
        "requests",
        "retentionMs",
        "startsPerMinute"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "preview",
    "limits"
  ],
  "additionalProperties": false
}
