{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "Path": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "Path is a location in the world: labels from a root organizer down, relative to the world."
    },
    "Space": {
      "properties": {
        "root_id": {
          "type": "string"
        },
        "space_id": {
          "type": "string"
        },
        "path": {
          "$ref": "#/$defs/Path"
        }
      },
      "type": "object",
      "required": [
        "root_id",
        "space_id",
        "path"
      ],
      "description": "Space is a space's identity together with its Dawn path: the labels below the world, so a grant by path applies to it."
    }
  },
  "properties": {
    "scope": {
      "$ref": "#/$defs/Space"
    },
    "manifest": {
      "type": "string"
    },
    "chunks": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "spaces": {
      "type": "integer"
    },
    "entries": {
      "type": "integer"
    },
    "complete": {
      "type": "boolean"
    },
    "incomplete": {
      "items": {
        "$ref": "#/$defs/Space"
      },
      "type": "array"
    },
    "next_cursor": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "scope",
    "manifest",
    "chunks",
    "spaces",
    "entries",
    "complete",
    "incomplete"
  ],
  "title": "Export",
  "description": "Export is a complete traversal of a selected subtree: every selected space's own journal prefix and child observation, retained in Bytes as one or more manifest chunks and cited by digest."
}
