{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "available",
        "unavailable"
      ]
    },
    "reason": {
      "type": "string",
      "maxLength": 2000
    },
    "fromRevisionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "toRevisionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "identity": {
            "type": "string",
            "maxLength": 2048
          },
          "path": {
            "type": "string",
            "maxLength": 2048
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "kind": {
            "type": "string",
            "maxLength": 2048
          },
          "href": {
            "type": "string",
            "maxLength": 8192
          },
          "uncertainty": {
            "type": "string",
            "maxLength": 2000
          },
          "status": {
            "type": "string",
            "enum": [
              "added",
              "removed",
              "changed",
              "moved"
            ]
          },
          "previousPath": {
            "type": "string",
            "maxLength": 2048
          },
          "previousHref": {
            "type": "string",
            "maxLength": 8192
          },
          "comparisonHref": {
            "type": "string",
            "maxLength": 8192
          },
          "provenance": {
            "const": "deterministic"
          }
        },
        "required": [
          "identity",
          "path",
          "sha256",
          "kind",
          "status",
          "provenance"
        ]
      },
      "maxItems": 100,
      "minItems": 0
    },
    "counts": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "added": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "removed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "changed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "moved": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "added",
        "removed",
        "changed",
        "moved"
      ]
    },
    "total": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "status",
    "fromRevisionId",
    "toRevisionId",
    "items",
    "counts",
    "total"
  ]
}