# computer.spaces.event

> An event on a calendar at spaces.computer: in your home space, private to you, or in a shared calendar space (computer.spaces.calendar), where everyone in the calendar can read it and only you can change it. Days and times are wall-clock in the time zone the event was written in. Record key: a TID.

- Kind: record
- Record key: tid
- Authority: spaces.computer
- Lexicon: 1
- Published by [spaces.computer](https://lexicon.garden/identity/did:plc:fcup7ltuhyvyayda32fru55z), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.event)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.event/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.event/analytics)

## Record (`computer.spaces.event`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required): When the event was added to the calendar.
- `day` (string, required): The day it is on, or starts on, as YYYY-MM-DD.
  - Constraints: maxLength: 10
- `end` (string): When it ends, as HH:MM in 24-hour time, on the same day. Absent when there is no set end.
  - Constraints: maxLength: 5
- `endDay` (string): For an event spanning days: the last day, as YYYY-MM-DD. Absent for a single day.
  - Constraints: maxLength: 10
- `location` (string): Where it is.
  - Constraints: maxLength: 9000, maxGraphemes: 3000
- `notes` (string): Anything else about it.
  - Constraints: maxLength: 60000, maxGraphemes: 20000
- `repeat` (string): How the event comes back. "yearly": on the same month and day every year from its day on, for a birthday or an anniversary. Absent for a one-off.
  - Constraints: knownValues: yearly
- `source` (string · uri): The original note's space-record URI, including its space, writer DID, collection and record key.
- `start` (string): When it starts, as HH:MM in 24-hour time. Absent for an all-day event.
  - Constraints: maxLength: 5
- `title` (string, required): What the event is.
  - Constraints: maxLength: 6000, maxGraphemes: 2000
- `tz` (string): The IANA time zone the day and times were written in, e.g. America/New_York.
  - Constraints: maxLength: 100
- `updatedAt` (string · datetime): When it was last changed.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An event on a calendar at spaces.computer: in your home space, private to you, or in a shared calendar space (computer.spaces.calendar), where everyone in the calendar can read it and only you can change it. Days and times are wall-clock in the time zone the event was written in. Record key: a TID.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "When the event was added to the calendar.",
            "format": "datetime",
            "type": "string"
          },
          "day": {
            "description": "The day it is on, or starts on, as YYYY-MM-DD.",
            "maxLength": 10,
            "type": "string"
          },
          "end": {
            "description": "When it ends, as HH:MM in 24-hour time, on the same day. Absent when there is no set end.",
            "maxLength": 5,
            "type": "string"
          },
          "endDay": {
            "description": "For an event spanning days: the last day, as YYYY-MM-DD. Absent for a single day.",
            "maxLength": 10,
            "type": "string"
          },
          "location": {
            "description": "Where it is.",
            "maxGraphemes": 3000,
            "maxLength": 9000,
            "type": "string"
          },
          "notes": {
            "description": "Anything else about it.",
            "maxGraphemes": 20000,
            "maxLength": 60000,
            "type": "string"
          },
          "repeat": {
            "description": "How the event comes back. \"yearly\": on the same month and day every year from its day on, for a birthday or an anniversary. Absent for a one-off.",
            "knownValues": [
              "yearly"
            ],
            "type": "string"
          },
          "source": {
            "description": "The original note's space-record URI, including its space, writer DID, collection and record key.",
            "format": "uri",
            "type": "string"
          },
          "start": {
            "description": "When it starts, as HH:MM in 24-hour time. Absent for an all-day event.",
            "maxLength": 5,
            "type": "string"
          },
          "title": {
            "description": "What the event is.",
            "maxGraphemes": 2000,
            "maxLength": 6000,
            "type": "string"
          },
          "tz": {
            "description": "The IANA time zone the day and times were written in, e.g. America/New_York.",
            "maxLength": 100,
            "type": "string"
          },
          "updatedAt": {
            "description": "When it was last changed.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "day",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.spaces.event",
  "lexicon": 1
}
```
