ATProto Community Lexicon - Bookmark, Like, Event, RSVP, etc

Added on Nov. 6, 2025 • Managed by admin

Event

{
    "lexicon": 1,
    "id": "community.lexicon.calendar.event",
    "defs": {
        "main": {
            "type": "record",
            "description": "A calendar event.",
            "key": "tid",
            "record": {
                "type": "object",
                "required": [
                    "createdAt",
                    "name"
                ],
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "The name of the event."
                    },
                    "description": {
                        "type": "string",
                        "description": "The description of the event."
                    },
                    "createdAt": {
                        "type": "string",
                        "format": "datetime",
                        "description": "Client-declared timestamp when the event was created."
                    },
                    "startsAt": {
                        "type": "string",
                        "format": "datetime",
                        "description": "Client-declared timestamp when the event starts."
                    },
                    "endsAt": {
                        "type": "string",
                        "format": "datetime",
                        "description": "Client-declared timestamp when the event ends."
                    },
                    "mode": {
                        "type": "ref",
                        "ref": "community.lexicon.calendar.event#mode",
                        "description": "The attendance mode of the event."
                    },
                    "status": {
                        "type": "ref",
                        "ref": "community.lexicon.calendar.event#status",
                        "description": "The status of the event."
                    },
                    "locations": {
                        "type": "array",
                        "description": "The locations where the event takes place.",
                        "items": {
                            "type": "union",
                            "refs": [
                                "community.lexicon.calendar.event#uri",
                                "community.lexicon.location.address",
                                "community.lexicon.location.fsq",
                                "community.lexicon.location.geo",
                                "community.lexicon.location.hthree"
                            ]
                        }
                    },
                    "uris": {
                        "type": "array",
                        "description": "URIs associated with the event.",
                        "items": {
                            "type": "ref",
                            "ref": "community.lexicon.calendar.event#uri"
                        }
                    },
                    "media": {
                        "type": "array",
                        "maxLength": 16,
                        "description": "Images associated with the event, with roles indicating their intended use.",
                        "items": {
                            "type": "ref",
                            "ref": "community.lexicon.calendar.event#media"
                        }
                    },
                    "rsvpExpected": {
                        "type": "boolean",
                        "description": "Whether a response is requested from attendees."
                    }
                }
            }
        },
        "mode": {
            "type": "string",
            "description": "The mode of the event.",
            "default": "community.lexicon.calendar.event#inperson",
            "knownValues": [
                "community.lexicon.calendar.event#hybrid",
                "community.lexicon.calendar.event#inperson",
                "community.lexicon.calendar.event#virtual"
            ]
        },
        "virtual": {
            "type": "token",
            "description": "A virtual event that takes place online."
        },
        "inperson": {
            "type": "token",
            "description": "An in-person event that takes place offline."
        },
        "hybrid": {
            "type": "token",
            "description": "A hybrid event that takes place both online and offline."
        },
        "status": {
            "type": "string",
            "description": "The status of the event.",
            "default": "community.lexicon.calendar.event#scheduled",
            "knownValues": [
                "community.lexicon.calendar.event#cancelled",
                "community.lexicon.calendar.event#planned",
                "community.lexicon.calendar.event#postponed",
                "community.lexicon.calendar.event#rescheduled",
                "community.lexicon.calendar.event#scheduled"
            ]
        },
        "planned": {
            "type": "token",
            "description": "The event has been created, but not finalized."
        },
        "scheduled": {
            "type": "token",
            "description": "The event has been created and scheduled."
        },
        "rescheduled": {
            "type": "token",
            "description": "The event has been rescheduled."
        },
        "cancelled": {
            "type": "token",
            "description": "The event has been cancelled."
        },
        "postponed": {
            "type": "token",
            "description": "The event has been postponed and a new start date has not been set."
        },
        "media": {
            "type": "object",
            "description": "An image associated with the event. Multiple images may have the same role.",
            "required": [
                "content",
                "role"
            ],
            "properties": {
                "content": {
                    "type": "blob",
                    "description": "The image file.",
                    "maxSize": 10000000,
                    "accept": [
                        "image/*"
                    ]
                },
                "role": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "description": "The intended use of the image. Suggested roles are thumbnail (a preview image, preferably square), flyer (a portrait promotional image), and header (a wide image displayed above the event). Other roles are allowed. Roles are display hints, not aspect ratio constraints; consumers should use aspect_ratio when available.",
                    "knownValues": [
                        "thumbnail",
                        "flyer",
                        "header"
                    ]
                },
                "alt": {
                    "type": "string",
                    "maxLength": 20000,
                    "maxGraphemes": 2000,
                    "description": "Alternative text describing the image for accessibility. Optional but producers should provide meaningful alternative text."
                },
                "aspect_ratio": {
                    "type": "ref",
                    "ref": "community.lexicon.calendar.event#aspectRatio",
                    "description": "The image's width-to-height ratio. Producers should provide this when known."
                }
            }
        },
        "aspectRatio": {
            "type": "object",
            "description": "The image's width-to-height ratio. Values may be pixel dimensions or proportional dimensions.",
            "required": [
                "width",
                "height"
            ],
            "properties": {
                "width": {
                    "type": "integer",
                    "minimum": 1
                },
                "height": {
                    "type": "integer",
                    "minimum": 1
                }
            }
        },
        "uri": {
            "type": "object",
            "description": "A URI associated with the event.",
            "required": [
                "uri"
            ],
            "properties": {
                "uri": {
                    "type": "string",
                    "format": "uri"
                },
                "name": {
                    "type": "string",
                    "description": "The display name of the URI."
                }
            }
        }
    }
}

View source