{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "Artifact": {
      "properties": {
        "bytes": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object",
      "required": [
        "bytes",
        "type"
      ],
      "description": "Artifact is exact retained content with a selected interpretation: the hash of the bytes and the hash of the interpretation descriptor the bytes are read under (order 0002 D4)."
    },
    "Content": {
      "properties": {
        "entry": {
          "$ref": "#/$defs/EntryRef"
        },
        "artifact": {
          "$ref": "#/$defs/Artifact"
        }
      },
      "type": "object",
      "required": [
        "entry",
        "artifact"
      ],
      "description": "Content is the one content occurrence of an artifact space."
    },
    "EntryRef": {
      "properties": {
        "root_id": {
          "type": "string"
        },
        "space_id": {
          "type": "string"
        },
        "position": {
          "type": "integer"
        }
      },
      "type": "object",
      "required": [
        "root_id",
        "space_id",
        "position"
      ],
      "description": "EntryRef is the occurrence identity of one entry: a position in one journal."
    },
    "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": {
    "space": {
      "$ref": "#/$defs/Space"
    },
    "content": {
      "$ref": "#/$defs/Content"
    },
    "declarations": {
      "$ref": "#/$defs/Space"
    },
    "replayed": {
      "type": "boolean"
    }
  },
  "type": "object",
  "required": [
    "space",
    "content",
    "declarations",
    "replayed"
  ],
  "title": "ArtifactResult",
  "description": "ArtifactResult is the artifact space, its one content occurrence and its declarations space, created or recovered."
}
