{
  "lexicon": 1,
  "id": "dev.jisaku.mosimo.attest.importer",
  "defs": {
    "main": {
      "type": "object",
      "properties": {
        "sources": {
          "type": "array",
          "items": {
            "type": "ref",
            "ref": "#source"
          },
          "maxLength": 16,
          "description": "Sorted by botDid, no duplicates."
        },
        "feeds": {
          "type": "array",
          "items": {
            "type": "ref",
            "ref": "#feed"
          },
          "maxLength": 32,
          "description": "Sorted by feed, then origin (absent first); no duplicate (feed, origin). Verifiers that predate this field reject the block."
        }
      },
      "description": "Block in a key attestation listing the (botDid, type) and (feed, origin, type) pairs an importer may re-publish. Holds sources, feeds or both, each non-empty."
    },
    "feed": {
      "type": "object",
      "required": [
        "feed"
      ],
      "properties": {
        "feed": {
          "type": "string",
          "maxLength": 317,
          "description": "Feed ID: the NSID of the feed definition (attest.importer §1.1), e.g. dev.jisaku.mosimo.public.jma."
        },
        "origin": {
          "type": "string",
          "format": "uri",
          "maxLength": 256,
          "description": "Issuer of the originals as an absolute URI. Absent: every issuer of the feed."
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 128,
            "description": "Information type defined by the feed definition; for dev.jisaku.mosimo.public.jma the original Control/Title."
          },
          "minLength": 1,
          "maxLength": 32,
          "description": "Sorted, no duplicates. Absent: every type of the feed."
        }
      }
    },
    "source": {
      "type": "object",
      "required": [
        "botDid",
        "types"
      ],
      "properties": {
        "botDid": {
          "type": "string",
          "description": "Author DID of the original posts.",
          "format": "did"
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "Information type; the value of the bsaf type: tag without prefix."
          },
          "minLength": 1,
          "maxLength": 32
        }
      }
    }
  }
}
