{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "eventVersion": {
      "description": "Versions of the two records that make up a PlaceProto event.",
      "properties": {
        "eventCid": {
          "description": "CID of the community event record.",
          "format": "cid",
          "type": "string"
        },
        "sidecarCid": {
          "description": "CID of the PlaceProto event sidecar record.",
          "format": "cid",
          "type": "string"
        }
      },
      "required": [
        "eventCid",
        "sidecarCid"
      ],
      "type": "object"
    },
    "eventView": {
      "description": "A complete PlaceProto event: the sidecar's URI, the community event it references, that event's current record value and the sidecar's location.",
      "properties": {
        "event": {
          "description": "The complete current community.lexicon.calendar.event record value, including its $type.",
          "type": "unknown"
        },
        "eventUri": {
          "description": "AT-URI of the community event the sidecar references.",
          "format": "at-uri",
          "type": "string"
        },
        "location": {
          "closed": false,
          "description": "The sidecar's location.",
          "refs": [
            "community.lexicon.location.geo",
            "community.lexicon.location.address",
            "community.lexicon.location.fsq",
            "community.lexicon.location.hthree"
          ],
          "type": "union"
        },
        "uri": {
          "description": "AT-URI of the PlaceProto event sidecar.",
          "format": "at-uri",
          "type": "string"
        },
        "version": {
          "description": "Record versions, present when the view is read for editing.",
          "ref": "#eventVersion",
          "type": "ref"
        }
      },
      "required": [
        "uri",
        "eventUri",
        "event",
        "location"
      ],
      "type": "object"
    }
  },
  "description": "Shared PlaceProto definitions: the complete event view and its version metadata.",
  "id": "app.iriai.proto.defs",
  "lexicon": 1
}
