{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A group registration request awaiting admin review, written into the shared moderation account's (studynext.app) repo by the group-applications ingest endpoint. rkey is server-assigned (a locally-generated TID).",
      "key": "tid",
      "record": {
        "properties": {
          "applicantDid": {
            "format": "did",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 3000,
            "type": "string"
          },
          "groupType": {
            "knownValues": [
              "managed"
            ],
            "type": "string"
          },
          "name": {
            "maxLength": 600,
            "type": "string"
          },
          "status": {
            "knownValues": [
              "pending",
              "approved",
              "rejected"
            ],
            "type": "string"
          }
        },
        "required": [
          "groupType",
          "name",
          "applicantDid",
          "status",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.groupApplication",
  "lexicon": 1
}
