# app.thesocialwire.liveEvent

> Public viewer-owned live event. Updates and destination records commit atomically. Never store secrets.

- Kind: record
- Record key: tid
- Authority: thesocialwire.app
- Lexicon: 1
- Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.liveEvent)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.liveEvent/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.liveEvent/analytics)

## Record (`app.thesocialwire.liveEvent`)

Type: record · key tid

### Properties

- `articleRef` (ref)
  - Reference: `com.atproto.repo.strongRef`
- `articleUrl` (string · uri)
- `createdAt` (string · datetime, required)
- `destination` (string, required)
  - Constraints: enum: blog | bluesky | both
- `endedAt` (string · datetime): When the author closed the live post session, independent of its scheduled end.
- `endsAt` (string · datetime)
- `entries` (array, required)
  - Constraints: maxLength: 500
  - `items` (ref)
    - Reference: `#update`
- `publicationUri` (string · at-uri)
- `sourceEvent` (ref)
  - Reference: `com.atproto.repo.strongRef`
- `startsAt` (string · datetime)
- `tags` (array, required)
  - Constraints: maxLength: 20
  - `items` (string)
    - Constraints: maxLength: 128
- `threadLast` (ref)
  - Reference: `com.atproto.repo.strongRef`
- `threadRoot` (ref)
  - Reference: `com.atproto.repo.strongRef`
- `timeZone` (string): IANA time zone of the posting user, captured for stable future publishing. Legacy events capture local zone on next update.
  - Constraints: maxLength: 128
- `timestampFormat` (string): Format for future article update headings. Omitted defaults to 24-hour HH:MM.
  - Constraints: enum: time-24 | time-12 | date-time | iso
- `title` (string, required)
  - Constraints: maxLength: 500
- `updatedAt` (string · datetime, required)

## #aspectRatio (`app.thesocialwire.liveEvent#aspectRatio`)

Type: object

### Properties

- `height` (integer, required)
  - Constraints: minimum: 1
- `width` (integer, required)
  - Constraints: minimum: 1

## #external (`app.thesocialwire.liveEvent#external`)

Type: object

### Properties

- `external` (object, required)

## #gif (`app.thesocialwire.liveEvent#gif`)

Type: object

### Properties

- `alt` (string, required)
  - Constraints: maxLength: 10000
- `url` (string · uri, required)

## #image (`app.thesocialwire.liveEvent#image`)

Type: object

### Properties

- `alt` (string, required)
  - Constraints: maxLength: 10000
- `aspectRatio` (ref)
  - Reference: `#aspectRatio`
- `blob` (blob, required)
  - Constraints: maxSize: 2000000, accept: image/*

## #media (`app.thesocialwire.liveEvent#media`)

Type: object

### Properties

- `external` (ref)
  - Reference: `#external`
- `gif` (ref)
  - Reference: `#gif`
- `images` (array)
  - Constraints: maxLength: 4
  - `items` (ref)
    - Reference: `#image`
- `pdsUrl` (string · uri)
- `video` (ref)
  - Reference: `#video`

## #update (`app.thesocialwire.liveEvent#update`)

Type: object

### Properties

- `articleRef` (ref)
  - Reference: `com.atproto.repo.strongRef`
- `attachmentsFingerprint` (string)
  - Constraints: maxLength: 64
- `createdAt` (string · datetime, required)
- `id` (string, required)
  - Constraints: maxLength: 100
- `media` (ref)
  - Reference: `#media`
- `postRef` (ref)
  - Reference: `com.atproto.repo.strongRef`
- `text` (string, required)
  - Constraints: maxLength: 30000

## #video (`app.thesocialwire.liveEvent#video`)

Type: object

### Properties

- `alt` (string, required)
  - Constraints: maxLength: 10000
- `blob` (blob, required)
  - Constraints: maxSize: 100000000, accept: video/mp4

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "aspectRatio": {
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "external": {
      "properties": {
        "external": {
          "properties": {
            "description": {
              "maxLength": 10000,
              "type": "string"
            },
            "thumb": {
              "accept": [
                "image/*"
              ],
              "maxSize": 1000000,
              "type": "blob"
            },
            "title": {
              "maxLength": 3000,
              "type": "string"
            },
            "uri": {
              "format": "uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "title",
            "description"
          ],
          "type": "object"
        }
      },
      "required": [
        "external"
      ],
      "type": "object"
    },
    "gif": {
      "properties": {
        "alt": {
          "maxLength": 10000,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "url",
        "alt"
      ],
      "type": "object"
    },
    "image": {
      "properties": {
        "alt": {
          "maxLength": 10000,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        },
        "blob": {
          "accept": [
            "image/*"
          ],
          "maxSize": 2000000,
          "type": "blob"
        }
      },
      "required": [
        "blob",
        "alt"
      ],
      "type": "object"
    },
    "main": {
      "description": "Public viewer-owned live event. Updates and destination records commit atomically. Never store secrets.",
      "key": "tid",
      "record": {
        "properties": {
          "articleRef": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "articleUrl": {
            "format": "uri",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "destination": {
            "enum": [
              "blog",
              "bluesky",
              "both"
            ],
            "type": "string"
          },
          "endedAt": {
            "description": "When the author closed the live post session, independent of its scheduled end.",
            "format": "datetime",
            "type": "string"
          },
          "endsAt": {
            "format": "datetime",
            "type": "string"
          },
          "entries": {
            "items": {
              "ref": "#update",
              "type": "ref"
            },
            "maxLength": 500,
            "type": "array"
          },
          "publicationUri": {
            "format": "at-uri",
            "type": "string"
          },
          "sourceEvent": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "startsAt": {
            "format": "datetime",
            "type": "string"
          },
          "tags": {
            "items": {
              "maxLength": 128,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "threadLast": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "threadRoot": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "timeZone": {
            "description": "IANA time zone of the posting user, captured for stable future publishing. Legacy events capture local zone on next update.",
            "maxLength": 128,
            "type": "string"
          },
          "timestampFormat": {
            "description": "Format for future article update headings. Omitted defaults to 24-hour HH:MM.",
            "enum": [
              "time-24",
              "time-12",
              "date-time",
              "iso"
            ],
            "type": "string"
          },
          "title": {
            "maxLength": 500,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "tags",
          "destination",
          "createdAt",
          "updatedAt",
          "entries"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "media": {
      "properties": {
        "external": {
          "ref": "#external",
          "type": "ref"
        },
        "gif": {
          "ref": "#gif",
          "type": "ref"
        },
        "images": {
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 4,
          "type": "array"
        },
        "pdsUrl": {
          "format": "uri",
          "type": "string"
        },
        "video": {
          "ref": "#video",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "update": {
      "properties": {
        "articleRef": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "attachmentsFingerprint": {
          "maxLength": 64,
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "maxLength": 100,
          "type": "string"
        },
        "media": {
          "ref": "#media",
          "type": "ref"
        },
        "postRef": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "text": {
          "maxLength": 30000,
          "type": "string"
        }
      },
      "required": [
        "id",
        "createdAt",
        "text"
      ],
      "type": "object"
    },
    "video": {
      "properties": {
        "alt": {
          "maxLength": 10000,
          "type": "string"
        },
        "blob": {
          "accept": [
            "video/mp4"
          ],
          "maxSize": 100000000,
          "type": "blob"
        }
      },
      "required": [
        "blob",
        "alt"
      ],
      "type": "object"
    }
  },
  "id": "app.thesocialwire.liveEvent",
  "lexicon": 1
}
```
