{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "PublishedItem": {
      "description": "One lexicon record included in a publish.",
      "properties": {
        "cid": {
          "description": "CID of the record as stored on the PDS.",
          "format": "cid",
          "type": "string"
        },
        "nsid": {
          "description": "NSID of the published lexicon.",
          "format": "nsid",
          "type": "string"
        }
      },
      "required": [
        "nsid",
        "cid"
      ],
      "type": "object"
    },
    "ResolvedDependency": {
      "description": "One external dependency pinned at publish time.",
      "properties": {
        "cid": {
          "description": "CID of the record at the moment of the publish.",
          "format": "cid",
          "type": "string"
        },
        "nsid": {
          "description": "NSID of the external lexicon the package linked against.",
          "format": "nsid",
          "type": "string"
        }
      },
      "required": [
        "nsid",
        "cid"
      ],
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "published": {
            "description": "Every lexicon record the publish wrote to the PDS in this event,\nsorted lexicographically by NSID.",
            "items": {
              "ref": "#PublishedItem",
              "type": "ref"
            },
            "type": "array"
          },
          "publishedAt": {
            "description": "ISO 8601 timestamp of when the publish completed.",
            "format": "datetime",
            "type": "string"
          },
          "resolvedDependencies": {
            "description": "Every external lexicon the workspace resolved against at publish\ntime, pinned to the remote CID observed during the publish.\nEmpty list when the package has no external dependencies.",
            "items": {
              "ref": "#ResolvedDependency",
              "type": "ref"
            },
            "type": "array"
          },
          "tool": {
            "description": "Version string of the MLF tool that produced the publish\n(e.g. `\"mlf@0.1.0\"`).",
            "type": "string"
          }
        },
        "required": [
          "publishedAt",
          "tool",
          "published"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "MLF publish manifest — one record per publish event.\n\nWritten by `mlf publish` into the author's PDS alongside the\nlexicons themselves. The record's own CID is the durable identifier\nfor \"this specific publish\" — a content-addressed release pointer\nthat binds the set of published items and the dependency versions\nthey were resolved against.",
  "id": "lol.mlf.package",
  "lexicon": 1
}
