{
  "lexicon": 1,
  "id": "net.bisks.skymash.optout",
  "defs": {
    "main": {
      "type": "record",
      "description": "A self-declared opt-out from skymash's comparison pool, written by the account itself — not by whoever nominated it. Anyone can nominate any account, but only the account's own repo can hold a valid opt-out for itself, so this is the one record kind that respects self-removal without requiring cooperation from (or deletion rights over) the nominator's record. A single fixed record key (\"self\") per repo; skymash's pool logic excludes any subject with a live opt-out record on its own repo, regardless of how many times it's been nominated or by whom. Written and read by skymash (https://skymash.bisks.net).",
      "key": "literal:self",
      "record": {
        "type": "object",
        "required": ["subject", "optedOutAt"],
        "properties": {
          "subject": {
            "type": "string",
            "format": "did",
            "description": "Must equal the DID of the repo this record lives in — an opt-out only ever applies to its own author."
          },
          "optedOutAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this opt-out was written, as an ISO 8601 datetime."
          }
        }
      }
    }
  }
}
