{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A StudyNext social post. One post per record, normally keyed by a TID. PDS records and blobs are publicly readable; audience is an application-level display hint, not access control.",
      "key": "tid",
      "record": {
        "properties": {
          "audience": {
            "description": "StudyNext display filtering preference. It does not prevent other clients from reading this PDS record.",
            "knownValues": [
              "public",
              "friends"
            ],
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "image": {
            "accept": [
              "image/png"
            ],
            "maxSize": 5000000,
            "type": "blob"
          },
          "kind": {
            "knownValues": [
              "progress",
              "question",
              "material",
              "encouragement"
            ],
            "type": "string"
          },
          "text": {
            "maxLength": 4000,
            "minLength": 1,
            "type": "string"
          },
          "version": {
            "maximum": 1,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "version",
          "kind",
          "text",
          "audience",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.socialPost",
  "lexicon": 1
}
