{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\\\\\u0000]+$"
    },
    "blobHash": {
      "type": "string",
      "maxLength": 128
    },
    "kind": {
      "type": "string",
      "enum": [
        "file",
        "directory",
        "submodule"
      ]
    },
    "capture": {
      "type": "string",
      "enum": [
        "retained",
        "uncaptured",
        "unavailable"
      ]
    },
    "content": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2097152
        },
        {
          "type": "null"
        }
      ]
    },
    "contentTruncated": {
      "type": "boolean"
    },
    "base64": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 25165824
        },
        {
          "type": "null"
        }
      ]
    },
    "bytes": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "sha256": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "binary": {
      "type": "boolean"
    },
    "nextLine": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096,
          "pattern": "^[^\\s]+$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "path",
    "blobHash",
    "capture",
    "content",
    "nextCursor"
  ]
}