{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An invite to someone else's space, saved in your home space at spaces.computer when it arrived, until you accept or ignore it. Your own desktop writes it. Opening it asks the space's host whether you are a member. Record key: derived from the space's key and its owner, so there is one record per space.",
      "key": "any",
      "record": {
        "properties": {
          "from": {
            "description": "Who sent it: always the space's owner.",
            "format": "did",
            "type": "string"
          },
          "receivedAt": {
            "description": "When the invite reached you.",
            "format": "datetime",
            "type": "string"
          },
          "space": {
            "description": "The space you were invited to: at:space/{owner}/{type}/{key}.",
            "maxLength": 1024,
            "type": "string"
          }
        },
        "required": [
          "space",
          "from",
          "receivedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.spaces.invitation",
  "lexicon": 1
}
