{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An invitation, written by the inviting group into the invitee's own invites space. The group is the record's author.",
      "key": "tid",
      "record": {
        "properties": {
          "by": {
            "description": "Who in the group sent it.",
            "format": "did",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "expiresAt": {
            "format": "datetime",
            "type": "string"
          },
          "message": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.opensocial.invite",
  "lexicon": 1
}
