{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A guild summons — an invitation scroll delivered to a fellow adventurer's PDS, beckoning them to join a party for tavern battles.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "expiresAt": {
            "description": "After this time the summons fades and can no longer be answered.",
            "format": "datetime",
            "type": "string"
          },
          "inviterDid": {
            "description": "DID of the guild leader who issued the summons.",
            "format": "did",
            "type": "string"
          },
          "inviterHandle": {
            "description": "Handle of the guild leader at the time of summoning.",
            "type": "string"
          },
          "partyId": {
            "description": "Server-assigned party UUID for the guild gathering.",
            "type": "string"
          },
          "status": {
            "description": "Current status of this summons.",
            "knownValues": [
              "pending",
              "accepted",
              "declined",
              "expired"
            ],
            "type": "string"
          }
        },
        "required": [
          "partyId",
          "inviterDid",
          "inviterHandle",
          "createdAt",
          "expiresAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "gg.infinitetavern.guild.summons",
  "lexicon": 1
}
