{
  "lexicon": 1,
  "id": "net.bisks.standard-incite.optout",
  "defs": {
    "main": {
      "type": "record",
      "description": "A self-declared opt-out from standard incite's results, written by the account itself — not by whoever searched for it. Anyone's moots pool can surface anyone else, 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 whoever ran the search. A single fixed record key (\"self\") per repo; standard incite drops any mutual with a live opt-out record on their own repo from every result, regardless of who searched or how stale their publications are. Written and read by standard incite (https://standard-incite.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."
          }
        }
      }
    }
  }
}
