{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The listing owner's moderation of notes on their own listing, bsky-threadgate style: the record key MUST match the listing's record key. hiddenReplies drop from default views (view policy, not deletion — the note survives in its author's repo; reports remain the violation path). Future allow/close rules are additive fields here.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "hiddenReplies": {
            "description": "AT-URIs of community.gifthood.reply records hidden from default views on this listing.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 300,
            "type": "array"
          },
          "listing": {
            "description": "Strong reference to the owner's own listing. Belt for the matching-rkey suspenders; indexers verify both.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "listing",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "community.gifthood.replygate",
  "lexicon": 1
}
