# app.solstone.memory.defs

- Kind: defs
- Authority: memory.solstone.app
- Lexicon: 1
- Published by [solstone.app](https://lexicon.garden/identity/did:plc:3xjxhc4iwdtw6mulvb35kfl3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3xjxhc4iwdtw6mulvb35kfl3/app.solstone.memory.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3xjxhc4iwdtw6mulvb35kfl3/app.solstone.memory.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3xjxhc4iwdtw6mulvb35kfl3/app.solstone.memory.defs/analytics)

## #activityDetail (`app.solstone.memory.defs#activityDetail`)

Type: object

One constituent activity underlying an experience (included only on full-detail shares). Carries no internal journal paths, facets, or raw capture stream IDs.

### Properties

- `endedAt` (string · datetime)
- `facets` (array)
  - Constraints: maxLength: 100
  - `items` (ref)
    - Reference: `app.bsky.richtext.facet`
- `id` (string): Opaque identifier stable within this shared experience (e.g. a1, a2), referenced by moment.activityIds.
  - Constraints: maxLength: 64
- `kind` (string): Optional coarse activity kind.
  - Constraints: maxLength: 64, knownValues: social | meeting | work | outing | travel | meal | exercise | creative | media | other
- `segments` (array): Optional timed segments within this constituent activity.
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `#segment`
- `startedAt` (string · datetime, required)
- `summary` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `title` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300

## #audio (`app.solstone.memory.defs#audio`)

Type: object

An audio clip attached to a moment, segment, or experience.

### Properties

- `alt` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `blob` (blob, required)
  - Constraints: maxSize: 50000000, accept: audio/*, video/mp4, video/webm
- `capturedAt` (string · datetime)
- `durationMs` (integer)
  - Constraints: minimum: 0
- `mimeType` (string)
  - Constraints: maxLength: 128
- `transcript` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000

## #external (`app.solstone.memory.defs#external`)

Type: object

An external web link attached to a moment, segment, or experience.

### Properties

- `description` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `thumb` (blob)
  - Constraints: maxSize: 1000000, accept: image/*
- `title` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `uri` (string · uri, required)

## #image (`app.solstone.memory.defs#image`)

Type: object

An image attached to a moment, segment, or experience (EXIF/GPS stripped before upload).

### Properties

- `alt` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `aspectRatio` (ref)
  - Reference: `app.bsky.embed.defs#aspectRatio`
- `blob` (blob, required)
  - Constraints: maxSize: 5000000, accept: image/*
- `caption` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `capturedAt` (string · datetime)
- `mimeType` (string)
  - Constraints: maxLength: 128

## #moment (`app.solstone.memory.defs#moment`)

Type: object

One chronological narrative moment within a shared experience, with optional summary, media, and opaque links to constituent activities.

### Properties

- `activityIds` (array): Optional opaque IDs referencing items in the parent experience activities[] array (populated on full-detail shares only; never internal journal paths).
  - Constraints: maxLength: 50
  - `items` (string)
    - Constraints: maxLength: 64
- `endedAt` (string · datetime): When this moment ended. Omit for point-in-time moments.
- `facets` (array)
  - Constraints: maxLength: 50
  - `items` (ref)
    - Reference: `app.bsky.richtext.facet`
- `id` (string): Opaque identifier stable within this shared experience (e.g. m1, m2), for anchoring annotations or references.
  - Constraints: maxLength: 64
- `locations` (array)
  - Constraints: maxLength: 4
  - `items` (union)
    - One of: `community.lexicon.location.address`, `community.lexicon.location.geo`, `community.lexicon.location.hthree`, `community.lexicon.location.fsq`, `#placeName`
- `media` (array)
  - Constraints: maxLength: 12
  - `items` (union)
    - One of: `#image`, `#video`, `#audio`, `#external`
- `people` (array)
  - Constraints: maxLength: 50
  - `items` (ref)
    - Reference: `#participant`
- `startedAt` (string · datetime, required): When this moment began (RFC 3339, UTC preferred).
- `summary` (string): Plain-text summary of what happened during this moment.
  - Constraints: maxLength: 15000, maxGraphemes: 1500

## #participant (`app.solstone.memory.defs#participant`)

Type: object

A person involved in or mentioned by an experience. Works identically for people with or without an Atmosphere account.

### Properties

- `did` (string · did)
- `name` (string, required)
  - Constraints: maxLength: 1200, maxGraphemes: 120
- `ref` (string · at-uri)
- `role` (string)
  - Constraints: maxLength: 64, knownValues: present | author | host | mentioned

## #placeName (`app.solstone.memory.defs#placeName`)

Type: object

A plain human-readable place label when structured address, coordinates, or POI IDs are absent or deliberately withheld.

### Properties

- `name` (string, required)
  - Constraints: maxLength: 2000, maxGraphemes: 200

## #recordRef (`app.solstone.memory.defs#recordRef`)

Type: object

A reference to a related ATProto record (public or in the same space via at:space/...).

### Properties

- `cid` (string · cid)
- `relation` (string)
  - Constraints: maxLength: 64, knownValues: calendar-event | gallery | related-memory | companion-post | source
- `uri` (string · at-uri, required)

## #segment (`app.solstone.memory.defs#segment`)

Type: object

One timed segment within a constituent activity (included only on full-detail shares).

### Properties

- `endedAt` (string · datetime)
- `facets` (array)
  - Constraints: maxLength: 50
  - `items` (ref)
    - Reference: `app.bsky.richtext.facet`
- `id` (string): Opaque identifier stable within this shared experience (e.g. s1, s2).
  - Constraints: maxLength: 64
- `media` (array)
  - Constraints: maxLength: 12
  - `items` (union)
    - One of: `#image`, `#video`, `#audio`, `#external`
- `startedAt` (string · datetime, required)
- `summary` (string)
  - Constraints: maxLength: 15000, maxGraphemes: 1500

## #uriRef (`app.solstone.memory.defs#uriRef`)

Type: object

A reference to a non-ATProto URL related to the experience.

### Properties

- `relation` (string)
  - Constraints: maxLength: 64
- `title` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `uri` (string · uri, required)

## #video (`app.solstone.memory.defs#video`)

Type: object

A video clip attached to a moment, segment, or experience.

### Properties

- `alt` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `aspectRatio` (ref)
  - Reference: `app.bsky.embed.defs#aspectRatio`
- `blob` (blob, required)
  - Constraints: maxSize: 50000000, accept: video/mp4, video/webm
- `capturedAt` (string · datetime)
- `durationMs` (integer)
  - Constraints: minimum: 0
- `mimeType` (string)
  - Constraints: maxLength: 128
- `poster` (blob)
  - Constraints: maxSize: 1000000, accept: image/*

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "activityDetail": {
      "description": "One constituent activity underlying an experience (included only on full-detail shares). Carries no internal journal paths, facets, or raw capture stream IDs.",
      "properties": {
        "endedAt": {
          "format": "datetime",
          "type": "string"
        },
        "facets": {
          "items": {
            "ref": "app.bsky.richtext.facet",
            "type": "ref"
          },
          "maxLength": 100,
          "type": "array"
        },
        "id": {
          "description": "Opaque identifier stable within this shared experience (e.g. a1, a2), referenced by moment.activityIds.",
          "maxLength": 64,
          "type": "string"
        },
        "kind": {
          "description": "Optional coarse activity kind.",
          "knownValues": [
            "social",
            "meeting",
            "work",
            "outing",
            "travel",
            "meal",
            "exercise",
            "creative",
            "media",
            "other"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "segments": {
          "description": "Optional timed segments within this constituent activity.",
          "items": {
            "ref": "#segment",
            "type": "ref"
          },
          "maxLength": 200,
          "type": "array"
        },
        "startedAt": {
          "format": "datetime",
          "type": "string"
        },
        "summary": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "title": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        }
      },
      "required": [
        "startedAt"
      ],
      "type": "object"
    },
    "audio": {
      "description": "An audio clip attached to a moment, segment, or experience.",
      "properties": {
        "alt": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "blob": {
          "accept": [
            "audio/*",
            "video/mp4",
            "video/webm"
          ],
          "maxSize": 50000000,
          "type": "blob"
        },
        "capturedAt": {
          "format": "datetime",
          "type": "string"
        },
        "durationMs": {
          "minimum": 0,
          "type": "integer"
        },
        "mimeType": {
          "maxLength": 128,
          "type": "string"
        },
        "transcript": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    },
    "external": {
      "description": "An external web link attached to a moment, segment, or experience.",
      "properties": {
        "description": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "thumb": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        },
        "title": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "uri": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "image": {
      "description": "An image attached to a moment, segment, or experience (EXIF/GPS stripped before upload).",
      "properties": {
        "alt": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "app.bsky.embed.defs#aspectRatio",
          "type": "ref"
        },
        "blob": {
          "accept": [
            "image/*"
          ],
          "maxSize": 5000000,
          "type": "blob"
        },
        "caption": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "capturedAt": {
          "format": "datetime",
          "type": "string"
        },
        "mimeType": {
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    },
    "moment": {
      "description": "One chronological narrative moment within a shared experience, with optional summary, media, and opaque links to constituent activities.",
      "properties": {
        "activityIds": {
          "description": "Optional opaque IDs referencing items in the parent experience activities[] array (populated on full-detail shares only; never internal journal paths).",
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxLength": 50,
          "type": "array"
        },
        "endedAt": {
          "description": "When this moment ended. Omit for point-in-time moments.",
          "format": "datetime",
          "type": "string"
        },
        "facets": {
          "items": {
            "ref": "app.bsky.richtext.facet",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "id": {
          "description": "Opaque identifier stable within this shared experience (e.g. m1, m2), for anchoring annotations or references.",
          "maxLength": 64,
          "type": "string"
        },
        "locations": {
          "items": {
            "refs": [
              "community.lexicon.location.address",
              "community.lexicon.location.geo",
              "community.lexicon.location.hthree",
              "community.lexicon.location.fsq",
              "#placeName"
            ],
            "type": "union"
          },
          "maxLength": 4,
          "type": "array"
        },
        "media": {
          "items": {
            "refs": [
              "#image",
              "#video",
              "#audio",
              "#external"
            ],
            "type": "union"
          },
          "maxLength": 12,
          "type": "array"
        },
        "people": {
          "items": {
            "ref": "#participant",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "startedAt": {
          "description": "When this moment began (RFC 3339, UTC preferred).",
          "format": "datetime",
          "type": "string"
        },
        "summary": {
          "description": "Plain-text summary of what happened during this moment.",
          "maxGraphemes": 1500,
          "maxLength": 15000,
          "type": "string"
        }
      },
      "required": [
        "startedAt"
      ],
      "type": "object"
    },
    "participant": {
      "description": "A person involved in or mentioned by an experience. Works identically for people with or without an Atmosphere account.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "name": {
          "maxGraphemes": 120,
          "maxLength": 1200,
          "type": "string"
        },
        "ref": {
          "format": "at-uri",
          "type": "string"
        },
        "role": {
          "knownValues": [
            "present",
            "author",
            "host",
            "mentioned"
          ],
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "placeName": {
      "description": "A plain human-readable place label when structured address, coordinates, or POI IDs are absent or deliberately withheld.",
      "properties": {
        "name": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "recordRef": {
      "description": "A reference to a related ATProto record (public or in the same space via at:space/...).",
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "relation": {
          "knownValues": [
            "calendar-event",
            "gallery",
            "related-memory",
            "companion-post",
            "source"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "segment": {
      "description": "One timed segment within a constituent activity (included only on full-detail shares).",
      "properties": {
        "endedAt": {
          "format": "datetime",
          "type": "string"
        },
        "facets": {
          "items": {
            "ref": "app.bsky.richtext.facet",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "id": {
          "description": "Opaque identifier stable within this shared experience (e.g. s1, s2).",
          "maxLength": 64,
          "type": "string"
        },
        "media": {
          "items": {
            "refs": [
              "#image",
              "#video",
              "#audio",
              "#external"
            ],
            "type": "union"
          },
          "maxLength": 12,
          "type": "array"
        },
        "startedAt": {
          "format": "datetime",
          "type": "string"
        },
        "summary": {
          "maxGraphemes": 1500,
          "maxLength": 15000,
          "type": "string"
        }
      },
      "required": [
        "startedAt"
      ],
      "type": "object"
    },
    "uriRef": {
      "description": "A reference to a non-ATProto URL related to the experience.",
      "properties": {
        "relation": {
          "maxLength": 64,
          "type": "string"
        },
        "title": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "uri": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "video": {
      "description": "A video clip attached to a moment, segment, or experience.",
      "properties": {
        "alt": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "app.bsky.embed.defs#aspectRatio",
          "type": "ref"
        },
        "blob": {
          "accept": [
            "video/mp4",
            "video/webm"
          ],
          "maxSize": 50000000,
          "type": "blob"
        },
        "capturedAt": {
          "format": "datetime",
          "type": "string"
        },
        "durationMs": {
          "minimum": 0,
          "type": "integer"
        },
        "mimeType": {
          "maxLength": 128,
          "type": "string"
        },
        "poster": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    }
  },
  "id": "app.solstone.memory.defs",
  "lexicon": 1
}
```
