{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Every event on one subject. Requires mod.read.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "events": {
              "items": {
                "ref": "fyi.opensocial.defs#eventView",
                "type": "ref"
              },
              "type": "array"
            },
            "subject": {
              "ref": "fyi.opensocial.defs#subjectView",
              "type": "ref"
            }
          },
          "required": [
            "subject",
            "events"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "description": "The group DID. Every method is served by the group's host and authorized against that group's roles. Or the host's own DID, for its queue of what's shared with everyone: templates, their versions, and likes of them, for the host's moderators alone.",
            "format": "did",
            "type": "string"
          },
          "subject": {
            "description": "A record's at-uri, or an account's DID.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "group",
          "subject"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.getSubjectHistory",
  "lexicon": 1
}
