community.lexicon.calendar.event
A calendar event.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | calendar.lexicon.community |
| Commit rev | 3n2h5svgpwq2o |
| Indexed |
Checks
Validunlimited-stringdefs.main.record.properties.descriptionNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.nameNo maxLength, maxGraphemes or format limits this string.field-name-syntaxdefs.media.properties.aspect_ratioThe field name aspect_ratio should be letters and digits, starting with a letter.unlimited-stringdefs.modeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.uri.properties.nameNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"aspectRatio": {
"description": "The image's width-to-height ratio. Values may be pixel dimensions or proportional dimensions.",
"properties": {
"height": {
"minimum": 1,
"type": "integer"
},
"width": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"width",
"height"
],
"type": "object"
},
"cancelled": {
"description": "The event has been cancelled.",
"type": "token"
},
"hybrid": {
"description": "A hybrid event that takes place both online and offline.",
"type": "token"
},
"inperson": {
"description": "An in-person event that takes place offline.",
"type": "token"
},
"main": {
"description": "A calendar event.",
"key": "tid",
"record": {
"properties": {
"createdAt": {
"description": "Client-declared timestamp when the event was created.",
"format": "datetime",
"type": "string"
},
"description": {
"description": "The description of the event.",
"type": "string"
},
"endsAt": {
"description": "Client-declared timestamp when the event ends.",
"format": "datetime",
"type": "string"
},
"locations": {
"description": "The locations where the event takes place.",
"items": {
"refs": [
"community.lexicon.calendar.event#uri",
"community.lexicon.location.address",
"community.lexicon.location.fsq",
"community.lexicon.location.geo",
"community.lexicon.location.hthree"
],
"type": "union"
},
"type": "array"
},
"media": {
"description": "Images associated with the event, with roles indicating their intended use.",
"items": {
"ref": "community.lexicon.calendar.event#media",
"type": "ref"
},
"maxLength": 16,
"type": "array"
},
"mode": {
"description": "The attendance mode of the event.",
"ref": "community.lexicon.calendar.event#mode",
"type": "ref"
},
"name": {
"description": "The name of the event.",
"type": "string"
},
"rsvpExpected": {
"description": "Whether a response is requested from attendees.",
"type": "boolean"
},
"startsAt": {
"description": "Client-declared timestamp when the event starts.",
"format": "datetime",
"type": "string"
},
"status": {
"description": "The status of the event.",
"ref": "community.lexicon.calendar.event#status",
"type": "ref"
},
"uris": {
"description": "URIs associated with the event.",
"items": {
"ref": "community.lexicon.calendar.event#uri",
"type": "ref"
},
"type": "array"
}
},
"required": [
"createdAt",
"name"
],
"type": "object"
},
"type": "record"
},
"media": {
"description": "An image associated with the event. Multiple images may have the same role.",
"properties": {
"alt": {
"description": "Alternative text describing the image for accessibility. Optional but producers should provide meaningful alternative text.",
"maxGraphemes": 2000,
"maxLength": 20000,
"type": "string"
},
"aspect_ratio": {
"description": "The image's width-to-height ratio. Producers should provide this when known.",
"ref": "community.lexicon.calendar.event#aspectRatio",
"type": "ref"
},
"content": {
"accept": [
"image/*"
],
"description": "The image file.",
"maxSize": 10000000,
"type": "blob"
},
"role": {
"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"
],
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"content",
"role"
],
"type": "object"
},
"mode": {
"default": "community.lexicon.calendar.event#inperson",
"description": "The mode of the event.",
"knownValues": [
"community.lexicon.calendar.event#hybrid",
"community.lexicon.calendar.event#inperson",
"community.lexicon.calendar.event#virtual"
],
"type": "string"
},
"planned": {
"description": "The event has been created, but not finalized.",
"type": "token"
},
"postponed": {
"description": "The event has been postponed and a new start date has not been set.",
"type": "token"
},
"rescheduled": {
"description": "The event has been rescheduled.",
"type": "token"
},
"scheduled": {
"description": "The event has been created and scheduled.",
"type": "token"
},
"status": {
"default": "community.lexicon.calendar.event#scheduled",
"description": "The status of the event.",
"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"
],
"type": "string"
},
"uri": {
"description": "A URI associated with the event.",
"properties": {
"name": {
"description": "The display name of the URI.",
"type": "string"
},
"uri": {
"format": "uri",
"type": "string"
}
},
"required": [
"uri"
],
"type": "object"
},
"virtual": {
"description": "A virtual event that takes place online.",
"type": "token"
}
},
"id": "community.lexicon.calendar.event",
"lexicon": 1
}